diff --git a/1.7c628f35.iframe.bundle.js b/1.7c628f35.iframe.bundle.js deleted file mode 100644 index f22b7ef..0000000 --- a/1.7c628f35.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[1,720],{"./node_modules/.pnpm/@storybook+addon-docs@8.4.5_@types+react@16.14.62_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-docs/dist/DocsRenderer-CFRXHY34.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{DocsRenderer:()=>DocsRenderer});var react=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),dist=__webpack_require__("./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist/index.mjs"),react_16=__webpack_require__("./node_modules/.pnpm/@storybook+react-dom-shim@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/react-dom-shim/dist/react-16.mjs"),defaultComponents={code:dist.XA,a:dist.zE,...dist.Sw},ErrorBoundary=class extends react.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:react.createElement(react.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=dist.kQ;return new Promise(((resolve,reject)=>{__webpack_require__.e(945).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@mdx-js+react@3.0.1_@types+react@16.14.62_react@16.14.0/node_modules/@mdx-js/react/index.js")).then((({MDXProvider})=>(0,react_16.renderElement)(react.createElement(ErrorBoundary,{showException:reject,key:Math.random()},react.createElement(MDXProvider,{components},react.createElement(TDocs,{context,docsParameter}))),element))).then((()=>resolve()))}))},this.unmount=element=>{(0,react_16.unmountElement)(element)}}};__webpack_require__("./node_modules/.pnpm/@storybook+addon-docs@8.4.5_@types+react@16.14.62_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-docs/dist/chunk-H6MOWX77.mjs")},"./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist sync recursive",module.exports=webpackEmptyContext},"./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/components sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/components sync recursive",module.exports=webpackEmptyContext},"./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/theming sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/theming sync recursive",module.exports=webpackEmptyContext},"./node_modules/.pnpm/@storybook+react-dom-shim@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/react-dom-shim/dist/react-16.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{renderElement:()=>renderElement,unmountElement:()=>unmountElement});var react_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/index.js"),renderElement=async(node,el)=>new Promise((resolve=>{react_dom__WEBPACK_IMPORTED_MODULE_0__.render(node,el,(()=>resolve(null)))})),unmountElement=el=>{react_dom__WEBPACK_IMPORTED_MODULE_0__.unmountComponentAtNode(el)}}}]); \ No newline at end of file diff --git a/746.9dc2fba3.iframe.bundle.js b/260.c8df7431.iframe.bundle.js similarity index 98% rename from 746.9dc2fba3.iframe.bundle.js rename to 260.c8df7431.iframe.bundle.js index 276f9aa..6265643 100644 --- a/746.9dc2fba3.iframe.bundle.js +++ b/260.c8df7431.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[746],{"./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ColorControl:()=>ColorControl,default:()=>Color_default});var _chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist/chunk-2PTXLE6R.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/components/index.js"),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/theming/index.js"),_storybook_icons__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/.pnpm/@storybook+icons@1.2.12_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/@storybook/icons/dist/index.mjs"),require_color_name=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.P$)({"../../node_modules/color-name/index.js"(exports,module){module.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]}}}),require_conversions=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.P$)({"../../node_modules/color-convert/conversions.js"(exports,module){var cssKeywords=require_color_name(),reverseKeywords={};for(let key of Object.keys(cssKeywords))reverseKeywords[cssKeywords[key]]=key;var convert2={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"]}};module.exports=convert2;for(let model of Object.keys(convert2)){if(!("channels"in convert2[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert2[model]))throw new Error("missing channel labels property: "+model);if(convert2[model].labels.length!==convert2[model].channels)throw new Error("channel and label counts mismatch: "+model);let{channels,labels}=convert2[model];delete convert2[model].channels,delete convert2[model].labels,Object.defineProperty(convert2[model],"channels",{value:channels}),Object.defineProperty(convert2[model],"labels",{value:labels})}convert2.rgb.hsl=function(rgb){let h2,s2,r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,min=Math.min(r2,g2,b2),max=Math.max(r2,g2,b2),delta=max-min;max===min?h2=0:r2===max?h2=(g2-b2)/delta:g2===max?h2=2+(b2-r2)/delta:b2===max&&(h2=4+(r2-g2)/delta),h2=Math.min(60*h2,360),h2<0&&(h2+=360);let l2=(min+max)/2;return s2=max===min?0:l2<=.5?delta/(max+min):delta/(2-max-min),[h2,100*s2,100*l2]},convert2.rgb.hsv=function(rgb){let rdif,gdif,bdif,h2,s2,r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,v2=Math.max(r2,g2,b2),diff=v2-Math.min(r2,g2,b2),diffc=function(c2){return(v2-c2)/6/diff+.5};return 0===diff?(h2=0,s2=0):(s2=diff/v2,rdif=diffc(r2),gdif=diffc(g2),bdif=diffc(b2),r2===v2?h2=bdif-gdif:g2===v2?h2=1/3+rdif-bdif:b2===v2&&(h2=2/3+gdif-rdif),h2<0?h2+=1:h2>1&&(h2-=1)),[360*h2,100*s2,100*v2]},convert2.rgb.hwb=function(rgb){let r2=rgb[0],g2=rgb[1],b2=rgb[2],h2=convert2.rgb.hsl(rgb)[0],w2=1/255*Math.min(r2,Math.min(g2,b2));return b2=1-1/255*Math.max(r2,Math.max(g2,b2)),[h2,100*w2,100*b2]},convert2.rgb.cmyk=function(rgb){let r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,k2=Math.min(1-r2,1-g2,1-b2);return[100*((1-r2-k2)/(1-k2)||0),100*((1-g2-k2)/(1-k2)||0),100*((1-b2-k2)/(1-k2)||0),100*k2]},convert2.rgb.keyword=function(rgb){let reversed=reverseKeywords[rgb];if(reversed)return reversed;let currentClosestKeyword,currentClosestDistance=1/0;for(let keyword of Object.keys(cssKeywords)){let value=cssKeywords[keyword],distance=(y2=value,((x2=rgb)[0]-y2[0])**2+(x2[1]-y2[1])**2+(x2[2]-y2[2])**2);distance.04045?((r2+.055)/1.055)**2.4:r2/12.92,g2=g2>.04045?((g2+.055)/1.055)**2.4:g2/12.92,b2=b2>.04045?((b2+.055)/1.055)**2.4:b2/12.92,[100*(.4124*r2+.3576*g2+.1805*b2),100*(.2126*r2+.7152*g2+.0722*b2),100*(.0193*r2+.1192*g2+.9505*b2)]},convert2.rgb.lab=function(rgb){let xyz=convert2.rgb.xyz(rgb),x2=xyz[0],y2=xyz[1],z2=xyz[2];return x2/=95.047,y2/=100,z2/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z2=z2>.008856?z2**(1/3):7.787*z2+16/116,[116*y2-16,500*(x2-y2),200*(y2-z2)]},convert2.hsl.rgb=function(hsl){let t2,t3,val,h2=hsl[0]/360,s2=hsl[1]/100,l2=hsl[2]/100;if(0===s2)return val=255*l2,[val,val,val];t2=l2<.5?l2*(1+s2):l2+s2-l2*s2;let t1=2*l2-t2,rgb=[0,0,0];for(let i2=0;i2<3;i2++)t3=h2+1/3*-(i2-1),t3<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[i2]=255*val;return rgb},convert2.hsl.hsv=function(hsl){let h2=hsl[0],s2=hsl[1]/100,l2=hsl[2]/100,smin=s2,lmin=Math.max(l2,.01);return l2*=2,s2*=l2<=1?l2:2-l2,smin*=lmin<=1?lmin:2-lmin,[h2,100*(0===l2?2*smin/(lmin+smin):2*s2/(l2+s2)),100*((l2+s2)/2)]},convert2.hsv.rgb=function(hsv){let h2=hsv[0]/60,s2=hsv[1]/100,v2=hsv[2]/100,hi=Math.floor(h2)%6,f2=h2-Math.floor(h2),p2=255*v2*(1-s2),q2=255*v2*(1-s2*f2),t2=255*v2*(1-s2*(1-f2));switch(v2*=255,hi){case 0:return[v2,t2,p2];case 1:return[q2,v2,p2];case 2:return[p2,v2,t2];case 3:return[p2,q2,v2];case 4:return[t2,p2,v2];case 5:return[v2,p2,q2]}},convert2.hsv.hsl=function(hsv){let sl,l2,h2=hsv[0],s2=hsv[1]/100,v2=hsv[2]/100,vmin=Math.max(v2,.01);l2=(2-s2)*v2;let lmin=(2-s2)*vmin;return sl=s2*vmin,sl/=lmin<=1?lmin:2-lmin,sl=sl||0,l2/=2,[h2,100*sl,100*l2]},convert2.hwb.rgb=function(hwb){let f2,h2=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;ratio>1&&(wh/=ratio,bl/=ratio);let i2=Math.floor(6*h2),v2=1-bl;f2=6*h2-i2,1&i2&&(f2=1-f2);let r2,g2,b2,n2=wh+f2*(v2-wh);switch(i2){default:case 6:case 0:r2=v2,g2=n2,b2=wh;break;case 1:r2=n2,g2=v2,b2=wh;break;case 2:r2=wh,g2=v2,b2=n2;break;case 3:r2=wh,g2=n2,b2=v2;break;case 4:r2=n2,g2=wh,b2=v2;break;case 5:r2=v2,g2=wh,b2=n2}return[255*r2,255*g2,255*b2]},convert2.cmyk.rgb=function(cmyk){let c2=cmyk[0]/100,m2=cmyk[1]/100,y2=cmyk[2]/100,k2=cmyk[3]/100;return[255*(1-Math.min(1,c2*(1-k2)+k2)),255*(1-Math.min(1,m2*(1-k2)+k2)),255*(1-Math.min(1,y2*(1-k2)+k2))]},convert2.xyz.rgb=function(xyz){let r2,g2,b2,x2=xyz[0]/100,y2=xyz[1]/100,z2=xyz[2]/100;return r2=3.2406*x2+-1.5372*y2+-.4986*z2,g2=-.9689*x2+1.8758*y2+.0415*z2,b2=.0557*x2+-.204*y2+1.057*z2,r2=r2>.0031308?1.055*r2**(1/2.4)-.055:12.92*r2,g2=g2>.0031308?1.055*g2**(1/2.4)-.055:12.92*g2,b2=b2>.0031308?1.055*b2**(1/2.4)-.055:12.92*b2,r2=Math.min(Math.max(0,r2),1),g2=Math.min(Math.max(0,g2),1),b2=Math.min(Math.max(0,b2),1),[255*r2,255*g2,255*b2]},convert2.xyz.lab=function(xyz){let x2=xyz[0],y2=xyz[1],z2=xyz[2];return x2/=95.047,y2/=100,z2/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z2=z2>.008856?z2**(1/3):7.787*z2+16/116,[116*y2-16,500*(x2-y2),200*(y2-z2)]},convert2.lab.xyz=function(lab){let x2,y2,z2;y2=(lab[0]+16)/116,x2=lab[1]/500+y2,z2=y2-lab[2]/200;let y22=y2**3,x22=x2**3,z22=z2**3;return y2=y22>.008856?y22:(y2-16/116)/7.787,x2=x22>.008856?x22:(x2-16/116)/7.787,z2=z22>.008856?z22:(z2-16/116)/7.787,x2*=95.047,y2*=100,z2*=108.883,[x2,y2,z2]},convert2.lab.lch=function(lab){let h2,l2=lab[0],a2=lab[1],b2=lab[2];return h2=360*Math.atan2(b2,a2)/2/Math.PI,h2<0&&(h2+=360),[l2,Math.sqrt(a2*a2+b2*b2),h2]},convert2.lch.lab=function(lch){let l2=lch[0],c2=lch[1],hr=lch[2]/360*2*Math.PI;return[l2,c2*Math.cos(hr),c2*Math.sin(hr)]},convert2.rgb.ansi16=function(args,saturation=null){let[r2,g2,b2]=args,value=null===saturation?convert2.rgb.hsv(args)[2]:saturation;if(value=Math.round(value/50),0===value)return 30;let ansi=30+(Math.round(b2/255)<<2|Math.round(g2/255)<<1|Math.round(r2/255));return 2===value&&(ansi+=60),ansi},convert2.hsv.ansi16=function(args){return convert2.rgb.ansi16(convert2.hsv.rgb(args),args[2])},convert2.rgb.ansi256=function(args){let r2=args[0],g2=args[1],b2=args[2];return r2===g2&&g2===b2?r2<8?16:r2>248?231:Math.round((r2-8)/247*24)+232:16+36*Math.round(r2/255*5)+6*Math.round(g2/255*5)+Math.round(b2/255*5)},convert2.ansi16.rgb=function(args){let color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),color=color/10.5*255,[color,color,color];let mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert2.ansi256.rgb=function(args){if(args>=232){let c2=10*(args-232)+8;return[c2,c2,c2]}let rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert2.rgb.hex=function(args){let string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert2.hex.rgb=function(args){let match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];let colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map((char=>char+char)).join(""));let integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert2.rgb.hcg=function(rgb){let grayscale,hue,r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,max=Math.max(Math.max(r2,g2),b2),min=Math.min(Math.min(r2,g2),b2),chroma=max-min;return grayscale=chroma<1?min/(1-chroma):0,hue=chroma<=0?0:max===r2?(g2-b2)/chroma%6:max===g2?2+(b2-r2)/chroma:4+(r2-g2)/chroma,hue/=6,hue%=1,[360*hue,100*chroma,100*grayscale]},convert2.hsl.hcg=function(hsl){let s2=hsl[1]/100,l2=hsl[2]/100,c2=l2<.5?2*s2*l2:2*s2*(1-l2),f2=0;return c2<1&&(f2=(l2-.5*c2)/(1-c2)),[hsl[0],100*c2,100*f2]},convert2.hsv.hcg=function(hsv){let s2=hsv[1]/100,v2=hsv[2]/100,c2=s2*v2,f2=0;return c2<1&&(f2=(v2-c2)/(1-c2)),[hsv[0],100*c2,100*f2]},convert2.hcg.rgb=function(hcg){let h2=hcg[0]/360,c2=hcg[1]/100,g2=hcg[2]/100;if(0===c2)return[255*g2,255*g2,255*g2];let pure=[0,0,0],hi=h2%1*6,v2=hi%1,w2=1-v2,mg=0;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v2,pure[2]=0;break;case 1:pure[0]=w2,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v2;break;case 3:pure[0]=0,pure[1]=w2,pure[2]=1;break;case 4:pure[0]=v2,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w2}return mg=(1-c2)*g2,[255*(c2*pure[0]+mg),255*(c2*pure[1]+mg),255*(c2*pure[2]+mg)]},convert2.hcg.hsv=function(hcg){let c2=hcg[1]/100,v2=c2+hcg[2]/100*(1-c2),f2=0;return v2>0&&(f2=c2/v2),[hcg[0],100*f2,100*v2]},convert2.hcg.hsl=function(hcg){let c2=hcg[1]/100,l2=hcg[2]/100*(1-c2)+.5*c2,s2=0;return l2>0&&l2<.5?s2=c2/(2*l2):l2>=.5&&l2<1&&(s2=c2/(2*(1-l2))),[hcg[0],100*s2,100*l2]},convert2.hcg.hwb=function(hcg){let c2=hcg[1]/100,v2=c2+hcg[2]/100*(1-c2);return[hcg[0],100*(v2-c2),100*(1-v2)]},convert2.hwb.hcg=function(hwb){let w2=hwb[1]/100,v2=1-hwb[2]/100,c2=v2-w2,g2=0;return c2<1&&(g2=(v2-c2)/(1-c2)),[hwb[0],100*c2,100*g2]},convert2.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert2.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert2.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert2.gray.hsl=function(args){return[0,0,args[0]]},convert2.gray.hsv=convert2.gray.hsl,convert2.gray.hwb=function(gray){return[0,100,gray[0]]},convert2.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert2.gray.lab=function(gray){return[gray[0],0,0]},convert2.gray.hex=function(gray){let val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert2.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]}}}),require_route=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.P$)({"../../node_modules/color-convert/route.js"(exports,module){var conversions=require_conversions();function deriveBFS(fromModel){let graph=function buildGraph(){let graph={},models=Object.keys(conversions);for(let len=models.length,i2=0;i2{convert2[fromModel]={},Object.defineProperty(convert2[fromModel],"channels",{value:conversions[fromModel].channels}),Object.defineProperty(convert2[fromModel],"labels",{value:conversions[fromModel].labels});let routes=route(fromModel);Object.keys(routes).forEach((toModel=>{let fn=routes[toModel];convert2[fromModel][toModel]=function wrapRounded(fn){let wrappedFn=function(...args){let arg0=args[0];if(null==arg0)return arg0;arg0.length>1&&(args=arg0);let result=fn(args);if("object"==typeof result)for(let len=result.length,i2=0;i21&&(args=arg0),fn(args))};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn)}))})),module.exports=convert2}}),import_color_convert=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.f1)(require_color_convert());function u(){return(u=Object.assign||function(e2){for(var r2=1;r2=0||(o2[t2]=e2[t2]);return o2}function i(e2){var t2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(e2),n2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)((function(e3){t2.current&&t2.current(e3)}));return t2.current=e2,n2.current}var s=function(e2,r2,t2){return void 0===r2&&(r2=0),void 0===t2&&(t2=1),e2>t2?t2:e20:e3.buttons>0)&&m2.current?g2(d(m2.current,e3,b2.current)):t2(!1)},r2=function(){return t2(!1)};function t2(t3){var n2=_2.current,o3=v(m2.current),a3=t3?o3.addEventListener:o3.removeEventListener;a3(n2?"touchmove":"mousemove",e2),a3(n2?"touchend":"mouseup",r2)}return[function(e3){var e4,r3=e3.nativeEvent,n2=m2.current;if(n2&&(h(r3),e4=r3,(!_2.current||f(e4))&&n2)){if(f(r3)){_2.current=!0;var o3=r3.changedTouches||[];o3.length&&(b2.current=o3[0].identifier)}n2.focus(),g2(d(n2,r3,b2.current)),t2(!0)}},function(e3){var r3=e3.which||e3.keyCode;r3<37||r3>40||(e3.preventDefault(),p2({left:39===r3?.05:37===r3?-.05:0,top:40===r3?.05:38===r3?-.05:0}))},t2]}),[p2,g2]),C2=x2[0],E2=x2[1],H2=x2[2];return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){return H2}),[H2]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",u({},s2,{onTouchStart:C2,onMouseDown:C2,className:"react-colorful__interactive",ref:m2,onKeyDown:E2,tabIndex:0,role:"slider"}))})),g=function(e2){return e2.filter(Boolean).join(" ")},p=function(r2){var t2=r2.color,n2=r2.left,o2=r2.top,a2=void 0===o2?.5:o2,l2=g(["react-colorful__pointer",r2.className]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:l2,style:{top:100*a2+"%",left:100*n2+"%"}},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t2}}))},b=function(e2,r2,t2){return void 0===r2&&(r2=0),void 0===t2&&(t2=Math.pow(10,r2)),Math.round(t2*e2)/t2},_={grad:.9,turn:360,rad:360/(2*Math.PI)},C=function(e2){return"#"===e2[0]&&(e2=e2.substring(1)),e2.length<6?{r:parseInt(e2[0]+e2[0],16),g:parseInt(e2[1]+e2[1],16),b:parseInt(e2[2]+e2[2],16),a:4===e2.length?b(parseInt(e2[3]+e2[3],16)/255,2):1}:{r:parseInt(e2.substring(0,2),16),g:parseInt(e2.substring(2,4),16),b:parseInt(e2.substring(4,6),16),a:8===e2.length?b(parseInt(e2.substring(6,8),16)/255,2):1}},E=function(e2,r2){return void 0===r2&&(r2="deg"),Number(e2)*(_[r2]||1)},N=function(e2){var r2=e2.s,t2=e2.l;return{h:e2.h,s:(r2*=(t2<50?t2:100-t2)/100)>0?2*r2/(t2+r2)*100:0,v:t2+r2,a:e2.a}},y=function(e2){var r2=e2.s,t2=e2.v,n2=e2.a,o2=(200-r2)*t2/100;return{h:b(e2.h),s:b(o2>0&&o2<200?r2*t2/100/(o2<=100?o2:200-o2)*100:0),l:b(o2/2),a:b(n2,2)}},q=function(e2){var r2=y(e2);return"hsl("+r2.h+", "+r2.s+"%, "+r2.l+"%)"},k=function(e2){var r2=y(e2);return"hsla("+r2.h+", "+r2.s+"%, "+r2.l+"%, "+r2.a+")"},I=function(e2){var r2=e2.h,t2=e2.s,n2=e2.v,o2=e2.a;r2=r2/360*6,t2/=100,n2/=100;var a2=Math.floor(r2),l2=n2*(1-t2),u2=n2*(1-(r2-a2)*t2),c2=n2*(1-(1-r2+a2)*t2),i2=a2%6;return{r:b(255*[n2,u2,l2,l2,c2,n2][i2]),g:b(255*[c2,n2,n2,u2,l2,l2][i2]),b:b(255*[l2,l2,c2,n2,n2,u2][i2]),a:b(o2,2)}},D=function(e2){var r2=e2.toString(16);return r2.length<2?"0"+r2:r2},K=function(e2){var r2=e2.r,t2=e2.g,n2=e2.b,o2=e2.a,a2=o2<1?D(b(255*o2)):"";return"#"+D(r2)+D(t2)+D(n2)+a2},L=function(e2){var r2=e2.r,t2=e2.g,n2=e2.b,o2=e2.a,a2=Math.max(r2,t2,n2),l2=a2-Math.min(r2,t2,n2),u2=l2?a2===r2?(t2-n2)/l2:a2===t2?2+(n2-r2)/l2:4+(r2-t2)/l2:0;return{h:b(60*(u2<0?u2+6:u2)),s:b(a2?l2/a2*100:0),v:b(a2/255*100),a:o2}},S=react__WEBPACK_IMPORTED_MODULE_0__.memo((function(r2){var t2=r2.hue,n2=r2.onChange,o2=g(["react-colorful__hue",r2.className]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:o2},react__WEBPACK_IMPORTED_MODULE_0__.createElement(m,{onMove:function(e2){n2({h:360*e2.left})},onKey:function(e2){n2({h:s(t2+360*e2.left,0,360)})},"aria-label":"Hue","aria-valuenow":b(t2),"aria-valuemax":"360","aria-valuemin":"0"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,{className:"react-colorful__hue-pointer",left:t2/360,color:q({h:t2,s:100,v:100,a:1})})))})),T=react__WEBPACK_IMPORTED_MODULE_0__.memo((function(r2){var t2=r2.hsva,n2=r2.onChange,o2={backgroundColor:q({h:t2.h,s:100,v:100,a:1})};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"react-colorful__saturation",style:o2},react__WEBPACK_IMPORTED_MODULE_0__.createElement(m,{onMove:function(e2){n2({s:100*e2.left,v:100-100*e2.top})},onKey:function(e2){n2({s:s(t2.s+100*e2.left,0,100),v:s(t2.v-100*e2.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b(t2.s)+"%, Brightness "+b(t2.v)+"%"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t2.v/100,left:t2.s/100,color:q(t2)})))})),F=function(e2,r2){if(e2===r2)return!0;for(var t2 in e2)if(e2[t2]!==r2[t2])return!1;return!0},P=function(e2,r2){return e2.replace(/\s/g,"")===r2.replace(/\s/g,"")};function Y(e2,t2,l2){var u2=i(l2),c2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((function(){return e2.toHsva(t2)})),s2=c2[0],f2=c2[1],v2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({color:t2,hsva:s2});(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){if(!e2.equal(t2,v2.current.color)){var r2=e2.toHsva(t2);v2.current={hsva:r2,color:t2},f2(r2)}}),[t2,e2]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){var r2;F(s2,v2.current.hsva)||e2.equal(r2=e2.fromHsva(s2),v2.current.color)||(v2.current={hsva:s2,color:r2},u2(r2))}),[s2,e2,u2]);var d2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((function(e3){f2((function(r2){return Object.assign({},r2,e3)}))}),[]);return[s2,d2]}var ColorSpace2,V=typeof window<"u"?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect,J=new Map,Q=function(e2){V((function(){var r2=e2.current?e2.current.ownerDocument:document;if(void 0!==r2&&!J.has(r2)){var t2=r2.createElement("style");t2.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}',J.set(r2,t2);var n2=__webpack_require__.nc;n2&&t2.setAttribute("nonce",n2),r2.head.appendChild(t2)}}),[])},U=function(t2){var n2=t2.className,o2=t2.colorModel,a2=t2.color,l2=void 0===a2?o2.defaultColor:a2,i2=t2.onChange,s2=c(t2,["className","colorModel","color","onChange"]),f2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);Q(f2);var v2=Y(o2,l2,i2),d2=v2[0],h2=v2[1],m2=g(["react-colorful",n2]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",u({},s2,{ref:f2,className:m2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(T,{hsva:d2,onChange:h2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(S,{hue:d2.h,onChange:h2,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:function(e2){return L(C(e2))},fromHsva:function(e2){return function(e2){return K(I(e2))}({h:e2.h,s:e2.s,v:e2.v,a:1})},equal:function(e2,r2){return e2.toLowerCase()===r2.toLowerCase()||F(C(e2),C(r2))}},ee=function(r2){var t2=r2.className,n2=r2.hsva,o2=r2.onChange,a2={backgroundImage:"linear-gradient(90deg, "+k(Object.assign({},n2,{a:0}))+", "+k(Object.assign({},n2,{a:1}))+")"},l2=g(["react-colorful__alpha",t2]),u2=b(100*n2.a);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:l2},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"react-colorful__alpha-gradient",style:a2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(m,{onMove:function(e2){o2({a:e2.left})},onKey:function(e2){o2({a:s(n2.a+e2.left)})},"aria-label":"Alpha","aria-valuetext":u2+"%","aria-valuenow":u2,"aria-valuemin":"0","aria-valuemax":"100"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,{className:"react-colorful__alpha-pointer",left:n2.a,color:k(n2)})))},re=function(t2){var n2=t2.className,o2=t2.colorModel,a2=t2.color,l2=void 0===a2?o2.defaultColor:a2,i2=t2.onChange,s2=c(t2,["className","colorModel","color","onChange"]),f2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);Q(f2);var v2=Y(o2,l2,i2),d2=v2[0],h2=v2[1],m2=g(["react-colorful",n2]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",u({},s2,{ref:f2,className:m2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(T,{hsva:d2,onChange:h2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(S,{hue:d2.h,onChange:h2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ee,{hsva:d2,onChange:h2,className:"react-colorful__last-control"}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:function(e2){var r2=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e2);return r2?N({h:E(r2[1],r2[2]),s:Number(r2[3]),l:Number(r2[4]),a:void 0===r2[5]?1:Number(r2[5])/(r2[6]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:k,equal:P},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:function(e2){var r2=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e2);return r2?L({r:Number(r2[1])/(r2[2]?100/255:1),g:Number(r2[3])/(r2[4]?100/255:1),b:Number(r2[5])/(r2[6]?100/255:1),a:void 0===r2[7]?1:Number(r2[7])/(r2[8]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:function(e2){var r2=I(e2);return"rgba("+r2.r+", "+r2.g+", "+r2.b+", "+r2.a+")"},equal:P},Wrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),PickerTooltip=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__.kR)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),TooltipContent=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4.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"}}),Note=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__._)((({theme})=>({fontFamily:theme.typography.fonts.base}))),Swatches=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4.div((({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius}))),Swatch=({value,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), url('data:image/svg+xml;charset=utf-8,'), linear-gradient(#fff, #fff)`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SwatchColor,{...props,style:{...style,backgroundImage}})},Input=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__.lV.Input)((({theme,readOnly})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:theme.typography.fonts.base}))),ToggleIcon=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_4__.QDE)((({theme})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:theme.input.color}))),ColorSpace=((ColorSpace2=ColorSpace||{}).RGB="rgb",ColorSpace2.HSL="hsl",ColorSpace2.HEX="hex",ColorSpace2),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,RGB_REGEXP=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,HSL_REGEXP=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,HEX_REGEXP=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,SHORTHEX_REGEXP=/^\s*#?([0-9a-f]{3})\s*$/i,ColorPicker={hex:function(r2){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(U,u({},r2,{colorModel:W}))},rgb:function(r2){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(re,u({},r2,{colorModel:Ee}))},hsl:function(r2){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(re,u({},r2,{colorModel:le}))}},fallbackColor={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return[0,0,0,1];let[,x2,y2,z2,a2=1]=match;return[x2,y2,z2,a2].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r2,g2,b2,a2]=stringToArgs(value),[h2,s2,l2]=import_color_convert.default.rgb.hsl([r2,g2,b2])||[0,0,0];return{valid,value,keyword:import_color_convert.default.rgb.keyword([r2,g2,b2]),colorSpace:"rgb",rgb:value,hsl:`hsla(${h2}, ${s2}%, ${l2}%, ${a2})`,hex:`#${import_color_convert.default.rgb.hex([r2,g2,b2]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h2,s2,l2,a2]=stringToArgs(value),[r2,g2,b2]=import_color_convert.default.hsl.rgb([h2,s2,l2])||[0,0,0];return{valid,value,keyword:import_color_convert.default.hsl.keyword([h2,s2,l2]),colorSpace:"hsl",rgb:`rgba(${r2}, ${g2}, ${b2}, ${a2})`,hsl:value,hex:`#${import_color_convert.default.hsl.hex([h2,s2,l2]).toLowerCase()}`}}let plain=value.replace("#",""),rgb=import_color_convert.default.keyword.rgb(plain)||import_color_convert.default.hex.rgb(plain),hsl=import_color_convert.default.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith("#"))valid=HEX_REGEXP.test(mapped);else try{import_color_convert.default.keyword.hex(mapped)}catch{valid=!1}return{valid,value:mapped,keyword:import_color_convert.default.rgb.keyword(rgb),colorSpace:"hex",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},useColorInput=(initialValue,onChange)=>{let[value,setValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialValue||""),[color,setColor]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((()=>parseValue(value))),[colorSpace,setColorSpace]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(color?.colorSpace||"hex");(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let nextValue=initialValue||"",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||"hex")}),[initialValue]);let realValue=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>((value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if("hex"!==colorSpace)return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith("#"))try{return`#${import_color_convert.default.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r2,g2,b2]=short[1].split("");return`#${r2}${r2}${g2}${g2}${b2}${b2}`})(value,color,colorSpace).toLowerCase()),[value,color,colorSpace]),updateValue=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((update=>{let parsed=parseValue(update),v2=parsed?.value||update||"";setValue(v2),""===v2&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value))}),[onChange]),cycleColorSpace=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||"";setValue(update),onChange(update)}),[color,colorSpace,onChange]);return{value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\s*/,"").toLowerCase(),ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1,argType})=>{let debouncedOnChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.sg)(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,debouncedOnChange),{presets,addPreset}=((presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(currentColor?.valid?[currentColor]:[]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{void 0===currentColor&&setSelectedColors([])}),[currentColor]);let presets=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(presetColors||[]).map((preset=>"string"==typeof preset?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color))).concat(selectedColors).filter(Boolean).slice(-27)),[presetColors,selectedColors]),addPreset=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((color=>{color?.valid&&(presets.some((preset=>id(preset[colorSpace])===id(color[colorSpace])))||setSelectedColors((arr=>arr.concat(color))))}),[colorSpace,presets]);return{presets,addPreset}})(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace],readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper,{"aria-readonly":readonly},react__WEBPACK_IMPORTED_MODULE_0__.createElement(PickerTooltip,{startOpen,trigger:readonly?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:react__WEBPACK_IMPORTED_MODULE_0__.createElement(TooltipContent,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Picker,{color:"transparent"===realValue?"#000000":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Swatches,null,presets.map(((preset,index)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__.kR,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Note,{note:preset.keyword||preset.value})},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)}))))))},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Swatch,{value:realValue,style:{margin:4}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Input,{id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.ZA)(name),value,onChange:e2=>updateValue(e2.target.value),onFocus:e2=>e2.target.select(),readOnly:readonly,placeholder:"Choose color..."}),value?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ToggleIcon,{onClick:cycleColorSpace}):null)},Color_default=ColorControl}}]); \ No newline at end of file +"use strict";(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[260],{"./node_modules/.pnpm/@storybook+blocks@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ColorControl:()=>ColorControl,default:()=>Color_default});var _chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/@storybook+blocks@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/blocks/dist/chunk-2PTXLE6R.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/components/index.js"),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/theming/index.js"),_storybook_icons__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/.pnpm/@storybook+icons@1.2.12_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/@storybook/icons/dist/index.mjs"),require_color_name=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.P$)({"../../node_modules/color-name/index.js"(exports,module){module.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]}}}),require_conversions=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.P$)({"../../node_modules/color-convert/conversions.js"(exports,module){var cssKeywords=require_color_name(),reverseKeywords={};for(let key of Object.keys(cssKeywords))reverseKeywords[cssKeywords[key]]=key;var convert2={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"]}};module.exports=convert2;for(let model of Object.keys(convert2)){if(!("channels"in convert2[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert2[model]))throw new Error("missing channel labels property: "+model);if(convert2[model].labels.length!==convert2[model].channels)throw new Error("channel and label counts mismatch: "+model);let{channels,labels}=convert2[model];delete convert2[model].channels,delete convert2[model].labels,Object.defineProperty(convert2[model],"channels",{value:channels}),Object.defineProperty(convert2[model],"labels",{value:labels})}convert2.rgb.hsl=function(rgb){let h2,s2,r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,min=Math.min(r2,g2,b2),max=Math.max(r2,g2,b2),delta=max-min;max===min?h2=0:r2===max?h2=(g2-b2)/delta:g2===max?h2=2+(b2-r2)/delta:b2===max&&(h2=4+(r2-g2)/delta),h2=Math.min(60*h2,360),h2<0&&(h2+=360);let l2=(min+max)/2;return s2=max===min?0:l2<=.5?delta/(max+min):delta/(2-max-min),[h2,100*s2,100*l2]},convert2.rgb.hsv=function(rgb){let rdif,gdif,bdif,h2,s2,r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,v2=Math.max(r2,g2,b2),diff=v2-Math.min(r2,g2,b2),diffc=function(c2){return(v2-c2)/6/diff+.5};return 0===diff?(h2=0,s2=0):(s2=diff/v2,rdif=diffc(r2),gdif=diffc(g2),bdif=diffc(b2),r2===v2?h2=bdif-gdif:g2===v2?h2=1/3+rdif-bdif:b2===v2&&(h2=2/3+gdif-rdif),h2<0?h2+=1:h2>1&&(h2-=1)),[360*h2,100*s2,100*v2]},convert2.rgb.hwb=function(rgb){let r2=rgb[0],g2=rgb[1],b2=rgb[2],h2=convert2.rgb.hsl(rgb)[0],w2=1/255*Math.min(r2,Math.min(g2,b2));return b2=1-1/255*Math.max(r2,Math.max(g2,b2)),[h2,100*w2,100*b2]},convert2.rgb.cmyk=function(rgb){let r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,k2=Math.min(1-r2,1-g2,1-b2);return[100*((1-r2-k2)/(1-k2)||0),100*((1-g2-k2)/(1-k2)||0),100*((1-b2-k2)/(1-k2)||0),100*k2]},convert2.rgb.keyword=function(rgb){let reversed=reverseKeywords[rgb];if(reversed)return reversed;let currentClosestKeyword,currentClosestDistance=1/0;for(let keyword of Object.keys(cssKeywords)){let value=cssKeywords[keyword],distance=(y2=value,((x2=rgb)[0]-y2[0])**2+(x2[1]-y2[1])**2+(x2[2]-y2[2])**2);distance.04045?((r2+.055)/1.055)**2.4:r2/12.92,g2=g2>.04045?((g2+.055)/1.055)**2.4:g2/12.92,b2=b2>.04045?((b2+.055)/1.055)**2.4:b2/12.92,[100*(.4124*r2+.3576*g2+.1805*b2),100*(.2126*r2+.7152*g2+.0722*b2),100*(.0193*r2+.1192*g2+.9505*b2)]},convert2.rgb.lab=function(rgb){let xyz=convert2.rgb.xyz(rgb),x2=xyz[0],y2=xyz[1],z2=xyz[2];return x2/=95.047,y2/=100,z2/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z2=z2>.008856?z2**(1/3):7.787*z2+16/116,[116*y2-16,500*(x2-y2),200*(y2-z2)]},convert2.hsl.rgb=function(hsl){let t2,t3,val,h2=hsl[0]/360,s2=hsl[1]/100,l2=hsl[2]/100;if(0===s2)return val=255*l2,[val,val,val];t2=l2<.5?l2*(1+s2):l2+s2-l2*s2;let t1=2*l2-t2,rgb=[0,0,0];for(let i2=0;i2<3;i2++)t3=h2+1/3*-(i2-1),t3<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[i2]=255*val;return rgb},convert2.hsl.hsv=function(hsl){let h2=hsl[0],s2=hsl[1]/100,l2=hsl[2]/100,smin=s2,lmin=Math.max(l2,.01);return l2*=2,s2*=l2<=1?l2:2-l2,smin*=lmin<=1?lmin:2-lmin,[h2,100*(0===l2?2*smin/(lmin+smin):2*s2/(l2+s2)),100*((l2+s2)/2)]},convert2.hsv.rgb=function(hsv){let h2=hsv[0]/60,s2=hsv[1]/100,v2=hsv[2]/100,hi=Math.floor(h2)%6,f2=h2-Math.floor(h2),p2=255*v2*(1-s2),q2=255*v2*(1-s2*f2),t2=255*v2*(1-s2*(1-f2));switch(v2*=255,hi){case 0:return[v2,t2,p2];case 1:return[q2,v2,p2];case 2:return[p2,v2,t2];case 3:return[p2,q2,v2];case 4:return[t2,p2,v2];case 5:return[v2,p2,q2]}},convert2.hsv.hsl=function(hsv){let sl,l2,h2=hsv[0],s2=hsv[1]/100,v2=hsv[2]/100,vmin=Math.max(v2,.01);l2=(2-s2)*v2;let lmin=(2-s2)*vmin;return sl=s2*vmin,sl/=lmin<=1?lmin:2-lmin,sl=sl||0,l2/=2,[h2,100*sl,100*l2]},convert2.hwb.rgb=function(hwb){let f2,h2=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;ratio>1&&(wh/=ratio,bl/=ratio);let i2=Math.floor(6*h2),v2=1-bl;f2=6*h2-i2,1&i2&&(f2=1-f2);let r2,g2,b2,n2=wh+f2*(v2-wh);switch(i2){default:case 6:case 0:r2=v2,g2=n2,b2=wh;break;case 1:r2=n2,g2=v2,b2=wh;break;case 2:r2=wh,g2=v2,b2=n2;break;case 3:r2=wh,g2=n2,b2=v2;break;case 4:r2=n2,g2=wh,b2=v2;break;case 5:r2=v2,g2=wh,b2=n2}return[255*r2,255*g2,255*b2]},convert2.cmyk.rgb=function(cmyk){let c2=cmyk[0]/100,m2=cmyk[1]/100,y2=cmyk[2]/100,k2=cmyk[3]/100;return[255*(1-Math.min(1,c2*(1-k2)+k2)),255*(1-Math.min(1,m2*(1-k2)+k2)),255*(1-Math.min(1,y2*(1-k2)+k2))]},convert2.xyz.rgb=function(xyz){let r2,g2,b2,x2=xyz[0]/100,y2=xyz[1]/100,z2=xyz[2]/100;return r2=3.2406*x2+-1.5372*y2+-.4986*z2,g2=-.9689*x2+1.8758*y2+.0415*z2,b2=.0557*x2+-.204*y2+1.057*z2,r2=r2>.0031308?1.055*r2**(1/2.4)-.055:12.92*r2,g2=g2>.0031308?1.055*g2**(1/2.4)-.055:12.92*g2,b2=b2>.0031308?1.055*b2**(1/2.4)-.055:12.92*b2,r2=Math.min(Math.max(0,r2),1),g2=Math.min(Math.max(0,g2),1),b2=Math.min(Math.max(0,b2),1),[255*r2,255*g2,255*b2]},convert2.xyz.lab=function(xyz){let x2=xyz[0],y2=xyz[1],z2=xyz[2];return x2/=95.047,y2/=100,z2/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z2=z2>.008856?z2**(1/3):7.787*z2+16/116,[116*y2-16,500*(x2-y2),200*(y2-z2)]},convert2.lab.xyz=function(lab){let x2,y2,z2;y2=(lab[0]+16)/116,x2=lab[1]/500+y2,z2=y2-lab[2]/200;let y22=y2**3,x22=x2**3,z22=z2**3;return y2=y22>.008856?y22:(y2-16/116)/7.787,x2=x22>.008856?x22:(x2-16/116)/7.787,z2=z22>.008856?z22:(z2-16/116)/7.787,x2*=95.047,y2*=100,z2*=108.883,[x2,y2,z2]},convert2.lab.lch=function(lab){let h2,l2=lab[0],a2=lab[1],b2=lab[2];return h2=360*Math.atan2(b2,a2)/2/Math.PI,h2<0&&(h2+=360),[l2,Math.sqrt(a2*a2+b2*b2),h2]},convert2.lch.lab=function(lch){let l2=lch[0],c2=lch[1],hr=lch[2]/360*2*Math.PI;return[l2,c2*Math.cos(hr),c2*Math.sin(hr)]},convert2.rgb.ansi16=function(args,saturation=null){let[r2,g2,b2]=args,value=null===saturation?convert2.rgb.hsv(args)[2]:saturation;if(value=Math.round(value/50),0===value)return 30;let ansi=30+(Math.round(b2/255)<<2|Math.round(g2/255)<<1|Math.round(r2/255));return 2===value&&(ansi+=60),ansi},convert2.hsv.ansi16=function(args){return convert2.rgb.ansi16(convert2.hsv.rgb(args),args[2])},convert2.rgb.ansi256=function(args){let r2=args[0],g2=args[1],b2=args[2];return r2===g2&&g2===b2?r2<8?16:r2>248?231:Math.round((r2-8)/247*24)+232:16+36*Math.round(r2/255*5)+6*Math.round(g2/255*5)+Math.round(b2/255*5)},convert2.ansi16.rgb=function(args){let color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),color=color/10.5*255,[color,color,color];let mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert2.ansi256.rgb=function(args){if(args>=232){let c2=10*(args-232)+8;return[c2,c2,c2]}let rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert2.rgb.hex=function(args){let string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert2.hex.rgb=function(args){let match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];let colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map((char=>char+char)).join(""));let integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert2.rgb.hcg=function(rgb){let grayscale,hue,r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,max=Math.max(Math.max(r2,g2),b2),min=Math.min(Math.min(r2,g2),b2),chroma=max-min;return grayscale=chroma<1?min/(1-chroma):0,hue=chroma<=0?0:max===r2?(g2-b2)/chroma%6:max===g2?2+(b2-r2)/chroma:4+(r2-g2)/chroma,hue/=6,hue%=1,[360*hue,100*chroma,100*grayscale]},convert2.hsl.hcg=function(hsl){let s2=hsl[1]/100,l2=hsl[2]/100,c2=l2<.5?2*s2*l2:2*s2*(1-l2),f2=0;return c2<1&&(f2=(l2-.5*c2)/(1-c2)),[hsl[0],100*c2,100*f2]},convert2.hsv.hcg=function(hsv){let s2=hsv[1]/100,v2=hsv[2]/100,c2=s2*v2,f2=0;return c2<1&&(f2=(v2-c2)/(1-c2)),[hsv[0],100*c2,100*f2]},convert2.hcg.rgb=function(hcg){let h2=hcg[0]/360,c2=hcg[1]/100,g2=hcg[2]/100;if(0===c2)return[255*g2,255*g2,255*g2];let pure=[0,0,0],hi=h2%1*6,v2=hi%1,w2=1-v2,mg=0;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v2,pure[2]=0;break;case 1:pure[0]=w2,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v2;break;case 3:pure[0]=0,pure[1]=w2,pure[2]=1;break;case 4:pure[0]=v2,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w2}return mg=(1-c2)*g2,[255*(c2*pure[0]+mg),255*(c2*pure[1]+mg),255*(c2*pure[2]+mg)]},convert2.hcg.hsv=function(hcg){let c2=hcg[1]/100,v2=c2+hcg[2]/100*(1-c2),f2=0;return v2>0&&(f2=c2/v2),[hcg[0],100*f2,100*v2]},convert2.hcg.hsl=function(hcg){let c2=hcg[1]/100,l2=hcg[2]/100*(1-c2)+.5*c2,s2=0;return l2>0&&l2<.5?s2=c2/(2*l2):l2>=.5&&l2<1&&(s2=c2/(2*(1-l2))),[hcg[0],100*s2,100*l2]},convert2.hcg.hwb=function(hcg){let c2=hcg[1]/100,v2=c2+hcg[2]/100*(1-c2);return[hcg[0],100*(v2-c2),100*(1-v2)]},convert2.hwb.hcg=function(hwb){let w2=hwb[1]/100,v2=1-hwb[2]/100,c2=v2-w2,g2=0;return c2<1&&(g2=(v2-c2)/(1-c2)),[hwb[0],100*c2,100*g2]},convert2.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert2.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert2.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert2.gray.hsl=function(args){return[0,0,args[0]]},convert2.gray.hsv=convert2.gray.hsl,convert2.gray.hwb=function(gray){return[0,100,gray[0]]},convert2.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert2.gray.lab=function(gray){return[gray[0],0,0]},convert2.gray.hex=function(gray){let val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert2.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]}}}),require_route=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.P$)({"../../node_modules/color-convert/route.js"(exports,module){var conversions=require_conversions();function deriveBFS(fromModel){let graph=function buildGraph(){let graph={},models=Object.keys(conversions);for(let len=models.length,i2=0;i2{convert2[fromModel]={},Object.defineProperty(convert2[fromModel],"channels",{value:conversions[fromModel].channels}),Object.defineProperty(convert2[fromModel],"labels",{value:conversions[fromModel].labels});let routes=route(fromModel);Object.keys(routes).forEach((toModel=>{let fn=routes[toModel];convert2[fromModel][toModel]=function wrapRounded(fn){let wrappedFn=function(...args){let arg0=args[0];if(null==arg0)return arg0;arg0.length>1&&(args=arg0);let result=fn(args);if("object"==typeof result)for(let len=result.length,i2=0;i21&&(args=arg0),fn(args))};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn)}))})),module.exports=convert2}}),import_color_convert=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.f1)(require_color_convert());function u(){return(u=Object.assign||function(e2){for(var r2=1;r2=0||(o2[t2]=e2[t2]);return o2}function i(e2){var t2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(e2),n2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)((function(e3){t2.current&&t2.current(e3)}));return t2.current=e2,n2.current}var s=function(e2,r2,t2){return void 0===r2&&(r2=0),void 0===t2&&(t2=1),e2>t2?t2:e20:e3.buttons>0)&&m2.current?g2(d(m2.current,e3,b2.current)):t2(!1)},r2=function(){return t2(!1)};function t2(t3){var n2=_2.current,o3=v(m2.current),a3=t3?o3.addEventListener:o3.removeEventListener;a3(n2?"touchmove":"mousemove",e2),a3(n2?"touchend":"mouseup",r2)}return[function(e3){var e4,r3=e3.nativeEvent,n2=m2.current;if(n2&&(h(r3),e4=r3,(!_2.current||f(e4))&&n2)){if(f(r3)){_2.current=!0;var o3=r3.changedTouches||[];o3.length&&(b2.current=o3[0].identifier)}n2.focus(),g2(d(n2,r3,b2.current)),t2(!0)}},function(e3){var r3=e3.which||e3.keyCode;r3<37||r3>40||(e3.preventDefault(),p2({left:39===r3?.05:37===r3?-.05:0,top:40===r3?.05:38===r3?-.05:0}))},t2]}),[p2,g2]),C2=x2[0],E2=x2[1],H2=x2[2];return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){return H2}),[H2]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",u({},s2,{onTouchStart:C2,onMouseDown:C2,className:"react-colorful__interactive",ref:m2,onKeyDown:E2,tabIndex:0,role:"slider"}))})),g=function(e2){return e2.filter(Boolean).join(" ")},p=function(r2){var t2=r2.color,n2=r2.left,o2=r2.top,a2=void 0===o2?.5:o2,l2=g(["react-colorful__pointer",r2.className]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:l2,style:{top:100*a2+"%",left:100*n2+"%"}},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t2}}))},b=function(e2,r2,t2){return void 0===r2&&(r2=0),void 0===t2&&(t2=Math.pow(10,r2)),Math.round(t2*e2)/t2},_={grad:.9,turn:360,rad:360/(2*Math.PI)},C=function(e2){return"#"===e2[0]&&(e2=e2.substring(1)),e2.length<6?{r:parseInt(e2[0]+e2[0],16),g:parseInt(e2[1]+e2[1],16),b:parseInt(e2[2]+e2[2],16),a:4===e2.length?b(parseInt(e2[3]+e2[3],16)/255,2):1}:{r:parseInt(e2.substring(0,2),16),g:parseInt(e2.substring(2,4),16),b:parseInt(e2.substring(4,6),16),a:8===e2.length?b(parseInt(e2.substring(6,8),16)/255,2):1}},E=function(e2,r2){return void 0===r2&&(r2="deg"),Number(e2)*(_[r2]||1)},N=function(e2){var r2=e2.s,t2=e2.l;return{h:e2.h,s:(r2*=(t2<50?t2:100-t2)/100)>0?2*r2/(t2+r2)*100:0,v:t2+r2,a:e2.a}},y=function(e2){var r2=e2.s,t2=e2.v,n2=e2.a,o2=(200-r2)*t2/100;return{h:b(e2.h),s:b(o2>0&&o2<200?r2*t2/100/(o2<=100?o2:200-o2)*100:0),l:b(o2/2),a:b(n2,2)}},q=function(e2){var r2=y(e2);return"hsl("+r2.h+", "+r2.s+"%, "+r2.l+"%)"},k=function(e2){var r2=y(e2);return"hsla("+r2.h+", "+r2.s+"%, "+r2.l+"%, "+r2.a+")"},I=function(e2){var r2=e2.h,t2=e2.s,n2=e2.v,o2=e2.a;r2=r2/360*6,t2/=100,n2/=100;var a2=Math.floor(r2),l2=n2*(1-t2),u2=n2*(1-(r2-a2)*t2),c2=n2*(1-(1-r2+a2)*t2),i2=a2%6;return{r:b(255*[n2,u2,l2,l2,c2,n2][i2]),g:b(255*[c2,n2,n2,u2,l2,l2][i2]),b:b(255*[l2,l2,c2,n2,n2,u2][i2]),a:b(o2,2)}},D=function(e2){var r2=e2.toString(16);return r2.length<2?"0"+r2:r2},K=function(e2){var r2=e2.r,t2=e2.g,n2=e2.b,o2=e2.a,a2=o2<1?D(b(255*o2)):"";return"#"+D(r2)+D(t2)+D(n2)+a2},L=function(e2){var r2=e2.r,t2=e2.g,n2=e2.b,o2=e2.a,a2=Math.max(r2,t2,n2),l2=a2-Math.min(r2,t2,n2),u2=l2?a2===r2?(t2-n2)/l2:a2===t2?2+(n2-r2)/l2:4+(r2-t2)/l2:0;return{h:b(60*(u2<0?u2+6:u2)),s:b(a2?l2/a2*100:0),v:b(a2/255*100),a:o2}},S=react__WEBPACK_IMPORTED_MODULE_0__.memo((function(r2){var t2=r2.hue,n2=r2.onChange,o2=g(["react-colorful__hue",r2.className]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:o2},react__WEBPACK_IMPORTED_MODULE_0__.createElement(m,{onMove:function(e2){n2({h:360*e2.left})},onKey:function(e2){n2({h:s(t2+360*e2.left,0,360)})},"aria-label":"Hue","aria-valuenow":b(t2),"aria-valuemax":"360","aria-valuemin":"0"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,{className:"react-colorful__hue-pointer",left:t2/360,color:q({h:t2,s:100,v:100,a:1})})))})),T=react__WEBPACK_IMPORTED_MODULE_0__.memo((function(r2){var t2=r2.hsva,n2=r2.onChange,o2={backgroundColor:q({h:t2.h,s:100,v:100,a:1})};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"react-colorful__saturation",style:o2},react__WEBPACK_IMPORTED_MODULE_0__.createElement(m,{onMove:function(e2){n2({s:100*e2.left,v:100-100*e2.top})},onKey:function(e2){n2({s:s(t2.s+100*e2.left,0,100),v:s(t2.v-100*e2.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b(t2.s)+"%, Brightness "+b(t2.v)+"%"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t2.v/100,left:t2.s/100,color:q(t2)})))})),F=function(e2,r2){if(e2===r2)return!0;for(var t2 in e2)if(e2[t2]!==r2[t2])return!1;return!0},P=function(e2,r2){return e2.replace(/\s/g,"")===r2.replace(/\s/g,"")};function Y(e2,t2,l2){var u2=i(l2),c2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((function(){return e2.toHsva(t2)})),s2=c2[0],f2=c2[1],v2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({color:t2,hsva:s2});(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){if(!e2.equal(t2,v2.current.color)){var r2=e2.toHsva(t2);v2.current={hsva:r2,color:t2},f2(r2)}}),[t2,e2]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){var r2;F(s2,v2.current.hsva)||e2.equal(r2=e2.fromHsva(s2),v2.current.color)||(v2.current={hsva:s2,color:r2},u2(r2))}),[s2,e2,u2]);var d2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((function(e3){f2((function(r2){return Object.assign({},r2,e3)}))}),[]);return[s2,d2]}var ColorSpace2,V=typeof window<"u"?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect,J=new Map,Q=function(e2){V((function(){var r2=e2.current?e2.current.ownerDocument:document;if(void 0!==r2&&!J.has(r2)){var t2=r2.createElement("style");t2.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}',J.set(r2,t2);var n2=__webpack_require__.nc;n2&&t2.setAttribute("nonce",n2),r2.head.appendChild(t2)}}),[])},U=function(t2){var n2=t2.className,o2=t2.colorModel,a2=t2.color,l2=void 0===a2?o2.defaultColor:a2,i2=t2.onChange,s2=c(t2,["className","colorModel","color","onChange"]),f2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);Q(f2);var v2=Y(o2,l2,i2),d2=v2[0],h2=v2[1],m2=g(["react-colorful",n2]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",u({},s2,{ref:f2,className:m2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(T,{hsva:d2,onChange:h2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(S,{hue:d2.h,onChange:h2,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:function(e2){return L(C(e2))},fromHsva:function(e2){return function(e2){return K(I(e2))}({h:e2.h,s:e2.s,v:e2.v,a:1})},equal:function(e2,r2){return e2.toLowerCase()===r2.toLowerCase()||F(C(e2),C(r2))}},ee=function(r2){var t2=r2.className,n2=r2.hsva,o2=r2.onChange,a2={backgroundImage:"linear-gradient(90deg, "+k(Object.assign({},n2,{a:0}))+", "+k(Object.assign({},n2,{a:1}))+")"},l2=g(["react-colorful__alpha",t2]),u2=b(100*n2.a);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:l2},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"react-colorful__alpha-gradient",style:a2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(m,{onMove:function(e2){o2({a:e2.left})},onKey:function(e2){o2({a:s(n2.a+e2.left)})},"aria-label":"Alpha","aria-valuetext":u2+"%","aria-valuenow":u2,"aria-valuemin":"0","aria-valuemax":"100"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,{className:"react-colorful__alpha-pointer",left:n2.a,color:k(n2)})))},re=function(t2){var n2=t2.className,o2=t2.colorModel,a2=t2.color,l2=void 0===a2?o2.defaultColor:a2,i2=t2.onChange,s2=c(t2,["className","colorModel","color","onChange"]),f2=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);Q(f2);var v2=Y(o2,l2,i2),d2=v2[0],h2=v2[1],m2=g(["react-colorful",n2]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",u({},s2,{ref:f2,className:m2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(T,{hsva:d2,onChange:h2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(S,{hue:d2.h,onChange:h2}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ee,{hsva:d2,onChange:h2,className:"react-colorful__last-control"}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:function(e2){var r2=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e2);return r2?N({h:E(r2[1],r2[2]),s:Number(r2[3]),l:Number(r2[4]),a:void 0===r2[5]?1:Number(r2[5])/(r2[6]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:k,equal:P},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:function(e2){var r2=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e2);return r2?L({r:Number(r2[1])/(r2[2]?100/255:1),g:Number(r2[3])/(r2[4]?100/255:1),b:Number(r2[5])/(r2[6]?100/255:1),a:void 0===r2[7]?1:Number(r2[7])/(r2[8]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:function(e2){var r2=I(e2);return"rgba("+r2.r+", "+r2.g+", "+r2.b+", "+r2.a+")"},equal:P},Wrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),PickerTooltip=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__.kR)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),TooltipContent=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4.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"}}),Note=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__._)((({theme})=>({fontFamily:theme.typography.fonts.base}))),Swatches=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4.div((({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius}))),Swatch=({value,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), url('data:image/svg+xml;charset=utf-8,'), linear-gradient(#fff, #fff)`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SwatchColor,{...props,style:{...style,backgroundImage}})},Input=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__.lV.Input)((({theme,readOnly})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:theme.typography.fonts.base}))),ToggleIcon=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_2__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_4__.QDE)((({theme})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:theme.input.color}))),ColorSpace=((ColorSpace2=ColorSpace||{}).RGB="rgb",ColorSpace2.HSL="hsl",ColorSpace2.HEX="hex",ColorSpace2),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,RGB_REGEXP=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,HSL_REGEXP=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,HEX_REGEXP=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,SHORTHEX_REGEXP=/^\s*#?([0-9a-f]{3})\s*$/i,ColorPicker={hex:function(r2){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(U,u({},r2,{colorModel:W}))},rgb:function(r2){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(re,u({},r2,{colorModel:Ee}))},hsl:function(r2){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(re,u({},r2,{colorModel:le}))}},fallbackColor={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return[0,0,0,1];let[,x2,y2,z2,a2=1]=match;return[x2,y2,z2,a2].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r2,g2,b2,a2]=stringToArgs(value),[h2,s2,l2]=import_color_convert.default.rgb.hsl([r2,g2,b2])||[0,0,0];return{valid,value,keyword:import_color_convert.default.rgb.keyword([r2,g2,b2]),colorSpace:"rgb",rgb:value,hsl:`hsla(${h2}, ${s2}%, ${l2}%, ${a2})`,hex:`#${import_color_convert.default.rgb.hex([r2,g2,b2]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h2,s2,l2,a2]=stringToArgs(value),[r2,g2,b2]=import_color_convert.default.hsl.rgb([h2,s2,l2])||[0,0,0];return{valid,value,keyword:import_color_convert.default.hsl.keyword([h2,s2,l2]),colorSpace:"hsl",rgb:`rgba(${r2}, ${g2}, ${b2}, ${a2})`,hsl:value,hex:`#${import_color_convert.default.hsl.hex([h2,s2,l2]).toLowerCase()}`}}let plain=value.replace("#",""),rgb=import_color_convert.default.keyword.rgb(plain)||import_color_convert.default.hex.rgb(plain),hsl=import_color_convert.default.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith("#"))valid=HEX_REGEXP.test(mapped);else try{import_color_convert.default.keyword.hex(mapped)}catch{valid=!1}return{valid,value:mapped,keyword:import_color_convert.default.rgb.keyword(rgb),colorSpace:"hex",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},useColorInput=(initialValue,onChange)=>{let[value,setValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialValue||""),[color,setColor]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((()=>parseValue(value))),[colorSpace,setColorSpace]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(color?.colorSpace||"hex");(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let nextValue=initialValue||"",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||"hex")}),[initialValue]);let realValue=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>((value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if("hex"!==colorSpace)return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith("#"))try{return`#${import_color_convert.default.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r2,g2,b2]=short[1].split("");return`#${r2}${r2}${g2}${g2}${b2}${b2}`})(value,color,colorSpace).toLowerCase()),[value,color,colorSpace]),updateValue=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((update=>{let parsed=parseValue(update),v2=parsed?.value||update||"";setValue(v2),""===v2&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value))}),[onChange]),cycleColorSpace=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||"";setValue(update),onChange(update)}),[color,colorSpace,onChange]);return{value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\s*/,"").toLowerCase(),ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1,argType})=>{let debouncedOnChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.sg)(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,debouncedOnChange),{presets,addPreset}=((presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(currentColor?.valid?[currentColor]:[]);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{void 0===currentColor&&setSelectedColors([])}),[currentColor]);let presets=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>(presetColors||[]).map((preset=>"string"==typeof preset?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color))).concat(selectedColors).filter(Boolean).slice(-27)),[presetColors,selectedColors]),addPreset=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((color=>{color?.valid&&(presets.some((preset=>id(preset[colorSpace])===id(color[colorSpace])))||setSelectedColors((arr=>arr.concat(color))))}),[colorSpace,presets]);return{presets,addPreset}})(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace],readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper,{"aria-readonly":readonly},react__WEBPACK_IMPORTED_MODULE_0__.createElement(PickerTooltip,{startOpen,trigger:readonly?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:react__WEBPACK_IMPORTED_MODULE_0__.createElement(TooltipContent,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Picker,{color:"transparent"===realValue?"#000000":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Swatches,null,presets.map(((preset,index)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__.kR,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Note,{note:preset.keyword||preset.value})},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)}))))))},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Swatch,{value:realValue,style:{margin:4}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Input,{id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_1__.ZA)(name),value,onChange:e2=>updateValue(e2.target.value),onFocus:e2=>e2.target.select(),readOnly:readonly,placeholder:"Choose color..."}),value?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ToggleIcon,{onClick:cycleColorSpace}):null)},Color_default=ColorControl}}]); \ No newline at end of file diff --git a/720.df51a5f4.iframe.bundle.js b/421.bc4920eb.iframe.bundle.js similarity index 77% rename from 720.df51a5f4.iframe.bundle.js rename to 421.bc4920eb.iframe.bundle.js index 0ceb47d..f3c5d2a 100644 --- a/720.df51a5f4.iframe.bundle.js +++ b/421.bc4920eb.iframe.bundle.js @@ -1 +1 @@ -"use strict";(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[720],{"./node_modules/.pnpm/@storybook+react-dom-shim@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/react-dom-shim/dist/react-16.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{renderElement:()=>renderElement,unmountElement:()=>unmountElement});var react_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/index.js"),renderElement=async(node,el)=>new Promise((resolve=>{react_dom__WEBPACK_IMPORTED_MODULE_0__.render(node,el,(()=>resolve(null)))})),unmountElement=el=>{react_dom__WEBPACK_IMPORTED_MODULE_0__.unmountComponentAtNode(el)}}}]); \ No newline at end of file +"use strict";(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[421],{"./node_modules/.pnpm/@storybook+react-dom-shim@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/react-dom-shim/dist/react-16.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{renderElement:()=>renderElement,unmountElement:()=>unmountElement});var react_dom__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/index.js"),renderElement=async(node,el)=>new Promise((resolve=>{react_dom__WEBPACK_IMPORTED_MODULE_0__.render(node,el,(()=>resolve(null)))})),unmountElement=el=>{react_dom__WEBPACK_IMPORTED_MODULE_0__.unmountComponentAtNode(el)}}}]); \ No newline at end of file diff --git a/529.0e030490.iframe.bundle.js b/443.977eea32.iframe.bundle.js similarity index 99% rename from 529.0e030490.iframe.bundle.js rename to 443.977eea32.iframe.bundle.js index a6f0f77..0b49863 100644 --- a/529.0e030490.iframe.bundle.js +++ b/443.977eea32.iframe.bundle.js @@ -1,5 +1,5 @@ -/*! For license information please see 529.0e030490.iframe.bundle.js.LICENSE.txt */ -"use strict";(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[529],{"./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist/chunk-2PTXLE6R.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{P$:()=>__commonJS,Yq:()=>getControlSetterButtonId,ZA:()=>getControlId,f1:()=>__toESM,fN:()=>pickBy,ki:()=>__require,mg:()=>cloneDeep2,sb:()=>uniq,sg:()=>debounce2});var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__require=__webpack_require__("./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist sync recursive"),__commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__toESM=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod));function debounce(func,debounceMs,{signal,edges}={}){let pendingThis,pendingArgs=null,leading=null!=edges&&edges.includes("leading"),trailing=null==edges||edges.includes("trailing"),invoke=()=>{null!==pendingArgs&&(func.apply(pendingThis,pendingArgs),pendingThis=void 0,pendingArgs=null)},timeoutId=null,schedule=()=>{null!=timeoutId&&clearTimeout(timeoutId),timeoutId=setTimeout((()=>{timeoutId=null,trailing&&invoke(),cancel()}),debounceMs)},cancelTimer=()=>{null!==timeoutId&&(clearTimeout(timeoutId),timeoutId=null)},cancel=()=>{cancelTimer(),pendingThis=void 0,pendingArgs=null},debounced=function(...args){if(signal?.aborted)return;pendingThis=this,pendingArgs=args;let isFirstCall=null==timeoutId;schedule(),leading&&isFirstCall&&invoke()};return debounced.schedule=schedule,debounced.cancel=cancel,debounced.flush=()=>{cancelTimer(),invoke()},signal?.addEventListener("abort",cancel,{once:!0}),debounced}function debounce2(func,debounceMs=0,options={}){"object"!=typeof options&&(options={});let{signal,leading=!1,trailing=!0,maxWait}=options,edges=Array(2);leading&&(edges[0]="leading"),trailing&&(edges[1]="trailing");let result,pendingAt=null,_debounced=debounce((function(...args){result=func.apply(this,args),pendingAt=null}),debounceMs,{signal,edges}),debounced=function(...args){if(null!=maxWait)if(null===pendingAt)pendingAt=Date.now();else if(Date.now()-pendingAt>=maxWait)return result=func.apply(this,args),pendingAt=Date.now(),_debounced.cancel(),_debounced.schedule(),result;return _debounced.apply(this,args),result};return debounced.cancel=_debounced.cancel,debounced.flush=()=>(_debounced.flush(),result),debounced}function uniq(arr){return Array.from(new Set(arr))}function pickBy(obj,shouldPick){let result={},objEntries=Object.entries(obj);for(let i=0;i`control-${value.replace(/\s+/g,"-")}`,getControlSetterButtonId=value=>`set-${value.replace(/\s+/g,"-")}`},"./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Sw:()=>HeadersMdx,W8:()=>Meta,XA:()=>CodeOrSourceMdx,kQ:()=>Docs,zE:()=>AnchorMdx});var _chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist/chunk-2PTXLE6R.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/components/index.js"),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/theming/index.js"),_storybook_icons__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/.pnpm/@storybook+icons@1.2.12_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/@storybook/icons/dist/index.mjs"),storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("storybook/internal/client-logger"),_storybook_csf__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.1.11/node_modules/@storybook/csf/dist/index.mjs"),storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("storybook/internal/preview-api"),storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/docs-tools/index.js"),storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("storybook/internal/core-events"),ts_dedent__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"),storybook_internal_channels__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("storybook/internal/channels"),require_memoizerific=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/memoizerific/memoizerific.js"(exports,module){!function(f3){if("object"==typeof exports&&typeof module<"u")module.exports=f3();else if("function"==typeof define&&__webpack_require__.amdO)define([],f3);else{(typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:this).memoizerific=f3()}}((function(){return function e2(t2,n2,r2){function s2(o3,u2){if(!n2[o3]){if(!t2[o3]){var a2="function"==typeof _chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ki&&_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ki;if(!u2&&a2)return a2(o3,!0);if(i2)return i2(o3,!0);var f3=new Error("Cannot find module '"+o3+"'");throw f3.code="MODULE_NOT_FOUND",f3}var l2=n2[o3]={exports:{}};t2[o3][0].call(l2.exports,(function(e3){return s2(t2[o3][1][e3]||e3)}),l2,l2.exports,e2,t2,n2,r2)}return n2[o3].exports}for(var i2="function"==typeof _chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ki&&_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ki,o2=0;o2=0?(this.lastItem=this.list[index],this.list[index].val):void 0},Similar.prototype.set=function(key2,val){var index;return this.lastItem&&this.isEqual(this.lastItem.key,key2)?(this.lastItem.val=val,this):(index=this.indexOf(key2))>=0?(this.lastItem=this.list[index],this.list[index].val=val,this):(this.lastItem={key:key2,val},this.list.push(this.lastItem),this.size++,this)},Similar.prototype.delete=function(key2){var index;if(this.lastItem&&this.isEqual(this.lastItem.key,key2)&&(this.lastItem=void 0),(index=this.indexOf(key2))>=0)return this.size--,this.list.splice(index,1)[0]},Similar.prototype.has=function(key2){var index;return!(!this.lastItem||!this.isEqual(this.lastItem.key,key2))||(index=this.indexOf(key2))>=0&&(this.lastItem=this.list[index],!0)},Similar.prototype.forEach=function(callback,thisArg){var i2;for(i2=0;i20&&(lruPath[argsLengthMinusOne]={cacheItem:currentCache,arg:arguments[argsLengthMinusOne]},isMemoized?function moveToMostRecentLru(lru,lruPath){var isMatch,i2,ii,lruLen=lru.length,lruPathLen=lruPath.length;for(i2=0;i2limit&&function removeCachedResult(removedLru){var tmp,i2,removedLruLen=removedLru.length,currentLru=removedLru[removedLruLen-1];for(currentLru.cacheItem.delete(currentLru.arg),i2=removedLruLen-2;i2>=0&&(currentLru=removedLru[i2],!(tmp=currentLru.cacheItem.get(currentLru.arg))||!tmp.size);i2--)currentLru.cacheItem.delete(currentLru.arg)}(lru.shift())),memoizerific.wasMemoized=isMemoized,memoizerific.numArgs=argsLengthMinusOne+1,fnResult};return memoizerific.limit=limit,memoizerific.wasMemoized=!1,memoizerific.cache=cache,memoizerific.lru=lru,memoizerific}}},{"map-or-similar":1}]},{},[3])(3)}))}}),require_default_options=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/tocbot/src/js/default-options.js"(exports,module){module.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e2){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e2){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),require_build_html=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/tocbot/src/js/build-html.js"(exports,module){module.exports=function(options2){var tocElement,forEach=[].forEach,some=[].some,body=document.body,currentlyHighlighting=!0,SPACE_CHAR=" ";function createEl(d2,container){var link=container.appendChild(function createLink(data){var item=document.createElement("li"),a2=document.createElement("a");return options2.listItemClass&&item.setAttribute("class",options2.listItemClass),options2.onClick&&(a2.onclick=options2.onClick),options2.includeTitleTags&&a2.setAttribute("title",data.textContent),options2.includeHtml&&data.childNodes.length?forEach.call(data.childNodes,(function(node){a2.appendChild(node.cloneNode(!0))})):a2.textContent=data.textContent,a2.setAttribute("href",options2.basePath+"#"+data.id),a2.setAttribute("class",options2.linkClass+SPACE_CHAR+"node-name--"+data.nodeName+SPACE_CHAR+options2.extraLinkClasses),item.appendChild(a2),item}(d2));if(d2.children.length){var list=createList(d2.isCollapsed);d2.children.forEach((function(child){createEl(child,list)})),link.appendChild(list)}}function createList(isCollapsed){var listElement=options2.orderedList?"ol":"ul",list=document.createElement(listElement),classes=options2.listClass+SPACE_CHAR+options2.extraListClasses;return isCollapsed&&(classes=(classes=classes+SPACE_CHAR+options2.collapsibleClass)+SPACE_CHAR+options2.isCollapsedClass),list.setAttribute("class",classes),list}function getHeadingTopPos(obj){var position=0;return null!==obj&&(position=obj.offsetTop,options2.hasInnerContainers&&(position+=getHeadingTopPos(obj.offsetParent))),position}function updateClassname(obj,className){return obj&&obj.className!==className&&(obj.className=className),obj}function removeCollapsedFromParents(element){return element&&-1!==element.className.indexOf(options2.collapsibleClass)&&-1!==element.className.indexOf(options2.isCollapsedClass)?(updateClassname(element,element.className.replace(SPACE_CHAR+options2.isCollapsedClass,"")),removeCollapsedFromParents(element.parentNode.parentNode)):element}return{enableTocAnimation:function enableTocAnimation(){currentlyHighlighting=!0},disableTocAnimation:function disableTocAnimation(event){var target=event.target||event.srcElement;"string"!=typeof target.className||-1===target.className.indexOf(options2.linkClass)||(currentlyHighlighting=!1)},render:function render(parent,data){var container=createList(!1);if(data.forEach((function(d2){createEl(d2,container)})),null!==(tocElement=parent||tocElement))return tocElement.firstChild&&tocElement.removeChild(tocElement.firstChild),0===data.length?tocElement:tocElement.appendChild(container)},updateToc:function updateToc(headingsArray){var top;top=options2.scrollContainer&&document.querySelector(options2.scrollContainer)?document.querySelector(options2.scrollContainer).scrollTop:document.documentElement.scrollTop||body.scrollTop,options2.positionFixedSelector&&function updateFixedSidebarClass(){var top;top=options2.scrollContainer&&document.querySelector(options2.scrollContainer)?document.querySelector(options2.scrollContainer).scrollTop:document.documentElement.scrollTop||body.scrollTop;var posFixedEl=document.querySelector(options2.positionFixedSelector);"auto"===options2.fixedSidebarOffset&&(options2.fixedSidebarOffset=tocElement.offsetTop),top>options2.fixedSidebarOffset?-1===posFixedEl.className.indexOf(options2.positionFixedClass)&&(posFixedEl.className+=SPACE_CHAR+options2.positionFixedClass):posFixedEl.className=posFixedEl.className.replace(SPACE_CHAR+options2.positionFixedClass,"")}();var topHeader,headings=headingsArray;if(currentlyHighlighting&&null!==tocElement&&headings.length>0){some.call(headings,(function(heading,i2){return getHeadingTopPos(heading)>top+options2.headingsOffset+10?(topHeader=headings[0===i2?i2:i2-1],!0):i2===headings.length-1?(topHeader=headings[headings.length-1],!0):void 0}));var oldActiveTocLink=tocElement.querySelector("."+options2.activeLinkClass),activeTocLink=tocElement.querySelector("."+options2.linkClass+".node-name--"+topHeader.nodeName+'[href="'+options2.basePath+"#"+topHeader.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(oldActiveTocLink===activeTocLink)return;var tocLinks=tocElement.querySelectorAll("."+options2.linkClass);forEach.call(tocLinks,(function(tocLink){updateClassname(tocLink,tocLink.className.replace(SPACE_CHAR+options2.activeLinkClass,""))}));var tocLis=tocElement.querySelectorAll("."+options2.listItemClass);forEach.call(tocLis,(function(tocLi){updateClassname(tocLi,tocLi.className.replace(SPACE_CHAR+options2.activeListItemClass,""))})),activeTocLink&&-1===activeTocLink.className.indexOf(options2.activeLinkClass)&&(activeTocLink.className+=SPACE_CHAR+options2.activeLinkClass);var li=activeTocLink&&activeTocLink.parentNode;li&&-1===li.className.indexOf(options2.activeListItemClass)&&(li.className+=SPACE_CHAR+options2.activeListItemClass);var tocLists=tocElement.querySelectorAll("."+options2.listClass+"."+options2.collapsibleClass);forEach.call(tocLists,(function(list){-1===list.className.indexOf(options2.isCollapsedClass)&&(list.className+=SPACE_CHAR+options2.isCollapsedClass)})),activeTocLink&&activeTocLink.nextSibling&&-1!==activeTocLink.nextSibling.className.indexOf(options2.isCollapsedClass)&&updateClassname(activeTocLink.nextSibling,activeTocLink.nextSibling.className.replace(SPACE_CHAR+options2.isCollapsedClass,"")),removeCollapsedFromParents(activeTocLink&&activeTocLink.parentNode.parentNode)}}}}}}),require_parse_content=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/tocbot/src/js/parse-content.js"(exports,module){module.exports=function(options2){var reduce=[].reduce;function getLastItem(array2){return array2[array2.length-1]}function getHeadingLevel(heading){return+heading.nodeName.toUpperCase().replace("H","")}function getHeadingObject(heading){if(!function isHTMLElement(maybeElement){try{return maybeElement instanceof window.HTMLElement||maybeElement instanceof window.parent.HTMLElement}catch{return maybeElement instanceof window.HTMLElement}}(heading))return heading;if(options2.ignoreHiddenElements&&(!heading.offsetHeight||!heading.offsetParent))return null;let headingLabel=heading.getAttribute("data-heading-label")||(options2.headingLabelCallback?String(options2.headingLabelCallback(heading.innerText)):(heading.innerText||heading.textContent).trim());var obj={id:heading.id,children:[],nodeName:heading.nodeName,headingLevel:getHeadingLevel(heading),textContent:headingLabel};return options2.includeHtml&&(obj.childNodes=heading.childNodes),options2.headingObjectCallback?options2.headingObjectCallback(obj,heading):obj}return{nestHeadingsArray:function nestHeadingsArray(headingsArray){return reduce.call(headingsArray,(function(prev,curr){var currentHeading=getHeadingObject(curr);return currentHeading&&function addNode(node,nest){for(var obj=getHeadingObject(node),level=obj.headingLevel,array2=nest,lastItem=getLastItem(array2),counter=level-(lastItem?lastItem.headingLevel:0);counter>0&&(!(lastItem=getLastItem(array2))||level!==lastItem.headingLevel);)lastItem&&void 0!==lastItem.children&&(array2=lastItem.children),counter--;return level>=options2.collapseDepth&&(obj.isCollapsed=!0),array2.push(obj),array2}(currentHeading,prev.nest),prev}),{nest:[]})},selectHeadings:function selectHeadings(contentElement,headingSelector){var selectors=headingSelector;options2.ignoreSelector&&(selectors=headingSelector.split(",").map((function(selector){return selector.trim()+":not("+options2.ignoreSelector+")"})));try{return contentElement.querySelectorAll(selectors)}catch{return console.warn("Headers not found with selector: "+selectors),null}}}}}}),require_update_toc_scroll=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(exports,module){module.exports=function(options2){var toc=options2.tocElement||document.querySelector(options2.tocSelector);if(toc&&toc.scrollHeight>toc.clientHeight){var activeItem=toc.querySelector("."+options2.activeListItemClass);activeItem&&(toc.scrollTop=activeItem.offsetTop-options2.tocScrollOffset)}}}}),require_scroll_smooth=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(exports){exports.initSmoothScrolling=function initSmoothScrolling(options2){var duration=options2.duration,offset=options2.offset,pageUrl=location.hash?stripHash(location.href):location.href;function stripHash(url){return url.slice(0,url.lastIndexOf("#"))}!function delegatedLinkHijacking(){document.body.addEventListener("click",(function onClick(e2){!function isInPageLink(n2){return"a"===n2.tagName.toLowerCase()&&(n2.hash.length>0||"#"===n2.href.charAt(n2.href.length-1))&&(stripHash(n2.href)===pageUrl||stripHash(n2.href)+"#"===pageUrl)}(e2.target)||e2.target.className.indexOf("no-smooth-scroll")>-1||"#"===e2.target.href.charAt(e2.target.href.length-2)&&"!"===e2.target.href.charAt(e2.target.href.length-1)||-1===e2.target.className.indexOf(options2.linkClass)||function jump(target,options2){var timeStart,timeElapsed,start=window.pageYOffset,opt={duration:options2.duration,offset:options2.offset||0,callback:options2.callback,easing:options2.easing||easeInOutQuad},tgt=document.querySelector('[id="'+decodeURI(target).split("#").join("")+'"]')||document.querySelector('[id="'+target.split("#").join("")+'"]'),distance="string"==typeof target?opt.offset+(target?tgt&&tgt.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):target,duration="function"==typeof opt.duration?opt.duration(distance):opt.duration;function loop(time){timeElapsed=time-timeStart,window.scrollTo(0,opt.easing(timeElapsed,start,distance,duration)),timeElapsed"u")||supports){var headingsArray,hasOwnProperty5=Object.prototype.hasOwnProperty;return tocbot2.destroy=function(){var tocElement=getTocElement(options2);null!==tocElement&&(options2.skipRendering||tocElement&&(tocElement.innerHTML=""),options2.scrollContainer&&document.querySelector(options2.scrollContainer)?(document.querySelector(options2.scrollContainer).removeEventListener("scroll",this._scrollListener,!1),document.querySelector(options2.scrollContainer).removeEventListener("resize",this._scrollListener,!1),buildHtml&&document.querySelector(options2.scrollContainer).removeEventListener("click",this._clickListener,!1)):(document.removeEventListener("scroll",this._scrollListener,!1),document.removeEventListener("resize",this._scrollListener,!1),buildHtml&&document.removeEventListener("click",this._clickListener,!1)))},tocbot2.init=function(customOptions){if(supports){options2=function extend(){for(var target={},i2=0;i21?_len2-1:0),_key2=1;_key2<_len2;_key2++)args2[_key2-1]=arguments[_key2];return function _assertThisInitialized(e2){if(void 0===e2)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e2}(_Error.call(this,format.apply(void 0,[ERRORS[code]].concat(args2)))||this)}return function _inheritsLoose(t2,o2){t2.prototype=Object.create(o2.prototype),t2.prototype.constructor=t2,_setPrototypeOf(t2,o2)}(PolishedError2,_Error),PolishedError2}(_wrapNativeSuper(Error));function colorToInt(color){return Math.round(255*color)}function convertToInt(red,green,blue){return colorToInt(red)+","+colorToInt(green)+","+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert2){if(void 0===convert2&&(convert2=convertToInt),0===saturation)return convert2(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert2(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}var namedColorMap={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"};var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^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 parseToRgb(color){if("string"!=typeof color)throw new PolishedError(3);var normalizedColor=function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function parseToHsl(color){return function rgbToHsl(color){var red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return void 0!==color.alpha?{hue:0,saturation:0,lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness};var hue,delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"==typeof firstValue&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new PolishedError(7)}var isRgb=function(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||typeof color.alpha>"u")},isRgba=function(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha},isHsl=function(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||typeof color.alpha>"u")},isHsla=function(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha};function toColorString(color){if("object"!=typeof color)throw new PolishedError(8);if(isRgba(color))return rgba(color);if(isRgb(color))return rgb(color);if(isHsla(color))return function hsla(value3,saturation,lightness,alpha){if("number"==typeof value3&&"number"==typeof saturation&&"number"==typeof lightness&&"number"==typeof alpha)return alpha>=1?hslToHex(value3,saturation,lightness):"rgba("+hslToRgb(value3,saturation,lightness)+","+alpha+")";if("object"==typeof value3&&void 0===saturation&&void 0===lightness&&void 0===alpha)return value3.alpha>=1?hslToHex(value3.hue,value3.saturation,value3.lightness):"rgba("+hslToRgb(value3.hue,value3.saturation,value3.lightness)+","+value3.alpha+")";throw new PolishedError(2)}(color);if(isHsl(color))return function hsl(value3,saturation,lightness){if("number"==typeof value3&&"number"==typeof saturation&&"number"==typeof lightness)return hslToHex(value3,saturation,lightness);if("object"==typeof value3&&void 0===saturation&&void 0===lightness)return hslToHex(value3.hue,value3.saturation,value3.lightness);throw new PolishedError(1)}(color);throw new PolishedError(8)}function curried(f3,length,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f3.apply(this,combined):curried(f3,length,combined)}}function curry(f3){return curried(f3,f3.length,[])}function guard(lowerBoundary,upperBoundary,value3){return Math.max(lowerBoundary,Math.min(upperBoundary,value3))}var curriedDarken$1=curry((function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}));var curriedLighten$1=curry((function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}));var curriedOpacify$1=curry((function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)+100*parseFloat(amount))/100)}))}));var curriedTransparentize$1=curry((function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,+(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)-100*parseFloat(amount)).toFixed(2)/100)}))})),Wrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.YV,(({theme})=>({backgroundColor:"light"===theme.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:theme.appBorderRadius,border:`1px dashed ${theme.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:curriedTransparentize$1(.3,theme.color.defaultText),fontSize:theme.typography.size.s2}))),EmptyBlock=props=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper,{...props,className:"docblock-emptyblock sb-unstyled"}),StyledSyntaxHighlighter=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.bF)((({theme})=>({fontSize:theme.typography.size.s2-1+"px",lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:"light"===theme.base?"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"}}))),SourceSkeletonWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({background:theme.background.content,borderRadius:theme.appBorderRadius,border:`1px solid ${theme.appBorderColor}`,boxShadow:"light"===theme.base?"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"}))),SourceSkeletonPlaceholder=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.v_}`]:{margin:0}}))),SourceSkeleton=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeletonPlaceholder,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}})),Source=({isLoading,error,language,code,dark,format:format3=!1,...rest})=>{let{typography}=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.DP)();if(isLoading)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeleton,null);if(error)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(EmptyBlock,null,error);let syntaxHighlighter=react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,format:format3,language,className:"docblock-source sb-unstyled",...rest},code);if(typeof dark>"u")return syntaxHighlighter;let overrideTheme=dark?storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.Zj.dark:storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.Zj.light;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.NP,{theme:(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.C6)({...overrideTheme,fontCode:typography.fonts.mono,fontBase:typography.fonts.base})},syntaxHighlighter)},toGlobalSelector=element=>`& :where(${element}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${element}))`,Title=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.h1(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.YV,(({theme})=>({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,lineHeight:"32px","@media (min-width: 600px)":{fontSize:theme.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}))),Subtitle=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.h2(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.YV,(({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,"@media (min-width: 600px)":{fontSize:theme.typography.size.m1,lineHeight:"28px",marginBottom:24},color:curriedTransparentize$1(.25,theme.color.defaultText)}))),DocsContent=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>{let reset={fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},headers={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},code={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:"light"===theme.base?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:"light"===theme.base?theme.color.lighter:theme.color.border};return{maxWidth:1e3,width:"100%",[toGlobalSelector("a")]:{...reset,fontSize:"inherit",lineHeight:"24px",color:theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[toGlobalSelector("blockquote")]:{...reset,margin:"16px 0",borderLeft:`4px solid ${theme.color.medium}`,padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[toGlobalSelector("div")]:reset,[toGlobalSelector("dl")]:{...reset,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}},[toGlobalSelector("h1")]:{...reset,...headers,fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h2")]:{...reset,...headers,fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`},[toGlobalSelector("h3")]:{...reset,...headers,fontSize:`${theme.typography.size.m1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h4")]:{...reset,...headers,fontSize:`${theme.typography.size.s3}px`},[toGlobalSelector("h5")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`},[toGlobalSelector("h6")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},[toGlobalSelector("hr")]:{border:"0 none",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},[toGlobalSelector("img")]:{maxWidth:"100%"},[toGlobalSelector("li")]:{...reset,fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":code},[toGlobalSelector("ol")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[toGlobalSelector("p")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":code},[toGlobalSelector("pre")]:{...reset,fontFamily:theme.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"}},[toGlobalSelector("span")]:{...reset,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${theme.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:theme.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"}}},[toGlobalSelector("table")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===theme.base?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${theme.appBorderColor}`,color:theme.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}},[toGlobalSelector("ul")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}})),DocsWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({background:theme.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem","@media (min-width: 600px)":{}}))),DocsPageWrapper=({children,toc})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsWrapper,{className:"sbdocs sbdocs-wrapper"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsContent,{className:"sbdocs sbdocs-content"},children),toc),getBlockBackgroundStyle=theme=>({borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${theme.appBorderColor}`}),{window:globalWindow}=globalThis,IFrame=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id}=this.props;this.iframe=globalWindow.document.getElementById(id)}shouldComponentUpdate(nextProps){let{scale}=nextProps;return scale!==this.props.scale&&this.setIframeBodyStyle({width:100*scale+"%",height:100*scale+"%",transform:`scale(${1/scale})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}render(){let{id,title,src,allowFullScreen,scale,...rest}=this.props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("iframe",{id,title,src,...allowFullScreen?{allow:"fullscreen"}:{},loading:"lazy",...rest})}},ZoomContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({scale:1}),{PREVIEW_URL}=globalThis,BASE_URL=PREVIEW_URL||"iframe.html",storyBlockIdFromId=({story,primary})=>`story--${story.id}${primary?"--primary":""}`,InlineStory=props=>{let storyRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),[showLoader,setShowLoader]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),[error,setError]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),{story,height,autoplay,forceInitialArgs,renderStoryToElement}=props;return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(!story||!storyRef.current)return()=>{};let element=storyRef.current,cleanup=renderStoryToElement(story,element,{showMain:()=>{},showError:({title,description})=>setError(new Error(`${title} - ${description}`)),showException:err=>setError(err)},{autoplay,forceInitialArgs});return setShowLoader(!1),()=>{Promise.resolve().then((()=>cleanup()))}}),[autoplay,renderStoryToElement,story]),error?react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.Df,{error})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,height?react__WEBPACK_IMPORTED_MODULE_0__.createElement("style",null,`#${storyBlockIdFromId(props)} { min-height: ${height}; transform: translateZ(0); overflow: auto }`):null,showLoader&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StorySkeleton,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:storyRef,id:`${storyBlockIdFromId(props)}-inner`,"data-name":story.name}))},IFrameStory=({story,height="500px"})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{width:"100%",height}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ZoomContext.Consumer,null,(({scale})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(IFrame,{key:"iframe",id:`iframe--${story.id}`,title:story.name,src:(0,storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.jZ)(BASE_URL,story.id,{viewMode:"story"}),allowFullScreen:!0,scale,style:{width:"100%",height:"100%",border:"0 none"}})))),ErrorMessage=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.strong((({theme})=>({color:theme.color.orange}))),Story=props=>{let{inline,story}=props;return inline&&!props.autoplay&&story.usesMount?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ErrorMessage,null,"This story mounts inside of play. Set"," ",react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{id:storyBlockIdFromId(props),className:"sb-story sb-unstyled","data-story-block":"true"},inline?react__WEBPACK_IMPORTED_MODULE_0__.createElement(InlineStory,{...props}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(IFrameStory,{...props}))},StorySkeleton=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.aH,null),Bar=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.px)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Wrapper2=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",alignItems:"center",gap:4}),IconPlaceholder=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`}))),ChildrenContainer=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({isColumn,columns,layout})=>({display:isColumn||!columns?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:isColumn?"column":"row","& .innerZoomElementWrapper > *":isColumn?{width:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"inline-block"}})),(({layout="padded"})=>"centered"===layout||"padded"===layout?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}),(({layout="padded"})=>"centered"===layout?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}),(({columns})=>columns&&columns>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${columns} - 20px)`}}:{})),StyledSource=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(Source)((({theme})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:"none",background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content),color:theme.color.lightest,button:{background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content)}}))),PreviewContainer=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme,withSource,isExpanded})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...getBlockBackgroundStyle(theme),borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0,"h3 + &":{marginTop:"16px"}})),(({withToolbar})=>withToolbar&&{paddingTop:40}));function getStoryId(children){if(1===react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children)){let elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)((({isLoading,storyId,baseUrl,zoom,resetZoom,...rest})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Bar,{...rest},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper2,{key:"left"},isLoading?[1,2,3].map((key2=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(IconPlaceholder,{key:key2}))):react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.K0,{key:"zoomin",onClick:e2=>{e2.preventDefault(),zoom(.8)},title:"Zoom in"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.PU,null)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.K0,{key:"zoomout",onClick:e2=>{e2.preventDefault(),zoom(1.25)},title:"Zoom out"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.LoD,null)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.K0,{key:"zoomreset",onClick:e2=>{e2.preventDefault(),resetZoom()},title:"Reset zoom"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.wV5,null)))))))({position:"absolute",top:0,left:0,right:0,height:40}),Relative=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({overflow:"hidden",position:"relative"}),Preview=({isLoading,isColumn,columns,children,withSource,withToolbar=!1,isExpanded=!1,additionalActions,className,layout="padded",...props})=>{let[expanded,setExpanded]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(isExpanded),{source:source2,actionItem}=((withSource,expanded,setExpanded)=>{switch(!0){case!(!withSource||!withSource.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>setExpanded(!1)}};case expanded:return{source:react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>setExpanded(!1)}};default:return{source:react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>setExpanded(!0)}}}})(withSource,expanded,setExpanded),[scale,setScale]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(1),previewClasses=[className].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),defaultActionItems=withSource?[actionItem]:[],[additionalActionItems,setAdditionalActionItems]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(additionalActions?[...additionalActions]:[]),actionItems=[...defaultActionItems,...additionalActionItems],{window:globalWindow4}=globalThis,copyToClipboard=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((async text=>{let{createCopyToClipboardFunction}=await __webpack_require__.e(903).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/storybook@8.4.5_prettier@3.4.1/node_modules/storybook/core/components/index.js"));createCopyToClipboardFunction()}),[]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(PreviewContainer,{withSource,withToolbar,...props,className:previewClasses.join(" ")},withToolbar&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(PositionedToolbar,{isLoading,border:!0,zoom:z2=>setScale(scale*z2),resetZoom:()=>setScale(1),storyId:getStoryId(children),baseUrl:"./iframe.html"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ZoomContext.Provider,{value:{scale}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Relative,{className:"docs-story",onCopyCapture:withSource&&(e2=>{let selection=globalWindow4.getSelection();selection&&"Range"===selection.type||(e2.preventDefault(),0===additionalActionItems.filter((item=>"Copied"===item.title)).length&©ToClipboard(source2.props.code).then((()=>{setAdditionalActionItems([...additionalActionItems,{title:"Copied",onClick:()=>{}}]),globalWindow4.setTimeout((()=>setAdditionalActionItems(additionalActionItems.filter((item=>"Copied"!==item.title)))),1500)})))})},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout},react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.GP.Element,{scale},Array.isArray(children)?children.map(((child,i2)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{key:i2},child))):react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,children))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.E7,{actionItems}))),withSource&&expanded&&source2)};function n(){return n=Object.assign?Object.assign.bind():function(e2){for(var n2=1;n2({".docs-story":{paddingTop:32,paddingBottom:40}})));var r,i,e2,t=["children","options"];(e2=r||(r={})).blockQuote="0",e2.breakLine="1",e2.breakThematic="2",e2.codeBlock="3",e2.codeFenced="4",e2.codeInline="5",e2.footnote="6",e2.footnoteReference="7",e2.gfmTask="8",e2.heading="9",e2.headingSetext="10",e2.htmlBlock="11",e2.htmlComment="12",e2.htmlSelfClosing="13",e2.image="14",e2.link="15",e2.linkAngleBraceStyleDetector="16",e2.linkBareUrlDetector="17",e2.linkMailtoDetector="18",e2.newlineCoalescer="19",e2.orderedList="20",e2.paragraph="21",e2.ref="22",e2.refImage="23",e2.refLink="24",e2.table="25",e2.tableSeparator="26",e2.text="27",e2.textBolded="28",e2.textEmphasized="29",e2.textEscaped="30",e2.textMarked="31",e2.textStrikethroughed="32",e2.unorderedList="33",function(e2){e2[e2.MAX=0]="MAX",e2[e2.HIGH=1]="HIGH",e2[e2.MED=2]="MED",e2[e2.LOW=3]="LOW",e2[e2.MIN=4]="MIN"}(i||(i={}));var l=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e2,n2)=>(e2[n2.toLowerCase()]=n2,e2)),{for:"htmlFor"}),o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],a=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,d=/\n{2,}$/,u=/^(\s*>[\s\S]*?)(?=\n{2,})/,p=/^ *> ?/gm,f2=/^ {2,}\n/,h=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,k=/^(?:\n *)*\n/,x=/\r\n?/g,b=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,v=/^\[\^([^\]]+)]/,$=/\f/g,w=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,E=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,C=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^)/,R=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,z=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,M=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\/[^ >]+)>/,B=/-([a-z])?/gi,N=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,H=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,D=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,P=/^\[([^\]]*)\] ?\[([^\]]*)\]/,_=/(\[|\])/g,F=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,W=/\t/g,G=/^ *\| */,Z=/(^ *\||\| *$)/g,q=/ *$/,V=/^ *:-+: *$/,X=/^ *:-+ *$/,Q=/^ *-+: *$/,J="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",K=new RegExp(`^([*_])\\1${J}\\1\\1(?!\\1)`),Y=new RegExp(`^([*_])${J}\\1(?!\\1|\\w)`),ee=new RegExp(`^==${J}==`),ne=new RegExp(`^~~${J}~~`),te=/^\\([^0-9A-Za-z\s])/,re=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ie=/^\n+/,le=/^([ \t]*)/,oe=/\\([^\\])/g,ce=/ *\n+$/,ae=/(?:^|\n)( *)$/,se="(?:\\d+\\.)",de="(?:[*+-])";function ue(e2){return"( *)("+(1===e2?se:de)+") +"}var pe=ue(1),fe=ue(2);function he(e2){return new RegExp("^"+(1===e2?pe:fe))}var me=he(1),ge=he(2);function ye(e2){return new RegExp("^"+(1===e2?pe:fe)+"[^\\n]*(?:\\n(?!\\1"+(1===e2?se:de)+" )[^\\n]*)*(\\n|$)","gm")}var ke=ye(1),xe=ye(2);function be(e2){let n2=1===e2?se:de;return new RegExp("^( *)("+n2+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n2+" (?!"+n2+" ))\\n*|\\s*\\n*$)")}var ve=be(1),$e=be(2);function we(e2,n2){let t2=1===n2,r2=t2?ve:$e,i2=t2?ke:xe,l2=t2?me:ge;return{match(e3,n3,t3){let i3=ae.exec(t3);return i3&&(n3.list||!n3.inline&&!n3.simple)?r2.exec(e3=i3[1]+e3):null},order:1,parse(e3,n3,r3){let o2=t2?+e3[2]:void 0,c2=e3[0].replace(d,"\n").match(i2),a2=!1;return{items:c2.map((function(e4,t3){let i3=l2.exec(e4)[0].length,o3=new RegExp("^ {1,"+i3+"}","gm"),s2=e4.replace(o3,"").replace(l2,""),d2=t3===c2.length-1,u2=-1!==s2.indexOf("\n\n")||d2&&a2;a2=u2;let h2,p2=r3.inline,f3=r3.list;r3.list=!0,u2?(r3.inline=!1,h2=s2.replace(ce,"\n\n")):(r3.inline=!0,h2=s2.replace(ce,""));let m2=n3(h2,r3);return r3.inline=p2,r3.list=f3,m2})),ordered:t2,start:o2}},render:(n3,t3,r3)=>e2(n3.ordered?"ol":"ul",{key:r3.key,start:"20"===n3.type?n3.start:void 0},n3.items.map((function(n4,i3){return e2("li",{key:i3},t3(n4,r3))})))}}var Ee=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Se=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ce=[u,m,g,S,A,C,L,N,ke,ve,xe,$e],Ae=[...Ce,/^[^\n]+(?: \n|\n{2,})/,O,z];function Oe(e2){return e2.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Te(e2){return Q.test(e2)?"right":V.test(e2)?"center":X.test(e2)?"left":null}function Le(e2,n2,t2){let r2=t2.inTable;t2.inTable=!0;let i2=n2(e2.trim(),t2);t2.inTable=r2;let l2=[[]];return i2.forEach((function(e3,n3){"26"===e3.type?0!==n3&&n3!==i2.length-1&&l2.push([]):("27"!==e3.type||null!=i2[n3+1]&&"26"!==i2[n3+1].type||(e3.text=e3.text.replace(q,"")),l2[l2.length-1].push(e3))})),l2}function Re(e2,n2,t2){t2.inline=!0;let r2=Le(e2[1],n2,t2),i2=e2[2].replace(Z,"").split("|").map(Te),l2=(e3=e2[3],n3=n2,t3=t2,e3.trim().split("\n").map((function(e4){return Le(e4,n3,t3)})));var e3,n3,t3;return t2.inline=!1,{align:i2,cells:l2,header:r2,type:"25"}}function ze(e2,n2){return null==e2.align[n2]?{}:{textAlign:e2.align[n2]}}function Me(e2){return function(n2,t2){return t2.inline?e2.exec(n2):null}}function Ie(e2){return function(n2,t2){return t2.inline||t2.simple?e2.exec(n2):null}}function Ue(e2){return function(n2,t2){return t2.inline||t2.simple?null:e2.exec(n2)}}function je(e2){return function(n2){return e2.exec(n2)}}function Be(e2,n2,t2){if(n2.inline||n2.simple||t2&&!t2.endsWith("\n"))return null;let r2="";e2.split("\n").every((e3=>!Ce.some((n3=>n3.test(e3)))&&(r2+=e3+"\n",e3.trim())));let i2=r2.trimEnd();return""==i2?null:[r2,i2]}function Ne(e2){try{if(decodeURIComponent(e2).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e2}function He(e2){return e2.replace(oe,"$1")}function De(e2,n2,t2){let r2=t2.inline||!1,i2=t2.simple||!1;t2.inline=!0,t2.simple=!0;let l2=e2(n2,t2);return t2.inline=r2,t2.simple=i2,l2}function Pe(e2,n2,t2){let r2=t2.inline||!1,i2=t2.simple||!1;t2.inline=!1,t2.simple=!0;let l2=e2(n2,t2);return t2.inline=r2,t2.simple=i2,l2}function _e(e2,n2,t2){return t2.inline=!1,e2(n2,t2)}var Fe=(e2,n2,t2)=>({children:De(n2,e2[1],t2)});function We(){return{}}function Ge(){return null}function Ze(...e2){return e2.filter(Boolean).join(" ")}function qe(e2,n2,t2){let r2=e2,i2=n2.split(".");for(;i2.length&&(r2=r2[i2[0]],void 0!==r2);)i2.shift();return r2||t2}var index_modern_default=n2=>{let{children:r2="",options:i2}=n2,l2=function(e2,n3){if(null==e2)return{};var t2,r3,i3={},l3=Object.keys(e2);for(r3=0;r3=0||(i3[t2]=e2[t2]);return i3}(n2,t);return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(function Ve(t2="",r2={}){r2.overrides=r2.overrides||{},r2.slugify=r2.slugify||Oe,r2.namedCodesToUnicode=r2.namedCodesToUnicode?n({},o,r2.namedCodesToUnicode):o;let i2=r2.createElement||react__WEBPACK_IMPORTED_MODULE_0__.createElement;function d2(e2,t3,...l2){let o2=qe(r2.overrides,`${e2}.props`,{});return i2(function(e3,n2){let t4=qe(n2,e3);return t4?"function"==typeof t4||"object"==typeof t4&&"render"in t4?t4:qe(n2,`${e3}.component`,e3):e3}(e2,r2.overrides),n({},t3,o2,{className:Ze(t3?.className,o2.className)||void 0}),...l2)}function Z2(n2){n2=n2.replace(w,"");let t3=!1;r2.forceInline?t3=!0:r2.forceBlock||(t3=!1===F.test(n2));let i3=oe2(J2(t3?n2:`${n2.trimEnd().replace(ie,"")}\n\n`,{inline:t3}));for(;"string"==typeof i3[i3.length-1]&&!i3[i3.length-1].trim();)i3.pop();if(null===r2.wrapper)return i3;let o2,l2=r2.wrapper||(t3?"span":"div");if(i3.length>1||r2.forceWrapper)o2=i3;else{if(1===i3.length)return o2=i3[0],"string"==typeof o2?d2("span",{key:"outer"},o2):o2;o2=null}return react__WEBPACK_IMPORTED_MODULE_0__.createElement(l2,{key:"outer"},o2)}function q2(n2){let t3=n2.match(a);return t3?t3.reduce((function(n3,t4,r3){let i3=t4.indexOf("=");if(-1!==i3){let o2=function(e2){return-1!==e2.indexOf("-")&&null===e2.match(R)&&(e2=e2.replace(B,(function(e3,n4){return n4.toUpperCase()}))),e2}(t4.slice(0,i3)).trim(),c2=function(e2){let n4=e2[0];return('"'===n4||"'"===n4)&&e2.length>=2&&e2[e2.length-1]===n4?e2.slice(1,-1):e2}(t4.slice(i3+1).trim()),a2=l[o2]||o2,s2=n3[a2]=function(e2,n4){return"style"===e2?n4.split(/;\s?/).reduce((function(e3,n5){let t5=n5.slice(0,n5.indexOf(":"));return e3[t5.trim().replace(/(-[a-z])/g,(e4=>e4[1].toUpperCase()))]=n5.slice(t5.length+1).trim(),e3}),{}):"href"===e2||"src"===e2?Ne(n4):(n4.match(M)&&(n4=n4.slice(1,n4.length-1)),"true"===n4||"false"!==n4&&n4)}(o2,c2);"string"==typeof s2&&(O.test(s2)||z.test(s2))&&(n3[a2]=react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(Z2(s2.trim()),{key:r3}))}else"style"!==t4&&(n3[l[t4]||t4]=!0);return n3}),{}):null}let V2=[],X2={},Q2={0:{match:Ue(u),order:1,parse:(e2,n2,t3)=>({children:n2(e2[0].replace(p,""),t3)}),render:(e2,n2,t3)=>d2("blockquote",{key:t3.key},n2(e2.children,t3))},1:{match:je(f2),order:1,parse:We,render:(e2,n2,t3)=>d2("br",{key:t3.key})},2:{match:Ue(h),order:1,parse:We,render:(e2,n2,t3)=>d2("hr",{key:t3.key})},3:{match:Ue(g),order:0,parse:e2=>({lang:void 0,text:e2[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e2,t3,r3)=>d2("pre",{key:r3.key},d2("code",n({},e2.attrs,{className:e2.lang?`lang-${e2.lang}`:""}),e2.text))},4:{match:Ue(m),order:0,parse:e2=>({attrs:q2(e2[3]||""),lang:e2[2]||void 0,text:e2[4],type:"3"})},5:{match:Ie(y),order:3,parse:e2=>({text:e2[2]}),render:(e2,n2,t3)=>d2("code",{key:t3.key},e2.text)},6:{match:Ue(b),order:0,parse:e2=>(V2.push({footnote:e2[2],identifier:e2[1]}),{}),render:Ge},7:{match:Me(v),order:1,parse:e2=>({target:`#${r2.slugify(e2[1])}`,text:e2[1]}),render:(e2,n2,t3)=>d2("a",{key:t3.key,href:Ne(e2.target)},d2("sup",{key:t3.key},e2.text))},8:{match:Me(E),order:1,parse:e2=>({completed:"x"===e2[1].toLowerCase()}),render:(e2,n2,t3)=>d2("input",{checked:e2.completed,key:t3.key,readOnly:!0,type:"checkbox"})},9:{match:Ue(r2.enforceAtxHeadings?C:S),order:1,parse:(e2,n2,t3)=>({children:De(n2,e2[2],t3),id:r2.slugify(e2[2]),level:e2[1].length}),render:(e2,n2,t3)=>d2(`h${e2.level}`,{id:e2.id,key:t3.key},n2(e2.children,t3))},10:{match:Ue(A),order:0,parse:(e2,n2,t3)=>({children:De(n2,e2[1],t3),level:"="===e2[2]?1:2,type:"9"})},11:{match:je(O),order:1,parse(e2,n2,t3){let[,r3]=e2[3].match(le),i3=new RegExp(`^${r3}`,"gm"),l2=e2[3].replace(i3,""),o2=(a2=l2,Ae.some((e3=>e3.test(a2)))?_e:De);var a2;let s2=e2[1].toLowerCase(),d3=-1!==c.indexOf(s2),u2={attrs:q2(e2[2]),noInnerParse:d3,tag:(d3?s2:e2[1]).trim()};return t3.inAnchor=t3.inAnchor||"a"===s2,d3?u2.text=e2[3]:u2.children=o2(n2,l2,t3),t3.inAnchor=!1,u2},render:(e2,t3,r3)=>d2(e2.tag,n({key:r3.key},e2.attrs),e2.text||t3(e2.children,r3))},13:{match:je(z),order:1,parse:e2=>({attrs:q2(e2[2]||""),tag:e2[1].trim()}),render:(e2,t3,r3)=>d2(e2.tag,n({},e2.attrs,{key:r3.key}))},12:{match:je(L),order:1,parse:()=>({}),render:Ge},14:{match:Ie(Se),order:1,parse:e2=>({alt:e2[1],target:He(e2[2]),title:e2[3]}),render:(e2,n2,t3)=>d2("img",{key:t3.key,alt:e2.alt||void 0,title:e2.title||void 0,src:Ne(e2.target)})},15:{match:Me(Ee),order:3,parse:(e2,n2,t3)=>({children:Pe(n2,e2[1],t3),target:He(e2[2]),title:e2[3]}),render:(e2,n2,t3)=>d2("a",{key:t3.key,href:Ne(e2.target),title:e2.title},n2(e2.children,t3))},16:{match:Me(j),order:0,parse:e2=>({children:[{text:e2[1],type:"27"}],target:e2[1],type:"15"})},17:{match:(e2,n2)=>n2.inAnchor?null:Me(I)(e2,n2),order:0,parse:e2=>({children:[{text:e2[1],type:"27"}],target:e2[1],title:void 0,type:"15"})},18:{match:Me(U),order:0,parse(e2){let n2=e2[1],t3=e2[1];return s.test(t3)||(t3="mailto:"+t3),{children:[{text:n2.replace("mailto:",""),type:"27"}],target:t3,type:"15"}}},20:we(d2,1),33:we(d2,2),19:{match:Ue(k),order:3,parse:We,render:()=>"\n"},21:{match:Be,order:3,parse:Fe,render:(e2,n2,t3)=>d2("p",{key:t3.key},n2(e2.children,t3))},22:{match:Me(H),order:0,parse:e2=>(X2[e2[1]]={target:e2[2],title:e2[4]},{}),render:Ge},23:{match:Ie(D),order:0,parse:e2=>({alt:e2[1]||void 0,ref:e2[2]}),render:(e2,n2,t3)=>X2[e2.ref]?d2("img",{key:t3.key,alt:e2.alt,src:Ne(X2[e2.ref].target),title:X2[e2.ref].title}):null},24:{match:Me(P),order:0,parse:(e2,n2,t3)=>({children:n2(e2[1],t3),fallbackChildren:n2(e2[0].replace(_,"\\$1"),t3),ref:e2[2]}),render:(e2,n2,t3)=>X2[e2.ref]?d2("a",{key:t3.key,href:Ne(X2[e2.ref].target),title:X2[e2.ref].title},n2(e2.children,t3)):d2("span",{key:t3.key},n2(e2.fallbackChildren,t3))},25:{match:Ue(N),order:1,parse:Re,render:(e2,n2,t3)=>d2("table",{key:t3.key},d2("thead",null,d2("tr",null,e2.header.map((function(r3,i3){return d2("th",{key:i3,style:ze(e2,i3)},n2(r3,t3))})))),d2("tbody",null,e2.cells.map((function(r3,i3){return d2("tr",{key:i3},r3.map((function(r4,i4){return d2("td",{key:i4,style:ze(e2,i4)},n2(r4,t3))})))}))))},26:{match:function(e2,n2){return n2.inTable?(n2.inline=!0,G.exec(e2)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:je(re),order:4,parse:e2=>({text:e2[0].replace(T,((e3,n2)=>r2.namedCodesToUnicode[n2]?r2.namedCodesToUnicode[n2]:e3))}),render:e2=>e2.text},28:{match:Ie(K),order:2,parse:(e2,n2,t3)=>({children:n2(e2[2],t3)}),render:(e2,n2,t3)=>d2("strong",{key:t3.key},n2(e2.children,t3))},29:{match:Ie(Y),order:3,parse:(e2,n2,t3)=>({children:n2(e2[2],t3)}),render:(e2,n2,t3)=>d2("em",{key:t3.key},n2(e2.children,t3))},30:{match:Ie(te),order:1,parse:e2=>({text:e2[1],type:"27"})},31:{match:Ie(ee),order:3,parse:Fe,render:(e2,n2,t3)=>d2("mark",{key:t3.key},n2(e2.children,t3))},32:{match:Ie(ne),order:3,parse:Fe,render:(e2,n2,t3)=>d2("del",{key:t3.key},n2(e2.children,t3))}};!0===r2.disableParsingRawHTML&&(delete Q2[11],delete Q2[13]);let J2=function(e2){let n2=Object.keys(e2);function t3(r3,i3){let l2=[],o2="";for(;r3;){let c2=0;for(;c2l2(t3,r3,i3)),t3,r3,i3):l2(t3,r3,i3)}}(Q2,r2.renderRule),function e2(n2,t3={}){if(Array.isArray(n2)){let r3=t3.key,i3=[],l2=!1;for(let r4=0;r4({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:theme.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${theme.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:curriedTransparentize$1(.5,theme.color.defaultText),background:"transparent","&:hover":{boxShadow:`${curriedOpacify$1(.3,theme.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${curriedOpacify$1(.05,theme.appBorderColor)} 0 0 0 2px inset`,color:curriedOpacify$1(1,theme.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:theme.boolean.selectedBackground,boxShadow:"light"===theme.base?`${curriedOpacify$1(.1,theme.appBorderColor)} 0 0 2px`:`${theme.appBorderColor} 0 0 0 1px`,color:theme.color.defaultText,padding:"7px 15px"}}))),FormInput=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.lV.Input)((({readOnly})=>({opacity:readOnly?.5:1}))),FlexSpaced=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===theme.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}))),Wrapper3=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.label({display:"flex"}),FormInput2=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.lV.Input)((({readOnly})=>({opacity:readOnly?.5:1}))),selectedKey=(value3,options2)=>{let entry=options2&&Object.entries(options2).find((([_key,val])=>val===value3));return entry?entry[0]:void 0},selectedKeys=(value3,options2)=>value3&&options2?Object.entries(options2).filter((entry=>value3.includes(entry[1]))).map((entry=>entry[0])):[],selectedValues=(keys,options2)=>keys&&options2&&keys.map((key2=>options2[key2])),Wrapper4=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),(props=>{if("true"===props["aria-readonly"])return{input:{cursor:"not-allowed"}}})),Text=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span({"[aria-readonly=true] &":{opacity:.5}}),Label2=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),CheckboxControl=({name:name2,options:options2,value:value3,onChange,isInline,argType})=>{if(!options2)return storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(`Checkbox with no options: ${name2}`),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"-");let initial=selectedKeys(value3,options2),[selected,setSelected]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initial),readonly=!!argType?.table?.readonly,handleChange=e2=>{let option=e2.target.value,updated=[...selected];updated.includes(option)?updated.splice(updated.indexOf(option),1):updated.push(option),onChange(selectedValues(updated,options2)),setSelected(updated)};(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{setSelected(selectedKeys(value3,options2))}),[value3]);let controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper4,{"aria-readonly":readonly,isInline},Object.keys(options2).map(((key2,index)=>{let id=`${controlId}-${index}`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Label2,{key:id,htmlFor:id},react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",{type:"checkbox",disabled:readonly,id,name:id,value:key2,onChange:handleChange,checked:selected?.includes(key2)}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Text,null,key2))})))},Wrapper5=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),(props=>{if("true"===props["aria-readonly"])return{input:{cursor:"not-allowed"}}})),Text2=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span({"[aria-readonly=true] &":{opacity:.5}}),Label3=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),RadioControl=({name:name2,options:options2,value:value3,onChange,isInline,argType})=>{if(!options2)return storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(`Radio with no options: ${name2}`),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"-");let selection=selectedKey(value3,options2),controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper5,{"aria-readonly":readonly,isInline},Object.keys(options2).map(((key2,index)=>{let id=`${controlId}-${index}`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Label3,{key:id,htmlFor:id},react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",{type:"radio",id,name:controlId,disabled:readonly,value:key2,onChange:e2=>onChange(options2[e2.currentTarget.value]),checked:key2===selection}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Text2,null,key2))})))},OptionsSelect=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.select({appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},(({theme})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:theme.input.color||"inherit",background:theme.input.background,borderRadius:theme.input.borderRadius,boxShadow:`${theme.input.border} 0 0 0 1px inset`,fontSize:theme.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:theme.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}}))),SelectWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span((({theme})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:theme.textMutedColor,path:{fill:theme.textMutedColor}}}))),SingleSelect=({name:name2,value:value3,options:options2,onChange,argType})=>{let selection=selectedKey(value3,options2)||"Choose option...",controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SelectWrapper,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.abt,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(OptionsSelect,{disabled:readonly,id:controlId,value:selection,onChange:e2=>{onChange(options2[e2.currentTarget.value])}},react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:"no-selection",disabled:!0},"Choose option..."),Object.keys(options2).map((key2=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:key2,value:key2},key2)))))},MultiSelect=({name:name2,value:value3,options:options2,onChange,argType})=>{let selection=selectedKeys(value3,options2),controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SelectWrapper,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(OptionsSelect,{disabled:readonly,id:controlId,multiple:!0,value:selection,onChange:e2=>{let selection2=Array.from(e2.currentTarget.options).filter((option=>option.selected)).map((option=>option.value));onChange(selectedValues(selection2,options2))}},Object.keys(options2).map((key2=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:key2,value:key2},key2)))))},SelectControl=props=>{let{name:name2,options:options2}=props;return options2?props.isMulti?react__WEBPACK_IMPORTED_MODULE_0__.createElement(MultiSelect,{...props}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(SingleSelect,{...props}):(storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(`Select with no options: ${name2}`),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"-"))},normalizeOptions=(options2,labels)=>Array.isArray(options2)?options2.reduce(((acc,item)=>(acc[labels?.[item]||String(item)]=item,acc)),{}):options2,Controls={check:CheckboxControl,"inline-check":CheckboxControl,radio:RadioControl,"inline-radio":RadioControl,select:SelectControl,"multi-select":SelectControl},OptionsControl=props=>{let{type="select",labels,argType}=props,normalized={...props,argType,options:argType?normalizeOptions(argType.options,labels):{},isInline:type.includes("inline"),isMulti:type.includes("multi")},Control=Controls[type];if(Control)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Control,{...normalized});throw new Error(`Unknown options type: ${type}`)};function getObjectType(obj){return null===obj||"object"!=typeof obj||Array.isArray(obj)||"function"!=typeof obj[Symbol.iterator]?Object.prototype.toString.call(obj).slice(8,-1):"Iterable"}function isComponentWillChange(oldValue,newValue){let oldType=getObjectType(oldValue),newType=getObjectType(newValue);return("Function"===oldType||"Function"===newType)&&newType!==oldType}var JsonAddValue=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey,inputRefValue}=this.state,{onlyValue}=this.props;inputRefKey&&"function"==typeof inputRefKey.focus&&inputRefKey.focus(),onlyValue&&inputRefValue&&"function"==typeof inputRefValue.focus&&inputRefValue.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.onSubmit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd,onlyValue,onSubmitValueParser,keyPath,deep}=this.props,{inputRefKey,inputRefValue}=this.state,result2={};if(!onlyValue){if(!inputRefKey.value)return;result2.key=inputRefKey.value}result2.newValue=onSubmitValueParser(!1,keyPath,deep,result2.key,inputRefValue.value),handleAdd(result2)}refInputKey(node){this.state.inputRefKey=node}refInputValue(node){this.state.inputRefValue=node}render(){let{handleCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep}=this.props,addButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(addButtonElement,{onClick:this.onSubmit}),cancelButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(cancelButtonElement,{onClick:handleCancel}),inputElementValue=inputElementGenerator("value",keyPath,deep),inputElementValueLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(inputElementValue,{placeholder:"Value",ref:this.refInputValue}),inputElementKeyLayout=null;if(!onlyValue){let inputElementKey=inputElementGenerator("key",keyPath,deep);inputElementKeyLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(inputElementKey,{placeholder:"Key",ref:this.refInputKey})}return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-add-value-node"},inputElementKeyLayout,inputElementValueLayout,cancelButtonElementLayout,addButtonElementLayout)}};JsonAddValue.defaultProps={onlyValue:!1,addButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"+"),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"c")};var JsonArray=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={data:props.data,name:props.name,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState((state=>({collapsed:!state.collapsed})))}handleRemoveItem(index){return()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[index];beforeRemoveAction(index,keyPath,deep,oldValue).then((()=>{let deltaUpdateResult={keyPath,deep,key:index,oldValue,type:"REMOVE_DELTA_TYPE"};data.splice(index,1),this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult)})).catch(logger4.error)}}handleAddValueAdd({newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(data.length,keyPath,deep,newValue).then((()=>{let newData=[...data,newValue];this.setState({data:newData}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],newData),onDeltaUpdate({type:"ADD_DELTA_TYPE",keyPath,deep,key:newData.length-1,newValue})})).catch(logger4.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:key2,value:value3}){return new Promise(((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key2];beforeUpdateAction(key2,keyPath,deep,oldValue,value3).then((()=>{data[key2]=value3,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"UPDATE_DELTA_TYPE",keyPath,deep,key:key2,newValue:value3,oldValue}),resolve(void 0)})).catch(reject)}))}renderCollapsed(){let{name:name2,data,keyPath,deep}=this.state,{handleRemove,readOnly,getStyle,dataType,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name2,data,keyPath,deep,dataType),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),removeItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-collapsed"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-collapsed-text",style:collapsed,onClick:this.handleCollapseMode},"[...] ",data.length," ",1===data.length?"item":"items"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name:name2,data,keyPath,deep,addFormVisible,nextDeep}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,delimiter,ul,addForm}=getStyle(name2,data,keyPath,deep,dataType),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),addItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus}),removeItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"["),!addFormVisible&&addItemButton,react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},data.map(((item,index)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonNode,{key:index,name:index.toString(),data:item,keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveItem(index),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})))),!isReadOnly&&addFormVisible&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"rejt-add-form",style:addForm},react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"]"),!isReadOnly&&removeItemButton)}render(){let{name:name2,collapsed,data,keyPath,deep}=this.state,{dataType,getStyle}=this.props,value3=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name2,data,keyPath,deep,dataType);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"rejt-array-node"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{onClick:this.handleCollapseMode},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-name",style:style.name},name2," :"," ")),value3)}};JsonArray.defaultProps={keyPath:[],deep:0,minusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," - "),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," + ")};var JsonFunctionValue=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name:name2,value:value3,keyPath,deep}=this.state,{readOnly,dataType}=this.props,readOnlyResult=readOnly(name2,value3,keyPath,deep,dataType);editEnabled&&!readOnlyResult&&"function"==typeof inputRef.focus&&inputRef.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.handleEdit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name:name2,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name2,inputRef.value);handleUpdateValue({value:newValue,key:name2}).then((()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit()})).catch(logger4.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(node){this.state.inputRef=node}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:name2,value:value3,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,textareaElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name2,originalValue,keyPath,deep,dataType),result2=null,minusElement=null,resultOnlyResult=readOnly(name2,originalValue,keyPath,deep,dataType);if(editEnabled&&!resultOnlyResult){let textareaElement=textareaElementGenerator("value",comeFromKeyPath,deep,name2,originalValue,dataType),editButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(cancelButtonElement,{onClick:this.handleCancelEdit}),textareaElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(textareaElement,{ref:this.refInput,defaultValue:originalValue});result2=react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-edit-form",style:style.editForm},textareaElementLayout," ",cancelButtonElementLayout,editButtonElementLayout),minusElement=null}else{result2=react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-value",style:style.value,onClick:resultOnlyResult?null:this.handleEditMode},value3);let minusMenuLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus});minusElement=resultOnlyResult?null:minusMenuLayout}return react__WEBPACK_IMPORTED_MODULE_0__.createElement("li",{className:"rejt-function-value-node",style:style.li},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-name",style:style.name},name2," :"," "),result2,minusElement)}};JsonFunctionValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"e"),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"c"),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," - ")};var JsonNode=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props),this.state={data:props.data,name:props.name,keyPath:props.keyPath,deep:props.deep}}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}render(){let{data,name:name2,keyPath,deep}=this.state,{isCollapsed,handleRemove,handleUpdateValue,onUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,readOnlyTrue=()=>!0,dataType=getObjectType(data);switch(dataType){case"Error":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonObject,{data,name:name2,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly:readOnlyTrue,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"Object":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonObject,{data,name:name2,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"Array":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonArray,{data,name:name2,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"String":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:`"${data}"`,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Number":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:data,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Boolean":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:data?"true":"false",originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Date":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:data.toISOString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Null":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:"null",originalValue:"null",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Undefined":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:"undefined",originalValue:"undefined",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Function":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonFunctionValue,{name:name2,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,textareaElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Symbol":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});default:return null}}};JsonNode.defaultProps={keyPath:[],deep:0};var JsonObject=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props);let keyPath=-1===props.deep?[]:[...props.keyPath,props.name];this.state={name:props.name,data:props.data,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:key2,newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(key2,keyPath,deep,newValue).then((()=>{data[key2]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"ADD_DELTA_TYPE",keyPath,deep,key:key2,newValue})})).catch(logger4.error)}handleRemoveValue(key2){return()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key2];beforeRemoveAction(key2,keyPath,deep,oldValue).then((()=>{let deltaUpdateResult={keyPath,deep,key:key2,oldValue,type:"REMOVE_DELTA_TYPE"};delete data[key2],this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult)})).catch(logger4.error)}}handleCollapseMode(){this.setState((state=>({collapsed:!state.collapsed})))}handleEditValue({key:key2,value:value3}){return new Promise(((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key2];beforeUpdateAction(key2,keyPath,deep,oldValue,value3).then((()=>{data[key2]=value3,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"UPDATE_DELTA_TYPE",keyPath,deep,key:key2,newValue:value3,oldValue}),resolve()})).catch(reject)}))}renderCollapsed(){let{name:name2,keyPath,deep,data}=this.state,{handleRemove,readOnly,dataType,getStyle,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name2,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),removeItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-collapsed"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-collapsed-text",style:collapsed,onClick:this.handleCollapseMode},"{...}"," ",keyList.length," ",1===keyList.length?"key":"keys"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name:name2,data,keyPath,deep,nextDeep,addFormVisible}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,addForm,ul,delimiter}=getStyle(name2,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),addItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus}),removeItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus}),list=keyList.map((key2=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonNode,{key:key2,name:key2,data:data[key2],keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveValue(key2),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})));return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"{"),!isReadOnly&&addItemButton,react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},list),!isReadOnly&&addFormVisible&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"rejt-add-form",style:addForm},react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"}"),!isReadOnly&&removeItemButton)}render(){let{name:name2,collapsed,data,keyPath,deep}=this.state,{getStyle,dataType}=this.props,value3=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name2,data,keyPath,deep,dataType);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"rejt-object-node"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{onClick:this.handleCollapseMode},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-name",style:style.name},name2," :"," ")),value3)}};JsonObject.defaultProps={keyPath:[],deep:0,minusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," - "),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," + ")};var JsonValue=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name:name2,value:value3,keyPath,deep}=this.state,{readOnly,dataType}=this.props,isReadOnly=readOnly(name2,value3,keyPath,deep,dataType);editEnabled&&!isReadOnly&&"function"==typeof inputRef.focus&&inputRef.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.handleEdit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name:name2,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name2,inputRef.value);handleUpdateValue({value:newValue,key:name2}).then((()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit()})).catch(logger4.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(node){this.state.inputRef=node}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:name2,value:value3,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,inputElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name2,originalValue,keyPath,deep,dataType),isReadOnly=readOnly(name2,originalValue,keyPath,deep,dataType),isEditing=editEnabled&&!isReadOnly,inputElement=inputElementGenerator("value",comeFromKeyPath,deep,name2,originalValue,dataType),editButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(cancelButtonElement,{onClick:this.handleCancelEdit}),inputElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(inputElement,{ref:this.refInput,defaultValue:JSON.stringify(originalValue)}),minusMenuLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus});return react__WEBPACK_IMPORTED_MODULE_0__.createElement("li",{className:"rejt-value-node",style:style.li},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-name",style:style.name},name2," : "),isEditing?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-edit-form",style:style.editForm},inputElementLayout," ",cancelButtonElementLayout,editButtonElementLayout):react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-value",style:style.value,onClick:isReadOnly?null:this.handleEditMode},String(value3)),!isReadOnly&&!isEditing&&minusMenuLayout)}};JsonValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"e"),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"c"),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," - ")};var object={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},array={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},value2={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},JsonTree=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props),this.state={data:props.data,rootName:props.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data||props.rootName!==state.rootName?{data:props.data,rootName:props.rootName}:null}onUpdate(key2,data){this.setState({data}),this.props.onFullyUpdate(data)}removeRoot(){this.onUpdate(null,null)}render(){let{data,rootName}=this.state,{isCollapsed,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElement,textareaElement,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser,fallback=null}=this.props,dataType=getObjectType(data),readOnlyFunction=readOnly;"Boolean"===getObjectType(readOnly)&&(readOnlyFunction=()=>readOnly);let inputElementFunction=inputElement;inputElement&&"Function"!==getObjectType(inputElement)&&(inputElementFunction=()=>inputElement);let textareaElementFunction=textareaElement;return textareaElement&&"Function"!==getObjectType(textareaElement)&&(textareaElementFunction=()=>textareaElement),"Object"===dataType||"Array"===dataType?react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"rejt-tree"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonNode,{data,name:rootName,deep:-1,isCollapsed,onUpdate:this.onUpdate,onDeltaUpdate,readOnly:readOnlyFunction,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator:inputElementFunction,textareaElementGenerator:textareaElementFunction,minusMenuElement,plusMenuElement,handleRemove:this.removeRoot,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})):fallback}};JsonTree.defaultProps={rootName:"root",isCollapsed:(keyPath,deep)=>-1!==deep,getStyle:(keyName,data,keyPath,deep,dataType)=>{switch(dataType){case"Object":case"Error":return object;case"Array":return array;default:return value2}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(isEditMode,keyPath,deep,name2,rawValue)=>function parse3(string){let result2=string;if(0===result2.indexOf("function"))return(0,eval)(`(${result2})`);try{result2=JSON.parse(string)}catch{}return result2}(rawValue),inputElement:()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",null),textareaElement:()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("textarea",null),fallback:null};var{window:globalWindow2}=globalThis,Wrapper6=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:theme.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:theme.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:theme.color.lighter,borderColor:theme.appBorderColor}}))),ButtonInline=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.button((({theme,primary})=>({border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:"transparent",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?"bold":"normal",cursor:"pointer",order:primary?"initial":9}))),ActionAddIcon=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.REV)((({theme,disabled})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.textMutedColor,"&:hover":disabled?{}:{color:theme.color.ancillary},"svg + &":{marginLeft:0}}))),ActionSubstractIcon=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.Qpb)((({theme,disabled})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.textMutedColor,"&:hover":disabled?{}:{color:theme.color.negative},"svg + &":{marginLeft:0}}))),Input=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.input((({theme,placeholder})=>({outline:0,margin:placeholder?1:"1px 0",padding:"3px 4px",color:theme.color.defaultText,background:theme.background.app,border:`1px solid ${theme.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:"Key"===placeholder?80:120,"&:focus":{border:`1px solid ${theme.color.secondary}`}}))),RawButton=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.K0)((({theme})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:theme.background.bar,border:`1px solid ${theme.appBorderColor}`,borderRadius:3,color:theme.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}}))),RawInput=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.lV.Textarea)((({theme})=>({flex:1,padding:"7px 6px",fontFamily:theme.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:theme.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}))),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=event=>{event.currentTarget.dispatchEvent(new globalWindow2.KeyboardEvent("keydown",ENTER_EVENT))},selectValue=event=>{event.currentTarget.select()},getCustomStyleFunction=theme=>()=>({name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),ObjectControl=({name:name2,value:value3,onChange,argType})=>{let theme=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.DP)(),data=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>value3&&(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.mg)(value3)),[value3]),hasData=null!=data,[showRaw,setShowRaw]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!hasData),[parseError,setParseError]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),readonly=!!argType?.table?.readonly,updateRaw=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((raw=>{try{raw&&onChange(JSON.parse(raw)),setParseError(void 0)}catch(e2){setParseError(e2)}}),[onChange]),[forceVisible,setForceVisible]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{onChange({}),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);if((0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),!hasData)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.$n,{disabled:readonly,id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.Yq)(name2),onClick:onForceVisible},"Set object");let rawJSONForm=react__WEBPACK_IMPORTED_MODULE_0__.createElement(RawInput,{ref:htmlElRef,id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),name:name2,defaultValue:null===value3?"":JSON.stringify(value3,null,2),onBlur:event=>updateRaw(event.target.value),placeholder:"Edit JSON string...",autoFocus:forceVisible,valid:parseError?"error":null,readOnly:readonly}),isObjectOrArray=Array.isArray(value3)||"object"==typeof value3&&value3?.constructor===Object;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper6,{"aria-readonly":readonly},isObjectOrArray&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(RawButton,{onClick:e2=>{e2.preventDefault(),setShowRaw((v2=>!v2))}},showRaw?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.dbI,null):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.bMW,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"RAW")),showRaw?rawJSONForm:react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonTree,{readOnly:readonly||!isObjectOrArray,isCollapsed:isObjectOrArray?void 0:()=>!0,data,rootName:name2,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonInline,{type:"button"},"Cancel"),editButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonInline,{type:"submit"},"Save"),addButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonInline,{type:"submit",primary:!0},"Save"),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ActionAddIcon,null),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ActionSubstractIcon,null),inputElement:(_2,__,___,key2)=>key2?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Input,null),fallback:rawJSONForm}))},RangeInput=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.input((({theme,min,max,value:value3,disabled})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:disabled?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?"not-allowed":"grab",appearance:"none",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:disabled?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:rgba(theme.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:theme.color.secondary,boxShadow:`0 0px 5px 0px ${theme.color.secondary}`}},"&::-moz-range-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:disabled?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?"not-allowed":"grap",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.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:`${theme.input.background}`,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}))),RangeLabel=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),RangeCurrentAndMaxLabel=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(RangeLabel)((({numberOFDecimalsPlaces,max})=>({width:`${numberOFDecimalsPlaces+2*max.toString().length+3}ch`,textAlign:"right",flexShrink:0}))),RangeWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",alignItems:"center",width:"100%"});var Wrapper7=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.label({display:"flex"}),MaxLength=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({isMaxed})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:isMaxed?"red":void 0}))),FileInput=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.lV.Input)({padding:10});var LazyColorControl=(0,react__WEBPACK_IMPORTED_MODULE_0__.lazy)((()=>__webpack_require__.e(746).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs")))),Controls2={array:ObjectControl,object:ObjectControl,boolean:({name:name2,value:value3,onChange,onBlur,onFocus,argType})=>{let onSetFalse=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>onChange(!1)),[onChange]),readonly=!!argType?.table?.readonly;if(void 0===value3)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.$n,{variant:"outline",size:"medium",id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.Yq)(name2),onClick:onSetFalse,disabled:readonly},"Set boolean");let controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),parsedValue="string"==typeof value3?(value3=>"true"===value3)(value3):value3;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Label,{"aria-disabled":readonly,htmlFor:controlId,"aria-label":name2},react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",{id:controlId,type:"checkbox",onChange:e2=>onChange(e2.target.checked),checked:parsedValue,role:"switch",disabled:readonly,name:name2,onBlur,onFocus}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{"aria-hidden":"true"},"False"),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{"aria-hidden":"true"},"True"))},color:props=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_0__.createElement(LazyColorControl,{...props})),date:({name:name2,value:value3,onChange,onFocus,onBlur,argType})=>{let[valid,setValid]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),dateRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),timeRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),readonly=!!argType?.table?.readonly;(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{!1!==valid&&(dateRef&&dateRef.current&&(dateRef.current.value=value3?(value3=>{let date=new Date(value3);return`${`000${date.getFullYear()}`.slice(-4)}-${`0${date.getMonth()+1}`.slice(-2)}-${`0${date.getDate()}`.slice(-2)}`})(value3):""),timeRef&&timeRef.current&&(timeRef.current.value=value3?(value3=>{let date=new Date(value3);return`${`0${date.getHours()}`.slice(-2)}:${`0${date.getMinutes()}`.slice(-2)}`})(value3):""))}),[value3]);let controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(FlexSpaced,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(FormInput,{type:"date",max:"9999-12-31",ref:dateRef,id:`${controlId}-date`,name:`${controlId}-date`,readOnly:readonly,onChange:e2=>{if(!e2.target.value)return onChange();let parsed=(value3=>{let[year,month,day]=value3.split("-"),result2=new Date;return result2.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result2})(e2.target.value),result2=new Date(value3);result2.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());let time=result2.getTime();time&&onChange(time),setValid(!!time)},onFocus,onBlur}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(FormInput,{type:"time",id:`${controlId}-time`,name:`${controlId}-time`,ref:timeRef,onChange:e2=>{if(!e2.target.value)return onChange();let parsed=(value3=>{let[hours,minutes]=value3.split(":"),result2=new Date;return result2.setHours(parseInt(hours,10)),result2.setMinutes(parseInt(minutes,10)),result2})(e2.target.value),result2=new Date(value3);result2.setHours(parsed.getHours()),result2.setMinutes(parsed.getMinutes());let time=result2.getTime();time&&onChange(time),setValid(!!time)},readOnly:readonly,onFocus,onBlur}),valid?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,"invalid"))},number:({name:name2,value:value3,onChange,min,max,step,onBlur,onFocus,argType})=>{let[inputValue,setInputValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("number"==typeof value3?value3:""),[forceVisible,setForceVisible]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[parseError,setParseError]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),readonly=!!argType?.table?.readonly,handleChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event=>{setInputValue(event.target.value);let result2=parseFloat(event.target.value);Number.isNaN(result2)?setParseError(new Error(`'${event.target.value}' is not a number`)):(onChange(result2),setParseError(null))}),[onChange,setParseError]),onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{setInputValue("0"),onChange(0),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{inputValue!==("number"==typeof value3?value3:"")&&setInputValue(value3)}),[value3]),void 0===value3?react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.$n,{variant:"outline",size:"medium",id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.Yq)(name2),onClick:onForceVisible,disabled:readonly},"Set number"):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper3,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(FormInput2,{ref:htmlElRef,id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),type:"number",onChange:handleChange,size:"flex",placeholder:"Edit number...",value:inputValue,valid:parseError?"error":null,autoFocus:forceVisible,readOnly:readonly,name:name2,min,max,step,onFocus,onBlur}))},check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:({name:name2,value:value3,onChange,min=0,max=100,step=1,onBlur,onFocus,argType})=>{let hasValue=void 0!==value3,numberOFDecimalsPlaces=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>function getNumberOfDecimalPlaces(number){let match=number.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}(step)),[step]),readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(RangeWrapper,{"aria-readonly":readonly},react__WEBPACK_IMPORTED_MODULE_0__.createElement(RangeLabel,null,min),react__WEBPACK_IMPORTED_MODULE_0__.createElement(RangeInput,{id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),type:"range",disabled:readonly,onChange:event=>{onChange((value3=>{let result2=parseFloat(value3);return Number.isNaN(result2)?void 0:result2})(event.target.value))},name:name2,value:value3,min,max,step,onFocus,onBlur}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces,max},hasValue?value3.toFixed(numberOFDecimalsPlaces):"--"," / ",max))},text:({name:name2,value:value3,onChange,onFocus,onBlur,maxLength,argType})=>{let readonly=!!argType?.table?.readonly,[forceVisible,setForceVisible]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{onChange(""),setForceVisible(!0)}),[setForceVisible]);if(void 0===value3)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.$n,{variant:"outline",size:"medium",disabled:readonly,id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.Yq)(name2),onClick:onForceVisible},"Set string");let isValid="string"==typeof value3;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper7,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.lV.Textarea,{id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),maxLength,onChange:event=>{onChange(event.target.value)},disabled:readonly,size:"flex",placeholder:"Edit string...",autoFocus:forceVisible,valid:isValid?null:"error",name:name2,value:isValid?value3:"",onFocus,onBlur}),maxLength&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(MaxLength,{isMaxed:value3?.length===maxLength},value3?.length??0," / ",maxLength))},file:({onChange,name:name2,accept="image/*",value:value3,argType})=>{let inputElement=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),readonly=argType?.control?.readOnly;return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{null==value3&&inputElement.current&&(inputElement.current.value=null)}),[value3,name2]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(FileInput,{ref:inputElement,id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),type:"file",name:name2,multiple:!0,disabled:readonly,onChange:function handleFileChange(e2){if(!e2.target.files)return;let fileUrls=Array.from(e2.target.files).map((file=>URL.createObjectURL(file)));onChange(fileUrls),function revokeOldUrls(urls){urls.forEach((url=>{url.startsWith("blob:")&&URL.revokeObjectURL(url)}))}(value3)},accept,size:"flex"})}},NoControl=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"-"),ArgControl=({row,arg,updateArgs,isHovered})=>{let{key:key2,control}=row,[isFocused,setFocused]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[boxedValue,setBoxedValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({value:arg});(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{isFocused||setBoxedValue({value:arg})}),[isFocused,arg]);let onChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((argVal=>(setBoxedValue({value:argVal}),updateArgs({[key2]:argVal}),argVal)),[updateArgs,key2]),onBlur=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>setFocused(!1)),[]),onFocus=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>setFocused(!0)),[]);if(!control||control.disable){return isHovered&&(!0!==control?.disable&&"function"!==row?.type?.name)?react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.N_,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):react__WEBPACK_IMPORTED_MODULE_0__.createElement(NoControl,null)}let props={name:key2,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls2[control.type]||NoControl;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Control,{...props,...control,controlType:control.type})},Table=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.table((({theme})=>({"&&":{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:(0,storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.zb)({theme}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:theme.typography.size.s1}}}))),ArgJsDoc=({tags})=>{let params=(tags.params||[]).filter((x2=>x2.description)),hasDisplayableParams=0!==params.length,hasDisplayableDeprecated=null!=tags.deprecated,hasDisplayableReturns=null!=tags.returns&&null!=tags.returns.description;return hasDisplayableParams||hasDisplayableReturns||hasDisplayableDeprecated?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Table,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody",null,hasDisplayableDeprecated&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",{key:"deprecated"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",{colSpan:2},react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong",null,"Deprecated"),": ",tags.deprecated.toString())),hasDisplayableParams&¶ms.map((x2=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",{key:x2.name},react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("code",null,x2.name)),react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,x2.description)))),hasDisplayableReturns&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",{key:"returns"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("code",null,"Returns")),react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,tags.returns.description))))):null},import_memoizerific=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.f1)(require_memoizerific()),Summary=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({isExpanded})=>({display:"flex",flexDirection:isExpanded?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100}))),Text3=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.zb,(({theme,simple=!1})=>({flex:"0 0 auto",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...simple&&{background:"transparent",border:"0 none",paddingLeft:0}}))),ExpandButton=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.button((({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,marginBottom:"4px",background:"none",border:"none"}))),Expandable=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.zb,(({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,fontSize:theme.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"}))),Detail=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme,width})=>({width,minWidth:200,maxWidth:800,padding:15,fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}}))),ChevronUpIcon=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.tN5)({marginLeft:4}),ChevronDownIcon=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.abt)({marginLeft:4}),EmptyArg=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"-"),ArgText=({text,simple})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Text3,{simple},text),calculateDetailWidth=(0,import_memoizerific.default)(1e3)((detail=>{let lines=detail.split(/\r?\n/);return`${Math.max(...lines.map((x2=>x2.length)))}ch`})),renderSummaryItems=(summaryItems,isExpanded=!0)=>{let items=summaryItems;return isExpanded||(items=summaryItems.slice(0,8)),items.map((item=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgText,{key:item,text:""===item?'""':item})))},ArgSummary=({value:value3,initialExpandedArgs})=>{let{summary,detail}=value3,[isOpen,setIsOpen]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[isExpanded,setIsExpanded]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialExpandedArgs||!1);if(null==summary)return null;let summaryAsString="function"==typeof summary.toString?summary.toString():summary;if(null==detail){if(/[(){}[\]<>]/.test(summaryAsString))return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgText,{text:summaryAsString});let summaryItems=(summary=>{if(!summary)return[summary];let summaryItems=summary.split("|").map((value3=>value3.trim()));return(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.sb)(summaryItems)})(summaryAsString),itemsCount=summaryItems.length;return itemsCount>8?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ExpandButton,{onClick:()=>setIsExpanded(!isExpanded)},isExpanded?"Show less...":`Show ${itemsCount-8} more...`)):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Summary,null,renderSummaryItems(summaryItems))}return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.o4,{closeOnOutsideClick:!0,placement:"bottom",visible:isOpen,onVisibleChange:isVisible=>{setIsOpen(isVisible)},tooltip:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Detail,{width:calculateDetailWidth(detail)},react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.bF,{language:"jsx",format:!1},detail))},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Expandable,{className:"sbdocs-expandable"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,summaryAsString),isOpen?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ChevronUpIcon,null):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ChevronDownIcon,null)))},ArgValue=({value:value3,initialExpandedArgs})=>null==value3?react__WEBPACK_IMPORTED_MODULE_0__.createElement(EmptyArg,null):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgSummary,{value:value3,initialExpandedArgs}),Name=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span({fontWeight:"bold"}),Required=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span((({theme})=>({color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:"help"}))),Description=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:theme.color.secondary}},code:{...(0,storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.zb)({theme}),fontSize:12,fontFamily:theme.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}))),Type=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme,hasDescription})=>({color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?4:0}))),TypeWithJsDoc=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme,hasDescription})=>({color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12}))),StyledTd=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.td((({theme,expandable})=>({paddingLeft:expandable?"40px !important":"20px !important"}))),ArgRow=props=>{let[isHovered,setIsHovered]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),{row,updateArgs,compact,expandable,initialExpandedArgs}=props,{name:name2,description}=row,table=row.table||{},type=table.type||(value3=row.type)&&{summary:"string"==typeof value3?value3:value3.name},defaultValue=table.defaultValue||row.defaultValue,required=row.type?.required,hasDescription=null!=description&&""!==description;var value3;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",{onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1)},react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTd,{expandable},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Name,null,name2),required?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Required,{title:"Required"},"*"):null),compact?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,hasDescription&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Description,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(index_modern_default,null,description)),null!=table.jsDocTags?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(TypeWithJsDoc,{hasDescription},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgValue,{value:type,initialExpandedArgs})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgJsDoc,{tags:table.jsDocTags})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Type,{hasDescription},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgControl,{...props,isHovered})):null)},Wrapper8=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({inAddonPanel,theme})=>({height:inAddonPanel?"100%":"auto",display:"flex",border:inAddonPanel?"none":`1px solid ${theme.appBorderColor}`,borderRadius:inAddonPanel?0:theme.appBorderRadius,padding:inAddonPanel?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:theme.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"}))),Links=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({display:"flex",fontSize:theme.typography.size.s2-1,gap:25}))),Divider=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({width:1,height:16,backgroundColor:theme.appBorderColor}))),Empty=({inAddonPanel})=>{let[isLoading,setIsLoading]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let load=setTimeout((()=>{setIsLoading(!1)}),100);return()=>clearTimeout(load)}),[]),isLoading?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper8,{inAddonPanel},react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.Q2,{title:inAddonPanel?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.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:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Links,null,inAddonPanel&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.N_,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.npA,null)," Watch 5m video"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Divider,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.N_,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.pyG,null)," Read docs")),!inAddonPanel&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.N_,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.pyG,null)," Learn how to set that up"))}))},ExpanderIconDown=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.D3D)((({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"}))),ExpanderIconRight=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.vKP)((({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"}))),FlexWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span((({theme})=>({display:"flex",lineHeight:"20px",alignItems:"center"}))),Section=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.td((({theme})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s1-1,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),background:`${theme.background.app} !important`,"& ~ td":{background:`${theme.background.app} !important`}}))),Subsection=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.td((({theme})=>({position:"relative",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.app}))),StyledTd2=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.td((()=>({position:"relative"}))),StyledTr=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.tr((({theme})=>({"&:hover > td":{backgroundColor:`${curriedLighten$1(.005,theme.background.app)} !important`,boxShadow:`${theme.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}}))),ClickIntercept=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.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"}))),SectionRow=({level="section",label,children,initialExpanded=!0,colSpan=3})=>{let[expanded,setExpanded]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialExpanded),Level="subsection"===level?Subsection:Section,itemCount=children?.length||0,caption="subsection"===level?`${itemCount} item${1!==itemCount?"s":""}`:"",helperText=`${expanded?"Hide":"Show"} ${"subsection"===level?itemCount:label} item${1!==itemCount?"s":""}`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTr,{title:helperText},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Level,{colSpan:1},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ClickIntercept,{onClick:e2=>setExpanded(!expanded),tabIndex:0},helperText),react__WEBPACK_IMPORTED_MODULE_0__.createElement(FlexWrapper,null,expanded?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ExpanderIconDown,null):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ExpanderIconRight,null),label)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTd2,{colSpan:colSpan-1},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ClickIntercept,{onClick:e2=>setExpanded(!expanded),tabIndex:-1,style:{outline:"none"}},helperText),expanded?null:caption)),expanded?children:null)},Row=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({display:"flex",gap:16,borderBottom:`1px solid ${theme.appBorderColor}`,"&:last-child":{borderBottom:0}}))),Column=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({numColumn})=>({display:"flex",flexDirection:"column",flex:numColumn||1,gap:5,padding:"12px 20px"}))),SkeletonText=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme,width,height})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,width:width||"100%",height:height||16,borderRadius:3}))),columnWidth=[2,4,2,2],Skeleton=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[0]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[1]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"30%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[2]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[3]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[0]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[1]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"80%"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"30%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[2]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[3]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[0]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[1]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"80%"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"30%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[2]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[3]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[0]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[1]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"80%"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"30%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[2]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[3]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})))),TableWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.table((({theme,compact,inAddonPanel})=>({"&&":{borderSpacing:0,color:theme.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:theme.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?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)":{...compact?null:{width:"35%"}},"td:nth-of-type(3)":{...compact?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...compact?null:{width:"25%"}},th:{color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.45,theme.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:inAddonPanel?0:1,marginRight:inAddonPanel?0:1,tbody:{...inAddonPanel?null:{filter:"light"===theme.base?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:theme.background.content,borderTop:`1px solid ${theme.appBorderColor}`},...inAddonPanel?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${theme.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${theme.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${theme.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${theme.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:theme.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:theme.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:theme.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:theme.appBorderRadius}}}}}))),StyledIconButton=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.K0)((({theme})=>({margin:"-4px -12px -4px 0"}))),ControlHeadingWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span({display:"flex",justifyContent:"space-between"}),sortFns={alpha:(a2,b2)=>a2.name.localeCompare(b2.name),requiredFirst:(a2,b2)=>+!!b2.type?.required-+!!a2.type?.required||a2.name.localeCompare(b2.name),none:void 0},ArgsTable=props=>{let{updateArgs,resetArgs,compact,inAddonPanel,initialExpandedArgs,sort="none",isLoading}=props;if("error"in props){let{error}=props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(EmptyBlock,null,error," ",react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.N_,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.pyG,null)," Read the docs"))}if(isLoading)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Skeleton,null);let{rows,args:args2,globals}="rows"in props&&props,groups=((rows,sort)=>{let sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach((([key2,row])=>{let{category,subcategory}=row?.table||{};if(category){let section=sections.sections[category]||{ungrouped:[],subsections:{}};if(subcategory){let subsection=section.subsections[subcategory]||[];subsection.push({key:key2,...row}),section.subsections[subcategory]=subsection}else section.ungrouped.push({key:key2,...row});sections.sections[category]=section}else if(subcategory){let subsection=sections.ungroupedSubsections[subcategory]||[];subsection.push({key:key2,...row}),sections.ungroupedSubsections[subcategory]=subsection}else sections.ungrouped.push({key:key2,...row})}));let sortFn=sortFns[sort],sortSubsection=record=>sortFn?Object.keys(record).reduce(((acc,cur)=>({...acc,[cur]:record[cur].sort(sortFn)})),{}):record;return{ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce(((acc,cur)=>({...acc,[cur]:{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}})),{})}})((0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.fN)(rows||{},(row=>!row?.table?.disable&&((row,args2,globals)=>{try{return(0,_storybook_csf__WEBPACK_IMPORTED_MODULE_2__.hX)(row,args2,globals)}catch(err){return storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.once.warn(err.message),!1}})(row,args2||{},globals||{}))),sort),hasNoUngrouped=0===groups.ungrouped.length,hasNoSections=0===Object.entries(groups.sections).length,hasNoUngroupedSubsections=0===Object.entries(groups.ungroupedSubsections).length;if(hasNoUngrouped&&hasNoSections&&hasNoUngroupedSubsections)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Empty,{inAddonPanel});let colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);let expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.dL,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(TableWrapper,{compact,inAddonPanel,className:"docblock-argstable sb-unstyled"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead",{className:"docblock-argstable-head"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"Name")),compact?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"Description")),compact?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"Default")),updateArgs?react__WEBPACK_IMPORTED_MODULE_0__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ControlHeadingWrapper,null,"Control"," ",!isLoading&&resetArgs&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledIconButton,{onClick:()=>resetArgs(),title:"Reset controls"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.ejX,{"aria-hidden":!0})))):null)),react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody",{className:"docblock-argstable-body"},groups.ungrouped.map((row=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],...common}))),Object.entries(groups.ungroupedSubsections).map((([subcategory,subsection])=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((row=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],expandable,...common})))))),Object.entries(groups.sections).map((([category,section])=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SectionRow,{key:category,label:category,level:"section",colSpan},section.ungrouped.map((row=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],...common}))),Object.entries(section.subsections).map((([subcategory,subsection])=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((row=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],expandable,...common}))))))))))))},TabbedArgsTable=({tabs,...props})=>{let entries=Object.entries(tabs);return 1===entries.length?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgsTable,{...entries[0][1],...props}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__._j,null,entries.map(((entry,index)=>{let[label,table]=entry,id=`prop_table_div_${label}`,argsTableProps=0===index?props:{sort:props.sort};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{key:id,id,title:label},(({active})=>active?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgsTable,{key:`prop_table_${label}`,...table,...argsTableProps}):null))})))};storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({marginRight:30,fontSize:`${theme.typography.size.s1}px`,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.YV,(({theme})=>({...getBlockBackgroundStyle(theme),margin:"25px 0 40px",padding:"30px 20px"}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({fontWeight:theme.typography.weight.bold,color:theme.color.defaultText}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({color:"light"===theme.base?curriedTransparentize$1(.2,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({flex:1,textAlign:"center",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",flexDirection:"row"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({background})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background,content:'""'}}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({...getBlockBackgroundStyle(theme),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"}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({flex:1,display:"flex",flexDirection:"row"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",alignItems:"flex-start"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({flex:"0 0 30%"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({flex:1}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"})));storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({...getBlockBackgroundStyle(theme),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",flexFlow:"row wrap"});var anchorBlockIdFromId=storyId=>`anchor--${storyId}`,Anchor=({storyId,children})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{id:anchorBlockIdFromId(storyId),className:"sb-anchor"},children);globalThis&&void 0===globalThis.__DOCS_CONTEXT__&&(globalThis.__DOCS_CONTEXT__=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=globalThis?globalThis.__DOCS_CONTEXT__:(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null),useOf=(moduleExportOrType,validTypes)=>(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext).resolveOf(moduleExportOrType,validTypes),getComponentName=component=>{if(component)return"string"==typeof component?component.includes("-")?component.split("-").map((part=>part.charAt(0).toUpperCase()+part.slice(1))).join(""):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name};var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS2=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__toESM2=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key2 of __getOwnPropNames(from))!__hasOwnProp.call(to,key2)&&key2!==except&&__defProp(to,key2,{get:()=>from[key2],enumerable:!(desc=__getOwnPropDesc(from,key2))||desc.enumerable});return to})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod)),eventProperties=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],customEventSpecificProperties=["detail"];var import_memoizerific2=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.f1)(require_memoizerific(),1),require_shams=__commonJS2({"node_modules/has-symbols/shams.js"(exports,module){module.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var obj={},sym=Symbol("test"),symObj=Object(sym);if("string"==typeof sym||"[object Symbol]"!==Object.prototype.toString.call(sym)||"[object Symbol]"!==Object.prototype.toString.call(symObj))return!1;for(sym in obj[sym]=42,obj)return!1;if("function"==typeof Object.keys&&0!==Object.keys(obj).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(obj).length)return!1;var syms=Object.getOwnPropertySymbols(obj);if(1!==syms.length||syms[0]!==sym||!Object.prototype.propertyIsEnumerable.call(obj,sym))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(42!==descriptor.value||!0!==descriptor.enumerable)return!1}return!0}}}),require_has_symbols=__commonJS2({"node_modules/has-symbols/index.js"(exports,module){var origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=require_shams();module.exports=function(){return"function"==typeof origSymbol&&"function"==typeof Symbol&&"symbol"==typeof origSymbol("foo")&&"symbol"==typeof Symbol("bar")&&hasSymbolSham()}}}),require_implementation=__commonJS2({"node_modules/function-bind/implementation.js"(exports,module){var slice=Array.prototype.slice,toStr=Object.prototype.toString;module.exports=function(that){var target=this;if("function"!=typeof target||"[object Function]"!==toStr.call(target))throw new TypeError("Function.prototype.bind called on incompatible "+target);for(var bound,args2=slice.call(arguments,1),boundLength=Math.max(0,target.length-args2.length),boundArgs=[],i2=0;i2"u"?undefined:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined,"%AsyncFromSyncIteratorPrototype%":undefined,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined:Atomics,"%BigInt%":typeof BigInt>"u"?undefined:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined,"%JSON%":"object"==typeof JSON?JSON:undefined,"%Map%":typeof Map>"u"?undefined:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?undefined:getProto((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined:Promise,"%Proxy%":typeof Proxy>"u"?undefined:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols?undefined:getProto((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined,"%Symbol%":hasSymbols?Symbol:undefined,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":typeof Uint8Array>"u"?undefined:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined:WeakSet},doEval=function doEval2(name2){var value22;if("%AsyncFunction%"===name2)value22=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===name2)value22=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===name2)value22=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===name2){var fn=doEval2("%AsyncGeneratorFunction%");fn&&(value22=fn.prototype)}else if("%AsyncIteratorPrototype%"===name2){var gen=doEval2("%AsyncGenerator%");gen&&(value22=getProto(gen.prototype))}return INTRINSICS[name2]=value22,value22},LEGACY_ALIASES={"%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"]},bind=require_function_bind(),hasOwn=require_src(),$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar2=/\\(\\)?/g,getBaseIntrinsic=function(name2,allowMissing){var alias,intrinsicName=name2;if(hasOwn(LEGACY_ALIASES,intrinsicName)&&(intrinsicName="%"+(alias=LEGACY_ALIASES[intrinsicName])[0]+"%"),hasOwn(INTRINSICS,intrinsicName)){var value22=INTRINSICS[intrinsicName];if(value22===needsEval&&(value22=doEval(intrinsicName)),typeof value22>"u"&&!allowMissing)throw new $TypeError("intrinsic "+name2+" exists, but is not available. Please file an issue!");return{alias,name:intrinsicName,value:value22}}throw new $SyntaxError("intrinsic "+name2+" does not exist!")};module.exports=function(name2,allowMissing){if("string"!=typeof name2||0===name2.length)throw new $TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof allowMissing)throw new $TypeError('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,name2))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var parts=function(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if("%"===first&&"%"!==last)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===last&&"%"!==first)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var result2=[];return $replace(string,rePropName2,(function(match,number,quote,subString){result2[result2.length]=quote?$replace(subString,reEscapeChar2,"$1"):number||match})),result2}(name2),intrinsicBaseName=parts.length>0?parts[0]:"",intrinsic=getBaseIntrinsic("%"+intrinsicBaseName+"%",allowMissing),intrinsicRealName=intrinsic.name,value22=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i2=1,isOwn=!0;i2=parts.length){var desc=$gOPD(value22,part);value22=(isOwn=!!desc)&&"get"in desc&&!("originalValue"in desc.get)?desc.get:value22[part]}else isOwn=hasOwn(value22,part),value22=value22[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value22)}}return value22}}}),require_call_bind=__commonJS2({"node_modules/call-bind/index.js"(exports,module){var bind=require_function_bind(),GetIntrinsic=require_get_intrinsic(),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$gOPD=GetIntrinsic("%Object.getOwnPropertyDescriptor%",!0),$defineProperty=GetIntrinsic("%Object.defineProperty%",!0),$max=GetIntrinsic("%Math.max%");if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=null}module.exports=function(originalFunction){var func=$reflectApply(bind,$call,arguments);$gOPD&&$defineProperty&&($gOPD(func,"length").configurable&&$defineProperty(func,"length",{value:1+$max(0,originalFunction.length-(arguments.length-1))}));return func};var applyBind=function(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,"apply",{value:applyBind}):module.exports.apply=applyBind}}),require_callBound=__commonJS2({"node_modules/call-bind/callBound.js"(exports,module){var GetIntrinsic=require_get_intrinsic(),callBind=require_call_bind(),$indexOf=callBind(GetIntrinsic("String.prototype.indexOf"));module.exports=function(name2,allowMissing){var intrinsic=GetIntrinsic(name2,!!allowMissing);return"function"==typeof intrinsic&&$indexOf(name2,".prototype.")>-1?callBind(intrinsic):intrinsic}}}),require_shams2=__commonJS2({"node_modules/has-tostringtag/shams.js"(exports,module){var hasSymbols=require_shams();module.exports=function(){return hasSymbols()&&!!Symbol.toStringTag}}}),require_is_regex=__commonJS2({"node_modules/is-regex/index.js"(exports,module){var has,$exec,isRegexMarker,badStringifier,callBound=require_callBound(),hasToStringTag=require_shams2()();hasToStringTag&&(has=callBound("Object.prototype.hasOwnProperty"),$exec=callBound("RegExp.prototype.exec"),isRegexMarker={},badStringifier={toString:throwRegexMarker=function(){throw isRegexMarker},valueOf:throwRegexMarker},"symbol"==typeof Symbol.toPrimitive&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker));var throwRegexMarker,$toString=callBound("Object.prototype.toString"),gOPD=Object.getOwnPropertyDescriptor;module.exports=hasToStringTag?function(value22){if(!value22||"object"!=typeof value22)return!1;var descriptor=gOPD(value22,"lastIndex");if(!(descriptor&&has(descriptor,"value")))return!1;try{$exec(value22,badStringifier)}catch(e2){return e2===isRegexMarker}}:function(value22){return!(!value22||"object"!=typeof value22&&"function"!=typeof value22)&&"[object RegExp]"===$toString(value22)}}}),require_is_function=__commonJS2({"node_modules/is-function/index.js"(exports,module){module.exports=function isFunction3(fn){if(!fn)return!1;var string=toString2.call(fn);return"[object Function]"===string||"function"==typeof fn&&"[object RegExp]"!==string||typeof window<"u"&&(fn===window.setTimeout||fn===window.alert||fn===window.confirm||fn===window.prompt)};var toString2=Object.prototype.toString}}),require_is_symbol=__commonJS2({"node_modules/is-symbol/index.js"(exports,module){var symToStr,symStringRegex,isSymbolObject,toStr=Object.prototype.toString;require_has_symbols()()?(symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function(value22){return"symbol"==typeof value22.valueOf()&&symStringRegex.test(symToStr.call(value22))},module.exports=function(value22){if("symbol"==typeof value22)return!0;if("[object Symbol]"!==toStr.call(value22))return!1;try{return isSymbolObject(value22)}catch{return!1}}):module.exports=function(value22){return!1}}}),import_is_regex=__toESM2(require_is_regex()),import_is_function=__toESM2(require_is_function()),import_is_symbol=__toESM2(require_is_symbol());var freeGlobal_default="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root_default=freeGlobal_default||freeSelf||Function("return this")(),Symbol_default=root_default.Symbol,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;var getRawTag_default=function getRawTag(value22){var isOwn=hasOwnProperty.call(value22,symToStringTag),tag=value22[symToStringTag];try{value22[symToStringTag]=void 0;var unmasked=!0}catch{}var result2=nativeObjectToString.call(value22);return unmasked&&(isOwn?value22[symToStringTag]=tag:delete value22[symToStringTag]),result2},nativeObjectToString2=Object.prototype.toString;var objectToString_default=function objectToString(value22){return nativeObjectToString2.call(value22)},symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;var baseGetTag_default=function baseGetTag(value22){return null==value22?void 0===value22?"[object Undefined]":"[object Null]":symToStringTag2&&symToStringTag2 in Object(value22)?getRawTag_default(value22):objectToString_default(value22)},symbolProto=Symbol_default?Symbol_default.prototype:void 0;symbolProto&&symbolProto.toString;var isObject_default=function isObject2(value22){var type=typeof value22;return null!=value22&&("object"==type||"function"==type)};var uid,isFunction_default=function isFunction(value22){if(!isObject_default(value22))return!1;var tag=baseGetTag_default(value22);return"[object Function]"==tag||"[object GeneratorFunction]"==tag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag},coreJsData_default=root_default["__core-js_shared__"],maskSrcKey=(uid=/[^.]+$/.exec(coreJsData_default&&coreJsData_default.keys&&coreJsData_default.keys.IE_PROTO||""))?"Symbol(src)_1."+uid:"";var isMasked_default=function isMasked(func){return!!maskSrcKey&&maskSrcKey in func},funcToString=Function.prototype.toString;var toSource_default=function toSource(func){if(null!=func){try{return funcToString.call(func)}catch{}try{return func+""}catch{}}return""},reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto2=Function.prototype,objectProto3=Object.prototype,funcToString2=funcProto2.toString,hasOwnProperty2=objectProto3.hasOwnProperty,reIsNative=RegExp("^"+funcToString2.call(hasOwnProperty2).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var baseIsNative_default=function baseIsNative(value22){return!(!isObject_default(value22)||isMasked_default(value22))&&(isFunction_default(value22)?reIsNative:reIsHostCtor).test(toSource_default(value22))};var getValue_default=function getValue(object2,key2){return object2?.[key2]};var getNative_default=function getNative(object2,key2){var value22=getValue_default(object2,key2);return baseIsNative_default(value22)?value22:void 0};var eq_default=function eq(value22,other){return value22===other||value22!=value22&&other!=other},nativeCreate_default=getNative_default(Object,"create");var hashClear_default=function hashClear(){this.__data__=nativeCreate_default?nativeCreate_default(null):{},this.size=0};var hashDelete_default=function hashDelete(key2){var result2=this.has(key2)&&delete this.__data__[key2];return this.size-=result2?1:0,result2},hasOwnProperty3=Object.prototype.hasOwnProperty;var hashGet_default=function hashGet(key2){var data=this.__data__;if(nativeCreate_default){var result2=data[key2];return"__lodash_hash_undefined__"===result2?void 0:result2}return hasOwnProperty3.call(data,key2)?data[key2]:void 0},hasOwnProperty4=Object.prototype.hasOwnProperty;var hashHas_default=function hashHas(key2){var data=this.__data__;return nativeCreate_default?void 0!==data[key2]:hasOwnProperty4.call(data,key2)};var hashSet_default=function hashSet(key2,value22){var data=this.__data__;return this.size+=this.has(key2)?0:1,data[key2]=nativeCreate_default&&void 0===value22?"__lodash_hash_undefined__":value22,this};function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index-1};var listCacheSet_default=function listCacheSet(key2,value22){var data=this.__data__,index=assocIndexOf_default(data,key2);return index<0?(++this.size,data.push([key2,value22])):data[index][1]=value22,this};function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index(code=>{let inQuoteChar=null,inBlockComment=!1,inLineComment=!1,inRegexLiteral=!1,newCode="";if(code.indexOf("//")>=0||code.indexOf("/*")>=0)for(let i2=0;i2void 0!==event[value3])).reduce(((acc,value3)=>({...acc,[value3]:event[value3]})),{});return event instanceof CustomEvent&&customEventSpecificProperties.filter((value3=>void 0!==event[value3])).forEach((value3=>{rebuildEvent[value3]=event[value3]})),rebuildEvent}(result2),wasMutated=!0),result2=Object.keys(result2).reduce(((acc,key2)=>{try{result2[key2]&&result2[key2].toJSON,acc[key2]=result2[key2]}catch{wasMutated=!0}return acc}),{}),wasMutated?result2:data}var defaultOptions={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},stringify=(data,options2={})=>{let mergedOptions={...defaultOptions,...options2};return JSON.stringify(convertUnconventionalData(data),function(options2){let objects,map,stack,keys;return function(key2,value22){try{if(""===key2)return keys=[],objects=new Map([[value22,"[]"]]),map=new Map,stack=[],value22;let origin=map.get(this)||this;for(;stack.length&&origin!==stack[0];)stack.shift(),keys.pop();if("boolean"==typeof value22)return value22;if(void 0===value22)return options2.allowUndefined?"_undefined_":void 0;if(null===value22)return null;if("number"==typeof value22)return value22===-1/0?"_-Infinity_":value22===1/0?"_Infinity_":Number.isNaN(value22)?"_NaN_":value22;if("bigint"==typeof value22)return`_bigint_${value22.toString()}`;if("string"==typeof value22)return dateFormat.test(value22)?options2.allowDate?`_date_${value22}`:void 0:value22;if((0,import_is_regex.default)(value22))return options2.allowRegExp?`_regexp_${value22.flags}|${value22.source}`:void 0;if((0,import_is_function.default)(value22)){if(!options2.allowFunction)return;let{name:name2}=value22,stringified=value22.toString();return stringified.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${name2}|${(()=>{}).toString()}`:`_function_${name2}|${cleanCode(function(key2,stringified){let fnHead=stringified.slice(0,stringified.indexOf("{")),fnBody=stringified.slice(stringified.indexOf("{"));if(fnHead.includes("=>")||fnHead.includes("function"))return stringified;let modifiedHead=fnHead;return modifiedHead=modifiedHead.replace(key2,"function"),modifiedHead+fnBody}(key2,stringified))}`}if((0,import_is_symbol.default)(value22)){if(!options2.allowSymbol)return;let globalRegistryKey=Symbol.keyFor(value22);return void 0!==globalRegistryKey?`_gsymbol_${globalRegistryKey}`:`_symbol_${value22.toString().slice(7,-1)}`}if(stack.length>=options2.maxDepth)return Array.isArray(value22)?`[Array(${value22.length})]`:"[Object]";if(value22===this)return`_duplicate_${JSON.stringify(keys)}`;if(value22 instanceof Error&&options2.allowError)return{__isConvertedError__:!0,errorProperties:{...value22.cause?{cause:value22.cause}:{},...value22,name:value22.name,message:value22.message,stack:value22.stack,"_constructor-name_":value22.constructor.name}};if(value22.constructor&&value22.constructor.name&&"Object"!==value22.constructor.name&&!Array.isArray(value22)&&!options2.allowClass)return;let found=objects.get(value22);if(!found){let converted=Array.isArray(value22)?value22:convertUnconventionalData(value22);if(value22.constructor&&value22.constructor.name&&"Object"!==value22.constructor.name&&!Array.isArray(value22)&&options2.allowClass)try{Object.assign(converted,{"_constructor-name_":value22.constructor.name})}catch{}return keys.push(key2),stack.unshift(converted),objects.set(value22,JSON.stringify(keys)),value22!==converted&&map.set(value22,converted),converted}return`_duplicate_${found}`}catch{return}}}(mergedOptions),options2.space)};function argsHash(args2){return stringify(args2,{allowFunction:!1})}var SourceContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({sources:{}}),SourceContainer=({children,channel})=>{let[sources,setSources]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({});return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let handleSnippetRendered=(idOrEvent,inputSource=null,inputFormat=!1)=>{let{id,args:args2,source:source2,format:format3}="string"==typeof idOrEvent?{id:idOrEvent,source:inputSource,format:inputFormat}:idOrEvent,hash=args2?argsHash(args2):"--unknown--";setSources((current=>({...current,[id]:{...current[id],[hash]:{code:source2,format:format3}}})))};return channel.on(storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__.Op,handleSnippetRendered),()=>channel.off(storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__.Op,handleSnippetRendered)}),[]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceContext.Provider,{value:{sources}},children)},getSnippet=({snippet,storyContext,typeFromProps,transformFromProps})=>{let{__isArgsStory:isArgsStory}=storyContext.parameters,sourceParameters=storyContext.parameters.docs?.source||{},type=typeFromProps||sourceParameters.type||storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__.Y1.AUTO;if(void 0!==sourceParameters.code)return sourceParameters.code;let code=type===storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__.Y1.DYNAMIC||type===storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__.Y1.AUTO&&snippet&&isArgsStory?snippet:sourceParameters.originalSource||"";return(transformFromProps??sourceParameters.transform)?.(code,storyContext)||code},useSourceProps=(props,docsContext,sourceContext)=>{let story,{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(of)story=docsContext.resolveOf(of,["story"]).story;else try{story=docsContext.storyById()}catch{}let sourceParameters=story?.parameters?.docs?.source||{},{code}=props,format3=props.format??sourceParameters.format,language=props.language??sourceParameters.language??"jsx",dark=props.dark??sourceParameters.dark??!1;if(!code&&!story)return{error:"Oh no! The source is not available."};if(code)return{code,format:format3,language,dark};let storyContext=docsContext.getStoryContext(story),argsForSource=props.__forceInitialArgs?storyContext.initialArgs:storyContext.unmappedArgs,source2=((storyId,args2,sourceContext)=>{let{sources}=sourceContext,sourceMap=sources?.[storyId];return sourceMap?.[argsHash(args2)]||sourceMap?.["--unknown--"]||{code:""}})(story.id,argsForSource,sourceContext);return format3=source2.format??story.parameters.docs?.source?.format??!1,{code:getSnippet({snippet:source2.code,storyContext:{...storyContext,args:argsForSource},typeFromProps:props.type,transformFromProps:props.transform}),format:format3,language,dark}};function useStory(storyId,context){let stories=function useStories(storyIds,context){let[storiesById,setStories]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({});return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{Promise.all(storyIds.map((async storyId=>{let story=await context.loadStory(storyId);setStories((current=>current[storyId]===story?current:{...current,[storyId]:story}))})))})),storyIds.map((storyId=>{if(storiesById[storyId])return storiesById[storyId];try{return context.storyById(storyId)}catch{return null}}))}([storyId],context);return stories&&stories[0]}var Story2=(props={__forceInitialArgs:!1,__primary:!1})=>{let context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext),storyId=((props,context)=>{let{of,meta}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return meta&&context.referenceMeta(meta,!1),context.resolveOf(of||"story",["story"]).story.id})(props,context),story=useStory(storyId,context);if(!story)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StorySkeleton,null);let storyProps=((props,story,context)=>{let{parameters={}}=story||{},{docs={}}=parameters,storyParameters=docs.story||{};if(docs.disable)return null;if(props.inline??storyParameters.inline)return{story,inline:!0,height:props.height??storyParameters.height,autoplay:props.autoplay??storyParameters.autoplay??!1,forceInitialArgs:!!props.__forceInitialArgs,primary:!!props.__primary,renderStoryToElement:context.renderStoryToElement};return{story,inline:!1,height:props.height??storyParameters.height??storyParameters.iframeHeight??"100px",primary:!!props.__primary}})(props,story,context);return storyProps?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Story,{...storyProps}):null},Canvas=props=>{let docsContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext),sourceContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(SourceContext),{of,source:source2}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story}=useOf(of||"story",["story"]),sourceProps=useSourceProps({...source2,...of&&{of}},docsContext,sourceContext),layout=props.layout??story.parameters.layout??story.parameters.docs?.canvas?.layout??"padded",withToolbar=props.withToolbar??story.parameters.docs?.canvas?.withToolbar??!1,additionalActions=props.additionalActions??story.parameters.docs?.canvas?.additionalActions,sourceState=props.sourceState??story.parameters.docs?.canvas?.sourceState??"hidden",className=props.className??story.parameters.docs?.canvas?.className;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Preview,{withSource:"none"===sourceState?void 0:sourceProps,isExpanded:"shown"===sourceState,withToolbar,additionalActions,className,layout},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Story2,{of:of||story.moduleExport,meta:props.meta,...props.story}))},useArgsIfDefined=(story,context)=>{let storyContext=story?context.getStoryContext(story):{args:{}},{id:storyId}=story||{id:"none"},[args2,setArgs]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(storyContext.args);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let onArgsUpdated=changed=>{changed.storyId===storyId&&setArgs(changed.args)};return context.channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.STORY_ARGS_UPDATED,onArgsUpdated),()=>context.channel.off(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.STORY_ARGS_UPDATED,onArgsUpdated)}),[storyId,context.channel]);let updateArgs=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((updatedArgs=>context.channel.emit(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.UPDATE_STORY_ARGS,{storyId,updatedArgs})),[storyId,context.channel]),resetArgs=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((argNames=>context.channel.emit(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.RESET_STORY_ARGS,{storyId,argNames})),[storyId,context.channel]);return story&&[args2,updateArgs,resetArgs]};function extractComponentArgTypes2(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error("Args unsupported. See Args documentation for your framework.");return extractArgTypes(component)}var Controls3=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext),{story}=context.resolveOf(of||"story",["story"]),{parameters,argTypes,component,subcomponents}=story,controlsParameters=parameters.docs?.controls||{},include=props.include??controlsParameters.include,exclude=props.exclude??controlsParameters.exclude,sort=props.sort??controlsParameters.sort,[args2,updateArgs,resetArgs]=((story,context)=>{let result2=useArgsIfDefined(story,context);if(!result2)throw new Error("No result when story was defined");return result2})(story,context),[globals]=((story,context)=>{let storyContext=context.getStoryContext(story),[globals,setGlobals]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(storyContext.globals);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let onGlobalsUpdated=changed=>{setGlobals(changed.globals)};return context.channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.GLOBALS_UPDATED,onGlobalsUpdated),()=>context.channel.off(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.GLOBALS_UPDATED,onGlobalsUpdated)}),[context.channel]),[globals]})(story,context),filteredArgTypes=(0,storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_3__.filterArgTypes)(argTypes,include,exclude);if(!(subcomponents&&Object.keys(subcomponents).length>0))return Object.keys(filteredArgTypes).length>0||Object.keys(args2).length>0?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgsTable,{rows:filteredArgTypes,sort,args:args2,globals,updateArgs,resetArgs}):null;let mainComponentName=getComponentName(component),subcomponentTabs=Object.fromEntries(Object.entries(subcomponents).map((([key2,comp])=>[key2,{rows:(0,storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_3__.filterArgTypes)(extractComponentArgTypes2(comp,parameters),include,exclude),sort}]))),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(TabbedArgsTable,{tabs,sort,args:args2,globals,updateArgs,resetArgs})},{document:document2}=globalThis,CodeOrSourceMdx=({className,children,...rest})=>{if("string"!=typeof className&&("string"!=typeof children||!children.match(/[\n\r]/g)))return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.Cy,null,children);let language=className&&className.split("-");return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Source,{language:language&&language[1]||"text",format:!1,code:children,...rest})};function navigate(context,url){context.channel.emit(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.NAVIGATE_URL,url)}var DescriptionType2,A2=storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.dK.a,AnchorInPage=({hash,children})=>{let context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(A2,{href:hash,target:"_self",onClick:event=>{let id=hash.substring(1);document2.getElementById(id)&&navigate(context,hash)}},children)},AnchorMdx=props=>{let{href,target,children,...rest}=props,context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext);return!href||"_blank"===target||/^https?:\/\//.test(href)?react__WEBPACK_IMPORTED_MODULE_0__.createElement(A2,{...props}):href.startsWith("#")?react__WEBPACK_IMPORTED_MODULE_0__.createElement(AnchorInPage,{hash:href},children):react__WEBPACK_IMPORTED_MODULE_0__.createElement(A2,{href,onClick:event=>{0===event.button&&!event.altKey&&!event.ctrlKey&&!event.metaKey&&!event.shiftKey&&(event.preventDefault(),navigate(context,event.currentTarget.getAttribute("href")))},target,...rest},children)},SUPPORTED_MDX_HEADERS=["h1","h2","h3","h4","h5","h6"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce(((acc,headerType)=>({...acc,[headerType]:(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(headerType)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})})),{}),OcticonAnchor=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.a((()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"}))),HeaderWithOcticonAnchor=({as,id,children,...rest})=>{let context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext),OcticonHeader=OcticonHeaders[as],hash=`#${id}`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(OcticonHeader,{id,...rest},react__WEBPACK_IMPORTED_MODULE_0__.createElement(OcticonAnchor,{"aria-hidden":"true",href:hash,tabIndex:-1,target:"_self",onClick:event=>{document2.getElementById(id)&&navigate(context,hash)}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.qYV,null)),children)},HeaderMdx=props=>{let{as,id,children,...rest}=props;if(id)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderWithOcticonAnchor,{as,id,...rest},children);let Component4=as,{as:omittedAs,...withoutAs}=props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component4,{...(0,storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.mc)(withoutAs,as)})},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce(((acc,headerType)=>({...acc,[headerType]:props=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderMdx,{as:headerType,...props})})),{}),Markdown=props=>{if(!props.children)return null;if("string"!=typeof props.children)throw new Error(ts_dedent__WEBPACK_IMPORTED_MODULE_11__.T`The Markdown block only accepts children as a single string, but children were of type: '${typeof props.children}' +/*! For license information please see 443.977eea32.iframe.bundle.js.LICENSE.txt */ +"use strict";(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[443],{"./node_modules/.pnpm/@storybook+blocks@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/blocks/dist/chunk-2PTXLE6R.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{P$:()=>__commonJS,Yq:()=>getControlSetterButtonId,ZA:()=>getControlId,f1:()=>__toESM,fN:()=>pickBy,ki:()=>__require,mg:()=>cloneDeep2,sb:()=>uniq,sg:()=>debounce2});var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__require=__webpack_require__("./node_modules/.pnpm/@storybook+blocks@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/blocks/dist sync recursive"),__commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__toESM=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod));function debounce(func,debounceMs,{signal,edges}={}){let pendingThis,pendingArgs=null,leading=null!=edges&&edges.includes("leading"),trailing=null==edges||edges.includes("trailing"),invoke=()=>{null!==pendingArgs&&(func.apply(pendingThis,pendingArgs),pendingThis=void 0,pendingArgs=null)},timeoutId=null,schedule=()=>{null!=timeoutId&&clearTimeout(timeoutId),timeoutId=setTimeout((()=>{timeoutId=null,trailing&&invoke(),cancel()}),debounceMs)},cancelTimer=()=>{null!==timeoutId&&(clearTimeout(timeoutId),timeoutId=null)},cancel=()=>{cancelTimer(),pendingThis=void 0,pendingArgs=null},debounced=function(...args){if(signal?.aborted)return;pendingThis=this,pendingArgs=args;let isFirstCall=null==timeoutId;schedule(),leading&&isFirstCall&&invoke()};return debounced.schedule=schedule,debounced.cancel=cancel,debounced.flush=()=>{cancelTimer(),invoke()},signal?.addEventListener("abort",cancel,{once:!0}),debounced}function debounce2(func,debounceMs=0,options={}){"object"!=typeof options&&(options={});let{signal,leading=!1,trailing=!0,maxWait}=options,edges=Array(2);leading&&(edges[0]="leading"),trailing&&(edges[1]="trailing");let result,pendingAt=null,_debounced=debounce((function(...args){result=func.apply(this,args),pendingAt=null}),debounceMs,{signal,edges}),debounced=function(...args){if(null!=maxWait)if(null===pendingAt)pendingAt=Date.now();else if(Date.now()-pendingAt>=maxWait)return result=func.apply(this,args),pendingAt=Date.now(),_debounced.cancel(),_debounced.schedule(),result;return _debounced.apply(this,args),result};return debounced.cancel=_debounced.cancel,debounced.flush=()=>(_debounced.flush(),result),debounced}function uniq(arr){return Array.from(new Set(arr))}function pickBy(obj,shouldPick){let result={},objEntries=Object.entries(obj);for(let i=0;i`control-${value.replace(/\s+/g,"-")}`,getControlSetterButtonId=value=>`set-${value.replace(/\s+/g,"-")}`},"./node_modules/.pnpm/@storybook+blocks@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/blocks/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Sw:()=>HeadersMdx,W8:()=>Meta,XA:()=>CodeOrSourceMdx,kQ:()=>Docs,zE:()=>AnchorMdx});var _chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/.pnpm/@storybook+blocks@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/blocks/dist/chunk-2PTXLE6R.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/components/index.js"),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/theming/index.js"),_storybook_icons__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("./node_modules/.pnpm/@storybook+icons@1.2.12_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/@storybook/icons/dist/index.mjs"),storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("storybook/internal/client-logger"),_storybook_csf__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.1.11/node_modules/@storybook/csf/dist/index.mjs"),storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("storybook/internal/preview-api"),storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/docs-tools/index.js"),storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("storybook/internal/core-events"),ts_dedent__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("./node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.js"),storybook_internal_channels__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("storybook/internal/channels"),require_memoizerific=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/memoizerific/memoizerific.js"(exports,module){!function(f3){if("object"==typeof exports&&typeof module<"u")module.exports=f3();else if("function"==typeof define&&__webpack_require__.amdO)define([],f3);else{(typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:this).memoizerific=f3()}}((function(){return function e2(t2,n2,r2){function s2(o3,u2){if(!n2[o3]){if(!t2[o3]){var a2="function"==typeof _chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ki&&_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ki;if(!u2&&a2)return a2(o3,!0);if(i2)return i2(o3,!0);var f3=new Error("Cannot find module '"+o3+"'");throw f3.code="MODULE_NOT_FOUND",f3}var l2=n2[o3]={exports:{}};t2[o3][0].call(l2.exports,(function(e3){return s2(t2[o3][1][e3]||e3)}),l2,l2.exports,e2,t2,n2,r2)}return n2[o3].exports}for(var i2="function"==typeof _chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ki&&_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ki,o2=0;o2=0?(this.lastItem=this.list[index],this.list[index].val):void 0},Similar.prototype.set=function(key2,val){var index;return this.lastItem&&this.isEqual(this.lastItem.key,key2)?(this.lastItem.val=val,this):(index=this.indexOf(key2))>=0?(this.lastItem=this.list[index],this.list[index].val=val,this):(this.lastItem={key:key2,val},this.list.push(this.lastItem),this.size++,this)},Similar.prototype.delete=function(key2){var index;if(this.lastItem&&this.isEqual(this.lastItem.key,key2)&&(this.lastItem=void 0),(index=this.indexOf(key2))>=0)return this.size--,this.list.splice(index,1)[0]},Similar.prototype.has=function(key2){var index;return!(!this.lastItem||!this.isEqual(this.lastItem.key,key2))||(index=this.indexOf(key2))>=0&&(this.lastItem=this.list[index],!0)},Similar.prototype.forEach=function(callback,thisArg){var i2;for(i2=0;i20&&(lruPath[argsLengthMinusOne]={cacheItem:currentCache,arg:arguments[argsLengthMinusOne]},isMemoized?function moveToMostRecentLru(lru,lruPath){var isMatch,i2,ii,lruLen=lru.length,lruPathLen=lruPath.length;for(i2=0;i2limit&&function removeCachedResult(removedLru){var tmp,i2,removedLruLen=removedLru.length,currentLru=removedLru[removedLruLen-1];for(currentLru.cacheItem.delete(currentLru.arg),i2=removedLruLen-2;i2>=0&&(currentLru=removedLru[i2],!(tmp=currentLru.cacheItem.get(currentLru.arg))||!tmp.size);i2--)currentLru.cacheItem.delete(currentLru.arg)}(lru.shift())),memoizerific.wasMemoized=isMemoized,memoizerific.numArgs=argsLengthMinusOne+1,fnResult};return memoizerific.limit=limit,memoizerific.wasMemoized=!1,memoizerific.cache=cache,memoizerific.lru=lru,memoizerific}}},{"map-or-similar":1}]},{},[3])(3)}))}}),require_default_options=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/tocbot/src/js/default-options.js"(exports,module){module.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e2){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e2){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),require_build_html=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/tocbot/src/js/build-html.js"(exports,module){module.exports=function(options2){var tocElement,forEach=[].forEach,some=[].some,body=document.body,currentlyHighlighting=!0,SPACE_CHAR=" ";function createEl(d2,container){var link=container.appendChild(function createLink(data){var item=document.createElement("li"),a2=document.createElement("a");return options2.listItemClass&&item.setAttribute("class",options2.listItemClass),options2.onClick&&(a2.onclick=options2.onClick),options2.includeTitleTags&&a2.setAttribute("title",data.textContent),options2.includeHtml&&data.childNodes.length?forEach.call(data.childNodes,(function(node){a2.appendChild(node.cloneNode(!0))})):a2.textContent=data.textContent,a2.setAttribute("href",options2.basePath+"#"+data.id),a2.setAttribute("class",options2.linkClass+SPACE_CHAR+"node-name--"+data.nodeName+SPACE_CHAR+options2.extraLinkClasses),item.appendChild(a2),item}(d2));if(d2.children.length){var list=createList(d2.isCollapsed);d2.children.forEach((function(child){createEl(child,list)})),link.appendChild(list)}}function createList(isCollapsed){var listElement=options2.orderedList?"ol":"ul",list=document.createElement(listElement),classes=options2.listClass+SPACE_CHAR+options2.extraListClasses;return isCollapsed&&(classes=(classes=classes+SPACE_CHAR+options2.collapsibleClass)+SPACE_CHAR+options2.isCollapsedClass),list.setAttribute("class",classes),list}function getHeadingTopPos(obj){var position=0;return null!==obj&&(position=obj.offsetTop,options2.hasInnerContainers&&(position+=getHeadingTopPos(obj.offsetParent))),position}function updateClassname(obj,className){return obj&&obj.className!==className&&(obj.className=className),obj}function removeCollapsedFromParents(element){return element&&-1!==element.className.indexOf(options2.collapsibleClass)&&-1!==element.className.indexOf(options2.isCollapsedClass)?(updateClassname(element,element.className.replace(SPACE_CHAR+options2.isCollapsedClass,"")),removeCollapsedFromParents(element.parentNode.parentNode)):element}return{enableTocAnimation:function enableTocAnimation(){currentlyHighlighting=!0},disableTocAnimation:function disableTocAnimation(event){var target=event.target||event.srcElement;"string"!=typeof target.className||-1===target.className.indexOf(options2.linkClass)||(currentlyHighlighting=!1)},render:function render(parent,data){var container=createList(!1);if(data.forEach((function(d2){createEl(d2,container)})),null!==(tocElement=parent||tocElement))return tocElement.firstChild&&tocElement.removeChild(tocElement.firstChild),0===data.length?tocElement:tocElement.appendChild(container)},updateToc:function updateToc(headingsArray){var top;top=options2.scrollContainer&&document.querySelector(options2.scrollContainer)?document.querySelector(options2.scrollContainer).scrollTop:document.documentElement.scrollTop||body.scrollTop,options2.positionFixedSelector&&function updateFixedSidebarClass(){var top;top=options2.scrollContainer&&document.querySelector(options2.scrollContainer)?document.querySelector(options2.scrollContainer).scrollTop:document.documentElement.scrollTop||body.scrollTop;var posFixedEl=document.querySelector(options2.positionFixedSelector);"auto"===options2.fixedSidebarOffset&&(options2.fixedSidebarOffset=tocElement.offsetTop),top>options2.fixedSidebarOffset?-1===posFixedEl.className.indexOf(options2.positionFixedClass)&&(posFixedEl.className+=SPACE_CHAR+options2.positionFixedClass):posFixedEl.className=posFixedEl.className.replace(SPACE_CHAR+options2.positionFixedClass,"")}();var topHeader,headings=headingsArray;if(currentlyHighlighting&&null!==tocElement&&headings.length>0){some.call(headings,(function(heading,i2){return getHeadingTopPos(heading)>top+options2.headingsOffset+10?(topHeader=headings[0===i2?i2:i2-1],!0):i2===headings.length-1?(topHeader=headings[headings.length-1],!0):void 0}));var oldActiveTocLink=tocElement.querySelector("."+options2.activeLinkClass),activeTocLink=tocElement.querySelector("."+options2.linkClass+".node-name--"+topHeader.nodeName+'[href="'+options2.basePath+"#"+topHeader.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(oldActiveTocLink===activeTocLink)return;var tocLinks=tocElement.querySelectorAll("."+options2.linkClass);forEach.call(tocLinks,(function(tocLink){updateClassname(tocLink,tocLink.className.replace(SPACE_CHAR+options2.activeLinkClass,""))}));var tocLis=tocElement.querySelectorAll("."+options2.listItemClass);forEach.call(tocLis,(function(tocLi){updateClassname(tocLi,tocLi.className.replace(SPACE_CHAR+options2.activeListItemClass,""))})),activeTocLink&&-1===activeTocLink.className.indexOf(options2.activeLinkClass)&&(activeTocLink.className+=SPACE_CHAR+options2.activeLinkClass);var li=activeTocLink&&activeTocLink.parentNode;li&&-1===li.className.indexOf(options2.activeListItemClass)&&(li.className+=SPACE_CHAR+options2.activeListItemClass);var tocLists=tocElement.querySelectorAll("."+options2.listClass+"."+options2.collapsibleClass);forEach.call(tocLists,(function(list){-1===list.className.indexOf(options2.isCollapsedClass)&&(list.className+=SPACE_CHAR+options2.isCollapsedClass)})),activeTocLink&&activeTocLink.nextSibling&&-1!==activeTocLink.nextSibling.className.indexOf(options2.isCollapsedClass)&&updateClassname(activeTocLink.nextSibling,activeTocLink.nextSibling.className.replace(SPACE_CHAR+options2.isCollapsedClass,"")),removeCollapsedFromParents(activeTocLink&&activeTocLink.parentNode.parentNode)}}}}}}),require_parse_content=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/tocbot/src/js/parse-content.js"(exports,module){module.exports=function(options2){var reduce=[].reduce;function getLastItem(array2){return array2[array2.length-1]}function getHeadingLevel(heading){return+heading.nodeName.toUpperCase().replace("H","")}function getHeadingObject(heading){if(!function isHTMLElement(maybeElement){try{return maybeElement instanceof window.HTMLElement||maybeElement instanceof window.parent.HTMLElement}catch{return maybeElement instanceof window.HTMLElement}}(heading))return heading;if(options2.ignoreHiddenElements&&(!heading.offsetHeight||!heading.offsetParent))return null;let headingLabel=heading.getAttribute("data-heading-label")||(options2.headingLabelCallback?String(options2.headingLabelCallback(heading.innerText)):(heading.innerText||heading.textContent).trim());var obj={id:heading.id,children:[],nodeName:heading.nodeName,headingLevel:getHeadingLevel(heading),textContent:headingLabel};return options2.includeHtml&&(obj.childNodes=heading.childNodes),options2.headingObjectCallback?options2.headingObjectCallback(obj,heading):obj}return{nestHeadingsArray:function nestHeadingsArray(headingsArray){return reduce.call(headingsArray,(function(prev,curr){var currentHeading=getHeadingObject(curr);return currentHeading&&function addNode(node,nest){for(var obj=getHeadingObject(node),level=obj.headingLevel,array2=nest,lastItem=getLastItem(array2),counter=level-(lastItem?lastItem.headingLevel:0);counter>0&&(!(lastItem=getLastItem(array2))||level!==lastItem.headingLevel);)lastItem&&void 0!==lastItem.children&&(array2=lastItem.children),counter--;return level>=options2.collapseDepth&&(obj.isCollapsed=!0),array2.push(obj),array2}(currentHeading,prev.nest),prev}),{nest:[]})},selectHeadings:function selectHeadings(contentElement,headingSelector){var selectors=headingSelector;options2.ignoreSelector&&(selectors=headingSelector.split(",").map((function(selector){return selector.trim()+":not("+options2.ignoreSelector+")"})));try{return contentElement.querySelectorAll(selectors)}catch{return console.warn("Headers not found with selector: "+selectors),null}}}}}}),require_update_toc_scroll=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(exports,module){module.exports=function(options2){var toc=options2.tocElement||document.querySelector(options2.tocSelector);if(toc&&toc.scrollHeight>toc.clientHeight){var activeItem=toc.querySelector("."+options2.activeListItemClass);activeItem&&(toc.scrollTop=activeItem.offsetTop-options2.tocScrollOffset)}}}}),require_scroll_smooth=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.P$)({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(exports){exports.initSmoothScrolling=function initSmoothScrolling(options2){var duration=options2.duration,offset=options2.offset,pageUrl=location.hash?stripHash(location.href):location.href;function stripHash(url){return url.slice(0,url.lastIndexOf("#"))}!function delegatedLinkHijacking(){document.body.addEventListener("click",(function onClick(e2){!function isInPageLink(n2){return"a"===n2.tagName.toLowerCase()&&(n2.hash.length>0||"#"===n2.href.charAt(n2.href.length-1))&&(stripHash(n2.href)===pageUrl||stripHash(n2.href)+"#"===pageUrl)}(e2.target)||e2.target.className.indexOf("no-smooth-scroll")>-1||"#"===e2.target.href.charAt(e2.target.href.length-2)&&"!"===e2.target.href.charAt(e2.target.href.length-1)||-1===e2.target.className.indexOf(options2.linkClass)||function jump(target,options2){var timeStart,timeElapsed,start=window.pageYOffset,opt={duration:options2.duration,offset:options2.offset||0,callback:options2.callback,easing:options2.easing||easeInOutQuad},tgt=document.querySelector('[id="'+decodeURI(target).split("#").join("")+'"]')||document.querySelector('[id="'+target.split("#").join("")+'"]'),distance="string"==typeof target?opt.offset+(target?tgt&&tgt.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):target,duration="function"==typeof opt.duration?opt.duration(distance):opt.duration;function loop(time){timeElapsed=time-timeStart,window.scrollTo(0,opt.easing(timeElapsed,start,distance,duration)),timeElapsed"u")||supports){var headingsArray,hasOwnProperty5=Object.prototype.hasOwnProperty;return tocbot2.destroy=function(){var tocElement=getTocElement(options2);null!==tocElement&&(options2.skipRendering||tocElement&&(tocElement.innerHTML=""),options2.scrollContainer&&document.querySelector(options2.scrollContainer)?(document.querySelector(options2.scrollContainer).removeEventListener("scroll",this._scrollListener,!1),document.querySelector(options2.scrollContainer).removeEventListener("resize",this._scrollListener,!1),buildHtml&&document.querySelector(options2.scrollContainer).removeEventListener("click",this._clickListener,!1)):(document.removeEventListener("scroll",this._scrollListener,!1),document.removeEventListener("resize",this._scrollListener,!1),buildHtml&&document.removeEventListener("click",this._clickListener,!1)))},tocbot2.init=function(customOptions){if(supports){options2=function extend(){for(var target={},i2=0;i21?_len2-1:0),_key2=1;_key2<_len2;_key2++)args2[_key2-1]=arguments[_key2];return function _assertThisInitialized(e2){if(void 0===e2)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e2}(_Error.call(this,format.apply(void 0,[ERRORS[code]].concat(args2)))||this)}return function _inheritsLoose(t2,o2){t2.prototype=Object.create(o2.prototype),t2.prototype.constructor=t2,_setPrototypeOf(t2,o2)}(PolishedError2,_Error),PolishedError2}(_wrapNativeSuper(Error));function colorToInt(color){return Math.round(255*color)}function convertToInt(red,green,blue){return colorToInt(red)+","+colorToInt(green)+","+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert2){if(void 0===convert2&&(convert2=convertToInt),0===saturation)return convert2(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert2(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}var namedColorMap={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"};var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^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 parseToRgb(color){if("string"!=typeof color)throw new PolishedError(3);var normalizedColor=function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function parseToHsl(color){return function rgbToHsl(color){var red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return void 0!==color.alpha?{hue:0,saturation:0,lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness};var hue,delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"==typeof firstValue&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new PolishedError(7)}var isRgb=function(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||typeof color.alpha>"u")},isRgba=function(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha},isHsl=function(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||typeof color.alpha>"u")},isHsla=function(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha};function toColorString(color){if("object"!=typeof color)throw new PolishedError(8);if(isRgba(color))return rgba(color);if(isRgb(color))return rgb(color);if(isHsla(color))return function hsla(value3,saturation,lightness,alpha){if("number"==typeof value3&&"number"==typeof saturation&&"number"==typeof lightness&&"number"==typeof alpha)return alpha>=1?hslToHex(value3,saturation,lightness):"rgba("+hslToRgb(value3,saturation,lightness)+","+alpha+")";if("object"==typeof value3&&void 0===saturation&&void 0===lightness&&void 0===alpha)return value3.alpha>=1?hslToHex(value3.hue,value3.saturation,value3.lightness):"rgba("+hslToRgb(value3.hue,value3.saturation,value3.lightness)+","+value3.alpha+")";throw new PolishedError(2)}(color);if(isHsl(color))return function hsl(value3,saturation,lightness){if("number"==typeof value3&&"number"==typeof saturation&&"number"==typeof lightness)return hslToHex(value3,saturation,lightness);if("object"==typeof value3&&void 0===saturation&&void 0===lightness)return hslToHex(value3.hue,value3.saturation,value3.lightness);throw new PolishedError(1)}(color);throw new PolishedError(8)}function curried(f3,length,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f3.apply(this,combined):curried(f3,length,combined)}}function curry(f3){return curried(f3,f3.length,[])}function guard(lowerBoundary,upperBoundary,value3){return Math.max(lowerBoundary,Math.min(upperBoundary,value3))}var curriedDarken$1=curry((function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}));var curriedLighten$1=curry((function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}));var curriedOpacify$1=curry((function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)+100*parseFloat(amount))/100)}))}));var curriedTransparentize$1=curry((function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,+(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)-100*parseFloat(amount)).toFixed(2)/100)}))})),Wrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.YV,(({theme})=>({backgroundColor:"light"===theme.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:theme.appBorderRadius,border:`1px dashed ${theme.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:curriedTransparentize$1(.3,theme.color.defaultText),fontSize:theme.typography.size.s2}))),EmptyBlock=props=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper,{...props,className:"docblock-emptyblock sb-unstyled"}),StyledSyntaxHighlighter=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.bF)((({theme})=>({fontSize:theme.typography.size.s2-1+"px",lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:"light"===theme.base?"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"}}))),SourceSkeletonWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({background:theme.background.content,borderRadius:theme.appBorderRadius,border:`1px solid ${theme.appBorderColor}`,boxShadow:"light"===theme.base?"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"}))),SourceSkeletonPlaceholder=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.v_}`]:{margin:0}}))),SourceSkeleton=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeletonWrapper,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeletonPlaceholder,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}})),Source=({isLoading,error,language,code,dark,format:format3=!1,...rest})=>{let{typography}=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.DP)();if(isLoading)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceSkeleton,null);if(error)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(EmptyBlock,null,error);let syntaxHighlighter=react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,format:format3,language,className:"docblock-source sb-unstyled",...rest},code);if(typeof dark>"u")return syntaxHighlighter;let overrideTheme=dark?storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.Zj.dark:storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.Zj.light;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.NP,{theme:(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.C6)({...overrideTheme,fontCode:typography.fonts.mono,fontBase:typography.fonts.base})},syntaxHighlighter)},toGlobalSelector=element=>`& :where(${element}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${element}))`,Title=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.h1(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.YV,(({theme})=>({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,lineHeight:"32px","@media (min-width: 600px)":{fontSize:theme.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}))),Subtitle=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.h2(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.YV,(({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,"@media (min-width: 600px)":{fontSize:theme.typography.size.m1,lineHeight:"28px",marginBottom:24},color:curriedTransparentize$1(.25,theme.color.defaultText)}))),DocsContent=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>{let reset={fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},headers={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},code={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:"light"===theme.base?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:"light"===theme.base?theme.color.lighter:theme.color.border};return{maxWidth:1e3,width:"100%",[toGlobalSelector("a")]:{...reset,fontSize:"inherit",lineHeight:"24px",color:theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[toGlobalSelector("blockquote")]:{...reset,margin:"16px 0",borderLeft:`4px solid ${theme.color.medium}`,padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[toGlobalSelector("div")]:reset,[toGlobalSelector("dl")]:{...reset,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}},[toGlobalSelector("h1")]:{...reset,...headers,fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h2")]:{...reset,...headers,fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`},[toGlobalSelector("h3")]:{...reset,...headers,fontSize:`${theme.typography.size.m1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h4")]:{...reset,...headers,fontSize:`${theme.typography.size.s3}px`},[toGlobalSelector("h5")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`},[toGlobalSelector("h6")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},[toGlobalSelector("hr")]:{border:"0 none",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},[toGlobalSelector("img")]:{maxWidth:"100%"},[toGlobalSelector("li")]:{...reset,fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":code},[toGlobalSelector("ol")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[toGlobalSelector("p")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":code},[toGlobalSelector("pre")]:{...reset,fontFamily:theme.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"}},[toGlobalSelector("span")]:{...reset,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${theme.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:theme.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"}}},[toGlobalSelector("table")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===theme.base?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${theme.appBorderColor}`,color:theme.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}},[toGlobalSelector("ul")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}})),DocsWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({background:theme.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem","@media (min-width: 600px)":{}}))),DocsPageWrapper=({children,toc})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsWrapper,{className:"sbdocs sbdocs-wrapper"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsContent,{className:"sbdocs sbdocs-content"},children),toc),getBlockBackgroundStyle=theme=>({borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${theme.appBorderColor}`}),{window:globalWindow}=globalThis,IFrame=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id}=this.props;this.iframe=globalWindow.document.getElementById(id)}shouldComponentUpdate(nextProps){let{scale}=nextProps;return scale!==this.props.scale&&this.setIframeBodyStyle({width:100*scale+"%",height:100*scale+"%",transform:`scale(${1/scale})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}render(){let{id,title,src,allowFullScreen,scale,...rest}=this.props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("iframe",{id,title,src,...allowFullScreen?{allow:"fullscreen"}:{},loading:"lazy",...rest})}},ZoomContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({scale:1}),{PREVIEW_URL}=globalThis,BASE_URL=PREVIEW_URL||"iframe.html",storyBlockIdFromId=({story,primary})=>`story--${story.id}${primary?"--primary":""}`,InlineStory=props=>{let storyRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),[showLoader,setShowLoader]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),[error,setError]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(),{story,height,autoplay,forceInitialArgs,renderStoryToElement}=props;return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(!story||!storyRef.current)return()=>{};let element=storyRef.current,cleanup=renderStoryToElement(story,element,{showMain:()=>{},showError:({title,description})=>setError(new Error(`${title} - ${description}`)),showException:err=>setError(err)},{autoplay,forceInitialArgs});return setShowLoader(!1),()=>{Promise.resolve().then((()=>cleanup()))}}),[autoplay,renderStoryToElement,story]),error?react__WEBPACK_IMPORTED_MODULE_0__.createElement("pre",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.Df,{error})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,height?react__WEBPACK_IMPORTED_MODULE_0__.createElement("style",null,`#${storyBlockIdFromId(props)} { min-height: ${height}; transform: translateZ(0); overflow: auto }`):null,showLoader&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StorySkeleton,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:storyRef,id:`${storyBlockIdFromId(props)}-inner`,"data-name":story.name}))},IFrameStory=({story,height="500px"})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{style:{width:"100%",height}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ZoomContext.Consumer,null,(({scale})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(IFrame,{key:"iframe",id:`iframe--${story.id}`,title:story.name,src:(0,storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.jZ)(BASE_URL,story.id,{viewMode:"story"}),allowFullScreen:!0,scale,style:{width:"100%",height:"100%",border:"0 none"}})))),ErrorMessage=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.strong((({theme})=>({color:theme.color.orange}))),Story=props=>{let{inline,story}=props;return inline&&!props.autoplay&&story.usesMount?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ErrorMessage,null,"This story mounts inside of play. Set"," ",react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{id:storyBlockIdFromId(props),className:"sb-story sb-unstyled","data-story-block":"true"},inline?react__WEBPACK_IMPORTED_MODULE_0__.createElement(InlineStory,{...props}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(IFrameStory,{...props}))},StorySkeleton=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.aH,null),Bar=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.px)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Wrapper2=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",alignItems:"center",gap:4}),IconPlaceholder=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`}))),ChildrenContainer=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({isColumn,columns,layout})=>({display:isColumn||!columns?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:isColumn?"column":"row","& .innerZoomElementWrapper > *":isColumn?{width:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"inline-block"}})),(({layout="padded"})=>"centered"===layout||"padded"===layout?{padding:"30px 20px","& .innerZoomElementWrapper > *":{width:"auto",border:"10px solid transparent!important"}}:{}),(({layout="padded"})=>"centered"===layout?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}),(({columns})=>columns&&columns>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${columns} - 20px)`}}:{})),StyledSource=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(Source)((({theme})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:"none",background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content),color:theme.color.lightest,button:{background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content)}}))),PreviewContainer=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme,withSource,isExpanded})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...getBlockBackgroundStyle(theme),borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0,"h3 + &":{marginTop:"16px"}})),(({withToolbar})=>withToolbar&&{paddingTop:40}));function getStoryId(children){if(1===react__WEBPACK_IMPORTED_MODULE_0__.Children.count(children)){let elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)((({isLoading,storyId,baseUrl,zoom,resetZoom,...rest})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Bar,{...rest},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper2,{key:"left"},isLoading?[1,2,3].map((key2=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(IconPlaceholder,{key:key2}))):react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.K0,{key:"zoomin",onClick:e2=>{e2.preventDefault(),zoom(.8)},title:"Zoom in"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.PU,null)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.K0,{key:"zoomout",onClick:e2=>{e2.preventDefault(),zoom(1.25)},title:"Zoom out"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.LoD,null)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.K0,{key:"zoomreset",onClick:e2=>{e2.preventDefault(),resetZoom()},title:"Reset zoom"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.wV5,null)))))))({position:"absolute",top:0,left:0,right:0,height:40}),Relative=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({overflow:"hidden",position:"relative"}),Preview=({isLoading,isColumn,columns,children,withSource,withToolbar=!1,isExpanded=!1,additionalActions,className,layout="padded",...props})=>{let[expanded,setExpanded]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(isExpanded),{source:source2,actionItem}=((withSource,expanded,setExpanded)=>{switch(!0){case!(!withSource||!withSource.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>setExpanded(!1)}};case expanded:return{source:react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>setExpanded(!1)}};default:return{source:react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>setExpanded(!0)}}}})(withSource,expanded,setExpanded),[scale,setScale]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(1),previewClasses=[className].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),defaultActionItems=withSource?[actionItem]:[],[additionalActionItems,setAdditionalActionItems]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(additionalActions?[...additionalActions]:[]),actionItems=[...defaultActionItems,...additionalActionItems],{window:globalWindow4}=globalThis,copyToClipboard=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((async text=>{let{createCopyToClipboardFunction}=await __webpack_require__.e(566).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/storybook@8.4.6_prettier@3.4.1/node_modules/storybook/core/components/index.js"));createCopyToClipboardFunction()}),[]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(PreviewContainer,{withSource,withToolbar,...props,className:previewClasses.join(" ")},withToolbar&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(PositionedToolbar,{isLoading,border:!0,zoom:z2=>setScale(scale*z2),resetZoom:()=>setScale(1),storyId:getStoryId(children),baseUrl:"./iframe.html"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ZoomContext.Provider,{value:{scale}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Relative,{className:"docs-story",onCopyCapture:withSource&&(e2=>{let selection=globalWindow4.getSelection();selection&&"Range"===selection.type||(e2.preventDefault(),0===additionalActionItems.filter((item=>"Copied"===item.title)).length&©ToClipboard(source2.props.code).then((()=>{setAdditionalActionItems([...additionalActionItems,{title:"Copied",onClick:()=>{}}]),globalWindow4.setTimeout((()=>setAdditionalActionItems(additionalActionItems.filter((item=>"Copied"!==item.title)))),1500)})))})},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout},react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.GP.Element,{scale},Array.isArray(children)?children.map(((child,i2)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{key:i2},child))):react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,children))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.E7,{actionItems}))),withSource&&expanded&&source2)};function n(){return n=Object.assign?Object.assign.bind():function(e2){for(var n2=1;n2({".docs-story":{paddingTop:32,paddingBottom:40}})));var r,i,e2,t=["children","options"];(e2=r||(r={})).blockQuote="0",e2.breakLine="1",e2.breakThematic="2",e2.codeBlock="3",e2.codeFenced="4",e2.codeInline="5",e2.footnote="6",e2.footnoteReference="7",e2.gfmTask="8",e2.heading="9",e2.headingSetext="10",e2.htmlBlock="11",e2.htmlComment="12",e2.htmlSelfClosing="13",e2.image="14",e2.link="15",e2.linkAngleBraceStyleDetector="16",e2.linkBareUrlDetector="17",e2.linkMailtoDetector="18",e2.newlineCoalescer="19",e2.orderedList="20",e2.paragraph="21",e2.ref="22",e2.refImage="23",e2.refLink="24",e2.table="25",e2.tableSeparator="26",e2.text="27",e2.textBolded="28",e2.textEmphasized="29",e2.textEscaped="30",e2.textMarked="31",e2.textStrikethroughed="32",e2.unorderedList="33",function(e2){e2[e2.MAX=0]="MAX",e2[e2.HIGH=1]="HIGH",e2[e2.MED=2]="MED",e2[e2.LOW=3]="LOW",e2[e2.MIN=4]="MIN"}(i||(i={}));var l=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e2,n2)=>(e2[n2.toLowerCase()]=n2,e2)),{for:"htmlFor"}),o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},c=["style","script"],a=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,s=/mailto:/i,d=/\n{2,}$/,u=/^(\s*>[\s\S]*?)(?=\n{2,})/,p=/^ *> ?/gm,f2=/^ {2,}\n/,h=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,m=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,g=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,y=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,k=/^(?:\n *)*\n/,x=/\r\n?/g,b=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,v=/^\[\^([^\]]+)]/,$=/\f/g,w=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,E=/^\s*?\[(x|\s)\]/,S=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,C=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^)/,R=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,z=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,M=/^\{.*\}$/,I=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\/[^ >]+)>/,B=/-([a-z])?/gi,N=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,H=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,D=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,P=/^\[([^\]]*)\] ?\[([^\]]*)\]/,_=/(\[|\])/g,F=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,W=/\t/g,G=/^ *\| */,Z=/(^ *\||\| *$)/g,q=/ *$/,V=/^ *:-+: *$/,X=/^ *:-+ *$/,Q=/^ *-+: *$/,J="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",K=new RegExp(`^([*_])\\1${J}\\1\\1(?!\\1)`),Y=new RegExp(`^([*_])${J}\\1(?!\\1|\\w)`),ee=new RegExp(`^==${J}==`),ne=new RegExp(`^~~${J}~~`),te=/^\\([^0-9A-Za-z\s])/,re=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ie=/^\n+/,le=/^([ \t]*)/,oe=/\\([^\\])/g,ce=/ *\n+$/,ae=/(?:^|\n)( *)$/,se="(?:\\d+\\.)",de="(?:[*+-])";function ue(e2){return"( *)("+(1===e2?se:de)+") +"}var pe=ue(1),fe=ue(2);function he(e2){return new RegExp("^"+(1===e2?pe:fe))}var me=he(1),ge=he(2);function ye(e2){return new RegExp("^"+(1===e2?pe:fe)+"[^\\n]*(?:\\n(?!\\1"+(1===e2?se:de)+" )[^\\n]*)*(\\n|$)","gm")}var ke=ye(1),xe=ye(2);function be(e2){let n2=1===e2?se:de;return new RegExp("^( *)("+n2+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+n2+" (?!"+n2+" ))\\n*|\\s*\\n*$)")}var ve=be(1),$e=be(2);function we(e2,n2){let t2=1===n2,r2=t2?ve:$e,i2=t2?ke:xe,l2=t2?me:ge;return{match(e3,n3,t3){let i3=ae.exec(t3);return i3&&(n3.list||!n3.inline&&!n3.simple)?r2.exec(e3=i3[1]+e3):null},order:1,parse(e3,n3,r3){let o2=t2?+e3[2]:void 0,c2=e3[0].replace(d,"\n").match(i2),a2=!1;return{items:c2.map((function(e4,t3){let i3=l2.exec(e4)[0].length,o3=new RegExp("^ {1,"+i3+"}","gm"),s2=e4.replace(o3,"").replace(l2,""),d2=t3===c2.length-1,u2=-1!==s2.indexOf("\n\n")||d2&&a2;a2=u2;let h2,p2=r3.inline,f3=r3.list;r3.list=!0,u2?(r3.inline=!1,h2=s2.replace(ce,"\n\n")):(r3.inline=!0,h2=s2.replace(ce,""));let m2=n3(h2,r3);return r3.inline=p2,r3.list=f3,m2})),ordered:t2,start:o2}},render:(n3,t3,r3)=>e2(n3.ordered?"ol":"ul",{key:r3.key,start:"20"===n3.type?n3.start:void 0},n3.items.map((function(n4,i3){return e2("li",{key:i3},t3(n4,r3))})))}}var Ee=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Se=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Ce=[u,m,g,S,A,C,L,N,ke,ve,xe,$e],Ae=[...Ce,/^[^\n]+(?: \n|\n{2,})/,O,z];function Oe(e2){return e2.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Te(e2){return Q.test(e2)?"right":V.test(e2)?"center":X.test(e2)?"left":null}function Le(e2,n2,t2){let r2=t2.inTable;t2.inTable=!0;let i2=n2(e2.trim(),t2);t2.inTable=r2;let l2=[[]];return i2.forEach((function(e3,n3){"26"===e3.type?0!==n3&&n3!==i2.length-1&&l2.push([]):("27"!==e3.type||null!=i2[n3+1]&&"26"!==i2[n3+1].type||(e3.text=e3.text.replace(q,"")),l2[l2.length-1].push(e3))})),l2}function Re(e2,n2,t2){t2.inline=!0;let r2=Le(e2[1],n2,t2),i2=e2[2].replace(Z,"").split("|").map(Te),l2=(e3=e2[3],n3=n2,t3=t2,e3.trim().split("\n").map((function(e4){return Le(e4,n3,t3)})));var e3,n3,t3;return t2.inline=!1,{align:i2,cells:l2,header:r2,type:"25"}}function ze(e2,n2){return null==e2.align[n2]?{}:{textAlign:e2.align[n2]}}function Me(e2){return function(n2,t2){return t2.inline?e2.exec(n2):null}}function Ie(e2){return function(n2,t2){return t2.inline||t2.simple?e2.exec(n2):null}}function Ue(e2){return function(n2,t2){return t2.inline||t2.simple?null:e2.exec(n2)}}function je(e2){return function(n2){return e2.exec(n2)}}function Be(e2,n2,t2){if(n2.inline||n2.simple||t2&&!t2.endsWith("\n"))return null;let r2="";e2.split("\n").every((e3=>!Ce.some((n3=>n3.test(e3)))&&(r2+=e3+"\n",e3.trim())));let i2=r2.trimEnd();return""==i2?null:[r2,i2]}function Ne(e2){try{if(decodeURIComponent(e2).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e2}function He(e2){return e2.replace(oe,"$1")}function De(e2,n2,t2){let r2=t2.inline||!1,i2=t2.simple||!1;t2.inline=!0,t2.simple=!0;let l2=e2(n2,t2);return t2.inline=r2,t2.simple=i2,l2}function Pe(e2,n2,t2){let r2=t2.inline||!1,i2=t2.simple||!1;t2.inline=!1,t2.simple=!0;let l2=e2(n2,t2);return t2.inline=r2,t2.simple=i2,l2}function _e(e2,n2,t2){return t2.inline=!1,e2(n2,t2)}var Fe=(e2,n2,t2)=>({children:De(n2,e2[1],t2)});function We(){return{}}function Ge(){return null}function Ze(...e2){return e2.filter(Boolean).join(" ")}function qe(e2,n2,t2){let r2=e2,i2=n2.split(".");for(;i2.length&&(r2=r2[i2[0]],void 0!==r2);)i2.shift();return r2||t2}var index_modern_default=n2=>{let{children:r2="",options:i2}=n2,l2=function(e2,n3){if(null==e2)return{};var t2,r3,i3={},l3=Object.keys(e2);for(r3=0;r3=0||(i3[t2]=e2[t2]);return i3}(n2,t);return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(function Ve(t2="",r2={}){r2.overrides=r2.overrides||{},r2.slugify=r2.slugify||Oe,r2.namedCodesToUnicode=r2.namedCodesToUnicode?n({},o,r2.namedCodesToUnicode):o;let i2=r2.createElement||react__WEBPACK_IMPORTED_MODULE_0__.createElement;function d2(e2,t3,...l2){let o2=qe(r2.overrides,`${e2}.props`,{});return i2(function(e3,n2){let t4=qe(n2,e3);return t4?"function"==typeof t4||"object"==typeof t4&&"render"in t4?t4:qe(n2,`${e3}.component`,e3):e3}(e2,r2.overrides),n({},t3,o2,{className:Ze(t3?.className,o2.className)||void 0}),...l2)}function Z2(n2){n2=n2.replace(w,"");let t3=!1;r2.forceInline?t3=!0:r2.forceBlock||(t3=!1===F.test(n2));let i3=oe2(J2(t3?n2:`${n2.trimEnd().replace(ie,"")}\n\n`,{inline:t3}));for(;"string"==typeof i3[i3.length-1]&&!i3[i3.length-1].trim();)i3.pop();if(null===r2.wrapper)return i3;let o2,l2=r2.wrapper||(t3?"span":"div");if(i3.length>1||r2.forceWrapper)o2=i3;else{if(1===i3.length)return o2=i3[0],"string"==typeof o2?d2("span",{key:"outer"},o2):o2;o2=null}return react__WEBPACK_IMPORTED_MODULE_0__.createElement(l2,{key:"outer"},o2)}function q2(n2){let t3=n2.match(a);return t3?t3.reduce((function(n3,t4,r3){let i3=t4.indexOf("=");if(-1!==i3){let o2=function(e2){return-1!==e2.indexOf("-")&&null===e2.match(R)&&(e2=e2.replace(B,(function(e3,n4){return n4.toUpperCase()}))),e2}(t4.slice(0,i3)).trim(),c2=function(e2){let n4=e2[0];return('"'===n4||"'"===n4)&&e2.length>=2&&e2[e2.length-1]===n4?e2.slice(1,-1):e2}(t4.slice(i3+1).trim()),a2=l[o2]||o2,s2=n3[a2]=function(e2,n4){return"style"===e2?n4.split(/;\s?/).reduce((function(e3,n5){let t5=n5.slice(0,n5.indexOf(":"));return e3[t5.trim().replace(/(-[a-z])/g,(e4=>e4[1].toUpperCase()))]=n5.slice(t5.length+1).trim(),e3}),{}):"href"===e2||"src"===e2?Ne(n4):(n4.match(M)&&(n4=n4.slice(1,n4.length-1)),"true"===n4||"false"!==n4&&n4)}(o2,c2);"string"==typeof s2&&(O.test(s2)||z.test(s2))&&(n3[a2]=react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(Z2(s2.trim()),{key:r3}))}else"style"!==t4&&(n3[l[t4]||t4]=!0);return n3}),{}):null}let V2=[],X2={},Q2={0:{match:Ue(u),order:1,parse:(e2,n2,t3)=>({children:n2(e2[0].replace(p,""),t3)}),render:(e2,n2,t3)=>d2("blockquote",{key:t3.key},n2(e2.children,t3))},1:{match:je(f2),order:1,parse:We,render:(e2,n2,t3)=>d2("br",{key:t3.key})},2:{match:Ue(h),order:1,parse:We,render:(e2,n2,t3)=>d2("hr",{key:t3.key})},3:{match:Ue(g),order:0,parse:e2=>({lang:void 0,text:e2[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e2,t3,r3)=>d2("pre",{key:r3.key},d2("code",n({},e2.attrs,{className:e2.lang?`lang-${e2.lang}`:""}),e2.text))},4:{match:Ue(m),order:0,parse:e2=>({attrs:q2(e2[3]||""),lang:e2[2]||void 0,text:e2[4],type:"3"})},5:{match:Ie(y),order:3,parse:e2=>({text:e2[2]}),render:(e2,n2,t3)=>d2("code",{key:t3.key},e2.text)},6:{match:Ue(b),order:0,parse:e2=>(V2.push({footnote:e2[2],identifier:e2[1]}),{}),render:Ge},7:{match:Me(v),order:1,parse:e2=>({target:`#${r2.slugify(e2[1])}`,text:e2[1]}),render:(e2,n2,t3)=>d2("a",{key:t3.key,href:Ne(e2.target)},d2("sup",{key:t3.key},e2.text))},8:{match:Me(E),order:1,parse:e2=>({completed:"x"===e2[1].toLowerCase()}),render:(e2,n2,t3)=>d2("input",{checked:e2.completed,key:t3.key,readOnly:!0,type:"checkbox"})},9:{match:Ue(r2.enforceAtxHeadings?C:S),order:1,parse:(e2,n2,t3)=>({children:De(n2,e2[2],t3),id:r2.slugify(e2[2]),level:e2[1].length}),render:(e2,n2,t3)=>d2(`h${e2.level}`,{id:e2.id,key:t3.key},n2(e2.children,t3))},10:{match:Ue(A),order:0,parse:(e2,n2,t3)=>({children:De(n2,e2[1],t3),level:"="===e2[2]?1:2,type:"9"})},11:{match:je(O),order:1,parse(e2,n2,t3){let[,r3]=e2[3].match(le),i3=new RegExp(`^${r3}`,"gm"),l2=e2[3].replace(i3,""),o2=(a2=l2,Ae.some((e3=>e3.test(a2)))?_e:De);var a2;let s2=e2[1].toLowerCase(),d3=-1!==c.indexOf(s2),u2={attrs:q2(e2[2]),noInnerParse:d3,tag:(d3?s2:e2[1]).trim()};return t3.inAnchor=t3.inAnchor||"a"===s2,d3?u2.text=e2[3]:u2.children=o2(n2,l2,t3),t3.inAnchor=!1,u2},render:(e2,t3,r3)=>d2(e2.tag,n({key:r3.key},e2.attrs),e2.text||t3(e2.children,r3))},13:{match:je(z),order:1,parse:e2=>({attrs:q2(e2[2]||""),tag:e2[1].trim()}),render:(e2,t3,r3)=>d2(e2.tag,n({},e2.attrs,{key:r3.key}))},12:{match:je(L),order:1,parse:()=>({}),render:Ge},14:{match:Ie(Se),order:1,parse:e2=>({alt:e2[1],target:He(e2[2]),title:e2[3]}),render:(e2,n2,t3)=>d2("img",{key:t3.key,alt:e2.alt||void 0,title:e2.title||void 0,src:Ne(e2.target)})},15:{match:Me(Ee),order:3,parse:(e2,n2,t3)=>({children:Pe(n2,e2[1],t3),target:He(e2[2]),title:e2[3]}),render:(e2,n2,t3)=>d2("a",{key:t3.key,href:Ne(e2.target),title:e2.title},n2(e2.children,t3))},16:{match:Me(j),order:0,parse:e2=>({children:[{text:e2[1],type:"27"}],target:e2[1],type:"15"})},17:{match:(e2,n2)=>n2.inAnchor?null:Me(I)(e2,n2),order:0,parse:e2=>({children:[{text:e2[1],type:"27"}],target:e2[1],title:void 0,type:"15"})},18:{match:Me(U),order:0,parse(e2){let n2=e2[1],t3=e2[1];return s.test(t3)||(t3="mailto:"+t3),{children:[{text:n2.replace("mailto:",""),type:"27"}],target:t3,type:"15"}}},20:we(d2,1),33:we(d2,2),19:{match:Ue(k),order:3,parse:We,render:()=>"\n"},21:{match:Be,order:3,parse:Fe,render:(e2,n2,t3)=>d2("p",{key:t3.key},n2(e2.children,t3))},22:{match:Me(H),order:0,parse:e2=>(X2[e2[1]]={target:e2[2],title:e2[4]},{}),render:Ge},23:{match:Ie(D),order:0,parse:e2=>({alt:e2[1]||void 0,ref:e2[2]}),render:(e2,n2,t3)=>X2[e2.ref]?d2("img",{key:t3.key,alt:e2.alt,src:Ne(X2[e2.ref].target),title:X2[e2.ref].title}):null},24:{match:Me(P),order:0,parse:(e2,n2,t3)=>({children:n2(e2[1],t3),fallbackChildren:n2(e2[0].replace(_,"\\$1"),t3),ref:e2[2]}),render:(e2,n2,t3)=>X2[e2.ref]?d2("a",{key:t3.key,href:Ne(X2[e2.ref].target),title:X2[e2.ref].title},n2(e2.children,t3)):d2("span",{key:t3.key},n2(e2.fallbackChildren,t3))},25:{match:Ue(N),order:1,parse:Re,render:(e2,n2,t3)=>d2("table",{key:t3.key},d2("thead",null,d2("tr",null,e2.header.map((function(r3,i3){return d2("th",{key:i3,style:ze(e2,i3)},n2(r3,t3))})))),d2("tbody",null,e2.cells.map((function(r3,i3){return d2("tr",{key:i3},r3.map((function(r4,i4){return d2("td",{key:i4,style:ze(e2,i4)},n2(r4,t3))})))}))))},26:{match:function(e2,n2){return n2.inTable?(n2.inline=!0,G.exec(e2)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:je(re),order:4,parse:e2=>({text:e2[0].replace(T,((e3,n2)=>r2.namedCodesToUnicode[n2]?r2.namedCodesToUnicode[n2]:e3))}),render:e2=>e2.text},28:{match:Ie(K),order:2,parse:(e2,n2,t3)=>({children:n2(e2[2],t3)}),render:(e2,n2,t3)=>d2("strong",{key:t3.key},n2(e2.children,t3))},29:{match:Ie(Y),order:3,parse:(e2,n2,t3)=>({children:n2(e2[2],t3)}),render:(e2,n2,t3)=>d2("em",{key:t3.key},n2(e2.children,t3))},30:{match:Ie(te),order:1,parse:e2=>({text:e2[1],type:"27"})},31:{match:Ie(ee),order:3,parse:Fe,render:(e2,n2,t3)=>d2("mark",{key:t3.key},n2(e2.children,t3))},32:{match:Ie(ne),order:3,parse:Fe,render:(e2,n2,t3)=>d2("del",{key:t3.key},n2(e2.children,t3))}};!0===r2.disableParsingRawHTML&&(delete Q2[11],delete Q2[13]);let J2=function(e2){let n2=Object.keys(e2);function t3(r3,i3){let l2=[],o2="";for(;r3;){let c2=0;for(;c2l2(t3,r3,i3)),t3,r3,i3):l2(t3,r3,i3)}}(Q2,r2.renderRule),function e2(n2,t3={}){if(Array.isArray(n2)){let r3=t3.key,i3=[],l2=!1;for(let r4=0;r4({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:theme.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${theme.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:curriedTransparentize$1(.5,theme.color.defaultText),background:"transparent","&:hover":{boxShadow:`${curriedOpacify$1(.3,theme.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${curriedOpacify$1(.05,theme.appBorderColor)} 0 0 0 2px inset`,color:curriedOpacify$1(1,theme.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:theme.boolean.selectedBackground,boxShadow:"light"===theme.base?`${curriedOpacify$1(.1,theme.appBorderColor)} 0 0 2px`:`${theme.appBorderColor} 0 0 0 1px`,color:theme.color.defaultText,padding:"7px 15px"}}))),FormInput=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.lV.Input)((({readOnly})=>({opacity:readOnly?.5:1}))),FlexSpaced=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===theme.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}))),Wrapper3=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.label({display:"flex"}),FormInput2=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.lV.Input)((({readOnly})=>({opacity:readOnly?.5:1}))),selectedKey=(value3,options2)=>{let entry=options2&&Object.entries(options2).find((([_key,val])=>val===value3));return entry?entry[0]:void 0},selectedKeys=(value3,options2)=>value3&&options2?Object.entries(options2).filter((entry=>value3.includes(entry[1]))).map((entry=>entry[0])):[],selectedValues=(keys,options2)=>keys&&options2&&keys.map((key2=>options2[key2])),Wrapper4=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),(props=>{if("true"===props["aria-readonly"])return{input:{cursor:"not-allowed"}}})),Text=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span({"[aria-readonly=true] &":{opacity:.5}}),Label2=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),CheckboxControl=({name:name2,options:options2,value:value3,onChange,isInline,argType})=>{if(!options2)return storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(`Checkbox with no options: ${name2}`),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"-");let initial=selectedKeys(value3,options2),[selected,setSelected]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initial),readonly=!!argType?.table?.readonly,handleChange=e2=>{let option=e2.target.value,updated=[...selected];updated.includes(option)?updated.splice(updated.indexOf(option),1):updated.push(option),onChange(selectedValues(updated,options2)),setSelected(updated)};(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{setSelected(selectedKeys(value3,options2))}),[value3]);let controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper4,{"aria-readonly":readonly,isInline},Object.keys(options2).map(((key2,index)=>{let id=`${controlId}-${index}`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Label2,{key:id,htmlFor:id},react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",{type:"checkbox",disabled:readonly,id,name:id,value:key2,onChange:handleChange,checked:selected?.includes(key2)}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Text,null,key2))})))},Wrapper5=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),(props=>{if("true"===props["aria-readonly"])return{input:{cursor:"not-allowed"}}})),Text2=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span({"[aria-readonly=true] &":{opacity:.5}}),Label3=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),RadioControl=({name:name2,options:options2,value:value3,onChange,isInline,argType})=>{if(!options2)return storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(`Radio with no options: ${name2}`),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"-");let selection=selectedKey(value3,options2),controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper5,{"aria-readonly":readonly,isInline},Object.keys(options2).map(((key2,index)=>{let id=`${controlId}-${index}`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Label3,{key:id,htmlFor:id},react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",{type:"radio",id,name:controlId,disabled:readonly,value:key2,onChange:e2=>onChange(options2[e2.currentTarget.value]),checked:key2===selection}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Text2,null,key2))})))},OptionsSelect=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.select({appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},(({theme})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:theme.input.color||"inherit",background:theme.input.background,borderRadius:theme.input.borderRadius,boxShadow:`${theme.input.border} 0 0 0 1px inset`,fontSize:theme.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:theme.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}}))),SelectWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span((({theme})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:theme.textMutedColor,path:{fill:theme.textMutedColor}}}))),SingleSelect=({name:name2,value:value3,options:options2,onChange,argType})=>{let selection=selectedKey(value3,options2)||"Choose option...",controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SelectWrapper,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.abt,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(OptionsSelect,{disabled:readonly,id:controlId,value:selection,onChange:e2=>{onChange(options2[e2.currentTarget.value])}},react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:"no-selection",disabled:!0},"Choose option..."),Object.keys(options2).map((key2=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:key2,value:key2},key2)))))},MultiSelect=({name:name2,value:value3,options:options2,onChange,argType})=>{let selection=selectedKeys(value3,options2),controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SelectWrapper,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(OptionsSelect,{disabled:readonly,id:controlId,multiple:!0,value:selection,onChange:e2=>{let selection2=Array.from(e2.currentTarget.options).filter((option=>option.selected)).map((option=>option.value));onChange(selectedValues(selection2,options2))}},Object.keys(options2).map((key2=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("option",{key:key2,value:key2},key2)))))},SelectControl=props=>{let{name:name2,options:options2}=props;return options2?props.isMulti?react__WEBPACK_IMPORTED_MODULE_0__.createElement(MultiSelect,{...props}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(SingleSelect,{...props}):(storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(`Select with no options: ${name2}`),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"-"))},normalizeOptions=(options2,labels)=>Array.isArray(options2)?options2.reduce(((acc,item)=>(acc[labels?.[item]||String(item)]=item,acc)),{}):options2,Controls={check:CheckboxControl,"inline-check":CheckboxControl,radio:RadioControl,"inline-radio":RadioControl,select:SelectControl,"multi-select":SelectControl},OptionsControl=props=>{let{type="select",labels,argType}=props,normalized={...props,argType,options:argType?normalizeOptions(argType.options,labels):{},isInline:type.includes("inline"),isMulti:type.includes("multi")},Control=Controls[type];if(Control)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Control,{...normalized});throw new Error(`Unknown options type: ${type}`)};function getObjectType(obj){return null===obj||"object"!=typeof obj||Array.isArray(obj)||"function"!=typeof obj[Symbol.iterator]?Object.prototype.toString.call(obj).slice(8,-1):"Iterable"}function isComponentWillChange(oldValue,newValue){let oldType=getObjectType(oldValue),newType=getObjectType(newValue);return("Function"===oldType||"Function"===newType)&&newType!==oldType}var JsonAddValue=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey,inputRefValue}=this.state,{onlyValue}=this.props;inputRefKey&&"function"==typeof inputRefKey.focus&&inputRefKey.focus(),onlyValue&&inputRefValue&&"function"==typeof inputRefValue.focus&&inputRefValue.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.onSubmit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd,onlyValue,onSubmitValueParser,keyPath,deep}=this.props,{inputRefKey,inputRefValue}=this.state,result2={};if(!onlyValue){if(!inputRefKey.value)return;result2.key=inputRefKey.value}result2.newValue=onSubmitValueParser(!1,keyPath,deep,result2.key,inputRefValue.value),handleAdd(result2)}refInputKey(node){this.state.inputRefKey=node}refInputValue(node){this.state.inputRefValue=node}render(){let{handleCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep}=this.props,addButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(addButtonElement,{onClick:this.onSubmit}),cancelButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(cancelButtonElement,{onClick:handleCancel}),inputElementValue=inputElementGenerator("value",keyPath,deep),inputElementValueLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(inputElementValue,{placeholder:"Value",ref:this.refInputValue}),inputElementKeyLayout=null;if(!onlyValue){let inputElementKey=inputElementGenerator("key",keyPath,deep);inputElementKeyLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(inputElementKey,{placeholder:"Key",ref:this.refInputKey})}return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-add-value-node"},inputElementKeyLayout,inputElementValueLayout,cancelButtonElementLayout,addButtonElementLayout)}};JsonAddValue.defaultProps={onlyValue:!1,addButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"+"),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"c")};var JsonArray=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={data:props.data,name:props.name,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState((state=>({collapsed:!state.collapsed})))}handleRemoveItem(index){return()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[index];beforeRemoveAction(index,keyPath,deep,oldValue).then((()=>{let deltaUpdateResult={keyPath,deep,key:index,oldValue,type:"REMOVE_DELTA_TYPE"};data.splice(index,1),this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult)})).catch(logger4.error)}}handleAddValueAdd({newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(data.length,keyPath,deep,newValue).then((()=>{let newData=[...data,newValue];this.setState({data:newData}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],newData),onDeltaUpdate({type:"ADD_DELTA_TYPE",keyPath,deep,key:newData.length-1,newValue})})).catch(logger4.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:key2,value:value3}){return new Promise(((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key2];beforeUpdateAction(key2,keyPath,deep,oldValue,value3).then((()=>{data[key2]=value3,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"UPDATE_DELTA_TYPE",keyPath,deep,key:key2,newValue:value3,oldValue}),resolve(void 0)})).catch(reject)}))}renderCollapsed(){let{name:name2,data,keyPath,deep}=this.state,{handleRemove,readOnly,getStyle,dataType,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name2,data,keyPath,deep,dataType),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),removeItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-collapsed"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-collapsed-text",style:collapsed,onClick:this.handleCollapseMode},"[...] ",data.length," ",1===data.length?"item":"items"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name:name2,data,keyPath,deep,addFormVisible,nextDeep}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,delimiter,ul,addForm}=getStyle(name2,data,keyPath,deep,dataType),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),addItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus}),removeItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"["),!addFormVisible&&addItemButton,react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},data.map(((item,index)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonNode,{key:index,name:index.toString(),data:item,keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveItem(index),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})))),!isReadOnly&&addFormVisible&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"rejt-add-form",style:addForm},react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"]"),!isReadOnly&&removeItemButton)}render(){let{name:name2,collapsed,data,keyPath,deep}=this.state,{dataType,getStyle}=this.props,value3=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name2,data,keyPath,deep,dataType);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"rejt-array-node"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{onClick:this.handleCollapseMode},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-name",style:style.name},name2," :"," ")),value3)}};JsonArray.defaultProps={keyPath:[],deep:0,minusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," - "),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," + ")};var JsonFunctionValue=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name:name2,value:value3,keyPath,deep}=this.state,{readOnly,dataType}=this.props,readOnlyResult=readOnly(name2,value3,keyPath,deep,dataType);editEnabled&&!readOnlyResult&&"function"==typeof inputRef.focus&&inputRef.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.handleEdit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name:name2,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name2,inputRef.value);handleUpdateValue({value:newValue,key:name2}).then((()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit()})).catch(logger4.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(node){this.state.inputRef=node}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:name2,value:value3,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,textareaElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name2,originalValue,keyPath,deep,dataType),result2=null,minusElement=null,resultOnlyResult=readOnly(name2,originalValue,keyPath,deep,dataType);if(editEnabled&&!resultOnlyResult){let textareaElement=textareaElementGenerator("value",comeFromKeyPath,deep,name2,originalValue,dataType),editButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(cancelButtonElement,{onClick:this.handleCancelEdit}),textareaElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(textareaElement,{ref:this.refInput,defaultValue:originalValue});result2=react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-edit-form",style:style.editForm},textareaElementLayout," ",cancelButtonElementLayout,editButtonElementLayout),minusElement=null}else{result2=react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-value",style:style.value,onClick:resultOnlyResult?null:this.handleEditMode},value3);let minusMenuLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus});minusElement=resultOnlyResult?null:minusMenuLayout}return react__WEBPACK_IMPORTED_MODULE_0__.createElement("li",{className:"rejt-function-value-node",style:style.li},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-name",style:style.name},name2," :"," "),result2,minusElement)}};JsonFunctionValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"e"),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"c"),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," - ")};var JsonNode=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props),this.state={data:props.data,name:props.name,keyPath:props.keyPath,deep:props.deep}}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}render(){let{data,name:name2,keyPath,deep}=this.state,{isCollapsed,handleRemove,handleUpdateValue,onUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,readOnlyTrue=()=>!0,dataType=getObjectType(data);switch(dataType){case"Error":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonObject,{data,name:name2,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly:readOnlyTrue,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"Object":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonObject,{data,name:name2,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"Array":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonArray,{data,name:name2,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"String":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:`"${data}"`,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Number":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:data,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Boolean":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:data?"true":"false",originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Date":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:data.toISOString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Null":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:"null",originalValue:"null",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Undefined":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:"undefined",originalValue:"undefined",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Function":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonFunctionValue,{name:name2,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,textareaElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Symbol":return react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonValue,{name:name2,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});default:return null}}};JsonNode.defaultProps={keyPath:[],deep:0};var JsonObject=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props);let keyPath=-1===props.deep?[]:[...props.keyPath,props.name];this.state={name:props.name,data:props.data,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:key2,newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(key2,keyPath,deep,newValue).then((()=>{data[key2]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"ADD_DELTA_TYPE",keyPath,deep,key:key2,newValue})})).catch(logger4.error)}handleRemoveValue(key2){return()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key2];beforeRemoveAction(key2,keyPath,deep,oldValue).then((()=>{let deltaUpdateResult={keyPath,deep,key:key2,oldValue,type:"REMOVE_DELTA_TYPE"};delete data[key2],this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult)})).catch(logger4.error)}}handleCollapseMode(){this.setState((state=>({collapsed:!state.collapsed})))}handleEditValue({key:key2,value:value3}){return new Promise(((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key2];beforeUpdateAction(key2,keyPath,deep,oldValue,value3).then((()=>{data[key2]=value3,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"UPDATE_DELTA_TYPE",keyPath,deep,key:key2,newValue:value3,oldValue}),resolve()})).catch(reject)}))}renderCollapsed(){let{name:name2,keyPath,deep,data}=this.state,{handleRemove,readOnly,dataType,getStyle,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name2,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),removeItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus});return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-collapsed"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-collapsed-text",style:collapsed,onClick:this.handleCollapseMode},"{...}"," ",keyList.length," ",1===keyList.length?"key":"keys"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name:name2,data,keyPath,deep,nextDeep,addFormVisible}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,addForm,ul,delimiter}=getStyle(name2,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),addItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus}),removeItemButton=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus}),list=keyList.map((key2=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonNode,{key:key2,name:key2,data:data[key2],keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveValue(key2),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})));return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"{"),!isReadOnly&&addItemButton,react__WEBPACK_IMPORTED_MODULE_0__.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},list),!isReadOnly&&addFormVisible&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"rejt-add-form",style:addForm},react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"}"),!isReadOnly&&removeItemButton)}render(){let{name:name2,collapsed,data,keyPath,deep}=this.state,{getStyle,dataType}=this.props,value3=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name2,data,keyPath,deep,dataType);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"rejt-object-node"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{onClick:this.handleCollapseMode},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-name",style:style.name},name2," :"," ")),value3)}};JsonObject.defaultProps={keyPath:[],deep:0,minusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," - "),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," + ")};var JsonValue=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name:name2,value:value3,keyPath,deep}=this.state,{readOnly,dataType}=this.props,isReadOnly=readOnly(name2,value3,keyPath,deep,dataType);editEnabled&&!isReadOnly&&"function"==typeof inputRef.focus&&inputRef.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.handleEdit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name:name2,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name2,inputRef.value);handleUpdateValue({value:newValue,key:name2}).then((()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit()})).catch(logger4.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(node){this.state.inputRef=node}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:name2,value:value3,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,inputElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name2,originalValue,keyPath,deep,dataType),isReadOnly=readOnly(name2,originalValue,keyPath,deep,dataType),isEditing=editEnabled&&!isReadOnly,inputElement=inputElementGenerator("value",comeFromKeyPath,deep,name2,originalValue,dataType),editButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(cancelButtonElement,{onClick:this.handleCancelEdit}),inputElementLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(inputElement,{ref:this.refInput,defaultValue:JSON.stringify(originalValue)}),minusMenuLayout=(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus});return react__WEBPACK_IMPORTED_MODULE_0__.createElement("li",{className:"rejt-value-node",style:style.li},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-name",style:style.name},name2," : "),isEditing?react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-edit-form",style:style.editForm},inputElementLayout," ",cancelButtonElementLayout,editButtonElementLayout):react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:"rejt-value",style:style.value,onClick:isReadOnly?null:this.handleEditMode},String(value3)),!isReadOnly&&!isEditing&&minusMenuLayout)}};JsonValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"e"),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,"c"),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null," - ")};var object={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},array={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},value2={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},JsonTree=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(props){super(props),this.state={data:props.data,rootName:props.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data||props.rootName!==state.rootName?{data:props.data,rootName:props.rootName}:null}onUpdate(key2,data){this.setState({data}),this.props.onFullyUpdate(data)}removeRoot(){this.onUpdate(null,null)}render(){let{data,rootName}=this.state,{isCollapsed,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElement,textareaElement,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser,fallback=null}=this.props,dataType=getObjectType(data),readOnlyFunction=readOnly;"Boolean"===getObjectType(readOnly)&&(readOnlyFunction=()=>readOnly);let inputElementFunction=inputElement;inputElement&&"Function"!==getObjectType(inputElement)&&(inputElementFunction=()=>inputElement);let textareaElementFunction=textareaElement;return textareaElement&&"Function"!==getObjectType(textareaElement)&&(textareaElementFunction=()=>textareaElement),"Object"===dataType||"Array"===dataType?react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"rejt-tree"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonNode,{data,name:rootName,deep:-1,isCollapsed,onUpdate:this.onUpdate,onDeltaUpdate,readOnly:readOnlyFunction,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator:inputElementFunction,textareaElementGenerator:textareaElementFunction,minusMenuElement,plusMenuElement,handleRemove:this.removeRoot,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})):fallback}};JsonTree.defaultProps={rootName:"root",isCollapsed:(keyPath,deep)=>-1!==deep,getStyle:(keyName,data,keyPath,deep,dataType)=>{switch(dataType){case"Object":case"Error":return object;case"Array":return array;default:return value2}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(isEditMode,keyPath,deep,name2,rawValue)=>function parse3(string){let result2=string;if(0===result2.indexOf("function"))return(0,eval)(`(${result2})`);try{result2=JSON.parse(string)}catch{}return result2}(rawValue),inputElement:()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",null),textareaElement:()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("textarea",null),fallback:null};var{window:globalWindow2}=globalThis,Wrapper6=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:theme.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:theme.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:theme.color.lighter,borderColor:theme.appBorderColor}}))),ButtonInline=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.button((({theme,primary})=>({border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:"transparent",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?"bold":"normal",cursor:"pointer",order:primary?"initial":9}))),ActionAddIcon=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.REV)((({theme,disabled})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.textMutedColor,"&:hover":disabled?{}:{color:theme.color.ancillary},"svg + &":{marginLeft:0}}))),ActionSubstractIcon=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.Qpb)((({theme,disabled})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?"not-allowed":"pointer",color:theme.textMutedColor,"&:hover":disabled?{}:{color:theme.color.negative},"svg + &":{marginLeft:0}}))),Input=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.input((({theme,placeholder})=>({outline:0,margin:placeholder?1:"1px 0",padding:"3px 4px",color:theme.color.defaultText,background:theme.background.app,border:`1px solid ${theme.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:"Key"===placeholder?80:120,"&:focus":{border:`1px solid ${theme.color.secondary}`}}))),RawButton=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.K0)((({theme})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:theme.background.bar,border:`1px solid ${theme.appBorderColor}`,borderRadius:3,color:theme.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}}))),RawInput=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.lV.Textarea)((({theme})=>({flex:1,padding:"7px 6px",fontFamily:theme.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:theme.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}))),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=event=>{event.currentTarget.dispatchEvent(new globalWindow2.KeyboardEvent("keydown",ENTER_EVENT))},selectValue=event=>{event.currentTarget.select()},getCustomStyleFunction=theme=>()=>({name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),ObjectControl=({name:name2,value:value3,onChange,argType})=>{let theme=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.DP)(),data=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>value3&&(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.mg)(value3)),[value3]),hasData=null!=data,[showRaw,setShowRaw]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!hasData),[parseError,setParseError]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),readonly=!!argType?.table?.readonly,updateRaw=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((raw=>{try{raw&&onChange(JSON.parse(raw)),setParseError(void 0)}catch(e2){setParseError(e2)}}),[onChange]),[forceVisible,setForceVisible]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{onChange({}),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);if((0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),!hasData)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.$n,{disabled:readonly,id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.Yq)(name2),onClick:onForceVisible},"Set object");let rawJSONForm=react__WEBPACK_IMPORTED_MODULE_0__.createElement(RawInput,{ref:htmlElRef,id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),name:name2,defaultValue:null===value3?"":JSON.stringify(value3,null,2),onBlur:event=>updateRaw(event.target.value),placeholder:"Edit JSON string...",autoFocus:forceVisible,valid:parseError?"error":null,readOnly:readonly}),isObjectOrArray=Array.isArray(value3)||"object"==typeof value3&&value3?.constructor===Object;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper6,{"aria-readonly":readonly},isObjectOrArray&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(RawButton,{onClick:e2=>{e2.preventDefault(),setShowRaw((v2=>!v2))}},showRaw?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.dbI,null):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.bMW,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"RAW")),showRaw?rawJSONForm:react__WEBPACK_IMPORTED_MODULE_0__.createElement(JsonTree,{readOnly:readonly||!isObjectOrArray,isCollapsed:isObjectOrArray?void 0:()=>!0,data,rootName:name2,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonInline,{type:"button"},"Cancel"),editButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonInline,{type:"submit"},"Save"),addButtonElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ButtonInline,{type:"submit",primary:!0},"Save"),plusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ActionAddIcon,null),minusMenuElement:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ActionSubstractIcon,null),inputElement:(_2,__,___,key2)=>key2?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Input,null),fallback:rawJSONForm}))},RangeInput=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.input((({theme,min,max,value:value3,disabled})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:disabled?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?"not-allowed":"grab",appearance:"none",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:disabled?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:rgba(theme.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:theme.color.secondary,boxShadow:`0 0px 5px 0px ${theme.color.secondary}`}},"&::-moz-range-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:disabled?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?"not-allowed":"grap",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.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:`${theme.input.background}`,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}))),RangeLabel=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),RangeCurrentAndMaxLabel=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(RangeLabel)((({numberOFDecimalsPlaces,max})=>({width:`${numberOFDecimalsPlaces+2*max.toString().length+3}ch`,textAlign:"right",flexShrink:0}))),RangeWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",alignItems:"center",width:"100%"});var Wrapper7=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.label({display:"flex"}),MaxLength=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({isMaxed})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:isMaxed?"red":void 0}))),FileInput=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.lV.Input)({padding:10});var LazyColorControl=(0,react__WEBPACK_IMPORTED_MODULE_0__.lazy)((()=>__webpack_require__.e(260).then(__webpack_require__.bind(__webpack_require__,"./node_modules/.pnpm/@storybook+blocks@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/blocks/dist/Color-F6OSRLHC.mjs")))),Controls2={array:ObjectControl,object:ObjectControl,boolean:({name:name2,value:value3,onChange,onBlur,onFocus,argType})=>{let onSetFalse=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>onChange(!1)),[onChange]),readonly=!!argType?.table?.readonly;if(void 0===value3)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.$n,{variant:"outline",size:"medium",id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.Yq)(name2),onClick:onSetFalse,disabled:readonly},"Set boolean");let controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),parsedValue="string"==typeof value3?(value3=>"true"===value3)(value3):value3;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Label,{"aria-disabled":readonly,htmlFor:controlId,"aria-label":name2},react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",{id:controlId,type:"checkbox",onChange:e2=>onChange(e2.target.checked),checked:parsedValue,role:"switch",disabled:readonly,name:name2,onBlur,onFocus}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{"aria-hidden":"true"},"False"),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{"aria-hidden":"true"},"True"))},color:props=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_0__.createElement(LazyColorControl,{...props})),date:({name:name2,value:value3,onChange,onFocus,onBlur,argType})=>{let[valid,setValid]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0),dateRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),timeRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),readonly=!!argType?.table?.readonly;(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{!1!==valid&&(dateRef&&dateRef.current&&(dateRef.current.value=value3?(value3=>{let date=new Date(value3);return`${`000${date.getFullYear()}`.slice(-4)}-${`0${date.getMonth()+1}`.slice(-2)}-${`0${date.getDate()}`.slice(-2)}`})(value3):""),timeRef&&timeRef.current&&(timeRef.current.value=value3?(value3=>{let date=new Date(value3);return`${`0${date.getHours()}`.slice(-2)}:${`0${date.getMinutes()}`.slice(-2)}`})(value3):""))}),[value3]);let controlId=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(FlexSpaced,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(FormInput,{type:"date",max:"9999-12-31",ref:dateRef,id:`${controlId}-date`,name:`${controlId}-date`,readOnly:readonly,onChange:e2=>{if(!e2.target.value)return onChange();let parsed=(value3=>{let[year,month,day]=value3.split("-"),result2=new Date;return result2.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result2})(e2.target.value),result2=new Date(value3);result2.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());let time=result2.getTime();time&&onChange(time),setValid(!!time)},onFocus,onBlur}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(FormInput,{type:"time",id:`${controlId}-time`,name:`${controlId}-time`,ref:timeRef,onChange:e2=>{if(!e2.target.value)return onChange();let parsed=(value3=>{let[hours,minutes]=value3.split(":"),result2=new Date;return result2.setHours(parseInt(hours,10)),result2.setMinutes(parseInt(minutes,10)),result2})(e2.target.value),result2=new Date(value3);result2.setHours(parsed.getHours()),result2.setMinutes(parsed.getMinutes());let time=result2.getTime();time&&onChange(time),setValid(!!time)},readOnly:readonly,onFocus,onBlur}),valid?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,"invalid"))},number:({name:name2,value:value3,onChange,min,max,step,onBlur,onFocus,argType})=>{let[inputValue,setInputValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("number"==typeof value3?value3:""),[forceVisible,setForceVisible]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[parseError,setParseError]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null),readonly=!!argType?.table?.readonly,handleChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((event=>{setInputValue(event.target.value);let result2=parseFloat(event.target.value);Number.isNaN(result2)?setParseError(new Error(`'${event.target.value}' is not a number`)):(onChange(result2),setParseError(null))}),[onChange,setParseError]),onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{setInputValue("0"),onChange(0),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{inputValue!==("number"==typeof value3?value3:"")&&setInputValue(value3)}),[value3]),void 0===value3?react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.$n,{variant:"outline",size:"medium",id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.Yq)(name2),onClick:onForceVisible,disabled:readonly},"Set number"):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper3,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(FormInput2,{ref:htmlElRef,id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),type:"number",onChange:handleChange,size:"flex",placeholder:"Edit number...",value:inputValue,valid:parseError?"error":null,autoFocus:forceVisible,readOnly:readonly,name:name2,min,max,step,onFocus,onBlur}))},check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:({name:name2,value:value3,onChange,min=0,max=100,step=1,onBlur,onFocus,argType})=>{let hasValue=void 0!==value3,numberOFDecimalsPlaces=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>function getNumberOfDecimalPlaces(number){let match=number.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}(step)),[step]),readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(RangeWrapper,{"aria-readonly":readonly},react__WEBPACK_IMPORTED_MODULE_0__.createElement(RangeLabel,null,min),react__WEBPACK_IMPORTED_MODULE_0__.createElement(RangeInput,{id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),type:"range",disabled:readonly,onChange:event=>{onChange((value3=>{let result2=parseFloat(value3);return Number.isNaN(result2)?void 0:result2})(event.target.value))},name:name2,value:value3,min,max,step,onFocus,onBlur}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces,max},hasValue?value3.toFixed(numberOFDecimalsPlaces):"--"," / ",max))},text:({name:name2,value:value3,onChange,onFocus,onBlur,maxLength,argType})=>{let readonly=!!argType?.table?.readonly,[forceVisible,setForceVisible]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),onForceVisible=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{onChange(""),setForceVisible(!0)}),[setForceVisible]);if(void 0===value3)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.$n,{variant:"outline",size:"medium",disabled:readonly,id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.Yq)(name2),onClick:onForceVisible},"Set string");let isValid="string"==typeof value3;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper7,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.lV.Textarea,{id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),maxLength,onChange:event=>{onChange(event.target.value)},disabled:readonly,size:"flex",placeholder:"Edit string...",autoFocus:forceVisible,valid:isValid?null:"error",name:name2,value:isValid?value3:"",onFocus,onBlur}),maxLength&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(MaxLength,{isMaxed:value3?.length===maxLength},value3?.length??0," / ",maxLength))},file:({onChange,name:name2,accept="image/*",value:value3,argType})=>{let inputElement=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),readonly=argType?.control?.readOnly;return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{null==value3&&inputElement.current&&(inputElement.current.value=null)}),[value3,name2]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(FileInput,{ref:inputElement,id:(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.ZA)(name2),type:"file",name:name2,multiple:!0,disabled:readonly,onChange:function handleFileChange(e2){if(!e2.target.files)return;let fileUrls=Array.from(e2.target.files).map((file=>URL.createObjectURL(file)));onChange(fileUrls),function revokeOldUrls(urls){urls.forEach((url=>{url.startsWith("blob:")&&URL.revokeObjectURL(url)}))}(value3)},accept,size:"flex"})}},NoControl=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"-"),ArgControl=({row,arg,updateArgs,isHovered})=>{let{key:key2,control}=row,[isFocused,setFocused]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[boxedValue,setBoxedValue]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({value:arg});(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{isFocused||setBoxedValue({value:arg})}),[isFocused,arg]);let onChange=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((argVal=>(setBoxedValue({value:argVal}),updateArgs({[key2]:argVal}),argVal)),[updateArgs,key2]),onBlur=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>setFocused(!1)),[]),onFocus=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>setFocused(!0)),[]);if(!control||control.disable){return isHovered&&(!0!==control?.disable&&"function"!==row?.type?.name)?react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.N_,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):react__WEBPACK_IMPORTED_MODULE_0__.createElement(NoControl,null)}let props={name:key2,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls2[control.type]||NoControl;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Control,{...props,...control,controlType:control.type})},Table=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.table((({theme})=>({"&&":{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:(0,storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.zb)({theme}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:theme.typography.size.s1}}}))),ArgJsDoc=({tags})=>{let params=(tags.params||[]).filter((x2=>x2.description)),hasDisplayableParams=0!==params.length,hasDisplayableDeprecated=null!=tags.deprecated,hasDisplayableReturns=null!=tags.returns&&null!=tags.returns.description;return hasDisplayableParams||hasDisplayableReturns||hasDisplayableDeprecated?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Table,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody",null,hasDisplayableDeprecated&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",{key:"deprecated"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",{colSpan:2},react__WEBPACK_IMPORTED_MODULE_0__.createElement("strong",null,"Deprecated"),": ",tags.deprecated.toString())),hasDisplayableParams&¶ms.map((x2=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",{key:x2.name},react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("code",null,x2.name)),react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,x2.description)))),hasDisplayableReturns&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",{key:"returns"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("code",null,"Returns")),react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,tags.returns.description))))):null},import_memoizerific=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.f1)(require_memoizerific()),Summary=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({isExpanded})=>({display:"flex",flexDirection:isExpanded?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100}))),Text3=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.zb,(({theme,simple=!1})=>({flex:"0 0 auto",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...simple&&{background:"transparent",border:"0 none",paddingLeft:0}}))),ExpandButton=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.button((({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,marginBottom:"4px",background:"none",border:"none"}))),Expandable=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.zb,(({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,fontSize:theme.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"}))),Detail=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme,width})=>({width,minWidth:200,maxWidth:800,padding:15,fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}}))),ChevronUpIcon=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.tN5)({marginLeft:4}),ChevronDownIcon=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.abt)({marginLeft:4}),EmptyArg=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"-"),ArgText=({text,simple})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Text3,{simple},text),calculateDetailWidth=(0,import_memoizerific.default)(1e3)((detail=>{let lines=detail.split(/\r?\n/);return`${Math.max(...lines.map((x2=>x2.length)))}ch`})),renderSummaryItems=(summaryItems,isExpanded=!0)=>{let items=summaryItems;return isExpanded||(items=summaryItems.slice(0,8)),items.map((item=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgText,{key:item,text:""===item?'""':item})))},ArgSummary=({value:value3,initialExpandedArgs})=>{let{summary,detail}=value3,[isOpen,setIsOpen]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),[isExpanded,setIsExpanded]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialExpandedArgs||!1);if(null==summary)return null;let summaryAsString="function"==typeof summary.toString?summary.toString():summary;if(null==detail){if(/[(){}[\]<>]/.test(summaryAsString))return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgText,{text:summaryAsString});let summaryItems=(summary=>{if(!summary)return[summary];let summaryItems=summary.split("|").map((value3=>value3.trim()));return(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.sb)(summaryItems)})(summaryAsString),itemsCount=summaryItems.length;return itemsCount>8?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ExpandButton,{onClick:()=>setIsExpanded(!isExpanded)},isExpanded?"Show less...":`Show ${itemsCount-8} more...`)):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Summary,null,renderSummaryItems(summaryItems))}return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.o4,{closeOnOutsideClick:!0,placement:"bottom",visible:isOpen,onVisibleChange:isVisible=>{setIsOpen(isVisible)},tooltip:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Detail,{width:calculateDetailWidth(detail)},react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.bF,{language:"jsx",format:!1},detail))},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Expandable,{className:"sbdocs-expandable"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,summaryAsString),isOpen?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ChevronUpIcon,null):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ChevronDownIcon,null)))},ArgValue=({value:value3,initialExpandedArgs})=>null==value3?react__WEBPACK_IMPORTED_MODULE_0__.createElement(EmptyArg,null):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgSummary,{value:value3,initialExpandedArgs}),Name=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span({fontWeight:"bold"}),Required=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span((({theme})=>({color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:"help"}))),Description=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:theme.color.secondary}},code:{...(0,storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.zb)({theme}),fontSize:12,fontFamily:theme.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}))),Type=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme,hasDescription})=>({color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?4:0}))),TypeWithJsDoc=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme,hasDescription})=>({color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12}))),StyledTd=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.td((({theme,expandable})=>({paddingLeft:expandable?"40px !important":"20px !important"}))),ArgRow=props=>{let[isHovered,setIsHovered]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),{row,updateArgs,compact,expandable,initialExpandedArgs}=props,{name:name2,description}=row,table=row.table||{},type=table.type||(value3=row.type)&&{summary:"string"==typeof value3?value3:value3.name},defaultValue=table.defaultValue||row.defaultValue,required=row.type?.required,hasDescription=null!=description&&""!==description;var value3;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",{onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1)},react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTd,{expandable},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Name,null,name2),required?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Required,{title:"Required"},"*"):null),compact?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,hasDescription&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Description,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(index_modern_default,null,description)),null!=table.jsDocTags?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(TypeWithJsDoc,{hasDescription},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgValue,{value:type,initialExpandedArgs})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgJsDoc,{tags:table.jsDocTags})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Type,{hasDescription},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?react__WEBPACK_IMPORTED_MODULE_0__.createElement("td",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgControl,{...props,isHovered})):null)},Wrapper8=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({inAddonPanel,theme})=>({height:inAddonPanel?"100%":"auto",display:"flex",border:inAddonPanel?"none":`1px solid ${theme.appBorderColor}`,borderRadius:inAddonPanel?0:theme.appBorderRadius,padding:inAddonPanel?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:theme.background.content,boxShadow:"rgba(0, 0, 0, 0.10) 0 1px 3px 0"}))),Links=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({display:"flex",fontSize:theme.typography.size.s2-1,gap:25}))),Divider=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({width:1,height:16,backgroundColor:theme.appBorderColor}))),Empty=({inAddonPanel})=>{let[isLoading,setIsLoading]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!0);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let load=setTimeout((()=>{setIsLoading(!1)}),100);return()=>clearTimeout(load)}),[]),isLoading?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper8,{inAddonPanel},react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.Q2,{title:inAddonPanel?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.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:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Links,null,inAddonPanel&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.N_,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.npA,null)," Watch 5m video"),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Divider,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.N_,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.pyG,null)," Read docs")),!inAddonPanel&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.N_,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.pyG,null)," Learn how to set that up"))}))},ExpanderIconDown=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.D3D)((({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"}))),ExpanderIconRight=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.vKP)((({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"}))),FlexWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span((({theme})=>({display:"flex",lineHeight:"20px",alignItems:"center"}))),Section=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.td((({theme})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s1-1,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),background:`${theme.background.app} !important`,"& ~ td":{background:`${theme.background.app} !important`}}))),Subsection=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.td((({theme})=>({position:"relative",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.app}))),StyledTd2=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.td((()=>({position:"relative"}))),StyledTr=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.tr((({theme})=>({"&:hover > td":{backgroundColor:`${curriedLighten$1(.005,theme.background.app)} !important`,boxShadow:`${theme.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}}))),ClickIntercept=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.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"}))),SectionRow=({level="section",label,children,initialExpanded=!0,colSpan=3})=>{let[expanded,setExpanded]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(initialExpanded),Level="subsection"===level?Subsection:Section,itemCount=children?.length||0,caption="subsection"===level?`${itemCount} item${1!==itemCount?"s":""}`:"",helperText=`${expanded?"Hide":"Show"} ${"subsection"===level?itemCount:label} item${1!==itemCount?"s":""}`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTr,{title:helperText},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Level,{colSpan:1},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ClickIntercept,{onClick:e2=>setExpanded(!expanded),tabIndex:0},helperText),react__WEBPACK_IMPORTED_MODULE_0__.createElement(FlexWrapper,null,expanded?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ExpanderIconDown,null):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ExpanderIconRight,null),label)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledTd2,{colSpan:colSpan-1},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ClickIntercept,{onClick:e2=>setExpanded(!expanded),tabIndex:-1,style:{outline:"none"}},helperText),expanded?null:caption)),expanded?children:null)},Row=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({display:"flex",gap:16,borderBottom:`1px solid ${theme.appBorderColor}`,"&:last-child":{borderBottom:0}}))),Column=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({numColumn})=>({display:"flex",flexDirection:"column",flex:numColumn||1,gap:5,padding:"12px 20px"}))),SkeletonText=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme,width,height})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,width:width||"100%",height:height||16,borderRadius:3}))),columnWidth=[2,4,2,2],Skeleton=()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[0]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[1]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"30%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[2]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[3]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[0]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[1]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"80%"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"30%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[2]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[3]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[0]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[1]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"80%"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"30%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[2]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[3]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Row,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[0]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[1]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"80%"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"30%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[2]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Column,{numColumn:columnWidth[3]},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SkeletonText,{width:"60%"})))),TableWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.table((({theme,compact,inAddonPanel})=>({"&&":{borderSpacing:0,color:theme.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:theme.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?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)":{...compact?null:{width:"35%"}},"td:nth-of-type(3)":{...compact?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...compact?null:{width:"25%"}},th:{color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.45,theme.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:inAddonPanel?0:1,marginRight:inAddonPanel?0:1,tbody:{...inAddonPanel?null:{filter:"light"===theme.base?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:theme.background.content,borderTop:`1px solid ${theme.appBorderColor}`},...inAddonPanel?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${theme.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${theme.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${theme.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${theme.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:theme.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:theme.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:theme.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:theme.appBorderRadius}}}}}))),StyledIconButton=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.K0)((({theme})=>({margin:"-4px -12px -4px 0"}))),ControlHeadingWrapper=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.span({display:"flex",justifyContent:"space-between"}),sortFns={alpha:(a2,b2)=>a2.name.localeCompare(b2.name),requiredFirst:(a2,b2)=>+!!b2.type?.required-+!!a2.type?.required||a2.name.localeCompare(b2.name),none:void 0},ArgsTable=props=>{let{updateArgs,resetArgs,compact,inAddonPanel,initialExpandedArgs,sort="none",isLoading}=props;if("error"in props){let{error}=props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(EmptyBlock,null,error," ",react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.N_,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.pyG,null)," Read the docs"))}if(isLoading)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Skeleton,null);let{rows,args:args2,globals}="rows"in props&&props,groups=((rows,sort)=>{let sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach((([key2,row])=>{let{category,subcategory}=row?.table||{};if(category){let section=sections.sections[category]||{ungrouped:[],subsections:{}};if(subcategory){let subsection=section.subsections[subcategory]||[];subsection.push({key:key2,...row}),section.subsections[subcategory]=subsection}else section.ungrouped.push({key:key2,...row});sections.sections[category]=section}else if(subcategory){let subsection=sections.ungroupedSubsections[subcategory]||[];subsection.push({key:key2,...row}),sections.ungroupedSubsections[subcategory]=subsection}else sections.ungrouped.push({key:key2,...row})}));let sortFn=sortFns[sort],sortSubsection=record=>sortFn?Object.keys(record).reduce(((acc,cur)=>({...acc,[cur]:record[cur].sort(sortFn)})),{}):record;return{ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce(((acc,cur)=>({...acc,[cur]:{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}})),{})}})((0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.fN)(rows||{},(row=>!row?.table?.disable&&((row,args2,globals)=>{try{return(0,_storybook_csf__WEBPACK_IMPORTED_MODULE_2__.hX)(row,args2,globals)}catch(err){return storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.once.warn(err.message),!1}})(row,args2||{},globals||{}))),sort),hasNoUngrouped=0===groups.ungrouped.length,hasNoSections=0===Object.entries(groups.sections).length,hasNoUngroupedSubsections=0===Object.entries(groups.ungroupedSubsections).length;if(hasNoUngrouped&&hasNoSections&&hasNoUngroupedSubsections)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Empty,{inAddonPanel});let colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);let expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.dL,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(TableWrapper,{compact,inAddonPanel,className:"docblock-argstable sb-unstyled"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("thead",{className:"docblock-argstable-head"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("tr",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"Name")),compact?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"Description")),compact?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"Default")),updateArgs?react__WEBPACK_IMPORTED_MODULE_0__.createElement("th",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ControlHeadingWrapper,null,"Control"," ",!isLoading&&resetArgs&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledIconButton,{onClick:()=>resetArgs(),title:"Reset controls"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.ejX,{"aria-hidden":!0})))):null)),react__WEBPACK_IMPORTED_MODULE_0__.createElement("tbody",{className:"docblock-argstable-body"},groups.ungrouped.map((row=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],...common}))),Object.entries(groups.ungroupedSubsections).map((([subcategory,subsection])=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((row=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],expandable,...common})))))),Object.entries(groups.sections).map((([category,section])=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SectionRow,{key:category,label:category,level:"section",colSpan},section.ungrouped.map((row=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],...common}))),Object.entries(section.subsections).map((([subcategory,subsection])=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((row=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],expandable,...common}))))))))))))},TabbedArgsTable=({tabs,...props})=>{let entries=Object.entries(tabs);return 1===entries.length?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgsTable,{...entries[0][1],...props}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__._j,null,entries.map(((entry,index)=>{let[label,table]=entry,id=`prop_table_div_${label}`,argsTableProps=0===index?props:{sort:props.sort};return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{key:id,id,title:label},(({active})=>active?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgsTable,{key:`prop_table_${label}`,...table,...argsTableProps}):null))})))};storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({marginRight:30,fontSize:`${theme.typography.size.s1}px`,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.YV,(({theme})=>({...getBlockBackgroundStyle(theme),margin:"25px 0 40px",padding:"30px 20px"}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({fontWeight:theme.typography.weight.bold,color:theme.color.defaultText}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({color:"light"===theme.base?curriedTransparentize$1(.2,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({flex:1,textAlign:"center",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",flexDirection:"row"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({background})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background,content:'""'}}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({...getBlockBackgroundStyle(theme),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"}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({flex:1,display:"flex",flexDirection:"row"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",alignItems:"flex-start"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({flex:"0 0 30%"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({flex:1}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"})));storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({...getBlockBackgroundStyle(theme),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}))),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"}),storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div({display:"flex",flexFlow:"row wrap"});var anchorBlockIdFromId=storyId=>`anchor--${storyId}`,Anchor=({storyId,children})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{id:anchorBlockIdFromId(storyId),className:"sb-anchor"},children);globalThis&&void 0===globalThis.__DOCS_CONTEXT__&&(globalThis.__DOCS_CONTEXT__=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=globalThis?globalThis.__DOCS_CONTEXT__:(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null),useOf=(moduleExportOrType,validTypes)=>(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext).resolveOf(moduleExportOrType,validTypes),getComponentName=component=>{if(component)return"string"==typeof component?component.includes("-")?component.split("-").map((part=>part.charAt(0).toUpperCase()+part.slice(1))).join(""):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name};var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS2=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__toESM2=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key2 of __getOwnPropNames(from))!__hasOwnProp.call(to,key2)&&key2!==except&&__defProp(to,key2,{get:()=>from[key2],enumerable:!(desc=__getOwnPropDesc(from,key2))||desc.enumerable});return to})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod)),eventProperties=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],customEventSpecificProperties=["detail"];var import_memoizerific2=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.f1)(require_memoizerific(),1),require_shams=__commonJS2({"node_modules/has-symbols/shams.js"(exports,module){module.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var obj={},sym=Symbol("test"),symObj=Object(sym);if("string"==typeof sym||"[object Symbol]"!==Object.prototype.toString.call(sym)||"[object Symbol]"!==Object.prototype.toString.call(symObj))return!1;for(sym in obj[sym]=42,obj)return!1;if("function"==typeof Object.keys&&0!==Object.keys(obj).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(obj).length)return!1;var syms=Object.getOwnPropertySymbols(obj);if(1!==syms.length||syms[0]!==sym||!Object.prototype.propertyIsEnumerable.call(obj,sym))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(42!==descriptor.value||!0!==descriptor.enumerable)return!1}return!0}}}),require_has_symbols=__commonJS2({"node_modules/has-symbols/index.js"(exports,module){var origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=require_shams();module.exports=function(){return"function"==typeof origSymbol&&"function"==typeof Symbol&&"symbol"==typeof origSymbol("foo")&&"symbol"==typeof Symbol("bar")&&hasSymbolSham()}}}),require_implementation=__commonJS2({"node_modules/function-bind/implementation.js"(exports,module){var slice=Array.prototype.slice,toStr=Object.prototype.toString;module.exports=function(that){var target=this;if("function"!=typeof target||"[object Function]"!==toStr.call(target))throw new TypeError("Function.prototype.bind called on incompatible "+target);for(var bound,args2=slice.call(arguments,1),boundLength=Math.max(0,target.length-args2.length),boundArgs=[],i2=0;i2"u"?undefined:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined,"%AsyncFromSyncIteratorPrototype%":undefined,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined:Atomics,"%BigInt%":typeof BigInt>"u"?undefined:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined,"%JSON%":"object"==typeof JSON?JSON:undefined,"%Map%":typeof Map>"u"?undefined:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?undefined:getProto((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined:Promise,"%Proxy%":typeof Proxy>"u"?undefined:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols?undefined:getProto((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined,"%Symbol%":hasSymbols?Symbol:undefined,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":typeof Uint8Array>"u"?undefined:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined:WeakSet},doEval=function doEval2(name2){var value22;if("%AsyncFunction%"===name2)value22=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===name2)value22=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===name2)value22=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===name2){var fn=doEval2("%AsyncGeneratorFunction%");fn&&(value22=fn.prototype)}else if("%AsyncIteratorPrototype%"===name2){var gen=doEval2("%AsyncGenerator%");gen&&(value22=getProto(gen.prototype))}return INTRINSICS[name2]=value22,value22},LEGACY_ALIASES={"%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"]},bind=require_function_bind(),hasOwn=require_src(),$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar2=/\\(\\)?/g,getBaseIntrinsic=function(name2,allowMissing){var alias,intrinsicName=name2;if(hasOwn(LEGACY_ALIASES,intrinsicName)&&(intrinsicName="%"+(alias=LEGACY_ALIASES[intrinsicName])[0]+"%"),hasOwn(INTRINSICS,intrinsicName)){var value22=INTRINSICS[intrinsicName];if(value22===needsEval&&(value22=doEval(intrinsicName)),typeof value22>"u"&&!allowMissing)throw new $TypeError("intrinsic "+name2+" exists, but is not available. Please file an issue!");return{alias,name:intrinsicName,value:value22}}throw new $SyntaxError("intrinsic "+name2+" does not exist!")};module.exports=function(name2,allowMissing){if("string"!=typeof name2||0===name2.length)throw new $TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof allowMissing)throw new $TypeError('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,name2))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var parts=function(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if("%"===first&&"%"!==last)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===last&&"%"!==first)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var result2=[];return $replace(string,rePropName2,(function(match,number,quote,subString){result2[result2.length]=quote?$replace(subString,reEscapeChar2,"$1"):number||match})),result2}(name2),intrinsicBaseName=parts.length>0?parts[0]:"",intrinsic=getBaseIntrinsic("%"+intrinsicBaseName+"%",allowMissing),intrinsicRealName=intrinsic.name,value22=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i2=1,isOwn=!0;i2=parts.length){var desc=$gOPD(value22,part);value22=(isOwn=!!desc)&&"get"in desc&&!("originalValue"in desc.get)?desc.get:value22[part]}else isOwn=hasOwn(value22,part),value22=value22[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value22)}}return value22}}}),require_call_bind=__commonJS2({"node_modules/call-bind/index.js"(exports,module){var bind=require_function_bind(),GetIntrinsic=require_get_intrinsic(),$apply=GetIntrinsic("%Function.prototype.apply%"),$call=GetIntrinsic("%Function.prototype.call%"),$reflectApply=GetIntrinsic("%Reflect.apply%",!0)||bind.call($call,$apply),$gOPD=GetIntrinsic("%Object.getOwnPropertyDescriptor%",!0),$defineProperty=GetIntrinsic("%Object.defineProperty%",!0),$max=GetIntrinsic("%Math.max%");if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=null}module.exports=function(originalFunction){var func=$reflectApply(bind,$call,arguments);$gOPD&&$defineProperty&&($gOPD(func,"length").configurable&&$defineProperty(func,"length",{value:1+$max(0,originalFunction.length-(arguments.length-1))}));return func};var applyBind=function(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,"apply",{value:applyBind}):module.exports.apply=applyBind}}),require_callBound=__commonJS2({"node_modules/call-bind/callBound.js"(exports,module){var GetIntrinsic=require_get_intrinsic(),callBind=require_call_bind(),$indexOf=callBind(GetIntrinsic("String.prototype.indexOf"));module.exports=function(name2,allowMissing){var intrinsic=GetIntrinsic(name2,!!allowMissing);return"function"==typeof intrinsic&&$indexOf(name2,".prototype.")>-1?callBind(intrinsic):intrinsic}}}),require_shams2=__commonJS2({"node_modules/has-tostringtag/shams.js"(exports,module){var hasSymbols=require_shams();module.exports=function(){return hasSymbols()&&!!Symbol.toStringTag}}}),require_is_regex=__commonJS2({"node_modules/is-regex/index.js"(exports,module){var has,$exec,isRegexMarker,badStringifier,callBound=require_callBound(),hasToStringTag=require_shams2()();hasToStringTag&&(has=callBound("Object.prototype.hasOwnProperty"),$exec=callBound("RegExp.prototype.exec"),isRegexMarker={},badStringifier={toString:throwRegexMarker=function(){throw isRegexMarker},valueOf:throwRegexMarker},"symbol"==typeof Symbol.toPrimitive&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker));var throwRegexMarker,$toString=callBound("Object.prototype.toString"),gOPD=Object.getOwnPropertyDescriptor;module.exports=hasToStringTag?function(value22){if(!value22||"object"!=typeof value22)return!1;var descriptor=gOPD(value22,"lastIndex");if(!(descriptor&&has(descriptor,"value")))return!1;try{$exec(value22,badStringifier)}catch(e2){return e2===isRegexMarker}}:function(value22){return!(!value22||"object"!=typeof value22&&"function"!=typeof value22)&&"[object RegExp]"===$toString(value22)}}}),require_is_function=__commonJS2({"node_modules/is-function/index.js"(exports,module){module.exports=function isFunction3(fn){if(!fn)return!1;var string=toString2.call(fn);return"[object Function]"===string||"function"==typeof fn&&"[object RegExp]"!==string||typeof window<"u"&&(fn===window.setTimeout||fn===window.alert||fn===window.confirm||fn===window.prompt)};var toString2=Object.prototype.toString}}),require_is_symbol=__commonJS2({"node_modules/is-symbol/index.js"(exports,module){var symToStr,symStringRegex,isSymbolObject,toStr=Object.prototype.toString;require_has_symbols()()?(symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\(.*\)$/,isSymbolObject=function(value22){return"symbol"==typeof value22.valueOf()&&symStringRegex.test(symToStr.call(value22))},module.exports=function(value22){if("symbol"==typeof value22)return!0;if("[object Symbol]"!==toStr.call(value22))return!1;try{return isSymbolObject(value22)}catch{return!1}}):module.exports=function(value22){return!1}}}),import_is_regex=__toESM2(require_is_regex()),import_is_function=__toESM2(require_is_function()),import_is_symbol=__toESM2(require_is_symbol());var freeGlobal_default="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root_default=freeGlobal_default||freeSelf||Function("return this")(),Symbol_default=root_default.Symbol,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;var getRawTag_default=function getRawTag(value22){var isOwn=hasOwnProperty.call(value22,symToStringTag),tag=value22[symToStringTag];try{value22[symToStringTag]=void 0;var unmasked=!0}catch{}var result2=nativeObjectToString.call(value22);return unmasked&&(isOwn?value22[symToStringTag]=tag:delete value22[symToStringTag]),result2},nativeObjectToString2=Object.prototype.toString;var objectToString_default=function objectToString(value22){return nativeObjectToString2.call(value22)},symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;var baseGetTag_default=function baseGetTag(value22){return null==value22?void 0===value22?"[object Undefined]":"[object Null]":symToStringTag2&&symToStringTag2 in Object(value22)?getRawTag_default(value22):objectToString_default(value22)},symbolProto=Symbol_default?Symbol_default.prototype:void 0;symbolProto&&symbolProto.toString;var isObject_default=function isObject2(value22){var type=typeof value22;return null!=value22&&("object"==type||"function"==type)};var uid,isFunction_default=function isFunction(value22){if(!isObject_default(value22))return!1;var tag=baseGetTag_default(value22);return"[object Function]"==tag||"[object GeneratorFunction]"==tag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag},coreJsData_default=root_default["__core-js_shared__"],maskSrcKey=(uid=/[^.]+$/.exec(coreJsData_default&&coreJsData_default.keys&&coreJsData_default.keys.IE_PROTO||""))?"Symbol(src)_1."+uid:"";var isMasked_default=function isMasked(func){return!!maskSrcKey&&maskSrcKey in func},funcToString=Function.prototype.toString;var toSource_default=function toSource(func){if(null!=func){try{return funcToString.call(func)}catch{}try{return func+""}catch{}}return""},reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto2=Function.prototype,objectProto3=Object.prototype,funcToString2=funcProto2.toString,hasOwnProperty2=objectProto3.hasOwnProperty,reIsNative=RegExp("^"+funcToString2.call(hasOwnProperty2).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var baseIsNative_default=function baseIsNative(value22){return!(!isObject_default(value22)||isMasked_default(value22))&&(isFunction_default(value22)?reIsNative:reIsHostCtor).test(toSource_default(value22))};var getValue_default=function getValue(object2,key2){return object2?.[key2]};var getNative_default=function getNative(object2,key2){var value22=getValue_default(object2,key2);return baseIsNative_default(value22)?value22:void 0};var eq_default=function eq(value22,other){return value22===other||value22!=value22&&other!=other},nativeCreate_default=getNative_default(Object,"create");var hashClear_default=function hashClear(){this.__data__=nativeCreate_default?nativeCreate_default(null):{},this.size=0};var hashDelete_default=function hashDelete(key2){var result2=this.has(key2)&&delete this.__data__[key2];return this.size-=result2?1:0,result2},hasOwnProperty3=Object.prototype.hasOwnProperty;var hashGet_default=function hashGet(key2){var data=this.__data__;if(nativeCreate_default){var result2=data[key2];return"__lodash_hash_undefined__"===result2?void 0:result2}return hasOwnProperty3.call(data,key2)?data[key2]:void 0},hasOwnProperty4=Object.prototype.hasOwnProperty;var hashHas_default=function hashHas(key2){var data=this.__data__;return nativeCreate_default?void 0!==data[key2]:hasOwnProperty4.call(data,key2)};var hashSet_default=function hashSet(key2,value22){var data=this.__data__;return this.size+=this.has(key2)?0:1,data[key2]=nativeCreate_default&&void 0===value22?"__lodash_hash_undefined__":value22,this};function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index-1};var listCacheSet_default=function listCacheSet(key2,value22){var data=this.__data__,index=assocIndexOf_default(data,key2);return index<0?(++this.size,data.push([key2,value22])):data[index][1]=value22,this};function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index(code=>{let inQuoteChar=null,inBlockComment=!1,inLineComment=!1,inRegexLiteral=!1,newCode="";if(code.indexOf("//")>=0||code.indexOf("/*")>=0)for(let i2=0;i2void 0!==event[value3])).reduce(((acc,value3)=>({...acc,[value3]:event[value3]})),{});return event instanceof CustomEvent&&customEventSpecificProperties.filter((value3=>void 0!==event[value3])).forEach((value3=>{rebuildEvent[value3]=event[value3]})),rebuildEvent}(result2),wasMutated=!0),result2=Object.keys(result2).reduce(((acc,key2)=>{try{result2[key2]&&result2[key2].toJSON,acc[key2]=result2[key2]}catch{wasMutated=!0}return acc}),{}),wasMutated?result2:data}var defaultOptions={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},stringify=(data,options2={})=>{let mergedOptions={...defaultOptions,...options2};return JSON.stringify(convertUnconventionalData(data),function(options2){let objects,map,stack,keys;return function(key2,value22){try{if(""===key2)return keys=[],objects=new Map([[value22,"[]"]]),map=new Map,stack=[],value22;let origin=map.get(this)||this;for(;stack.length&&origin!==stack[0];)stack.shift(),keys.pop();if("boolean"==typeof value22)return value22;if(void 0===value22)return options2.allowUndefined?"_undefined_":void 0;if(null===value22)return null;if("number"==typeof value22)return value22===-1/0?"_-Infinity_":value22===1/0?"_Infinity_":Number.isNaN(value22)?"_NaN_":value22;if("bigint"==typeof value22)return`_bigint_${value22.toString()}`;if("string"==typeof value22)return dateFormat.test(value22)?options2.allowDate?`_date_${value22}`:void 0:value22;if((0,import_is_regex.default)(value22))return options2.allowRegExp?`_regexp_${value22.flags}|${value22.source}`:void 0;if((0,import_is_function.default)(value22)){if(!options2.allowFunction)return;let{name:name2}=value22,stringified=value22.toString();return stringified.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${name2}|${(()=>{}).toString()}`:`_function_${name2}|${cleanCode(function(key2,stringified){let fnHead=stringified.slice(0,stringified.indexOf("{")),fnBody=stringified.slice(stringified.indexOf("{"));if(fnHead.includes("=>")||fnHead.includes("function"))return stringified;let modifiedHead=fnHead;return modifiedHead=modifiedHead.replace(key2,"function"),modifiedHead+fnBody}(key2,stringified))}`}if((0,import_is_symbol.default)(value22)){if(!options2.allowSymbol)return;let globalRegistryKey=Symbol.keyFor(value22);return void 0!==globalRegistryKey?`_gsymbol_${globalRegistryKey}`:`_symbol_${value22.toString().slice(7,-1)}`}if(stack.length>=options2.maxDepth)return Array.isArray(value22)?`[Array(${value22.length})]`:"[Object]";if(value22===this)return`_duplicate_${JSON.stringify(keys)}`;if(value22 instanceof Error&&options2.allowError)return{__isConvertedError__:!0,errorProperties:{...value22.cause?{cause:value22.cause}:{},...value22,name:value22.name,message:value22.message,stack:value22.stack,"_constructor-name_":value22.constructor.name}};if(value22.constructor&&value22.constructor.name&&"Object"!==value22.constructor.name&&!Array.isArray(value22)&&!options2.allowClass)return;let found=objects.get(value22);if(!found){let converted=Array.isArray(value22)?value22:convertUnconventionalData(value22);if(value22.constructor&&value22.constructor.name&&"Object"!==value22.constructor.name&&!Array.isArray(value22)&&options2.allowClass)try{Object.assign(converted,{"_constructor-name_":value22.constructor.name})}catch{}return keys.push(key2),stack.unshift(converted),objects.set(value22,JSON.stringify(keys)),value22!==converted&&map.set(value22,converted),converted}return`_duplicate_${found}`}catch{return}}}(mergedOptions),options2.space)};function argsHash(args2){return stringify(args2,{allowFunction:!1})}var SourceContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)({sources:{}}),SourceContainer=({children,channel})=>{let[sources,setSources]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({});return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let handleSnippetRendered=(idOrEvent,inputSource=null,inputFormat=!1)=>{let{id,args:args2,source:source2,format:format3}="string"==typeof idOrEvent?{id:idOrEvent,source:inputSource,format:inputFormat}:idOrEvent,hash=args2?argsHash(args2):"--unknown--";setSources((current=>({...current,[id]:{...current[id],[hash]:{code:source2,format:format3}}})))};return channel.on(storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__.Op,handleSnippetRendered),()=>channel.off(storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__.Op,handleSnippetRendered)}),[]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceContext.Provider,{value:{sources}},children)},getSnippet=({snippet,storyContext,typeFromProps,transformFromProps})=>{let{__isArgsStory:isArgsStory}=storyContext.parameters,sourceParameters=storyContext.parameters.docs?.source||{},type=typeFromProps||sourceParameters.type||storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__.Y1.AUTO;if(void 0!==sourceParameters.code)return sourceParameters.code;let code=type===storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__.Y1.DYNAMIC||type===storybook_internal_docs_tools__WEBPACK_IMPORTED_MODULE_10__.Y1.AUTO&&snippet&&isArgsStory?snippet:sourceParameters.originalSource||"";return(transformFromProps??sourceParameters.transform)?.(code,storyContext)||code},useSourceProps=(props,docsContext,sourceContext)=>{let story,{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");if(of)story=docsContext.resolveOf(of,["story"]).story;else try{story=docsContext.storyById()}catch{}let sourceParameters=story?.parameters?.docs?.source||{},{code}=props,format3=props.format??sourceParameters.format,language=props.language??sourceParameters.language??"jsx",dark=props.dark??sourceParameters.dark??!1;if(!code&&!story)return{error:"Oh no! The source is not available."};if(code)return{code,format:format3,language,dark};let storyContext=docsContext.getStoryContext(story),argsForSource=props.__forceInitialArgs?storyContext.initialArgs:storyContext.unmappedArgs,source2=((storyId,args2,sourceContext)=>{let{sources}=sourceContext,sourceMap=sources?.[storyId];return sourceMap?.[argsHash(args2)]||sourceMap?.["--unknown--"]||{code:""}})(story.id,argsForSource,sourceContext);return format3=source2.format??story.parameters.docs?.source?.format??!1,{code:getSnippet({snippet:source2.code,storyContext:{...storyContext,args:argsForSource},typeFromProps:props.type,transformFromProps:props.transform}),format:format3,language,dark}};function useStory(storyId,context){let stories=function useStories(storyIds,context){let[storiesById,setStories]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({});return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{Promise.all(storyIds.map((async storyId=>{let story=await context.loadStory(storyId);setStories((current=>current[storyId]===story?current:{...current,[storyId]:story}))})))})),storyIds.map((storyId=>{if(storiesById[storyId])return storiesById[storyId];try{return context.storyById(storyId)}catch{return null}}))}([storyId],context);return stories&&stories[0]}var Story2=(props={__forceInitialArgs:!1,__primary:!1})=>{let context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext),storyId=((props,context)=>{let{of,meta}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return meta&&context.referenceMeta(meta,!1),context.resolveOf(of||"story",["story"]).story.id})(props,context),story=useStory(storyId,context);if(!story)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(StorySkeleton,null);let storyProps=((props,story,context)=>{let{parameters={}}=story||{},{docs={}}=parameters,storyParameters=docs.story||{};if(docs.disable)return null;if(props.inline??storyParameters.inline)return{story,inline:!0,height:props.height??storyParameters.height,autoplay:props.autoplay??storyParameters.autoplay??!1,forceInitialArgs:!!props.__forceInitialArgs,primary:!!props.__primary,renderStoryToElement:context.renderStoryToElement};return{story,inline:!1,height:props.height??storyParameters.height??storyParameters.iframeHeight??"100px",primary:!!props.__primary}})(props,story,context);return storyProps?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Story,{...storyProps}):null},Canvas=props=>{let docsContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext),sourceContext=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(SourceContext),{of,source:source2}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story}=useOf(of||"story",["story"]),sourceProps=useSourceProps({...source2,...of&&{of}},docsContext,sourceContext),layout=props.layout??story.parameters.layout??story.parameters.docs?.canvas?.layout??"padded",withToolbar=props.withToolbar??story.parameters.docs?.canvas?.withToolbar??!1,additionalActions=props.additionalActions??story.parameters.docs?.canvas?.additionalActions,sourceState=props.sourceState??story.parameters.docs?.canvas?.sourceState??"hidden",className=props.className??story.parameters.docs?.canvas?.className;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Preview,{withSource:"none"===sourceState?void 0:sourceProps,isExpanded:"shown"===sourceState,withToolbar,additionalActions,className,layout},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Story2,{of:of||story.moduleExport,meta:props.meta,...props.story}))},useArgsIfDefined=(story,context)=>{let storyContext=story?context.getStoryContext(story):{args:{}},{id:storyId}=story||{id:"none"},[args2,setArgs]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(storyContext.args);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let onArgsUpdated=changed=>{changed.storyId===storyId&&setArgs(changed.args)};return context.channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.STORY_ARGS_UPDATED,onArgsUpdated),()=>context.channel.off(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.STORY_ARGS_UPDATED,onArgsUpdated)}),[storyId,context.channel]);let updateArgs=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((updatedArgs=>context.channel.emit(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.UPDATE_STORY_ARGS,{storyId,updatedArgs})),[storyId,context.channel]),resetArgs=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((argNames=>context.channel.emit(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.RESET_STORY_ARGS,{storyId,argNames})),[storyId,context.channel]);return story&&[args2,updateArgs,resetArgs]};function extractComponentArgTypes2(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error("Args unsupported. See Args documentation for your framework.");return extractArgTypes(component)}var Controls3=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext),{story}=context.resolveOf(of||"story",["story"]),{parameters,argTypes,component,subcomponents}=story,controlsParameters=parameters.docs?.controls||{},include=props.include??controlsParameters.include,exclude=props.exclude??controlsParameters.exclude,sort=props.sort??controlsParameters.sort,[args2,updateArgs,resetArgs]=((story,context)=>{let result2=useArgsIfDefined(story,context);if(!result2)throw new Error("No result when story was defined");return result2})(story,context),[globals]=((story,context)=>{let storyContext=context.getStoryContext(story),[globals,setGlobals]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(storyContext.globals);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let onGlobalsUpdated=changed=>{setGlobals(changed.globals)};return context.channel.on(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.GLOBALS_UPDATED,onGlobalsUpdated),()=>context.channel.off(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.GLOBALS_UPDATED,onGlobalsUpdated)}),[context.channel]),[globals]})(story,context),filteredArgTypes=(0,storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_3__.filterArgTypes)(argTypes,include,exclude);if(!(subcomponents&&Object.keys(subcomponents).length>0))return Object.keys(filteredArgTypes).length>0||Object.keys(args2).length>0?react__WEBPACK_IMPORTED_MODULE_0__.createElement(ArgsTable,{rows:filteredArgTypes,sort,args:args2,globals,updateArgs,resetArgs}):null;let mainComponentName=getComponentName(component),subcomponentTabs=Object.fromEntries(Object.entries(subcomponents).map((([key2,comp])=>[key2,{rows:(0,storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_3__.filterArgTypes)(extractComponentArgTypes2(comp,parameters),include,exclude),sort}]))),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(TabbedArgsTable,{tabs,sort,args:args2,globals,updateArgs,resetArgs})},{document:document2}=globalThis,CodeOrSourceMdx=({className,children,...rest})=>{if("string"!=typeof className&&("string"!=typeof children||!children.match(/[\n\r]/g)))return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.Cy,null,children);let language=className&&className.split("-");return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Source,{language:language&&language[1]||"text",format:!1,code:children,...rest})};function navigate(context,url){context.channel.emit(storybook_internal_core_events__WEBPACK_IMPORTED_MODULE_4__.NAVIGATE_URL,url)}var DescriptionType2,A2=storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.dK.a,AnchorInPage=({hash,children})=>{let context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(A2,{href:hash,target:"_self",onClick:event=>{let id=hash.substring(1);document2.getElementById(id)&&navigate(context,hash)}},children)},AnchorMdx=props=>{let{href,target,children,...rest}=props,context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext);return!href||"_blank"===target||/^https?:\/\//.test(href)?react__WEBPACK_IMPORTED_MODULE_0__.createElement(A2,{...props}):href.startsWith("#")?react__WEBPACK_IMPORTED_MODULE_0__.createElement(AnchorInPage,{hash:href},children):react__WEBPACK_IMPORTED_MODULE_0__.createElement(A2,{href,onClick:event=>{0===event.button&&!event.altKey&&!event.ctrlKey&&!event.metaKey&&!event.shiftKey&&(event.preventDefault(),navigate(context,event.currentTarget.getAttribute("href")))},target,...rest},children)},SUPPORTED_MDX_HEADERS=["h1","h2","h3","h4","h5","h6"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce(((acc,headerType)=>({...acc,[headerType]:(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)(headerType)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})})),{}),OcticonAnchor=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.a((()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"}))),HeaderWithOcticonAnchor=({as,id,children,...rest})=>{let context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext),OcticonHeader=OcticonHeaders[as],hash=`#${id}`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(OcticonHeader,{id,...rest},react__WEBPACK_IMPORTED_MODULE_0__.createElement(OcticonAnchor,{"aria-hidden":"true",href:hash,tabIndex:-1,target:"_self",onClick:event=>{document2.getElementById(id)&&navigate(context,hash)}},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_storybook_icons__WEBPACK_IMPORTED_MODULE_9__.qYV,null)),children)},HeaderMdx=props=>{let{as,id,children,...rest}=props;if(id)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderWithOcticonAnchor,{as,id,...rest},children);let Component4=as,{as:omittedAs,...withoutAs}=props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Component4,{...(0,storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.mc)(withoutAs,as)})},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce(((acc,headerType)=>({...acc,[headerType]:props=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderMdx,{as:headerType,...props})})),{}),Markdown=props=>{if(!props.children)return null;if("string"!=typeof props.children)throw new Error(ts_dedent__WEBPACK_IMPORTED_MODULE_11__.T`The Markdown block only accepts children as a single string, but children were of type: '${typeof props.children}' This is often caused by not wrapping the child in a template string. This is invalid: @@ -15,7 +15,7 @@ A paragraph \`} - `);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(index_modern_default,{...props,options:{forceBlock:!0,overrides:{code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx,...props?.options?.overrides},...props?.options}})},DescriptionType=((DescriptionType2=DescriptionType||{}).INFO="info",DescriptionType2.NOTES="notes",DescriptionType2.DOCGEN="docgen",DescriptionType2.AUTO="auto",DescriptionType2),DescriptionContainer=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let markdown=(resolvedOf=>{switch(resolvedOf.type){case"story":return resolvedOf.story.parameters.docs?.description?.story||null;case"meta":{let{parameters,component}=resolvedOf.preparedMeta,metaDescription=parameters.docs?.description?.component;return metaDescription||parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}case"component":{let{component,projectAnnotations:{parameters}}=resolvedOf;return parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${resolvedOf.type}`)}})(useOf(of||"meta"));return markdown?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Markdown,null,markdown):null},tocbot=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.f1)(require_js()),Wrapper10=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}}))),Content=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${theme.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:theme.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:theme.color.secondary,textDecoration:"none"}}))),Heading=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.p((({theme})=>({fontWeight:600,fontSize:"0.875em",color:theme.textColor,textTransform:"uppercase",marginBottom:10}))),OptionalTitle=({title})=>null===title?null:"string"==typeof title?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Heading,null,title):title,TableOfContents=({title,disable,headingSelector,contentsSelector,ignoreSelector,unsafeTocbotOptions})=>((0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let configuration={tocSelector:".toc-wrapper",contentSelector:contentsSelector??".sbdocs-content",headingSelector:headingSelector??"h3",ignoreSelector:ignoreSelector??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...unsafeTocbotOptions},timeout=setTimeout((()=>tocbot.init(configuration)),100);return()=>{clearTimeout(timeout),tocbot.destroy()}}),[disable]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper10,null,disable?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Content,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(OptionalTitle,{title:title||null}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"toc-wrapper"}))))),{document:document3,window:globalWindow3}=globalThis,DocsContainer=({context,theme,children})=>{let toc;try{toc=context.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc}catch{toc=context?.projectAnnotations?.parameters?.docs?.toc}return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let url;try{if(url=new URL(globalWindow3.parent.location.toString()),url.hash){let element=document3.getElementById(decodeURIComponent(url.hash.substring(1)));element&&setTimeout((()=>{!function scrollToElement(element,block="start"){element.scrollIntoView({behavior:"smooth",block,inline:"nearest"})}(element)}),200)}}catch{}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsContext.Provider,{value:context},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceContainer,{channel:context.channel},react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.NP,{theme:(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.D8)(theme)},react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsPageWrapper,{toc:toc?react__WEBPACK_IMPORTED_MODULE_0__.createElement(TableOfContents,{className:"sbdocs sbdocs-toc--custom",...toc}):null},children))))},Subheading=({children,disableAnchor})=>{if(disableAnchor||"string"!=typeof children)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.H3,null,children);let tagID=globalThis.encodeURIComponent(children.toLowerCase());return react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderMdx,{as:"h3",id:tagID},children)},DocsStory=({of,expanded=!0,withToolbar:withToolbarProp=!1,__forceInitialArgs=!1,__primary=!1})=>{let{story}=useOf(of||"story",["story"]),withToolbar=story.parameters.docs?.canvas?.withToolbar??withToolbarProp;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Anchor,{storyId:story.id},expanded&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Subheading,null,story.name),react__WEBPACK_IMPORTED_MODULE_0__.createElement(DescriptionContainer,{of})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Canvas,{of,withToolbar,story:{__forceInitialArgs,__primary},source:{__forceInitialArgs}}))},Primary=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile}=useOf(of||"meta",["meta"]),primaryStory=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext).componentStoriesFromCSFFile(csfFile)[0];return primaryStory?react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsStory,{of:primaryStory.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},StyledHeading=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)((({children,disableAnchor,...props})=>{if(disableAnchor||"string"!=typeof children)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.H2,null,children);let tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,"-");return react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderMdx,{as:"h2",id:tagID,...props},children)}))((({theme})=>({fontSize:theme.typography.size.s2-1+"px",fontWeight:theme.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:theme.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}))),Stories=({title="Stories",includePrimary=!0})=>{let{componentStories,projectAnnotations,getStoryContext}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext),stories=componentStories(),{stories:{filter}={filter:void 0}}=projectAnnotations.parameters?.docs||{};return filter&&(stories=stories.filter((story=>filter(story,getStoryContext(story))))),stories.some((story=>story.tags?.includes("autodocs")))&&(stories=stories.filter((story=>story.tags?.includes("autodocs")&&!story.usesMount))),includePrimary||(stories=stories.slice(1)),stories&&0!==stories.length?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledHeading,null,title),stories.map((story=>story&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsStory,{key:story.id,of:story.moduleExport,expanded:!0,__forceInitialArgs:!0})))):null},Subtitle2=props=>{let preparedMeta,{of,children}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");try{preparedMeta=useOf(of||"meta",["meta"]).preparedMeta}catch(error){if(children&&!error.message.includes("did you forget to use ?"))throw error}let{componentSubtitle,docs}=preparedMeta?.parameters||{};componentSubtitle&&(0,storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.deprecate)("Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle");let content=children||docs?.subtitle||componentSubtitle;return content?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Subtitle,{className:"sbdocs-subtitle sb-unstyled"},content):null},STORY_KIND_PATH_SEPARATOR=/\s*\/\s*/,Title2=props=>{let preparedMeta,{children,of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");try{preparedMeta=useOf(of||"meta",["meta"]).preparedMeta}catch(error){if(children&&!error.message.includes("did you forget to use ?"))throw error}let content=children||(title=>{let groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups?.[groups?.length-1]||title})(preparedMeta?.title);return content?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Title,{className:"sbdocs-title sb-unstyled"},content):null},DocsPage=()=>{let resolvedOf=useOf("meta",["meta"]),{stories}=resolvedOf.csfFile,isSingleStory=1===Object.keys(stories).length;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Title2,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Subtitle2,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(DescriptionContainer,{of:"meta"}),isSingleStory?react__WEBPACK_IMPORTED_MODULE_0__.createElement(DescriptionContainer,{of:"story"}):null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Primary,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Controls3,null),isSingleStory?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Stories,null))};function Docs({context,docsParameter}){let Container=docsParameter.container||DocsContainer,Page=docsParameter.page||DocsPage;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Container,{context,theme:docsParameter.theme},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Page,null))}var ExternalDocsContext=class extends storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_3__.DocsContext{constructor(channel,store,renderStoryToElement,processMetaExports){super(channel,store,renderStoryToElement,[]),this.channel=channel,this.store=store,this.renderStoryToElement=renderStoryToElement,this.processMetaExports=processMetaExports,this.referenceMeta=(metaExports,attach)=>{let csfFile=this.processMetaExports(metaExports);this.referenceCSFFile(csfFile),super.referenceMeta(metaExports,attach)}}},ConstantMap=class{constructor(prefix){this.prefix=prefix,this.entries=new Map}get(key2){return this.entries.has(key2)||this.entries.set(key2,`${this.prefix}${this.entries.size}`),this.entries.get(key2)}};storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_3__.Preview;var Meta=({of})=>{let context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext);of&&context.referenceMeta(of,!0);try{let primary=context.storyById();return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Anchor,{storyId:primary.id})}catch{return null}}},"./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/components/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$n:()=>Lo,Cy:()=>vu,Df:()=>yI,E7:()=>au,GP:()=>dI,H2:()=>Du,H3:()=>xu,K0:()=>Il,N_:()=>ju,Q2:()=>$1,YV:()=>q,_:()=>KB,_j:()=>N1,aH:()=>d_,bF:()=>wg,dK:()=>iee,dL:()=>dp,jZ:()=>h_,kR:()=>$B,lV:()=>NI,mc:()=>te,o4:()=>OB,px:()=>Kl,zH:()=>mu,zb:()=>kt});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/theming/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/jsx-runtime.js"),react_dom__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/index.js"),_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("storybook/internal/client-logger"),_storybook_csf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.1.11/node_modules/@storybook/csf/dist/index.mjs"),L4=Object.create,Qa=Object.defineProperty,I4=Object.getOwnPropertyDescriptor,B4=Object.getOwnPropertyNames,M4=Object.getPrototypeOf,_4=Object.prototype.hasOwnProperty,a=(e,t)=>Qa(e,"name",{value:t,configurable:!0}),Ko=(e=>__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/components sync recursive"))(),F=(e,t)=>()=>(e&&(t=e(e=0)),t),_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),an=(e,t)=>{for(var r in t)Qa(e,r,{get:t[r],enumerable:!0})},we=(e,t,r)=>(r=null!=e?L4(M4(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of B4(t))!_4.call(e,o)&&o!==r&&Qa(e,o,{get:()=>t[o],enumerable:!(n=I4(t,o))||n.enumerable});return e})(!t&&e&&e.__esModule?r:Qa(r,"default",{value:e,enumerable:!0}),e));function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a(H,"_extends")}));function rp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var np=F((()=>{a(rp,"_assertThisInitialized")}));function Xt(e,t){return(Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(e,t)}var ei=F((()=>{a(Xt,"_setPrototypeOf")}));function ti(e){return(ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}var ln,ap=F((()=>{a(ti,"_getPrototypeOf")})),oi=F((()=>{ln=(()=>{let e;return e=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:{},e})()})),Qo=_(((hp,vs)=>{!function(e){if("object"==typeof hp&&typeof vs<"u")vs.exports=e();else if("function"==typeof define&&__webpack_require__.amdO)define([],e);else{(typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:this).memoizerific=e()}}((function(){return a((function n(o,i,l){function u(d,h){if(!i[d]){if(!o[d]){var f="function"==typeof Ko&&Ko;if(!h&&f)return f(d,!0);if(c)return c(d,!0);var v=new Error("Cannot find module '"+d+"'");throw v.code="MODULE_NOT_FOUND",v}var b=i[d]={exports:{}};o[d][0].call(b.exports,(function(m){return u(o[d][1][m]||m)}),b,b.exports,n,o,i,l)}return i[d].exports}a(u,"s");for(var c="function"==typeof Ko&&Ko,p=0;p=0?(this.lastItem=this.list[c],this.list[c].val):void 0},l.prototype.set=function(u,c){var p;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=c,this):(p=this.indexOf(u))>=0?(this.lastItem=this.list[p],this.list[p].val=c,this):(this.lastItem={key:u,val:c},this.list.push(this.lastItem),this.size++,this)},l.prototype.delete=function(u){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),(c=this.indexOf(u))>=0)return this.size--,this.list.splice(c,1)[0]},l.prototype.has=function(u){var c;return!(!this.lastItem||!this.isEqual(this.lastItem.key,u))||(c=this.indexOf(u))>=0&&(this.lastItem=this.list[c],!0)},l.prototype.forEach=function(u,c){var p;for(p=0;p=0&&(!(v=(f=d[b]).cacheItem.get(f.arg))||!v.size);b--)f.cacheItem.delete(f.arg)}function p(d,h){return d===h||d!=d&&h!=h}o.exports=function(d){var h=new l(!1),f=[];return function(v){var b=a((function(){var g,y,C,m=h,w=arguments.length-1,D=Array(w+1),x=!0;if((b.numArgs||0===b.numArgs)&&b.numArgs!==w+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(C=0;C0&&(D[w]={cacheItem:m,arg:arguments[w]},x?u(f,D):f.push(D),f.length>d&&c(f.shift())),b.wasMemoized=x,b.numArgs=w+1,y}),"memoizerific");return b.limit=d,b.wasMemoized=!1,b.cache=h,b.lru=f,b}},a(u,"moveToMostRecentLru"),a(c,"removeCachedResult"),a(p,"isEqual")},{"map-or-similar":1}]},{},[3])(3)}))}));function sn(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ai=F((()=>{a(sn,"_objectWithoutPropertiesLoose")}));function mp(e,t){if(null==e)return{};var r,n,o=sn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var gp=F((()=>{ai(),a(mp,"_objectWithoutProperties")}));function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{a(ea,"_arrayLikeToArray")}));function vp(e){if(Array.isArray(e))return ea(e)}var wp=F((()=>{ws(),a(vp,"_arrayWithoutHoles")}));function bp(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var yp=F((()=>{a(bp,"_iterableToArray")}));function Dp(e,t){if(e){if("string"==typeof e)return ea(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ea(e,t):void 0}}var xp=F((()=>{ws(),a(Dp,"_unsupportedIterableToArray")}));function Cp(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ep=F((()=>{a(Cp,"_nonIterableSpread")}));function Sp(e){return vp(e)||bp(e)||Dp(e)||Cp()}var Rp=F((()=>{wp(),yp(),xp(),Ep(),a(Sp,"_toConsumableArray")}));function br(e){return(br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var bs=F((()=>{a(br,"_typeof")}));function Ap(e,t){if("object"!=br(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Fp=F((()=>{bs(),a(Ap,"toPrimitive")}));function kp(e){var t=Ap(e,"string");return"symbol"==br(t)?t:t+""}var Tp=F((()=>{bs(),Fp(),a(kp,"toPropertyKey")}));function ii(e,t,r){return(t=kp(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ys=F((()=>{Tp(),a(ii,"_defineProperty")}));function Lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function un(e){for(var t=1;t=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}function m6(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return Ds[t]||(Ds[t]=h6(e)),Ds[t]}function g6(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return m6(e.filter((function(i){return"token"!==i}))).reduce((function(i,l){return un(un({},i),r[l])}),t)}function Ip(e){return e.join(" ")}function v6(e,t){var r=0;return function(n){return r+=1,n.map((function(o,i){return yr({node:o,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})}))}}function yr(e){var t=e.node,r=e.stylesheet,n=e.style,o=void 0===n?{}:n,i=e.useInlineStyles,l=e.key,u=t.properties,c=t.type,p=t.tagName,d=t.value;if("text"===c)return d;if(p){var f,h=v6(r,i);if(i){var v=Object.keys(r).reduce((function(y,w){return w.split(".").forEach((function(D){y.includes(D)||y.push(D)})),y}),[]),b=u.className&&u.className.includes("token")?["token"]:[],m=u.className&&b.concat(u.className.filter((function(y){return!v.includes(y)})));f=un(un({},u),{},{className:Ip(m)||void 0,style:g6(u.className,Object.assign({},u.style,o),r)})}else f=un(un({},u),{},{className:Ip(u.className)});var g=h(t.children);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,H({key:l},f),g)}}var Ds,Bp,xs=F((()=>{qe(),ys(),a(Lp,"ownKeys"),a(un,"_objectSpread"),a(h6,"powerSetPermutations"),Ds={},a(m6,"getClassNameCombinations"),a(g6,"createStyleObject"),a(Ip,"createClassNameString"),a(v6,"createChildren"),a(yr,"createElement")})),Mp=F((()=>{Bp=a((function(e,t){return-1!==e.listLanguages().indexOf(t)}),"default")}));function _p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=0;n2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:n,wrapLongLines:c})}function m(C,E){if(n&&E&&o){var S=Hp(u,E,l);C.unshift(Pp(E,S))}return C}function g(C,E){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||S.length>0?b(C,E,S):m(C,E)}a(b,"createWrappedLine"),a(m,"createUnwrappedLine"),a(g,"createLine");for(var y=a((function(){var E=d[v],S=E.children[0].value;if(y6(S)){var A=S.split("\n");A.forEach((function(k,B){var $=n&&h.length+i,M={type:"text",value:"".concat(k,"\n")};if(0===B){var T=g(d.slice(f+1,v).concat(li({children:[M],className:E.properties.className})),$);h.push(T)}else if(B===A.length-1){var L=d[v+1]&&d[v+1].children&&d[v+1].children[0],P={type:"text",value:"".concat(k)};if(L){var U=li({children:[P],className:E.properties.className});d.splice(v+1,0,U)}else{var G=g([P],$,E.properties.className);h.push(G)}}else{var K=g([M],$,E.properties.className);h.push(K)}})),f=v}v++}),"_loop");v{gp(),Rp(),ys(),xs(),Mp(),w6=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"],a(_p,"ownKeys"),a(mt,"_objectSpread"),b6=/\n/g,a(y6,"getNewLines"),a(D6,"getAllLineNumbers"),a(x6,"AllLineNumbers"),a(C6,"getEmWidthOfNumber"),a(Pp,"getInlineLineNumber"),a(Hp,"assembleLineNumberStyles"),a(li,"createLineElement"),a($p,"flattenCodeTree"),a(E6,"processLines"),a(S6,"defaultRenderer"),a(zp,"isHighlightJs"),a(R6,"getCodeTree"),a(Cs,"default")})),jp=_(((DH,Np)=>{Np.exports=F6;var A6=Object.prototype.hasOwnProperty;function F6(){for(var e={},t=0;t{qp.exports=Vp;var Es=Vp.prototype;function Vp(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}Es.space=null,Es.normal={},Es.property={},a(Vp,"Schema")})),Gp=_(((SH,Up)=>{var Wp=jp(),k6=Ss();function T6(e){for(var i,l,t=e.length,r=[],n=[],o=-1;++o{function L6(e){return e.toLowerCase()}Xp.exports=L6,a(L6,"normalize")})),Rs=_(((kH,Kp)=>{Kp.exports=Yp;var Ue=Yp.prototype;function Yp(e,t){this.property=e,this.attribute=t}Ue.space=null,Ue.attribute=null,Ue.property=null,Ue.boolean=!1,Ue.booleanish=!1,Ue.overloadedBoolean=!1,Ue.number=!1,Ue.commaSeparated=!1,Ue.spaceSeparated=!1,Ue.commaOrSpaceSeparated=!1,Ue.mustUseProperty=!1,Ue.defined=!1,a(Yp,"Info")})),ui=_((Kt=>{var I6=0;function xr(){return Math.pow(2,++I6)}Kt.boolean=xr(),Kt.booleanish=xr(),Kt.overloadedBoolean=xr(),Kt.number=xr(),Kt.spaceSeparated=xr(),Kt.commaSeparated=xr(),Kt.commaOrSpaceSeparated=xr(),a(xr,"increment")})),Fs=_(((BH,td)=>{var Qp=Rs(),Zp=ui();td.exports=As,As.prototype=new Qp,As.prototype.defined=!0;var ed=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],B6=ed.length;function As(e,t,r,n){var i,o=-1;for(Jp(this,"space",n),Qp.call(this,e,t);++o{var rd=si(),M6=Ss(),_6=Fs();function P6(e){var c,p,t=e.space,r=e.mustUseProperty||[],n=e.attributes||{},o=e.properties,i=e.transform,l={},u={};for(c in o)p=new _6(c,i(n,c),o[c],t),-1!==r.indexOf(c)&&(p.mustUseProperty=!0),l[c]=p,u[rd(c)]=c,u[rd(p.attribute)]=c;return new M6(l,u,t)}nd.exports=P6,a(P6,"create")})),ad=_(((HH,od)=>{var H6=cn();function $6(e,t){return"xlink:"+t.slice(5).toLowerCase()}od.exports=H6({space:"xlink",transform:$6,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),a($6,"xlinkTransform")})),ld=_(((zH,id)=>{var z6=cn();function O6(e,t){return"xml:"+t.slice(3).toLowerCase()}id.exports=z6({space:"xml",transform:O6,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}}),a(O6,"xmlTransform")})),ud=_(((NH,sd)=>{function N6(e,t){return t in e?e[t]:t}sd.exports=N6,a(N6,"caseSensitiveTransform")})),ks=_(((VH,cd)=>{var j6=ud();function V6(e,t){return j6(e,t.toLowerCase())}cd.exports=V6,a(V6,"caseInsensitiveTransform")})),dd=_(((WH,pd)=>{var q6=cn(),W6=ks();pd.exports=q6({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:W6,properties:{xmlns:null,xmlnsXLink:null}})})),hd=_(((UH,fd)=>{var Ts=ui(),U6=cn(),Me=Ts.booleanish,Ge=Ts.number,Cr=Ts.spaceSeparated;function G6(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()}fd.exports=U6({transform:G6,properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:Ge,ariaColIndex:Ge,ariaColSpan:Ge,ariaControls:Cr,ariaCurrent:null,ariaDescribedBy:Cr,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:Cr,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:Cr,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cr,ariaLevel:Ge,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:Cr,ariaPlaceholder:null,ariaPosInSet:Ge,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:Cr,ariaRowCount:Ge,ariaRowIndex:Ge,ariaRowSpan:Ge,ariaSelected:Me,ariaSetSize:Ge,ariaSort:null,ariaValueMax:Ge,ariaValueMin:Ge,ariaValueNow:Ge,ariaValueText:null,role:null}}),a(G6,"ariaTransform")})),gd=_(((XH,md)=>{var pn=ui(),X6=cn(),Y6=ks(),V=pn.boolean,K6=pn.overloadedBoolean,ta=pn.booleanish,Z=pn.number,Re=pn.spaceSeparated,ci=pn.commaSeparated;md.exports=X6({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Y6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ci,acceptCharset:Re,accessKey:Re,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:Re,autoFocus:V,autoPlay:V,capture:V,charSet:null,checked:V,cite:null,className:Re,cols:Z,colSpan:null,content:null,contentEditable:ta,controls:V,controlsList:Re,coords:Z|ci,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:K6,draggable:ta,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:Re,height:Z,hidden:V,high:Z,href:null,hrefLang:null,htmlFor:Re,httpEquiv:Re,id:null,imageSizes:null,imageSrcSet:ci,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:Re,itemRef:Re,itemScope:V,itemType:Re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:V,optimum:Z,pattern:null,ping:Re,placeholder:null,playsInline:V,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:Re,required:V,reversed:V,rows:Z,rowSpan:Z,sandbox:Re,scope:null,scoped:V,seamless:V,selected:V,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:ta,src:null,srcDoc:null,srcLang:null,srcSet:ci,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:ta,width:Z,wrap:null,align:null,aLink:null,archive:Re,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:ta,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:V,disableRemotePlayback:V,prefix:null,property:null,results:Z,security:null,unselectable:null}})})),wd=_(((YH,vd)=>{var Z6=Gp(),J6=ad(),Q6=ld(),e7=dd(),t7=hd(),r7=gd();vd.exports=Z6([Q6,J6,e7,t7,r7])})),Dd=_(((KH,yd)=>{var n7=si(),o7=Fs(),a7=Rs(),Ls="data";yd.exports=s7;var i7=/^data[-\w.:]+$/i,bd=/-[a-z]/g,l7=/[A-Z]/g;function s7(e,t){var r=n7(t),n=t,o=a7;return r in e.normal?e.property[e.normal[r]]:(r.length>4&&r.slice(0,4)===Ls&&i7.test(t)&&("-"===t.charAt(4)?n=u7(t):t=c7(t),o=o7),new o(n,t))}function u7(e){var t=e.slice(5).replace(bd,d7);return Ls+t.charAt(0).toUpperCase()+t.slice(1)}function c7(e){var t=e.slice(4);return bd.test(t)?e:("-"!==(t=t.replace(l7,p7)).charAt(0)&&(t="-"+t),Ls+t)}function p7(e){return"-"+e.toLowerCase()}function d7(e){return e.charAt(1).toUpperCase()}a(s7,"find"),a(u7,"datasetToProperty"),a(c7,"datasetToAttribute"),a(p7,"kebab"),a(d7,"camelcase")})),Ed=_(((JH,Cd)=>{Cd.exports=f7;var xd=/[#.]/g;function f7(e,t){for(var l,u,c,r=e||"",n=t||"div",o={},i=0;i{Is.parse=g7,Is.stringify=v7;var Sd="",h7=" ",m7=/[ \t\n\r\f]+/g;function g7(e){var t=String(e||Sd).trim();return t===Sd?[]:t.split(m7)}function v7(e){return e.join(h7).trim()}a(g7,"parse"),a(v7,"stringify")})),Fd=_((Ms=>{Ms.parse=w7,Ms.stringify=b7;var Bs=",",Ad=" ",ra="";function w7(e){for(var l,t=[],r=String(e||ra),n=r.indexOf(Bs),o=0,i=!1;!i;)-1===n&&(n=r.length,i=!0),((l=r.slice(o,n).trim())||!i)&&t.push(l),o=n+1,n=r.indexOf(Bs,o);return t}function b7(e,t){var r=t||{},n=!1===r.padLeft?ra:Ad,o=r.padRight?Ad:ra;return e[e.length-1]===ra&&(e=e.concat(ra)),e.join(o+Bs+n).trim()}a(w7,"parse"),a(b7,"stringify")})),_d=_(((o$,Md)=>{var y7=Dd(),kd=si(),D7=Ed(),Td=Rd().parse,Ld=Fd().parse;Md.exports=C7;var x7={}.hasOwnProperty;function C7(e,t,r){var n=r?F7(r):null;return function o(l,u){var h,c=D7(l,t),p=Array.prototype.slice.call(arguments,2),d=c.tagName.toLowerCase();if(c.tagName=n&&x7.call(n,d)?n[d]:d,u&&E7(u,c)&&(p.unshift(u),u=null),u)for(h in u)i(c.properties,h,u[h]);return Bd(c.children,p),"template"===c.tagName&&(c.content={type:"root",children:c.children},c.children=[]),c};function i(l,u,c){var p,d,h;null==c||c!=c||(d=(p=y7(e,u)).property,"string"==typeof(h=c)&&(p.spaceSeparated?h=Td(h):p.commaSeparated?h=Ld(h):p.commaOrSpaceSeparated&&(h=Td(Ld(h).join(" ")))),"style"===d&&"string"!=typeof c&&(h=A7(h)),"className"===d&&l.className&&(h=l.className.concat(h)),l[d]=R7(p,d,h))}}function E7(e,t){return"string"==typeof e||"length"in e||S7(t.tagName,e)}function S7(e,t){var r=t.type;return!("input"===e||!r||"string"!=typeof r)&&("object"==typeof t.children&&"length"in t.children||(r=r.toLowerCase(),"button"===e?"menu"!==r&&"submit"!==r&&"reset"!==r&&"button"!==r:"value"in t))}function Bd(e,t){var r,n;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(r=-1,n=t.length;++r{var k7=wd(),Pd=_d()(k7,"div");Pd.displayName="html",Hd.exports=Pd})),Od=_(((l$,zd)=>{zd.exports=$d()})),Nd=_(((s$,L7)=>{L7.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}})),jd=_(((u$,I7)=>{I7.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}})),_s=_(((c$,Vd)=>{function B7(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}Vd.exports=B7,a(B7,"decimal")})),Wd=_(((d$,qd)=>{function M7(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}qd.exports=M7,a(M7,"hexadecimal")})),Gd=_(((h$,Ud)=>{function _7(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}Ud.exports=_7,a(_7,"alphabetical")})),Yd=_(((g$,Xd)=>{var P7=Gd(),H7=_s();function $7(e){return P7(e)||H7(e)}Xd.exports=$7,a($7,"alphanumerical")})),Zd=_(((w$,Kd)=>{var pi;function O7(e){var r,t="&"+e+";";return(pi=pi||document.createElement("i")).innerHTML=t,(59!==(r=pi.textContent).charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}Kd.exports=O7,a(O7,"decodeEntity")})),df=_(((y$,pf)=>{var Jd=Nd(),Qd=jd(),N7=_s(),j7=Wd(),nf=Yd(),V7=Zd();pf.exports=rw;var q7={}.hasOwnProperty,dn=String.fromCharCode,W7=Function.prototype,ef={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},U7=9,tf=10,G7=12,X7=32,rf=38,Y7=59,K7=60,Z7=61,J7=35,Q7=88,ew=120,tw=65533,fn="named",Hs="hexadecimal",$s="decimal",zs={};zs[Hs]=16,zs[$s]=10;var di={};di[fn]=nf,di[$s]=N7,di[Hs]=j7;var of=1,af=2,lf=3,sf=4,uf=5,Ps=6,cf=7,Zt={};function rw(e,t){var n,o,r={};for(o in t||(t={}),ef)n=t[o],r[o]=n??ef[o];return(r.position.indent||r.position.start)&&(r.indent=r.position.indent||[],r.position=r.position.start),nw(e,r)}function nw(e,t){var D,x,C,E,S,R,A,k,B,$,M,W,T,L,P,U,N,G,z,r=t.additional,n=t.nonTerminated,o=t.text,i=t.reference,l=t.warning,u=t.textContext,c=t.referenceContext,p=t.warningContext,d=t.position,h=t.indent||[],f=e.length,v=0,b=-1,m=d.column||1,g=d.line||1,y="",w=[];for("string"==typeof r&&(r=r.charCodeAt(0)),U=K(),k=l?function Te(de,Ce){var Le=K();Le.column+=Ce,Le.offset+=Ce,l.call(p,Zt[de],Le,de)}:W7,v--,f++;++v65535&&($+=dn((R-=65536)>>>10|55296),R=56320|1023&R),R=$+dn(R))):L!==fn&&k(sf,G)),R?(ve(),U=K(),v=z-1,m+=z-T+1,w.push(R),(N=K()).offset++,i&&i.call(c,R,{start:U,end:N},e.slice(T-1,z)),U=N):(E=e.slice(T-1,z),y+=E,m+=E.length,v=z-1)}else 10===S&&(g++,b++,m=0),S==S?(y+=dn(S),m++):ve();return w.join("");function K(){return{line:g,column:m,offset:v+(d.offset||0)}}function ve(){y&&(w.push(y),o&&o.call(u,y,{start:U,end:K()}),y="")}}function ow(e){return e>=55296&&e<=57343||e>1114111}function aw(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}Zt[of]="Named character references must be terminated by a semicolon",Zt[af]="Numeric character references must be terminated by a semicolon",Zt[lf]="Named character references cannot be empty",Zt[sf]="Numeric character references cannot be empty",Zt[uf]="Named character references must be known",Zt[Ps]="Numeric character references cannot be disallowed",Zt[cf]="Numeric character references cannot be outside the permissible Unicode range",a(rw,"parseEntities"),a(nw,"parse"),a(ow,"prohibited"),a(aw,"disallowed")})),hf=_(((x$,fi)=>{var ff=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,n={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:a((function m(g){return g instanceof i?new i(g.type,m(g.content),g.alias):Array.isArray(g)?g.map(m):g.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(w){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(m){var g=document.getElementsByTagName("script");for(var y in g)if(g[y].src==m)return g[y]}return null}}),"currentScript"),isActive:a((function(m,g,y){for(var w="no-"+g;m;){var D=m.classList;if(D.contains(g))return!0;if(D.contains(w))return!1;m=m.parentElement}return!!y}),"isActive")},languages:{plain:n,plaintext:n,text:n,txt:n,extend:a((function(m,g){var y=o.util.clone(o.languages[m]);for(var w in g)y[w]=g[w];return y}),"extend"),insertBefore:a((function(m,g,y,w){var D=(w=w||o.languages)[m],x={};for(var C in D)if(D.hasOwnProperty(C)){if(C==g)for(var E in y)y.hasOwnProperty(E)&&(x[E]=y[E]);y.hasOwnProperty(C)||(x[C]=D[C])}var S=w[m];return w[m]=x,o.languages.DFS(o.languages,(function(R,A){A===S&&R!=m&&(this[R]=x)})),x}),"insertBefore"),DFS:a((function m(g,y,w,D){D=D||{};var x=o.util.objId;for(var C in g)if(g.hasOwnProperty(C)){y.call(g,C,g[C],w||C);var E=g[C],S=o.util.type(E);"Object"!==S||D[x(E)]?"Array"===S&&!D[x(E)]&&(D[x(E)]=!0,m(E,y,C,D)):(D[x(E)]=!0,m(E,y,null,D))}}),"DFS")},plugins:{},highlightAll:a((function(m,g){o.highlightAllUnder(document,m,g)}),"highlightAll"),highlightAllUnder:a((function(m,g,y){var w={callback:y,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),o.hooks.run("before-all-elements-highlight",w);for(var x,D=0;x=w.elements[D++];)o.highlightElement(x,!0===g,w.callback)}),"highlightAllUnder"),highlightElement:a((function(m,g,y){var w=o.util.getLanguage(m),D=o.languages[w];o.util.setLanguage(m,w);var x=m.parentElement;x&&"pre"===x.nodeName.toLowerCase()&&o.util.setLanguage(x,w);var E={element:m,language:w,grammar:D,code:m.textContent};function S(A){E.highlightedCode=A,o.hooks.run("before-insert",E),E.element.innerHTML=E.highlightedCode,o.hooks.run("after-highlight",E),o.hooks.run("complete",E),y&&y.call(E.element)}if(a(S,"insertHighlightedCode"),o.hooks.run("before-sanity-check",E),(x=E.element.parentElement)&&"pre"===x.nodeName.toLowerCase()&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!E.code)return o.hooks.run("complete",E),void(y&&y.call(E.element));if(o.hooks.run("before-highlight",E),E.grammar)if(g&&e.Worker){var R=new Worker(o.filename);R.onmessage=function(A){S(A.data)},R.postMessage(JSON.stringify({language:E.language,code:E.code,immediateClose:!0}))}else S(o.highlight(E.code,E.grammar,E.language));else S(o.util.encode(E.code))}),"highlightElement"),highlight:a((function(m,g,y){var w={code:m,grammar:g,language:y};if(o.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=o.tokenize(w.code,w.grammar),o.hooks.run("after-tokenize",w),i.stringify(o.util.encode(w.tokens),w.language)}),"highlight"),tokenize:a((function(m,g){var y=g.rest;if(y){for(var w in y)g[w]=y[w];delete g.rest}var D=new c;return p(D,D.head,m),u(m,D,g,D.head,0),h(D)}),"tokenize"),hooks:{all:{},add:a((function(m,g){var y=o.hooks.all;y[m]=y[m]||[],y[m].push(g)}),"add"),run:a((function(m,g){var y=o.hooks.all[m];if(y&&y.length)for(var D,w=0;D=y[w++];)D(g)}),"run")},Token:i};function i(m,g,y,w){this.type=m,this.content=g,this.alias=y,this.length=0|(w||"").length}function l(m,g,y,w){m.lastIndex=g;var D=m.exec(y);if(D&&w&&D[1]){var x=D[1].length;D.index+=x,D[0]=D[0].slice(x)}return D}function u(m,g,y,w,D,x){for(var C in y)if(y.hasOwnProperty(C)&&y[C]){var E=y[C];E=Array.isArray(E)?E:[E];for(var S=0;S=x.reach);L+=T.value.length,T=T.next){var P=T.value;if(g.length>m.length)return;if(!(P instanceof i)){var N,U=1;if(B){if(!(N=l(W,L,m,k))||N.index>=m.length)break;var Te=N.index,G=N.index+N[0].length,z=L;for(z+=T.value.length;Te>=z;)z+=(T=T.next).value.length;if(L=z-=T.value.length,T.value instanceof i)continue;for(var K=T;K!==g.tail&&(zx.reach&&(x.reach=Le);var Ie=T.prev;if(de&&(Ie=p(g,Ie,de),L+=de.length),d(g,Ie,U),T=p(g,Ie,new i(C,A?o.tokenize(ve,A):ve,$,ve)),Ce&&p(g,T,Ce),U>1){var Yo={cause:C+","+S,reach:Le};u(m,g,y,T.prev,L,Yo),x&&Yo.reach>x.reach&&(x.reach=Yo.reach)}}}}}}function c(){var m={value:null,prev:null,next:null},g={value:null,prev:m,next:null};m.next=g,this.head=m,this.tail=g,this.length=0}function p(m,g,y){var w=g.next,D={value:y,prev:g,next:w};return g.next=D,w.prev=D,m.length++,D}function d(m,g,y){for(var w=g.next,D=0;D"+D.content+""}),"stringify"),a(l,"matchPattern"),a(u,"matchGrammar"),a(c,"LinkedList"),a(p,"addAfter"),a(d,"removeRange"),a(h,"toArray"),!e.document)return e.addEventListener&&(o.disableWorkerMessageHandler||e.addEventListener("message",(function(m){var g=JSON.parse(m.data),y=g.language,w=g.code,D=g.immediateClose;e.postMessage(o.highlight(w,o.languages[y],y)),D&&e.close()}),!1)),o;var f=o.util.currentScript();function v(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),a(v,"highlightAutomaticallyCallback"),!o.manual){var b=document.readyState;"loading"===b||"interactive"===b&&f&&f.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return o}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});typeof fi<"u"&&fi.exports&&(fi.exports=ff),typeof __webpack_require__.g<"u"&&(__webpack_require__.g.Prism=ff)})),Ns=_(((E$,mf)=>{function Os(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:a((function(r,n){var o={};o["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},o.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var l={};l[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return r})),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",l)}),"addInlined")}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:a((function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}),"value")}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}mf.exports=Os,Os.displayName="markup",Os.aliases=["html","mathml","svg","xml","ssml","atom","rss"],a(Os,"markup")})),Vs=_(((R$,gf)=>{function js(e){!function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}gf.exports=js,js.displayName="css",js.aliases=[],a(js,"css")})),wf=_(((F$,vf)=>{function qs(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}vf.exports=qs,qs.displayName="clike",qs.aliases=[],a(qs,"clike")})),yf=_(((T$,bf)=>{function Ws(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}bf.exports=Ws,Ws.displayName="javascript",Ws.aliases=["js"],a(Ws,"javascript")})),Ef=_(((I$,Cf)=>{var na="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof __webpack_require__.g?__webpack_require__.g:{},lw=xw();na.Prism={manual:!0,disableWorkerMessageHandler:!0};var sw=Od(),uw=df(),Df=hf(),cw=Ns(),pw=Vs(),dw=wf(),fw=yf();lw();var Us={}.hasOwnProperty;function xf(){}a(xf,"Refractor"),xf.prototype=Df;var ae=new xf;function oa(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===ae.languages[e.displayName]&&e(ae)}function hw(e,t){var o,i,l,u,r=ae.languages,n=e;for(o in t&&((n={})[e]=t),n)for(l=(i="string"==typeof(i=n[o])?[i]:i).length,u=-1;++u{Op(),hi=we(Ef()),(Gs=Cs(hi.default,{})).registerLanguage=function(e,t){return hi.default.register(t)},Gs.alias=function(e,t){return hi.default.alias(e,t)},mi=Gs})),Rf=F((()=>{xs()})),Ff=_((($$,Af)=>{function Xs(e){!function(t){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:n,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=o.variable[1].inside,u=0;u{kf=we(Ff()),Tf=kf.default})),Mf=F((()=>{If=we(Vs()),Bf=If.default})),Pf=_(((j$,_f)=>{function Ys(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",a((function(r){if("graphql"===r.language){var n=r.tokens.filter((function(g){return"string"!=typeof g&&"comment"!==g.type&&"scalar"!==g.type})),o=0;for(a(i,"getToken"),a(l,"isTokenType"),a(u,"findClosingBracket"),a(c,"addAlias");o0)){var v=u(/^\{$/,/^\}$/);if(-1===v)continue;for(var b=o;b=0&&c(m,"variable-input")}}}}}function i(g){return n[o+g]}function l(g,y){y=y||0;for(var w=0;w{Hf=we(Pf()),$f=Hf.default})),Nf=_(((W$,Of)=>{function Ks(e){!function(t){function r(c,p){return RegExp(c.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),p)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),a(r,"withId"),t.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],o=0;o{jf=we(Nf()),Vf=jf.default})),Uf=_(((X$,Wf)=>{function Zs(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}Wf.exports=Zs,Zs.displayName="json",Zs.aliases=["webmanifest"],a(Zs,"json")})),Yf=F((()=>{Gf=we(Uf()),Xf=Gf.default})),Qs=_(((Z$,Kf)=>{function Js(e){!function(t){var r=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function l(p,d){return p=p.replace(//g,(function(){return n})).replace(//g,(function(){return o})).replace(//g,(function(){return i})),RegExp(p,d)}a(l,"re"),i=l(i).source,t.languages.jsx=t.languages.extend("markup",r),t.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=r.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:l(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var u=a((function(p){return p?"string"==typeof p?p:"string"==typeof p.content?p.content:p.content.map(u).join(""):""}),"stringifyToken"),c=a((function(p){for(var d=[],h=0;h0&&d[d.length-1].tagName===u(f.content[0].content[1])&&d.pop():"/>"===f.content[f.content.length-1].content||d.push({tagName:u(f.content[0].content[1]),openedBraces:0}):d.length>0&&"punctuation"===f.type&&"{"===f.content?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&"punctuation"===f.type&&"}"===f.content?d[d.length-1].openedBraces--:v=!0),(v||"string"==typeof f)&&d.length>0&&0===d[d.length-1].openedBraces){var b=u(f);h0&&("string"==typeof p[h-1]||"plain-text"===p[h-1].type)&&(b=u(p[h-1])+b,p.splice(h-1,1),h--),p[h]=new t.Token("plain-text",b,null,b)}f.content&&"string"!=typeof f.content&&c(f.content)}}),"walkTokens");t.hooks.add("after-tokenize",(function(p){"jsx"!==p.language&&"tsx"!==p.language||c(p.tokens)}))}(e)}Kf.exports=Js,Js.displayName="jsx",Js.aliases=[],a(Js,"jsx")})),Qf=F((()=>{Zf=we(Qs()),Jf=Zf.default})),th=_(((ez,eh)=>{function eu(e){!function(t){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(h){return h=h.replace(//g,(function(){return r})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+h+")")}a(n,"createInline");var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return o})),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+l+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+l+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(h){["url","bold","italic","strike","code-snippet"].forEach((function(f){h!==f&&(t.languages.markdown[h].inside.content.inside[f]=t.languages.markdown[f])}))})),t.hooks.add("after-tokenize",(function(h){function f(v){if(v&&"string"!=typeof v)for(var b=0,m=v.length;b",quot:'"'},p=String.fromCodePoint||String.fromCharCode;function d(h){var f=h.replace(u,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(v,b){var m;return"#"===(b=b.toLowerCase())[0]?(m="x"===b[1]?parseInt(b.slice(2),16):Number(b.slice(1)),p(m)):c[b]||v}))}a(d,"textContent"),t.languages.md=t.languages.markdown}(e)}eh.exports=eu,eu.displayName="markdown",eu.aliases=["md"],a(eu,"markdown")})),oh=F((()=>{rh=we(th()),nh=rh.default})),lh=F((()=>{ah=we(Ns()),ih=ah.default})),ru=_(((oz,sh)=>{function tu(e){!function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var r=t.languages.extend("typescript",{});delete r["class-name"],t.languages.typescript["class-name"].inside=r,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),t.languages.ts=t.languages.typescript}(e)}sh.exports=tu,tu.displayName="typescript",tu.aliases=["ts"],a(tu,"typescript")})),ch=_(((iz,uh)=>{var Cw=Qs(),Ew=ru();function nu(e){e.register(Cw),e.register(Ew),function(t){var r=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",r),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var n=t.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(e)}uh.exports=nu,nu.displayName="tsx",nu.aliases=[],a(nu,"tsx")})),fh=F((()=>{ph=we(ch()),dh=ph.default})),gh=F((()=>{hh=we(ru()),mh=hh.default})),wh=_(((cz,vh)=>{function ou(e){!function(t){var r=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+n.source+"(?:[ \t]+"+r.source+")?|"+r.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(c,p){p=(p||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return o})).replace(/<>/g,(function(){return c}));return RegExp(d,p)}a(u,"createValuePattern"),t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return o}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return o})).replace(/<>/g,(function(){return"(?:"+i+"|"+l+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(l),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(e)}vh.exports=ou,ou.displayName="yaml",ou.aliases=["yml"],a(ou,"yaml")})),Dh=F((()=>{bh=we(wh()),yh=bh.default})),iu=F((()=>{Sw=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1}))),(Eh=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.button((({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}})),(({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5}))).displayName="ActionButton",au=a((({actionItems:e,...t})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Sw,{...t},e.map((({title:r,className:n,onClick:o,disabled:i},l)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Eh,{key:l,className:n,onClick:o,disabled:!!i},r))))),"ActionBar")}));function Aw(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Sh(...e){return t=>e.forEach((r=>Aw(r,t)))}var Rh=F((()=>{a(Aw,"setRef"),a(Sh,"composeRefs")}));function Tw(e){return react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(e)&&e.type===kw}function Lw(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...u)=>{i(...u),o(...u)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Iw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var aa,su,kw,hn,uu=F((()=>{Rh(),(aa=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{children:r,...n}=e,o=react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(r),i=o.find(Tw);if(i){let l=i.props.children,u=o.map((c=>c===i?react__WEBPACK_IMPORTED_MODULE_0__.Children.count(l)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(l)?l.props.children:null:c));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(su,{...n,ref:t,children:react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(l)?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(l,void 0,u):null})}return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(su,{...n,ref:t,children:r})}))).displayName="Slot",(su=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{children:r,...n}=e;if(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(r)){let o=Iw(r);return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(r,{...Lw(n,r.props),ref:t?Sh(t,o):o})}return react__WEBPACK_IMPORTED_MODULE_0__.Children.count(r)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):null}))).displayName="SlotClone",kw=a((({children:e})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment,{children:e})),"Slottable"),a(Tw,"isSlottable"),a(Lw,"mergeProps"),a(Iw,"getElementRef")})),Fh=F((()=>{uu(),hn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{let r=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((n,o)=>{let{asChild:i,...l}=n,u=i?aa:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(u,{...l,ref:o})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{})}));function Pw(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Hw(...e){return t=>e.forEach((r=>Pw(r,t)))}function Tt(...e){return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(Hw(...e),e)}var ia,cu=F((()=>{a(Pw,"setRef"),a(Hw,"composeRefs"),a(Tt,"useComposedRefs")})),pu=F((()=>{ia=globalThis?.document?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:()=>{}}));function $w(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.useReducer(((r,n)=>t[r][n]??r),e)}function zw(e){let[t,r]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef({}),o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef("none"),l=e?"mounted":"unmounted",[u,c]=$w(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let p=gi(n.current);i.current="mounted"===u?p:"none"}),[u]),ia((()=>{let p=n.current,d=o.current;if(d!==e){let f=i.current,v=gi(p);c(e?"MOUNT":"none"===v||"none"===p?.display?"UNMOUNT":d&&f!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,c]),ia((()=>{if(t){let p=a((h=>{let v=gi(n.current).includes(h.animationName);h.target===t&&v&&react_dom__WEBPACK_IMPORTED_MODULE_3__.flushSync((()=>c("ANIMATION_END")))}),"handleAnimationEnd"),d=a((h=>{h.target===t&&(i.current=gi(n.current))}),"handleAnimationStart");return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:react__WEBPACK_IMPORTED_MODULE_0__.useCallback((p=>{p&&(n.current=getComputedStyle(p)),r(p)}),[])}}function gi(e){return e?.animationName||"none"}function Ow(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var mn,Bh=F((()=>{cu(),pu(),a($w,"useStateMachine"),(mn=a((e=>{let{present:t,children:r}=e,n=zw(t),o="function"==typeof r?r({present:n.isPresent}):react__WEBPACK_IMPORTED_MODULE_0__.Children.only(r),i=Tt(n.ref,Ow(o));return"function"==typeof r||n.isPresent?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(o,{ref:i}):null}),"Presence")).displayName="Presence",a(zw,"usePresence"),a(gi,"getAnimationName"),a(Ow,"getElementRef")}));function Mh(e,t=[]){let r=[];function n(i,l){let u=react__WEBPACK_IMPORTED_MODULE_0__.createContext(l),c=r.length;function p(h){let{scope:f,children:v,...b}=h,m=f?.[e][c]||u,g=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>b),Object.values(b));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(m.Provider,{value:g,children:v})}function d(h,f){let v=f?.[e][c]||u,b=react__WEBPACK_IMPORTED_MODULE_0__.useContext(v);if(b)return b;if(void 0!==l)return l;throw new Error(`\`${h}\` must be used within \`${i}\``)}return r=[...r,l],a(p,"Provider"),a(d,"useContext2"),p.displayName=i+"Provider",[p,d]}a(n,"createContext3");let o=a((()=>{let i=r.map((l=>react__WEBPACK_IMPORTED_MODULE_0__.createContext(l)));return a((function(u){let c=u?.[e]||i;return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({[`__scope${e}`]:{...u,[e]:c}})),[u,c])}),"useScope")}),"createScope");return o.scopeName=e,[n,jw(o,...t)]}function jw(...e){let t=e[0];if(1===e.length)return t;let r=a((()=>{let n=e.map((o=>({useScope:o(),scopeName:o.scopeName})));return a((function(i){let l=n.reduce(((u,{useScope:c,scopeName:p})=>({...u,...c(i)[`__scope${p}`]})),{});return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({[`__scope${t.scopeName}`]:l})),[l])}),"useComposedScopes")}),"createScope");return r.scopeName=t.scopeName,r}var _h=F((()=>{a(Mh,"createContextScope"),a(jw,"composeContextScopes")}));function Jt(e){let t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current=e})),react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>(...r)=>t.current?.(...r)),[])}var Ph=F((()=>{a(Jt,"useCallbackRef")}));function Hh(e){let t=react__WEBPACK_IMPORTED_MODULE_0__.useContext(Vw);return e||t||"ltr"}var Vw,$h=F((()=>{Vw=react__WEBPACK_IMPORTED_MODULE_0__.createContext(void 0),a(Hh,"useDirection")}));function zh(e,[t,r]){return Math.min(r,Math.max(t,e))}var Oh=F((()=>{a(zh,"clamp")}));function Qt(e,t,{checkForDefaultPrevented:r=!0}={}){return a((function(o){if(e?.(o),!1===r||!o.defaultPrevented)return t?.(o)}),"handleEvent")}var Nh=F((()=>{a(Qt,"composeEventHandlers")}));function qw(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.useReducer(((r,n)=>t[r][n]??r),e)}function bi(e){return e?parseInt(e,10):0}function e5(e,t){let r=e/t;return isNaN(r)?0:r}function yi(e){let t=e5(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function tb(e,t,r,n="ltr"){let o=yi(r),l=t||o/2,u=o-l,c=r.scrollbar.paddingStart+l,p=r.scrollbar.size-r.scrollbar.paddingEnd-u,d=r.content-r.viewport;return t5([c,p],"ltr"===n?[0,d]:[-1*d,0])(e)}function jh(e,t,r="ltr"){let n=yi(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,u=i-n,p=zh(e,"ltr"===r?[0,l]:[-1*l,0]);return t5([0,l],[0,u])(p)}function t5(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function r5(e,t){return e>0&&e()=>window.clearTimeout(n.current)),[]),react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)}),[r,t])}function vn(e,t){let r=Jt(t);ia((()=>{let n=0;if(e){let o=new ResizeObserver((()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)}));return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}}),[e,r])}function nb(e,t){let{asChild:r,children:n}=e;if(!r)return"function"==typeof t?t(n):t;let o=react__WEBPACK_IMPORTED_MODULE_0__.Children.only(n);return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(o,{children:"function"==typeof t?t(o.props.children):t})}var du,qh,nO,Gw,Xe,Wh,Uh,Gh,gt,Xh,Xw,Yw,Yh,fu,Kw,Zw,Jw,Kh,Zh,wi,Jh,Qw,hu,Qh,eb,rb,n5,o5,a5,i5,l5,ib,lb,u5,c5,wn,s5=F((()=>{Fh(),Bh(),_h(),cu(),Ph(),$h(),pu(),Oh(),Nh(),a(qw,"useStateMachine"),du="ScrollArea",[qh,nO]=Mh(du),[Gw,Xe]=qh(du),(Wh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...l}=e,[u,c]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[p,d]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[h,f]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[v,b]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[m,g]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[y,w]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[D,x]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[C,E]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),[S,R]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),A=Tt(t,(B=>c(B))),k=Hh(o);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Gw,{scope:r,type:n,dir:k,scrollHideDelay:i,scrollArea:u,viewport:p,onViewportChange:d,content:h,onContentChange:f,scrollbarX:v,onScrollbarXChange:b,scrollbarXEnabled:C,onScrollbarXEnabledChange:E,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:S,onScrollbarYEnabledChange:R,onCornerWidthChange:w,onCornerHeightChange:x,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hn.div,{dir:k,...l,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":D+"px",...e.style}})})}))).displayName=du,Uh="ScrollAreaViewport",(Gh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:i,...l}=e,u=Xe(Uh,r),p=Tt(t,react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),u.onViewportChange);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n[data-radix-scroll-area-viewport] {\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n[data-radix-scroll-area-viewport]::-webkit-scrollbar {\n display: none;\n}\n:where([data-radix-scroll-area-viewport]) {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n:where([data-radix-scroll-area-content]) {\n flex-grow: 1;\n}\n"},nonce:i}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hn.div,{"data-radix-scroll-area-viewport":"",...l,asChild:o,ref:p,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:nb({asChild:o,children:n},(d=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",{"data-radix-scroll-area-content":"",ref:u.onContentChange,style:{minWidth:u.scrollbarXEnabled?"fit-content":void 0},children:d})))})]})}))).displayName=Uh,gt="ScrollAreaScrollbar",(Xh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,o=Xe(gt,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,u="horizontal"===e.orientation;return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>(u?i(!0):l(!0),()=>{u?i(!1):l(!1)})),[u,i,l]),"hover"===o.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Xw,{...n,ref:t,forceMount:r}):"scroll"===o.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Yw,{...n,ref:t,forceMount:r}):"auto"===o.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Yh,{...n,ref:t,forceMount:r}):"always"===o.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(fu,{...n,ref:t}):null}))).displayName=gt,Xw=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,o=Xe(gt,e.__scopeScrollArea),[i,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let u=o.scrollArea,c=0;if(u){let p=a((()=>{window.clearTimeout(c),l(!0)}),"handlePointerEnter"),d=a((()=>{c=window.setTimeout((()=>l(!1)),o.scrollHideDelay)}),"handlePointerLeave");return u.addEventListener("pointerenter",p),u.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),u.removeEventListener("pointerenter",p),u.removeEventListener("pointerleave",d)}}}),[o.scrollArea,o.scrollHideDelay]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(mn,{present:r||i,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Yh,{"data-state":i?"visible":"hidden",...n,ref:t})})})),Yw=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,o=Xe(gt,e.__scopeScrollArea),i="horizontal"===e.orientation,l=Di((()=>c("SCROLL_END")),100),[u,c]=qw("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if("idle"===u){let p=window.setTimeout((()=>c("HIDE")),o.scrollHideDelay);return()=>window.clearTimeout(p)}}),[u,o.scrollHideDelay,c]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let p=o.viewport,d=i?"scrollLeft":"scrollTop";if(p){let h=p[d],f=a((()=>{let v=p[d];h!==v&&(c("SCROLL"),l()),h=v}),"handleScroll");return p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}}),[o.viewport,i,c,l]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(mn,{present:r||"hidden"!==u,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(fu,{"data-state":"hidden"===u?"hidden":"visible",...n,ref:t,onPointerEnter:Qt(e.onPointerEnter,(()=>c("POINTER_ENTER"))),onPointerLeave:Qt(e.onPointerLeave,(()=>c("POINTER_LEAVE")))})})})),Yh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=Xe(gt,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),u="horizontal"===e.orientation,c=Di((()=>{if(r.viewport){let p=r.viewport.offsetWidth{let{orientation:r="vertical",...n}=e,o=Xe(gt,e.__scopeScrollArea),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0),[u,c]=react__WEBPACK_IMPORTED_MODULE_0__.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=e5(u.viewport,u.content),d={...n,sizes:u,onSizesChange:c,hasThumb:p>0&&p<1,onThumbChange:a((f=>i.current=f),"onThumbChange"),onThumbPointerUp:a((()=>l.current=0),"onThumbPointerUp"),onThumbPointerDown:a((f=>l.current=f),"onThumbPointerDown")};function h(f,v){return tb(f,l.current,u,v)}return a(h,"getScrollPosition"),"horizontal"===r?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Kw,{...d,ref:t,onThumbPositionChange:a((()=>{if(o.viewport&&i.current){let v=jh(o.viewport.scrollLeft,u,o.dir);i.current.style.transform=`translate3d(${v}px, 0, 0)`}}),"onThumbPositionChange"),onWheelScroll:a((f=>{o.viewport&&(o.viewport.scrollLeft=f)}),"onWheelScroll"),onDragScroll:a((f=>{o.viewport&&(o.viewport.scrollLeft=h(f,o.dir))}),"onDragScroll")}):"vertical"===r?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Zw,{...d,ref:t,onThumbPositionChange:a((()=>{if(o.viewport&&i.current){let v=jh(o.viewport.scrollTop,u);i.current.style.transform=`translate3d(0, ${v}px, 0)`}}),"onThumbPositionChange"),onWheelScroll:a((f=>{o.viewport&&(o.viewport.scrollTop=f)}),"onWheelScroll"),onDragScroll:a((f=>{o.viewport&&(o.viewport.scrollTop=h(f))}),"onDragScroll")}):null})),Kw=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Xe(gt,e.__scopeScrollArea),[l,u]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),p=Tt(t,c,i.onScrollbarXChange);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{c.current&&u(getComputedStyle(c.current))}),[c]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Zh,{"data-orientation":"horizontal",...o,ref:p,sizes:r,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":yi(r)+"px",...e.style},onThumbPointerDown:a((d=>e.onThumbPointerDown(d.x)),"onThumbPointerDown"),onDragScroll:a((d=>e.onDragScroll(d.x)),"onDragScroll"),onWheelScroll:a(((d,h)=>{if(i.viewport){let f=i.viewport.scrollLeft+d.deltaX;e.onWheelScroll(f),r5(f,h)&&d.preventDefault()}}),"onWheelScroll"),onResize:a((()=>{c.current&&i.viewport&&l&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:bi(l.paddingLeft),paddingEnd:bi(l.paddingRight)}})}),"onResize")})})),Zw=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Xe(gt,e.__scopeScrollArea),[l,u]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),p=Tt(t,c,i.onScrollbarYChange);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{c.current&&u(getComputedStyle(c.current))}),[c]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Zh,{"data-orientation":"vertical",...o,ref:p,sizes:r,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":yi(r)+"px",...e.style},onThumbPointerDown:a((d=>e.onThumbPointerDown(d.y)),"onThumbPointerDown"),onDragScroll:a((d=>e.onDragScroll(d.y)),"onDragScroll"),onWheelScroll:a(((d,h)=>{if(i.viewport){let f=i.viewport.scrollTop+d.deltaY;e.onWheelScroll(f),r5(f,h)&&d.preventDefault()}}),"onWheelScroll"),onResize:a((()=>{c.current&&i.viewport&&l&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:bi(l.paddingTop),paddingEnd:bi(l.paddingBottom)}})}),"onResize")})})),[Jw,Kh]=qh(gt),Zh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:u,onThumbPositionChange:c,onDragScroll:p,onWheelScroll:d,onResize:h,...f}=e,v=Xe(gt,r),[b,m]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),g=Tt(t,(A=>m(A))),y=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),w=react__WEBPACK_IMPORTED_MODULE_0__.useRef(""),D=v.viewport,x=n.content-n.viewport,C=Jt(d),E=Jt(c),S=Di(h,10);function R(A){if(y.current){let k=A.clientX-y.current.left,B=A.clientY-y.current.top;p({x:k,y:B})}}return a(R,"handleDragScroll"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let A=a((k=>{let B=k.target;b?.contains(B)&&C(k,x)}),"handleWheel");return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})}),[D,b,x,C]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(E,[n,E]),vn(b,S),vn(v.content,S),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Jw,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:Jt(i),onThumbPointerUp:Jt(l),onThumbPositionChange:E,onThumbPointerDown:Jt(u),children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hn.div,{...f,ref:g,style:{position:"absolute",...f.style},onPointerDown:Qt(e.onPointerDown,(A=>{0===A.button&&(A.target.setPointerCapture(A.pointerId),y.current=b.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),R(A))})),onPointerMove:Qt(e.onPointerMove,R),onPointerUp:Qt(e.onPointerUp,(A=>{let k=A.target;k.hasPointerCapture(A.pointerId)&&k.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=w.current,v.viewport&&(v.viewport.style.scrollBehavior=""),y.current=null}))})})})),wi="ScrollAreaThumb",Jh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,o=Kh(wi,e.__scopeScrollArea);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(mn,{present:r||o.hasThumb,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Qw,{ref:t,...n})})})),Qw=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,i=Xe(wi,r),l=Kh(wi,r),{onThumbPositionChange:u}=l,c=Tt(t,(h=>l.onThumbChange(h))),p=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),d=Di((()=>{p.current&&(p.current(),p.current=void 0)}),100);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let h=i.viewport;if(h){let f=a((()=>{if(d(),!p.current){let v=rb(h,u);p.current=v,u()}}),"handleScroll");return u(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}}),[i.viewport,d,u]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hn.div,{"data-state":l.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Qt(e.onPointerDownCapture,(h=>{let v=h.target.getBoundingClientRect(),b=h.clientX-v.left,m=h.clientY-v.top;l.onThumbPointerDown({x:b,y:m})})),onPointerUp:Qt(e.onPointerUp,l.onThumbPointerUp)})})),Jh.displayName=wi,hu="ScrollAreaCorner",(Qh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=Xe(hu,e.__scopeScrollArea),n=!(!r.scrollbarX||!r.scrollbarY);return"scroll"!==r.type&&n?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(eb,{...e,ref:t}):null}))).displayName=hu,eb=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=Xe(hu,r),[i,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[u,c]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),p=!(!i||!u);return vn(o.scrollbarX,(()=>{let d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),c(d)})),vn(o.scrollbarY,(()=>{let d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),l(d)})),p?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hn.div,{...n,ref:t,style:{width:i,height:u,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null})),a(bi,"toInt"),a(e5,"getThumbRatio"),a(yi,"getThumbSize"),a(tb,"getScrollPositionFromPointer"),a(jh,"getThumbOffsetFromScroll"),a(t5,"linearScale"),a(r5,"isScrollingWithinScrollbarBounds"),rb=a(((e,t=(()=>{}))=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return a((function o(){let i={left:e.scrollLeft,top:e.scrollTop},l=r.left!==i.left,u=r.top!==i.top;(l||u)&&t(),r=i,n=window.requestAnimationFrame(o)}),"loop")(),()=>window.cancelAnimationFrame(n)}),"addUnlinkedScrollListener"),a(Di,"useDebounceCallback"),a(vn,"useResizeObserver"),a(nb,"getSubtree"),n5=Wh,o5=Gh,a5=Xh,i5=Jh,l5=Qh})),Ci=F((()=>{s5(),ib=(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(n5)((({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`}))),lb=(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(o5)({width:"100%",height:"100%"}),u5=(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(a5)((({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:"true"===t&&"true"===r?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:"true"===t&&"true"===r?0:e}}))),c5=(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(i5)((({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}}))),(wn=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,className:i},l)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ib,{scrollbarsize:o,offset:n,className:i},react__WEBPACK_IMPORTED_MODULE_0__.createElement(lb,{ref:l},e),t&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(u5,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},react__WEBPACK_IMPORTED_MODULE_0__.createElement(c5,null)),r&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(u5,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},react__WEBPACK_IMPORTED_MODULE_0__.createElement(c5,null)),t&&r&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(l5,null))))).displayName="ScrollArea"})),gu={};function mu(){return d5?.clipboard?e=>d5.clipboard.writeText(e):async e=>{let t=la.createElement("TEXTAREA"),r=la.activeElement;t.value=e,la.body.appendChild(t),t.select(),la.execCommand("copy"),la.body.removeChild(t),r.focus()}}an(gu,{SyntaxHighlighter:()=>ua,createCopyToClipboardFunction:()=>mu,default:()=>Db,supportedLanguages:()=>h5});var f5,d5,la,pb,h5,db,fb,hb,mb,gb,vb,wb,m5,bb,yb,ua,Db,ca=F((()=>{oi(),f5=we(Qo(),1),Rf(),Lf(),Mf(),zf(),qf(),Yf(),Qf(),oh(),lh(),fh(),gh(),Dh(),Sf(),iu(),Ci(),({navigator:d5,document:la,window:pb}=ln),h5={jsextra:Vf,jsx:Jf,json:Xf,yml:yh,md:nh,bash:Tf,css:Bf,html:ih,tsx:dh,typescript:mh,graphql:$f},Object.entries(h5).forEach((([e,t])=>{mi.registerLanguage(e,t)})),db=(0,f5.default)(2)((e=>Object.entries(e.code||{}).reduce(((t,[r,n])=>({...t,[`* .${r}`]:n})),{}))),fb=mu(),a(mu,"createCopyToClipboardFunction"),hb=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText})),(({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{}),(({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{})),mb=a((({children:e,className:t})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(wn,{horizontal:!0,vertical:!0,className:t},e)),"UnstyledScroller"),gb=(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(mb)({position:"relative"},(({theme:e})=>db(e))),vb=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.pre((({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0}))),wb=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono}))),m5=a((e=>{let t=[...e.children],r=t[0],n=r.children[0].value,o={...r,children:[],properties:{...r.properties,"data-line-number":n,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=o,{...e,children:t}}),"processLineNumber"),bb=a((({rows:e,stylesheet:t,useInlineStyles:r})=>e.map(((n,o)=>yr({node:m5(n),stylesheet:t,useInlineStyles:r,key:`code-segement${o}`})))),"defaultRenderer"),yb=a(((e,t)=>t?e?({rows:r,...n})=>e({rows:r.map((o=>m5(o))),...n}):bb:e),"wrapRenderer"),(ua=a((({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:o=!1,format:i=!0,formatter:l,className:u,showLineNumbers:c=!1,...p})=>{if("string"!=typeof e||!e.trim())return null;let[d,h]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("");(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{l?l(i,e).then(h):h(e.trim())}),[e,i,l]);let[f,v]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),b=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((g=>{g.preventDefault(),fb(d).then((()=>{v(!0),pb.setTimeout((()=>v(!1)),1500)})).catch(_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_4__.logger.error)}),[d]),m=yb(p.renderer,c);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(hb,{bordered:n,padded:o,showLineNumbers:c,className:u},react__WEBPACK_IMPORTED_MODULE_0__.createElement(gb,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(mi,{padded:o||n,language:t,showLineNumbers:c,showInlineLineNumbers:c,useInlineStyles:!1,PreTag:vb,CodeTag:wb,lineNumberContainerStyle:{},...p,renderer:m},d)),r?react__WEBPACK_IMPORTED_MODULE_0__.createElement(au,{actionItems:[{title:f?"Copied":"Copy",onClick:b}]}):null)}),"SyntaxHighlighter")).registerLanguage=(...e)=>mi.registerLanguage(...e),Db=ua}));function kx(e){if("string"==typeof e)return ec;if(Array.isArray(e))return tc;if(!e)return;let{type:t}=e;return e2.has(t)?t:void 0}function Lx(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(lc(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=Tx([...e2].map((o=>`'${o}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}function bt(e){return Tr(e),{type:zi,contents:e}}function n2(e,t){return Tr(t),{type:Oi,contents:t,n:e}}function ue(e,t={}){return Tr(e),sc(t.expandedStates,!0),{type:wa,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Bx(e){return n2(Number.NEGATIVE_INFINITY,e)}function Mx(e){return n2({type:"root"},e)}function o2(e){return sc(e),{type:Ni,parts:e}}function Ii(e,t="",r={}){return Tr(e),""!==t&&Tr(t),{type:ji,breakContents:e,flatContents:t,groupId:r.groupId}}function _x(e,t){return Tr(e),{type:Vi,contents:e,groupId:t.groupId,negate:t.negate}}function Jn(e,t){Tr(e),sc(t);let r=[];for(let n=0;n""===t)))return"";break;case wa:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===wa&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Oi:case zi:case Vi:case oc:if(!e.contents)return"";break;case ji:if(!e.flatContents&&!e.breakContents)return"";break;case tc:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];"string"==typeof n&&"string"==typeof xa(!1,t,-1)?t[t.length-1]+=n:t.push(n),t.push(...o)}return 0===t.length?"":1===t.length?t[0]:t}case ec:case rc:case nc:case ac:case Mr:case ic:case qi:break;default:throw new t2(e)}return e}function Nx(e){return uc(e,(t=>Ox(t)))}function ot(e,t=$x){return uc(e,(r=>"string"==typeof r?Jn(t,r.split("\n")):r))}function jx(e,t){let r=!0===t||t===Si?Si:y5,n=r===Si?y5:Si,o=0,i=0;for(let l of e)l===r?o++:l===n&&i++;return o>i?n:r}function qx(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Zx(e){return"front-matter"===e?.type}function a2(e,t){var r;if("text"===e.type||"comment"===e.type||Wi(e)||"yaml"===e.type||"toml"===e.type)return null;if("attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value,"angularControlFlowBlock"===e.type&&null!=(r=e.parameters)&&r.children)for(let n of t.parameters.children)Qx.has(e.name)?delete n.expression:n.expression=n.expression.trim();"angularIcuExpression"===e.type&&(t.switchValue=e.switchValue.trim()),"angularLetDeclarationInitializer"===e.type&&delete t.value}async function tC(e,t){if("yaml"===e.language){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return Mx([e.startDelimiter,e.explicitLanguage,Q,n,n?Q:"",e.endDelimiter])}}function Ui(e,t=!0){return[bt([Ee,e]),t?Ee:""]}function Qn(e,t){let r="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;return r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||("__vue_expression"===t.parser||"__vue_ts_expression"===t.parser)&&("TemplateLiteral"===r.type||"StringLiteral"===r.type))}async function at(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let o=!0;n&&(r.__onHtmlBindingRoot=(l,u)=>{o=n(l,u)});let i=await t(e,r,t);return o?ue(i):Ui(i)}function nC(e,t,r,n){let{node:o}=r,i=n.originalText.slice(o.sourceSpan.start.offset,o.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":at(i,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},Qn)}function D5(e,t){if(!t)return;let r=aC(t).toLowerCase();return e.find((({filenames:n})=>n?.some((o=>o.toLowerCase()===r))))??e.find((({extensions:n})=>n?.some((o=>r.endsWith(o)))))}function iC(e,t){if(t)return e.find((({name:r})=>r.toLowerCase()===t))??e.find((({aliases:r})=>r?.includes(t)))??e.find((({extensions:r})=>r?.includes(`.${t}`)))}function lC(e,t){let r=e.plugins.flatMap((o=>o.languages??[])),n=iC(r,t.language)??D5(r,t.physicalFile)??D5(r,t.file)??void t.physicalFile;return n?.parsers[0]}function dC(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function l2(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||Zn(e)&&e.children.some((r=>"text"!==r.type&&"interpolation"!==r.type))||pc(e,t)&&!It(e)&&"interpolation"!==e.type)}function Xi(e){return!("attribute"===e.type||!e.parent||!e.prev)&&mC(e.prev)}function mC(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}function Ye(e){return"text"===e.type||"comment"===e.type}function It(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||"svg:script"===e.fullName||ba(e)&&("script"===e.name||"style"===e.name))}function gC(e){return e.children&&!It(e)}function vC(e){return It(e)||"interpolation"===e.type||s2(e)}function s2(e){return m2(e).startsWith("pre")}function wC(e,t){var r,n;let o=function i(){return!Wi(e)&&"angularControlFlowBlock"!==e.type&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!Zn(e.parent)||!(!e.prev&&("root"===e.parent.type||Zn(e)&&e.parent||It(e.parent)||Yi(e.parent,t)||!AC(e.parent.cssDisplay))||e.prev&&!TC(e.prev.cssDisplay))))}();return o&&!e.prev&&null!=(n=null==(r=e.parent)?void 0:r.tagDefinition)&&n.ignoreFirstLf?"interpolation"===e.type:o}function bC(e,t){return!Wi(e)&&"angularControlFlowBlock"!==e.type&&(!("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!Zn(e.parent)||!(!e.next&&("root"===e.parent.type||Zn(e)&&e.parent||It(e.parent)||Yi(e.parent,t)||!FC(e.parent.cssDisplay))||e.next&&!kC(e.next.cssDisplay))))}function yC(e){return LC(e.cssDisplay)&&!It(e)}function Ri(e){return Wi(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some((t=>CC(t))))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&p2(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||d2(e.lastChild))}function u2(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Vu(e){return f2(e)||e.prev&&xC(e.prev)||c2(e)}function xC(e){return f2(e)||"element"===e.type&&"br"===e.fullName||c2(e)}function c2(e){return p2(e)&&d2(e)}function p2(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function f2(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function cc(e){return e.lastChild?cc(e.lastChild):e}function CC(e){var t;return null==(t=e.children)?void 0:t.some((r=>"text"!==r.type))}function h2(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||"speculationrules"===e)return"json"}}function EC(e,t){let{name:r,attrMap:n}=e;if("script"!==r||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:o,lang:i}=e.attrMap;return i||o?Gi(t,{language:i})??h2(o):"babel"}function SC(e,t){if(!pc(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:o}=r;return Gi(t,{language:o})??h2(n)}function RC(e,t){if("style"!==e.name)return;let{lang:r}=e.attrMap;return r?Gi(t,{language:r}):"css"}function x5(e,t){return EC(e,t)??RC(e,t)??SC(e,t)}function Ca(e){return"block"===e||"list-item"===e||e.startsWith("table")}function AC(e){return!Ca(e)&&"inline-block"!==e}function FC(e){return!Ca(e)&&"inline-block"!==e}function kC(e){return!Ca(e)}function TC(e){return!Ca(e)}function LC(e){return!Ca(e)&&"inline-block"!==e}function Zn(e){return m2(e).startsWith("pre")}function IC(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function BC(e,t){var r;if(eo(e,t))return"block";if("comment"===(null==(r=e.prev)?void 0:r.type)){let o=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(o)return o[1]}let n=!1;if("element"===e.type&&"svg"===e.namespace){if(!IC(e,(o=>"svg:foreignObject"===o.fullName)))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||ba(e))&&uC[e.name]||sC}}function m2(e){return"element"===e.type&&(!e.namespace||ba(e))&&pC[e.name]||cC}function MC(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split("\n")){if(0===r.length)continue;let n=wt.getLeadingWhitespaceCount(r);if(0===n)return 0;r.length!==n&&nr.slice(t))).join("\n")}function v2(e){return Oe(!1,Oe(!1,e,"'","'"),""",'"')}function or(e){return v2(e.value)}function Yi(e,t){return eo(e,t)&&!_C.has(e.fullName)}function eo(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function pc(e,t){return eo(e,t)&&(Yi(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}function PC(e){let t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")}function HC(e,t){let r=e.parent;if(!eo(r,t))return!1;let n=r.fullName,o=e.fullName;return"script"===n&&"setup"===o||"style"===n&&"vars"===o}function w2(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?ot(t):ot(g2(i2(t)),Q):Jn(fe,wt.split(t))}function b2(e,t){return eo(e,t)&&"script"===e.name}async function $C(e,t){let r=[];for(let[n,o]of e.split(y2).entries())if(n%2==0)r.push(ot(o));else try{r.push(ue(["{{",bt([fe,await at(o,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),fe,"}}"]))}catch{r.push("{{",ot(o),"}}")}return r}function dc({parser:e}){return(t,r,n)=>at(or(n.node),t,{parser:e},Qn)}function jC(e,t){if("angular"!==t.parser)return;let{node:r}=e,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return zC;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return OC;if(n.startsWith("*"))return NC;let o=or(r);return/^i18n(?:-.+)?$/u.test(n)?()=>Ui(o2(w2(r,o.trim())),!o.includes("@@")):y2.test(o)?i=>$C(o,i):void 0}function qC(e,t){let{node:r}=e,n=or(r);if("class"===r.fullName&&!t.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}function C5(e){return"\t"===e||"\n"===e||"\f"===e||"\r"===e||" "===e}function ZC(e){let r,n,o,i,l,c,t=e.length,u=0;function p(v){let b,m=v.exec(e.substring(u));if(m)return[b]=m,u+=b.length,b}a(p,"p");let d=[];for(;;){if(p(GC),u>=t){if(0===d.length)throw new Error("Must contain one or more image candidate strings.");return d}c=u,r=p(XC),n=[],","===r.slice(-1)?(r=r.replace(YC,""),f()):h()}function h(){for(p(UC),o="",i="in descriptor";;){if(l=e.charAt(u),"in descriptor"===i)if(C5(l))o&&(n.push(o),o="",i="after descriptor");else{if(","===l)return u+=1,o&&n.push(o),void f();if("("===l)o+=l,i="in parens";else{if(""===l)return o&&n.push(o),void f();o+=l}}else if("in parens"===i)if(")"===l)o+=l,i="in descriptor";else{if(""===l)return n.push(o),void f();o+=l}else if("after descriptor"===i&&!C5(l)){if(""===l)return void f();i="in descriptor",u-=1}u+=1}}function f(){let b,m,g,y,D,x,C,E,S,v=!1,w={};for(y=0;ytE(or(e.node))}function tE(e){let t=JC(e),r=eE.filter((d=>t.some((h=>Object.prototype.hasOwnProperty.call(h,d)))));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,o=D2[n],i=t.map((d=>d.source.value)),l=Math.max(...i.map((d=>d.length))),u=t.map((d=>d[n]?String(d[n].value):"")),c=u.map((d=>{let h=d.indexOf(".");return-1===h?d.length:h})),p=Math.max(...c);return Ui(Jn([",",fe],i.map(((d,h)=>{let f=[d],v=u[h];if(v){let b=l-d.length+1,m=p-c[h],g=" ".repeat(b+m);f.push(Ii(g," "),v+o)}return f}))))}function nE(e,t){let{node:r}=e,n=or(e.node).trim();if("style"===r.fullName&&!t.parentParser&&!n.includes("{{"))return async o=>Ui(await o(n,{parser:"css",__isHTMLStyleAttribute:!0}))}function oE(e,t){let{root:r}=e;return qu.has(r)||qu.set(r,r.children.some((n=>b2(n,t)&&["ts","typescript"].includes(n.attrMap.lang)))),qu.get(r)}function aE(e,t,r){let{node:n}=r;return at(`type T<${or(n)}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Qn)}function iE(e,t,{parseWithTs:r}){return at(`function _(${e}) {}`,t,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function lE(e){let n=e.trim();return/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u.test(n)||/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu.test(n)}async function sE(e,t,r,n){let o=or(r.node),{left:i,operator:l,right:u}=uE(o),c=fc(r,n);return[ue(await at(`function _(${i}) {}`,e,{parser:c?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",l," ",await at(u,e,{parser:c?"__ts_expression":"__js_expression"})]}function uE(e){let r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,o=e.match(/(.*?)\s+(in|of)\s+(.*)/su);if(!o)return;let i={};if(i.for=o[3].trim(),!i.for)return;let l=Oe(!1,o[1].trim(),/^\(|\)$/gu,""),u=l.match(r);u?(i.alias=l.replace(r,""),i.iterator1=u[1].trim(),u[2]&&(i.iterator2=u[2].trim())):i.alias=l;let c=[i.alias,i.iterator1,i.iterator2];return c.some(((p,d)=>!p&&(0===d||c.slice(d+1).some(Boolean))))?void 0:{left:c.filter(Boolean).join(","),operator:o[2],right:i.for}}function cE(e,t){if("vue"!==t.parser)return;let{node:r}=e,n=r.fullName;if("v-for"===n)return sE;if("generic"===n&&b2(r.parent,t))return aE;let o=or(r),i=fc(e,t);return PC(r)||HC(r,t)?l=>iE(o,l,{parseWithTs:i}):n.startsWith("@")||n.startsWith("v-on:")?l=>pE(o,l,{parseWithTs:i}):n.startsWith(":")||n.startsWith("v-bind:")?l=>dE(o,l,{parseWithTs:i}):n.startsWith("v-")?l=>x2(o,l,{parseWithTs:i}):void 0}function pE(e,t,{parseWithTs:r}){return lE(e)?x2(e,t,{parseWithTs:r}):at(e,t,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Qn)}function dE(e,t,{parseWithTs:r}){return at(e,t,{parser:r?"__vue_ts_expression":"__vue_expression"},Qn)}function x2(e,t,{parseWithTs:r}){return at(e,t,{parser:r?"__ts_expression":"__js_expression"},Qn)}function hE(e,t){let{node:r}=e;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||"lwc"===t.parser&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[rE,nE,WC,fE,VC]){let o=n(e,t);if(o)return mE(o)}}}function mE(e){return async(t,r,n,o)=>{let i=await e(t,r,n,o);if(i)return i=uc(i,(l=>"string"==typeof l?Oe(!1,l,'"',"""):l)),[n.node.rawName,'="',ue(i),'"']}}function vE(e){return Array.isArray(e)&&e.length>0}function Ki(e){return e.sourceSpan.start.offset}function Zi(e){return e.sourceSpan.end.offset}function Ku(e,t){return[e.isSelfClosing?"":wE(e,t),ma(e,t)]}function wE(e,t){return e.lastChild&&ya(e.lastChild)?"":[bE(e,t),mc(e,t)]}function ma(e,t){return(e.next?Ir(e.next):Sa(e.parent))?"":[Ea(e,t),Lr(e,t)]}function bE(e,t){return Sa(e)?Ea(e.lastChild,t):""}function Lr(e,t){return ya(e)?mc(e.parent,t):Ji(e)?gc(e.next):""}function mc(e,t){if(E2(!e.isSelfClosing),S2(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function S2(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Xi(e)||l2(e.parent,t))}function Ir(e){return e.prev&&"docType"!==e.prev.type&&"angularControlFlowBlock"!==e.type&&!Ye(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Sa(e){var t;return(null==(t=e.lastChild)?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!Ye(cc(e.lastChild))&&!Zn(e)}function ya(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Ye(cc(e))}function Ji(e){return e.next&&!Ye(e.next)&&Ye(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function yE(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return!!t&&(!t[1]||t[1].split(/\s+/u))}function Qi(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function DE(e,t,r){var n;let{node:o}=e;if(!hc(o.attrs))return o.isSelfClosing?" ":"";let i="comment"===(null==(n=o.prev)?void 0:n.type)&&yE(o.prev.value),l="boolean"==typeof i?()=>i:Array.isArray(i)?h=>i.includes(h.rawName):()=>!1,u=e.map((({node:h})=>l(h)?ot(t.originalText.slice(Ki(h),Zi(h))):r()),"attrs"),c="element"===o.type&&"script"===o.fullName&&1===o.attrs.length&&"src"===o.attrs[0].fullName&&0===o.children.length,p=t.singleAttributePerLine&&o.attrs.length>1&&!eo(o,t)?Q:fe,d=[bt([c?" ":fe,Jn(p,u)])];return o.firstChild&&Qi(o.firstChild)||o.isSelfClosing&&Sa(o.parent)||c?d.push(o.isSelfClosing?" ":""):d.push(t.bracketSameLine?o.isSelfClosing?" ":"":o.isSelfClosing?fe:Ee),d}function xE(e){return e.firstChild&&Qi(e.firstChild)?"":vc(e)}function Zu(e,t,r){let{node:n}=e;return[ga(n,t),DE(e,t,r),n.isSelfClosing?"":xE(n)]}function ga(e,t){return e.prev&&Ji(e.prev)?"":[Br(e,t),gc(e)]}function Br(e,t){return Qi(e)?vc(e.parent):Ir(e)?Ea(e.prev,t):""}function gc(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`\x3c!--[if ${e.condition}`;case"ieConditionalEndComment":return"\x3c!--\x3c!--\x3e<${e.rawName}`;default:return`<${e.rawName}`}}function vc(e){switch(E2(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function CE(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Qi(e.firstChild)&&(r-=vc(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&ya(e.lastChild)?n+=mc(e,t).length:Sa(e)&&(n-=Ea(e.lastChild,t).length),t.originalText.slice(r,n)}function SE(e,t){let{node:r}=e;switch(r.type){case"element":if(It(r)||"interpolation"===r.type)return;if(!r.isSelfClosing&&pc(r,t)){let n=x5(r,t);return n?async(o,i)=>{let l=R2(r,t),u=/^\s*$/u.test(l),c="";return u||(c=await o(i2(l),{parser:n,__embeddedInHtml:!0}),u=""===c),[Br(r,t),ue(Zu(e,t,i)),u?"":Q,c,u?"":Q,Ku(r,t),Lr(r,t)]}:void 0}break;case"text":if(It(r.parent)){let n=x5(r.parent,t);if(n)return async o=>{let i="markdown"===n?g2(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,l={parser:n,__embeddedInHtml:!0};if("html"===t.parser&&"babel"===n){let u="script",{attrMap:c}=r.parent;c&&("module"===c.type||"text/babel"===c.type&&"module"===c["data-type"])&&(u="module"),l.__babelSourceType=u}return[Da,Br(r,t),await o(i,l),Lr(r,t)]}}else if("interpolation"===r.parent.type)return async n=>{let o={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===t.parser?o.parser="__ng_interpolation":"vue"===t.parser?o.parser=fc(e,t)?"__vue_ts_expression":"__vue_expression":o.parser="__js_expression",[bt([fe,await n(r.value,o)]),r.parent.next&&Ir(r.parent.next)?" ":fe]};break;case"attribute":return gE(e,t);case"front-matter":return n=>rC(r,n);case"angularControlFlowBlockParameters":return EE.has(e.parent.name)?oC:void 0;case"angularLetDeclarationInitializer":return n=>at(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}function va(e){if(null!==pa&&(pa.property,1)){let t=pa;return pa=va.prototype=null,t}return pa=va.prototype=e??Object.create(null),new va}function FE(e){return va(e)}function kE(e,t="type"){function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return FE(e),a(r,"r"),r}function _E(e){return/^\s*/u.test(e)}function PE(e){return"\x3c!-- @format --\x3e\n\n"+e}function A2(e){let t=Zi(e);return"element"===e.type&&!e.endSourceSpan&&hc(e.children)?Math.max(t,A2(xa(!1,e.children,-1))):t}function da(e,t,r){let n=e.node;if(Xi(n)){let o=A2(n);return[Br(n,t),ot(wt.trimEnd(t.originalText.slice(Ki(n)+(n.prev&&Ji(n.prev)?gc(n).length:0),o-(n.next&&Ir(n.next)?Ea(n,t).length:0)))),Lr(n,t)]}return r()}function Ai(e,t){return Ye(e)&&Ye(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Vu(t)?Q:fe:"":Vu(t)?Q:Ee:Ji(e)&&(Xi(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&Ir(t)?"":!t.isLeadingSpaceSensitive||Vu(t)||Ir(t)&&e.lastChild&&ya(e.lastChild)&&e.lastChild.lastChild&&ya(e.lastChild.lastChild)?Q:t.hasLeadingSpaces?fe:Ee}function wc(e,t,r){let{node:n}=e;if(u2(n))return[Da,...e.map((i=>{let l=i.node,u=l.prev?Ai(l.prev,l):"";return[u?[u,Ri(l.prev)?Q:""]:"",da(i,t,r)]}),"children")];let o=n.children.map((()=>Symbol("")));return e.map(((i,l)=>{let u=i.node;if(Ye(u)){if(u.prev&&Ye(u.prev)){let b=Ai(u.prev,u);if(b)return Ri(u.prev)?[Q,Q,da(i,t,r)]:[b,da(i,t,r)]}return da(i,t,r)}let c=[],p=[],d=[],h=[],f=u.prev?Ai(u.prev,u):"",v=u.next?Ai(u,u.next):"";return f&&(Ri(u.prev)?c.push(Q,Q):f===Q?c.push(Q):Ye(u.prev)?p.push(f):p.push(Ii("",Ee,{groupId:o[l-1]}))),v&&(Ri(u)?Ye(u.next)&&h.push(Q,Q):v===Q?Ye(u.next)&&h.push(Q):d.push(v)),[...c,ue([...p,ue([da(i,t,r),...d],{id:o[l]})]),...h]}),"children")}function $E(e,t,r){let{node:n}=e,o=[];zE(e)&&o.push("} "),o.push("@",n.name),n.parameters&&o.push(" (",ue(r("parameters")),")"),o.push(" {");let i=F2(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,o.push(bt([Q,wc(e,t,r)])),i&&o.push(Q,"}")):i&&o.push("}"),ue(o,{shouldBreak:!0})}function F2(e){var t,r;return!("angularControlFlowBlock"===(null==(t=e.next)?void 0:t.type)&&null!=(r=HE.get(e.name))&&r.has(e.next.name))}function zE(e){let{previous:t}=e;return"angularControlFlowBlock"===t?.type&&!Xi(t)&&!F2(t)}function OE(e,t,r){return[bt([Ee,Jn([";",fe],e.map(r,"children"))]),Ee]}function NE(e,t,r){let{node:n}=e;return[ga(n,t),ue([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",bt([fe,Jn(fe,e.map(r,"cases"))])]:"",Ee]),ma(n,t)]}function jE(e,t,r){let{node:n}=e;return[n.value," {",ue([bt([Ee,e.map((({node:o})=>"text"!==o.type||wt.trim(o.value)?r():""),"expression")]),Ee]),"}"]}function VE(e,t,r){let{node:n}=e;if(l2(n,t))return[Br(n,t),ue(Zu(e,t,r)),ot(R2(n,t)),...Ku(n,t),Lr(n,t)];let o=1===n.children.length&&("interpolation"===n.firstChild.type||"angularIcuExpression"===n.firstChild.type)&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),l=a((d=>ue([ue(Zu(e,t,r),{id:i}),d,Ku(n,t)])),"a"),u=a((d=>o?_x(d,{groupId:i}):!It(n)&&!Yi(n,t)||"root"!==n.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?bt(d):d),"o"),c=a((()=>o?Ii(Ee,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?fe:"text"===n.firstChild.type&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Bx(Ee):Ee),"u"),p=a((()=>(n.next?Ir(n.next):Sa(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":o?Ii(Ee,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?fe:("comment"===n.lastChild.type||"text"===n.lastChild.type&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":Ee),"p");return 0===n.children.length?l(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?fe:""):l([DC(n)?Da:"",u([c(),wc(e,t,r)]),p()])}function Bi(e){return e>=9&&e<=32||160==e}function bc(e){return 48<=e&&e<=57}function Mi(e){return e>=97&&e<=122||e>=65&&e<=90}function qE(e){return e>=97&&e<=102||e>=65&&e<=70||bc(e)}function yc(e){return 10===e||13===e}function S5(e){return 48<=e&&e<=55}function Wu(e){return 39===e||34===e||96===e}function UE(e){return e.replace(WE,((...t)=>t[1].toUpperCase()))}function XE(e,t){for(let r of GE)r(e,t);return e}function YE(e){e.walk((t=>{if("element"===t.type&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&"text"===t.children[0].type&&"\n"===t.children[0].value[0]){let r=t.children[0];1===r.value.length?t.removeChild(r):r.value=r.value.slice(1)}}))}function KE(e){let t=a((r=>{var n,o;return"element"===r.type&&"ieConditionalStartComment"===(null==(n=r.prev)?void 0:n.type)&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&"ieConditionalEndComment"===(null==(o=r.firstChild)?void 0:o.type)&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset}),"e");e.walk((r=>{if(r.children)for(let n=0;n{if(n.children)for(let o=0;o"cdata"===t.type),(t=>``))}function QE(e){let t=a((r=>{var n,o;return"element"===r.type&&0===r.attrs.length&&1===r.children.length&&"text"===r.firstChild.type&&!wt.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&"text"===(null==(n=r.prev)?void 0:n.type)&&"text"===(null==(o=r.next)?void 0:o.type)}),"e");e.walk((r=>{if(r.children)for(let n=0;n`+o.firstChild.value+``+l.value,i.sourceSpan=new j(i.sourceSpan.start,l.sourceSpan.end),i.isTrailingSpaceSensitive=l.isTrailingSpaceSensitive,i.hasTrailingSpaces=l.hasTrailingSpaces,r.removeChild(o),n--,r.removeChild(l)}}))}function eS(e,t){if("html"===t.parser)return;let r=/\{\{(.+?)\}\}/su;e.walk((n=>{if(gC(n))for(let o of n.children){if("text"!==o.type)continue;let i=o.sourceSpan.start,l=null,u=o.value.split(r);for(let c=0;c0&&n.insertChildBefore(o,{type:"text",value:p,sourceSpan:new j(i,l)}))}n.removeChild(o)}}))}function tS(e){e.walk((t=>{if(!t.children)return;if(0===t.children.length||1===t.children.length&&"text"===t.children[0].type&&0===wt.trim(t.children[0].value).length)return t.hasDanglingSpaces=t.children.length>0,void(t.children=[]);let r=vC(t),n=s2(t);if(!r)for(let o=0;o{t.isSelfClosing=!t.children||"element"===t.type&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)}))}function nS(e,t){e.walk((r=>{"element"===r.type&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))}))}function oS(e,t){e.walk((r=>{r.cssDisplay=BC(r,t)}))}function aS(e,t){e.walk((r=>{let{children:n}=r;if(n){if(0===n.length)return void(r.isDanglingSpaceSensitive=yC(r));for(let o of n)o.isLeadingSpaceSensitive=wC(o,t),o.isTrailingSpaceSensitive=bC(o,t);for(let o=0;o{!fa[t]&&null===Ti(t)&&(fa[t]=new O({canSelfClose:!1}))}))),fa[e]??H5}function B2(e,t,r=null){let n=[],o=e.visit?i=>e.visit(i,r)||i.visit(e,r):i=>i.visit(e,r);return t.forEach((i=>{let l=o(i);l&&n.push(l)})),n}function IS(e,t){if(null!=t&&(!Array.isArray(t)||2!=t.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=t){let r=t[0],n=t[1];LS.forEach((o=>{if(o.test(r)||o.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)}))}}function _S(e,t,r,n={}){let o=new $S(new k2(e,t),r,n);return o.tokenize(),new MS(qS(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}function yn(e){return`Unexpected character "${0===e?"EOF":String.fromCharCode(e)}"`}function O5(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function HS(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}function ie(e){return!Bi(e)||0===e}function N5(e){return Bi(e)||62===e||60===e||47===e||39===e||34===e||61===e||0===e}function zS(e){return(e<97||12257)}function OS(e){return 59===e||0===e||!qE(e)}function NS(e){return 59===e||0===e||!Mi(e)}function jS(e){return 125!==e}function VS(e,t){return j5(e)===j5(t)}function j5(e){return e>=97&&e<=122?e-97+65:e}function V5(e){return Mi(e)||bc(e)||95===e}function q5(e){return 59!==e&&ie(e)}function qS(e){let r,t=[];for(let n=0;n0&&e[e.length-1]===t}function U5(e,t){return void 0!==Hi[t]?Hi[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}function G5(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:o=!1,getTagContentType:i,tokenizeAngularBlocks:l=!1,tokenizeAngularLetDeclaration:u=!1}=t;return KS().parse(e,"angular-html-parser",{tokenizeExpansionForms:l,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:l,tokenizeLet:u},o,i)}function ZS(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}function QS(e){let t=e.slice(0,ha);if("---"!==t&&"+++"!==t)return;let r=e.indexOf("\n",ha);if(-1===r)return;let n=e.slice(ha,r).trim(),o=e.indexOf(`\n${t}`,r),i=n;if(i||(i="+++"===t?"toml":"yaml"),-1===o&&"---"===t&&"yaml"===i&&(o=e.indexOf("\n...",r)),-1===o)return;let l=o+1+ha,u=e.charAt(l+1);if(!/\s?/u.test(u))return;let c=e.slice(0,l);return{type:"front-matter",language:i,explicitLanguage:n,value:e.slice(r+1,o),startDelimiter:t,endDelimiter:c.slice(-ha),raw:c}}function eR(e){let t=QS(e);if(!t)return{content:e};let{raw:r}=t;return{frontMatter:t,content:Oe(!1,r,/[^\n]/gu," ")+e.slice(r.length)}}function nR(e,t){let r=e.map(t);return r.some(((n,o)=>n!==e[o]))?r:e}function aR(e,t){if(e.value)for(let{regex:r,parse:n}of oR){let o=e.value.match(r);if(o)return n(e,t,o)}return null}function iR(e,t,r){let[,n,o,i]=r,l=4+n.length,u=e.sourceSpan.start.moveBy(l),c=u.moveBy(i.length),[p,d]=(()=>{try{return[!0,t(i,u).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new j(u,c)}]]}})();return{type:"ieConditionalComment",complete:p,children:d,condition:Oe(!1,o.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new j(e.sourceSpan.start,u),endSourceSpan:new j(c,e.sourceSpan.end)}}function lR(e,t,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:Oe(!1,n.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function sR(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}function cR(e){if("block"===e.type){if(e.name=Oe(!1,e.name.toLowerCase(),/\s+/gu," ").trim(),e.type="angularControlFlowBlock",!hc(e.parameters))return void delete e.parameters;for(let t of e.parameters)t.type="angularControlFlowBlockParameter";e.parameters={type:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new j(e.parameters[0].sourceSpan.start,xa(!1,e.parameters,-1).sourceSpan.end)}}}function pR(e){"letDeclaration"===e.type&&(e.type="angularLetDeclaration",e.id=e.name,e.init={type:"angularLetDeclarationInitializer",sourceSpan:new j(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function dR(e){("plural"===e.type||"select"===e.type)&&(e.clause=e.type,e.type="angularIcuExpression"),"expansionCase"===e.type&&(e.type="angularIcuCase")}function P2(e,t,r){let{name:n,canSelfClose:o=!0,normalizeTagName:i=!1,normalizeAttributeName:l=!1,allowHtmComponentClosingTags:u=!1,isTagNameCaseSensitive:c=!1,shouldParseAsRawText:p}=t,{rootNodes:d,errors:h}=G5(e,{canSelfClose:o,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:c,getTagContentType:p?(...w)=>p(...w)?nt.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:"angular"===n||void 0,tokenizeAngularLetDeclaration:"angular"===n||void 0});if("vue"===n){if(d.some((C=>"docType"===C.type&&"html"===C.value||"element"===C.type&&"html"===C.name.toLowerCase())))return P2(e,$2,r);let w,D=a((()=>w??(w=G5(e,{canSelfClose:o,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:c}))),"y"),x=a((C=>D().rootNodes.find((({startSourceSpan:E})=>E&&E.start.offset===C.startSourceSpan.start.offset))??C),"M");for(let[C,E]of d.entries()){let{endSourceSpan:S,startSourceSpan:R}=E;if(null===S)h=D().errors,d[C]=x(E);else if(fR(E,r)){let A=D().errors.find((k=>k.span.start.offset>R.start.offset&&k.span.start.offset0&&Y5(h[0]);let f=a((w=>{let D=w.name.startsWith(":")?w.name.slice(1).split(":")[0]:null,x=w.nameSpan.toString(),C=null!==D&&x.startsWith(`${D}:`),E=C?x.slice(D.length+1):x;w.name=E,w.namespace=D,w.hasExplicitNamespace=C}),"d"),v=a((w=>{switch(w.type){case"element":f(w);for(let D of w.attrs)f(D),D.valueSpan?(D.value=D.valueSpan.toString(),/["']/u.test(D.value[0])&&(D.value=D.value.slice(1,-1))):D.value=null;break;case"comment":w.value=w.sourceSpan.toString().slice(4,-3);break;case"text":w.value=w.sourceSpan.toString()}}),"C"),b=a(((w,D)=>{let x=w.toLowerCase();return D(x)?x:w}),"A"),m=a((w=>{if("element"===w.type&&(i&&(!w.namespace||w.namespace===w.tagDefinition.implicitNamespacePrefix||ba(w))&&(w.name=b(w.name,(D=>uR.has(D)))),l))for(let D of w.attrs)D.namespace||(D.name=b(D.name,(x=>Yu.has(w.name)&&(Yu.get("*").has(x)||Yu.get(w.name).has(x)))))}),"D"),g=a((w=>{w.sourceSpan&&w.endSourceSpan&&(w.sourceSpan=new j(w.sourceSpan.start,w.endSourceSpan.end))}),"R"),y=a((w=>{if("element"===w.type){let D=Qu(c?w.name:w.name.toLowerCase());!w.namespace||w.namespace===D.implicitNamespacePrefix||ba(w)?w.tagDefinition=D:w.tagDefinition=Qu("")}}),"F");return B2(new class extends kS{visitExpansionCase(w,D){"angular"===n&&this.visitChildren(D,(x=>{x(w.expression)}))}visit(w){v(w),y(w),m(w),g(w)}},d),d}function fR(e,t){var r;if("element"!==e.type||"template"!==e.name)return!1;let n=null==(r=e.attrs.find((o=>"lang"===o.name)))?void 0:r.value;return!n||"html"===Gi(t,{language:n})}function Y5(e){let{msg:t,span:{start:r,end:n}}=e;throw JS(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function H2(e,t,r={},n=!0){let{frontMatter:o,content:i}=n?tR(e):{frontMatter:null,content:e},l=new k2(e,r.filepath),u=new Ju(l,0,0,0),c=u.moveBy(e.length),p={type:"root",sourceSpan:new j(u,c),children:P2(i,t,r)};if(o){let f=new Ju(l,0,0,0),v=f.moveBy(o.raw.length);o.sourceSpan=new j(f,v),p.children.unshift(o)}let d=new rR(p),h=a(((f,v)=>{let{offset:b}=v,g=H2(Oe(!1,e.slice(0,b),/[^\n\r]/gu," ")+f,t,r,!1);g.sourceSpan=new j(v,xa(!1,g.children,-1).sourceSpan.end);let y=g.children[0];return y.length===b?g.children.shift():(y.sourceSpan=new j(y.sourceSpan.start.moveBy(b),y.sourceSpan.end),y.value=y.value.slice(b)),g}),"f");return d.walk((f=>{if("comment"===f.type){let v=aR(f,h);v&&f.parent.replaceChild(f,v)}cR(f),pR(f),dR(f)})),d}function tl(e){return{parse:a(((t,r)=>H2(t,e,r)),"parse"),hasPragma:_E,astFormat:"html",locStart:Ki,locEnd:Zi}}var Sx,K5,Z5,J5,er,Rx,Ax,Q5,Fx,Oe,ec,tc,rc,zi,Oi,nc,wa,Ni,ji,Vi,oc,ac,Mr,ic,qi,e2,lc,Tx,Dn,t2,r2,Tr,sc,Da,fe,Ee,Q,$x,zx,xa,Si,y5,Vx,rt,xn,Wx,Xx,wt,Cn,Kx,Wi,Jx,Qx,eC,rC,oC,aC,Gi,sC,uC,cC,pC,ba,fC,i2,hC,_C,y2,zC,OC,NC,VC,WC,UC,GC,XC,YC,E5,KC,JC,D2,eE,rE,qu,fc,fE,gE,C2,E2,hc,R2,EE,RE,pa,BE,ME,HE,WE,Rr,Ju,En,k2,Sn,j,_i,Rn,T2,GE,iS,uS,cS,R5,dS,L2,F5,k5,T5,L5,I5,Sr,B5,nt,Li,An,fS,wS,I2,bS,Fn,yS,kn,O,H5,fa,Tn,to,Ln,xS,In,CS,Bn,ES,Mn,SS,_n,RS,Pn,tr,Hn,AS,$n,FS,zn,bn,On,$5,Nn,z5,jn,kS,Hi,LS,Ar,M2,Vn,Uu,qn,MS,PS,$i,Wn,Gu,Un,$S,rr,_2,nr,WS,Gn,Dc,Fr,Ae,Xn,US,Yn,GS,kr,XS,Kn,YS,Xu,KS,JS,ha,tR,ki,X5,vt,rR,oR,Yu,uR,$2,hR,mR,gR,vR,wR,z2,O2=F((()=>{Sx=Object.defineProperty,K5=a((e=>{throw TypeError(e)}),"Xr"),Z5=a(((e,t)=>{for(var r in t)Sx(e,r,{get:t[r],enumerable:!0})}),"Jr"),J5=a(((e,t,r)=>t.has(e)||K5("Cannot "+r)),"Zr"),er=a(((e,t,r)=>(J5(e,t,"read from private field"),r?r.call(e):t.get(e))),"Q"),Rx=a(((e,t,r)=>t.has(e)?K5("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r)),"en"),Ax=a(((e,t,r,n)=>(J5(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r)),"tn"),Z5(Q5={},{languages:a((()=>cS),"languages"),options:a((()=>dS),"options"),parsers:a((()=>L2),"parsers"),printers:a((()=>wR),"printers")}),Fx=a(((e,t,r,n)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)}),"si"),Oe=Fx,ec="string",tc="array",rc="cursor",zi="indent",Oi="align",nc="trim",wa="group",Ni="fill",ji="if-break",Vi="indent-if-break",oc="line-suffix",ac="line-suffix-boundary",Mr="line",ic="label",qi="break-parent",e2=new Set([rc,zi,Oi,nc,wa,Ni,ji,Vi,oc,ac,Mr,ic,qi]),a(kx,"ii"),lc=kx,Tx=a((e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e)),"ai"),a(Lx,"oi"),Dn=class extends Error{name="InvalidDocError";constructor(t){super(Lx(t)),this.doc=t}},a(Dn,"lr"),t2=Dn,Tr=r2=a((()=>{}),"rn"),sc=r2,a(bt,"k"),a(n2,"nn"),a(ue,"_"),a(Bx,"sn"),a(Mx,"an"),a(o2,"At"),a(Ii,"ge"),a(_x,"on"),fe={type:Mr},Ee={type:Mr,soft:!0},Q=[{type:Mr,hard:!0},Da={type:qi}],$x=[{type:Mr,hard:!0,literal:!0},Da],a(Jn,"q"),zx=a(((e,t,r)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)}),"ci"),xa=zx,a(uc,"Dt"),a(Ox,"pi"),a(Nx,"ln"),a(ot,"B"),Si="'",y5='"',a(jx,"hi"),Vx=jx,a(qx,"cr"),a(xn=class{constructor(t){Rx(this,rt),Ax(this,rt,new Set(t))}getLeadingWhitespaceCount(t){let r=er(this,rt),n=0;for(let o=0;o=0&&r.has(t.charAt(o));o--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return er(this,rt).has(t.charAt(0))}hasTrailingWhitespace(t){return er(this,rt).has(xa(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${qx([...er(this,rt)].join(""))}]+`,o=new RegExp(r?`(${n})`:n,"u");return t.split(o)}hasWhitespaceCharacter(t){let r=er(this,rt);return Array.prototype.some.call(t,(n=>r.has(n)))}hasNonWhitespaceCharacter(t){let r=er(this,rt);return Array.prototype.some.call(t,(n=>!r.has(n)))}isWhitespaceOnly(t){let r=er(this,rt);return Array.prototype.every.call(t,(n=>r.has(n)))}},"pr"),Wx=xn,rt=new WeakMap,Xx=new Wx(["\t","\n","\f","\r"," "]),wt=Xx,Cn=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},a(Cn,"hr"),Kx=Cn,a(Zx,"di"),Wi=Zx,Jx=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Qx=new Set(["if","else if","for","switch","case"]),a(a2,"fn"),a2.ignoredProperties=Jx,eC=a2,a(tC,"Si"),rC=tC,a(Ui,"Ce"),a(Qn,"j"),a(at,"T"),a(nC,"_i"),oC=nC,aC=a((e=>String(e).split(/[/\\]/u).pop()),"Ei"),a(D5,"Sn"),a(iC,"Ai"),a(lC,"Di"),Gi=lC,sC="inline",uC={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},cC="normal",pC={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},a(dC,"vi"),ba=dC,fC=a((e=>Oe(!1,e,/^[\t\f\r ]*\n/gu,"")),"yi"),i2=a((e=>fC(wt.trimEnd(e))),"mr"),hC=a((e=>{let t=e,r=wt.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=wt.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}}),"vn"),a(l2,"yt"),a(Xi,"Ee"),a(mC,"wi"),a(Ye,"$"),a(It,"U"),a(gC,"yn"),a(vC,"wn"),a(s2,"fr"),a(wC,"bn"),a(bC,"Tn"),a(yC,"xn"),a(Ri,"Qe"),a(DC,"kn"),a(u2,"dr"),a(Vu,"wt"),a(xC,"bi"),a(c2,"Bn"),a(p2,"Ln"),a(d2,"Fn"),a(f2,"Nn"),a(cc,"bt"),a(CC,"Ti"),a(h2,"Pn"),a(EC,"xi"),a(SC,"ki"),a(RC,"Bi"),a(x5,"gr"),a(Ca,"Xe"),a(AC,"Li"),a(FC,"Fi"),a(kC,"Ni"),a(TC,"Pi"),a(LC,"Ii"),a(Zn,"_e"),a(IC,"Ri"),a(BC,"In"),a(m2,"Rn"),a(MC,"$i"),a(g2,"Cr"),a(v2,"Sr"),a(or,"P"),_C=new Set(["template","style","script"]),a(Yi,"Je"),a(eo,"Ae"),a(pc,"Tt"),a(PC,"$n"),a(HC,"On"),a(w2,"xt"),a(b2,"kt"),y2=/\{\{(.+?)\}\}/su,a($C,"Mn"),a(dc,"Er"),zC=dc({parser:"__ng_action"}),OC=dc({parser:"__ng_binding"}),NC=dc({parser:"__ng_directive"}),a(jC,"Vi"),VC=jC,a(qC,"Ui"),WC=qC,a(C5,"Vn"),UC=/^[ \t\n\r\u000c]+/,GC=/^[, \t\n\r\u000c]+/,XC=/^[^ \t\n\r\u000c]+/,YC=/[,]+$/,E5=/^\d+$/,KC=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,a(ZC,"Ki"),JC=ZC,a(QC,"Qi"),D2={width:"w",height:"h",density:"x"},eE=Object.keys(D2),a(tE,"Ji"),rE=QC,a(nE,"Yn"),qu=new WeakMap,a(oE,"Zi"),fc=oE,a(aE,"jn"),a(iE,"Kn"),a(lE,"Qn"),a(sE,"Xn"),a(uE,"ea"),a(cE,"ta"),a(pE,"ra"),a(dE,"na"),a(x2,"Jn"),fE=cE,a(hE,"sa"),a(mE,"ia"),gE=hE,C2=new Proxy((()=>{}),{get:a((()=>C2),"get")}),E2=C2,a(vE,"aa"),hc=vE,a(Ki,"se"),a(Zi,"ie"),a(Ku,"Ze"),a(wE,"oa"),a(ma,"De"),a(bE,"ua"),a(Lr,"W"),a(mc,"Bt"),a(Ea,"ve"),a(S2,"rs"),a(Ir,"K"),a(Sa,"ye"),a(ya,"we"),a(Ji,"et"),a(yE,"la"),a(Qi,"tt"),a(DE,"ca"),a(xE,"pa"),a(Zu,"rt"),a(ga,"be"),a(Br,"z"),a(gc,"Lt"),a(vc,"Ft"),a(CE,"ha"),R2=CE,EE=new Set(["if","else if","for","switch","case"]),a(SE,"fa"),RE=SE,pa=null,a(va,"st"),10;for(let e=0;e<=10;e++)va();var e;a(FE,"vr"),a(kE,"ga"),BE=kE({"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]}),ME=BE,a(_E,"os"),a(PE,"us"),HE=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]),a(A2,"cs"),a(da,"it"),a(Ai,"Pt"),a(wc,"He"),a($E,"ps"),a(F2,"hs"),a(zE,"_a"),a(OE,"ms"),a(NE,"fs"),a(jE,"ds"),a(VE,"gs"),a(Bi,"at"),a(bc,"It"),a(Mi,"ot"),a(qE,"Cs"),a(yc,"Rt"),a(S5,"yr"),a(Wu,"$t"),WE=/-+([a-z0-9])/g,a(UE,"_s"),a(Rr=class{constructor(t,r,n,o){this.file=t,this.offset=r,this.line=n,this.col=o}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,o=this.offset,i=this.line,l=this.col;for(;o>0&&t<0;)if(o--,t++,10==r.charCodeAt(o)){i--;let u=r.substring(0,o-1).lastIndexOf("\n");l=u>0?o-u:o}else l--;for(;o0;){let u=r.charCodeAt(o);o++,t--,10==u?(i++,l=0):l++}return new Rr(this.file,o,i,l)}getContext(t,r){let n=this.file.content,o=this.offset;if(null!=o){o>n.length-1&&(o=n.length-1);let i=o,l=0,u=0;for(;l0&&(o--,l++,"\n"!=n[o]||++u!=r););for(l=0,u=0;l]${t.after}")`:this.msg}toString(){let t=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${t}`}},"Ue"),T2=Rn,GE=[YE,KE,JE,eS,tS,oS,rS,nS,aS,QE],a(XE,"Da"),a(YE,"va"),a(KE,"ya"),a(ZE,"wa"),a(JE,"ba"),a(QE,"Ta"),a(eS,"xa"),a(tS,"ka"),a(rS,"Ba"),a(nS,"La"),a(oS,"Fa"),a(aS,"Na"),iS=XE,a(lS,"Pa"),uS={preprocess:iS,print:lS,insertPragma:PE,massageAstNode:eC,embed:RE,getVisitorKeys:ME},cS=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],"HTML",dS={bracketSameLine:(R5={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}).bracketSameLine,htmlWhitespaceSensitivity:{category:"HTML",type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:R5.singleAttributePerLine,vueIndentScriptAndStyle:{category:"HTML",type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Z5(L2={},{angular:a((()=>mR),"angular"),html:a((()=>hR),"html"),lwc:a((()=>vR),"lwc"),vue:a((()=>gR),"vue")}),new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(F5||(F5={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(k5||(k5={})),function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"}(T5||(T5={})),L5={name:"custom-elements"},I5={name:"no-errors-schema"},function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(Sr||(Sr={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(B5||(B5={})),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(nt||(nt={})),a(el,"ut"),a(M5,"xr"),a(_5,"kr"),a(Ti,"We"),a(Pi,"ze"),a(P5,"Br"),a(Fi,"Mt"),a(An=class{},"Ht"),fS=An,"boolean","number","string","object",wS=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],I2=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),bS=Array.from(I2).reduce(((e,[t,r])=>(e.set(t,r),e)),new Map),a(Fn=class extends fS{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,wS.forEach((t=>{let r=new Map,n=new Set,[o,i]=t.split("|"),l=i.split(","),[u,c]=o.split("^");u.split(",").forEach((d=>{this._schema.set(d.toLowerCase(),r),this._eventSchema.set(d.toLowerCase(),n)}));let p=c&&this._schema.get(c.toLowerCase());if(p){for(let[d,h]of p)r.set(d,h);for(let d of this._eventSchema.get(c.toLowerCase()))n.add(d)}l.forEach((d=>{if(d.length>0)switch(d[0]){case"*":n.add(d.substring(1));break;case"!":r.set(d.substring(1),"boolean");break;case"#":r.set(d.substring(1),"number");break;case"%":r.set(d.substring(1),"object");break;default:r.set(d,"string")}}))}))}hasProperty(t,r,n){if(n.some((o=>o.name===I5.name)))return!0;if(t.indexOf("-")>-1){if(M5(t)||_5(t))return!1;if(n.some((o=>o.name===L5.name)))return!0}return(this._schema.get(t.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(t,r){return!!(r.some((n=>n.name===I5.name))||t.indexOf("-")>-1&&(M5(t)||_5(t)||r.some((n=>n.name===L5.name))))||this._schema.has(t.toLowerCase())}securityContext(t,r,n){n&&(r=this.getMappedPropName(r)),t=t.toLowerCase(),r=r.toLowerCase();let o=P5()[t+"|"+r];return o||(o=P5()["*|"+r],o||Sr.NONE)}getMappedPropName(t){return I2.get(t)??t}getDefaultComponentElementName(){return"ng-component"}validateProperty(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${t}' is disallowed for security reasons, please use (${t.slice(2)})=...\nIf '${t}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${t}' is disallowed for security reasons, please use (${t.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(t){let r=this._schema.get(t.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map((n=>bS.get(n)??n))}allKnownEventsOfElement(t){return Array.from(this._eventSchema.get(t.toLowerCase())??[])}normalizeAnimationStyleProperty(t){return UE(t)}normalizeAnimationStyleValue(t,r,n){let o="",i=n.toString().trim(),l=null;if(DS(t)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&(l=`Please provide a CSS unit value for ${r}:${n}`)}return{error:l,value:i+o}}},"Vt"),yS=Fn,a(DS,"Ua"),a(kn=class{constructor({closedByChildren:t,implicitNamespacePrefix:r,contentType:n=nt.PARSABLE_DATA,closedByParent:o=!1,isVoid:i=!1,ignoreFirstLf:l=!1,preventNamespaceInheritance:u=!1,canSelfClose:c=!1}={}){this.closedByChildren={},this.closedByParent=!1,t&&t.length>0&&t.forEach((p=>this.closedByChildren[p]=!0)),this.isVoid=i,this.closedByParent=o||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=l,this.preventNamespaceInheritance=u,this.canSelfClose=c??i}isClosedByChild(t){return this.isVoid||t.toLowerCase()in this.closedByChildren}getContentType(t){return"object"==typeof this.contentType?(void 0===t?void 0:this.contentType[t])??this.contentType.default:this.contentType}},"m"),O=kn,a(Qu,"Ge"),a(Tn=class{constructor(t,r){this.sourceSpan=t,this.i18n=r}},"oe"),to=Tn,a(Ln=class extends to{constructor(t,r,n,o){super(r,o),this.value=t,this.tokens=n,this.type="text"}visit(t,r){return t.visitText(this,r)}},"Ut"),xS=Ln,a(In=class extends to{constructor(t,r,n,o){super(r,o),this.value=t,this.tokens=n,this.type="cdata"}visit(t,r){return t.visitCdata(this,r)}},"Wt"),CS=In,a(Bn=class extends to{constructor(t,r,n,o,i,l){super(o,l),this.switchValue=t,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(t,r){return t.visitExpansion(this,r)}},"zt"),ES=Bn,a(Mn=class{constructor(t,r,n,o,i){this.value=t,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=o,this.expSourceSpan=i,this.type="expansionCase"}visit(t,r){return t.visitExpansionCase(this,r)}},"Gt"),SS=Mn,a(_n=class extends to{constructor(t,r,n,o,i,l,u){super(n,u),this.name=t,this.value=r,this.keySpan=o,this.valueSpan=i,this.valueTokens=l,this.type="attribute"}visit(t,r){return t.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},"Yt"),RS=_n,a(Pn=class extends to{constructor(t,r,n,o,i,l=null,u=null,c){super(o,c),this.name=t,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=l,this.nameSpan=u,this.type="element"}visit(t,r){return t.visitElement(this,r)}},"G"),tr=Pn,a(Hn=class{constructor(t,r){this.value=t,this.sourceSpan=r,this.type="comment"}visit(t,r){return t.visitComment(this,r)}},"jt"),AS=Hn,a($n=class{constructor(t,r){this.value=t,this.sourceSpan=r,this.type="docType"}visit(t,r){return t.visitDocType(this,r)}},"Kt"),FS=$n,a(zn=class extends to{constructor(t,r,n,o,i,l,u=null,c){super(o,c),this.name=t,this.parameters=r,this.children=n,this.nameSpan=i,this.startSourceSpan=l,this.endSourceSpan=u,this.type="block"}visit(t,r){return t.visitBlock(this,r)}},"Z"),bn=zn,a(On=class{constructor(t,r){this.expression=t,this.sourceSpan=r,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(t,r){return t.visitBlockParameter(this,r)}},"ct"),$5=On,a(Nn=class{constructor(t,r,n,o,i){this.name=t,this.value=r,this.sourceSpan=n,this.nameSpan=o,this.valueSpan=i,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(t,r){return t.visitLetDeclaration(this,r)}},"pt"),z5=Nn,a(B2,"Qt"),jn=class{constructor(){}visitElement(t,r){this.visitChildren(r,(n=>{n(t.attrs),n(t.children)}))}visitAttribute(t,r){}visitText(t,r){}visitCdata(t,r){}visitComment(t,r){}visitDocType(t,r){}visitExpansion(t,r){return this.visitChildren(r,(n=>{n(t.cases)}))}visitExpansionCase(t,r){}visitBlock(t,r){this.visitChildren(r,(n=>{n(t.parameters),n(t.children)}))}visitBlockParameter(t,r){}visitLetDeclaration(t,r){}visitChildren(t,r){let n=[],o=this;function i(l){l&&n.push(B2(o,l,t))}return a(i,"i"),r(i),Array.prototype.concat.apply([],n)}},a(jn,"ht"),kS=jn,"",(Hi={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"}).ngsp="",LS=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],a(IS,"Ls"),a(Ar=class{static fromArray(t){return t?(IS("interpolation",t),new Ar(t[0],t[1])):M2}constructor(t,r){this.start=t,this.end=r}},"t"),M2=new Ar("{{","}}"),a(Vn=class extends T2{constructor(t,r,n){super(n,t),this.tokenType=r}},"ft"),Uu=Vn,a(qn=class{constructor(t,r,n){this.tokens=t,this.errors=r,this.nonNormalizedIcuExpressions=n}},"$r"),MS=qn,a(_S,"Ws"),PS=/\r\n?/g,a(yn,"je"),a(O5,"Rs"),a(HS,"ho"),function(e){e.HEX="hexadecimal",e.DEC="decimal"}($i||($i={})),a(Wn=class{constructor(t){this.error=t}},"dt"),Gu=Wn,a(Un=class{constructor(t,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||M2,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map((i=>i.codePointAt(0)||0)),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let o=n.range||{endPos:t.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new WS(t,o):new _2(t,o),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(t){return this._preserveLineEndings?t:t.replace(PS,"\n")}tokenize(){for(;0!==this._cursor.peek();){let t=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(t):this._attemptStr("--")?this._consumeComment(t):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(t):this._consumeBogusComment(t);else if(this._attemptCharCode(47))this._consumeTagClose(t);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(t)):this._consumeTagOpen(t)}else this._tokenizeLet&&64===this._cursor.peek()&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(t):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(t):!this._tokenizeBlocks||this._inInterpolation||this._isInExpansionCase()||this._isInExpansionForm()||!this._attemptCharCode(125)?this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,(()=>this._isTextEnd()),(()=>this._isTagStart())):this._consumeBlockEnd(t)}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let t=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn((n=>Bi(n)?!t:!V5(n)||(t=!0,!1))),this._cursor.getChars(r).trim()}_consumeBlockStart(t){this._beginToken(25,t);let r=this._endToken([this._getBlockName()]);if(40===this._cursor.peek()){if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(ie),!this._attemptCharCode(41))return void(r.type=29);this._attemptCharCodeUntilFn(ie)}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(t){this._beginToken(27,t),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(q5);41!==this._cursor.peek()&&0!==this._cursor.peek();){this._beginToken(28);let t=this._cursor.clone(),r=null,n=0;for(;59!==this._cursor.peek()&&0!==this._cursor.peek()||null!==r;){let o=this._cursor.peek();if(92===o)this._cursor.advance();else if(o===r)r=null;else if(null===r&&Wu(o))r=o;else if(40===o&&null===r)n++;else if(41===o&&null===r){if(0===n)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(t)]),this._attemptCharCodeUntilFn(q5)}}_consumeLetDeclaration(t){if(this._beginToken(30,t),!Bi(this._cursor.peek())){return void(this._endToken([this._cursor.getChars(t)]).type=33)}this._attemptCharCodeUntilFn(ie);let r=this._endToken([this._getLetDeclarationName()]);this._attemptCharCodeUntilFn(ie),this._attemptCharCode(61)?(this._attemptCharCodeUntilFn((n=>ie(n)&&!yc(n))),this._consumeLetDeclarationValue(),59===this._cursor.peek()?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(t))):r.type=33}_getLetDeclarationName(){let t=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn((n=>!(Mi(n)||36==n||95===n||r&&bc(n))||(r=!0,!1))),this._cursor.getChars(t).trim()}_consumeLetDeclarationValue(){let t=this._cursor.clone();for(this._beginToken(31,t);0!==this._cursor.peek();){let r=this._cursor.peek();if(59===r)break;Wu(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn((n=>92===n?(this._cursor.advance(),!1):n===r))),this._cursor.advance()}this._endToken([this._cursor.getChars(t)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(jS(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._cursor.peek()){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(t,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=t}_endToken(t,r){if(null===this._currentTokenStart)throw new Uu("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(null===this._currentTokenType)throw new Uu("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:t,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(t,r){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');let n=new Uu(t,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new Gu(n)}handleError(t){if(t instanceof Dc&&(t=this._createError(t.msg,this._cursor.getSpan(t.cursor))),!(t instanceof Gu))throw t;this.errors.push(t.error)}_attemptCharCode(t){return this._cursor.peek()===t&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(t){return!!VS(this._cursor.peek(),t)&&(this._cursor.advance(),!0)}_requireCharCode(t){let r=this._cursor.clone();if(!this._attemptCharCode(t))throw this._createError(yn(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(t){let r=t.length;if(this._cursor.charsLeft()this._attemptStr("--\x3e"))),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}_consumeBogusComment(t){this._beginToken(10,t),this._endToken([]),this._consumeRawText(!1,(()=>62===this._cursor.peek())),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(t){this._beginToken(12,t),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("]]>"))),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(t){this._beginToken(18,t),this._endToken([]),this._consumeRawText(!1,(()=>62===this._cursor.peek())),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let n,t=this._cursor.clone(),r="";for(;58!==this._cursor.peek()&&!zS(this._cursor.peek());)this._cursor.advance();return 58===this._cursor.peek()?(r=this._cursor.getChars(t),this._cursor.advance(),n=this._cursor.clone()):n=t,this._requireCharCodeUntilFn(N5,""===r?0:1),[r,this._cursor.getChars(n)]}_consumeTagOpen(t){let r,n,o,i=[];try{if(!Mi(this._cursor.peek()))throw this._createError(yn(this._cursor.peek()),this._cursor.getSpan(t));for(o=this._consumeTagOpenStart(t),n=o.parts[0],r=o.parts[1],this._attemptCharCodeUntilFn(ie);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();){let[u,c]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(ie),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(ie);let p=this._consumeAttributeValue();i.push({prefix:u,name:c,value:p})}else i.push({prefix:u,name:c});this._attemptCharCodeUntilFn(ie)}this._consumeTagOpenEnd()}catch(u){if(u instanceof Gu)return void(o?o.type=4:(this._beginToken(5,t),this._endToken(["<"])));throw u}if(this._canSelfClose&&2===this.tokens[this.tokens.length-1].type)return;let l=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),l===nt.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):l===nt.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(t,r,n){this._consumeRawText(n,(()=>!!(this._attemptCharCode(60)&&this._attemptCharCode(47)&&(this._attemptCharCodeUntilFn(ie),this._attemptStrCaseInsensitive(t?`${t}:${r}`:r)))&&(this._attemptCharCodeUntilFn(ie),this._attemptCharCode(62)))),this._beginToken(3),this._requireCharCodeUntilFn((o=>62===o),3),this._cursor.advance(),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}_consumeTagOpenStart(t){this._beginToken(0,t);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let t=this._cursor.peek();if(39===t||34===t)throw this._createError(yn(t),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let t;if(39===this._cursor.peek()||34===this._cursor.peek()){let r=this._cursor.peek();this._consumeQuote(r);let n=a((()=>this._cursor.peek()===r),"n");t=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=a((()=>N5(this._cursor.peek())),"r");t=this._consumeWithInterpolation(16,17,r,r)}return t}_consumeQuote(t){this._beginToken(15),this._requireCharCode(t),this._endToken([String.fromCodePoint(t)])}_consumeTagOpenEnd(){let t=this._attemptCharCode(47)?2:1;this._beginToken(t),this._requireCharCode(62),this._endToken([])}_consumeTagClose(t){if(this._beginToken(3,t),this._attemptCharCodeUntilFn(ie),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(ie),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ie),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let t=this._readUntil(44),r=this._processCarriageReturns(t);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let o=this._endToken([t]);r!==t&&this.nonNormalizedIcuExpressions.push(o)}this._requireCharCode(44),this._attemptCharCodeUntilFn(ie),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(ie)}_consumeExpansionCaseStart(){this._beginToken(21);let t=this._readUntil(123).trim();this._endToken([t]),this._attemptCharCodeUntilFn(ie),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(ie),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(ie),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(t,r,n,o){this._beginToken(t);let i=[];for(;!n();){let u=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],u),i.length=0,this._consumeInterpolation(r,u,o),this._beginToken(t)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(t),this._beginToken(t)):i.push(this._readChar())}this._inInterpolation=!1;let l=this._processCarriageReturns(i.join(""));return this._endToken([l]),l}_consumeInterpolation(t,r,n){let o=[];this._beginToken(t,r),o.push(this._interpolationConfig.start);let i=this._cursor.clone(),l=null,u=!1;for(;0!==this._cursor.peek()&&(null===n||!n());){let c=this._cursor.clone();if(this._isTagStart())return this._cursor=c,o.push(this._getProcessedChars(i,c)),void this._endToken(o);if(null===l){if(this._attemptStr(this._interpolationConfig.end))return o.push(this._getProcessedChars(i,c)),o.push(this._interpolationConfig.end),void this._endToken(o);this._attemptStr("//")&&(u=!0)}let p=this._cursor.peek();this._cursor.advance(),92===p?this._cursor.advance():p===l?l=null:!u&&null===l&&Wu(p)&&(l=p)}o.push(this._getProcessedChars(i,this._cursor)),this._endToken(o)}_getProcessedChars(t,r){return this._processCarriageReturns(r.getChars(t))}_isTextEnd(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||125===this._cursor.peek()&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||64===this._cursor.peek()||125===this._cursor.peek()))}_isTagStart(){if(60===this._cursor.peek()){let t=this._cursor.clone();t.advance();let r=t.peek();if(97<=r&&r<=122||65<=r&&r<=90||47===r||33===r)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&64===this._cursor.peek()){let t=this._cursor.clone();if(t.advance(),V5(t.peek()))return!0}return!1}_readUntil(t){let r=this._cursor.clone();return this._attemptUntilChar(t),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&22===this._expansionCaseStack[this._expansionCaseStack.length-1]}_isInExpansionForm(){return this._expansionCaseStack.length>0&&20===this._expansionCaseStack[this._expansionCaseStack.length-1]}isExpansionFormStart(){if(123!==this._cursor.peek())return!1;if(this._interpolationConfig){let t=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=t,!r}return!0}_handleFullNameStackForTagOpen(t,r){let n=Pi(t,r);(0===this._fullNameStack.length||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(t,r){let n=Pi(t,r);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}},"Or"),$S=Un,a(ie,"b"),a(N5,"$s"),a(zS,"mo"),a(OS,"fo"),a(NS,"go"),a(jS,"Co"),a(VS,"So"),a(j5,"Os"),a(V5,"Ms"),a(q5,"qs"),a(qS,"_o"),a(rr=class{constructor(t,r){if(t instanceof rr){this.file=t.file,this.input=t.input,this.end=t.end;let n=t.state;this.state={peek:n.peek,offset:n.offset,line:n.line,column:n.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new rr(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(t){return this.state.offset-t.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(t,r){let n=t=t||this;if(r)for(;this.diff(t)>0&&-1!==r.indexOf(t.peek());)n===t&&(t=t.clone()),t.advance();let o=this.locationFromCursor(t),i=this.locationFromCursor(this),l=n!==t?this.locationFromCursor(n):o;return new j(o,i,l)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new Dc('Unexpected character "EOF"',this);let r=this.charAt(t.offset);10===r?(t.line++,t.column=0):yc(r)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new Ju(t.file,t.state.offset,t.state.line,t.state.column)}},"t"),_2=rr,a(nr=class extends _2{constructor(t,r){t instanceof nr?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new nr(this)}getChars(t){let r=t.clone(),n="";for(;r.internalState.offsetthis.internalState.peek),"e");if(92===t())if(this.internalState={...this.state},this.advanceState(this.internalState),110===t())this.state.peek=10;else if(114===t())this.state.peek=13;else if(118===t())this.state.peek=11;else if(116===t())this.state.peek=9;else if(98===t())this.state.peek=8;else if(102===t())this.state.peek=12;else if(117===t())if(this.advanceState(this.internalState),123===t()){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;125!==t();)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(120===t()){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(S5(t())){let r="",n=0,o=this.clone();for(;S5(t())&&n<3;)o=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=o.internalState}else yc(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,r){let n=this.input.slice(t.internalState.offset,t.internalState.offset+r),o=parseInt(n,16);if(isNaN(o))throw t.state=t.internalState,new Dc("Invalid hexadecimal escape sequence",t);return o}},"t"),WS=nr,a(Gn=class{constructor(t,r){this.msg=t,this.cursor=r}},"gt"),Dc=Gn,a(Fr=class extends T2{static create(t,r,n){return new Fr(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},"t"),Ae=Fr,a(Xn=class{constructor(t,r){this.rootNodes=t,this.errors=r}},"Vr"),US=Xn,a(Yn=class{constructor(t){this.getTagDefinition=t}parse(t,r,n,o=!1,i){let l=a((b=>(m,...g)=>b(m.toLowerCase(),...g)),"a"),u=o?this.getTagDefinition:l(this.getTagDefinition),c=a((b=>u(b).getContentType()),"u"),p=o?i:l(i),d=_S(t,r,i?(b,m,g,y)=>{let w=p(b,m,g,y);return void 0!==w?w:c(b)}:c,n),h=n&&n.canSelfClose||!1,f=n&&n.allowHtmComponentClosingTags||!1,v=new XS(d.tokens,u,h,f,o);return v.build(),new US(v.rootNodes,d.errors.concat(v.errors))}},"nr"),GS=Yn,a(kr=class{constructor(t,r,n,o,i){this.tokens=t,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=o,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;34!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeStartTag(this._advance()):3===this._peek.type?(this._closeVoidElement(),this._consumeEndTag(this._advance())):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):20===this._peek.type?this._consumeExpansion(this._advance()):25===this._peek.type?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):27===this._peek.type?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):29===this._peek.type?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):30===this._peek.type?(this._closeVoidElement(),this._consumeLet(this._advance())):18===this._peek.type?this._consumeDocType(this._advance()):33===this._peek.type?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let t of this._containerStack)t instanceof bn&&this.errors.push(Ae.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let l=new j(t.sourceSpan.start,o.sourceSpan.end,t.sourceSpan.fullStart),u=new j(r.sourceSpan.start,o.sourceSpan.end,r.sourceSpan.fullStart);return new SS(t.parts[0],i.rootNodes,l,t.sourceSpan,u)}_collectExpansionExpTokens(t){let r=[],n=[22];for(;;){if((20===this._peek.type||22===this._peek.type)&&n.push(this._peek.type),23===this._peek.type){if(!W5(n,22))return this.errors.push(Ae.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0===n.length)return r}if(24===this._peek.type){if(!W5(n,20))return this.errors.push(Ae.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(34===this._peek.type)return this.errors.push(Ae.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(t){let r=t.parts[0];if(r.length>0&&"\n"==r[0]){let n=this._getClosestParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(t){let r=[t],n=t.sourceSpan,o=t.parts[0];if(o.length>0&&"\n"===o[0]){let i=this._getContainer();null!=i&&0===i.children.length&&this.getTagDefinition(i.name).ignoreFirstLf&&(o=o.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[o]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)t=this._advance(),r.push(t),8===t.type?o+=t.parts.join("").replace(/&([^;]+);/g,U5):9===t.type?o+=t.parts[0]:o+=t.parts.join("");if(o.length>0){let i=t.sourceSpan;this._addToParent(new xS(o,new j(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let t=this._getContainer();t instanceof tr&&this.getTagDefinition(t.name).isVoid&&this._containerStack.pop()}_consumeStartTag(t){let[r,n]=t.parts,o=[];for(;14===this._peek.type;)o.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),l=!1;if(2===this._peek.type){this._advance(),l=!0;let v=this.getTagDefinition(i);this.canSelfClose||v.canSelfClose||null!==Ti(i)||v.isVoid||this.errors.push(Ae.create(i,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else 1===this._peek.type&&(this._advance(),l=!1);let u=this._peek.sourceSpan.fullStart,c=new j(t.sourceSpan.start,u,t.sourceSpan.fullStart),p=new j(t.sourceSpan.start,u,t.sourceSpan.fullStart),d=new j(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),h=new tr(i,o,[],c,p,void 0,d),f=this._getContainer();this._pushContainer(h,f instanceof tr&&this.getTagDefinition(f.name).isClosedByChild(h.name)),l?this._popContainer(i,tr,c):4===t.type&&(this._popContainer(i,tr,null),this.errors.push(Ae.create(i,c,`Opening tag "${i}" not terminated.`)))}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeEndTag(t){let r=this.allowHtmComponentClosingTags&&0===t.parts.length?null:this._getElementFullName(t.parts[0],t.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(Ae.create(r,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(r,tr,t.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Ae.create(r,t.sourceSpan,n))}}_popContainer(t,r,n){let o=!1;for(let i=this._containerStack.length-1;i>=0;i--){let l=this._containerStack[i];if(Ti(l.name)?l.name===t:(null==t||l.name.toLowerCase()===t.toLowerCase())&&l instanceof r)return l.endSourceSpan=n,l.sourceSpan.end=null!==n?n.end:l.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!o;(l instanceof bn||l instanceof tr&&!this.getTagDefinition(l.name).closedByParent)&&(o=!0)}return!1}_consumeAttr(t){let o,r=Pi(t.parts[0],t.parts[1]),n=t.sourceSpan.end;15===this._peek.type&&(o=this._advance());let u,c,i="",l=[];if(16===this._peek.type)for(u=this._peek.sourceSpan,c=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){let d=this._advance();l.push(d),17===d.type?i+=d.parts.join("").replace(/&([^;]+);/g,U5):9===d.type?i+=d.parts[0]:i+=d.parts.join(""),c=n=d.sourceSpan.end}15===this._peek.type&&(c=n=this._advance().sourceSpan.end);let p=u&&c&&new j(o?.sourceSpan.start??u.start,c,o?.sourceSpan.fullStart??u.fullStart);return new RS(r,i,new j(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,p,l.length>0?l:void 0,void 0)}_consumeBlockOpen(t){let r=[];for(;28===this._peek.type;){let u=this._advance();r.push(new $5(u.parts[0],u.sourceSpan))}26===this._peek.type&&this._advance();let n=this._peek.sourceSpan.fullStart,o=new j(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new j(t.sourceSpan.start,n,t.sourceSpan.fullStart),l=new bn(t.parts[0],r,[],o,t.sourceSpan,i);this._pushContainer(l,!1)}_consumeBlockClose(t){this._popContainer(null,bn,t.sourceSpan)||this.errors.push(Ae.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(t){let r=[];for(;28===this._peek.type;){let u=this._advance();r.push(new $5(u.parts[0],u.sourceSpan))}let n=this._peek.sourceSpan.fullStart,o=new j(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new j(t.sourceSpan.start,n,t.sourceSpan.fullStart),l=new bn(t.parts[0],r,[],o,t.sourceSpan,i);this._pushContainer(l,!1),this._popContainer(null,bn,null),this.errors.push(Ae.create(t.parts[0],o,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(t){let n,o,r=t.parts[0];if(31!==this._peek.type)return void this.errors.push(Ae.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));if(n=this._advance(),32!==this._peek.type)return void this.errors.push(Ae.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));o=this._advance();let i=o.sourceSpan.fullStart,l=new j(t.sourceSpan.start,i,t.sourceSpan.fullStart),u=t.sourceSpan.toString().lastIndexOf(r),c=t.sourceSpan.start.moveBy(u),p=new j(c,t.sourceSpan.end),d=new z5(r,n.parts[0],l,p,n.sourceSpan);this._addToParent(d)}_consumeIncompleteLet(t){let r=t.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let o=t.sourceSpan.toString().lastIndexOf(r),i=t.sourceSpan.start.moveBy(o),l=new j(i,t.sourceSpan.end),u=new j(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),c=new z5(r,"",t.sourceSpan,l,u);this._addToParent(c)}this.errors.push(Ae.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let t=this._containerStack.length-1;t>-1;t--)if(this._containerStack[t]instanceof tr)return this._containerStack[t];return null}_addToParent(t){let r=this._getContainer();null===r?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r,n){if(""===t&&(""===(t=this.getTagDefinition(r).implicitNamespacePrefix||"")&&null!=n)){let o=el(n.name)[1];this.getTagDefinition(o).preventNamespaceInheritance||(t=Ti(n.name))}return Pi(t,r)}},"t"),XS=kr,a(W5,"zs"),a(U5,"Gs"),a(Kn=class extends GS{constructor(){super(Qu)}parse(t,r,n,o=!1,i){return super.parse(t,r,n,o,i)}},"sr"),YS=Kn,Xu=null,KS=a((()=>(Xu||(Xu=new YS),Xu)),"Eo"),a(G5,"zr"),a(ZS,"Ao"),JS=ZS,ha=3,a(QS,"Do"),a(eR,"vo"),tR=eR,ki={attrs:!0,children:!0,cases:!0,expression:!0},X5=new Set(["parent"]),a(vt=class{constructor(t={}){for(let r of new Set([...X5,...Object.keys(t)]))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in ki&&(r=r.map((n=>this.createChild(n)))),!X5.has(t))return void(this[t]=r);Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in ki){let o=this[n];if(o){let i=nR(o,(l=>l.map(t)));r!==o&&(r||(r=new vt({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in ki||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in ki){let n=this[r];if(n)for(let o=0;o[t.fullName,t.value])))}},"t"),rR=vt,a(nR,"yo"),oR=[{regex:/^(\[if([^\]]*)\]>)(.*?)"html"!==e.toLowerCase()&&!r&&("template"!==e||n.some((({name:o,value:i})=>"lang"===o&&"html"!==i&&""!==i&&void 0!==i)))}),vR=tl({name:"lwc",canSelfClose:!1}),wR={html:uS},z2=Q5}));function _t(){}function IR(e,t,r,n,o){for(var l,i=[];t;)i.push(t),l=t.previousComponent,delete t.previousComponent,t=l;i.reverse();for(var u=0,c=i.length,p=0,d=0;um.length?y:m})),h.value=e.join(v)}else h.value=e.join(r.slice(p,p+h.count));p+=h.count,h.added||(d+=h.count)}}var b=i[c-1];return c>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(i[c-2].value+=b.value,i.pop()),i}function nl(e){return(nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?a((function(t){return typeof t}),"$e"):a((function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}),"$e"))(e)}function Fc(e,t,r,n,o){var i,l;for(t=t||[],r=r||[],n&&(e=n(o,e)),i=0;i=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}function zc(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function xm(e,t){let r;switch(t){case"\n":r=/\n/gu;break;case"\r":r=/\r/gu;break;case"\r\n":r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function $R(e){return pl(!1,e,/\r\n?/gu,"\n")}function zR(e){if("string"==typeof e)return Or;if(Array.isArray(e))return Mt;if(!e)return;let{type:t}=e;return Cm.has(t)?t:void 0}function NR(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(jr(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=OR([...Cm].map((o=>`'${o}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}function VR(e,t,r,n){let o=[e];for(;o.length>0;){let i=o.pop();if(i===V2){r(o.pop());continue}r&&o.push(i,V2);let l=jr(i);if(!l)throw new Do(i);if(!1!==t?.(i))switch(l){case Mt:case xt:{let u=l===Mt?i:i.parts;for(let p=u.length-1;p>=0;--p)o.push(u[p]);break}case Ne:o.push(i.flatContents,i.breakContents);break;case He:if(n&&i.expandedStates)for(let c=i.expandedStates.length-1;c>=0;--c)o.push(i.expandedStates[c]);else o.push(i.contents);break;case Ht:case Pt:case zt:case Ct:case Ot:o.push(i.contents);break;case Or:case Nr:case $t:case Nt:case De:case Ke:break;default:throw new Do(i)}}}function ll(e){return Dt(e),{type:Pt,contents:e}}function xo(e,t){return Dt(t),{type:Ht,contents:t,n:e}}function Sm(e,t={}){return Dt(e),Nc(t.expandedStates,!0),{type:He,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function qR(e){return xo(Number.NEGATIVE_INFINITY,e)}function WR(e){return xo({type:"root"},e)}function UR(e){return xo(-1,e)}function GR(e,t){return Sm(e[0],{...t,expandedStates:e})}function Rm(e){return Nc(e),{type:xt,parts:e}}function XR(e,t="",r={}){return Dt(e),""!==t&&Dt(t),{type:Ne,breakContents:e,flatContents:t,groupId:r.groupId}}function YR(e,t){return Dt(e),{type:zt,contents:e,groupId:t.groupId,negate:t.negate}}function kc(e){return Dt(e),{type:Ot,contents:e}}function Tm(e,t){Dt(e),Nc(t);let r=[];for(let n=0;n0){for(let o=0;o0?`, { ${d.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${h})`}if(i.type===He){let d=[];i.break&&"propagated"!==i.break&&d.push("shouldBreak: true"),i.id&&d.push(`id: ${o(i.id)}`);let h=d.length>0?`, { ${d.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map((f=>n(f))).join(",")}]${h})`:`group(${n(i.contents)}${h})`}if(i.type===xt)return`fill([${i.parts.map((d=>n(d))).join(", ")}])`;if(i.type===Ot)return"lineSuffix("+n(i.contents)+")";if(i.type===Nt)return"lineSuffixBoundary";if(i.type===Ct)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;throw new Error("Unknown doc type "+i.type)}(Bt(e));function o(i){if("symbol"!=typeof i)return JSON.stringify(String(i));if(i in t)return t[i];let l=i.description||"symbol";for(let u=0;;u++){let c=l+(u>0?` #${u}`:"");if(!r.has(c))return r.add(c),t[i]=`Symbol.for(${JSON.stringify(c)})`}}}function nA(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}function oA(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function lA(e){if(!e)return 0;if(!iA.test(e))return e.length;e=e.replace(rA()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=aA(n)?1:2)}return t}function fl(e,t){if("string"==typeof e)return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let l=function o(i){switch(jr(i)){case Mt:return t(i.map(n));case xt:return t({...i,parts:i.parts.map(n)});case Ne:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case He:{let{expandedStates:l,contents:u}=i;return l?(l=l.map(n),u=l[0]):u=n(u),t({...i,contents:u,expandedStates:l})}case Ht:case Pt:case zt:case Ct:case Ot:return t({...i,contents:n(i.contents)});case Or:case Nr:case $t:case Nt:case De:case Ke:return t(i);default:throw new Do(i)}}(i);return r.set(i,l),l}}function qc(e,t,r){let n=r,o=!1;function i(l){if(o)return!1;let u=t(l);void 0!==u&&(o=!0,n=u)}return a(i,"u"),Oc(e,i),n}function sA(e){if(e.type===He&&e.break||e.type===De&&e.hard||e.type===Ke)return!0}function uA(e){return qc(e,sA,!1)}function q2(e){if(e.length>0){let t=he(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function cA(e){let t=new Set,r=[];function n(i){if(i.type===Ke&&q2(r),i.type===He){if(r.push(i),t.has(i))return!1;t.add(i)}}function o(i){i.type===He&&r.pop().break&&q2(r)}a(n,"n"),a(o,"o"),Oc(e,n,o,!0)}function pA(e){return e.type!==De||e.hard?e.type===Ne?e.flatContents:e:e.soft?"":" "}function dA(e){return fl(e,pA)}function W2(e){for(e=[...e];e.length>=2&&he(!1,e,-2).type===De&&he(!1,e,-1).type===Ke;)e.length-=2;if(e.length>0){let t=Aa(he(!1,e,-1));e[e.length-1]=t}return e}function Aa(e){switch(jr(e)){case Pt:case zt:case He:case Ot:case Ct:{let t=Aa(e.contents);return{...e,contents:t}}case Ne:return{...e,breakContents:Aa(e.breakContents),flatContents:Aa(e.flatContents)};case xt:return{...e,parts:W2(e.parts)};case Mt:return W2(e);case Or:return e.replace(/[\n\r]*$/u,"");case Ht:case Nr:case $t:case Nt:case De:case Ke:break;default:throw new Do(e)}return e}function Im(e){return Aa(hA(e))}function fA(e){switch(jr(e)){case xt:if(e.parts.every((t=>""===t)))return"";break;case He:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===He&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ht:case Pt:case zt:case Ot:if(!e.contents)return"";break;case Ne:if(!e.flatContents&&!e.breakContents)return"";break;case Mt:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];"string"==typeof n&&"string"==typeof he(!1,t,-1)?t[t.length-1]+=n:t.push(n),t.push(...o)}return 0===t.length?"":1===t.length?t[0]:t}case Or:case Nr:case $t:case Nt:case De:case Ct:case Ke:break;default:throw new Do(e)}return e}function hA(e){return fl(e,(t=>fA(t)))}function mA(e,t=km){return fl(e,(r=>"string"==typeof r?Tm(t,r.split("\n")):r))}function gA(e){if(e.type===De)return!0}function vA(e){return qc(e,gA,!1)}function Bm(e,t){return e.type===Ct?{...e,contents:t(e.contents)}:t(e)}function Mm(){return{value:"",length:0,queue:[]}}function wA(e,t){return Lc(e,{type:"indent"},t)}function bA(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?Lc(e,{type:"dedent"},r):t?"root"===t.type?{...e,root:e}:Lc(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},r):e}function Lc(e,t,r){let n="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],o="",i=0,l=0,u=0;for(let b of n)switch(b.type){case"indent":d(),r.useTabs?c(1):p(r.tabWidth);break;case"stringAlign":d(),o+=b.n,i+=b.n.length;break;case"numberAlign":l+=1,u+=b.n;break;default:throw new Error(`Unexpected type '${b.type}'`)}return f(),{...e,value:o,length:i,queue:n};function c(b){o+="\t".repeat(b),i+=r.tabWidth*b}function p(b){o+=" ".repeat(b),i+=b}function d(){r.useTabs?function h(){l>0&&c(l),v()}():f()}function f(){u>0&&p(u),v()}function v(){l=0,u=0}}function Ic(e){let t=0,r=0,n=e.length;e:for(;n--;){let o=e[n];if(o!==Fa)for(let i=o.length-1;i>=0;i--){let l=o[i];if(" "!==l&&"\t"!==l){e[n]=o.slice(0,i+1);break e}t++}else r++}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Fa);return t}function rl(e,t,r,n,o,i){if(r===Number.POSITIVE_INFINITY)return!0;let l=t.length,u=[e],c=[];for(;r>=0;){if(0===u.length){if(0===l)return!0;u.push(t[--l]);continue}let{mode:p,doc:d}=u.pop(),h=jr(d);switch(h){case Or:c.push(d),r-=Vc(d);break;case Mt:case xt:{let f=h===Mt?d:d.parts;for(let v=f.length-1;v>=0;v--)u.push({mode:p,doc:f[v]});break}case Pt:case Ht:case zt:case Ct:u.push({mode:p,doc:d.contents});break;case $t:r+=Ic(c);break;case He:{if(i&&d.break)return!1;let f=d.break?Pe:p,v=d.expandedStates&&f===Pe?he(!1,d.expandedStates,-1):d.contents;u.push({mode:f,doc:v});break}case Ne:{let f=(d.groupId?o[d.groupId]||yt:p)===Pe?d.breakContents:d.flatContents;f&&u.push({mode:p,doc:f});break}case De:if(p===Pe||d.hard)return!0;d.soft||(c.push(" "),r--);break;case Ot:n=!0;break;case Nt:if(n)return!1}}return!1}function hl(e,t){let r={},n=t.printWidth,o=zc(t.endOfLine),i=0,l=[{ind:{value:"",length:0,queue:[]},mode:Pe,doc:e}],u=[],c=!1,p=[],d=0;for(cA(e);l.length>0;){let{ind:f,mode:v,doc:b}=l.pop();switch(jr(b)){case Or:{let m="\n"!==o?pl(!1,b,"\n",o):b;u.push(m),l.length>0&&(i+=Vc(m));break}case Mt:for(let m=b.length-1;m>=0;m--)l.push({ind:f,mode:v,doc:b[m]});break;case Nr:if(d>=2)throw new Error("There are too many 'cursor' in doc.");u.push(Fa),d++;break;case Pt:l.push({ind:wA(f,t),mode:v,doc:b.contents});break;case Ht:l.push({ind:bA(f,b.n,t),mode:v,doc:b.contents});break;case $t:i-=Ic(u);break;case He:switch(v){case yt:if(!c){l.push({ind:f,mode:b.break?Pe:yt,doc:b.contents});break}case Pe:{c=!1;let m={ind:f,mode:yt,doc:b.contents},g=n-i,y=p.length>0;if(!b.break&&rl(m,l,g,y,r))l.push(m);else if(b.expandedStates){let w=he(!1,b.expandedStates,-1);if(b.break){l.push({ind:f,mode:Pe,doc:w});break}for(let D=1;D=b.expandedStates.length){l.push({ind:f,mode:Pe,doc:w});break}{let x=b.expandedStates[D],C={ind:f,mode:yt,doc:x};if(rl(C,l,g,y,r)){l.push(C);break}}}}else l.push({ind:f,mode:Pe,doc:b.contents});break}}b.id&&(r[b.id]=he(!1,l,-1).mode);break;case xt:{let m=n-i,{parts:g}=b;if(0===g.length)break;let[y,w]=g,D={ind:f,mode:yt,doc:y},x={ind:f,mode:Pe,doc:y},C=rl(D,[],m,p.length>0,r,!0);if(1===g.length){C?l.push(D):l.push(x);break}let E={ind:f,mode:yt,doc:w},S={ind:f,mode:Pe,doc:w};if(2===g.length){C?l.push(E,D):l.push(S,x);break}g.splice(0,2);let R={ind:f,mode:v,doc:Rm(g)},A=g[0];rl({ind:f,mode:yt,doc:[y,w,A]},[],m,p.length>0,r,!0)?l.push(R,E,D):C?l.push(R,S,D):l.push(R,S,x);break}case Ne:case zt:{let m=b.groupId?r[b.groupId]:v;if(m===Pe){let g=b.type===Ne?b.breakContents:b.negate?b.contents:ll(b.contents);g&&l.push({ind:f,mode:v,doc:g})}if(m===yt){let g=b.type===Ne?b.flatContents:b.negate?ll(b.contents):b.contents;g&&l.push({ind:f,mode:v,doc:g})}break}case Ot:p.push({ind:f,mode:v,doc:b.contents});break;case Nt:p.length>0&&l.push({ind:f,mode:v,doc:jc});break;case De:switch(v){case yt:if(!b.hard){b.soft||(u.push(" "),i+=1);break}c=!0;case Pe:if(p.length>0){l.push({ind:f,mode:v,doc:b},...p.reverse()),p.length=0;break}b.literal?f.root?(u.push(o,f.root.value),i=f.root.length):(u.push(o),i=0):(i-=Ic(u),u.push(o+f.value),i=f.length)}break;case Ct:l.push({ind:f,mode:v,doc:b.contents});break;case Ke:break;default:throw new Do(b)}0===l.length&&p.length>0&&(l.push(...p.reverse()),p.length=0)}let h=u.indexOf(Fa);if(-1!==h){let f=u.indexOf(Fa,h+1),v=u.slice(0,h).join(""),b=u.slice(h+1,f).join("");return{formatted:v+b+u.slice(f+1).join(""),cursorNodeStart:v.length,cursorNodeText:b}}return{formatted:u.join("")}}function yA(e,t,r=0){let n=0;for(let o=r;o!0),"n")}=t,o=a((i=>EA(i)&&n(i)),"o");for(let i of r(e)){let l=e[i];if(Array.isArray(l))for(let u of l)o(u)&&(yield u);else o(l)&&(yield l)}}function*SA(e,t){let r=[e];for(let n=0;n{let o=!(null==n||!n.backwards);if(!1===r)return!1;let{length:i}=t,l=r;for(;l>=0&&l0}function IA(e){return e?t=>e(t,zm):LA}function BA(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function Uc(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=BA(e)}function ro(e,t){t.leading=!0,t.trailing=!1,Uc(e,t)}function Pr(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Uc(e,t)}function no(e,t){t.leading=!1,t.trailing=!0,Uc(e,t)}function Gc(e,t){if(xc.has(e))return xc.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:o},locStart:i,locEnd:l}=t;if(!n)return[];let u=(r?.(e,t)??[...Pm(e,{getVisitorKeys:ml(o)})]).flatMap((c=>n(c)?[c]:Gc(c,t)));return u.sort(((c,p)=>i(c)-i(p)||l(c)-l(p))),xc.set(e,u),u}function Om(e,t,r,n){let p,d,{locStart:o,locEnd:i}=r,l=o(t),u=i(t),c=Gc(e,r),h=0,f=c.length;for(;h>1,b=c[v],m=o(b),g=i(b);if(m<=l&&u<=g)return Om(b,t,r,b);if(g<=l)p=b,h=v+1;else{if(!(u<=m))throw new Error("Comment location overlaps with node location");d=b,f=v}}if("TemplateLiteral"===n?.type){let{quasis:v}=n,b=Ec(v,t,r);p&&Ec(v,p,r)!==b&&(p=null),d&&Ec(v,d,r)!==b&&(d=null)}return{enclosingNode:n,precedingNode:p,followingNode:d}}function MA(e,t){let{comments:r}=e;if(delete e.comments,!TA(r)||!t.printer.canAttachComment)return;let n=[],{locStart:o,locEnd:i,printer:{experimentalFeatures:{avoidAstMutation:l=!1}={},handleComments:u={}},originalText:c}=t,{ownLine:p=Cc,endOfLine:d=Cc,remaining:h=Cc}=u,f=r.map(((v,b)=>({...Om(e,v,t),comment:v,text:c,options:t,ast:e,isLastComment:r.length-1===b})));for(let[v,b]of f.entries()){let S,{comment:m,precedingNode:g,enclosingNode:y,followingNode:w,text:D,options:x,ast:C,isLastComment:E}=b;if("json"===x.parser||"json5"===x.parser||"jsonc"===x.parser||"__js_expression"===x.parser||"__ts_expression"===x.parser||"__vue_expression"===x.parser||"__vue_ts_expression"===x.parser){if(o(m)-o(C)<=0){ro(C,m);continue}if(i(m)-i(C)>=0){no(C,m);continue}}if(l?S=[b]:(m.enclosingNode=y,m.precedingNode=g,m.followingNode=w,S=[m,D,x,C,E]),_A(D,x,f,v))m.placement="ownLine",p(...S)||(w?ro(w,m):g?no(g,m):Pr(y||C,m));else if(PA(D,x,f,v))m.placement="endOfLine",d(...S)||(g?no(g,m):w?ro(w,m):Pr(y||C,m));else if(m.placement="remaining",!h(...S))if(g&&w){let R=n.length;R>0&&n[R-1].followingNode!==w&&U2(n,x),n.push(b)}else g?no(g,m):w?ro(w,m):Pr(y||C,m)}if(U2(n,t),!l)for(let v of r)delete v.precedingNode,delete v.enclosingNode,delete v.followingNode}function _A(e,t,r,n){let{comment:o,precedingNode:i}=r[n],{locStart:l,locEnd:u}=t,c=l(o);if(i)for(let p=n-1;p>=0;p--){let{comment:d,precedingNode:h}=r[p];if(h!==i||!Nm(e.slice(u(d),c)))break;c=l(d)}return ar(e,c,{backwards:!0})}function PA(e,t,r,n){let{comment:o,followingNode:i}=r[n],{locStart:l,locEnd:u}=t,c=u(o);if(i)for(let p=n+1;p0;--c){let{comment:p,precedingNode:d,followingNode:h}=e[c-1];Mc.strictEqual(d,i),Mc.strictEqual(h,l);let f=t.originalText.slice(t.locEnd(p),u);if(!((null==(n=(r=t.printer).isGap)?void 0:n.call(r,f,t))??/^[\s(]*$/u.test(f)))break;u=t.locStart(p)}for(let[p,{comment:d}]of e.entries())p1&&p.comments.sort(((d,h)=>t.locStart(d)-t.locStart(h)));e.length=0}function Ec(e,t,r){let n=r.locStart(t)-1;for(let o=1;o!n.has(u))).length)return{leading:"",trailing:""};let l,o=[],i=[];return e.each((()=>{let u=e.node;if(null!=n&&n.has(u))return;let{leading:c,trailing:p}=u;c?o.push($A(e,t)):p&&(l=zA(e,t,l),i.push(l.doc))}),"comments"),{leading:o,trailing:i}}function NA(e,t,r){let{leading:n,trailing:o}=OA(e,r);return n||o?Bm(t,(i=>[n,i,o])):t}function jA(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function VA(e){return()=>{}}function qm({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap((o=>o.languages??[])),n=[];for(let o of GA(Object.assign({},...e.map((({options:i})=>i)),WA)))!t&&o.deprecated||(Array.isArray(o.choices)&&(t||(o.choices=o.choices.filter((i=>!i.deprecated))),"parser"===o.name&&(o.choices=[...o.choices,...UA(o.choices,r,e)])),o.pluginDefaults=Object.fromEntries(e.filter((i=>{var l;return void 0!==(null==(l=i.defaultOptions)?void 0:l[o.name])})).map((i=>[i.name,i.defaultOptions[o.name]]))),n.push(o));return{languages:r,options:n}}function*UA(e,t,r){let n=new Set(e.map((o=>o.value)));for(let o of t)if(o.parsers)for(let i of o.parsers)if(!n.has(i)){n.add(i);let l=r.find((c=>c.parsers&&Object.prototype.hasOwnProperty.call(c.parsers,i))),u=o.name;null!=l&&l.name&&(u+=` (plugin: ${l.name})`),yield{value:i,description:u}}}function GA(e){let t=[];for(let[r,n]of Object.entries(e)){let o={name:r,...n};Array.isArray(o.default)&&(o.default=he(!1,o.default,-1).value),t.push(o)}return t}function X2(e,t){if(!t)return;let r=XA(t).toLowerCase();return e.find((({filenames:n})=>n?.some((o=>o.toLowerCase()===r))))??e.find((({extensions:n})=>n?.some((o=>r.endsWith(o)))))}function YA(e,t){if(t)return e.find((({name:r})=>r.toLowerCase()===t))??e.find((({aliases:r})=>r?.includes(t)))??e.find((({extensions:r})=>r?.includes(`.${t}`)))}function KA(e,t){let r=e.plugins.flatMap((o=>o.languages??[])),n=YA(r,t.language)??X2(r,t.physicalFile)??X2(r,t.file)??void t.physicalFile;return n?.parsers[0]}function Z2(e,t,r,n){return[`Invalid ${ao.default.red(n.key(e))} value.`,`Expected ${ao.default.blue(r)},`,`but received ${t===Wm?ao.default.gray("nothing"):ao.default.red(n.value(t))}.`].join(" ")}function Um({text:e,list:t},r){let n=[];return e&&n.push(`- ${ao.default.blue(e)}`),t&&n.push([`- ${ao.default.blue(t.title)}:`].concat(t.values.map((o=>Um(o,r-K2.length).replace(/^|\n/g,`$&${K2}`)))).join("\n")),Gm(n,r)}function Gm(e,t){if(1===e.length)return e[0];let[r,n]=e,[o,i]=e.map((l=>l.split("\n",1)[0].length));return o>t&&o>i?n:r}function eF(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,o=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-o);)n--,o--;let i=0;for(;iu?p>u?u+1:p:p>c?c+1:p;return u}function rF(e,t){let r=new e(t),n=Object.create(r);for(let o of tF)o in t&&(n[o]=nF(t[o],r,lr.prototype[o].length));return n}function nF(e,t,r){return"function"==typeof e?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}function em({from:e,to:t}){return{from:[e],to:t}}function sF(e,t){let r=Object.create(null);for(let n of e){let o=n[t];if(r[o])throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r[o]=n}return r}function uF(e,t){let r=new Map;for(let n of e){let o=n[t];if(r.has(o))throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r.set(o,n)}return r}function cF(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)}}function pF(e,t){let r=[],n=[];for(let o of e)t(o)?r.push(o):n.push(o);return[r,n]}function dF(e){return e===Math.floor(e)}function fF(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):"string"!==r?Number(e)-Number(t):e.localeCompare(t)}function hF(e){return(...t)=>{let r=e(...t);return"string"==typeof r?new Error(r):r}}function tm(e){return void 0===e?{}:e}function Ym(e){if("string"==typeof e)return{text:e};let{text:t,list:r}=e;return mF(void 0!==(t||r),"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(Ym)}}:{text:t}}function rm(e,t){return!0===e||(!1===e?{value:t}:e)}function nm(e,t,r=!1){return!1!==e&&(!0===e?!!r||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function om(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function _c(e,t){return void 0===e?[]:Array.isArray(e)?e.map((r=>om(r,t))):[om(e,t)]}function am(e,t){let r=_c("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===r.length?{remain:t,redirect:r}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function mF(e,t){if(!e)throw new Error(t)}function EF(e,t,{logger:r=!1,isCLI:n=!1,passThrough:o=!1,FlagSchema:i,descriptor:l}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!l)throw new Error("'descriptor' option is required.")}else l=oo;let u=o?Array.isArray(o)?(f,v)=>o.includes(f)?{[f]:v}:void 0:(f,v)=>({[f]:v}):(f,v,b)=>{let{_:m,...g}=b.schemas;return Xm(f,v,{...b,schemas:g})},c=SF(t,{isCLI:n,FlagSchema:i}),p=new CF(c,{logger:r,unknown:u,descriptor:l}),d=!1!==r;d&&Rc&&(p._hasDeprecationWarned=Rc);let h=p.normalize(e);return d&&(Rc=p._hasDeprecationWarned),h}function SF(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(aF.create({name:"_"}));for(let o of e)n.push(RF(o,{isCLI:t,optionInfos:e,FlagSchema:r})),o.alias&&t&&n.push(oF.create({name:o.alias,sourceName:o.name}));return n}function RF(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let l,{name:o}=e,i={name:o},u={};switch(e.type){case"int":l=wF,t&&(i.preprocess=Number);break;case"string":case"path":l=im;break;case"choice":l=gF,i.choices=e.choices.map((c=>null!=c&&c.redirect?{...c,redirect:{to:{key:e.name,value:c.redirect}}}:c));break;case"boolean":l=lF;break;case"flag":l=n,i.flags=r.flatMap((c=>[c.alias,c.description&&c.name,c.oppositeDescription&&`no-${c.name}`].filter(Boolean)));break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(c,p,d)=>e.exception(c)||p.validate(c,d):i.validate=(c,p,d)=>void 0===c||p.validate(c,d),e.redirect&&(u.redirect=c=>c?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(u.deprecated=!0),t&&!e.array){let c=i.preprocess||(p=>p);i.preprocess=(p,d,h)=>d.preprocess(c(Array.isArray(p)?he(!1,p,-1):p),h)}return e.array?iF.create({...t?{preprocess:a((c=>Array.isArray(c)?c:[c]),"preprocess")}:{},...u,valueSchema:l.create(i)}):l.create({...i,...u})}function Zm(e,t){if(!t)throw new Error("parserName is required.");let r=Km(!1,e,(o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,t)));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Vm(n)}function kF(e,t){if(!t)throw new Error("astFormat is required.");let r=Km(!1,e,(o=>o.printers&&Object.prototype.hasOwnProperty.call(o.printers,t)));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Vm(n)}function Jm({plugins:e,parser:t}){return Qm(Zm(e,t),t)}function Qm(e,t){let r=e.parsers[t];return"function"==typeof r?r():r}function TF(e,t){let r=e.printers[t];return"function"==typeof r?r():r}async function LF(e,t={}){var r;let n={...e};if(!n.parser){if(!n.filepath)throw new G2("No parser and no file path given, couldn't infer a parser.");if(n.parser=ZA(n,{physicalFile:n.filepath}),!n.parser)throw new G2(`No parser could be inferred for file "${n.filepath}".`)}let o=qm({plugins:e.plugins,showDeprecated:!0}).options,i={...lm,...Object.fromEntries(o.filter((f=>void 0!==f.default)).map((f=>[f.name,f.default])))},l=Zm(n.plugins,n.parser),u=await Qm(l,n.parser);n.astFormat=u.astFormat,n.locEnd=u.locEnd,n.locStart=u.locStart;let c=null!=(r=l.printers)&&r[u.astFormat]?l:kF(n.plugins,u.astFormat),p=await TF(c,u.astFormat);n.printer=p;let h={...i,...c.defaultOptions?Object.fromEntries(Object.entries(c.defaultOptions).filter((([,f])=>void 0!==f))):{}};for(let[f,v]of Object.entries(h))(null===n[f]||void 0===n[f])&&(n[f]=v);return"json"===n.parser&&(n.trailingComma="none"),AF(n,o,{passThrough:Object.keys(lm),...t})}async function BF(e,t){let o,r=await Jm(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;try{o=await r.parse(n,t,t)}catch(i){MF(i,e)}return{text:n,ast:o}}function MF(e,t){let{loc:r}=e;if(r){let n=(0,IF.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+="\n"+n,e.codeFrame=n,e}throw e}async function _F(e,t,r,n,o){let{embeddedLanguageFormatting:i,printer:{embed:l,hasPrettierIgnore:u=a((()=>!1),"s"),getVisitorKeys:c}}=r;if(!l||"auto"!==i)return;if(l.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let p=ml(l.getVisitorKeys??c),d=[];v();let h=e.stack;for(let{print:b,node:m,pathStack:g}of d)try{e.stack=g;let y=await b(f,t,e,r);y&&o.set(m,y)}catch(y){if(globalThis.PRETTIER_DEBUG)throw y}function f(b,m){return PF(b,m,r,n)}function v(){let{node:b}=e;if(null===b||"object"!=typeof b||u(e))return;for(let g of p(b))Array.isArray(b[g])?e.each(v,g):e.call(v,g);let m=l(e,r);if(m){if("function"==typeof m)return void d.push({print:m,node:b,pathStack:[...e.stack]});o.set(b,m)}}e.stack=h,a(f,"f"),a(v,"p")}async function PF(e,t,r,n){let o=await Co({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:i}=await La(e,o);return Im(await n(i,o))}function HF(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:o,locEnd:i,[Symbol.for("printedComments")]:l}=t,{node:u}=e,c=o(u),p=i(u);for(let d of n)o(d)>=c&&i(d)<=p&&l.add(d);return r.slice(c,p)}async function gl(e,t){({ast:e}=await eg(e,t));let r=new Map,n=new xA(e),o=qA(t),i=new Map;await _F(n,u,t,gl,i);let l=await sm(n,t,u,void 0,i);return jA(t),l;function u(p,d){return void 0===p||p===n?c(d):Array.isArray(p)?n.call((()=>c(d)),...p):n.call((()=>c(d)),p)}function c(p){o(n);let d=n.node;if(null==d)return"";let h=d&&"object"==typeof d&&void 0===p;if(h&&r.has(d))return r.get(d);let f=sm(n,t,u,p,i);return h&&r.set(d,f),f}}function sm(e,t,r,n,o){var i;let c,{node:l}=e,{printer:u}=t;return c=null!=(i=u.hasPrettierIgnore)&&i.call(u,e)?$F(e,t):o.has(l)?o.get(l):u.print(e,t,r,n),l===t.cursorNode&&(c=Bm(c,(p=>[Tc,p,Tc]))),u.printComment&&(!u.willPrintOwnComments||!u.willPrintOwnComments(e,t))&&(c=NA(e,c,t)),c}async function eg(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,MA(e,t);let{printer:{preprocess:n}}=t;return{ast:e=n?await n(e,t):e,comments:r}}function zF(e,t){let{cursorOffset:r,locStart:n,locEnd:o}=t,i=ml(t.printer.getVisitorKeys),l=a((c=>n(c)<=r&&o(c)>=r),"i"),u=e;for(let c of SA(e,{getVisitorKeys:i,filter:l}))u=c;return u}function NF(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let o=ml(n),i=r.ignoredProperties??new Set;return function l(u,c){if(null===u||"object"!=typeof u)return u;if(Array.isArray(u))return u.map((f=>l(f,c))).filter(Boolean);let p={},d=new Set(o(u));for(let f in u)!Object.prototype.hasOwnProperty.call(u,f)||i.has(f)||(d.has(f)?p[f]=l(u[f],u):p[f]=u[f]);let h=r(u,p,c);if(null!==h)return h??p}(e)}function UF(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find((o=>tg.has(o.type)&&n.has(o)))}function um(e){let t=qF(!1,e,(r=>"Program"!==r.type&&"File"!==r.type));return-1===t?e:e.slice(0,t+1)}function GF(e,t,{locStart:r,locEnd:n}){let o=e.node,i=t.node;if(o===i)return{startNode:o,endNode:i};let l=r(e.node);for(let c of um(t.parentNodes)){if(!(r(c)>=l))break;i=c}let u=n(t.node);for(let c of um(e.parentNodes)){if(!(n(c)<=u))break;if(o=c,o===i)break}return{startNode:o,endNode:i}}function Pc(e,t,r,n,o=[],i){let{locStart:l,locEnd:u}=r,c=l(e),p=u(e);if(!(t>p||tn);let u=e.slice(n,o).search(/\S/u),c=-1===u;if(!c)for(n+=u;o>n&&!/\S/u.test(e[o-1]);--o);let h,f,p=Pc(r,n,t,((v,b)=>cm(t,v,b)),[],"rangeStart"),d=c?p:Pc(r,o,t,(v=>cm(t,v)),[],"rangeEnd");if(!p||!d)return{rangeStart:0,rangeEnd:0};if(WF(t)){let v=UF(p,d);h=v,f=v}else({startNode:h,endNode:f}=GF(p,d,t));return{rangeStart:Math.min(i(h),i(f)),rangeEnd:Math.max(l(h),l(f))}}async function ng(e,t,r=0){if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:o}=await La(e,t);t.cursorOffset>=0&&(t.cursorNode=OF(n,t));let i=await gl(n,t);r>0&&(i=Lm([$r,i],r,t.tabWidth));let l=hl(i,t);if(r>0){let c=l.formatted.trim();void 0!==l.cursorNodeStart&&(l.cursorNodeStart-=l.formatted.indexOf(c)),l.formatted=c+zc(t.endOfLine)}let u=t[Symbol.for("comments")];if(t.cursorOffset>=0){let c,p,d,h,f;if(t.cursorNode&&l.cursorNodeText?(c=t.locStart(t.cursorNode),p=o.slice(c,t.locEnd(t.cursorNode)),d=t.cursorOffset-c,h=l.cursorNodeStart,f=l.cursorNodeText):(c=0,p=o,d=t.cursorOffset,h=0,f=l.formatted),p===f)return{formatted:l.formatted,cursorOffset:h+d,comments:u};let v=p.split("");v.splice(d,0,pm);let m=PR(v,f.split("")),g=h;for(let y of m)if(y.removed){if(y.value.includes(pm))break}else g+=y.count;return{formatted:l.formatted,cursorOffset:g,comments:u}}return{formatted:l.formatted,cursorOffset:-1,comments:u}}async function ZF(e,t){let{ast:r,text:n}=await La(e,t),{rangeStart:o,rangeEnd:i}=KF(n,t,r),l=n.slice(o,i),u=Math.min(o,n.lastIndexOf("\n",o)+1),c=n.slice(u,o).match(/^\s*/u)[0],p=Wc(c,t.tabWidth),d=await ng(l,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>o&&t.cursorOffset<=i?t.cursorOffset-o:-1,endOfLine:"lf"},p),h=d.formatted.trimEnd(),{cursorOffset:f}=t;f>i?f+=h.length-l.length:d.cursorOffset>=0&&(f=d.cursorOffset+o);let v=n.slice(0,o)+h+n.slice(i);if("lf"!==t.endOfLine){let b=zc(t.endOfLine);f>=0&&"\r\n"===b&&(f+=xm(v.slice(0,f),"\n")),v=pl(!1,v,"\n",b)}return{formatted:v,cursorOffset:f,comments:d.comments}}function Ac(e,t,r){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?r:t}function dm(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=t;return r=Ac(e,r,-1),n=Ac(e,n,0),o=Ac(e,o,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:o}}function og(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:i}=dm(e,t),l=e.charAt(0)===rg;if(l&&(e=e.slice(1),r--,n--,o--),"auto"===i&&(i=HR(e)),e.includes("\r")){let u=a((c=>xm(e.slice(0,Math.max(c,0)),"\r\n")),"s");r-=u(r),n-=u(n),o-=u(o),e=$R(e)}return{hasBOM:l,text:e,options:dm(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:i})}}async function fm(e,t){let r=await Jm(t);return!r.hasPragma||r.hasPragma(e)}async function ag(e,t){let i,{hasBOM:r,text:n,options:o}=og(e,await Co(t));return o.rangeStart>=o.rangeEnd&&""!==n||o.requirePragma&&!await fm(n,o)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(o.rangeStart>0||o.rangeEnd=0&&i.cursorOffset++),i)}async function JF(e,t,r){let{text:n,options:o}=og(e,await Co(t)),i=await La(n,o);return r&&(r.preprocessForPrint&&(i.ast=await eg(i.ast,o)),r.massage&&(i.ast=jF(i.ast,o))),i}async function QF(e,t){return t=await Co(t),hl(await gl(e,t),t)}async function ek(e,t){let r=eA(e),{formatted:n}=await ag(r,{...t,parser:"__js_expression"});return n}async function tk(e,t){t=await Co(t);let{ast:r}=await La(e,t);return gl(r,t)}async function rk(e,t){return hl(e,await Co(t))}function lk(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;rMath.max(n,o.length/t.length)),0)}function gk(e,t){let r=Zc(e,t);return!1===r?"":e.charAt(r)}function wk(e,t,r){for(let n=t;nl===n?l:u===t?"\\"+u:u||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(l)?l:"\\"+l)));return t+o+t}function Ek(e,t,r){return Zc(e,r(t))}function Sk(e,t){return 2===arguments.length||"number"==typeof t?Zc(e,t):Ek(...arguments)}function Rk(e,t,r){return Xc(e,r(t))}function Ak(e,t){return 2===arguments.length||"number"==typeof t?Xc(e,t):Rk(...arguments)}function Fk(e,t,r){return Jc(e,r(t))}function kk(e,t){return 2===arguments.length||"number"==typeof t?Jc(e,t):Fk(...arguments)}function Hr(e,t=1){return async(...r)=>{let n=r[t]??{},o=n.plugins??[];return r[t]={...n,plugins:Array.isArray(o)?o:Object.values(o)},e(...r)}}async function ug(e,t){let{formatted:r}=await sg(e,{...t,cursorOffset:-1});return r}async function Tk(e,t){return await ug(e,t)===e}var bR,sl,yR,DR,xR,CR,hm,ER,Hc,ul,mm,cl,SR,RR,AR,Ra,$c,gm,vm,wm,FR,kR,TR,bm,pl,N2,j2,ym,Dm,_R,ka,il,Or,Mt,Nr,Pt,Ht,$t,He,xt,Ne,zt,Ot,Nt,De,Ct,Ke,Cm,jr,OR,io,Do,V2,Oc,Em,Dt,Nc,KR,dl,ZR,jc,Am,Fm,JR,$r,km,Tc,he,rA,aA,iA,Vc,Pe,yt,Fa,Wc,_r,Bc,ol,lo,DA,xA,_m,Mc,EA,RA,ir,Hm,$m,zr,ar,TA,zm,LA,ml,xc,Cc,Nm,Xc,qA,so,Vm,uo,G2,WA,XA,ZA,oo,Y2,JA,ao,Wm,al,K2,QA,J2,Sc,Q2,Xm,tF,co,lr,po,oF,fo,aF,ho,iF,mo,lF,go,gF,vo,vF,wo,wF,bo,im,bF,yF,DF,xF,yo,CF,Rc,AF,Km,lm,Co,IF,La,$F,OF,jF,qF,WF,tg,YF,rg,pm,ig,nk,ok,ak,ik,lg,Yc,Kc,Zc,Jc,dk,mk,vk,bk,Dk,Ck,sg,Lk,Ik,cg,pg=F((()=>{bR=Object.create,sl=Object.defineProperty,yR=Object.getOwnPropertyDescriptor,DR=Object.getOwnPropertyNames,xR=Object.getPrototypeOf,CR=Object.prototype.hasOwnProperty,hm=a((e=>{throw TypeError(e)}),"sr"),ER=a(((e,t)=>()=>(e&&(t=e(e=0)),t)),"_u"),Hc=a(((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports)),"At"),ul=a(((e,t)=>{for(var r in t)sl(e,r,{get:t[r],enumerable:!0})}),"We"),mm=a(((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of DR(t))!CR.call(e,o)&&o!==r&&sl(e,o,{get:a((()=>t[o]),"get"),enumerable:!(n=yR(t,o))||n.enumerable});return e}),"ar"),cl=a(((e,t,r)=>(r=null!=e?bR(xR(e)):{},mm(!t&&e&&e.__esModule?r:sl(r,"default",{value:e,enumerable:!0}),e))),"Me"),SR=a((e=>mm(sl({},"__esModule",{value:!0}),e)),"vu"),RR=a(((e,t,r)=>t.has(e)||hm("Cannot "+r)),"bu"),AR=a(((e,t,r)=>t.has(e)?hm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r)),"Dr"),Ra=a(((e,t,r)=>(RR(e,t,"access private method"),r)),"pe"),$c=Hc(((e,t)=>{var r=new Proxy(String,{get:a((()=>r),"get")});t.exports=r})),ul(gm={},{default:a((()=>wm),"default"),shouldHighlight:a((()=>vm),"shouldHighlight")}),FR=ER((()=>{vm=a((()=>!1),"xo"),wm=String})),kR=Hc(((e,t)=>{var r=String,n=a((function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r}}),"Ln");t.exports=n(),t.exports.createColors=n})),TR=Hc((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=v,e.default=b;var t=(FR(),SR(gm)),r=o(kR(),!0);function n(m){if("function"!=typeof WeakMap)return null;var g=new WeakMap,y=new WeakMap;return(n=a((function(w){return w?y:g}),"Wn"))(m)}function o(m,g){if(!g&&m&&m.__esModule)return m;if(null===m||"object"!=typeof m&&"function"!=typeof m)return{default:m};var y=n(g);if(y&&y.has(m))return y.get(m);var w={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in m)if("default"!==x&&{}.hasOwnProperty.call(m,x)){var C=D?Object.getOwnPropertyDescriptor(m,x):null;C&&(C.get||C.set)?Object.defineProperty(w,x,C):w[x]=m[x]}return w.default=m,y&&y.set(m,w),w}a(n,"Wn"),a(o,"vo");var u,i=r.default,l=a(((m,g)=>y=>m(g(y))),"Rn");function c(m){return m?(null!=u||(u=(0,r.createColors)(!0)),u):i}a(c,"Oo");var p=!1;function d(m){return{gutter:m.gray,marker:l(m.red,m.bold),message:l(m.red,m.bold)}}a(d,"So");var h=/\r\n|[\n\r\u2028\u2029]/;function f(m,g,y){let w=Object.assign({column:0,line:-1},m.start),D=Object.assign({},w,m.end),{linesAbove:x=2,linesBelow:C=3}=y||{},E=w.line,S=w.column,R=D.line,A=D.column,k=Math.max(E-(x+1),0),B=Math.min(g.length,R+C);-1===E&&(k=0),-1===R&&(B=g.length);let $=R-E,M={};if($)for(let W=0;W<=$;W++){let T=W+E;if(S)if(0===W){let L=g[T-1].length;M[T]=[S,L-S+1]}else if(W===$)M[T]=[0,A];else{let L=g[T-W].length;M[T]=[0,L]}else M[T]=!0}else M[E]=S===A?!S||[S,0]:[S,A-S];return{start:k,end:B,markerLines:M}}function v(m,g,y={}){let w=(y.highlightCode||y.forceColor)&&(0,t.shouldHighlight)(y),D=c(y.forceColor),x=d(D),C=a(((M,W)=>w?M(W):W),"i"),E=m.split(h),{start:S,end:R,markerLines:A}=f(g,E,y),k=g.start&&"number"==typeof g.start.column,B=String(R).length,$=(w?(0,t.default)(m,y):m).split(h,R).slice(S,R).map(((M,W)=>{let T=S+1+W,L=` ${` ${T}`.slice(-B)} |`,P=A[T],U=!A[T+1];if(P){let N="";if(Array.isArray(P)){let G=M.slice(0,Math.max(P[0]-1,0)).replace(/[^\t]/g," "),z=P[1]||1;N=["\n ",C(x.gutter,L.replace(/\d/g," "))," ",G,C(x.marker,"^").repeat(z)].join(""),U&&y.message&&(N+=" "+C(x.message,y.message))}return[C(x.marker,">"),C(x.gutter,L),M.length>0?` ${M}`:"",N].join("")}return` ${C(x.gutter,L)}${M.length>0?` ${M}`:""}`})).join("\n");return y.message&&!k&&($=`${" ".repeat(B+1)}${y.message}\n${$}`),w?D.reset($):$}function b(m,g,y,w={}){if(!p){p=!0;let D="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";new Error(D).name="DeprecationWarning",console.warn(new Error(D))}return v(m,{start:{column:y=Math.max(y,0),line:g}},w)}a(f,"No"),a(v,"Mn"),a(b,"To")})),ul(bm={},{__debug:a((()=>Ik),"__debug"),check:a((()=>Tk),"check"),doc:a((()=>ig),"doc"),format:a((()=>ug),"format"),formatWithCursor:a((()=>sg),"formatWithCursor"),getSupportInfo:a((()=>Lk),"getSupportInfo"),util:a((()=>lg),"util"),version:a((()=>ik),"version")}),pl=a(((e,t,r,n)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)}),"Ou"),a(_t,"Z"),_t.prototype={diff:a((function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var i=this;function l(D){return o?(setTimeout((function(){o(void 0,D)}),0),!0):D}a(l,"s"),e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var u=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,p=1,d=u+c;n.maxEditLength&&(d=Math.min(d,n.maxEditLength));var h=null!==(r=n.timeout)&&void 0!==r?r:1/0,f=Date.now()+h,v=[{oldPos:-1,lastComponent:void 0}],b=this.extractCommon(v[0],t,e,0);if(v[0].oldPos+1>=c&&b+1>=u)return l([{value:this.join(t),count:t.length}]);var m=-1/0,g=1/0;function y(){for(var D=Math.max(m,-p);D<=Math.min(g,p);D+=2){var x=void 0,C=v[D-1],E=v[D+1];C&&(v[D-1]=void 0);var S=!1;if(E){var R=E.oldPos-D;S=E&&0<=R&&R=c&&b+1>=u)return l(IR(i,x.lastComponent,t,e,i.useLongestToken));v[D]=x,x.oldPos+1>=c&&(g=Math.min(g,D-1)),b+1>=u&&(m=Math.max(m,D+1))}else v[D]=void 0}p++}if(a(y,"A"),o)a((function D(){setTimeout((function(){if(p>d||Date.now()>f)return o();y()||D()}),0)}),"h")();else for(;p<=d&&Date.now()<=f;){var w=y();if(w)return w}}),"diff"),addToPath:a((function(e,t,r,n){var o=e.lastComponent;return o&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}}),"addToPath"),extractCommon:a((function(e,t,r,n){for(var o=t.length,i=r.length,l=e.oldPos,u=l-n,c=0;u+1"u"?r:l}:n;return"string"==typeof e?e:JSON.stringify(Fc(e,null,null,o),o," ")},ka.equals=function(e,t){return _t.prototype.equals.call(ka,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))},a(Fc,"Bt"),(il=new _t).tokenize=function(e){return e.slice()},il.join=il.removeEmpty=function(e){return e},a(PR,"dr"),a(HR,"Fr"),a(zc,"Be"),a(xm,"wt"),a($R,"mr"),Or="string",Mt="array",Nr="cursor",Pt="indent",Ht="align",$t="trim",He="group",xt="fill",Ne="if-break",zt="indent-if-break",Ot="line-suffix",Nt="line-suffix-boundary",De="line",Ct="label",Ke="break-parent",Cm=new Set([Nr,Pt,Ht,$t,He,xt,Ne,zt,Ot,Nt,De,Ct,Ke]),a(zR,"Lu"),jr=zR,OR=a((e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e)),"Pu"),a(NR,"Iu"),io=class extends Error{name="InvalidDocError";constructor(t){super(NR(t)),this.doc=t}},a(io,"xt"),Do=io,V2={},a(VR,"Ru"),Oc=VR,Dt=Em=a((()=>{}),"hr"),Nc=Em,a(ll,"De"),a(xo,"ae"),a(Sm,"_t"),a(qR,"Cr"),a(WR,"gr"),a(UR,"yr"),a(GR,"Ar"),a(Rm,"Ge"),a(XR,"Br"),a(YR,"wr"),a(kc,"xe"),KR={type:Nt},ZR={type:$t},Fm={type:De},JR={type:De,soft:!0},$r=[jc={type:De,hard:!0},dl={type:Ke}],km=[Am={type:De,hard:!0,literal:!0},dl],Tc={type:Nr},a(Tm,"be"),a(Lm,"Je"),a(QR,"br"),a(Bt,"ee"),a(eA,"Or"),he=a(((e,t,r)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)}),"Yu"),rA=a((()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g),"Sr"),a(nA,"Nr"),a(oA,"Tr"),aA=a((e=>!(nA(e)||oA(e))),"kr"),iA=/[^\x20-\x7F]/u,a(lA,"Hu"),Vc=lA,a(fl,"Ne"),a(qc,"Xe"),a(sA,"Wu"),a(uA,"Ir"),a(q2,"Lr"),a(cA,"Rr"),a(pA,"Mu"),a(dA,"Yr"),a(W2,"Pr"),a(Aa,"Se"),a(Im,"Ze"),a(fA,"$u"),a(hA,"Vu"),a(mA,"jr"),a(gA,"Uu"),a(vA,"Hr"),a(Bm,"Qe"),Pe=Symbol("MODE_BREAK"),yt=Symbol("MODE_FLAT"),Fa=Symbol("cursor"),a(Mm,"Wr"),a(wA,"zu"),a(bA,"Gu"),a(Lc,"bt"),a(Ic,"Ot"),a(rl,"et"),a(hl,"Fe"),a(yA,"Ku"),Wc=yA,a(lo=class{constructor(t){AR(this,_r),this.stack=[t]}get key(){let{stack:t,siblings:r}=this;return he(!1,t,null===r?-2:-4)??null}get index(){return null===this.siblings?null:he(!1,this.stack,-2)}get node(){return he(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return null!==this.siblings}get siblings(){let{stack:t}=this,r=he(!1,t,-3);return Array.isArray(r)?r:null}get next(){let{siblings:t}=this;return null===t?null:t[this.index+1]}get previous(){let{siblings:t}=this;return null===t?null:t[this.index-1]}get isFirst(){return 0===this.index}get isLast(){let{siblings:t,index:r}=this;return null!==t&&r===t.length-1}get isRoot(){return 1===this.stack.length}get root(){return this.stack[0]}get ancestors(){return[...Ra(this,_r,ol).call(this)]}getName(){let{stack:t}=this,{length:r}=t;return r>1?he(!1,t,-2):null}getValue(){return he(!1,this.stack,-1)}getNode(t=0){let r=Ra(this,_r,Bc).call(this,t);return-1===r?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:o}=n,i=he(!1,n,-1);for(let l of r)i=i[l],n.push(l,i);try{return t(this)}finally{n.length=o}}callParent(t,r=0){let n=Ra(this,_r,Bc).call(this,r+1),o=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...o)}}each(t,...r){let{stack:n}=this,{length:o}=n,i=he(!1,n,-1);for(let l of r)i=i[l],n.push(l,i);try{for(let l=0;l{n[i]=t(o,i,l)}),...r),n}match(...t){let r=this.stack.length-1,n=null,o=this.stack[r--];for(let i of t){if(void 0===o)return!1;let l=null;if("number"==typeof n&&(l=n,n=this.stack[r--],o=this.stack[r--]),i&&!i(o,n,l))return!1;n=this.stack[r--],o=this.stack[r--]}return!0}findAncestor(t){for(let r of Ra(this,_r,ol).call(this))if(t(r))return r}hasAncestor(t){for(let r of Ra(this,_r,ol).call(this))if(t(r))return!0;return!1}},"St"),DA=lo,_r=new WeakSet,Bc=a((function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1}),"Nt"),ol=a((function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}}),"tt"),xA=DA,_m=new Proxy((()=>{}),{get:a((()=>_m),"get")}),Mc=_m,a(CA,"qu"),EA=CA,a(Pm,"Tt"),a(SA,"Ur"),a(Ta,"Ee"),RA=Ta(/\s/u),ir=Ta(" \t"),Hm=Ta(",; \t"),$m=Ta(/[^\n\r]/u),a(AA,"Ju"),zr=AA,a(FA,"Xu"),ar=FA,a(kA,"Zu"),TA=kA,zm=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),LA=a((e=>Object.keys(e).filter((t=>!zm.has(t)))),"Qu"),a(IA,"eo"),ml=IA,a(BA,"to"),a(Uc,"Lt"),a(ro,"ue"),a(Pr,"re"),a(no,"oe"),xc=new WeakMap,a(Gc,"ut"),a(Om,"qr"),Cc=a((()=>!1),"It"),a(MA,"Jr"),Nm=a((e=>!/[\S\n\u2028\u2029]/u.test(e)),"Xr"),a(_A,"ro"),a(PA,"no"),a(U2,"Kr"),a(Ec,"Rt"),a(HA,"uo"),Xc=HA,a(jm,"Zr"),a($A,"oo"),a(zA,"io"),a(OA,"so"),a(NA,"Qr"),a(jA,"en"),a(VA,"ao"),qA=VA,so=class extends Error{name="ConfigError"},a(so,"Pe"),Vm=so,uo=class extends Error{name="UndefinedParserError"},a(uo,"Ie"),G2=uo,WA={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:"Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)"}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:a((e=>"string"==typeof e||"function"==typeof e),"exception"),choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:a((e=>"string"==typeof e||"object"==typeof e),"exception"),cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:"Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.",cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:"Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.",cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}},a(qm,"ot"),a(UA,"Do"),a(GA,"lo"),XA=a((e=>String(e).split(/[/\\]/u).pop()),"co"),a(X2,"nn"),a(YA,"fo"),a(KA,"po"),ZA=KA,oo={key:a((e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)),"key"),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map((r=>oo.value(r))).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map((r=>`${oo.key(r)}: ${oo.value(e[r])}`)).join(", ")} }`},pair:a((({key:e,value:t})=>oo.value({[e]:t})),"pair")},Y2=cl($c(),1),JA=a(((e,t,{descriptor:r})=>{let n=[`${Y2.default.yellow("string"==typeof e?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Y2.default.blue("string"==typeof t?r.key(t):r.pair(t))}`),n.join("; ")+"."}),"an"),ao=cl($c(),1),Wm=Symbol.for("vnopts.VALUE_NOT_EXIST"),al=Symbol.for("vnopts.VALUE_UNCHANGED"),K2=" ".repeat(2),QA=a(((e,t,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(Z2(e,t,n,r.descriptor)),o&&i.push([Z2(e,t,o.title,r.descriptor)].concat(o.values.map((l=>Um(l,r.loggerPrintWidth)))).join("\n")),Gm(i,r.loggerPrintWidth)}),"cn"),a(Z2,"ln"),a(Um,"fn"),a(Gm,"pn"),J2=cl($c(),1),Sc=[],Q2=[],a(eF,"Ht"),Xm=a(((e,t,{descriptor:r,logger:n,schemas:o})=>{let i=[`Ignored unknown option ${J2.default.yellow(r.pair({key:e,value:t}))}.`],l=Object.keys(o).sort().find((u=>eF(e,u)<3));l&&i.push(`Did you mean ${J2.default.blue(r.key(l))}?`),n.warn(i.join(" "))}),"at"),tF=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],a(rF,"mo"),a(co=class{static create(t){return rF(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return al}},"O"),lr=co,a(nF,"Eo"),a(po=class extends lr{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}},"Dt"),oF=po,a(fo=class extends lr{expected(){return"anything"}validate(){return!0}},"lt"),aF=fo,a(ho=class extends lr{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let o of t){let i=r.normalizeValidateResult(this._valueSchema.validate(o,r),o);!0!==i&&n.push(i.value)}return 0===n.length||{value:n}}deprecated(t,r){let n=[];for(let o of t){let i=r.normalizeDeprecatedResult(this._valueSchema.deprecated(o,r),o);!1!==i&&n.push(...i.map((({value:l})=>({value:[l]}))))}return n}forward(t,r){let n=[];for(let o of t){let i=r.normalizeForwardResult(this._valueSchema.forward(o,r),o);n.push(...i.map(em))}return n}redirect(t,r){let n=[],o=[];for(let i of t){let l=r.normalizeRedirectResult(this._valueSchema.redirect(i,r),i);"remain"in l&&n.push(l.remain),o.push(...l.redirect.map(em))}return 0===n.length?{redirect:o}:{redirect:o,remain:n}}overlap(t,r){return t.concat(r)}},"ct"),iF=ho,a(em,"Fn"),a(mo=class extends lr{expected(){return"true or false"}validate(t){return"boolean"==typeof t}},"ft"),lF=mo,a(sF,"En"),a(uF,"hn"),a(cF,"Cn"),a(pF,"gn"),a(dF,"yn"),a(fF,"An"),a(hF,"Bn"),a(tm,"Mt"),a(Ym,"$t"),a(rm,"Vt"),a(nm,"Ut"),a(om,"mn"),a(_c,"pt"),a(am,"zt"),a(mF,"ho"),a(go=class extends lr{constructor(t){super(t),this._choices=uF(t.choices.map((r=>r&&"object"==typeof r?r:{value:r})),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map((i=>this._choices.get(i))).filter((({hidden:i})=>!i)).map((i=>i.value)).sort(fF).map(t.value),n=r.slice(0,-2),o=r.slice(-2);return{text:n.concat(o.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return!(!r||!r.deprecated)&&{value:t}}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}},"dt"),gF=go,a(vo=class extends lr{expected(){return"a number"}validate(t,r){return"number"==typeof t}},"Ft"),vF=vo,a(wo=class extends vF{expected(){return"an integer"}validate(t,r){return!0===r.normalizeValidateResult(super.validate(t,r),t)&&dF(t)}},"mt"),wF=wo,a(bo=class extends lr{expected(){return"a string"}validate(t){return"string"==typeof t}},"Re"),im=bo,bF=oo,yF=Xm,DF=QA,xF=JA,a(yo=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:o=80,descriptor:i=bF,unknown:l=yF,invalid:u=DF,deprecated:c=xF,missing:p=a((()=>!1),"D"),required:d=a((()=>!1),"l"),preprocess:h=a((v=>v),"d"),postprocess:f=a((()=>al),"f")}=r||{};this._utils={descriptor:i,logger:n||{warn:a((()=>{}),"warn")},loggerPrintWidth:o,schemas:sF(t,"name"),normalizeDefaultResult:tm,normalizeExpectedResult:Ym,normalizeDeprecatedResult:nm,normalizeForwardResult:_c,normalizeRedirectResult:am,normalizeValidateResult:rm},this._unknownHandler=l,this._invalidHandler=hF(u),this._deprecatedHandler=c,this._identifyMissing=(v,b)=>!(v in b)||p(v,b),this._identifyRequired=d,this._preprocess=h,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=cF()}normalize(t){let r={},n=[this._preprocess(t,this._utils)],o=a((()=>{for(;0!==n.length;){let i=n.shift(),l=this._applyNormalization(i,r);n.push(...l)}}),"u");o();for(let i of Object.keys(this._utils.schemas)){let l=this._utils.schemas[i];if(!(i in r)){let u=tm(l.default(this._utils));"value"in u&&n.push({[i]:u.value})}}o();for(let i of Object.keys(this._utils.schemas)){if(!(i in r))continue;let l=this._utils.schemas[i],u=r[i],c=l.postprocess(u,this._utils);c!==al&&(this._applyValidation(c,i,l),r[i]=c)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:o,unknownKeys:i}=this._partitionOptionKeys(t);for(let l of o){let u=this._utils.schemas[l],c=u.preprocess(t[l],this._utils);this._applyValidation(c,l,u);let p=a((({from:f,to:v})=>{n.push("string"==typeof v?{[v]:f}:{[v.key]:v.value})}),"D"),d=a((({value:f,redirectTo:v})=>{let b=nm(u.deprecated(f,this._utils),c,!0);if(!1!==b)if(!0===b)this._hasDeprecationWarned(l)||this._utils.logger.warn(this._deprecatedHandler(l,v,this._utils));else for(let{value:m}of b){let g={key:l,value:m};if(!this._hasDeprecationWarned(g)){let y="string"==typeof v?{key:v,value:m}:v;this._utils.logger.warn(this._deprecatedHandler(g,y,this._utils))}}}),"l");_c(u.forward(c,this._utils),c).forEach(p);let h=am(u.redirect(c,this._utils),c);if(h.redirect.forEach(p),"remain"in h){let f=h.remain;r[l]=l in r?u.overlap(r[l],f,this._utils):f,d({value:f})}for(let{from:f,to:v}of h.redirect)d({value:f,redirectTo:v})}for(let l of i){let u=t[l];this._applyUnknownHandler(l,u,r,((c,p)=>{n.push({[c]:p})}))}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,Wm,this._utils)}_partitionOptionKeys(t){let[r,n]=pF(Object.keys(t).filter((o=>!this._identifyMissing(o,t))),(o=>o in this._utils.schemas));return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let o=rm(n.validate(t,this._utils),t);if(!0!==o)throw this._invalidHandler(r,o.value,this._utils)}_applyUnknownHandler(t,r,n,o){let i=this._unknownHandler(t,r,this._utils);if(i)for(let l of Object.keys(i)){if(this._identifyMissing(l,i))continue;let u=i[l];l in this._utils.schemas?o(l,u):n[l]=u}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==al){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(r.override);for(let i of n){let l=r.override[i];this._applyValidation(l,i,this._utils.schemas[i]),t[i]=l}for(let i of o){let l=r.override[i];this._applyUnknownHandler(i,l,t,((u,c)=>{let p=this._utils.schemas[u];this._applyValidation(c,u,p),t[u]=c}))}}}}},"Et"),CF=yo,a(EF,"go"),a(SF,"yo"),a(RF,"Ao"),AF=EF,Km=a(((e,t,r)=>{if(!e||null!=t){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let o=t[n];if(r(o,n,t))return o}}}),"Bo"),a(Zm,"qt"),a(kF,"On"),a(Jm,"ht"),a(Qm,"Jt"),a(TF,"Sn"),lm={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null},a(LF,"wo"),Co=LF,IF=cl(TR(),1),a(BF,"ko"),a(MF,"Lo"),La=BF,a(_F,"Un"),a(PF,"Po"),a(HF,"Io"),$F=HF,a(gl,"Ye"),a(sm,"Gn"),a(eg,"Qt"),a(zF,"Ro"),OF=zF,a(NF,"Yo"),jF=NF,qF=a(((e,t,r)=>{if(!e||null!=t){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){if(r(t[n],n,t))return n}return-1}}),"jo"),WF=a((({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e),"Ho"),a(UF,"Wo"),a(um,"Xn"),a(GF,"Mo"),a(Pc,"er"),a(XF,"$o"),tg=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),YF=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]),a(cm,"Zn"),a(KF,"eu"),rg="\ufeff",pm=Symbol("cursor"),a(ng,"ou"),a(ZF,"Uo"),a(Ac,"tr"),a(dm,"ru"),a(og,"iu"),a(fm,"nu"),a(ag,"rr"),a(JF,"su"),a(QF,"au"),a(ek,"Du"),a(tk,"lu"),a(rk,"cu"),ul(ig={},{builders:a((()=>nk),"builders"),printer:a((()=>ok),"printer"),utils:a((()=>ak),"utils")}),nk={join:Tm,line:Fm,softline:JR,hardline:$r,literalline:km,group:Sm,conditionalGroup:GR,fill:Rm,lineSuffix:kc,lineSuffixBoundary:KR,cursor:Tc,breakParent:dl,ifBreak:XR,trim:ZR,indent:ll,indentIfBreak:YR,align:xo,addAlignmentToDoc:Lm,markAsRoot:WR,dedentToRoot:qR,dedent:UR,hardlineWithoutBreakParent:jc,literallineWithoutBreakParent:Am,label:QR,concat:a((e=>e),"concat")},ok={printDocToString:hl},ak={willBreak:uA,traverseDoc:Oc,findInDoc:qc,mapDoc:fl,removeLines:dA,stripTrailingHardline:Im,replaceEndOfLine:mA,canBreak:vA},ik="3.3.3",ul(lg={},{addDanglingComment:a((()=>Pr),"addDanglingComment"),addLeadingComment:a((()=>ro),"addLeadingComment"),addTrailingComment:a((()=>no),"addTrailingComment"),getAlignmentSize:a((()=>Wc),"getAlignmentSize"),getIndentSize:a((()=>dk),"getIndentSize"),getMaxContinuousCount:a((()=>mk),"getMaxContinuousCount"),getNextNonSpaceNonCommentCharacter:a((()=>vk),"getNextNonSpaceNonCommentCharacter"),getNextNonSpaceNonCommentCharacterIndex:a((()=>Sk),"getNextNonSpaceNonCommentCharacterIndex"),getStringWidth:a((()=>Vc),"getStringWidth"),hasNewline:a((()=>ar),"hasNewline"),hasNewlineInRange:a((()=>bk),"hasNewlineInRange"),hasSpaces:a((()=>Dk),"hasSpaces"),isNextLineEmpty:a((()=>kk),"isNextLineEmpty"),isNextLineEmptyAfterIndex:a((()=>Jc),"isNextLineEmptyAfterIndex"),isPreviousLineEmpty:a((()=>Ak),"isPreviousLineEmpty"),makeString:a((()=>Ck),"makeString"),skip:a((()=>Ta),"skip"),skipEverythingButNewLine:a((()=>$m),"skipEverythingButNewLine"),skipInlineComment:a((()=>Yc),"skipInlineComment"),skipNewline:a((()=>zr),"skipNewline"),skipSpaces:a((()=>ir),"skipSpaces"),skipToLineEnd:a((()=>Hm),"skipToLineEnd"),skipTrailingComment:a((()=>Kc),"skipTrailingComment"),skipWhitespace:a((()=>RA),"skipWhitespace")}),a(lk,"Jo"),Yc=lk,a(sk,"Xo"),Kc=sk,a(uk,"Zo"),Zc=uk,a(ck,"Qo"),Jc=ck,a(pk,"ei"),dk=pk,a(fk,"ur"),a(hk,"ti"),mk=hk,a(gk,"ri"),vk=gk,a(wk,"ni"),bk=wk,a(yk,"ui"),Dk=yk,a(xk,"oi"),Ck=xk,a(Ek,"ii"),a(Sk,"si"),a(Rk,"ai"),a(Ak,"Di"),a(Fk,"li"),a(kk,"ci"),a(Hr,"fe"),sg=Hr(ag),a(ug,"gu"),a(Tk,"fi"),Lk=Hr(qm,0),Ik={parse:Hr(JF),formatAST:Hr(QF),formatDoc:Hr(ek),printToDoc:Hr(tk),printDocToString:Hr(rk)},cg=bm}));function dg(e){for(var t=[],r=1;r{a(dg,"dedent")})),mg={};an(mg,{formatter:()=>Bk});var hg,Bk,Q0,e1,ne,ce,se,oe,Pl,cr,Vt,Xr,r3,Hl,Mo,n3,t1,$l,o3,gg=F((()=>{hg=we(Qo(),1),O2(),pg(),fg(),Bk=(0,hg.default)(2)((async(e,t)=>!1===e?t:"dedent"===e||!0===e?dg(t):(await cg.format(t,{parser:e,plugins:[z2],htmlWhitespaceSensitivity:"ignore"})).trim()))})),t3=F((()=>{Q0=a((function(t){return t.reduce((function(r,n){var o=n[0],i=n[1];return r[o]=i,r}),{})}),"fromEntries"),e1=typeof window<"u"&&window.document&&window.document.createElement?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect})),je=F((()=>{Pl="auto",Vt="start",Xr="end",r3="clippingParents",Hl="viewport",Mo="popper",n3="reference",t1=(cr=[ne="top",ce="bottom",se="right",oe="left"]).reduce((function(e,t){return e.concat([t+"-"+Vt,t+"-"+Xr])}),[]),$l=[].concat(cr,[Pl]).reduce((function(e,t){return e.concat([t,t+"-"+Vt,t+"-"+Xr])}),[]),"beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite",o3=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]}));function me(e){return e?(e.nodeName||"").toLowerCase():null}var pr=F((()=>{a(me,"getNodeName")}));function ee(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var ut=F((()=>{a(ee,"getWindow")}));function Je(e){return e instanceof ee(e).Element||e instanceof Element}function pe(e){return e instanceof ee(e).HTMLElement||e instanceof HTMLElement}function _o(e){return!(typeof ShadowRoot>"u")&&(e instanceof ee(e).ShadowRoot||e instanceof ShadowRoot)}var Ve=F((()=>{ut(),a(Je,"isElement"),a(pe,"isHTMLElement"),a(_o,"isShadowRoot")}));function ZI(e){var t=e.state;Object.keys(t.elements).forEach((function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!pe(i)||!me(i)||(Object.assign(i.style,n),Object.keys(o).forEach((function(l){var u=o[l];!1===u?i.removeAttribute(l):i.setAttribute(l,!0===u?"":u)})))}))}function JI(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(n){var o=t.elements[n],i=t.attributes[n]||{},u=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]).reduce((function(c,p){return c[p]="",c}),{});!pe(o)||!me(o)||(Object.assign(o.style,u),Object.keys(i).forEach((function(c){o.removeAttribute(c)})))}))}}var a3,i3=F((()=>{pr(),Ve(),a(ZI,"applyStyles"),a(JI,"effect"),a3={name:"applyStyles",enabled:!0,phase:"write",fn:ZI,effect:JI,requires:["computeStyles"]}}));function ge(e){return e.split("-")[0]}var ct,Yr,qt,dr=F((()=>{a(ge,"getBasePlacement")})),fr=F((()=>{ct=Math.max,Yr=Math.min,qt=Math.round}));function Po(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}var r1=F((()=>{a(Po,"getUAString")}));function Na(){return!/^((?!chrome|android).)*safari/i.test(Po())}var n1=F((()=>{r1(),a(Na,"isLayoutViewport")}));function Qe(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&pe(e)&&(o=e.offsetWidth>0&&qt(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&qt(n.height)/e.offsetHeight||1);var u=(Je(e)?ee(e):window).visualViewport,c=!Na()&&r,p=(n.left+(c&&u?u.offsetLeft:0))/o,d=(n.top+(c&&u?u.offsetTop:0))/i,h=n.width/o,f=n.height/i;return{width:h,height:f,top:d,right:p+h,bottom:d+f,left:p,x:p,y:d}}var Ho=F((()=>{Ve(),fr(),ut(),n1(),a(Qe,"getBoundingClientRect")}));function Kr(e){var t=Qe(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}var zl=F((()=>{Ho(),a(Kr,"getLayoutRect")}));function ja(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_o(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}var o1=F((()=>{Ve(),a(ja,"contains")}));function ke(e){return ee(e).getComputedStyle(e)}var $o=F((()=>{ut(),a(ke,"getComputedStyle")}));function a1(e){return["table","td","th"].indexOf(me(e))>=0}var l3=F((()=>{pr(),a(a1,"isTableElement")}));function xe(e){return((Je(e)?e.ownerDocument:e.document)||window.document).documentElement}var Wt=F((()=>{Ve(),a(xe,"getDocumentElement")}));function Ut(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(_o(e)?e.host:null)||xe(e)}var Va=F((()=>{pr(),Wt(),Ve(),a(Ut,"getParentNode")}));function s3(e){return pe(e)&&"fixed"!==ke(e).position?e.offsetParent:null}function QI(e){var t=/firefox/i.test(Po());if(/Trident/i.test(Po())&&pe(e)&&"fixed"===ke(e).position)return null;var o=Ut(e);for(_o(o)&&(o=o.host);pe(o)&&["html","body"].indexOf(me(o))<0;){var i=ke(o);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return o;o=o.parentNode}return null}function pt(e){for(var t=ee(e),r=s3(e);r&&a1(r)&&"static"===ke(r).position;)r=s3(r);return r&&("html"===me(r)||"body"===me(r)&&"static"===ke(r).position)?t:r||QI(e)||t}var zo=F((()=>{ut(),pr(),$o(),Ve(),l3(),Va(),r1(),a(s3,"getTrueOffsetParent"),a(QI,"getContainingBlock"),a(pt,"getOffsetParent")}));function Zr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Ol=F((()=>{a(Zr,"getMainAxisFromPlacement")}));function Jr(e,t,r){return ct(e,Yr(t,r))}function u3(e,t,r){var n=Jr(e,t,r);return n>r?r:n}var i1=F((()=>{fr(),a(Jr,"within"),a(u3,"withinMaxClamp")}));function qa(){return{top:0,right:0,bottom:0,left:0}}var l1=F((()=>{a(qa,"getFreshSideObject")}));function Wa(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}var s1=F((()=>{l1(),a(Wa,"mergePaddingObject")}));function Ua(e,t){return t.reduce((function(r,n){return r[n]=e,r}),{})}var u1=F((()=>{a(Ua,"expandToHashMap")}));function tB(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,u=ge(r.placement),c=Zr(u),d=[oe,se].indexOf(u)>=0?"height":"width";if(i&&l){var h=eB(o.padding,r),f=Kr(i),v="y"===c?ne:oe,b="y"===c?ce:se,m=r.rects.reference[d]+r.rects.reference[c]-l[c]-r.rects.popper[d],g=l[c]-r.rects.reference[c],y=pt(i),w=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,D=m/2-g/2,x=h[v],C=w-f[d]-h[b],E=w/2-f[d]/2+D,S=Jr(x,E,C),R=c;r.modifiersData[n]=((t={})[R]=S,t.centerOffset=S-E,t)}}function rB(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"==typeof o&&!(o=t.elements.popper.querySelector(o))||ja(t.elements.popper,o)&&(t.elements.arrow=o))}var eB,c3,p3=F((()=>{dr(),zl(),o1(),zo(),Ol(),i1(),s1(),u1(),je(),eB=a((function(t,r){return Wa("number"!=typeof(t="function"==typeof t?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:Ua(t,cr))}),"toPaddingObject"),a(tB,"arrow"),a(rB,"effect"),c3={name:"arrow",enabled:!0,phase:"main",fn:tB,effect:rB,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}}));function et(e){return e.split("-")[1]}var Oo=F((()=>{a(et,"getVariation")}));function oB(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:qt(r*o)/o||0,y:qt(n*o)/o||0}}function d3(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,p=e.adaptive,d=e.roundOffsets,h=e.isFixed,f=l.x,v=void 0===f?0:f,b=l.y,m=void 0===b?0:b,g="function"==typeof d?d({x:v,y:m}):{x:v,y:m};v=g.x,m=g.y;var y=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),D=oe,x=ne,C=window;if(p){var E=pt(r),S="clientHeight",R="clientWidth";if(E===ee(r)&&("static"!==ke(E=xe(r)).position&&"absolute"===u&&(S="scrollHeight",R="scrollWidth")),o===ne||(o===oe||o===se)&&i===Xr)x=ce,m-=(h&&E===C&&C.visualViewport?C.visualViewport.height:E[S])-n.height,m*=c?1:-1;if(o===oe||(o===ne||o===ce)&&i===Xr)D=se,v-=(h&&E===C&&C.visualViewport?C.visualViewport.width:E[R])-n.width,v*=c?1:-1}var M,B=Object.assign({position:u},p&&nB),$=!0===d?oB({x:v,y:m},ee(r)):{x:v,y:m};return v=$.x,m=$.y,c?Object.assign({},B,((M={})[x]=w?"0":"",M[D]=y?"0":"",M.transform=(C.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",M)):Object.assign({},B,((t={})[x]=w?m+"px":"",t[D]=y?v+"px":"",t.transform="",t))}function aB(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,l=void 0===i||i,u=r.roundOffsets,c=void 0===u||u,p={placement:ge(t.placement),variation:et(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,d3(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,d3(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var nB,f3,h3=F((()=>{je(),zo(),ut(),Wt(),$o(),dr(),Oo(),fr(),nB={top:"auto",right:"auto",bottom:"auto",left:"auto"},a(oB,"roundOffsetsByDPR"),a(d3,"mapToStyles"),a(aB,"computeStyles"),f3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aB,data:{}}}));function iB(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,l=n.resize,u=void 0===l||l,c=ee(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach((function(d){d.addEventListener("scroll",r.update,Nl)})),u&&c.addEventListener("resize",r.update,Nl),function(){i&&p.forEach((function(d){d.removeEventListener("scroll",r.update,Nl)})),u&&c.removeEventListener("resize",r.update,Nl)}}var Nl,m3,g3=F((()=>{ut(),Nl={passive:!0},a(iB,"effect"),m3={name:"eventListeners",enabled:!0,phase:"write",fn:a((function(){}),"fn"),effect:iB,data:{}}}));function No(e){return e.replace(/left|right|bottom|top/g,(function(t){return lB[t]}))}var lB,v3=F((()=>{lB={left:"right",right:"left",bottom:"top",top:"bottom"},a(No,"getOppositePlacement")}));function jl(e){return e.replace(/start|end/g,(function(t){return sB[t]}))}var sB,w3=F((()=>{sB={start:"end",end:"start"},a(jl,"getOppositeVariationPlacement")}));function Qr(e){var t=ee(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var Vl=F((()=>{ut(),a(Qr,"getWindowScroll")}));function en(e){return Qe(xe(e)).left+Qr(e).scrollLeft}var ql=F((()=>{Ho(),Wt(),Vl(),a(en,"getWindowScrollBarX")}));function c1(e,t){var r=ee(e),n=xe(e),o=r.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,c=0;if(o){i=o.width,l=o.height;var p=Na();(p||!p&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:u+en(e),y:c}}var b3=F((()=>{ut(),Wt(),ql(),n1(),a(c1,"getViewportRect")}));function p1(e){var t,r=xe(e),n=Qr(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ct(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ct(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-n.scrollLeft+en(e),c=-n.scrollTop;return"rtl"===ke(o||r).direction&&(u+=ct(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:u,y:c}}var y3=F((()=>{Wt(),$o(),ql(),Vl(),fr(),a(p1,"getDocumentRect")}));function tn(e){var t=ke(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}var Wl=F((()=>{$o(),a(tn,"isScrollParent")}));function Ul(e){return["html","body","#document"].indexOf(me(e))>=0?e.ownerDocument.body:pe(e)&&tn(e)?e:Ul(Ut(e))}var D3=F((()=>{Va(),Wl(),pr(),Ve(),a(Ul,"getScrollParent")}));function hr(e,t){var r;void 0===t&&(t=[]);var n=Ul(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=ee(n),l=o?[i].concat(i.visualViewport||[],tn(n)?n:[]):n,u=t.concat(l);return o?u:u.concat(hr(Ut(l)))}var d1=F((()=>{D3(),Va(),ut(),Wl(),a(hr,"listScrollParents")}));function jo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}var f1=F((()=>{a(jo,"rectToClientRect")}));function uB(e,t){var r=Qe(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function x3(e,t,r){return t===Hl?jo(c1(e,r)):Je(t)?uB(t,r):jo(p1(xe(e)))}function cB(e){var t=hr(Ut(e)),n=["absolute","fixed"].indexOf(ke(e).position)>=0&&pe(e)?pt(e):e;return Je(n)?t.filter((function(o){return Je(o)&&ja(o,n)&&"body"!==me(o)})):[]}function h1(e,t,r,n){var o="clippingParents"===t?cB(e):[].concat(t),i=[].concat(o,[r]),l=i[0],u=i.reduce((function(c,p){var d=x3(e,p,n);return c.top=ct(d.top,c.top),c.right=Yr(d.right,c.right),c.bottom=Yr(d.bottom,c.bottom),c.left=ct(d.left,c.left),c}),x3(e,l,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}var C3=F((()=>{je(),b3(),y3(),d1(),zo(),Wt(),$o(),Ve(),Ho(),Va(),o1(),pr(),f1(),fr(),a(uB,"getInnerBoundingClientRect"),a(x3,"getClientRectFromMixedType"),a(cB,"getClippingParents"),a(h1,"getClippingRect")}));function Ga(e){var c,t=e.reference,r=e.element,n=e.placement,o=n?ge(n):null,i=n?et(n):null,l=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2;switch(o){case ne:c={x:l,y:t.y-r.height};break;case ce:c={x:l,y:t.y+t.height};break;case se:c={x:t.x+t.width,y:u};break;case oe:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var p=o?Zr(o):null;if(null!=p){var d="y"===p?"height":"width";switch(i){case Vt:c[p]=c[p]-(t[d]/2-r[d]/2);break;case Xr:c[p]=c[p]+(t[d]/2-r[d]/2)}}return c}var m1=F((()=>{dr(),Oo(),Ol(),je(),a(Ga,"computeOffsets")}));function dt(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,l=void 0===i?e.strategy:i,u=r.boundary,c=void 0===u?r3:u,p=r.rootBoundary,d=void 0===p?Hl:p,h=r.elementContext,f=void 0===h?Mo:h,v=r.altBoundary,b=void 0!==v&&v,m=r.padding,g=void 0===m?0:m,y=Wa("number"!=typeof g?g:Ua(g,cr)),w=f===Mo?n3:Mo,D=e.rects.popper,x=e.elements[b?w:f],C=h1(Je(x)?x:x.contextElement||xe(e.elements.popper),c,d,l),E=Qe(e.elements.reference),S=Ga({reference:E,element:D,strategy:"absolute",placement:o}),R=jo(Object.assign({},D,S)),A=f===Mo?R:E,k={top:C.top-A.top+y.top,bottom:A.bottom-C.bottom+y.bottom,left:C.left-A.left+y.left,right:A.right-C.right+y.right},B=e.modifiersData.offset;if(f===Mo&&B){var $=B[o];Object.keys(k).forEach((function(M){var W=[se,ce].indexOf(M)>=0?1:-1,T=[ne,ce].indexOf(M)>=0?"y":"x";k[M]+=$[T]*W}))}return k}var Xa=F((()=>{C3(),Wt(),Ho(),m1(),f1(),je(),Ve(),s1(),u1(),a(dt,"detectOverflow")}));function g1(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,l=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,p=void 0===c?$l:c,d=et(n),h=d?u?t1:t1.filter((function(b){return et(b)===d})):cr,f=h.filter((function(b){return p.indexOf(b)>=0}));0===f.length&&(f=h);var v=f.reduce((function(b,m){return b[m]=dt(e,{placement:m,boundary:o,rootBoundary:i,padding:l})[ge(m)],b}),{});return Object.keys(v).sort((function(b,m){return v[b]-v[m]}))}var E3=F((()=>{Oo(),je(),Xa(),dr(),a(g1,"computeAutoPlacement")}));function pB(e){if(ge(e)===Pl)return[];var t=No(e);return[jl(e),t,jl(t)]}function dB(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,l=r.altAxis,u=void 0===l||l,c=r.fallbackPlacements,p=r.padding,d=r.boundary,h=r.rootBoundary,f=r.altBoundary,v=r.flipVariations,b=void 0===v||v,m=r.allowedAutoPlacements,g=t.options.placement,y=ge(g),D=c||(y===g||!b?[No(g)]:pB(g)),x=[g].concat(D).reduce((function(ve,de){return ve.concat(ge(de)===Pl?g1(t,{placement:de,boundary:d,rootBoundary:h,padding:p,flipVariations:b,allowedAutoPlacements:m}):de)}),[]),C=t.rects.reference,E=t.rects.popper,S=new Map,R=!0,A=x[0],k=0;k=0,T=W?"width":"height",L=dt(t,{placement:B,boundary:d,rootBoundary:h,altBoundary:f,padding:p}),P=W?M?se:oe:M?ce:ne;C[T]>E[T]&&(P=No(P));var U=No(P),N=[];if(i&&N.push(L[$]<=0),u&&N.push(L[P]<=0,L[U]<=0),N.every((function(ve){return ve}))){A=B,R=!1;break}S.set(B,N)}if(R)for(var G=b?3:1,z=a((function(de){var Ce=x.find((function(Le){var Ie=S.get(Le);if(Ie)return Ie.slice(0,de).every((function(Xo){return Xo}))}));if(Ce)return A=Ce,"break"}),"_loop"),K=G;K>0;K--){if("break"===z(K))break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}var S3,R3=F((()=>{v3(),dr(),w3(),Xa(),E3(),je(),Oo(),a(pB,"getExpandedFallbackPlacements"),a(dB,"flip"),S3={name:"flip",enabled:!0,phase:"main",fn:dB,requiresIfExists:["offset"],data:{_skip:!1}}}));function A3(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function F3(e){return[ne,se,ce,oe].some((function(t){return e[t]>=0}))}function fB(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=dt(t,{elementContext:"reference"}),u=dt(t,{altBoundary:!0}),c=A3(l,n),p=A3(u,o,i),d=F3(c),h=F3(p);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}var k3,T3=F((()=>{je(),Xa(),a(A3,"getSideOffsets"),a(F3,"isAnySideFullyClipped"),a(fB,"hide"),k3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fB}}));function hB(e,t,r){var n=ge(e),o=[oe,ne].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,l=i[0],u=i[1];return l=l||0,u=(u||0)*o,[oe,se].indexOf(n)>=0?{x:u,y:l}:{x:l,y:u}}function mB(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,l=$l.reduce((function(d,h){return d[h]=hB(h,t.rects,i),d}),{}),u=l[t.placement],c=u.x,p=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=l}var L3,I3=F((()=>{dr(),je(),a(hB,"distanceAndSkiddingToXY"),a(mB,"offset"),L3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mB}}));function gB(e){var t=e.state,r=e.name;t.modifiersData[r]=Ga({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var B3,M3=F((()=>{m1(),a(gB,"popperOffsets"),B3={name:"popperOffsets",enabled:!0,phase:"read",fn:gB,data:{}}}));function v1(e){return"x"===e?"y":"x"}var _3=F((()=>{a(v1,"getAltAxis")}));function vB(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,l=r.altAxis,u=void 0!==l&&l,c=r.boundary,p=r.rootBoundary,d=r.altBoundary,h=r.padding,f=r.tether,v=void 0===f||f,b=r.tetherOffset,m=void 0===b?0:b,g=dt(t,{boundary:c,rootBoundary:p,padding:h,altBoundary:d}),y=ge(t.placement),w=et(t.placement),D=!w,x=Zr(y),C=v1(x),E=t.modifiersData.popperOffsets,S=t.rects.reference,R=t.rects.popper,A="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(E){if(i){var M,W="y"===x?ne:oe,T="y"===x?ce:se,L="y"===x?"height":"width",P=E[x],U=P+g[W],N=P-g[T],G=v?-R[L]/2:0,z=w===Vt?S[L]:R[L],K=w===Vt?-R[L]:-S[L],Te=t.elements.arrow,ve=v&&Te?Kr(Te):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ce=de[W],Le=de[T],Ie=Jr(0,S[L],ve[L]),Xo=D?S[L]/2-G-Ie-Ce-k.mainAxis:z-Ie-Ce-k.mainAxis,Yo=D?-S[L]/2+G+Ie+Le+k.mainAxis:K+Ie+Le+k.mainAxis,ns=t.elements.arrow&&pt(t.elements.arrow),R4=ns?"y"===x?ns.clientTop||0:ns.clientLeft||0:0,G1=null!=(M=B?.[x])?M:0,F4=P+Yo-G1,X1=Jr(v?Yr(U,P+Xo-G1-R4):U,P,v?ct(N,F4):N);E[x]=X1,$[x]=X1-P}if(u){var Y1,k4="x"===x?ne:oe,T4="x"===x?ce:se,vr=E[C],Ja="y"===C?"height":"width",K1=vr+g[k4],Z1=vr-g[T4],os=-1!==[ne,oe].indexOf(y),J1=null!=(Y1=B?.[C])?Y1:0,Q1=os?K1:vr-S[Ja]-R[Ja]-J1+k.altAxis,ep=os?vr+S[Ja]+R[Ja]-J1-k.altAxis:Z1,tp=v&&os?u3(Q1,vr,ep):Jr(v?Q1:K1,vr,v?ep:Z1);E[C]=tp,$[C]=tp-vr}t.modifiersData[n]=$}}var P3,H3=F((()=>{je(),dr(),Ol(),_3(),i1(),zl(),zo(),Xa(),Oo(),l1(),fr(),a(vB,"preventOverflow"),P3={name:"preventOverflow",enabled:!0,phase:"main",fn:vB,requiresIfExists:["offset"]}})),w1=F((()=>{}));function b1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}var $3=F((()=>{a(b1,"getHTMLElementScroll")}));function y1(e){return e!==ee(e)&&pe(e)?b1(e):Qr(e)}var z3=F((()=>{Vl(),ut(),Ve(),$3(),a(y1,"getNodeScroll")}));function wB(e){var t=e.getBoundingClientRect(),r=qt(t.width)/e.offsetWidth||1,n=qt(t.height)/e.offsetHeight||1;return 1!==r||1!==n}function D1(e,t,r){void 0===r&&(r=!1);var n=pe(t),o=pe(t)&&wB(t),i=xe(t),l=Qe(e,o,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(("body"!==me(t)||tn(i))&&(u=y1(t)),pe(t)?((c=Qe(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=en(i))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}var O3=F((()=>{Ho(),z3(),pr(),Ve(),ql(),Wt(),Wl(),fr(),a(wB,"isElementScaled"),a(D1,"getCompositeRect")}));function bB(e){var t=new Map,r=new Set,n=[];function o(i){r.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(u){if(!r.has(u)){var c=t.get(u);c&&o(c)}})),n.push(i)}return e.forEach((function(i){t.set(i.name,i)})),a(o,"sort"),e.forEach((function(i){r.has(i.name)||o(i)})),n}function x1(e){var t=bB(e);return o3.reduce((function(r,n){return r.concat(t.filter((function(o){return o.phase===n})))}),[])}var N3=F((()=>{je(),a(bB,"order"),a(x1,"orderModifiers")}));function C1(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var j3=F((()=>{a(C1,"debounce")}));function E1(e){var t=e.reduce((function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r}),{});return Object.keys(t).map((function(r){return t[r]}))}var V3=F((()=>{a(E1,"mergeByName")}));function W3(){for(var e=arguments.length,t=new Array(e),r=0;r{O3(),zl(),d1(),zo(),N3(),j3(),V3(),Ve(),q3={placement:"bottom",modifiers:[],strategy:"absolute"},a(W3,"areValidElements"),a(U3,"popperGenerator")})),X3=F((()=>{G3(),g3(),M3(),h3(),i3(),I3(),R3(),H3(),p3(),T3(),w1(),S1=U3({defaultModifiers:[m3,B3,f3,a3,L3,S3,P3,c3,k3]})})),Y3=F((()=>{je(),w1(),X3()})),Z3=_(((QZ,K3)=>{var DB=typeof Element<"u",xB="function"==typeof Map,CB="function"==typeof Set,EB="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Gl(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var r,n,o,i;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!Gl(e[n],t[n]))return!1;return!0}if(xB&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!Gl(n.value[1],t.get(n.value[0])))return!1;return!0}if(CB&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(EB&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(DB&&e instanceof Element)return!1;for(n=r;0!=n--;)if(("_owner"!==o[n]&&"__v"!==o[n]&&"__o"!==o[n]||!e.$$typeof)&&!Gl(e[o[n]],t[o[n]]))return!1;return!0}return e!=e&&t!=t}a(Gl,"equal"),K3.exports=a((function(t,r){try{return Gl(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}),"isEqual")})),e4=F((()=>{Y3(),Q3=we(Z3()),t3(),SB=[],R1=a((function(t,r,n){void 0===n&&(n={});var o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||SB},l=react__WEBPACK_IMPORTED_MODULE_0__.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),u=l[0],c=l[1],p=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:a((function(v){var b=v.state,m=Object.keys(b.elements);react_dom__WEBPACK_IMPORTED_MODULE_3__.flushSync((function(){c({styles:Q0(m.map((function(g){return[g,b.styles[g]||{}]}))),attributes:Q0(m.map((function(g){return[g,b.attributes[g]]})))})}))}),"fn"),requires:["computeStyles"]}}),[]),d=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[p,{name:"applyStyles",enabled:!1}])};return(0,Q3.default)(o.current,f)?o.current||f:(o.current=f,f)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,p]),h=react__WEBPACK_IMPORTED_MODULE_0__.useRef();return e1((function(){h.current&&h.current.setOptions(d)}),[d]),e1((function(){if(null!=t&&null!=r){var v=(n.createPopper||S1)(t,r,d);return h.current=v,function(){v.destroy(),h.current=null}}}),[t,r,n.createPopper]),{state:h.current?h.current.state:null,styles:u.styles,attributes:u.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}}),"usePopper")})),t4=F((()=>{e4()}));function o4(e){var t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e);return t.current=e,react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){return t.current}),[])}function AB(e){var t=e.initial,r=e.value,n=e.onChange,o=void 0===n?RB:n;if(void 0===t&&void 0===r)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var i=react__WEBPACK_IMPORTED_MODULE_0__.useState(t),l=i[0],u=i[1],c=o4(l),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(h){var f=c(),v="function"==typeof h?h(f):h;"function"==typeof v.persist&&v.persist(),u(v),"function"==typeof o&&o(v)}),[c,o]),d=void 0!==r;return[d?r:l,d?o:p]}function a4(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:a((function(){return null}),"toJSON")}}}function i4(e,t){var r,n,o;void 0===e&&(e={}),void 0===t&&(t={});var i=Object.keys(n4).reduce((function(T,L){var P;return H({},T,((P={})[L]=void 0!==T[L]?T[L]:n4[L],P))}),e),l=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return[{name:"offset",options:{offset:i.offset}}]}),Array.isArray(i.offset)?i.offset:[]),u=H({},t,{placement:t.placement||i.placement,modifiers:t.modifiers||l}),c=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),p=c[0],d=c[1],h=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),f=h[0],v=h[1],b=AB({initial:i.defaultVisible,value:i.visible,onChange:i.onVisibleChange}),m=b[0],g=b[1],y=react__WEBPACK_IMPORTED_MODULE_0__.useRef();react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){return function(){return clearTimeout(y.current)}}),[]);var w=R1(i.followCursor?r4:p,f,u),D=w.styles,x=w.attributes,C=sn(w,FB),E=C.update,S=o4({visible:m,triggerRef:p,tooltipRef:f,finalConfig:i}),R=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(T){return Array.isArray(i.trigger)?i.trigger.includes(T):i.trigger===T}),Array.isArray(i.trigger)?i.trigger:[i.trigger]),A=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){clearTimeout(y.current),y.current=window.setTimeout((function(){return g(!1)}),i.delayHide)}),[i.delayHide,g]),k=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){clearTimeout(y.current),y.current=window.setTimeout((function(){return g(!0)}),i.delayShow)}),[i.delayShow,g]),B=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){S().visible?A():k()}),[S,A,k]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(S().finalConfig.closeOnOutsideClick){var T=a((function(P){var U,N=S(),G=N.tooltipRef,z=N.triggerRef,K=(null==P.composedPath||null==(U=P.composedPath())?void 0:U[0])||P.target;K instanceof Node&&null!=G&&null!=z&&!G.contains(K)&&!z.contains(K)&&A()}),"handleClickOutside");return document.addEventListener("mousedown",T),function(){return document.removeEventListener("mousedown",T)}}}),[S,A]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=p&&R("click"))return p.addEventListener("click",B),function(){return p.removeEventListener("click",B)}}),[p,R,B]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=p&&R("double-click"))return p.addEventListener("dblclick",B),function(){return p.removeEventListener("dblclick",B)}}),[p,R,B]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=p&&R("right-click")){var T=a((function(P){P.preventDefault(),B()}),"preventDefaultAndToggle");return p.addEventListener("contextmenu",T),function(){return p.removeEventListener("contextmenu",T)}}}),[p,R,B]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=p&&R("focus"))return p.addEventListener("focus",k),p.addEventListener("blur",A),function(){p.removeEventListener("focus",k),p.removeEventListener("blur",A)}}),[p,R,k,A]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=p&&R("hover"))return p.addEventListener("mouseenter",k),p.addEventListener("mouseleave",A),function(){p.removeEventListener("mouseenter",k),p.removeEventListener("mouseleave",A)}}),[p,R,k,A]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=f&&R("hover")&&S().finalConfig.interactive)return f.addEventListener("mouseenter",k),f.addEventListener("mouseleave",A),function(){f.removeEventListener("mouseenter",k),f.removeEventListener("mouseleave",A)}}),[f,R,k,A,S]);var $=null==C||null==(r=C.state)||null==(n=r.modifiersData)||null==(o=n.hide)?void 0:o.isReferenceHidden;react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){i.closeOnTriggerHidden&&$&&A()}),[i.closeOnTriggerHidden,A,$]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(i.followCursor&&null!=p)return a(T,"setMousePosition"),p.addEventListener("mousemove",T),function(){return p.removeEventListener("mousemove",T)};function T(L){var P=L.clientX,U=L.clientY;r4.getBoundingClientRect=a4(P,U),E?.()}}),[i.followCursor,p,E]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=f&&null!=E&&null!=i.mutationObserverOptions){var T=new MutationObserver(E);return T.observe(f,i.mutationObserverOptions),function(){return T.disconnect()}}}),[i.mutationObserverOptions,f,E]);var M=a((function(L){return void 0===L&&(L={}),H({},L,{style:H({},L.style,D.popper)},x.popper,{"data-popper-interactive":i.interactive})}),"getTooltipProps"),W=a((function(L){return void 0===L&&(L={}),H({},L,x.arrow,{style:H({},L.style,D.arrow),"data-popper-arrow":!0})}),"getArrowProps");return H({getArrowProps:W,getTooltipProps:M,setTooltipRef:v,setTriggerRef:d,tooltipRef:f,triggerRef:p,visible:m},C)}var RB,FB,r4,n4,u4,tt,kB,TB,F1,l4=F((()=>{ai(),qe(),t4(),a(o4,"useGetLatest"),RB=a((function(){}),"noop"),a(AB,"useControlledState"),a(a4,"generateBoundingClientRect"),FB=["styles","attributes"],r4={getBoundingClientRect:a4()},n4={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"},a(i4,"usePopperTooltip")})),c4=F((()=>{u4=we(Qo(),1),tt=(0,u4.default)(1e3)(((e,t,r,n=0)=>t.split("-")[0]===e?r:n)),8,kB=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({position:"absolute",borderStyle:"solid"},(({placement:e})=>{let t=0,r=0;switch(!0){case e.startsWith("left")||e.startsWith("right"):r=8;break;case e.startsWith("top")||e.startsWith("bottom"):t=8}return{transform:`translate3d(${t}px, ${r}px, 0px)`}}),(({theme:e,color:t,placement:r})=>({bottom:`${tt("top",r,"-8px","auto")}`,top:`${tt("bottom",r,"-8px","auto")}`,right:`${tt("left",r,"-8px","auto")}`,left:`${tt("right",r,"-8px","auto")}`,borderBottomWidth:`${tt("top",r,"0",8)}px`,borderTopWidth:`${tt("bottom",r,"0",8)}px`,borderRightWidth:`${tt("left",r,"0",8)}px`,borderLeftWidth:`${tt("right",r,"0",8)}px`,borderTopColor:tt("top",r,e.color[t]||t||"light"===e.base?(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent"),borderBottomColor:tt("bottom",r,e.color[t]||t||"light"===e.base?(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent"),borderLeftColor:tt("left",r,e.color[t]||t||"light"===e.base?(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent"),borderRightColor:tt("right",r,e.color[t]||t||"light"===e.base?(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent")}))),TB=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647})),(({theme:e,color:t,hasChrome:r})=>r?{background:t&&e.color[t]||t||"light"===e.base?(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:e.appBorderRadius,fontSize:e.typography.size.s1}:{})),(F1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({placement:e="top",hasChrome:t=!0,children:r,arrowProps:n={},tooltipRef:o,color:i,withArrows:l,...u},c)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(TB,{"data-testid":"tooltip",hasChrome:t,ref:c,...u,color:i},t&&l&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(kB,{placement:e,...n,color:i}),r)))).displayName="Tooltip"})),T1={};an(T1,{WithToolTipState:()=>k1,WithTooltip:()=>k1,WithTooltipPure:()=>d4});var Xl,_B,PB,d4,k1,Yl=F((()=>{oi(),l4(),c4(),({document:Xl}=ln),_B=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div` + `);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(index_modern_default,{...props,options:{forceBlock:!0,overrides:{code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx,...props?.options?.overrides},...props?.options}})},DescriptionType=((DescriptionType2=DescriptionType||{}).INFO="info",DescriptionType2.NOTES="notes",DescriptionType2.DOCGEN="docgen",DescriptionType2.AUTO="auto",DescriptionType2),DescriptionContainer=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let markdown=(resolvedOf=>{switch(resolvedOf.type){case"story":return resolvedOf.story.parameters.docs?.description?.story||null;case"meta":{let{parameters,component}=resolvedOf.preparedMeta,metaDescription=parameters.docs?.description?.component;return metaDescription||parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}case"component":{let{component,projectAnnotations:{parameters}}=resolvedOf;return parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${resolvedOf.type}`)}})(useOf(of||"meta"));return markdown?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Markdown,null,markdown):null},tocbot=(0,_chunk_2PTXLE6R_mjs__WEBPACK_IMPORTED_MODULE_6__.f1)(require_js()),Wrapper10=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}}))),Content=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.div((({theme})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${theme.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:theme.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:theme.color.secondary,textDecoration:"none"}}))),Heading=storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4.p((({theme})=>({fontWeight:600,fontSize:"0.875em",color:theme.textColor,textTransform:"uppercase",marginBottom:10}))),OptionalTitle=({title})=>null===title?null:"string"==typeof title?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Heading,null,title):title,TableOfContents=({title,disable,headingSelector,contentsSelector,ignoreSelector,unsafeTocbotOptions})=>((0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let configuration={tocSelector:".toc-wrapper",contentSelector:contentsSelector??".sbdocs-content",headingSelector:headingSelector??"h3",ignoreSelector:ignoreSelector??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...unsafeTocbotOptions},timeout=setTimeout((()=>tocbot.init(configuration)),100);return()=>{clearTimeout(timeout),tocbot.destroy()}}),[disable]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Wrapper10,null,disable?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Content,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(OptionalTitle,{title:title||null}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:"toc-wrapper"}))))),{document:document3,window:globalWindow3}=globalThis,DocsContainer=({context,theme,children})=>{let toc;try{toc=context.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc}catch{toc=context?.projectAnnotations?.parameters?.docs?.toc}return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let url;try{if(url=new URL(globalWindow3.parent.location.toString()),url.hash){let element=document3.getElementById(decodeURIComponent(url.hash.substring(1)));element&&setTimeout((()=>{!function scrollToElement(element,block="start"){element.scrollIntoView({behavior:"smooth",block,inline:"nearest"})}(element)}),200)}}catch{}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsContext.Provider,{value:context},react__WEBPACK_IMPORTED_MODULE_0__.createElement(SourceContainer,{channel:context.channel},react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.NP,{theme:(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.D8)(theme)},react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsPageWrapper,{toc:toc?react__WEBPACK_IMPORTED_MODULE_0__.createElement(TableOfContents,{className:"sbdocs sbdocs-toc--custom",...toc}):null},children))))},Subheading=({children,disableAnchor})=>{if(disableAnchor||"string"!=typeof children)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.H3,null,children);let tagID=globalThis.encodeURIComponent(children.toLowerCase());return react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderMdx,{as:"h3",id:tagID},children)},DocsStory=({of,expanded=!0,withToolbar:withToolbarProp=!1,__forceInitialArgs=!1,__primary=!1})=>{let{story}=useOf(of||"story",["story"]),withToolbar=story.parameters.docs?.canvas?.withToolbar??withToolbarProp;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Anchor,{storyId:story.id},expanded&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Subheading,null,story.name),react__WEBPACK_IMPORTED_MODULE_0__.createElement(DescriptionContainer,{of})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Canvas,{of,withToolbar,story:{__forceInitialArgs,__primary},source:{__forceInitialArgs}}))},Primary=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile}=useOf(of||"meta",["meta"]),primaryStory=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext).componentStoriesFromCSFFile(csfFile)[0];return primaryStory?react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsStory,{of:primaryStory.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},StyledHeading=(0,storybook_internal_theming__WEBPACK_IMPORTED_MODULE_7__.I4)((({children,disableAnchor,...props})=>{if(disableAnchor||"string"!=typeof children)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_8__.H2,null,children);let tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,"-");return react__WEBPACK_IMPORTED_MODULE_0__.createElement(HeaderMdx,{as:"h2",id:tagID,...props},children)}))((({theme})=>({fontSize:theme.typography.size.s2-1+"px",fontWeight:theme.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:theme.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}))),Stories=({title="Stories",includePrimary=!0})=>{let{componentStories,projectAnnotations,getStoryContext}=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext),stories=componentStories(),{stories:{filter}={filter:void 0}}=projectAnnotations.parameters?.docs||{};return filter&&(stories=stories.filter((story=>filter(story,getStoryContext(story))))),stories.some((story=>story.tags?.includes("autodocs")))&&(stories=stories.filter((story=>story.tags?.includes("autodocs")&&!story.usesMount))),includePrimary||(stories=stories.slice(1)),stories&&0!==stories.length?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(StyledHeading,null,title),stories.map((story=>story&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(DocsStory,{key:story.id,of:story.moduleExport,expanded:!0,__forceInitialArgs:!0})))):null},Subtitle2=props=>{let preparedMeta,{of,children}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");try{preparedMeta=useOf(of||"meta",["meta"]).preparedMeta}catch(error){if(children&&!error.message.includes("did you forget to use ?"))throw error}let{componentSubtitle,docs}=preparedMeta?.parameters||{};componentSubtitle&&(0,storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.deprecate)("Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle");let content=children||docs?.subtitle||componentSubtitle;return content?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Subtitle,{className:"sbdocs-subtitle sb-unstyled"},content):null},STORY_KIND_PATH_SEPARATOR=/\s*\/\s*/,Title2=props=>{let preparedMeta,{children,of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");try{preparedMeta=useOf(of||"meta",["meta"]).preparedMeta}catch(error){if(children&&!error.message.includes("did you forget to use ?"))throw error}let content=children||(title=>{let groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups?.[groups?.length-1]||title})(preparedMeta?.title);return content?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Title,{className:"sbdocs-title sb-unstyled"},content):null},DocsPage=()=>{let resolvedOf=useOf("meta",["meta"]),{stories}=resolvedOf.csfFile,isSingleStory=1===Object.keys(stories).length;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Title2,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Subtitle2,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(DescriptionContainer,{of:"meta"}),isSingleStory?react__WEBPACK_IMPORTED_MODULE_0__.createElement(DescriptionContainer,{of:"story"}):null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Primary,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Controls3,null),isSingleStory?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(Stories,null))};function Docs({context,docsParameter}){let Container=docsParameter.container||DocsContainer,Page=docsParameter.page||DocsPage;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Container,{context,theme:docsParameter.theme},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Page,null))}var ExternalDocsContext=class extends storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_3__.DocsContext{constructor(channel,store,renderStoryToElement,processMetaExports){super(channel,store,renderStoryToElement,[]),this.channel=channel,this.store=store,this.renderStoryToElement=renderStoryToElement,this.processMetaExports=processMetaExports,this.referenceMeta=(metaExports,attach)=>{let csfFile=this.processMetaExports(metaExports);this.referenceCSFFile(csfFile),super.referenceMeta(metaExports,attach)}}},ConstantMap=class{constructor(prefix){this.prefix=prefix,this.entries=new Map}get(key2){return this.entries.has(key2)||this.entries.set(key2,`${this.prefix}${this.entries.size}`),this.entries.get(key2)}};storybook_internal_preview_api__WEBPACK_IMPORTED_MODULE_3__.Preview;var Meta=({of})=>{let context=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(DocsContext);of&&context.referenceMeta(of,!0);try{let primary=context.storyById();return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Anchor,{storyId:primary.id})}catch{return null}}},"./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/components/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{$n:()=>Lo,Cy:()=>vu,Df:()=>yI,E7:()=>au,GP:()=>dI,H2:()=>Du,H3:()=>xu,K0:()=>Il,N_:()=>ju,Q2:()=>$1,YV:()=>q,_:()=>KB,_j:()=>N1,aH:()=>d_,bF:()=>wg,dK:()=>iee,dL:()=>dp,jZ:()=>h_,kR:()=>$B,lV:()=>NI,mc:()=>te,o4:()=>OB,px:()=>Kl,zH:()=>mu,zb:()=>kt});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/theming/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/jsx-runtime.js"),react_dom__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/react-dom@16.14.0_react@16.14.0/node_modules/react-dom/index.js"),_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("storybook/internal/client-logger"),_storybook_csf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/.pnpm/@storybook+csf@0.1.11/node_modules/@storybook/csf/dist/index.mjs"),L4=Object.create,Qa=Object.defineProperty,I4=Object.getOwnPropertyDescriptor,B4=Object.getOwnPropertyNames,M4=Object.getPrototypeOf,_4=Object.prototype.hasOwnProperty,a=(e,t)=>Qa(e,"name",{value:t,configurable:!0}),Ko=(e=>__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/components sync recursive"))(),F=(e,t)=>()=>(e&&(t=e(e=0)),t),_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),an=(e,t)=>{for(var r in t)Qa(e,r,{get:t[r],enumerable:!0})},we=(e,t,r)=>(r=null!=e?L4(M4(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of B4(t))!_4.call(e,o)&&o!==r&&Qa(e,o,{get:()=>t[o],enumerable:!(n=I4(t,o))||n.enumerable});return e})(!t&&e&&e.__esModule?r:Qa(r,"default",{value:e,enumerable:!0}),e));function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a(H,"_extends")}));function rp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var np=F((()=>{a(rp,"_assertThisInitialized")}));function Xt(e,t){return(Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(e,t)}var ei=F((()=>{a(Xt,"_setPrototypeOf")}));function ti(e){return(ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}var ln,ap=F((()=>{a(ti,"_getPrototypeOf")})),oi=F((()=>{ln=(()=>{let e;return e=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:{},e})()})),Qo=_(((hp,vs)=>{!function(e){if("object"==typeof hp&&typeof vs<"u")vs.exports=e();else if("function"==typeof define&&__webpack_require__.amdO)define([],e);else{(typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:this).memoizerific=e()}}((function(){return a((function n(o,i,l){function u(d,h){if(!i[d]){if(!o[d]){var f="function"==typeof Ko&&Ko;if(!h&&f)return f(d,!0);if(c)return c(d,!0);var v=new Error("Cannot find module '"+d+"'");throw v.code="MODULE_NOT_FOUND",v}var b=i[d]={exports:{}};o[d][0].call(b.exports,(function(m){return u(o[d][1][m]||m)}),b,b.exports,n,o,i,l)}return i[d].exports}a(u,"s");for(var c="function"==typeof Ko&&Ko,p=0;p=0?(this.lastItem=this.list[c],this.list[c].val):void 0},l.prototype.set=function(u,c){var p;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=c,this):(p=this.indexOf(u))>=0?(this.lastItem=this.list[p],this.list[p].val=c,this):(this.lastItem={key:u,val:c},this.list.push(this.lastItem),this.size++,this)},l.prototype.delete=function(u){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),(c=this.indexOf(u))>=0)return this.size--,this.list.splice(c,1)[0]},l.prototype.has=function(u){var c;return!(!this.lastItem||!this.isEqual(this.lastItem.key,u))||(c=this.indexOf(u))>=0&&(this.lastItem=this.list[c],!0)},l.prototype.forEach=function(u,c){var p;for(p=0;p=0&&(!(v=(f=d[b]).cacheItem.get(f.arg))||!v.size);b--)f.cacheItem.delete(f.arg)}function p(d,h){return d===h||d!=d&&h!=h}o.exports=function(d){var h=new l(!1),f=[];return function(v){var b=a((function(){var g,y,C,m=h,w=arguments.length-1,D=Array(w+1),x=!0;if((b.numArgs||0===b.numArgs)&&b.numArgs!==w+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(C=0;C0&&(D[w]={cacheItem:m,arg:arguments[w]},x?u(f,D):f.push(D),f.length>d&&c(f.shift())),b.wasMemoized=x,b.numArgs=w+1,y}),"memoizerific");return b.limit=d,b.wasMemoized=!1,b.cache=h,b.lru=f,b}},a(u,"moveToMostRecentLru"),a(c,"removeCachedResult"),a(p,"isEqual")},{"map-or-similar":1}]},{},[3])(3)}))}));function sn(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ai=F((()=>{a(sn,"_objectWithoutPropertiesLoose")}));function mp(e,t){if(null==e)return{};var r,n,o=sn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var gp=F((()=>{ai(),a(mp,"_objectWithoutProperties")}));function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r{a(ea,"_arrayLikeToArray")}));function vp(e){if(Array.isArray(e))return ea(e)}var wp=F((()=>{ws(),a(vp,"_arrayWithoutHoles")}));function bp(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var yp=F((()=>{a(bp,"_iterableToArray")}));function Dp(e,t){if(e){if("string"==typeof e)return ea(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ea(e,t):void 0}}var xp=F((()=>{ws(),a(Dp,"_unsupportedIterableToArray")}));function Cp(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ep=F((()=>{a(Cp,"_nonIterableSpread")}));function Sp(e){return vp(e)||bp(e)||Dp(e)||Cp()}var Rp=F((()=>{wp(),yp(),xp(),Ep(),a(Sp,"_toConsumableArray")}));function br(e){return(br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var bs=F((()=>{a(br,"_typeof")}));function Ap(e,t){if("object"!=br(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Fp=F((()=>{bs(),a(Ap,"toPrimitive")}));function kp(e){var t=Ap(e,"string");return"symbol"==br(t)?t:t+""}var Tp=F((()=>{bs(),Fp(),a(kp,"toPropertyKey")}));function ii(e,t,r){return(t=kp(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ys=F((()=>{Tp(),a(ii,"_defineProperty")}));function Lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function un(e){for(var t=1;t=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}function m6(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return Ds[t]||(Ds[t]=h6(e)),Ds[t]}function g6(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return m6(e.filter((function(i){return"token"!==i}))).reduce((function(i,l){return un(un({},i),r[l])}),t)}function Ip(e){return e.join(" ")}function v6(e,t){var r=0;return function(n){return r+=1,n.map((function(o,i){return yr({node:o,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})}))}}function yr(e){var t=e.node,r=e.stylesheet,n=e.style,o=void 0===n?{}:n,i=e.useInlineStyles,l=e.key,u=t.properties,c=t.type,p=t.tagName,d=t.value;if("text"===c)return d;if(p){var f,h=v6(r,i);if(i){var v=Object.keys(r).reduce((function(y,w){return w.split(".").forEach((function(D){y.includes(D)||y.push(D)})),y}),[]),b=u.className&&u.className.includes("token")?["token"]:[],m=u.className&&b.concat(u.className.filter((function(y){return!v.includes(y)})));f=un(un({},u),{},{className:Ip(m)||void 0,style:g6(u.className,Object.assign({},u.style,o),r)})}else f=un(un({},u),{},{className:Ip(u.className)});var g=h(t.children);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,H({key:l},f),g)}}var Ds,Bp,xs=F((()=>{qe(),ys(),a(Lp,"ownKeys"),a(un,"_objectSpread"),a(h6,"powerSetPermutations"),Ds={},a(m6,"getClassNameCombinations"),a(g6,"createStyleObject"),a(Ip,"createClassNameString"),a(v6,"createChildren"),a(yr,"createElement")})),Mp=F((()=>{Bp=a((function(e,t){return-1!==e.listLanguages().indexOf(t)}),"default")}));function _p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function mt(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=0;n2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:n,wrapLongLines:c})}function m(C,E){if(n&&E&&o){var S=Hp(u,E,l);C.unshift(Pp(E,S))}return C}function g(C,E){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||S.length>0?b(C,E,S):m(C,E)}a(b,"createWrappedLine"),a(m,"createUnwrappedLine"),a(g,"createLine");for(var y=a((function(){var E=d[v],S=E.children[0].value;if(y6(S)){var A=S.split("\n");A.forEach((function(k,B){var $=n&&h.length+i,M={type:"text",value:"".concat(k,"\n")};if(0===B){var T=g(d.slice(f+1,v).concat(li({children:[M],className:E.properties.className})),$);h.push(T)}else if(B===A.length-1){var L=d[v+1]&&d[v+1].children&&d[v+1].children[0],P={type:"text",value:"".concat(k)};if(L){var U=li({children:[P],className:E.properties.className});d.splice(v+1,0,U)}else{var G=g([P],$,E.properties.className);h.push(G)}}else{var K=g([M],$,E.properties.className);h.push(K)}})),f=v}v++}),"_loop");v{gp(),Rp(),ys(),xs(),Mp(),w6=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"],a(_p,"ownKeys"),a(mt,"_objectSpread"),b6=/\n/g,a(y6,"getNewLines"),a(D6,"getAllLineNumbers"),a(x6,"AllLineNumbers"),a(C6,"getEmWidthOfNumber"),a(Pp,"getInlineLineNumber"),a(Hp,"assembleLineNumberStyles"),a(li,"createLineElement"),a($p,"flattenCodeTree"),a(E6,"processLines"),a(S6,"defaultRenderer"),a(zp,"isHighlightJs"),a(R6,"getCodeTree"),a(Cs,"default")})),jp=_(((DH,Np)=>{Np.exports=F6;var A6=Object.prototype.hasOwnProperty;function F6(){for(var e={},t=0;t{qp.exports=Vp;var Es=Vp.prototype;function Vp(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}Es.space=null,Es.normal={},Es.property={},a(Vp,"Schema")})),Gp=_(((SH,Up)=>{var Wp=jp(),k6=Ss();function T6(e){for(var i,l,t=e.length,r=[],n=[],o=-1;++o{function L6(e){return e.toLowerCase()}Xp.exports=L6,a(L6,"normalize")})),Rs=_(((kH,Kp)=>{Kp.exports=Yp;var Ue=Yp.prototype;function Yp(e,t){this.property=e,this.attribute=t}Ue.space=null,Ue.attribute=null,Ue.property=null,Ue.boolean=!1,Ue.booleanish=!1,Ue.overloadedBoolean=!1,Ue.number=!1,Ue.commaSeparated=!1,Ue.spaceSeparated=!1,Ue.commaOrSpaceSeparated=!1,Ue.mustUseProperty=!1,Ue.defined=!1,a(Yp,"Info")})),ui=_((Kt=>{var I6=0;function xr(){return Math.pow(2,++I6)}Kt.boolean=xr(),Kt.booleanish=xr(),Kt.overloadedBoolean=xr(),Kt.number=xr(),Kt.spaceSeparated=xr(),Kt.commaSeparated=xr(),Kt.commaOrSpaceSeparated=xr(),a(xr,"increment")})),Fs=_(((BH,td)=>{var Qp=Rs(),Zp=ui();td.exports=As,As.prototype=new Qp,As.prototype.defined=!0;var ed=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],B6=ed.length;function As(e,t,r,n){var i,o=-1;for(Jp(this,"space",n),Qp.call(this,e,t);++o{var rd=si(),M6=Ss(),_6=Fs();function P6(e){var c,p,t=e.space,r=e.mustUseProperty||[],n=e.attributes||{},o=e.properties,i=e.transform,l={},u={};for(c in o)p=new _6(c,i(n,c),o[c],t),-1!==r.indexOf(c)&&(p.mustUseProperty=!0),l[c]=p,u[rd(c)]=c,u[rd(p.attribute)]=c;return new M6(l,u,t)}nd.exports=P6,a(P6,"create")})),ad=_(((HH,od)=>{var H6=cn();function $6(e,t){return"xlink:"+t.slice(5).toLowerCase()}od.exports=H6({space:"xlink",transform:$6,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),a($6,"xlinkTransform")})),ld=_(((zH,id)=>{var z6=cn();function O6(e,t){return"xml:"+t.slice(3).toLowerCase()}id.exports=z6({space:"xml",transform:O6,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}}),a(O6,"xmlTransform")})),ud=_(((NH,sd)=>{function N6(e,t){return t in e?e[t]:t}sd.exports=N6,a(N6,"caseSensitiveTransform")})),ks=_(((VH,cd)=>{var j6=ud();function V6(e,t){return j6(e,t.toLowerCase())}cd.exports=V6,a(V6,"caseInsensitiveTransform")})),dd=_(((WH,pd)=>{var q6=cn(),W6=ks();pd.exports=q6({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:W6,properties:{xmlns:null,xmlnsXLink:null}})})),hd=_(((UH,fd)=>{var Ts=ui(),U6=cn(),Me=Ts.booleanish,Ge=Ts.number,Cr=Ts.spaceSeparated;function G6(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()}fd.exports=U6({transform:G6,properties:{ariaActiveDescendant:null,ariaAtomic:Me,ariaAutoComplete:null,ariaBusy:Me,ariaChecked:Me,ariaColCount:Ge,ariaColIndex:Ge,ariaColSpan:Ge,ariaControls:Cr,ariaCurrent:null,ariaDescribedBy:Cr,ariaDetails:null,ariaDisabled:Me,ariaDropEffect:Cr,ariaErrorMessage:null,ariaExpanded:Me,ariaFlowTo:Cr,ariaGrabbed:Me,ariaHasPopup:null,ariaHidden:Me,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cr,ariaLevel:Ge,ariaLive:null,ariaModal:Me,ariaMultiLine:Me,ariaMultiSelectable:Me,ariaOrientation:null,ariaOwns:Cr,ariaPlaceholder:null,ariaPosInSet:Ge,ariaPressed:Me,ariaReadOnly:Me,ariaRelevant:null,ariaRequired:Me,ariaRoleDescription:Cr,ariaRowCount:Ge,ariaRowIndex:Ge,ariaRowSpan:Ge,ariaSelected:Me,ariaSetSize:Ge,ariaSort:null,ariaValueMax:Ge,ariaValueMin:Ge,ariaValueNow:Ge,ariaValueText:null,role:null}}),a(G6,"ariaTransform")})),gd=_(((XH,md)=>{var pn=ui(),X6=cn(),Y6=ks(),V=pn.boolean,K6=pn.overloadedBoolean,ta=pn.booleanish,Z=pn.number,Re=pn.spaceSeparated,ci=pn.commaSeparated;md.exports=X6({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Y6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ci,acceptCharset:Re,accessKey:Re,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:Re,autoFocus:V,autoPlay:V,capture:V,charSet:null,checked:V,cite:null,className:Re,cols:Z,colSpan:null,content:null,contentEditable:ta,controls:V,controlsList:Re,coords:Z|ci,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:K6,draggable:ta,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:Re,height:Z,hidden:V,high:Z,href:null,hrefLang:null,htmlFor:Re,httpEquiv:Re,id:null,imageSizes:null,imageSrcSet:ci,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:Re,itemRef:Re,itemScope:V,itemType:Re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:V,optimum:Z,pattern:null,ping:Re,placeholder:null,playsInline:V,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:Re,required:V,reversed:V,rows:Z,rowSpan:Z,sandbox:Re,scope:null,scoped:V,seamless:V,selected:V,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:ta,src:null,srcDoc:null,srcLang:null,srcSet:ci,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:ta,width:Z,wrap:null,align:null,aLink:null,archive:Re,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:ta,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:V,disableRemotePlayback:V,prefix:null,property:null,results:Z,security:null,unselectable:null}})})),wd=_(((YH,vd)=>{var Z6=Gp(),J6=ad(),Q6=ld(),e7=dd(),t7=hd(),r7=gd();vd.exports=Z6([Q6,J6,e7,t7,r7])})),Dd=_(((KH,yd)=>{var n7=si(),o7=Fs(),a7=Rs(),Ls="data";yd.exports=s7;var i7=/^data[-\w.:]+$/i,bd=/-[a-z]/g,l7=/[A-Z]/g;function s7(e,t){var r=n7(t),n=t,o=a7;return r in e.normal?e.property[e.normal[r]]:(r.length>4&&r.slice(0,4)===Ls&&i7.test(t)&&("-"===t.charAt(4)?n=u7(t):t=c7(t),o=o7),new o(n,t))}function u7(e){var t=e.slice(5).replace(bd,d7);return Ls+t.charAt(0).toUpperCase()+t.slice(1)}function c7(e){var t=e.slice(4);return bd.test(t)?e:("-"!==(t=t.replace(l7,p7)).charAt(0)&&(t="-"+t),Ls+t)}function p7(e){return"-"+e.toLowerCase()}function d7(e){return e.charAt(1).toUpperCase()}a(s7,"find"),a(u7,"datasetToProperty"),a(c7,"datasetToAttribute"),a(p7,"kebab"),a(d7,"camelcase")})),Ed=_(((JH,Cd)=>{Cd.exports=f7;var xd=/[#.]/g;function f7(e,t){for(var l,u,c,r=e||"",n=t||"div",o={},i=0;i{Is.parse=g7,Is.stringify=v7;var Sd="",h7=" ",m7=/[ \t\n\r\f]+/g;function g7(e){var t=String(e||Sd).trim();return t===Sd?[]:t.split(m7)}function v7(e){return e.join(h7).trim()}a(g7,"parse"),a(v7,"stringify")})),Fd=_((Ms=>{Ms.parse=w7,Ms.stringify=b7;var Bs=",",Ad=" ",ra="";function w7(e){for(var l,t=[],r=String(e||ra),n=r.indexOf(Bs),o=0,i=!1;!i;)-1===n&&(n=r.length,i=!0),((l=r.slice(o,n).trim())||!i)&&t.push(l),o=n+1,n=r.indexOf(Bs,o);return t}function b7(e,t){var r=t||{},n=!1===r.padLeft?ra:Ad,o=r.padRight?Ad:ra;return e[e.length-1]===ra&&(e=e.concat(ra)),e.join(o+Bs+n).trim()}a(w7,"parse"),a(b7,"stringify")})),_d=_(((o$,Md)=>{var y7=Dd(),kd=si(),D7=Ed(),Td=Rd().parse,Ld=Fd().parse;Md.exports=C7;var x7={}.hasOwnProperty;function C7(e,t,r){var n=r?F7(r):null;return function o(l,u){var h,c=D7(l,t),p=Array.prototype.slice.call(arguments,2),d=c.tagName.toLowerCase();if(c.tagName=n&&x7.call(n,d)?n[d]:d,u&&E7(u,c)&&(p.unshift(u),u=null),u)for(h in u)i(c.properties,h,u[h]);return Bd(c.children,p),"template"===c.tagName&&(c.content={type:"root",children:c.children},c.children=[]),c};function i(l,u,c){var p,d,h;null==c||c!=c||(d=(p=y7(e,u)).property,"string"==typeof(h=c)&&(p.spaceSeparated?h=Td(h):p.commaSeparated?h=Ld(h):p.commaOrSpaceSeparated&&(h=Td(Ld(h).join(" ")))),"style"===d&&"string"!=typeof c&&(h=A7(h)),"className"===d&&l.className&&(h=l.className.concat(h)),l[d]=R7(p,d,h))}}function E7(e,t){return"string"==typeof e||"length"in e||S7(t.tagName,e)}function S7(e,t){var r=t.type;return!("input"===e||!r||"string"!=typeof r)&&("object"==typeof t.children&&"length"in t.children||(r=r.toLowerCase(),"button"===e?"menu"!==r&&"submit"!==r&&"reset"!==r&&"button"!==r:"value"in t))}function Bd(e,t){var r,n;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(r=-1,n=t.length;++r{var k7=wd(),Pd=_d()(k7,"div");Pd.displayName="html",Hd.exports=Pd})),Od=_(((l$,zd)=>{zd.exports=$d()})),Nd=_(((s$,L7)=>{L7.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}})),jd=_(((u$,I7)=>{I7.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}})),_s=_(((c$,Vd)=>{function B7(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}Vd.exports=B7,a(B7,"decimal")})),Wd=_(((d$,qd)=>{function M7(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}qd.exports=M7,a(M7,"hexadecimal")})),Gd=_(((h$,Ud)=>{function _7(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}Ud.exports=_7,a(_7,"alphabetical")})),Yd=_(((g$,Xd)=>{var P7=Gd(),H7=_s();function $7(e){return P7(e)||H7(e)}Xd.exports=$7,a($7,"alphanumerical")})),Zd=_(((w$,Kd)=>{var pi;function O7(e){var r,t="&"+e+";";return(pi=pi||document.createElement("i")).innerHTML=t,(59!==(r=pi.textContent).charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}Kd.exports=O7,a(O7,"decodeEntity")})),df=_(((y$,pf)=>{var Jd=Nd(),Qd=jd(),N7=_s(),j7=Wd(),nf=Yd(),V7=Zd();pf.exports=rw;var q7={}.hasOwnProperty,dn=String.fromCharCode,W7=Function.prototype,ef={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},U7=9,tf=10,G7=12,X7=32,rf=38,Y7=59,K7=60,Z7=61,J7=35,Q7=88,ew=120,tw=65533,fn="named",Hs="hexadecimal",$s="decimal",zs={};zs[Hs]=16,zs[$s]=10;var di={};di[fn]=nf,di[$s]=N7,di[Hs]=j7;var of=1,af=2,lf=3,sf=4,uf=5,Ps=6,cf=7,Zt={};function rw(e,t){var n,o,r={};for(o in t||(t={}),ef)n=t[o],r[o]=n??ef[o];return(r.position.indent||r.position.start)&&(r.indent=r.position.indent||[],r.position=r.position.start),nw(e,r)}function nw(e,t){var D,x,C,E,S,R,A,k,B,$,M,W,T,L,P,U,N,G,z,r=t.additional,n=t.nonTerminated,o=t.text,i=t.reference,l=t.warning,u=t.textContext,c=t.referenceContext,p=t.warningContext,d=t.position,h=t.indent||[],f=e.length,v=0,b=-1,m=d.column||1,g=d.line||1,y="",w=[];for("string"==typeof r&&(r=r.charCodeAt(0)),U=K(),k=l?function Te(de,Ce){var Le=K();Le.column+=Ce,Le.offset+=Ce,l.call(p,Zt[de],Le,de)}:W7,v--,f++;++v65535&&($+=dn((R-=65536)>>>10|55296),R=56320|1023&R),R=$+dn(R))):L!==fn&&k(sf,G)),R?(ve(),U=K(),v=z-1,m+=z-T+1,w.push(R),(N=K()).offset++,i&&i.call(c,R,{start:U,end:N},e.slice(T-1,z)),U=N):(E=e.slice(T-1,z),y+=E,m+=E.length,v=z-1)}else 10===S&&(g++,b++,m=0),S==S?(y+=dn(S),m++):ve();return w.join("");function K(){return{line:g,column:m,offset:v+(d.offset||0)}}function ve(){y&&(w.push(y),o&&o.call(u,y,{start:U,end:K()}),y="")}}function ow(e){return e>=55296&&e<=57343||e>1114111}function aw(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}Zt[of]="Named character references must be terminated by a semicolon",Zt[af]="Numeric character references must be terminated by a semicolon",Zt[lf]="Named character references cannot be empty",Zt[sf]="Numeric character references cannot be empty",Zt[uf]="Named character references must be known",Zt[Ps]="Numeric character references cannot be disallowed",Zt[cf]="Numeric character references cannot be outside the permissible Unicode range",a(rw,"parseEntities"),a(nw,"parse"),a(ow,"prohibited"),a(aw,"disallowed")})),hf=_(((x$,fi)=>{var ff=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,n={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:a((function m(g){return g instanceof i?new i(g.type,m(g.content),g.alias):Array.isArray(g)?g.map(m):g.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(w){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(m){var g=document.getElementsByTagName("script");for(var y in g)if(g[y].src==m)return g[y]}return null}}),"currentScript"),isActive:a((function(m,g,y){for(var w="no-"+g;m;){var D=m.classList;if(D.contains(g))return!0;if(D.contains(w))return!1;m=m.parentElement}return!!y}),"isActive")},languages:{plain:n,plaintext:n,text:n,txt:n,extend:a((function(m,g){var y=o.util.clone(o.languages[m]);for(var w in g)y[w]=g[w];return y}),"extend"),insertBefore:a((function(m,g,y,w){var D=(w=w||o.languages)[m],x={};for(var C in D)if(D.hasOwnProperty(C)){if(C==g)for(var E in y)y.hasOwnProperty(E)&&(x[E]=y[E]);y.hasOwnProperty(C)||(x[C]=D[C])}var S=w[m];return w[m]=x,o.languages.DFS(o.languages,(function(R,A){A===S&&R!=m&&(this[R]=x)})),x}),"insertBefore"),DFS:a((function m(g,y,w,D){D=D||{};var x=o.util.objId;for(var C in g)if(g.hasOwnProperty(C)){y.call(g,C,g[C],w||C);var E=g[C],S=o.util.type(E);"Object"!==S||D[x(E)]?"Array"===S&&!D[x(E)]&&(D[x(E)]=!0,m(E,y,C,D)):(D[x(E)]=!0,m(E,y,null,D))}}),"DFS")},plugins:{},highlightAll:a((function(m,g){o.highlightAllUnder(document,m,g)}),"highlightAll"),highlightAllUnder:a((function(m,g,y){var w={callback:y,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),o.hooks.run("before-all-elements-highlight",w);for(var x,D=0;x=w.elements[D++];)o.highlightElement(x,!0===g,w.callback)}),"highlightAllUnder"),highlightElement:a((function(m,g,y){var w=o.util.getLanguage(m),D=o.languages[w];o.util.setLanguage(m,w);var x=m.parentElement;x&&"pre"===x.nodeName.toLowerCase()&&o.util.setLanguage(x,w);var E={element:m,language:w,grammar:D,code:m.textContent};function S(A){E.highlightedCode=A,o.hooks.run("before-insert",E),E.element.innerHTML=E.highlightedCode,o.hooks.run("after-highlight",E),o.hooks.run("complete",E),y&&y.call(E.element)}if(a(S,"insertHighlightedCode"),o.hooks.run("before-sanity-check",E),(x=E.element.parentElement)&&"pre"===x.nodeName.toLowerCase()&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!E.code)return o.hooks.run("complete",E),void(y&&y.call(E.element));if(o.hooks.run("before-highlight",E),E.grammar)if(g&&e.Worker){var R=new Worker(o.filename);R.onmessage=function(A){S(A.data)},R.postMessage(JSON.stringify({language:E.language,code:E.code,immediateClose:!0}))}else S(o.highlight(E.code,E.grammar,E.language));else S(o.util.encode(E.code))}),"highlightElement"),highlight:a((function(m,g,y){var w={code:m,grammar:g,language:y};if(o.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=o.tokenize(w.code,w.grammar),o.hooks.run("after-tokenize",w),i.stringify(o.util.encode(w.tokens),w.language)}),"highlight"),tokenize:a((function(m,g){var y=g.rest;if(y){for(var w in y)g[w]=y[w];delete g.rest}var D=new c;return p(D,D.head,m),u(m,D,g,D.head,0),h(D)}),"tokenize"),hooks:{all:{},add:a((function(m,g){var y=o.hooks.all;y[m]=y[m]||[],y[m].push(g)}),"add"),run:a((function(m,g){var y=o.hooks.all[m];if(y&&y.length)for(var D,w=0;D=y[w++];)D(g)}),"run")},Token:i};function i(m,g,y,w){this.type=m,this.content=g,this.alias=y,this.length=0|(w||"").length}function l(m,g,y,w){m.lastIndex=g;var D=m.exec(y);if(D&&w&&D[1]){var x=D[1].length;D.index+=x,D[0]=D[0].slice(x)}return D}function u(m,g,y,w,D,x){for(var C in y)if(y.hasOwnProperty(C)&&y[C]){var E=y[C];E=Array.isArray(E)?E:[E];for(var S=0;S=x.reach);L+=T.value.length,T=T.next){var P=T.value;if(g.length>m.length)return;if(!(P instanceof i)){var N,U=1;if(B){if(!(N=l(W,L,m,k))||N.index>=m.length)break;var Te=N.index,G=N.index+N[0].length,z=L;for(z+=T.value.length;Te>=z;)z+=(T=T.next).value.length;if(L=z-=T.value.length,T.value instanceof i)continue;for(var K=T;K!==g.tail&&(zx.reach&&(x.reach=Le);var Ie=T.prev;if(de&&(Ie=p(g,Ie,de),L+=de.length),d(g,Ie,U),T=p(g,Ie,new i(C,A?o.tokenize(ve,A):ve,$,ve)),Ce&&p(g,T,Ce),U>1){var Yo={cause:C+","+S,reach:Le};u(m,g,y,T.prev,L,Yo),x&&Yo.reach>x.reach&&(x.reach=Yo.reach)}}}}}}function c(){var m={value:null,prev:null,next:null},g={value:null,prev:m,next:null};m.next=g,this.head=m,this.tail=g,this.length=0}function p(m,g,y){var w=g.next,D={value:y,prev:g,next:w};return g.next=D,w.prev=D,m.length++,D}function d(m,g,y){for(var w=g.next,D=0;D"+D.content+""}),"stringify"),a(l,"matchPattern"),a(u,"matchGrammar"),a(c,"LinkedList"),a(p,"addAfter"),a(d,"removeRange"),a(h,"toArray"),!e.document)return e.addEventListener&&(o.disableWorkerMessageHandler||e.addEventListener("message",(function(m){var g=JSON.parse(m.data),y=g.language,w=g.code,D=g.immediateClose;e.postMessage(o.highlight(w,o.languages[y],y)),D&&e.close()}),!1)),o;var f=o.util.currentScript();function v(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),a(v,"highlightAutomaticallyCallback"),!o.manual){var b=document.readyState;"loading"===b||"interactive"===b&&f&&f.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return o}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});typeof fi<"u"&&fi.exports&&(fi.exports=ff),typeof __webpack_require__.g<"u"&&(__webpack_require__.g.Prism=ff)})),Ns=_(((E$,mf)=>{function Os(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:a((function(r,n){var o={};o["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},o.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var l={};l[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,(function(){return r})),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",l)}),"addInlined")}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:a((function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}),"value")}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}mf.exports=Os,Os.displayName="markup",Os.aliases=["html","mathml","svg","xml","ssml","atom","rss"],a(Os,"markup")})),Vs=_(((R$,gf)=>{function js(e){!function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}gf.exports=js,js.displayName="css",js.aliases=[],a(js,"css")})),wf=_(((F$,vf)=>{function qs(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}vf.exports=qs,qs.displayName="clike",qs.aliases=[],a(qs,"clike")})),yf=_(((T$,bf)=>{function Ws(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}bf.exports=Ws,Ws.displayName="javascript",Ws.aliases=["js"],a(Ws,"javascript")})),Ef=_(((I$,Cf)=>{var na="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof __webpack_require__.g?__webpack_require__.g:{},lw=xw();na.Prism={manual:!0,disableWorkerMessageHandler:!0};var sw=Od(),uw=df(),Df=hf(),cw=Ns(),pw=Vs(),dw=wf(),fw=yf();lw();var Us={}.hasOwnProperty;function xf(){}a(xf,"Refractor"),xf.prototype=Df;var ae=new xf;function oa(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===ae.languages[e.displayName]&&e(ae)}function hw(e,t){var o,i,l,u,r=ae.languages,n=e;for(o in t&&((n={})[e]=t),n)for(l=(i="string"==typeof(i=n[o])?[i]:i).length,u=-1;++u{Op(),hi=we(Ef()),(Gs=Cs(hi.default,{})).registerLanguage=function(e,t){return hi.default.register(t)},Gs.alias=function(e,t){return hi.default.alias(e,t)},mi=Gs})),Rf=F((()=>{xs()})),Ff=_((($$,Af)=>{function Xs(e){!function(t){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:n,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=o.variable[1].inside,u=0;u{kf=we(Ff()),Tf=kf.default})),Mf=F((()=>{If=we(Vs()),Bf=If.default})),Pf=_(((j$,_f)=>{function Ys(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",a((function(r){if("graphql"===r.language){var n=r.tokens.filter((function(g){return"string"!=typeof g&&"comment"!==g.type&&"scalar"!==g.type})),o=0;for(a(i,"getToken"),a(l,"isTokenType"),a(u,"findClosingBracket"),a(c,"addAlias");o0)){var v=u(/^\{$/,/^\}$/);if(-1===v)continue;for(var b=o;b=0&&c(m,"variable-input")}}}}}function i(g){return n[o+g]}function l(g,y){y=y||0;for(var w=0;w{Hf=we(Pf()),$f=Hf.default})),Nf=_(((W$,Of)=>{function Ks(e){!function(t){function r(c,p){return RegExp(c.replace(//g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),p)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),a(r,"withId"),t.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],o=0;o{jf=we(Nf()),Vf=jf.default})),Uf=_(((X$,Wf)=>{function Zs(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}Wf.exports=Zs,Zs.displayName="json",Zs.aliases=["webmanifest"],a(Zs,"json")})),Yf=F((()=>{Gf=we(Uf()),Xf=Gf.default})),Qs=_(((Z$,Kf)=>{function Js(e){!function(t){var r=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function l(p,d){return p=p.replace(//g,(function(){return n})).replace(//g,(function(){return o})).replace(//g,(function(){return i})),RegExp(p,d)}a(l,"re"),i=l(i).source,t.languages.jsx=t.languages.extend("markup",r),t.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=r.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:l(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var u=a((function(p){return p?"string"==typeof p?p:"string"==typeof p.content?p.content:p.content.map(u).join(""):""}),"stringifyToken"),c=a((function(p){for(var d=[],h=0;h0&&d[d.length-1].tagName===u(f.content[0].content[1])&&d.pop():"/>"===f.content[f.content.length-1].content||d.push({tagName:u(f.content[0].content[1]),openedBraces:0}):d.length>0&&"punctuation"===f.type&&"{"===f.content?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&"punctuation"===f.type&&"}"===f.content?d[d.length-1].openedBraces--:v=!0),(v||"string"==typeof f)&&d.length>0&&0===d[d.length-1].openedBraces){var b=u(f);h0&&("string"==typeof p[h-1]||"plain-text"===p[h-1].type)&&(b=u(p[h-1])+b,p.splice(h-1,1),h--),p[h]=new t.Token("plain-text",b,null,b)}f.content&&"string"!=typeof f.content&&c(f.content)}}),"walkTokens");t.hooks.add("after-tokenize",(function(p){"jsx"!==p.language&&"tsx"!==p.language||c(p.tokens)}))}(e)}Kf.exports=Js,Js.displayName="jsx",Js.aliases=[],a(Js,"jsx")})),Qf=F((()=>{Zf=we(Qs()),Jf=Zf.default})),th=_(((ez,eh)=>{function eu(e){!function(t){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(h){return h=h.replace(//g,(function(){return r})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+h+")")}a(n,"createInline");var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return o})),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+l+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+l+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(h){["url","bold","italic","strike","code-snippet"].forEach((function(f){h!==f&&(t.languages.markdown[h].inside.content.inside[f]=t.languages.markdown[f])}))})),t.hooks.add("after-tokenize",(function(h){function f(v){if(v&&"string"!=typeof v)for(var b=0,m=v.length;b",quot:'"'},p=String.fromCodePoint||String.fromCharCode;function d(h){var f=h.replace(u,"");return f=f.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(v,b){var m;return"#"===(b=b.toLowerCase())[0]?(m="x"===b[1]?parseInt(b.slice(2),16):Number(b.slice(1)),p(m)):c[b]||v}))}a(d,"textContent"),t.languages.md=t.languages.markdown}(e)}eh.exports=eu,eu.displayName="markdown",eu.aliases=["md"],a(eu,"markdown")})),oh=F((()=>{rh=we(th()),nh=rh.default})),lh=F((()=>{ah=we(Ns()),ih=ah.default})),ru=_(((oz,sh)=>{function tu(e){!function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var r=t.languages.extend("typescript",{});delete r["class-name"],t.languages.typescript["class-name"].inside=r,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),t.languages.ts=t.languages.typescript}(e)}sh.exports=tu,tu.displayName="typescript",tu.aliases=["ts"],a(tu,"typescript")})),ch=_(((iz,uh)=>{var Cw=Qs(),Ew=ru();function nu(e){e.register(Cw),e.register(Ew),function(t){var r=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",r),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var n=t.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(e)}uh.exports=nu,nu.displayName="tsx",nu.aliases=[],a(nu,"tsx")})),fh=F((()=>{ph=we(ch()),dh=ph.default})),gh=F((()=>{hh=we(ru()),mh=hh.default})),wh=_(((cz,vh)=>{function ou(e){!function(t){var r=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+n.source+"(?:[ \t]+"+r.source+")?|"+r.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(c,p){p=(p||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,(function(){return o})).replace(/<>/g,(function(){return c}));return RegExp(d,p)}a(u,"createValuePattern"),t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,(function(){return o}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,(function(){return o})).replace(/<>/g,(function(){return"(?:"+i+"|"+l+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(l),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(e)}vh.exports=ou,ou.displayName="yaml",ou.aliases=["yml"],a(ou,"yaml")})),Dh=F((()=>{bh=we(wh()),yh=bh.default})),iu=F((()=>{Sw=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1}))),(Eh=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.button((({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none"}})),(({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5}))).displayName="ActionButton",au=a((({actionItems:e,...t})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Sw,{...t},e.map((({title:r,className:n,onClick:o,disabled:i},l)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Eh,{key:l,className:n,onClick:o,disabled:!!i},r))))),"ActionBar")}));function Aw(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Sh(...e){return t=>e.forEach((r=>Aw(r,t)))}var Rh=F((()=>{a(Aw,"setRef"),a(Sh,"composeRefs")}));function Tw(e){return react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(e)&&e.type===kw}function Lw(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...u)=>{i(...u),o(...u)}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function Iw(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var aa,su,kw,hn,uu=F((()=>{Rh(),(aa=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{children:r,...n}=e,o=react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(r),i=o.find(Tw);if(i){let l=i.props.children,u=o.map((c=>c===i?react__WEBPACK_IMPORTED_MODULE_0__.Children.count(l)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(l)?l.props.children:null:c));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(su,{...n,ref:t,children:react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(l)?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(l,void 0,u):null})}return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(su,{...n,ref:t,children:r})}))).displayName="Slot",(su=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{children:r,...n}=e;if(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(r)){let o=Iw(r);return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(r,{...Lw(n,r.props),ref:t?Sh(t,o):o})}return react__WEBPACK_IMPORTED_MODULE_0__.Children.count(r)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):null}))).displayName="SlotClone",kw=a((({children:e})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment,{children:e})),"Slottable"),a(Tw,"isSlottable"),a(Lw,"mergeProps"),a(Iw,"getElementRef")})),Fh=F((()=>{uu(),hn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{let r=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((n,o)=>{let{asChild:i,...l}=n,u=i?aa:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(u,{...l,ref:o})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{})}));function Pw(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Hw(...e){return t=>e.forEach((r=>Pw(r,t)))}function Tt(...e){return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(Hw(...e),e)}var ia,cu=F((()=>{a(Pw,"setRef"),a(Hw,"composeRefs"),a(Tt,"useComposedRefs")})),pu=F((()=>{ia=globalThis?.document?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:()=>{}}));function $w(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.useReducer(((r,n)=>t[r][n]??r),e)}function zw(e){let[t,r]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef({}),o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef("none"),l=e?"mounted":"unmounted",[u,c]=$w(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let p=gi(n.current);i.current="mounted"===u?p:"none"}),[u]),ia((()=>{let p=n.current,d=o.current;if(d!==e){let f=i.current,v=gi(p);c(e?"MOUNT":"none"===v||"none"===p?.display?"UNMOUNT":d&&f!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,c]),ia((()=>{if(t){let p=a((h=>{let v=gi(n.current).includes(h.animationName);h.target===t&&v&&react_dom__WEBPACK_IMPORTED_MODULE_3__.flushSync((()=>c("ANIMATION_END")))}),"handleAnimationEnd"),d=a((h=>{h.target===t&&(i.current=gi(n.current))}),"handleAnimationStart");return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}c("ANIMATION_END")}),[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:react__WEBPACK_IMPORTED_MODULE_0__.useCallback((p=>{p&&(n.current=getComputedStyle(p)),r(p)}),[])}}function gi(e){return e?.animationName||"none"}function Ow(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var mn,Bh=F((()=>{cu(),pu(),a($w,"useStateMachine"),(mn=a((e=>{let{present:t,children:r}=e,n=zw(t),o="function"==typeof r?r({present:n.isPresent}):react__WEBPACK_IMPORTED_MODULE_0__.Children.only(r),i=Tt(n.ref,Ow(o));return"function"==typeof r||n.isPresent?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(o,{ref:i}):null}),"Presence")).displayName="Presence",a(zw,"usePresence"),a(gi,"getAnimationName"),a(Ow,"getElementRef")}));function Mh(e,t=[]){let r=[];function n(i,l){let u=react__WEBPACK_IMPORTED_MODULE_0__.createContext(l),c=r.length;function p(h){let{scope:f,children:v,...b}=h,m=f?.[e][c]||u,g=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>b),Object.values(b));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(m.Provider,{value:g,children:v})}function d(h,f){let v=f?.[e][c]||u,b=react__WEBPACK_IMPORTED_MODULE_0__.useContext(v);if(b)return b;if(void 0!==l)return l;throw new Error(`\`${h}\` must be used within \`${i}\``)}return r=[...r,l],a(p,"Provider"),a(d,"useContext2"),p.displayName=i+"Provider",[p,d]}a(n,"createContext3");let o=a((()=>{let i=r.map((l=>react__WEBPACK_IMPORTED_MODULE_0__.createContext(l)));return a((function(u){let c=u?.[e]||i;return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({[`__scope${e}`]:{...u,[e]:c}})),[u,c])}),"useScope")}),"createScope");return o.scopeName=e,[n,jw(o,...t)]}function jw(...e){let t=e[0];if(1===e.length)return t;let r=a((()=>{let n=e.map((o=>({useScope:o(),scopeName:o.scopeName})));return a((function(i){let l=n.reduce(((u,{useScope:c,scopeName:p})=>({...u,...c(i)[`__scope${p}`]})),{});return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({[`__scope${t.scopeName}`]:l})),[l])}),"useComposedScopes")}),"createScope");return r.scopeName=t.scopeName,r}var _h=F((()=>{a(Mh,"createContextScope"),a(jw,"composeContextScopes")}));function Jt(e){let t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current=e})),react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>(...r)=>t.current?.(...r)),[])}var Ph=F((()=>{a(Jt,"useCallbackRef")}));function Hh(e){let t=react__WEBPACK_IMPORTED_MODULE_0__.useContext(Vw);return e||t||"ltr"}var Vw,$h=F((()=>{Vw=react__WEBPACK_IMPORTED_MODULE_0__.createContext(void 0),a(Hh,"useDirection")}));function zh(e,[t,r]){return Math.min(r,Math.max(t,e))}var Oh=F((()=>{a(zh,"clamp")}));function Qt(e,t,{checkForDefaultPrevented:r=!0}={}){return a((function(o){if(e?.(o),!1===r||!o.defaultPrevented)return t?.(o)}),"handleEvent")}var Nh=F((()=>{a(Qt,"composeEventHandlers")}));function qw(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.useReducer(((r,n)=>t[r][n]??r),e)}function bi(e){return e?parseInt(e,10):0}function e5(e,t){let r=e/t;return isNaN(r)?0:r}function yi(e){let t=e5(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function tb(e,t,r,n="ltr"){let o=yi(r),l=t||o/2,u=o-l,c=r.scrollbar.paddingStart+l,p=r.scrollbar.size-r.scrollbar.paddingEnd-u,d=r.content-r.viewport;return t5([c,p],"ltr"===n?[0,d]:[-1*d,0])(e)}function jh(e,t,r="ltr"){let n=yi(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,u=i-n,p=zh(e,"ltr"===r?[0,l]:[-1*l,0]);return t5([0,l],[0,u])(p)}function t5(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function r5(e,t){return e>0&&e()=>window.clearTimeout(n.current)),[]),react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)}),[r,t])}function vn(e,t){let r=Jt(t);ia((()=>{let n=0;if(e){let o=new ResizeObserver((()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)}));return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}}),[e,r])}function nb(e,t){let{asChild:r,children:n}=e;if(!r)return"function"==typeof t?t(n):t;let o=react__WEBPACK_IMPORTED_MODULE_0__.Children.only(n);return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(o,{children:"function"==typeof t?t(o.props.children):t})}var du,qh,nO,Gw,Xe,Wh,Uh,Gh,gt,Xh,Xw,Yw,Yh,fu,Kw,Zw,Jw,Kh,Zh,wi,Jh,Qw,hu,Qh,eb,rb,n5,o5,a5,i5,l5,ib,lb,u5,c5,wn,s5=F((()=>{Fh(),Bh(),_h(),cu(),Ph(),$h(),pu(),Oh(),Nh(),a(qw,"useStateMachine"),du="ScrollArea",[qh,nO]=Mh(du),[Gw,Xe]=qh(du),(Wh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...l}=e,[u,c]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[p,d]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[h,f]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[v,b]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[m,g]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[y,w]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[D,x]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[C,E]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),[S,R]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),A=Tt(t,(B=>c(B))),k=Hh(o);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Gw,{scope:r,type:n,dir:k,scrollHideDelay:i,scrollArea:u,viewport:p,onViewportChange:d,content:h,onContentChange:f,scrollbarX:v,onScrollbarXChange:b,scrollbarXEnabled:C,onScrollbarXEnabledChange:E,scrollbarY:m,onScrollbarYChange:g,scrollbarYEnabled:S,onScrollbarYEnabledChange:R,onCornerWidthChange:w,onCornerHeightChange:x,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hn.div,{dir:k,...l,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":D+"px",...e.style}})})}))).displayName=du,Uh="ScrollAreaViewport",(Gh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:i,...l}=e,u=Xe(Uh,r),p=Tt(t,react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),u.onViewportChange);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n[data-radix-scroll-area-viewport] {\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n[data-radix-scroll-area-viewport]::-webkit-scrollbar {\n display: none;\n}\n:where([data-radix-scroll-area-viewport]) {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n:where([data-radix-scroll-area-content]) {\n flex-grow: 1;\n}\n"},nonce:i}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hn.div,{"data-radix-scroll-area-viewport":"",...l,asChild:o,ref:p,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:nb({asChild:o,children:n},(d=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",{"data-radix-scroll-area-content":"",ref:u.onContentChange,style:{minWidth:u.scrollbarXEnabled?"fit-content":void 0},children:d})))})]})}))).displayName=Uh,gt="ScrollAreaScrollbar",(Xh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,o=Xe(gt,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,u="horizontal"===e.orientation;return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>(u?i(!0):l(!0),()=>{u?i(!1):l(!1)})),[u,i,l]),"hover"===o.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Xw,{...n,ref:t,forceMount:r}):"scroll"===o.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Yw,{...n,ref:t,forceMount:r}):"auto"===o.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Yh,{...n,ref:t,forceMount:r}):"always"===o.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(fu,{...n,ref:t}):null}))).displayName=gt,Xw=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,o=Xe(gt,e.__scopeScrollArea),[i,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let u=o.scrollArea,c=0;if(u){let p=a((()=>{window.clearTimeout(c),l(!0)}),"handlePointerEnter"),d=a((()=>{c=window.setTimeout((()=>l(!1)),o.scrollHideDelay)}),"handlePointerLeave");return u.addEventListener("pointerenter",p),u.addEventListener("pointerleave",d),()=>{window.clearTimeout(c),u.removeEventListener("pointerenter",p),u.removeEventListener("pointerleave",d)}}}),[o.scrollArea,o.scrollHideDelay]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(mn,{present:r||i,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Yh,{"data-state":i?"visible":"hidden",...n,ref:t})})})),Yw=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,o=Xe(gt,e.__scopeScrollArea),i="horizontal"===e.orientation,l=Di((()=>c("SCROLL_END")),100),[u,c]=qw("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if("idle"===u){let p=window.setTimeout((()=>c("HIDE")),o.scrollHideDelay);return()=>window.clearTimeout(p)}}),[u,o.scrollHideDelay,c]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let p=o.viewport,d=i?"scrollLeft":"scrollTop";if(p){let h=p[d],f=a((()=>{let v=p[d];h!==v&&(c("SCROLL"),l()),h=v}),"handleScroll");return p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}}),[o.viewport,i,c,l]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(mn,{present:r||"hidden"!==u,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(fu,{"data-state":"hidden"===u?"hidden":"visible",...n,ref:t,onPointerEnter:Qt(e.onPointerEnter,(()=>c("POINTER_ENTER"))),onPointerLeave:Qt(e.onPointerLeave,(()=>c("POINTER_LEAVE")))})})})),Yh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=Xe(gt,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),u="horizontal"===e.orientation,c=Di((()=>{if(r.viewport){let p=r.viewport.offsetWidth{let{orientation:r="vertical",...n}=e,o=Xe(gt,e.__scopeScrollArea),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0),[u,c]=react__WEBPACK_IMPORTED_MODULE_0__.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=e5(u.viewport,u.content),d={...n,sizes:u,onSizesChange:c,hasThumb:p>0&&p<1,onThumbChange:a((f=>i.current=f),"onThumbChange"),onThumbPointerUp:a((()=>l.current=0),"onThumbPointerUp"),onThumbPointerDown:a((f=>l.current=f),"onThumbPointerDown")};function h(f,v){return tb(f,l.current,u,v)}return a(h,"getScrollPosition"),"horizontal"===r?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Kw,{...d,ref:t,onThumbPositionChange:a((()=>{if(o.viewport&&i.current){let v=jh(o.viewport.scrollLeft,u,o.dir);i.current.style.transform=`translate3d(${v}px, 0, 0)`}}),"onThumbPositionChange"),onWheelScroll:a((f=>{o.viewport&&(o.viewport.scrollLeft=f)}),"onWheelScroll"),onDragScroll:a((f=>{o.viewport&&(o.viewport.scrollLeft=h(f,o.dir))}),"onDragScroll")}):"vertical"===r?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Zw,{...d,ref:t,onThumbPositionChange:a((()=>{if(o.viewport&&i.current){let v=jh(o.viewport.scrollTop,u);i.current.style.transform=`translate3d(0, ${v}px, 0)`}}),"onThumbPositionChange"),onWheelScroll:a((f=>{o.viewport&&(o.viewport.scrollTop=f)}),"onWheelScroll"),onDragScroll:a((f=>{o.viewport&&(o.viewport.scrollTop=h(f))}),"onDragScroll")}):null})),Kw=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Xe(gt,e.__scopeScrollArea),[l,u]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),p=Tt(t,c,i.onScrollbarXChange);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{c.current&&u(getComputedStyle(c.current))}),[c]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Zh,{"data-orientation":"horizontal",...o,ref:p,sizes:r,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":yi(r)+"px",...e.style},onThumbPointerDown:a((d=>e.onThumbPointerDown(d.x)),"onThumbPointerDown"),onDragScroll:a((d=>e.onDragScroll(d.x)),"onDragScroll"),onWheelScroll:a(((d,h)=>{if(i.viewport){let f=i.viewport.scrollLeft+d.deltaX;e.onWheelScroll(f),r5(f,h)&&d.preventDefault()}}),"onWheelScroll"),onResize:a((()=>{c.current&&i.viewport&&l&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:bi(l.paddingLeft),paddingEnd:bi(l.paddingRight)}})}),"onResize")})})),Zw=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=Xe(gt,e.__scopeScrollArea),[l,u]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),p=Tt(t,c,i.onScrollbarYChange);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{c.current&&u(getComputedStyle(c.current))}),[c]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Zh,{"data-orientation":"vertical",...o,ref:p,sizes:r,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":yi(r)+"px",...e.style},onThumbPointerDown:a((d=>e.onThumbPointerDown(d.y)),"onThumbPointerDown"),onDragScroll:a((d=>e.onDragScroll(d.y)),"onDragScroll"),onWheelScroll:a(((d,h)=>{if(i.viewport){let f=i.viewport.scrollTop+d.deltaY;e.onWheelScroll(f),r5(f,h)&&d.preventDefault()}}),"onWheelScroll"),onResize:a((()=>{c.current&&i.viewport&&l&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:bi(l.paddingTop),paddingEnd:bi(l.paddingBottom)}})}),"onResize")})})),[Jw,Kh]=qh(gt),Zh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:l,onThumbPointerDown:u,onThumbPositionChange:c,onDragScroll:p,onWheelScroll:d,onResize:h,...f}=e,v=Xe(gt,r),[b,m]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),g=Tt(t,(A=>m(A))),y=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),w=react__WEBPACK_IMPORTED_MODULE_0__.useRef(""),D=v.viewport,x=n.content-n.viewport,C=Jt(d),E=Jt(c),S=Di(h,10);function R(A){if(y.current){let k=A.clientX-y.current.left,B=A.clientY-y.current.top;p({x:k,y:B})}}return a(R,"handleDragScroll"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let A=a((k=>{let B=k.target;b?.contains(B)&&C(k,x)}),"handleWheel");return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})}),[D,b,x,C]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(E,[n,E]),vn(b,S),vn(v.content,S),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Jw,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:Jt(i),onThumbPointerUp:Jt(l),onThumbPositionChange:E,onThumbPointerDown:Jt(u),children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hn.div,{...f,ref:g,style:{position:"absolute",...f.style},onPointerDown:Qt(e.onPointerDown,(A=>{0===A.button&&(A.target.setPointerCapture(A.pointerId),y.current=b.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),R(A))})),onPointerMove:Qt(e.onPointerMove,R),onPointerUp:Qt(e.onPointerUp,(A=>{let k=A.target;k.hasPointerCapture(A.pointerId)&&k.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=w.current,v.viewport&&(v.viewport.style.scrollBehavior=""),y.current=null}))})})})),wi="ScrollAreaThumb",Jh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,o=Kh(wi,e.__scopeScrollArea);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(mn,{present:r||o.hasThumb,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Qw,{ref:t,...n})})})),Qw=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,i=Xe(wi,r),l=Kh(wi,r),{onThumbPositionChange:u}=l,c=Tt(t,(h=>l.onThumbChange(h))),p=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),d=Di((()=>{p.current&&(p.current(),p.current=void 0)}),100);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let h=i.viewport;if(h){let f=a((()=>{if(d(),!p.current){let v=rb(h,u);p.current=v,u()}}),"handleScroll");return u(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}}),[i.viewport,d,u]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hn.div,{"data-state":l.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Qt(e.onPointerDownCapture,(h=>{let v=h.target.getBoundingClientRect(),b=h.clientX-v.left,m=h.clientY-v.top;l.onThumbPointerDown({x:b,y:m})})),onPointerUp:Qt(e.onPointerUp,l.onThumbPointerUp)})})),Jh.displayName=wi,hu="ScrollAreaCorner",(Qh=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=Xe(hu,e.__scopeScrollArea),n=!(!r.scrollbarX||!r.scrollbarY);return"scroll"!==r.type&&n?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(eb,{...e,ref:t}):null}))).displayName=hu,eb=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=Xe(hu,r),[i,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[u,c]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),p=!(!i||!u);return vn(o.scrollbarX,(()=>{let d=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(d),c(d)})),vn(o.scrollbarY,(()=>{let d=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(d),l(d)})),p?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hn.div,{...n,ref:t,style:{width:i,height:u,position:"absolute",right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:0,...e.style}}):null})),a(bi,"toInt"),a(e5,"getThumbRatio"),a(yi,"getThumbSize"),a(tb,"getScrollPositionFromPointer"),a(jh,"getThumbOffsetFromScroll"),a(t5,"linearScale"),a(r5,"isScrollingWithinScrollbarBounds"),rb=a(((e,t=(()=>{}))=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return a((function o(){let i={left:e.scrollLeft,top:e.scrollTop},l=r.left!==i.left,u=r.top!==i.top;(l||u)&&t(),r=i,n=window.requestAnimationFrame(o)}),"loop")(),()=>window.cancelAnimationFrame(n)}),"addUnlinkedScrollListener"),a(Di,"useDebounceCallback"),a(vn,"useResizeObserver"),a(nb,"getSubtree"),n5=Wh,o5=Gh,a5=Xh,i5=Jh,l5=Qh})),Ci=F((()=>{s5(),ib=(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(n5)((({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`}))),lb=(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(o5)({width:"100%",height:"100%"}),u5=(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(a5)((({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:"true"===t&&"true"===r?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:"true"===t&&"true"===r?0:e}}))),c5=(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(i5)((({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}}))),(wn=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,className:i},l)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ib,{scrollbarsize:o,offset:n,className:i},react__WEBPACK_IMPORTED_MODULE_0__.createElement(lb,{ref:l},e),t&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(u5,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},react__WEBPACK_IMPORTED_MODULE_0__.createElement(c5,null)),r&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(u5,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},react__WEBPACK_IMPORTED_MODULE_0__.createElement(c5,null)),t&&r&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(l5,null))))).displayName="ScrollArea"})),gu={};function mu(){return d5?.clipboard?e=>d5.clipboard.writeText(e):async e=>{let t=la.createElement("TEXTAREA"),r=la.activeElement;t.value=e,la.body.appendChild(t),t.select(),la.execCommand("copy"),la.body.removeChild(t),r.focus()}}an(gu,{SyntaxHighlighter:()=>ua,createCopyToClipboardFunction:()=>mu,default:()=>Db,supportedLanguages:()=>h5});var f5,d5,la,pb,h5,db,fb,hb,mb,gb,vb,wb,m5,bb,yb,ua,Db,ca=F((()=>{oi(),f5=we(Qo(),1),Rf(),Lf(),Mf(),zf(),qf(),Yf(),Qf(),oh(),lh(),fh(),gh(),Dh(),Sf(),iu(),Ci(),({navigator:d5,document:la,window:pb}=ln),h5={jsextra:Vf,jsx:Jf,json:Xf,yml:yh,md:nh,bash:Tf,css:Bf,html:ih,tsx:dh,typescript:mh,graphql:$f},Object.entries(h5).forEach((([e,t])=>{mi.registerLanguage(e,t)})),db=(0,f5.default)(2)((e=>Object.entries(e.code||{}).reduce(((t,[r,n])=>({...t,[`* .${r}`]:n})),{}))),fb=mu(),a(mu,"createCopyToClipboardFunction"),hb=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText})),(({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{}),(({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{})),mb=a((({children:e,className:t})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(wn,{horizontal:!0,vertical:!0,className:t},e)),"UnstyledScroller"),gb=(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(mb)({position:"relative"},(({theme:e})=>db(e))),vb=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.pre((({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0}))),wb=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono}))),m5=a((e=>{let t=[...e.children],r=t[0],n=r.children[0].value,o={...r,children:[],properties:{...r.properties,"data-line-number":n,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=o,{...e,children:t}}),"processLineNumber"),bb=a((({rows:e,stylesheet:t,useInlineStyles:r})=>e.map(((n,o)=>yr({node:m5(n),stylesheet:t,useInlineStyles:r,key:`code-segement${o}`})))),"defaultRenderer"),yb=a(((e,t)=>t?e?({rows:r,...n})=>e({rows:r.map((o=>m5(o))),...n}):bb:e),"wrapRenderer"),(ua=a((({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:o=!1,format:i=!0,formatter:l,className:u,showLineNumbers:c=!1,...p})=>{if("string"!=typeof e||!e.trim())return null;let[d,h]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("");(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{l?l(i,e).then(h):h(e.trim())}),[e,i,l]);let[f,v]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),b=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((g=>{g.preventDefault(),fb(d).then((()=>{v(!0),pb.setTimeout((()=>v(!1)),1500)})).catch(_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_4__.logger.error)}),[d]),m=yb(p.renderer,c);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(hb,{bordered:n,padded:o,showLineNumbers:c,className:u},react__WEBPACK_IMPORTED_MODULE_0__.createElement(gb,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(mi,{padded:o||n,language:t,showLineNumbers:c,showInlineLineNumbers:c,useInlineStyles:!1,PreTag:vb,CodeTag:wb,lineNumberContainerStyle:{},...p,renderer:m},d)),r?react__WEBPACK_IMPORTED_MODULE_0__.createElement(au,{actionItems:[{title:f?"Copied":"Copy",onClick:b}]}):null)}),"SyntaxHighlighter")).registerLanguage=(...e)=>mi.registerLanguage(...e),Db=ua}));function kx(e){if("string"==typeof e)return ec;if(Array.isArray(e))return tc;if(!e)return;let{type:t}=e;return e2.has(t)?t:void 0}function Lx(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(lc(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=Tx([...e2].map((o=>`'${o}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}function bt(e){return Tr(e),{type:zi,contents:e}}function n2(e,t){return Tr(t),{type:Oi,contents:t,n:e}}function ue(e,t={}){return Tr(e),sc(t.expandedStates,!0),{type:wa,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Bx(e){return n2(Number.NEGATIVE_INFINITY,e)}function Mx(e){return n2({type:"root"},e)}function o2(e){return sc(e),{type:Ni,parts:e}}function Ii(e,t="",r={}){return Tr(e),""!==t&&Tr(t),{type:ji,breakContents:e,flatContents:t,groupId:r.groupId}}function _x(e,t){return Tr(e),{type:Vi,contents:e,groupId:t.groupId,negate:t.negate}}function Jn(e,t){Tr(e),sc(t);let r=[];for(let n=0;n""===t)))return"";break;case wa:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===wa&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Oi:case zi:case Vi:case oc:if(!e.contents)return"";break;case ji:if(!e.flatContents&&!e.breakContents)return"";break;case tc:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];"string"==typeof n&&"string"==typeof xa(!1,t,-1)?t[t.length-1]+=n:t.push(n),t.push(...o)}return 0===t.length?"":1===t.length?t[0]:t}case ec:case rc:case nc:case ac:case Mr:case ic:case qi:break;default:throw new t2(e)}return e}function Nx(e){return uc(e,(t=>Ox(t)))}function ot(e,t=$x){return uc(e,(r=>"string"==typeof r?Jn(t,r.split("\n")):r))}function jx(e,t){let r=!0===t||t===Si?Si:y5,n=r===Si?y5:Si,o=0,i=0;for(let l of e)l===r?o++:l===n&&i++;return o>i?n:r}function qx(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Zx(e){return"front-matter"===e?.type}function a2(e,t){var r;if("text"===e.type||"comment"===e.type||Wi(e)||"yaml"===e.type||"toml"===e.type)return null;if("attribute"===e.type&&delete t.value,"docType"===e.type&&delete t.value,"angularControlFlowBlock"===e.type&&null!=(r=e.parameters)&&r.children)for(let n of t.parameters.children)Qx.has(e.name)?delete n.expression:n.expression=n.expression.trim();"angularIcuExpression"===e.type&&(t.switchValue=e.switchValue.trim()),"angularLetDeclarationInitializer"===e.type&&delete t.value}async function tC(e,t){if("yaml"===e.language){let r=e.value.trim(),n=r?await t(r,{parser:"yaml"}):"";return Mx([e.startDelimiter,e.explicitLanguage,Q,n,n?Q:"",e.endDelimiter])}}function Ui(e,t=!0){return[bt([Ee,e]),t?Ee:""]}function Qn(e,t){let r="NGRoot"===e.type?"NGMicrosyntax"===e.node.type&&1===e.node.body.length&&"NGMicrosyntaxExpression"===e.node.body[0].type?e.node.body[0].expression:e.node:"JsExpressionRoot"===e.type?e.node:e;return r&&("ObjectExpression"===r.type||"ArrayExpression"===r.type||("__vue_expression"===t.parser||"__vue_ts_expression"===t.parser)&&("TemplateLiteral"===r.type||"StringLiteral"===r.type))}async function at(e,t,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let o=!0;n&&(r.__onHtmlBindingRoot=(l,u)=>{o=n(l,u)});let i=await t(e,r,t);return o?ue(i):Ui(i)}function nC(e,t,r,n){let{node:o}=r,i=n.originalText.slice(o.sourceSpan.start.offset,o.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":at(i,e,{parser:"__ng_directive",__isInHtmlAttribute:!1},Qn)}function D5(e,t){if(!t)return;let r=aC(t).toLowerCase();return e.find((({filenames:n})=>n?.some((o=>o.toLowerCase()===r))))??e.find((({extensions:n})=>n?.some((o=>r.endsWith(o)))))}function iC(e,t){if(t)return e.find((({name:r})=>r.toLowerCase()===t))??e.find((({aliases:r})=>r?.includes(t)))??e.find((({extensions:r})=>r?.includes(`.${t}`)))}function lC(e,t){let r=e.plugins.flatMap((o=>o.languages??[])),n=iC(r,t.language)??D5(r,t.physicalFile)??D5(r,t.file)??void t.physicalFile;return n?.parsers[0]}function dC(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function l2(e,t){return!!("ieConditionalComment"===e.type&&e.lastChild&&!e.lastChild.isSelfClosing&&!e.lastChild.endSourceSpan||"ieConditionalComment"===e.type&&!e.complete||Zn(e)&&e.children.some((r=>"text"!==r.type&&"interpolation"!==r.type))||pc(e,t)&&!It(e)&&"interpolation"!==e.type)}function Xi(e){return!("attribute"===e.type||!e.parent||!e.prev)&&mC(e.prev)}function mC(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}function Ye(e){return"text"===e.type||"comment"===e.type}function It(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||"svg:script"===e.fullName||ba(e)&&("script"===e.name||"style"===e.name))}function gC(e){return e.children&&!It(e)}function vC(e){return It(e)||"interpolation"===e.type||s2(e)}function s2(e){return m2(e).startsWith("pre")}function wC(e,t){var r,n;let o=function i(){return!Wi(e)&&"angularControlFlowBlock"!==e.type&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!Zn(e.parent)||!(!e.prev&&("root"===e.parent.type||Zn(e)&&e.parent||It(e.parent)||Yi(e.parent,t)||!AC(e.parent.cssDisplay))||e.prev&&!TC(e.prev.cssDisplay))))}();return o&&!e.prev&&null!=(n=null==(r=e.parent)?void 0:r.tagDefinition)&&n.ignoreFirstLf?"interpolation"===e.type:o}function bC(e,t){return!Wi(e)&&"angularControlFlowBlock"!==e.type&&(!("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!Zn(e.parent)||!(!e.next&&("root"===e.parent.type||Zn(e)&&e.parent||It(e.parent)||Yi(e.parent,t)||!FC(e.parent.cssDisplay))||e.next&&!kC(e.next.cssDisplay))))}function yC(e){return LC(e.cssDisplay)&&!It(e)}function Ri(e){return Wi(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+10&&(["body","script","style"].includes(e.name)||e.children.some((t=>CC(t))))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&p2(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||d2(e.lastChild))}function u2(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function Vu(e){return f2(e)||e.prev&&xC(e.prev)||c2(e)}function xC(e){return f2(e)||"element"===e.type&&"br"===e.fullName||c2(e)}function c2(e){return p2(e)&&d2(e)}function p2(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function f2(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function cc(e){return e.lastChild?cc(e.lastChild):e}function CC(e){var t;return null==(t=e.children)?void 0:t.some((r=>"text"!==r.type))}function h2(e){if(e)switch(e){case"module":case"text/javascript":case"text/babel":case"application/javascript":return"babel";case"application/x-typescript":return"typescript";case"text/markdown":return"markdown";case"text/html":return"html";case"text/x-handlebars-template":return"glimmer";default:if(e.endsWith("json")||e.endsWith("importmap")||"speculationrules"===e)return"json"}}function EC(e,t){let{name:r,attrMap:n}=e;if("script"!==r||Object.prototype.hasOwnProperty.call(n,"src"))return;let{type:o,lang:i}=e.attrMap;return i||o?Gi(t,{language:i})??h2(o):"babel"}function SC(e,t){if(!pc(e,t))return;let{attrMap:r}=e;if(Object.prototype.hasOwnProperty.call(r,"src"))return;let{type:n,lang:o}=r;return Gi(t,{language:o})??h2(n)}function RC(e,t){if("style"!==e.name)return;let{lang:r}=e.attrMap;return r?Gi(t,{language:r}):"css"}function x5(e,t){return EC(e,t)??RC(e,t)??SC(e,t)}function Ca(e){return"block"===e||"list-item"===e||e.startsWith("table")}function AC(e){return!Ca(e)&&"inline-block"!==e}function FC(e){return!Ca(e)&&"inline-block"!==e}function kC(e){return!Ca(e)}function TC(e){return!Ca(e)}function LC(e){return!Ca(e)&&"inline-block"!==e}function Zn(e){return m2(e).startsWith("pre")}function IC(e,t){let r=e;for(;r;){if(t(r))return!0;r=r.parent}return!1}function BC(e,t){var r;if(eo(e,t))return"block";if("comment"===(null==(r=e.prev)?void 0:r.type)){let o=e.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/u);if(o)return o[1]}let n=!1;if("element"===e.type&&"svg"===e.namespace){if(!IC(e,(o=>"svg:foreignObject"===o.fullName)))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"element"===e.type&&(!e.namespace||n||ba(e))&&uC[e.name]||sC}}function m2(e){return"element"===e.type&&(!e.namespace||ba(e))&&pC[e.name]||cC}function MC(e){let t=Number.POSITIVE_INFINITY;for(let r of e.split("\n")){if(0===r.length)continue;let n=wt.getLeadingWhitespaceCount(r);if(0===n)return 0;r.length!==n&&nr.slice(t))).join("\n")}function v2(e){return Oe(!1,Oe(!1,e,"'","'"),""",'"')}function or(e){return v2(e.value)}function Yi(e,t){return eo(e,t)&&!_C.has(e.fullName)}function eo(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function pc(e,t){return eo(e,t)&&(Yi(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}function PC(e){let t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")}function HC(e,t){let r=e.parent;if(!eo(r,t))return!1;let n=r.fullName,o=e.fullName;return"script"===n&&"setup"===o||"style"===n&&"vars"===o}function w2(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?ot(t):ot(g2(i2(t)),Q):Jn(fe,wt.split(t))}function b2(e,t){return eo(e,t)&&"script"===e.name}async function $C(e,t){let r=[];for(let[n,o]of e.split(y2).entries())if(n%2==0)r.push(ot(o));else try{r.push(ue(["{{",bt([fe,await at(o,t,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),fe,"}}"]))}catch{r.push("{{",ot(o),"}}")}return r}function dc({parser:e}){return(t,r,n)=>at(or(n.node),t,{parser:e},Qn)}function jC(e,t){if("angular"!==t.parser)return;let{node:r}=e,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return zC;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return OC;if(n.startsWith("*"))return NC;let o=or(r);return/^i18n(?:-.+)?$/u.test(n)?()=>Ui(o2(w2(r,o.trim())),!o.includes("@@")):y2.test(o)?i=>$C(o,i):void 0}function qC(e,t){let{node:r}=e,n=or(r);if("class"===r.fullName&&!t.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}function C5(e){return"\t"===e||"\n"===e||"\f"===e||"\r"===e||" "===e}function ZC(e){let r,n,o,i,l,c,t=e.length,u=0;function p(v){let b,m=v.exec(e.substring(u));if(m)return[b]=m,u+=b.length,b}a(p,"p");let d=[];for(;;){if(p(GC),u>=t){if(0===d.length)throw new Error("Must contain one or more image candidate strings.");return d}c=u,r=p(XC),n=[],","===r.slice(-1)?(r=r.replace(YC,""),f()):h()}function h(){for(p(UC),o="",i="in descriptor";;){if(l=e.charAt(u),"in descriptor"===i)if(C5(l))o&&(n.push(o),o="",i="after descriptor");else{if(","===l)return u+=1,o&&n.push(o),void f();if("("===l)o+=l,i="in parens";else{if(""===l)return o&&n.push(o),void f();o+=l}}else if("in parens"===i)if(")"===l)o+=l,i="in descriptor";else{if(""===l)return n.push(o),void f();o+=l}else if("after descriptor"===i&&!C5(l)){if(""===l)return void f();i="in descriptor",u-=1}u+=1}}function f(){let b,m,g,y,D,x,C,E,S,v=!1,w={};for(y=0;ytE(or(e.node))}function tE(e){let t=JC(e),r=eE.filter((d=>t.some((h=>Object.prototype.hasOwnProperty.call(h,d)))));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,o=D2[n],i=t.map((d=>d.source.value)),l=Math.max(...i.map((d=>d.length))),u=t.map((d=>d[n]?String(d[n].value):"")),c=u.map((d=>{let h=d.indexOf(".");return-1===h?d.length:h})),p=Math.max(...c);return Ui(Jn([",",fe],i.map(((d,h)=>{let f=[d],v=u[h];if(v){let b=l-d.length+1,m=p-c[h],g=" ".repeat(b+m);f.push(Ii(g," "),v+o)}return f}))))}function nE(e,t){let{node:r}=e,n=or(e.node).trim();if("style"===r.fullName&&!t.parentParser&&!n.includes("{{"))return async o=>Ui(await o(n,{parser:"css",__isHTMLStyleAttribute:!0}))}function oE(e,t){let{root:r}=e;return qu.has(r)||qu.set(r,r.children.some((n=>b2(n,t)&&["ts","typescript"].includes(n.attrMap.lang)))),qu.get(r)}function aE(e,t,r){let{node:n}=r;return at(`type T<${or(n)}> = any`,e,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Qn)}function iE(e,t,{parseWithTs:r}){return at(`function _(${e}) {}`,t,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}function lE(e){let n=e.trim();return/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/u.test(n)||/^[$_a-z][\w$]*(?:\.[$_a-z][\w$]*|\['[^']*'\]|\["[^"]*"\]|\[\d+\]|\[[$_a-z][\w$]*\])*$/iu.test(n)}async function sE(e,t,r,n){let o=or(r.node),{left:i,operator:l,right:u}=uE(o),c=fc(r,n);return[ue(await at(`function _(${i}) {}`,e,{parser:c?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",l," ",await at(u,e,{parser:c?"__ts_expression":"__js_expression"})]}function uE(e){let r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,o=e.match(/(.*?)\s+(in|of)\s+(.*)/su);if(!o)return;let i={};if(i.for=o[3].trim(),!i.for)return;let l=Oe(!1,o[1].trim(),/^\(|\)$/gu,""),u=l.match(r);u?(i.alias=l.replace(r,""),i.iterator1=u[1].trim(),u[2]&&(i.iterator2=u[2].trim())):i.alias=l;let c=[i.alias,i.iterator1,i.iterator2];return c.some(((p,d)=>!p&&(0===d||c.slice(d+1).some(Boolean))))?void 0:{left:c.filter(Boolean).join(","),operator:o[2],right:i.for}}function cE(e,t){if("vue"!==t.parser)return;let{node:r}=e,n=r.fullName;if("v-for"===n)return sE;if("generic"===n&&b2(r.parent,t))return aE;let o=or(r),i=fc(e,t);return PC(r)||HC(r,t)?l=>iE(o,l,{parseWithTs:i}):n.startsWith("@")||n.startsWith("v-on:")?l=>pE(o,l,{parseWithTs:i}):n.startsWith(":")||n.startsWith("v-bind:")?l=>dE(o,l,{parseWithTs:i}):n.startsWith("v-")?l=>x2(o,l,{parseWithTs:i}):void 0}function pE(e,t,{parseWithTs:r}){return lE(e)?x2(e,t,{parseWithTs:r}):at(e,t,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Qn)}function dE(e,t,{parseWithTs:r}){return at(e,t,{parser:r?"__vue_ts_expression":"__vue_expression"},Qn)}function x2(e,t,{parseWithTs:r}){return at(e,t,{parser:r?"__ts_expression":"__js_expression"},Qn)}function hE(e,t){let{node:r}=e;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(t.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||"lwc"===t.parser&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[rE,nE,WC,fE,VC]){let o=n(e,t);if(o)return mE(o)}}}function mE(e){return async(t,r,n,o)=>{let i=await e(t,r,n,o);if(i)return i=uc(i,(l=>"string"==typeof l?Oe(!1,l,'"',"""):l)),[n.node.rawName,'="',ue(i),'"']}}function vE(e){return Array.isArray(e)&&e.length>0}function Ki(e){return e.sourceSpan.start.offset}function Zi(e){return e.sourceSpan.end.offset}function Ku(e,t){return[e.isSelfClosing?"":wE(e,t),ma(e,t)]}function wE(e,t){return e.lastChild&&ya(e.lastChild)?"":[bE(e,t),mc(e,t)]}function ma(e,t){return(e.next?Ir(e.next):Sa(e.parent))?"":[Ea(e,t),Lr(e,t)]}function bE(e,t){return Sa(e)?Ea(e.lastChild,t):""}function Lr(e,t){return ya(e)?mc(e.parent,t):Ji(e)?gc(e.next):""}function mc(e,t){if(E2(!e.isSelfClosing),S2(e,t))return"";switch(e.type){case"ieConditionalComment":return"\x3c!--\x3e";case"interpolation":return"}}";case"angularIcuExpression":return"}";case"element":if(e.isSelfClosing)return"/>";default:return">"}}function S2(e,t){return!e.isSelfClosing&&!e.endSourceSpan&&(Xi(e)||l2(e.parent,t))}function Ir(e){return e.prev&&"docType"!==e.prev.type&&"angularControlFlowBlock"!==e.type&&!Ye(e.prev)&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function Sa(e){var t;return(null==(t=e.lastChild)?void 0:t.isTrailingSpaceSensitive)&&!e.lastChild.hasTrailingSpaces&&!Ye(cc(e.lastChild))&&!Zn(e)}function ya(e){return!e.next&&!e.hasTrailingSpaces&&e.isTrailingSpaceSensitive&&Ye(cc(e))}function Ji(e){return e.next&&!Ye(e.next)&&Ye(e)&&e.isTrailingSpaceSensitive&&!e.hasTrailingSpaces}function yE(e){let t=e.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/su);return!!t&&(!t[1]||t[1].split(/\s+/u))}function Qi(e){return!e.prev&&e.isLeadingSpaceSensitive&&!e.hasLeadingSpaces}function DE(e,t,r){var n;let{node:o}=e;if(!hc(o.attrs))return o.isSelfClosing?" ":"";let i="comment"===(null==(n=o.prev)?void 0:n.type)&&yE(o.prev.value),l="boolean"==typeof i?()=>i:Array.isArray(i)?h=>i.includes(h.rawName):()=>!1,u=e.map((({node:h})=>l(h)?ot(t.originalText.slice(Ki(h),Zi(h))):r()),"attrs"),c="element"===o.type&&"script"===o.fullName&&1===o.attrs.length&&"src"===o.attrs[0].fullName&&0===o.children.length,p=t.singleAttributePerLine&&o.attrs.length>1&&!eo(o,t)?Q:fe,d=[bt([c?" ":fe,Jn(p,u)])];return o.firstChild&&Qi(o.firstChild)||o.isSelfClosing&&Sa(o.parent)||c?d.push(o.isSelfClosing?" ":""):d.push(t.bracketSameLine?o.isSelfClosing?" ":"":o.isSelfClosing?fe:Ee),d}function xE(e){return e.firstChild&&Qi(e.firstChild)?"":vc(e)}function Zu(e,t,r){let{node:n}=e;return[ga(n,t),DE(e,t,r),n.isSelfClosing?"":xE(n)]}function ga(e,t){return e.prev&&Ji(e.prev)?"":[Br(e,t),gc(e)]}function Br(e,t){return Qi(e)?vc(e.parent):Ir(e)?Ea(e.prev,t):""}function gc(e){switch(e.type){case"ieConditionalComment":case"ieConditionalStartComment":return`\x3c!--[if ${e.condition}`;case"ieConditionalEndComment":return"\x3c!--\x3c!--\x3e<${e.rawName}`;default:return`<${e.rawName}`}}function vc(e){switch(E2(!e.isSelfClosing),e.type){case"ieConditionalComment":return"]>";case"element":if(e.condition)return">\x3c!--"}}function CE(e,t){if(!e.endSourceSpan)return"";let r=e.startSourceSpan.end.offset;e.firstChild&&Qi(e.firstChild)&&(r-=vc(e).length);let n=e.endSourceSpan.start.offset;return e.lastChild&&ya(e.lastChild)?n+=mc(e,t).length:Sa(e)&&(n-=Ea(e.lastChild,t).length),t.originalText.slice(r,n)}function SE(e,t){let{node:r}=e;switch(r.type){case"element":if(It(r)||"interpolation"===r.type)return;if(!r.isSelfClosing&&pc(r,t)){let n=x5(r,t);return n?async(o,i)=>{let l=R2(r,t),u=/^\s*$/u.test(l),c="";return u||(c=await o(i2(l),{parser:n,__embeddedInHtml:!0}),u=""===c),[Br(r,t),ue(Zu(e,t,i)),u?"":Q,c,u?"":Q,Ku(r,t),Lr(r,t)]}:void 0}break;case"text":if(It(r.parent)){let n=x5(r.parent,t);if(n)return async o=>{let i="markdown"===n?g2(r.value.replace(/^[^\S\n]*\n/u,"")):r.value,l={parser:n,__embeddedInHtml:!0};if("html"===t.parser&&"babel"===n){let u="script",{attrMap:c}=r.parent;c&&("module"===c.type||"text/babel"===c.type&&"module"===c["data-type"])&&(u="module"),l.__babelSourceType=u}return[Da,Br(r,t),await o(i,l),Lr(r,t)]}}else if("interpolation"===r.parent.type)return async n=>{let o={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return"angular"===t.parser?o.parser="__ng_interpolation":"vue"===t.parser?o.parser=fc(e,t)?"__vue_ts_expression":"__vue_expression":o.parser="__js_expression",[bt([fe,await n(r.value,o)]),r.parent.next&&Ir(r.parent.next)?" ":fe]};break;case"attribute":return gE(e,t);case"front-matter":return n=>rC(r,n);case"angularControlFlowBlockParameters":return EE.has(e.parent.name)?oC:void 0;case"angularLetDeclarationInitializer":return n=>at(r.value,n,{parser:"__ng_binding",__isInHtmlAttribute:!1})}}function va(e){if(null!==pa&&(pa.property,1)){let t=pa;return pa=va.prototype=null,t}return pa=va.prototype=e??Object.create(null),new va}function FE(e){return va(e)}function kE(e,t="type"){function r(n){let o=n[t],i=e[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:n});return i}return FE(e),a(r,"r"),r}function _E(e){return/^\s*/u.test(e)}function PE(e){return"\x3c!-- @format --\x3e\n\n"+e}function A2(e){let t=Zi(e);return"element"===e.type&&!e.endSourceSpan&&hc(e.children)?Math.max(t,A2(xa(!1,e.children,-1))):t}function da(e,t,r){let n=e.node;if(Xi(n)){let o=A2(n);return[Br(n,t),ot(wt.trimEnd(t.originalText.slice(Ki(n)+(n.prev&&Ji(n.prev)?gc(n).length:0),o-(n.next&&Ir(n.next)?Ea(n,t).length:0)))),Lr(n,t)]}return r()}function Ai(e,t){return Ye(e)&&Ye(t)?e.isTrailingSpaceSensitive?e.hasTrailingSpaces?Vu(t)?Q:fe:"":Vu(t)?Q:Ee:Ji(e)&&(Xi(t)||t.firstChild||t.isSelfClosing||"element"===t.type&&t.attrs.length>0)||"element"===e.type&&e.isSelfClosing&&Ir(t)?"":!t.isLeadingSpaceSensitive||Vu(t)||Ir(t)&&e.lastChild&&ya(e.lastChild)&&e.lastChild.lastChild&&ya(e.lastChild.lastChild)?Q:t.hasLeadingSpaces?fe:Ee}function wc(e,t,r){let{node:n}=e;if(u2(n))return[Da,...e.map((i=>{let l=i.node,u=l.prev?Ai(l.prev,l):"";return[u?[u,Ri(l.prev)?Q:""]:"",da(i,t,r)]}),"children")];let o=n.children.map((()=>Symbol("")));return e.map(((i,l)=>{let u=i.node;if(Ye(u)){if(u.prev&&Ye(u.prev)){let b=Ai(u.prev,u);if(b)return Ri(u.prev)?[Q,Q,da(i,t,r)]:[b,da(i,t,r)]}return da(i,t,r)}let c=[],p=[],d=[],h=[],f=u.prev?Ai(u.prev,u):"",v=u.next?Ai(u,u.next):"";return f&&(Ri(u.prev)?c.push(Q,Q):f===Q?c.push(Q):Ye(u.prev)?p.push(f):p.push(Ii("",Ee,{groupId:o[l-1]}))),v&&(Ri(u)?Ye(u.next)&&h.push(Q,Q):v===Q?Ye(u.next)&&h.push(Q):d.push(v)),[...c,ue([...p,ue([da(i,t,r),...d],{id:o[l]})]),...h]}),"children")}function $E(e,t,r){let{node:n}=e,o=[];zE(e)&&o.push("} "),o.push("@",n.name),n.parameters&&o.push(" (",ue(r("parameters")),")"),o.push(" {");let i=F2(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,o.push(bt([Q,wc(e,t,r)])),i&&o.push(Q,"}")):i&&o.push("}"),ue(o,{shouldBreak:!0})}function F2(e){var t,r;return!("angularControlFlowBlock"===(null==(t=e.next)?void 0:t.type)&&null!=(r=HE.get(e.name))&&r.has(e.next.name))}function zE(e){let{previous:t}=e;return"angularControlFlowBlock"===t?.type&&!Xi(t)&&!F2(t)}function OE(e,t,r){return[bt([Ee,Jn([";",fe],e.map(r,"children"))]),Ee]}function NE(e,t,r){let{node:n}=e;return[ga(n,t),ue([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",bt([fe,Jn(fe,e.map(r,"cases"))])]:"",Ee]),ma(n,t)]}function jE(e,t,r){let{node:n}=e;return[n.value," {",ue([bt([Ee,e.map((({node:o})=>"text"!==o.type||wt.trim(o.value)?r():""),"expression")]),Ee]),"}"]}function VE(e,t,r){let{node:n}=e;if(l2(n,t))return[Br(n,t),ue(Zu(e,t,r)),ot(R2(n,t)),...Ku(n,t),Lr(n,t)];let o=1===n.children.length&&("interpolation"===n.firstChild.type||"angularIcuExpression"===n.firstChild.type)&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),l=a((d=>ue([ue(Zu(e,t,r),{id:i}),d,Ku(n,t)])),"a"),u=a((d=>o?_x(d,{groupId:i}):!It(n)&&!Yi(n,t)||"root"!==n.parent.type||"vue"!==t.parser||t.vueIndentScriptAndStyle?bt(d):d),"o"),c=a((()=>o?Ii(Ee,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?fe:"text"===n.firstChild.type&&n.isWhitespaceSensitive&&n.isIndentationSensitive?Bx(Ee):Ee),"u"),p=a((()=>(n.next?Ir(n.next):Sa(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":o?Ii(Ee,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?fe:("comment"===n.lastChild.type||"text"===n.lastChild.type&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${t.tabWidth*(e.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":Ee),"p");return 0===n.children.length?l(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?fe:""):l([DC(n)?Da:"",u([c(),wc(e,t,r)]),p()])}function Bi(e){return e>=9&&e<=32||160==e}function bc(e){return 48<=e&&e<=57}function Mi(e){return e>=97&&e<=122||e>=65&&e<=90}function qE(e){return e>=97&&e<=102||e>=65&&e<=70||bc(e)}function yc(e){return 10===e||13===e}function S5(e){return 48<=e&&e<=55}function Wu(e){return 39===e||34===e||96===e}function UE(e){return e.replace(WE,((...t)=>t[1].toUpperCase()))}function XE(e,t){for(let r of GE)r(e,t);return e}function YE(e){e.walk((t=>{if("element"===t.type&&t.tagDefinition.ignoreFirstLf&&t.children.length>0&&"text"===t.children[0].type&&"\n"===t.children[0].value[0]){let r=t.children[0];1===r.value.length?t.removeChild(r):r.value=r.value.slice(1)}}))}function KE(e){let t=a((r=>{var n,o;return"element"===r.type&&"ieConditionalStartComment"===(null==(n=r.prev)?void 0:n.type)&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&"ieConditionalEndComment"===(null==(o=r.firstChild)?void 0:o.type)&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset}),"e");e.walk((r=>{if(r.children)for(let n=0;n{if(n.children)for(let o=0;o"cdata"===t.type),(t=>``))}function QE(e){let t=a((r=>{var n,o;return"element"===r.type&&0===r.attrs.length&&1===r.children.length&&"text"===r.firstChild.type&&!wt.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&"text"===(null==(n=r.prev)?void 0:n.type)&&"text"===(null==(o=r.next)?void 0:o.type)}),"e");e.walk((r=>{if(r.children)for(let n=0;n`+o.firstChild.value+``+l.value,i.sourceSpan=new j(i.sourceSpan.start,l.sourceSpan.end),i.isTrailingSpaceSensitive=l.isTrailingSpaceSensitive,i.hasTrailingSpaces=l.hasTrailingSpaces,r.removeChild(o),n--,r.removeChild(l)}}))}function eS(e,t){if("html"===t.parser)return;let r=/\{\{(.+?)\}\}/su;e.walk((n=>{if(gC(n))for(let o of n.children){if("text"!==o.type)continue;let i=o.sourceSpan.start,l=null,u=o.value.split(r);for(let c=0;c0&&n.insertChildBefore(o,{type:"text",value:p,sourceSpan:new j(i,l)}))}n.removeChild(o)}}))}function tS(e){e.walk((t=>{if(!t.children)return;if(0===t.children.length||1===t.children.length&&"text"===t.children[0].type&&0===wt.trim(t.children[0].value).length)return t.hasDanglingSpaces=t.children.length>0,void(t.children=[]);let r=vC(t),n=s2(t);if(!r)for(let o=0;o{t.isSelfClosing=!t.children||"element"===t.type&&(t.tagDefinition.isVoid||t.endSourceSpan&&t.startSourceSpan.start===t.endSourceSpan.start&&t.startSourceSpan.end===t.endSourceSpan.end)}))}function nS(e,t){e.walk((r=>{"element"===r.type&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(t.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))}))}function oS(e,t){e.walk((r=>{r.cssDisplay=BC(r,t)}))}function aS(e,t){e.walk((r=>{let{children:n}=r;if(n){if(0===n.length)return void(r.isDanglingSpaceSensitive=yC(r));for(let o of n)o.isLeadingSpaceSensitive=wC(o,t),o.isTrailingSpaceSensitive=bC(o,t);for(let o=0;o{!fa[t]&&null===Ti(t)&&(fa[t]=new O({canSelfClose:!1}))}))),fa[e]??H5}function B2(e,t,r=null){let n=[],o=e.visit?i=>e.visit(i,r)||i.visit(e,r):i=>i.visit(e,r);return t.forEach((i=>{let l=o(i);l&&n.push(l)})),n}function IS(e,t){if(null!=t&&(!Array.isArray(t)||2!=t.length))throw new Error(`Expected '${e}' to be an array, [start, end].`);if(null!=t){let r=t[0],n=t[1];LS.forEach((o=>{if(o.test(r)||o.test(n))throw new Error(`['${r}', '${n}'] contains unusable interpolation symbol.`)}))}}function _S(e,t,r,n={}){let o=new $S(new k2(e,t),r,n);return o.tokenize(),new MS(qS(o.tokens),o.errors,o.nonNormalizedIcuExpressions)}function yn(e){return`Unexpected character "${0===e?"EOF":String.fromCharCode(e)}"`}function O5(e){return`Unknown entity "${e}" - use the "&#;" or "&#x;" syntax`}function HS(e,t){return`Unable to parse entity "${t}" - ${e} character reference entities must end with ";"`}function ie(e){return!Bi(e)||0===e}function N5(e){return Bi(e)||62===e||60===e||47===e||39===e||34===e||61===e||0===e}function zS(e){return(e<97||12257)}function OS(e){return 59===e||0===e||!qE(e)}function NS(e){return 59===e||0===e||!Mi(e)}function jS(e){return 125!==e}function VS(e,t){return j5(e)===j5(t)}function j5(e){return e>=97&&e<=122?e-97+65:e}function V5(e){return Mi(e)||bc(e)||95===e}function q5(e){return 59!==e&&ie(e)}function qS(e){let r,t=[];for(let n=0;n0&&e[e.length-1]===t}function U5(e,t){return void 0!==Hi[t]?Hi[t]||e:/^#x[a-f0-9]+$/i.test(t)?String.fromCodePoint(parseInt(t.slice(2),16)):/^#\d+$/.test(t)?String.fromCodePoint(parseInt(t.slice(1),10)):e}function G5(e,t={}){let{canSelfClose:r=!1,allowHtmComponentClosingTags:n=!1,isTagNameCaseSensitive:o=!1,getTagContentType:i,tokenizeAngularBlocks:l=!1,tokenizeAngularLetDeclaration:u=!1}=t;return KS().parse(e,"angular-html-parser",{tokenizeExpansionForms:l,interpolationConfig:void 0,canSelfClose:r,allowHtmComponentClosingTags:n,tokenizeBlocks:l,tokenizeLet:u},o,i)}function ZS(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}function QS(e){let t=e.slice(0,ha);if("---"!==t&&"+++"!==t)return;let r=e.indexOf("\n",ha);if(-1===r)return;let n=e.slice(ha,r).trim(),o=e.indexOf(`\n${t}`,r),i=n;if(i||(i="+++"===t?"toml":"yaml"),-1===o&&"---"===t&&"yaml"===i&&(o=e.indexOf("\n...",r)),-1===o)return;let l=o+1+ha,u=e.charAt(l+1);if(!/\s?/u.test(u))return;let c=e.slice(0,l);return{type:"front-matter",language:i,explicitLanguage:n,value:e.slice(r+1,o),startDelimiter:t,endDelimiter:c.slice(-ha),raw:c}}function eR(e){let t=QS(e);if(!t)return{content:e};let{raw:r}=t;return{frontMatter:t,content:Oe(!1,r,/[^\n]/gu," ")+e.slice(r.length)}}function nR(e,t){let r=e.map(t);return r.some(((n,o)=>n!==e[o]))?r:e}function aR(e,t){if(e.value)for(let{regex:r,parse:n}of oR){let o=e.value.match(r);if(o)return n(e,t,o)}return null}function iR(e,t,r){let[,n,o,i]=r,l=4+n.length,u=e.sourceSpan.start.moveBy(l),c=u.moveBy(i.length),[p,d]=(()=>{try{return[!0,t(i,u).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new j(u,c)}]]}})();return{type:"ieConditionalComment",complete:p,children:d,condition:Oe(!1,o.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan,startSourceSpan:new j(e.sourceSpan.start,u),endSourceSpan:new j(c,e.sourceSpan.end)}}function lR(e,t,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:Oe(!1,n.trim(),/\s+/gu," "),sourceSpan:e.sourceSpan}}function sR(e){return{type:"ieConditionalEndComment",sourceSpan:e.sourceSpan}}function cR(e){if("block"===e.type){if(e.name=Oe(!1,e.name.toLowerCase(),/\s+/gu," ").trim(),e.type="angularControlFlowBlock",!hc(e.parameters))return void delete e.parameters;for(let t of e.parameters)t.type="angularControlFlowBlockParameter";e.parameters={type:"angularControlFlowBlockParameters",children:e.parameters,sourceSpan:new j(e.parameters[0].sourceSpan.start,xa(!1,e.parameters,-1).sourceSpan.end)}}}function pR(e){"letDeclaration"===e.type&&(e.type="angularLetDeclaration",e.id=e.name,e.init={type:"angularLetDeclarationInitializer",sourceSpan:new j(e.valueSpan.start,e.valueSpan.end),value:e.value},delete e.name,delete e.value)}function dR(e){("plural"===e.type||"select"===e.type)&&(e.clause=e.type,e.type="angularIcuExpression"),"expansionCase"===e.type&&(e.type="angularIcuCase")}function P2(e,t,r){let{name:n,canSelfClose:o=!0,normalizeTagName:i=!1,normalizeAttributeName:l=!1,allowHtmComponentClosingTags:u=!1,isTagNameCaseSensitive:c=!1,shouldParseAsRawText:p}=t,{rootNodes:d,errors:h}=G5(e,{canSelfClose:o,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:c,getTagContentType:p?(...w)=>p(...w)?nt.RAW_TEXT:void 0:void 0,tokenizeAngularBlocks:"angular"===n||void 0,tokenizeAngularLetDeclaration:"angular"===n||void 0});if("vue"===n){if(d.some((C=>"docType"===C.type&&"html"===C.value||"element"===C.type&&"html"===C.name.toLowerCase())))return P2(e,$2,r);let w,D=a((()=>w??(w=G5(e,{canSelfClose:o,allowHtmComponentClosingTags:u,isTagNameCaseSensitive:c}))),"y"),x=a((C=>D().rootNodes.find((({startSourceSpan:E})=>E&&E.start.offset===C.startSourceSpan.start.offset))??C),"M");for(let[C,E]of d.entries()){let{endSourceSpan:S,startSourceSpan:R}=E;if(null===S)h=D().errors,d[C]=x(E);else if(fR(E,r)){let A=D().errors.find((k=>k.span.start.offset>R.start.offset&&k.span.start.offset0&&Y5(h[0]);let f=a((w=>{let D=w.name.startsWith(":")?w.name.slice(1).split(":")[0]:null,x=w.nameSpan.toString(),C=null!==D&&x.startsWith(`${D}:`),E=C?x.slice(D.length+1):x;w.name=E,w.namespace=D,w.hasExplicitNamespace=C}),"d"),v=a((w=>{switch(w.type){case"element":f(w);for(let D of w.attrs)f(D),D.valueSpan?(D.value=D.valueSpan.toString(),/["']/u.test(D.value[0])&&(D.value=D.value.slice(1,-1))):D.value=null;break;case"comment":w.value=w.sourceSpan.toString().slice(4,-3);break;case"text":w.value=w.sourceSpan.toString()}}),"C"),b=a(((w,D)=>{let x=w.toLowerCase();return D(x)?x:w}),"A"),m=a((w=>{if("element"===w.type&&(i&&(!w.namespace||w.namespace===w.tagDefinition.implicitNamespacePrefix||ba(w))&&(w.name=b(w.name,(D=>uR.has(D)))),l))for(let D of w.attrs)D.namespace||(D.name=b(D.name,(x=>Yu.has(w.name)&&(Yu.get("*").has(x)||Yu.get(w.name).has(x)))))}),"D"),g=a((w=>{w.sourceSpan&&w.endSourceSpan&&(w.sourceSpan=new j(w.sourceSpan.start,w.endSourceSpan.end))}),"R"),y=a((w=>{if("element"===w.type){let D=Qu(c?w.name:w.name.toLowerCase());!w.namespace||w.namespace===D.implicitNamespacePrefix||ba(w)?w.tagDefinition=D:w.tagDefinition=Qu("")}}),"F");return B2(new class extends kS{visitExpansionCase(w,D){"angular"===n&&this.visitChildren(D,(x=>{x(w.expression)}))}visit(w){v(w),y(w),m(w),g(w)}},d),d}function fR(e,t){var r;if("element"!==e.type||"template"!==e.name)return!1;let n=null==(r=e.attrs.find((o=>"lang"===o.name)))?void 0:r.value;return!n||"html"===Gi(t,{language:n})}function Y5(e){let{msg:t,span:{start:r,end:n}}=e;throw JS(t,{loc:{start:{line:r.line+1,column:r.col+1},end:{line:n.line+1,column:n.col+1}},cause:e})}function H2(e,t,r={},n=!0){let{frontMatter:o,content:i}=n?tR(e):{frontMatter:null,content:e},l=new k2(e,r.filepath),u=new Ju(l,0,0,0),c=u.moveBy(e.length),p={type:"root",sourceSpan:new j(u,c),children:P2(i,t,r)};if(o){let f=new Ju(l,0,0,0),v=f.moveBy(o.raw.length);o.sourceSpan=new j(f,v),p.children.unshift(o)}let d=new rR(p),h=a(((f,v)=>{let{offset:b}=v,g=H2(Oe(!1,e.slice(0,b),/[^\n\r]/gu," ")+f,t,r,!1);g.sourceSpan=new j(v,xa(!1,g.children,-1).sourceSpan.end);let y=g.children[0];return y.length===b?g.children.shift():(y.sourceSpan=new j(y.sourceSpan.start.moveBy(b),y.sourceSpan.end),y.value=y.value.slice(b)),g}),"f");return d.walk((f=>{if("comment"===f.type){let v=aR(f,h);v&&f.parent.replaceChild(f,v)}cR(f),pR(f),dR(f)})),d}function tl(e){return{parse:a(((t,r)=>H2(t,e,r)),"parse"),hasPragma:_E,astFormat:"html",locStart:Ki,locEnd:Zi}}var Sx,K5,Z5,J5,er,Rx,Ax,Q5,Fx,Oe,ec,tc,rc,zi,Oi,nc,wa,Ni,ji,Vi,oc,ac,Mr,ic,qi,e2,lc,Tx,Dn,t2,r2,Tr,sc,Da,fe,Ee,Q,$x,zx,xa,Si,y5,Vx,rt,xn,Wx,Xx,wt,Cn,Kx,Wi,Jx,Qx,eC,rC,oC,aC,Gi,sC,uC,cC,pC,ba,fC,i2,hC,_C,y2,zC,OC,NC,VC,WC,UC,GC,XC,YC,E5,KC,JC,D2,eE,rE,qu,fc,fE,gE,C2,E2,hc,R2,EE,RE,pa,BE,ME,HE,WE,Rr,Ju,En,k2,Sn,j,_i,Rn,T2,GE,iS,uS,cS,R5,dS,L2,F5,k5,T5,L5,I5,Sr,B5,nt,Li,An,fS,wS,I2,bS,Fn,yS,kn,O,H5,fa,Tn,to,Ln,xS,In,CS,Bn,ES,Mn,SS,_n,RS,Pn,tr,Hn,AS,$n,FS,zn,bn,On,$5,Nn,z5,jn,kS,Hi,LS,Ar,M2,Vn,Uu,qn,MS,PS,$i,Wn,Gu,Un,$S,rr,_2,nr,WS,Gn,Dc,Fr,Ae,Xn,US,Yn,GS,kr,XS,Kn,YS,Xu,KS,JS,ha,tR,ki,X5,vt,rR,oR,Yu,uR,$2,hR,mR,gR,vR,wR,z2,O2=F((()=>{Sx=Object.defineProperty,K5=a((e=>{throw TypeError(e)}),"Xr"),Z5=a(((e,t)=>{for(var r in t)Sx(e,r,{get:t[r],enumerable:!0})}),"Jr"),J5=a(((e,t,r)=>t.has(e)||K5("Cannot "+r)),"Zr"),er=a(((e,t,r)=>(J5(e,t,"read from private field"),r?r.call(e):t.get(e))),"Q"),Rx=a(((e,t,r)=>t.has(e)?K5("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r)),"en"),Ax=a(((e,t,r,n)=>(J5(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r)),"tn"),Z5(Q5={},{languages:a((()=>cS),"languages"),options:a((()=>dS),"options"),parsers:a((()=>L2),"parsers"),printers:a((()=>wR),"printers")}),Fx=a(((e,t,r,n)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)}),"si"),Oe=Fx,ec="string",tc="array",rc="cursor",zi="indent",Oi="align",nc="trim",wa="group",Ni="fill",ji="if-break",Vi="indent-if-break",oc="line-suffix",ac="line-suffix-boundary",Mr="line",ic="label",qi="break-parent",e2=new Set([rc,zi,Oi,nc,wa,Ni,ji,Vi,oc,ac,Mr,ic,qi]),a(kx,"ii"),lc=kx,Tx=a((e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e)),"ai"),a(Lx,"oi"),Dn=class extends Error{name="InvalidDocError";constructor(t){super(Lx(t)),this.doc=t}},a(Dn,"lr"),t2=Dn,Tr=r2=a((()=>{}),"rn"),sc=r2,a(bt,"k"),a(n2,"nn"),a(ue,"_"),a(Bx,"sn"),a(Mx,"an"),a(o2,"At"),a(Ii,"ge"),a(_x,"on"),fe={type:Mr},Ee={type:Mr,soft:!0},Q=[{type:Mr,hard:!0},Da={type:qi}],$x=[{type:Mr,hard:!0,literal:!0},Da],a(Jn,"q"),zx=a(((e,t,r)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)}),"ci"),xa=zx,a(uc,"Dt"),a(Ox,"pi"),a(Nx,"ln"),a(ot,"B"),Si="'",y5='"',a(jx,"hi"),Vx=jx,a(qx,"cr"),a(xn=class{constructor(t){Rx(this,rt),Ax(this,rt,new Set(t))}getLeadingWhitespaceCount(t){let r=er(this,rt),n=0;for(let o=0;o=0&&r.has(t.charAt(o));o--)n++;return n}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return er(this,rt).has(t.charAt(0))}hasTrailingWhitespace(t){return er(this,rt).has(xa(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let n=`[${qx([...er(this,rt)].join(""))}]+`,o=new RegExp(r?`(${n})`:n,"u");return t.split(o)}hasWhitespaceCharacter(t){let r=er(this,rt);return Array.prototype.some.call(t,(n=>r.has(n)))}hasNonWhitespaceCharacter(t){let r=er(this,rt);return Array.prototype.some.call(t,(n=>!r.has(n)))}isWhitespaceOnly(t){let r=er(this,rt);return Array.prototype.every.call(t,(n=>r.has(n)))}},"pr"),Wx=xn,rt=new WeakMap,Xx=new Wx(["\t","\n","\f","\r"," "]),wt=Xx,Cn=class extends Error{name="UnexpectedNodeError";constructor(t,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(t[n])}.`),this.node=t}},a(Cn,"hr"),Kx=Cn,a(Zx,"di"),Wi=Zx,Jx=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Qx=new Set(["if","else if","for","switch","case"]),a(a2,"fn"),a2.ignoredProperties=Jx,eC=a2,a(tC,"Si"),rC=tC,a(Ui,"Ce"),a(Qn,"j"),a(at,"T"),a(nC,"_i"),oC=nC,aC=a((e=>String(e).split(/[/\\]/u).pop()),"Ei"),a(D5,"Sn"),a(iC,"Ai"),a(lC,"Di"),Gi=lC,sC="inline",uC={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",marquee:"inline-block",source:"block",track:"block",details:"block",summary:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},cC="normal",pC={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},a(dC,"vi"),ba=dC,fC=a((e=>Oe(!1,e,/^[\t\f\r ]*\n/gu,"")),"yi"),i2=a((e=>fC(wt.trimEnd(e))),"mr"),hC=a((e=>{let t=e,r=wt.getLeadingWhitespace(t);r&&(t=t.slice(r.length));let n=wt.getTrailingWhitespace(t);return n&&(t=t.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:t}}),"vn"),a(l2,"yt"),a(Xi,"Ee"),a(mC,"wi"),a(Ye,"$"),a(It,"U"),a(gC,"yn"),a(vC,"wn"),a(s2,"fr"),a(wC,"bn"),a(bC,"Tn"),a(yC,"xn"),a(Ri,"Qe"),a(DC,"kn"),a(u2,"dr"),a(Vu,"wt"),a(xC,"bi"),a(c2,"Bn"),a(p2,"Ln"),a(d2,"Fn"),a(f2,"Nn"),a(cc,"bt"),a(CC,"Ti"),a(h2,"Pn"),a(EC,"xi"),a(SC,"ki"),a(RC,"Bi"),a(x5,"gr"),a(Ca,"Xe"),a(AC,"Li"),a(FC,"Fi"),a(kC,"Ni"),a(TC,"Pi"),a(LC,"Ii"),a(Zn,"_e"),a(IC,"Ri"),a(BC,"In"),a(m2,"Rn"),a(MC,"$i"),a(g2,"Cr"),a(v2,"Sr"),a(or,"P"),_C=new Set(["template","style","script"]),a(Yi,"Je"),a(eo,"Ae"),a(pc,"Tt"),a(PC,"$n"),a(HC,"On"),a(w2,"xt"),a(b2,"kt"),y2=/\{\{(.+?)\}\}/su,a($C,"Mn"),a(dc,"Er"),zC=dc({parser:"__ng_action"}),OC=dc({parser:"__ng_binding"}),NC=dc({parser:"__ng_directive"}),a(jC,"Vi"),VC=jC,a(qC,"Ui"),WC=qC,a(C5,"Vn"),UC=/^[ \t\n\r\u000c]+/,GC=/^[, \t\n\r\u000c]+/,XC=/^[^ \t\n\r\u000c]+/,YC=/[,]+$/,E5=/^\d+$/,KC=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,a(ZC,"Ki"),JC=ZC,a(QC,"Qi"),D2={width:"w",height:"h",density:"x"},eE=Object.keys(D2),a(tE,"Ji"),rE=QC,a(nE,"Yn"),qu=new WeakMap,a(oE,"Zi"),fc=oE,a(aE,"jn"),a(iE,"Kn"),a(lE,"Qn"),a(sE,"Xn"),a(uE,"ea"),a(cE,"ta"),a(pE,"ra"),a(dE,"na"),a(x2,"Jn"),fE=cE,a(hE,"sa"),a(mE,"ia"),gE=hE,C2=new Proxy((()=>{}),{get:a((()=>C2),"get")}),E2=C2,a(vE,"aa"),hc=vE,a(Ki,"se"),a(Zi,"ie"),a(Ku,"Ze"),a(wE,"oa"),a(ma,"De"),a(bE,"ua"),a(Lr,"W"),a(mc,"Bt"),a(Ea,"ve"),a(S2,"rs"),a(Ir,"K"),a(Sa,"ye"),a(ya,"we"),a(Ji,"et"),a(yE,"la"),a(Qi,"tt"),a(DE,"ca"),a(xE,"pa"),a(Zu,"rt"),a(ga,"be"),a(Br,"z"),a(gc,"Lt"),a(vc,"Ft"),a(CE,"ha"),R2=CE,EE=new Set(["if","else if","for","switch","case"]),a(SE,"fa"),RE=SE,pa=null,a(va,"st"),10;for(let e=0;e<=10;e++)va();var e;a(FE,"vr"),a(kE,"ga"),BE=kE({"front-matter":[],root:["children"],element:["attrs","children"],ieConditionalComment:["children"],ieConditionalStartComment:[],ieConditionalEndComment:[],interpolation:["children"],text:["children"],docType:[],comment:[],attribute:[],cdata:[],angularControlFlowBlock:["children","parameters"],angularControlFlowBlockParameters:["children"],angularControlFlowBlockParameter:[],angularLetDeclaration:["init"],angularLetDeclarationInitializer:[],angularIcuExpression:["cases"],angularIcuCase:["expression"]}),ME=BE,a(_E,"os"),a(PE,"us"),HE=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]),a(A2,"cs"),a(da,"it"),a(Ai,"Pt"),a(wc,"He"),a($E,"ps"),a(F2,"hs"),a(zE,"_a"),a(OE,"ms"),a(NE,"fs"),a(jE,"ds"),a(VE,"gs"),a(Bi,"at"),a(bc,"It"),a(Mi,"ot"),a(qE,"Cs"),a(yc,"Rt"),a(S5,"yr"),a(Wu,"$t"),WE=/-+([a-z0-9])/g,a(UE,"_s"),a(Rr=class{constructor(t,r,n,o){this.file=t,this.offset=r,this.line=n,this.col=o}toString(){return null!=this.offset?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(t){let r=this.file.content,n=r.length,o=this.offset,i=this.line,l=this.col;for(;o>0&&t<0;)if(o--,t++,10==r.charCodeAt(o)){i--;let u=r.substring(0,o-1).lastIndexOf("\n");l=u>0?o-u:o}else l--;for(;o0;){let u=r.charCodeAt(o);o++,t--,10==u?(i++,l=0):l++}return new Rr(this.file,o,i,l)}getContext(t,r){let n=this.file.content,o=this.offset;if(null!=o){o>n.length-1&&(o=n.length-1);let i=o,l=0,u=0;for(;l0&&(o--,l++,"\n"!=n[o]||++u!=r););for(l=0,u=0;l]${t.after}")`:this.msg}toString(){let t=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${t}`}},"Ue"),T2=Rn,GE=[YE,KE,JE,eS,tS,oS,rS,nS,aS,QE],a(XE,"Da"),a(YE,"va"),a(KE,"ya"),a(ZE,"wa"),a(JE,"ba"),a(QE,"Ta"),a(eS,"xa"),a(tS,"ka"),a(rS,"Ba"),a(nS,"La"),a(oS,"Fa"),a(aS,"Na"),iS=XE,a(lS,"Pa"),uS={preprocess:iS,print:lS,insertPragma:PE,massageAstNode:eC,embed:RE,getVisitorKeys:ME},cS=[{linguistLanguageId:146,name:"Angular",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".component.html"],parsers:["angular"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:146,name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml",".mjml"],parsers:["html"],vscodeLanguageIds:["html"]},{linguistLanguageId:146,name:"Lightning Web Components",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[],parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[]},{linguistLanguageId:391,name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"]}],"HTML",dS={bracketSameLine:(R5={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}).bracketSameLine,htmlWhitespaceSensitivity:{category:"HTML",type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:R5.singleAttributePerLine,vueIndentScriptAndStyle:{category:"HTML",type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},Z5(L2={},{angular:a((()=>mR),"angular"),html:a((()=>hR),"html"),lwc:a((()=>vR),"lwc"),vue:a((()=>gR),"vue")}),new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),function(e){e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(F5||(F5={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(k5||(k5={})),function(e){e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"}(T5||(T5={})),L5={name:"custom-elements"},I5={name:"no-errors-schema"},function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(Sr||(Sr={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(B5||(B5={})),function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(nt||(nt={})),a(el,"ut"),a(M5,"xr"),a(_5,"kr"),a(Ti,"We"),a(Pi,"ze"),a(P5,"Br"),a(Fi,"Mt"),a(An=class{},"Ht"),fS=An,"boolean","number","string","object",wS=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],I2=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),bS=Array.from(I2).reduce(((e,[t,r])=>(e.set(t,r),e)),new Map),a(Fn=class extends fS{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,wS.forEach((t=>{let r=new Map,n=new Set,[o,i]=t.split("|"),l=i.split(","),[u,c]=o.split("^");u.split(",").forEach((d=>{this._schema.set(d.toLowerCase(),r),this._eventSchema.set(d.toLowerCase(),n)}));let p=c&&this._schema.get(c.toLowerCase());if(p){for(let[d,h]of p)r.set(d,h);for(let d of this._eventSchema.get(c.toLowerCase()))n.add(d)}l.forEach((d=>{if(d.length>0)switch(d[0]){case"*":n.add(d.substring(1));break;case"!":r.set(d.substring(1),"boolean");break;case"#":r.set(d.substring(1),"number");break;case"%":r.set(d.substring(1),"object");break;default:r.set(d,"string")}}))}))}hasProperty(t,r,n){if(n.some((o=>o.name===I5.name)))return!0;if(t.indexOf("-")>-1){if(M5(t)||_5(t))return!1;if(n.some((o=>o.name===L5.name)))return!0}return(this._schema.get(t.toLowerCase())||this._schema.get("unknown")).has(r)}hasElement(t,r){return!!(r.some((n=>n.name===I5.name))||t.indexOf("-")>-1&&(M5(t)||_5(t)||r.some((n=>n.name===L5.name))))||this._schema.has(t.toLowerCase())}securityContext(t,r,n){n&&(r=this.getMappedPropName(r)),t=t.toLowerCase(),r=r.toLowerCase();let o=P5()[t+"|"+r];return o||(o=P5()["*|"+r],o||Sr.NONE)}getMappedPropName(t){return I2.get(t)??t}getDefaultComponentElementName(){return"ng-component"}validateProperty(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${t}' is disallowed for security reasons, please use (${t.slice(2)})=...\nIf '${t}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${t}' is disallowed for security reasons, please use (${t.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(t){let r=this._schema.get(t.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map((n=>bS.get(n)??n))}allKnownEventsOfElement(t){return Array.from(this._eventSchema.get(t.toLowerCase())??[])}normalizeAnimationStyleProperty(t){return UE(t)}normalizeAnimationStyleValue(t,r,n){let o="",i=n.toString().trim(),l=null;if(DS(t)&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&0==u[1].length&&(l=`Please provide a CSS unit value for ${r}:${n}`)}return{error:l,value:i+o}}},"Vt"),yS=Fn,a(DS,"Ua"),a(kn=class{constructor({closedByChildren:t,implicitNamespacePrefix:r,contentType:n=nt.PARSABLE_DATA,closedByParent:o=!1,isVoid:i=!1,ignoreFirstLf:l=!1,preventNamespaceInheritance:u=!1,canSelfClose:c=!1}={}){this.closedByChildren={},this.closedByParent=!1,t&&t.length>0&&t.forEach((p=>this.closedByChildren[p]=!0)),this.isVoid=i,this.closedByParent=o||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=l,this.preventNamespaceInheritance=u,this.canSelfClose=c??i}isClosedByChild(t){return this.isVoid||t.toLowerCase()in this.closedByChildren}getContentType(t){return"object"==typeof this.contentType?(void 0===t?void 0:this.contentType[t])??this.contentType.default:this.contentType}},"m"),O=kn,a(Qu,"Ge"),a(Tn=class{constructor(t,r){this.sourceSpan=t,this.i18n=r}},"oe"),to=Tn,a(Ln=class extends to{constructor(t,r,n,o){super(r,o),this.value=t,this.tokens=n,this.type="text"}visit(t,r){return t.visitText(this,r)}},"Ut"),xS=Ln,a(In=class extends to{constructor(t,r,n,o){super(r,o),this.value=t,this.tokens=n,this.type="cdata"}visit(t,r){return t.visitCdata(this,r)}},"Wt"),CS=In,a(Bn=class extends to{constructor(t,r,n,o,i,l){super(o,l),this.switchValue=t,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(t,r){return t.visitExpansion(this,r)}},"zt"),ES=Bn,a(Mn=class{constructor(t,r,n,o,i){this.value=t,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=o,this.expSourceSpan=i,this.type="expansionCase"}visit(t,r){return t.visitExpansionCase(this,r)}},"Gt"),SS=Mn,a(_n=class extends to{constructor(t,r,n,o,i,l,u){super(n,u),this.name=t,this.value=r,this.keySpan=o,this.valueSpan=i,this.valueTokens=l,this.type="attribute"}visit(t,r){return t.visitAttribute(this,r)}get nameSpan(){return this.keySpan}},"Yt"),RS=_n,a(Pn=class extends to{constructor(t,r,n,o,i,l=null,u=null,c){super(o,c),this.name=t,this.attrs=r,this.children=n,this.startSourceSpan=i,this.endSourceSpan=l,this.nameSpan=u,this.type="element"}visit(t,r){return t.visitElement(this,r)}},"G"),tr=Pn,a(Hn=class{constructor(t,r){this.value=t,this.sourceSpan=r,this.type="comment"}visit(t,r){return t.visitComment(this,r)}},"jt"),AS=Hn,a($n=class{constructor(t,r){this.value=t,this.sourceSpan=r,this.type="docType"}visit(t,r){return t.visitDocType(this,r)}},"Kt"),FS=$n,a(zn=class extends to{constructor(t,r,n,o,i,l,u=null,c){super(o,c),this.name=t,this.parameters=r,this.children=n,this.nameSpan=i,this.startSourceSpan=l,this.endSourceSpan=u,this.type="block"}visit(t,r){return t.visitBlock(this,r)}},"Z"),bn=zn,a(On=class{constructor(t,r){this.expression=t,this.sourceSpan=r,this.type="blockParameter",this.startSourceSpan=null,this.endSourceSpan=null}visit(t,r){return t.visitBlockParameter(this,r)}},"ct"),$5=On,a(Nn=class{constructor(t,r,n,o,i){this.name=t,this.value=r,this.sourceSpan=n,this.nameSpan=o,this.valueSpan=i,this.type="letDeclaration",this.startSourceSpan=null,this.endSourceSpan=null}visit(t,r){return t.visitLetDeclaration(this,r)}},"pt"),z5=Nn,a(B2,"Qt"),jn=class{constructor(){}visitElement(t,r){this.visitChildren(r,(n=>{n(t.attrs),n(t.children)}))}visitAttribute(t,r){}visitText(t,r){}visitCdata(t,r){}visitComment(t,r){}visitDocType(t,r){}visitExpansion(t,r){return this.visitChildren(r,(n=>{n(t.cases)}))}visitExpansionCase(t,r){}visitBlock(t,r){this.visitChildren(r,(n=>{n(t.parameters),n(t.children)}))}visitBlockParameter(t,r){}visitLetDeclaration(t,r){}visitChildren(t,r){let n=[],o=this;function i(l){l&&n.push(B2(o,l,t))}return a(i,"i"),r(i),Array.prototype.concat.apply([],n)}},a(jn,"ht"),kS=jn,"",(Hi={AElig:"Æ",AMP:"&",amp:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",af:"⁡",Aring:"Å",angst:"Å",Ascr:"𝒜",Assign:"≔",colone:"≔",coloneq:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",setminus:"∖",setmn:"∖",smallsetminus:"∖",ssetmn:"∖",Barv:"⫧",Barwed:"⌆",doublebarwedge:"⌆",Bcy:"Б",Because:"∵",becaus:"∵",because:"∵",Bernoullis:"ℬ",Bscr:"ℬ",bernou:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",breve:"˘",Bumpeq:"≎",HumpDownHump:"≎",bump:"≎",CHcy:"Ч",COPY:"©",copy:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",DD:"ⅅ",Cayleys:"ℭ",Cfr:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",cedil:"¸",CenterDot:"·",centerdot:"·",middot:"·",Chi:"Χ",CircleDot:"⊙",odot:"⊙",CircleMinus:"⊖",ominus:"⊖",CirclePlus:"⊕",oplus:"⊕",CircleTimes:"⊗",otimes:"⊗",ClockwiseContourIntegral:"∲",cwconint:"∲",CloseCurlyDoubleQuote:"”",rdquo:"”",rdquor:"”",CloseCurlyQuote:"’",rsquo:"’",rsquor:"’",Colon:"∷",Proportion:"∷",Colone:"⩴",Congruent:"≡",equiv:"≡",Conint:"∯",DoubleContourIntegral:"∯",ContourIntegral:"∮",conint:"∮",oint:"∮",Copf:"ℂ",complexes:"ℂ",Coproduct:"∐",coprod:"∐",CounterClockwiseContourIntegral:"∳",awconint:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",asympeq:"≍",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",ddagger:"‡",Darr:"↡",Dashv:"⫤",DoubleLeftTee:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",nabla:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",acute:"´",DiacriticalDot:"˙",dot:"˙",DiacriticalDoubleAcute:"˝",dblac:"˝",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"˜",tilde:"˜",Diamond:"⋄",diam:"⋄",diamond:"⋄",DifferentialD:"ⅆ",dd:"ⅆ",Dopf:"𝔻",Dot:"¨",DoubleDot:"¨",die:"¨",uml:"¨",DotDot:"⃜",DotEqual:"≐",doteq:"≐",esdot:"≐",DoubleDownArrow:"⇓",Downarrow:"⇓",dArr:"⇓",DoubleLeftArrow:"⇐",Leftarrow:"⇐",lArr:"⇐",DoubleLeftRightArrow:"⇔",Leftrightarrow:"⇔",hArr:"⇔",iff:"⇔",DoubleLongLeftArrow:"⟸",Longleftarrow:"⟸",xlArr:"⟸",DoubleLongLeftRightArrow:"⟺",Longleftrightarrow:"⟺",xhArr:"⟺",DoubleLongRightArrow:"⟹",Longrightarrow:"⟹",xrArr:"⟹",DoubleRightArrow:"⇒",Implies:"⇒",Rightarrow:"⇒",rArr:"⇒",DoubleRightTee:"⊨",vDash:"⊨",DoubleUpArrow:"⇑",Uparrow:"⇑",uArr:"⇑",DoubleUpDownArrow:"⇕",Updownarrow:"⇕",vArr:"⇕",DoubleVerticalBar:"∥",par:"∥",parallel:"∥",shortparallel:"∥",spar:"∥",DownArrow:"↓",ShortDownArrow:"↓",darr:"↓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",duarr:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",leftharpoondown:"↽",lhard:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",rhard:"⇁",rightharpoondown:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",top:"⊤",DownTeeArrow:"↧",mapstodown:"↧",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",in:"∈",isin:"∈",isinv:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",eqsim:"≂",esim:"≂",Equilibrium:"⇌",rightleftharpoons:"⇌",rlhar:"⇌",Escr:"ℰ",expectation:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",exist:"∃",ExponentialE:"ⅇ",ee:"ⅇ",exponentiale:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",blacksquare:"▪",squarf:"▪",squf:"▪",Fopf:"𝔽",ForAll:"∀",forall:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",gt:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",ggg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",ge:"≥",geq:"≥",GreaterEqualLess:"⋛",gel:"⋛",gtreqless:"⋛",GreaterFullEqual:"≧",gE:"≧",geqq:"≧",GreaterGreater:"⪢",GreaterLess:"≷",gl:"≷",gtrless:"≷",GreaterSlantEqual:"⩾",geqslant:"⩾",ges:"⩾",GreaterTilde:"≳",gsim:"≳",gtrsim:"≳",Gscr:"𝒢",Gt:"≫",NestedGreaterGreater:"≫",gg:"≫",HARDcy:"Ъ",Hacek:"ˇ",caron:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",Poincareplane:"ℌ",HilbertSpace:"ℋ",Hscr:"ℋ",hamilt:"ℋ",Hopf:"ℍ",quaternions:"ℍ",HorizontalLine:"─",boxh:"─",Hstrok:"Ħ",HumpEqual:"≏",bumpe:"≏",bumpeq:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Im:"ℑ",image:"ℑ",imagpart:"ℑ",Igrave:"Ì",Imacr:"Ī",ImaginaryI:"ⅈ",ii:"ⅈ",Int:"∬",Integral:"∫",int:"∫",Intersection:"⋂",bigcap:"⋂",xcap:"⋂",InvisibleComma:"⁣",ic:"⁣",InvisibleTimes:"⁢",it:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",imagline:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",lt:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Lscr:"ℒ",lagran:"ℒ",Larr:"↞",twoheadleftarrow:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",lang:"⟨",langle:"⟨",LeftArrow:"←",ShortLeftArrow:"←",larr:"←",leftarrow:"←",slarr:"←",LeftArrowBar:"⇤",larrb:"⇤",LeftArrowRightArrow:"⇆",leftrightarrows:"⇆",lrarr:"⇆",LeftCeiling:"⌈",lceil:"⌈",LeftDoubleBracket:"⟦",lobrk:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",dharl:"⇃",downharpoonleft:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",lfloor:"⌊",LeftRightArrow:"↔",harr:"↔",leftrightarrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",dashv:"⊣",LeftTeeArrow:"↤",mapstoleft:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",vartriangleleft:"⊲",vltri:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",ltrie:"⊴",trianglelefteq:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",uharl:"↿",upharpoonleft:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",leftharpoonup:"↼",lharu:"↼",LeftVectorBar:"⥒",LessEqualGreater:"⋚",leg:"⋚",lesseqgtr:"⋚",LessFullEqual:"≦",lE:"≦",leqq:"≦",LessGreater:"≶",lessgtr:"≶",lg:"≶",LessLess:"⪡",LessSlantEqual:"⩽",leqslant:"⩽",les:"⩽",LessTilde:"≲",lesssim:"≲",lsim:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",lAarr:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",longleftarrow:"⟵",xlarr:"⟵",LongLeftRightArrow:"⟷",longleftrightarrow:"⟷",xharr:"⟷",LongRightArrow:"⟶",longrightarrow:"⟶",xrarr:"⟶",Lopf:"𝕃",LowerLeftArrow:"↙",swarr:"↙",swarrow:"↙",LowerRightArrow:"↘",searr:"↘",searrow:"↘",Lsh:"↰",lsh:"↰",Lstrok:"Ł",Lt:"≪",NestedLessLess:"≪",ll:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mscr:"ℳ",phmmat:"ℳ",Mfr:"𝔐",MinusPlus:"∓",mnplus:"∓",mp:"∓",Mopf:"𝕄",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",ZeroWidthSpace:"​",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",nbsp:" ",Nopf:"ℕ",naturals:"ℕ",Not:"⫬",NotCongruent:"≢",nequiv:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",npar:"∦",nparallel:"∦",nshortparallel:"∦",nspar:"∦",NotElement:"∉",notin:"∉",notinva:"∉",NotEqual:"≠",ne:"≠",NotEqualTilde:"≂̸",nesim:"≂̸",NotExists:"∄",nexist:"∄",nexists:"∄",NotGreater:"≯",ngt:"≯",ngtr:"≯",NotGreaterEqual:"≱",nge:"≱",ngeq:"≱",NotGreaterFullEqual:"≧̸",ngE:"≧̸",ngeqq:"≧̸",NotGreaterGreater:"≫̸",nGtv:"≫̸",NotGreaterLess:"≹",ntgl:"≹",NotGreaterSlantEqual:"⩾̸",ngeqslant:"⩾̸",nges:"⩾̸",NotGreaterTilde:"≵",ngsim:"≵",NotHumpDownHump:"≎̸",nbump:"≎̸",NotHumpEqual:"≏̸",nbumpe:"≏̸",NotLeftTriangle:"⋪",nltri:"⋪",ntriangleleft:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",nltrie:"⋬",ntrianglelefteq:"⋬",NotLess:"≮",nless:"≮",nlt:"≮",NotLessEqual:"≰",nle:"≰",nleq:"≰",NotLessGreater:"≸",ntlg:"≸",NotLessLess:"≪̸",nLtv:"≪̸",NotLessSlantEqual:"⩽̸",nleqslant:"⩽̸",nles:"⩽̸",NotLessTilde:"≴",nlsim:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",npr:"⊀",nprec:"⊀",NotPrecedesEqual:"⪯̸",npre:"⪯̸",npreceq:"⪯̸",NotPrecedesSlantEqual:"⋠",nprcue:"⋠",NotReverseElement:"∌",notni:"∌",notniva:"∌",NotRightTriangle:"⋫",nrtri:"⋫",ntriangleright:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",nrtrie:"⋭",ntrianglerighteq:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",nsqsube:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",nsqsupe:"⋣",NotSubset:"⊂⃒",nsubset:"⊂⃒",vnsub:"⊂⃒",NotSubsetEqual:"⊈",nsube:"⊈",nsubseteq:"⊈",NotSucceeds:"⊁",nsc:"⊁",nsucc:"⊁",NotSucceedsEqual:"⪰̸",nsce:"⪰̸",nsucceq:"⪰̸",NotSucceedsSlantEqual:"⋡",nsccue:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",nsupset:"⊃⃒",vnsup:"⊃⃒",NotSupersetEqual:"⊉",nsupe:"⊉",nsupseteq:"⊉",NotTilde:"≁",nsim:"≁",NotTildeEqual:"≄",nsime:"≄",nsimeq:"≄",NotTildeFullEqual:"≇",ncong:"≇",NotTildeTilde:"≉",nap:"≉",napprox:"≉",NotVerticalBar:"∤",nmid:"∤",nshortmid:"∤",nsmid:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",ohm:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",ldquo:"“",OpenCurlyQuote:"‘",lsquo:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",oline:"‾",OverBrace:"⏞",OverBracket:"⎴",tbrk:"⎴",OverParenthesis:"⏜",PartialD:"∂",part:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",plusmn:"±",pm:"±",Popf:"ℙ",primes:"ℙ",Pr:"⪻",Precedes:"≺",pr:"≺",prec:"≺",PrecedesEqual:"⪯",pre:"⪯",preceq:"⪯",PrecedesSlantEqual:"≼",prcue:"≼",preccurlyeq:"≼",PrecedesTilde:"≾",precsim:"≾",prsim:"≾",Prime:"″",Product:"∏",prod:"∏",Proportional:"∝",prop:"∝",propto:"∝",varpropto:"∝",vprop:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',quot:'"',Qfr:"𝔔",Qopf:"ℚ",rationals:"ℚ",Qscr:"𝒬",RBarr:"⤐",drbkarow:"⤐",REG:"®",circledR:"®",reg:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",twoheadrightarrow:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",Rfr:"ℜ",real:"ℜ",realpart:"ℜ",ReverseElement:"∋",SuchThat:"∋",ni:"∋",niv:"∋",ReverseEquilibrium:"⇋",leftrightharpoons:"⇋",lrhar:"⇋",ReverseUpEquilibrium:"⥯",duhar:"⥯",Rho:"Ρ",RightAngleBracket:"⟩",rang:"⟩",rangle:"⟩",RightArrow:"→",ShortRightArrow:"→",rarr:"→",rightarrow:"→",srarr:"→",RightArrowBar:"⇥",rarrb:"⇥",RightArrowLeftArrow:"⇄",rightleftarrows:"⇄",rlarr:"⇄",RightCeiling:"⌉",rceil:"⌉",RightDoubleBracket:"⟧",robrk:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",dharr:"⇂",downharpoonright:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rfloor:"⌋",RightTee:"⊢",vdash:"⊢",RightTeeArrow:"↦",map:"↦",mapsto:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",vartriangleright:"⊳",vrtri:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",rtrie:"⊵",trianglerighteq:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",uharr:"↾",upharpoonright:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",rharu:"⇀",rightharpoonup:"⇀",RightVectorBar:"⥓",Ropf:"ℝ",reals:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",rAarr:"⇛",Rscr:"ℛ",realine:"ℛ",Rsh:"↱",rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortUpArrow:"↑",UpArrow:"↑",uarr:"↑",uparrow:"↑",Sigma:"Σ",SmallCircle:"∘",compfn:"∘",Sopf:"𝕊",Sqrt:"√",radic:"√",Square:"□",squ:"□",square:"□",SquareIntersection:"⊓",sqcap:"⊓",SquareSubset:"⊏",sqsub:"⊏",sqsubset:"⊏",SquareSubsetEqual:"⊑",sqsube:"⊑",sqsubseteq:"⊑",SquareSuperset:"⊐",sqsup:"⊐",sqsupset:"⊐",SquareSupersetEqual:"⊒",sqsupe:"⊒",sqsupseteq:"⊒",SquareUnion:"⊔",sqcup:"⊔",Sscr:"𝒮",Star:"⋆",sstarf:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",sube:"⊆",subseteq:"⊆",Succeeds:"≻",sc:"≻",succ:"≻",SucceedsEqual:"⪰",sce:"⪰",succeq:"⪰",SucceedsSlantEqual:"≽",sccue:"≽",succcurlyeq:"≽",SucceedsTilde:"≿",scsim:"≿",succsim:"≿",Sum:"∑",sum:"∑",Sup:"⋑",Supset:"⋑",Superset:"⊃",sup:"⊃",supset:"⊃",SupersetEqual:"⊇",supe:"⊇",supseteq:"⊇",THORN:"Þ",TRADE:"™",trade:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",there4:"∴",therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",Tilde:"∼",sim:"∼",thicksim:"∼",thksim:"∼",TildeEqual:"≃",sime:"≃",simeq:"≃",TildeFullEqual:"≅",cong:"≅",TildeTilde:"≈",ap:"≈",approx:"≈",asymp:"≈",thickapprox:"≈",thkap:"≈",Topf:"𝕋",TripleDot:"⃛",tdot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",lowbar:"_",UnderBrace:"⏟",UnderBracket:"⎵",bbrk:"⎵",UnderParenthesis:"⏝",Union:"⋃",bigcup:"⋃",xcup:"⋃",UnionPlus:"⊎",uplus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",udarr:"⇅",UpDownArrow:"↕",updownarrow:"↕",varr:"↕",UpEquilibrium:"⥮",udhar:"⥮",UpTee:"⊥",bot:"⊥",bottom:"⊥",perp:"⊥",UpTeeArrow:"↥",mapstoup:"↥",UpperLeftArrow:"↖",nwarr:"↖",nwarrow:"↖",UpperRightArrow:"↗",nearr:"↗",nearrow:"↗",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",bigvee:"⋁",xvee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",mid:"∣",shortmid:"∣",smid:"∣",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"❘",VerticalTilde:"≀",wr:"≀",wreath:"≀",VeryThinSpace:" ",hairsp:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",bigwedge:"⋀",xwedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",Zeta:"Ζ",Zfr:"ℨ",zeetrf:"ℨ",Zopf:"ℤ",integers:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",mstpos:"∾",acE:"∾̳",acd:"∿",acirc:"â",acy:"а",aelig:"æ",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",and:"∧",wedge:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",angle:"∠",ange:"⦤",angmsd:"∡",measuredangle:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angzarr:"⍼",aogon:"ą",aopf:"𝕒",apE:"⩰",apacir:"⩯",ape:"≊",approxeq:"≊",apid:"≋",apos:"'",aring:"å",ascr:"𝒶",ast:"*",midast:"*",atilde:"ã",auml:"ä",awint:"⨑",bNot:"⫭",backcong:"≌",bcong:"≌",backepsilon:"϶",bepsi:"϶",backprime:"‵",bprime:"‵",backsim:"∽",bsim:"∽",backsimeq:"⋍",bsime:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrktbrk:"⎶",bcy:"б",bdquo:"„",ldquor:"„",bemptyv:"⦰",beta:"β",beth:"ℶ",between:"≬",twixt:"≬",bfr:"𝔟",bigcirc:"◯",xcirc:"◯",bigodot:"⨀",xodot:"⨀",bigoplus:"⨁",xoplus:"⨁",bigotimes:"⨂",xotime:"⨂",bigsqcup:"⨆",xsqcup:"⨆",bigstar:"★",starf:"★",bigtriangledown:"▽",xdtri:"▽",bigtriangleup:"△",xutri:"△",biguplus:"⨄",xuplus:"⨄",bkarow:"⤍",rbarr:"⤍",blacklozenge:"⧫",lozf:"⧫",blacktriangle:"▴",utrif:"▴",blacktriangledown:"▾",dtrif:"▾",blacktriangleleft:"◂",ltrif:"◂",blacktriangleright:"▸",rtrif:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",minusb:"⊟",boxplus:"⊞",plusb:"⊞",boxtimes:"⊠",timesb:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bumpE:"⪮",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cemptyv:"⦲",cent:"¢",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",cire:"≗",circlearrowleft:"↺",olarr:"↺",circlearrowright:"↻",orarr:"↻",circledS:"Ⓢ",oS:"Ⓢ",circledast:"⊛",oast:"⊛",circledcirc:"⊚",ocir:"⊚",circleddash:"⊝",odash:"⊝",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",comma:",",commat:"@",comp:"∁",complement:"∁",congdot:"⩭",copf:"𝕔",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",curlyeqprec:"⋞",cuesc:"⋟",curlyeqsucc:"⋟",cularr:"↶",curvearrowleft:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curvearrowright:"↷",curarrm:"⤼",curlyvee:"⋎",cuvee:"⋎",curlywedge:"⋏",cuwed:"⋏",curren:"¤",cwint:"∱",cylcty:"⌭",dHar:"⥥",dagger:"†",daleth:"ℸ",dash:"‐",hyphen:"‐",dbkarow:"⤏",rBarr:"⤏",dcaron:"ď",dcy:"д",ddarr:"⇊",downdownarrows:"⇊",ddotseq:"⩷",eDDot:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",diamondsuit:"♦",diams:"♦",digamma:"ϝ",gammad:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",llcorner:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",doteqdot:"≑",eDot:"≑",dotminus:"∸",minusd:"∸",dotplus:"∔",plusdo:"∔",dotsquare:"⊡",sdotb:"⊡",drcorn:"⌟",lrcorner:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",triangledown:"▿",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",eqcirc:"≖",ecirc:"ê",ecolon:"≕",eqcolon:"≕",ecy:"э",edot:"ė",efDot:"≒",fallingdotseq:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",eqslantgtr:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",eqslantless:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",varnothing:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",straightepsilon:"ϵ",varepsilon:"ϵ",equals:"=",equest:"≟",questeq:"≟",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",risingdotseq:"≓",erarr:"⥱",escr:"ℯ",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",fork:"⋔",pitchfork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",half:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",sfrown:"⌢",fscr:"𝒻",gEl:"⪌",gtreqqless:"⪌",gacute:"ǵ",gamma:"γ",gap:"⪆",gtrapprox:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gimel:"ℷ",gjcy:"ѓ",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gneqq:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gnsim:"⋧",gopf:"𝕘",gscr:"ℊ",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtrdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrarr:"⥸",gvertneqq:"≩︀",gvnE:"≩︀",hardcy:"ъ",harrcir:"⥈",harrw:"↭",leftrightsquigarrow:"↭",hbar:"ℏ",hslash:"ℏ",planck:"ℏ",plankv:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",mldr:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",searhk:"⤥",hkswarow:"⤦",swarhk:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",larrhk:"↩",hookrightarrow:"↪",rarrhk:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hstrok:"ħ",hybull:"⁃",iacute:"í",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",ifr:"𝔦",igrave:"ì",iiiint:"⨌",qint:"⨌",iiint:"∭",tint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",imath:"ı",inodot:"ı",imof:"⊷",imped:"Ƶ",incare:"℅",infin:"∞",infintie:"⧝",intcal:"⊺",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iquest:"¿",iscr:"𝒾",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",varkappa:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAtail:"⤛",lBarr:"⤎",lEg:"⪋",lesseqqgtr:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lambda:"λ",langd:"⦑",lap:"⪅",lessapprox:"⪅",laquo:"«",larrbfs:"⤟",larrfs:"⤝",larrlp:"↫",looparrowleft:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",leftarrowtail:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lcy:"л",ldca:"⤶",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leq:"≤",leftleftarrows:"⇇",llarr:"⇇",leftthreetimes:"⋋",lthree:"⋋",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessdot:"⋖",ltdot:"⋖",lfisht:"⥼",lfr:"𝔩",lgE:"⪑",lharul:"⥪",lhblk:"▄",ljcy:"љ",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lneqq:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lnsim:"⋦",loang:"⟬",loarr:"⇽",longmapsto:"⟼",xmap:"⟼",looparrowright:"↬",rarrlp:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",loz:"◊",lozenge:"◊",lpar:"(",lparlt:"⦓",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsime:"⪍",lsimg:"⪏",lsquor:"‚",sbquo:"‚",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",triangleleft:"◃",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",strns:"¯",male:"♂",malt:"✠",maltese:"✠",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",mfr:"𝔪",mho:"℧",micro:"µ",midcir:"⫰",minus:"−",minusdu:"⨪",mlcp:"⫛",models:"⊧",mopf:"𝕞",mscr:"𝓂",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nLeftarrow:"⇍",nlArr:"⇍",nLeftrightarrow:"⇎",nhArr:"⇎",nLl:"⋘̸",nLt:"≪⃒",nRightarrow:"⇏",nrArr:"⇏",nVDash:"⊯",nVdash:"⊮",nacute:"ń",nang:"∠⃒",napE:"⩰̸",napid:"≋̸",napos:"ʼn",natur:"♮",natural:"♮",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",neArr:"⇗",nearhk:"⤤",nedot:"≐̸",nesear:"⤨",toea:"⤨",nfr:"𝔫",nharr:"↮",nleftrightarrow:"↮",nhpar:"⫲",nis:"⋼",nisd:"⋺",njcy:"њ",nlE:"≦̸",nleqq:"≦̸",nlarr:"↚",nleftarrow:"↚",nldr:"‥",nopf:"𝕟",not:"¬",notinE:"⋹̸",notindot:"⋵̸",notinvb:"⋷",notinvc:"⋶",notnivb:"⋾",notnivc:"⋽",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",nrarr:"↛",nrightarrow:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nscr:"𝓃",nsub:"⊄",nsubE:"⫅̸",nsubseteqq:"⫅̸",nsup:"⊅",nsupE:"⫆̸",nsupseteqq:"⫆̸",ntilde:"ñ",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwnear:"⤧",oacute:"ó",ocirc:"ô",ocy:"о",odblac:"ő",odiv:"⨸",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",olcir:"⦾",olcross:"⦻",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",oopf:"𝕠",opar:"⦷",operp:"⦹",or:"∨",vee:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",oscr:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oslash:"ø",osol:"⊘",otilde:"õ",otimesas:"⨶",ouml:"ö",ovbar:"⌽",para:"¶",parsim:"⫳",parsl:"⫽",pcy:"п",percnt:"%",period:".",permil:"‰",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",straightphi:"ϕ",varphi:"ϕ",phone:"☎",pi:"π",piv:"ϖ",varpi:"ϖ",planckh:"ℎ",plus:"+",plusacir:"⨣",pluscir:"⨢",plusdu:"⨥",pluse:"⩲",plussim:"⨦",plustwo:"⨧",pointint:"⨕",popf:"𝕡",pound:"£",prE:"⪳",prap:"⪷",precapprox:"⪷",precnapprox:"⪹",prnap:"⪹",precneqq:"⪵",prnE:"⪵",precnsim:"⋨",prnsim:"⋨",prime:"′",profalar:"⌮",profline:"⌒",profsurf:"⌓",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quatint:"⨖",quest:"?",rAtail:"⤜",rHar:"⥤",race:"∽̱",racute:"ŕ",raemptyv:"⦳",rangd:"⦒",range:"⦥",raquo:"»",rarrap:"⥵",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rightarrowtail:"↣",rarrw:"↝",rightsquigarrow:"↝",ratail:"⤚",ratio:"∶",rbbrk:"❳",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdsh:"↳",rect:"▭",rfisht:"⥽",rfr:"𝔯",rharul:"⥬",rho:"ρ",rhov:"ϱ",varrho:"ϱ",rightrightarrows:"⇉",rrarr:"⇉",rightthreetimes:"⋌",rthree:"⋌",ring:"˚",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rsaquo:"›",rscr:"𝓇",rtimes:"⋊",rtri:"▹",triangleright:"▹",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",scE:"⪴",scap:"⪸",succapprox:"⪸",scaron:"š",scedil:"ş",scirc:"ŝ",scnE:"⪶",succneqq:"⪶",scnap:"⪺",succnapprox:"⪺",scnsim:"⋩",succnsim:"⋩",scpolint:"⨓",scy:"с",sdot:"⋅",sdote:"⩦",seArr:"⇘",sect:"§",semi:";",seswar:"⤩",tosa:"⤩",sext:"✶",sfr:"𝔰",sharp:"♯",shchcy:"щ",shcy:"ш",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",varsigma:"ς",simdot:"⩪",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",smashp:"⨳",smeparsl:"⧤",smile:"⌣",ssmile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",sqcaps:"⊓︀",sqcups:"⊔︀",sscr:"𝓈",star:"☆",sub:"⊂",subset:"⊂",subE:"⫅",subseteqq:"⫅",subdot:"⪽",subedot:"⫃",submult:"⫁",subnE:"⫋",subsetneqq:"⫋",subne:"⊊",subsetneq:"⊊",subplus:"⪿",subrarr:"⥹",subsim:"⫇",subsub:"⫕",subsup:"⫓",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supseteqq:"⫆",supdot:"⪾",supdsub:"⫘",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supsetneqq:"⫌",supne:"⊋",supsetneq:"⊋",supplus:"⫀",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tcaron:"ť",tcedil:"ţ",tcy:"т",telrec:"⌕",tfr:"𝔱",theta:"θ",thetasym:"ϑ",thetav:"ϑ",vartheta:"ϑ",thorn:"þ",times:"×",timesbar:"⨱",timesd:"⨰",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tprime:"‴",triangle:"▵",utri:"▵",triangleq:"≜",trie:"≜",tridot:"◬",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",uHar:"⥣",uacute:"ú",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udblac:"ű",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uogon:"ų",uopf:"𝕦",upsi:"υ",upsilon:"υ",upuparrows:"⇈",uuarr:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",uuml:"ü",uwangle:"⦧",vBar:"⫨",vBarv:"⫩",vangrt:"⦜",varsubsetneq:"⊊︀",vsubne:"⊊︀",varsubsetneqq:"⫋︀",vsubnE:"⫋︀",varsupsetneq:"⊋︀",vsupne:"⊋︀",varsupsetneqq:"⫌︀",vsupnE:"⫌︀",vcy:"в",veebar:"⊻",veeeq:"≚",vellip:"⋮",vfr:"𝔳",vopf:"𝕧",vscr:"𝓋",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedgeq:"≙",weierp:"℘",wp:"℘",wfr:"𝔴",wopf:"𝕨",wscr:"𝓌",xfr:"𝔵",xi:"ξ",xnis:"⋻",xopf:"𝕩",xscr:"𝓍",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"}).ngsp="",LS=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],a(IS,"Ls"),a(Ar=class{static fromArray(t){return t?(IS("interpolation",t),new Ar(t[0],t[1])):M2}constructor(t,r){this.start=t,this.end=r}},"t"),M2=new Ar("{{","}}"),a(Vn=class extends T2{constructor(t,r,n){super(n,t),this.tokenType=r}},"ft"),Uu=Vn,a(qn=class{constructor(t,r,n){this.tokens=t,this.errors=r,this.nonNormalizedIcuExpressions=n}},"$r"),MS=qn,a(_S,"Ws"),PS=/\r\n?/g,a(yn,"je"),a(O5,"Rs"),a(HS,"ho"),function(e){e.HEX="hexadecimal",e.DEC="decimal"}($i||($i={})),a(Wn=class{constructor(t){this.error=t}},"dt"),Gu=Wn,a(Un=class{constructor(t,r,n){this._getTagContentType=r,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this._fullNameStack=[],this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||M2,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map((i=>i.codePointAt(0)||0)),this._canSelfClose=n.canSelfClose||!1,this._allowHtmComponentClosingTags=n.allowHtmComponentClosingTags||!1;let o=n.range||{endPos:t.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new WS(t,o):new _2(t,o),this._preserveLineEndings=n.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=n.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=n.tokenizeBlocks??!0,this._tokenizeLet=n.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(t){return this._preserveLineEndings?t:t.replace(PS,"\n")}tokenize(){for(;0!==this._cursor.peek();){let t=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(t):this._attemptStr("--")?this._consumeComment(t):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(t):this._consumeBogusComment(t);else if(this._attemptCharCode(47))this._consumeTagClose(t);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(t)):this._consumeTagOpen(t)}else this._tokenizeLet&&64===this._cursor.peek()&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(t):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(t):!this._tokenizeBlocks||this._inInterpolation||this._isInExpansionCase()||this._isInExpansionForm()||!this._attemptCharCode(125)?this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,(()=>this._isTextEnd()),(()=>this._isTagStart())):this._consumeBlockEnd(t)}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let t=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn((n=>Bi(n)?!t:!V5(n)||(t=!0,!1))),this._cursor.getChars(r).trim()}_consumeBlockStart(t){this._beginToken(25,t);let r=this._endToken([this._getBlockName()]);if(40===this._cursor.peek()){if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(ie),!this._attemptCharCode(41))return void(r.type=29);this._attemptCharCodeUntilFn(ie)}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(t){this._beginToken(27,t),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(q5);41!==this._cursor.peek()&&0!==this._cursor.peek();){this._beginToken(28);let t=this._cursor.clone(),r=null,n=0;for(;59!==this._cursor.peek()&&0!==this._cursor.peek()||null!==r;){let o=this._cursor.peek();if(92===o)this._cursor.advance();else if(o===r)r=null;else if(null===r&&Wu(o))r=o;else if(40===o&&null===r)n++;else if(41===o&&null===r){if(0===n)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(t)]),this._attemptCharCodeUntilFn(q5)}}_consumeLetDeclaration(t){if(this._beginToken(30,t),!Bi(this._cursor.peek())){return void(this._endToken([this._cursor.getChars(t)]).type=33)}this._attemptCharCodeUntilFn(ie);let r=this._endToken([this._getLetDeclarationName()]);this._attemptCharCodeUntilFn(ie),this._attemptCharCode(61)?(this._attemptCharCodeUntilFn((n=>ie(n)&&!yc(n))),this._consumeLetDeclarationValue(),59===this._cursor.peek()?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(t))):r.type=33}_getLetDeclarationName(){let t=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn((n=>!(Mi(n)||36==n||95===n||r&&bc(n))||(r=!0,!1))),this._cursor.getChars(t).trim()}_consumeLetDeclarationValue(){let t=this._cursor.clone();for(this._beginToken(31,t);0!==this._cursor.peek();){let r=this._cursor.peek();if(59===r)break;Wu(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn((n=>92===n?(this._cursor.advance(),!1):n===r))),this._cursor.advance()}this._endToken([this._cursor.getChars(t)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(jS(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._cursor.peek()){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(t,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=t}_endToken(t,r){if(null===this._currentTokenStart)throw new Uu("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(null===this._currentTokenType)throw new Uu("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:t,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(t,r){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');let n=new Uu(t,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new Gu(n)}handleError(t){if(t instanceof Dc&&(t=this._createError(t.msg,this._cursor.getSpan(t.cursor))),!(t instanceof Gu))throw t;this.errors.push(t.error)}_attemptCharCode(t){return this._cursor.peek()===t&&(this._cursor.advance(),!0)}_attemptCharCodeCaseInsensitive(t){return!!VS(this._cursor.peek(),t)&&(this._cursor.advance(),!0)}_requireCharCode(t){let r=this._cursor.clone();if(!this._attemptCharCode(t))throw this._createError(yn(this._cursor.peek()),this._cursor.getSpan(r))}_attemptStr(t){let r=t.length;if(this._cursor.charsLeft()this._attemptStr("--\x3e"))),this._beginToken(11),this._requireStr("--\x3e"),this._endToken([])}_consumeBogusComment(t){this._beginToken(10,t),this._endToken([]),this._consumeRawText(!1,(()=>62===this._cursor.peek())),this._beginToken(11),this._cursor.advance(),this._endToken([])}_consumeCdata(t){this._beginToken(12,t),this._endToken([]),this._consumeRawText(!1,(()=>this._attemptStr("]]>"))),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(t){this._beginToken(18,t),this._endToken([]),this._consumeRawText(!1,(()=>62===this._cursor.peek())),this._beginToken(19),this._cursor.advance(),this._endToken([])}_consumePrefixAndName(){let n,t=this._cursor.clone(),r="";for(;58!==this._cursor.peek()&&!zS(this._cursor.peek());)this._cursor.advance();return 58===this._cursor.peek()?(r=this._cursor.getChars(t),this._cursor.advance(),n=this._cursor.clone()):n=t,this._requireCharCodeUntilFn(N5,""===r?0:1),[r,this._cursor.getChars(n)]}_consumeTagOpen(t){let r,n,o,i=[];try{if(!Mi(this._cursor.peek()))throw this._createError(yn(this._cursor.peek()),this._cursor.getSpan(t));for(o=this._consumeTagOpenStart(t),n=o.parts[0],r=o.parts[1],this._attemptCharCodeUntilFn(ie);47!==this._cursor.peek()&&62!==this._cursor.peek()&&60!==this._cursor.peek()&&0!==this._cursor.peek();){let[u,c]=this._consumeAttributeName();if(this._attemptCharCodeUntilFn(ie),this._attemptCharCode(61)){this._attemptCharCodeUntilFn(ie);let p=this._consumeAttributeValue();i.push({prefix:u,name:c,value:p})}else i.push({prefix:u,name:c});this._attemptCharCodeUntilFn(ie)}this._consumeTagOpenEnd()}catch(u){if(u instanceof Gu)return void(o?o.type=4:(this._beginToken(5,t),this._endToken(["<"])));throw u}if(this._canSelfClose&&2===this.tokens[this.tokens.length-1].type)return;let l=this._getTagContentType(r,n,this._fullNameStack.length>0,i);this._handleFullNameStackForTagOpen(n,r),l===nt.RAW_TEXT?this._consumeRawTextWithTagClose(n,r,!1):l===nt.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,r,!0)}_consumeRawTextWithTagClose(t,r,n){this._consumeRawText(n,(()=>!!(this._attemptCharCode(60)&&this._attemptCharCode(47)&&(this._attemptCharCodeUntilFn(ie),this._attemptStrCaseInsensitive(t?`${t}:${r}`:r)))&&(this._attemptCharCodeUntilFn(ie),this._attemptCharCode(62)))),this._beginToken(3),this._requireCharCodeUntilFn((o=>62===o),3),this._cursor.advance(),this._endToken([t,r]),this._handleFullNameStackForTagClose(t,r)}_consumeTagOpenStart(t){this._beginToken(0,t);let r=this._consumePrefixAndName();return this._endToken(r)}_consumeAttributeName(){let t=this._cursor.peek();if(39===t||34===t)throw this._createError(yn(t),this._cursor.getSpan());this._beginToken(14);let r=this._consumePrefixAndName();return this._endToken(r),r}_consumeAttributeValue(){let t;if(39===this._cursor.peek()||34===this._cursor.peek()){let r=this._cursor.peek();this._consumeQuote(r);let n=a((()=>this._cursor.peek()===r),"n");t=this._consumeWithInterpolation(16,17,n,n),this._consumeQuote(r)}else{let r=a((()=>N5(this._cursor.peek())),"r");t=this._consumeWithInterpolation(16,17,r,r)}return t}_consumeQuote(t){this._beginToken(15),this._requireCharCode(t),this._endToken([String.fromCodePoint(t)])}_consumeTagOpenEnd(){let t=this._attemptCharCode(47)?2:1;this._beginToken(t),this._requireCharCode(62),this._endToken([])}_consumeTagClose(t){if(this._beginToken(3,t),this._attemptCharCodeUntilFn(ie),this._allowHtmComponentClosingTags&&this._attemptCharCode(47))this._attemptCharCodeUntilFn(ie),this._requireCharCode(62),this._endToken([]);else{let[r,n]=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ie),this._requireCharCode(62),this._endToken([r,n]),this._handleFullNameStackForTagClose(r,n)}}_consumeExpansionFormStart(){this._beginToken(20),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(20),this._beginToken(7);let t=this._readUntil(44),r=this._processCarriageReturns(t);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([r]);else{let o=this._endToken([t]);r!==t&&this.nonNormalizedIcuExpressions.push(o)}this._requireCharCode(44),this._attemptCharCodeUntilFn(ie),this._beginToken(7);let n=this._readUntil(44);this._endToken([n]),this._requireCharCode(44),this._attemptCharCodeUntilFn(ie)}_consumeExpansionCaseStart(){this._beginToken(21);let t=this._readUntil(123).trim();this._endToken([t]),this._attemptCharCodeUntilFn(ie),this._beginToken(22),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(ie),this._expansionCaseStack.push(22)}_consumeExpansionCaseEnd(){this._beginToken(23),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(ie),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(24),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(t,r,n,o){this._beginToken(t);let i=[];for(;!n();){let u=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],u),i.length=0,this._consumeInterpolation(r,u,o),this._beginToken(t)):38===this._cursor.peek()?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(t),this._beginToken(t)):i.push(this._readChar())}this._inInterpolation=!1;let l=this._processCarriageReturns(i.join(""));return this._endToken([l]),l}_consumeInterpolation(t,r,n){let o=[];this._beginToken(t,r),o.push(this._interpolationConfig.start);let i=this._cursor.clone(),l=null,u=!1;for(;0!==this._cursor.peek()&&(null===n||!n());){let c=this._cursor.clone();if(this._isTagStart())return this._cursor=c,o.push(this._getProcessedChars(i,c)),void this._endToken(o);if(null===l){if(this._attemptStr(this._interpolationConfig.end))return o.push(this._getProcessedChars(i,c)),o.push(this._interpolationConfig.end),void this._endToken(o);this._attemptStr("//")&&(u=!0)}let p=this._cursor.peek();this._cursor.advance(),92===p?this._cursor.advance():p===l?l=null:!u&&null===l&&Wu(p)&&(l=p)}o.push(this._getProcessedChars(i,this._cursor)),this._endToken(o)}_getProcessedChars(t,r){return this._processCarriageReturns(r.getChars(t))}_isTextEnd(){return!!(this._isTagStart()||0===this._cursor.peek()||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||125===this._cursor.peek()&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||64===this._cursor.peek()||125===this._cursor.peek()))}_isTagStart(){if(60===this._cursor.peek()){let t=this._cursor.clone();t.advance();let r=t.peek();if(97<=r&&r<=122||65<=r&&r<=90||47===r||33===r)return!0}return!1}_isBlockStart(){if(this._tokenizeBlocks&&64===this._cursor.peek()){let t=this._cursor.clone();if(t.advance(),V5(t.peek()))return!0}return!1}_readUntil(t){let r=this._cursor.clone();return this._attemptUntilChar(t),this._cursor.getChars(r)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&22===this._expansionCaseStack[this._expansionCaseStack.length-1]}_isInExpansionForm(){return this._expansionCaseStack.length>0&&20===this._expansionCaseStack[this._expansionCaseStack.length-1]}isExpansionFormStart(){if(123!==this._cursor.peek())return!1;if(this._interpolationConfig){let t=this._cursor.clone(),r=this._attemptStr(this._interpolationConfig.start);return this._cursor=t,!r}return!0}_handleFullNameStackForTagOpen(t,r){let n=Pi(t,r);(0===this._fullNameStack.length||this._fullNameStack[this._fullNameStack.length-1]===n)&&this._fullNameStack.push(n)}_handleFullNameStackForTagClose(t,r){let n=Pi(t,r);0!==this._fullNameStack.length&&this._fullNameStack[this._fullNameStack.length-1]===n&&this._fullNameStack.pop()}},"Or"),$S=Un,a(ie,"b"),a(N5,"$s"),a(zS,"mo"),a(OS,"fo"),a(NS,"go"),a(jS,"Co"),a(VS,"So"),a(j5,"Os"),a(V5,"Ms"),a(q5,"qs"),a(qS,"_o"),a(rr=class{constructor(t,r){if(t instanceof rr){this.file=t.file,this.input=t.input,this.end=t.end;let n=t.state;this.state={peek:n.peek,offset:n.offset,line:n.line,column:n.column}}else{if(!r)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=r.endPos,this.state={peek:-1,offset:r.startPos,line:r.startLine,column:r.startCol}}}clone(){return new rr(this)}peek(){return this.state.peek}charsLeft(){return this.end-this.state.offset}diff(t){return this.state.offset-t.state.offset}advance(){this.advanceState(this.state)}init(){this.updatePeek(this.state)}getSpan(t,r){let n=t=t||this;if(r)for(;this.diff(t)>0&&-1!==r.indexOf(t.peek());)n===t&&(t=t.clone()),t.advance();let o=this.locationFromCursor(t),i=this.locationFromCursor(this),l=n!==t?this.locationFromCursor(n):o;return new j(o,i,l)}getChars(t){return this.input.substring(t.state.offset,this.state.offset)}charAt(t){return this.input.charCodeAt(t)}advanceState(t){if(t.offset>=this.end)throw this.state=t,new Dc('Unexpected character "EOF"',this);let r=this.charAt(t.offset);10===r?(t.line++,t.column=0):yc(r)||t.column++,t.offset++,this.updatePeek(t)}updatePeek(t){t.peek=t.offset>=this.end?0:this.charAt(t.offset)}locationFromCursor(t){return new Ju(t.file,t.state.offset,t.state.line,t.state.column)}},"t"),_2=rr,a(nr=class extends _2{constructor(t,r){t instanceof nr?(super(t),this.internalState={...t.internalState}):(super(t,r),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new nr(this)}getChars(t){let r=t.clone(),n="";for(;r.internalState.offsetthis.internalState.peek),"e");if(92===t())if(this.internalState={...this.state},this.advanceState(this.internalState),110===t())this.state.peek=10;else if(114===t())this.state.peek=13;else if(118===t())this.state.peek=11;else if(116===t())this.state.peek=9;else if(98===t())this.state.peek=8;else if(102===t())this.state.peek=12;else if(117===t())if(this.advanceState(this.internalState),123===t()){this.advanceState(this.internalState);let r=this.clone(),n=0;for(;125!==t();)this.advanceState(this.internalState),n++;this.state.peek=this.decodeHexDigits(r,n)}else{let r=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,4)}else if(120===t()){this.advanceState(this.internalState);let r=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(r,2)}else if(S5(t())){let r="",n=0,o=this.clone();for(;S5(t())&&n<3;)o=this.clone(),r+=String.fromCodePoint(t()),this.advanceState(this.internalState),n++;this.state.peek=parseInt(r,8),this.internalState=o.internalState}else yc(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(t,r){let n=this.input.slice(t.internalState.offset,t.internalState.offset+r),o=parseInt(n,16);if(isNaN(o))throw t.state=t.internalState,new Dc("Invalid hexadecimal escape sequence",t);return o}},"t"),WS=nr,a(Gn=class{constructor(t,r){this.msg=t,this.cursor=r}},"gt"),Dc=Gn,a(Fr=class extends T2{static create(t,r,n){return new Fr(t,r,n)}constructor(t,r,n){super(r,n),this.elementName=t}},"t"),Ae=Fr,a(Xn=class{constructor(t,r){this.rootNodes=t,this.errors=r}},"Vr"),US=Xn,a(Yn=class{constructor(t){this.getTagDefinition=t}parse(t,r,n,o=!1,i){let l=a((b=>(m,...g)=>b(m.toLowerCase(),...g)),"a"),u=o?this.getTagDefinition:l(this.getTagDefinition),c=a((b=>u(b).getContentType()),"u"),p=o?i:l(i),d=_S(t,r,i?(b,m,g,y)=>{let w=p(b,m,g,y);return void 0!==w?w:c(b)}:c,n),h=n&&n.canSelfClose||!1,f=n&&n.allowHtmComponentClosingTags||!1,v=new XS(d.tokens,u,h,f,o);return v.build(),new US(v.rootNodes,d.errors.concat(v.errors))}},"nr"),GS=Yn,a(kr=class{constructor(t,r,n,o,i){this.tokens=t,this.getTagDefinition=r,this.canSelfClose=n,this.allowHtmComponentClosingTags=o,this.isTagNameCaseSensitive=i,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;34!==this._peek.type;)0===this._peek.type||4===this._peek.type?this._consumeStartTag(this._advance()):3===this._peek.type?(this._closeVoidElement(),this._consumeEndTag(this._advance())):12===this._peek.type?(this._closeVoidElement(),this._consumeCdata(this._advance())):10===this._peek.type?(this._closeVoidElement(),this._consumeComment(this._advance())):5===this._peek.type||7===this._peek.type||6===this._peek.type?(this._closeVoidElement(),this._consumeText(this._advance())):20===this._peek.type?this._consumeExpansion(this._advance()):25===this._peek.type?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):27===this._peek.type?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):29===this._peek.type?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):30===this._peek.type?(this._closeVoidElement(),this._consumeLet(this._advance())):18===this._peek.type?this._consumeDocType(this._advance()):33===this._peek.type?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let t of this._containerStack)t instanceof bn&&this.errors.push(Ae.create(t.name,t.sourceSpan,`Unclosed block "${t.name}"`))}_advance(){let t=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let l=new j(t.sourceSpan.start,o.sourceSpan.end,t.sourceSpan.fullStart),u=new j(r.sourceSpan.start,o.sourceSpan.end,r.sourceSpan.fullStart);return new SS(t.parts[0],i.rootNodes,l,t.sourceSpan,u)}_collectExpansionExpTokens(t){let r=[],n=[22];for(;;){if((20===this._peek.type||22===this._peek.type)&&n.push(this._peek.type),23===this._peek.type){if(!W5(n,22))return this.errors.push(Ae.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0===n.length)return r}if(24===this._peek.type){if(!W5(n,20))return this.errors.push(Ae.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(34===this._peek.type)return this.errors.push(Ae.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.push(this._advance())}}_getText(t){let r=t.parts[0];if(r.length>0&&"\n"==r[0]){let n=this._getClosestParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(t){let r=[t],n=t.sourceSpan,o=t.parts[0];if(o.length>0&&"\n"===o[0]){let i=this._getContainer();null!=i&&0===i.children.length&&this.getTagDefinition(i.name).ignoreFirstLf&&(o=o.substring(1),r[0]={type:t.type,sourceSpan:t.sourceSpan,parts:[o]})}for(;8===this._peek.type||5===this._peek.type||9===this._peek.type;)t=this._advance(),r.push(t),8===t.type?o+=t.parts.join("").replace(/&([^;]+);/g,U5):9===t.type?o+=t.parts[0]:o+=t.parts.join("");if(o.length>0){let i=t.sourceSpan;this._addToParent(new xS(o,new j(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let t=this._getContainer();t instanceof tr&&this.getTagDefinition(t.name).isVoid&&this._containerStack.pop()}_consumeStartTag(t){let[r,n]=t.parts,o=[];for(;14===this._peek.type;)o.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),l=!1;if(2===this._peek.type){this._advance(),l=!0;let v=this.getTagDefinition(i);this.canSelfClose||v.canSelfClose||null!==Ti(i)||v.isVoid||this.errors.push(Ae.create(i,t.sourceSpan,`Only void, custom and foreign elements can be self closed "${t.parts[1]}"`))}else 1===this._peek.type&&(this._advance(),l=!1);let u=this._peek.sourceSpan.fullStart,c=new j(t.sourceSpan.start,u,t.sourceSpan.fullStart),p=new j(t.sourceSpan.start,u,t.sourceSpan.fullStart),d=new j(t.sourceSpan.start.moveBy(1),t.sourceSpan.end),h=new tr(i,o,[],c,p,void 0,d),f=this._getContainer();this._pushContainer(h,f instanceof tr&&this.getTagDefinition(f.name).isClosedByChild(h.name)),l?this._popContainer(i,tr,c):4===t.type&&(this._popContainer(i,tr,null),this.errors.push(Ae.create(i,c,`Opening tag "${i}" not terminated.`)))}_pushContainer(t,r){r&&this._containerStack.pop(),this._addToParent(t),this._containerStack.push(t)}_consumeEndTag(t){let r=this.allowHtmComponentClosingTags&&0===t.parts.length?null:this._getElementFullName(t.parts[0],t.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(Ae.create(r,t.sourceSpan,`Void elements do not have end tags "${t.parts[1]}"`));else if(!this._popContainer(r,tr,t.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Ae.create(r,t.sourceSpan,n))}}_popContainer(t,r,n){let o=!1;for(let i=this._containerStack.length-1;i>=0;i--){let l=this._containerStack[i];if(Ti(l.name)?l.name===t:(null==t||l.name.toLowerCase()===t.toLowerCase())&&l instanceof r)return l.endSourceSpan=n,l.sourceSpan.end=null!==n?n.end:l.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!o;(l instanceof bn||l instanceof tr&&!this.getTagDefinition(l.name).closedByParent)&&(o=!0)}return!1}_consumeAttr(t){let o,r=Pi(t.parts[0],t.parts[1]),n=t.sourceSpan.end;15===this._peek.type&&(o=this._advance());let u,c,i="",l=[];if(16===this._peek.type)for(u=this._peek.sourceSpan,c=this._peek.sourceSpan.end;16===this._peek.type||17===this._peek.type||9===this._peek.type;){let d=this._advance();l.push(d),17===d.type?i+=d.parts.join("").replace(/&([^;]+);/g,U5):9===d.type?i+=d.parts[0]:i+=d.parts.join(""),c=n=d.sourceSpan.end}15===this._peek.type&&(c=n=this._advance().sourceSpan.end);let p=u&&c&&new j(o?.sourceSpan.start??u.start,c,o?.sourceSpan.fullStart??u.fullStart);return new RS(r,i,new j(t.sourceSpan.start,n,t.sourceSpan.fullStart),t.sourceSpan,p,l.length>0?l:void 0,void 0)}_consumeBlockOpen(t){let r=[];for(;28===this._peek.type;){let u=this._advance();r.push(new $5(u.parts[0],u.sourceSpan))}26===this._peek.type&&this._advance();let n=this._peek.sourceSpan.fullStart,o=new j(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new j(t.sourceSpan.start,n,t.sourceSpan.fullStart),l=new bn(t.parts[0],r,[],o,t.sourceSpan,i);this._pushContainer(l,!1)}_consumeBlockClose(t){this._popContainer(null,bn,t.sourceSpan)||this.errors.push(Ae.create(null,t.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(t){let r=[];for(;28===this._peek.type;){let u=this._advance();r.push(new $5(u.parts[0],u.sourceSpan))}let n=this._peek.sourceSpan.fullStart,o=new j(t.sourceSpan.start,n,t.sourceSpan.fullStart),i=new j(t.sourceSpan.start,n,t.sourceSpan.fullStart),l=new bn(t.parts[0],r,[],o,t.sourceSpan,i);this._pushContainer(l,!1),this._popContainer(null,bn,null),this.errors.push(Ae.create(t.parts[0],o,`Incomplete block "${t.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(t){let n,o,r=t.parts[0];if(31!==this._peek.type)return void this.errors.push(Ae.create(t.parts[0],t.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));if(n=this._advance(),32!==this._peek.type)return void this.errors.push(Ae.create(t.parts[0],t.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));o=this._advance();let i=o.sourceSpan.fullStart,l=new j(t.sourceSpan.start,i,t.sourceSpan.fullStart),u=t.sourceSpan.toString().lastIndexOf(r),c=t.sourceSpan.start.moveBy(u),p=new j(c,t.sourceSpan.end),d=new z5(r,n.parts[0],l,p,n.sourceSpan);this._addToParent(d)}_consumeIncompleteLet(t){let r=t.parts[0]??"",n=r?` "${r}"`:"";if(r.length>0){let o=t.sourceSpan.toString().lastIndexOf(r),i=t.sourceSpan.start.moveBy(o),l=new j(i,t.sourceSpan.end),u=new j(t.sourceSpan.start,t.sourceSpan.start.moveBy(0)),c=new z5(r,"",t.sourceSpan,l,u);this._addToParent(c)}this.errors.push(Ae.create(t.parts[0],t.sourceSpan,`Incomplete @let declaration${n}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let t=this._containerStack.length-1;t>-1;t--)if(this._containerStack[t]instanceof tr)return this._containerStack[t];return null}_addToParent(t){let r=this._getContainer();null===r?this.rootNodes.push(t):r.children.push(t)}_getElementFullName(t,r,n){if(""===t&&(""===(t=this.getTagDefinition(r).implicitNamespacePrefix||"")&&null!=n)){let o=el(n.name)[1];this.getTagDefinition(o).preventNamespaceInheritance||(t=Ti(n.name))}return Pi(t,r)}},"t"),XS=kr,a(W5,"zs"),a(U5,"Gs"),a(Kn=class extends GS{constructor(){super(Qu)}parse(t,r,n,o=!1,i){return super.parse(t,r,n,o,i)}},"sr"),YS=Kn,Xu=null,KS=a((()=>(Xu||(Xu=new YS),Xu)),"Eo"),a(G5,"zr"),a(ZS,"Ao"),JS=ZS,ha=3,a(QS,"Do"),a(eR,"vo"),tR=eR,ki={attrs:!0,children:!0,cases:!0,expression:!0},X5=new Set(["parent"]),a(vt=class{constructor(t={}){for(let r of new Set([...X5,...Object.keys(t)]))this.setProperty(r,t[r])}setProperty(t,r){if(this[t]!==r){if(t in ki&&(r=r.map((n=>this.createChild(n)))),!X5.has(t))return void(this[t]=r);Object.defineProperty(this,t,{value:r,enumerable:!1,configurable:!0})}}map(t){let r;for(let n in ki){let o=this[n];if(o){let i=nR(o,(l=>l.map(t)));r!==o&&(r||(r=new vt({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in ki||(r[n]=this[n]);return t(r||this)}walk(t){for(let r in ki){let n=this[r];if(n)for(let o=0;o[t.fullName,t.value])))}},"t"),rR=vt,a(nR,"yo"),oR=[{regex:/^(\[if([^\]]*)\]>)(.*?)"html"!==e.toLowerCase()&&!r&&("template"!==e||n.some((({name:o,value:i})=>"lang"===o&&"html"!==i&&""!==i&&void 0!==i)))}),vR=tl({name:"lwc",canSelfClose:!1}),wR={html:uS},z2=Q5}));function _t(){}function IR(e,t,r,n,o){for(var l,i=[];t;)i.push(t),l=t.previousComponent,delete t.previousComponent,t=l;i.reverse();for(var u=0,c=i.length,p=0,d=0;um.length?y:m})),h.value=e.join(v)}else h.value=e.join(r.slice(p,p+h.count));p+=h.count,h.added||(d+=h.count)}}var b=i[c-1];return c>1&&"string"==typeof b.value&&(b.added||b.removed)&&e.equals("",b.value)&&(i[c-2].value+=b.value,i.pop()),i}function nl(e){return(nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?a((function(t){return typeof t}),"$e"):a((function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}),"$e"))(e)}function Fc(e,t,r,n,o){var i,l;for(t=t||[],r=r||[],n&&(e=n(o,e)),i=0;i=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"}function zc(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}}function xm(e,t){let r;switch(t){case"\n":r=/\n/gu;break;case"\r":r=/\r/gu;break;case"\r\n":r=/\r\n/gu;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`)}let n=e.match(r);return n?n.length:0}function $R(e){return pl(!1,e,/\r\n?/gu,"\n")}function zR(e){if("string"==typeof e)return Or;if(Array.isArray(e))return Mt;if(!e)return;let{type:t}=e;return Cm.has(t)?t:void 0}function NR(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', \nExpected it to be 'string' or 'object'.`;if(jr(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=OR([...Cm].map((o=>`'${o}'`)));return`Unexpected doc.type '${e.type}'.\nExpected it to be ${n}.`}function VR(e,t,r,n){let o=[e];for(;o.length>0;){let i=o.pop();if(i===V2){r(o.pop());continue}r&&o.push(i,V2);let l=jr(i);if(!l)throw new Do(i);if(!1!==t?.(i))switch(l){case Mt:case xt:{let u=l===Mt?i:i.parts;for(let p=u.length-1;p>=0;--p)o.push(u[p]);break}case Ne:o.push(i.flatContents,i.breakContents);break;case He:if(n&&i.expandedStates)for(let c=i.expandedStates.length-1;c>=0;--c)o.push(i.expandedStates[c]);else o.push(i.contents);break;case Ht:case Pt:case zt:case Ct:case Ot:o.push(i.contents);break;case Or:case Nr:case $t:case Nt:case De:case Ke:break;default:throw new Do(i)}}}function ll(e){return Dt(e),{type:Pt,contents:e}}function xo(e,t){return Dt(t),{type:Ht,contents:t,n:e}}function Sm(e,t={}){return Dt(e),Nc(t.expandedStates,!0),{type:He,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function qR(e){return xo(Number.NEGATIVE_INFINITY,e)}function WR(e){return xo({type:"root"},e)}function UR(e){return xo(-1,e)}function GR(e,t){return Sm(e[0],{...t,expandedStates:e})}function Rm(e){return Nc(e),{type:xt,parts:e}}function XR(e,t="",r={}){return Dt(e),""!==t&&Dt(t),{type:Ne,breakContents:e,flatContents:t,groupId:r.groupId}}function YR(e,t){return Dt(e),{type:zt,contents:e,groupId:t.groupId,negate:t.negate}}function kc(e){return Dt(e),{type:Ot,contents:e}}function Tm(e,t){Dt(e),Nc(t);let r=[];for(let n=0;n0){for(let o=0;o0?`, { ${d.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${h})`}if(i.type===He){let d=[];i.break&&"propagated"!==i.break&&d.push("shouldBreak: true"),i.id&&d.push(`id: ${o(i.id)}`);let h=d.length>0?`, { ${d.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map((f=>n(f))).join(",")}]${h})`:`group(${n(i.contents)}${h})`}if(i.type===xt)return`fill([${i.parts.map((d=>n(d))).join(", ")}])`;if(i.type===Ot)return"lineSuffix("+n(i.contents)+")";if(i.type===Nt)return"lineSuffixBoundary";if(i.type===Ct)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;throw new Error("Unknown doc type "+i.type)}(Bt(e));function o(i){if("symbol"!=typeof i)return JSON.stringify(String(i));if(i in t)return t[i];let l=i.description||"symbol";for(let u=0;;u++){let c=l+(u>0?` #${u}`:"");if(!r.has(c))return r.add(c),t[i]=`Symbol.for(${JSON.stringify(c)})`}}}function nA(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}function oA(e){return e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9800&&e<=9811||9855===e||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12771||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||94192===e||94193===e||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101632&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129672||e>=129680&&e<=129725||e>=129727&&e<=129733||e>=129742&&e<=129755||e>=129760&&e<=129768||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function lA(e){if(!e)return 0;if(!iA.test(e))return e.length;e=e.replace(rA()," ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||(t+=aA(n)?1:2)}return t}function fl(e,t){if("string"==typeof e)return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let l=function o(i){switch(jr(i)){case Mt:return t(i.map(n));case xt:return t({...i,parts:i.parts.map(n)});case Ne:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case He:{let{expandedStates:l,contents:u}=i;return l?(l=l.map(n),u=l[0]):u=n(u),t({...i,contents:u,expandedStates:l})}case Ht:case Pt:case zt:case Ct:case Ot:return t({...i,contents:n(i.contents)});case Or:case Nr:case $t:case Nt:case De:case Ke:return t(i);default:throw new Do(i)}}(i);return r.set(i,l),l}}function qc(e,t,r){let n=r,o=!1;function i(l){if(o)return!1;let u=t(l);void 0!==u&&(o=!0,n=u)}return a(i,"u"),Oc(e,i),n}function sA(e){if(e.type===He&&e.break||e.type===De&&e.hard||e.type===Ke)return!0}function uA(e){return qc(e,sA,!1)}function q2(e){if(e.length>0){let t=he(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function cA(e){let t=new Set,r=[];function n(i){if(i.type===Ke&&q2(r),i.type===He){if(r.push(i),t.has(i))return!1;t.add(i)}}function o(i){i.type===He&&r.pop().break&&q2(r)}a(n,"n"),a(o,"o"),Oc(e,n,o,!0)}function pA(e){return e.type!==De||e.hard?e.type===Ne?e.flatContents:e:e.soft?"":" "}function dA(e){return fl(e,pA)}function W2(e){for(e=[...e];e.length>=2&&he(!1,e,-2).type===De&&he(!1,e,-1).type===Ke;)e.length-=2;if(e.length>0){let t=Aa(he(!1,e,-1));e[e.length-1]=t}return e}function Aa(e){switch(jr(e)){case Pt:case zt:case He:case Ot:case Ct:{let t=Aa(e.contents);return{...e,contents:t}}case Ne:return{...e,breakContents:Aa(e.breakContents),flatContents:Aa(e.flatContents)};case xt:return{...e,parts:W2(e.parts)};case Mt:return W2(e);case Or:return e.replace(/[\n\r]*$/u,"");case Ht:case Nr:case $t:case Nt:case De:case Ke:break;default:throw new Do(e)}return e}function Im(e){return Aa(hA(e))}function fA(e){switch(jr(e)){case xt:if(e.parts.every((t=>""===t)))return"";break;case He:if(!(e.contents||e.id||e.break||e.expandedStates))return"";if(e.contents.type===He&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Ht:case Pt:case zt:case Ot:if(!e.contents)return"";break;case Ne:if(!e.flatContents&&!e.breakContents)return"";break;case Mt:{let t=[];for(let r of e){if(!r)continue;let[n,...o]=Array.isArray(r)?r:[r];"string"==typeof n&&"string"==typeof he(!1,t,-1)?t[t.length-1]+=n:t.push(n),t.push(...o)}return 0===t.length?"":1===t.length?t[0]:t}case Or:case Nr:case $t:case Nt:case De:case Ct:case Ke:break;default:throw new Do(e)}return e}function hA(e){return fl(e,(t=>fA(t)))}function mA(e,t=km){return fl(e,(r=>"string"==typeof r?Tm(t,r.split("\n")):r))}function gA(e){if(e.type===De)return!0}function vA(e){return qc(e,gA,!1)}function Bm(e,t){return e.type===Ct?{...e,contents:t(e.contents)}:t(e)}function Mm(){return{value:"",length:0,queue:[]}}function wA(e,t){return Lc(e,{type:"indent"},t)}function bA(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?Lc(e,{type:"dedent"},r):t?"root"===t.type?{...e,root:e}:Lc(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},r):e}function Lc(e,t,r){let n="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],o="",i=0,l=0,u=0;for(let b of n)switch(b.type){case"indent":d(),r.useTabs?c(1):p(r.tabWidth);break;case"stringAlign":d(),o+=b.n,i+=b.n.length;break;case"numberAlign":l+=1,u+=b.n;break;default:throw new Error(`Unexpected type '${b.type}'`)}return f(),{...e,value:o,length:i,queue:n};function c(b){o+="\t".repeat(b),i+=r.tabWidth*b}function p(b){o+=" ".repeat(b),i+=b}function d(){r.useTabs?function h(){l>0&&c(l),v()}():f()}function f(){u>0&&p(u),v()}function v(){l=0,u=0}}function Ic(e){let t=0,r=0,n=e.length;e:for(;n--;){let o=e[n];if(o!==Fa)for(let i=o.length-1;i>=0;i--){let l=o[i];if(" "!==l&&"\t"!==l){e[n]=o.slice(0,i+1);break e}t++}else r++}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Fa);return t}function rl(e,t,r,n,o,i){if(r===Number.POSITIVE_INFINITY)return!0;let l=t.length,u=[e],c=[];for(;r>=0;){if(0===u.length){if(0===l)return!0;u.push(t[--l]);continue}let{mode:p,doc:d}=u.pop(),h=jr(d);switch(h){case Or:c.push(d),r-=Vc(d);break;case Mt:case xt:{let f=h===Mt?d:d.parts;for(let v=f.length-1;v>=0;v--)u.push({mode:p,doc:f[v]});break}case Pt:case Ht:case zt:case Ct:u.push({mode:p,doc:d.contents});break;case $t:r+=Ic(c);break;case He:{if(i&&d.break)return!1;let f=d.break?Pe:p,v=d.expandedStates&&f===Pe?he(!1,d.expandedStates,-1):d.contents;u.push({mode:f,doc:v});break}case Ne:{let f=(d.groupId?o[d.groupId]||yt:p)===Pe?d.breakContents:d.flatContents;f&&u.push({mode:p,doc:f});break}case De:if(p===Pe||d.hard)return!0;d.soft||(c.push(" "),r--);break;case Ot:n=!0;break;case Nt:if(n)return!1}}return!1}function hl(e,t){let r={},n=t.printWidth,o=zc(t.endOfLine),i=0,l=[{ind:{value:"",length:0,queue:[]},mode:Pe,doc:e}],u=[],c=!1,p=[],d=0;for(cA(e);l.length>0;){let{ind:f,mode:v,doc:b}=l.pop();switch(jr(b)){case Or:{let m="\n"!==o?pl(!1,b,"\n",o):b;u.push(m),l.length>0&&(i+=Vc(m));break}case Mt:for(let m=b.length-1;m>=0;m--)l.push({ind:f,mode:v,doc:b[m]});break;case Nr:if(d>=2)throw new Error("There are too many 'cursor' in doc.");u.push(Fa),d++;break;case Pt:l.push({ind:wA(f,t),mode:v,doc:b.contents});break;case Ht:l.push({ind:bA(f,b.n,t),mode:v,doc:b.contents});break;case $t:i-=Ic(u);break;case He:switch(v){case yt:if(!c){l.push({ind:f,mode:b.break?Pe:yt,doc:b.contents});break}case Pe:{c=!1;let m={ind:f,mode:yt,doc:b.contents},g=n-i,y=p.length>0;if(!b.break&&rl(m,l,g,y,r))l.push(m);else if(b.expandedStates){let w=he(!1,b.expandedStates,-1);if(b.break){l.push({ind:f,mode:Pe,doc:w});break}for(let D=1;D=b.expandedStates.length){l.push({ind:f,mode:Pe,doc:w});break}{let x=b.expandedStates[D],C={ind:f,mode:yt,doc:x};if(rl(C,l,g,y,r)){l.push(C);break}}}}else l.push({ind:f,mode:Pe,doc:b.contents});break}}b.id&&(r[b.id]=he(!1,l,-1).mode);break;case xt:{let m=n-i,{parts:g}=b;if(0===g.length)break;let[y,w]=g,D={ind:f,mode:yt,doc:y},x={ind:f,mode:Pe,doc:y},C=rl(D,[],m,p.length>0,r,!0);if(1===g.length){C?l.push(D):l.push(x);break}let E={ind:f,mode:yt,doc:w},S={ind:f,mode:Pe,doc:w};if(2===g.length){C?l.push(E,D):l.push(S,x);break}g.splice(0,2);let R={ind:f,mode:v,doc:Rm(g)},A=g[0];rl({ind:f,mode:yt,doc:[y,w,A]},[],m,p.length>0,r,!0)?l.push(R,E,D):C?l.push(R,S,D):l.push(R,S,x);break}case Ne:case zt:{let m=b.groupId?r[b.groupId]:v;if(m===Pe){let g=b.type===Ne?b.breakContents:b.negate?b.contents:ll(b.contents);g&&l.push({ind:f,mode:v,doc:g})}if(m===yt){let g=b.type===Ne?b.flatContents:b.negate?ll(b.contents):b.contents;g&&l.push({ind:f,mode:v,doc:g})}break}case Ot:p.push({ind:f,mode:v,doc:b.contents});break;case Nt:p.length>0&&l.push({ind:f,mode:v,doc:jc});break;case De:switch(v){case yt:if(!b.hard){b.soft||(u.push(" "),i+=1);break}c=!0;case Pe:if(p.length>0){l.push({ind:f,mode:v,doc:b},...p.reverse()),p.length=0;break}b.literal?f.root?(u.push(o,f.root.value),i=f.root.length):(u.push(o),i=0):(i-=Ic(u),u.push(o+f.value),i=f.length)}break;case Ct:l.push({ind:f,mode:v,doc:b.contents});break;case Ke:break;default:throw new Do(b)}0===l.length&&p.length>0&&(l.push(...p.reverse()),p.length=0)}let h=u.indexOf(Fa);if(-1!==h){let f=u.indexOf(Fa,h+1),v=u.slice(0,h).join(""),b=u.slice(h+1,f).join("");return{formatted:v+b+u.slice(f+1).join(""),cursorNodeStart:v.length,cursorNodeText:b}}return{formatted:u.join("")}}function yA(e,t,r=0){let n=0;for(let o=r;o!0),"n")}=t,o=a((i=>EA(i)&&n(i)),"o");for(let i of r(e)){let l=e[i];if(Array.isArray(l))for(let u of l)o(u)&&(yield u);else o(l)&&(yield l)}}function*SA(e,t){let r=[e];for(let n=0;n{let o=!(null==n||!n.backwards);if(!1===r)return!1;let{length:i}=t,l=r;for(;l>=0&&l0}function IA(e){return e?t=>e(t,zm):LA}function BA(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"…"),t+(r?" "+r:"")}function Uc(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=BA(e)}function ro(e,t){t.leading=!0,t.trailing=!1,Uc(e,t)}function Pr(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Uc(e,t)}function no(e,t){t.leading=!1,t.trailing=!0,Uc(e,t)}function Gc(e,t){if(xc.has(e))return xc.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:o},locStart:i,locEnd:l}=t;if(!n)return[];let u=(r?.(e,t)??[...Pm(e,{getVisitorKeys:ml(o)})]).flatMap((c=>n(c)?[c]:Gc(c,t)));return u.sort(((c,p)=>i(c)-i(p)||l(c)-l(p))),xc.set(e,u),u}function Om(e,t,r,n){let p,d,{locStart:o,locEnd:i}=r,l=o(t),u=i(t),c=Gc(e,r),h=0,f=c.length;for(;h>1,b=c[v],m=o(b),g=i(b);if(m<=l&&u<=g)return Om(b,t,r,b);if(g<=l)p=b,h=v+1;else{if(!(u<=m))throw new Error("Comment location overlaps with node location");d=b,f=v}}if("TemplateLiteral"===n?.type){let{quasis:v}=n,b=Ec(v,t,r);p&&Ec(v,p,r)!==b&&(p=null),d&&Ec(v,d,r)!==b&&(d=null)}return{enclosingNode:n,precedingNode:p,followingNode:d}}function MA(e,t){let{comments:r}=e;if(delete e.comments,!TA(r)||!t.printer.canAttachComment)return;let n=[],{locStart:o,locEnd:i,printer:{experimentalFeatures:{avoidAstMutation:l=!1}={},handleComments:u={}},originalText:c}=t,{ownLine:p=Cc,endOfLine:d=Cc,remaining:h=Cc}=u,f=r.map(((v,b)=>({...Om(e,v,t),comment:v,text:c,options:t,ast:e,isLastComment:r.length-1===b})));for(let[v,b]of f.entries()){let S,{comment:m,precedingNode:g,enclosingNode:y,followingNode:w,text:D,options:x,ast:C,isLastComment:E}=b;if("json"===x.parser||"json5"===x.parser||"jsonc"===x.parser||"__js_expression"===x.parser||"__ts_expression"===x.parser||"__vue_expression"===x.parser||"__vue_ts_expression"===x.parser){if(o(m)-o(C)<=0){ro(C,m);continue}if(i(m)-i(C)>=0){no(C,m);continue}}if(l?S=[b]:(m.enclosingNode=y,m.precedingNode=g,m.followingNode=w,S=[m,D,x,C,E]),_A(D,x,f,v))m.placement="ownLine",p(...S)||(w?ro(w,m):g?no(g,m):Pr(y||C,m));else if(PA(D,x,f,v))m.placement="endOfLine",d(...S)||(g?no(g,m):w?ro(w,m):Pr(y||C,m));else if(m.placement="remaining",!h(...S))if(g&&w){let R=n.length;R>0&&n[R-1].followingNode!==w&&U2(n,x),n.push(b)}else g?no(g,m):w?ro(w,m):Pr(y||C,m)}if(U2(n,t),!l)for(let v of r)delete v.precedingNode,delete v.enclosingNode,delete v.followingNode}function _A(e,t,r,n){let{comment:o,precedingNode:i}=r[n],{locStart:l,locEnd:u}=t,c=l(o);if(i)for(let p=n-1;p>=0;p--){let{comment:d,precedingNode:h}=r[p];if(h!==i||!Nm(e.slice(u(d),c)))break;c=l(d)}return ar(e,c,{backwards:!0})}function PA(e,t,r,n){let{comment:o,followingNode:i}=r[n],{locStart:l,locEnd:u}=t,c=u(o);if(i)for(let p=n+1;p0;--c){let{comment:p,precedingNode:d,followingNode:h}=e[c-1];Mc.strictEqual(d,i),Mc.strictEqual(h,l);let f=t.originalText.slice(t.locEnd(p),u);if(!((null==(n=(r=t.printer).isGap)?void 0:n.call(r,f,t))??/^[\s(]*$/u.test(f)))break;u=t.locStart(p)}for(let[p,{comment:d}]of e.entries())p1&&p.comments.sort(((d,h)=>t.locStart(d)-t.locStart(h)));e.length=0}function Ec(e,t,r){let n=r.locStart(t)-1;for(let o=1;o!n.has(u))).length)return{leading:"",trailing:""};let l,o=[],i=[];return e.each((()=>{let u=e.node;if(null!=n&&n.has(u))return;let{leading:c,trailing:p}=u;c?o.push($A(e,t)):p&&(l=zA(e,t,l),i.push(l.doc))}),"comments"),{leading:o,trailing:i}}function NA(e,t,r){let{leading:n,trailing:o}=OA(e,r);return n||o?Bm(t,(i=>[n,i,o])):t}function jA(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}function VA(e){return()=>{}}function qm({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap((o=>o.languages??[])),n=[];for(let o of GA(Object.assign({},...e.map((({options:i})=>i)),WA)))!t&&o.deprecated||(Array.isArray(o.choices)&&(t||(o.choices=o.choices.filter((i=>!i.deprecated))),"parser"===o.name&&(o.choices=[...o.choices,...UA(o.choices,r,e)])),o.pluginDefaults=Object.fromEntries(e.filter((i=>{var l;return void 0!==(null==(l=i.defaultOptions)?void 0:l[o.name])})).map((i=>[i.name,i.defaultOptions[o.name]]))),n.push(o));return{languages:r,options:n}}function*UA(e,t,r){let n=new Set(e.map((o=>o.value)));for(let o of t)if(o.parsers)for(let i of o.parsers)if(!n.has(i)){n.add(i);let l=r.find((c=>c.parsers&&Object.prototype.hasOwnProperty.call(c.parsers,i))),u=o.name;null!=l&&l.name&&(u+=` (plugin: ${l.name})`),yield{value:i,description:u}}}function GA(e){let t=[];for(let[r,n]of Object.entries(e)){let o={name:r,...n};Array.isArray(o.default)&&(o.default=he(!1,o.default,-1).value),t.push(o)}return t}function X2(e,t){if(!t)return;let r=XA(t).toLowerCase();return e.find((({filenames:n})=>n?.some((o=>o.toLowerCase()===r))))??e.find((({extensions:n})=>n?.some((o=>r.endsWith(o)))))}function YA(e,t){if(t)return e.find((({name:r})=>r.toLowerCase()===t))??e.find((({aliases:r})=>r?.includes(t)))??e.find((({extensions:r})=>r?.includes(`.${t}`)))}function KA(e,t){let r=e.plugins.flatMap((o=>o.languages??[])),n=YA(r,t.language)??X2(r,t.physicalFile)??X2(r,t.file)??void t.physicalFile;return n?.parsers[0]}function Z2(e,t,r,n){return[`Invalid ${ao.default.red(n.key(e))} value.`,`Expected ${ao.default.blue(r)},`,`but received ${t===Wm?ao.default.gray("nothing"):ao.default.red(n.value(t))}.`].join(" ")}function Um({text:e,list:t},r){let n=[];return e&&n.push(`- ${ao.default.blue(e)}`),t&&n.push([`- ${ao.default.blue(t.title)}:`].concat(t.values.map((o=>Um(o,r-K2.length).replace(/^|\n/g,`$&${K2}`)))).join("\n")),Gm(n,r)}function Gm(e,t){if(1===e.length)return e[0];let[r,n]=e,[o,i]=e.map((l=>l.split("\n",1)[0].length));return o>t&&o>i?n:r}function eF(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,o=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-o);)n--,o--;let i=0;for(;iu?p>u?u+1:p:p>c?c+1:p;return u}function rF(e,t){let r=new e(t),n=Object.create(r);for(let o of tF)o in t&&(n[o]=nF(t[o],r,lr.prototype[o].length));return n}function nF(e,t,r){return"function"==typeof e?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}function em({from:e,to:t}){return{from:[e],to:t}}function sF(e,t){let r=Object.create(null);for(let n of e){let o=n[t];if(r[o])throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r[o]=n}return r}function uF(e,t){let r=new Map;for(let n of e){let o=n[t];if(r.has(o))throw new Error(`Duplicate ${t} ${JSON.stringify(o)}`);r.set(o,n)}return r}function cF(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)}}function pF(e,t){let r=[],n=[];for(let o of e)t(o)?r.push(o):n.push(o);return[r,n]}function dF(e){return e===Math.floor(e)}function fF(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):"string"!==r?Number(e)-Number(t):e.localeCompare(t)}function hF(e){return(...t)=>{let r=e(...t);return"string"==typeof r?new Error(r):r}}function tm(e){return void 0===e?{}:e}function Ym(e){if("string"==typeof e)return{text:e};let{text:t,list:r}=e;return mF(void 0!==(t||r),"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(Ym)}}:{text:t}}function rm(e,t){return!0===e||(!1===e?{value:t}:e)}function nm(e,t,r=!1){return!1!==e&&(!0===e?!!r||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function om(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function _c(e,t){return void 0===e?[]:Array.isArray(e)?e.map((r=>om(r,t))):[om(e,t)]}function am(e,t){let r=_c("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===r.length?{remain:t,redirect:r}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function mF(e,t){if(!e)throw new Error(t)}function EF(e,t,{logger:r=!1,isCLI:n=!1,passThrough:o=!1,FlagSchema:i,descriptor:l}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!l)throw new Error("'descriptor' option is required.")}else l=oo;let u=o?Array.isArray(o)?(f,v)=>o.includes(f)?{[f]:v}:void 0:(f,v)=>({[f]:v}):(f,v,b)=>{let{_:m,...g}=b.schemas;return Xm(f,v,{...b,schemas:g})},c=SF(t,{isCLI:n,FlagSchema:i}),p=new CF(c,{logger:r,unknown:u,descriptor:l}),d=!1!==r;d&&Rc&&(p._hasDeprecationWarned=Rc);let h=p.normalize(e);return d&&(Rc=p._hasDeprecationWarned),h}function SF(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(aF.create({name:"_"}));for(let o of e)n.push(RF(o,{isCLI:t,optionInfos:e,FlagSchema:r})),o.alias&&t&&n.push(oF.create({name:o.alias,sourceName:o.name}));return n}function RF(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let l,{name:o}=e,i={name:o},u={};switch(e.type){case"int":l=wF,t&&(i.preprocess=Number);break;case"string":case"path":l=im;break;case"choice":l=gF,i.choices=e.choices.map((c=>null!=c&&c.redirect?{...c,redirect:{to:{key:e.name,value:c.redirect}}}:c));break;case"boolean":l=lF;break;case"flag":l=n,i.flags=r.flatMap((c=>[c.alias,c.description&&c.name,c.oppositeDescription&&`no-${c.name}`].filter(Boolean)));break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(c,p,d)=>e.exception(c)||p.validate(c,d):i.validate=(c,p,d)=>void 0===c||p.validate(c,d),e.redirect&&(u.redirect=c=>c?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(u.deprecated=!0),t&&!e.array){let c=i.preprocess||(p=>p);i.preprocess=(p,d,h)=>d.preprocess(c(Array.isArray(p)?he(!1,p,-1):p),h)}return e.array?iF.create({...t?{preprocess:a((c=>Array.isArray(c)?c:[c]),"preprocess")}:{},...u,valueSchema:l.create(i)}):l.create({...i,...u})}function Zm(e,t){if(!t)throw new Error("parserName is required.");let r=Km(!1,e,(o=>o.parsers&&Object.prototype.hasOwnProperty.call(o.parsers,t)));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Vm(n)}function kF(e,t){if(!t)throw new Error("astFormat is required.");let r=Km(!1,e,(o=>o.printers&&Object.prototype.hasOwnProperty.call(o.printers,t)));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new Vm(n)}function Jm({plugins:e,parser:t}){return Qm(Zm(e,t),t)}function Qm(e,t){let r=e.parsers[t];return"function"==typeof r?r():r}function TF(e,t){let r=e.printers[t];return"function"==typeof r?r():r}async function LF(e,t={}){var r;let n={...e};if(!n.parser){if(!n.filepath)throw new G2("No parser and no file path given, couldn't infer a parser.");if(n.parser=ZA(n,{physicalFile:n.filepath}),!n.parser)throw new G2(`No parser could be inferred for file "${n.filepath}".`)}let o=qm({plugins:e.plugins,showDeprecated:!0}).options,i={...lm,...Object.fromEntries(o.filter((f=>void 0!==f.default)).map((f=>[f.name,f.default])))},l=Zm(n.plugins,n.parser),u=await Qm(l,n.parser);n.astFormat=u.astFormat,n.locEnd=u.locEnd,n.locStart=u.locStart;let c=null!=(r=l.printers)&&r[u.astFormat]?l:kF(n.plugins,u.astFormat),p=await TF(c,u.astFormat);n.printer=p;let h={...i,...c.defaultOptions?Object.fromEntries(Object.entries(c.defaultOptions).filter((([,f])=>void 0!==f))):{}};for(let[f,v]of Object.entries(h))(null===n[f]||void 0===n[f])&&(n[f]=v);return"json"===n.parser&&(n.trailingComma="none"),AF(n,o,{passThrough:Object.keys(lm),...t})}async function BF(e,t){let o,r=await Jm(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;try{o=await r.parse(n,t,t)}catch(i){MF(i,e)}return{text:n,ast:o}}function MF(e,t){let{loc:r}=e;if(r){let n=(0,IF.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+="\n"+n,e.codeFrame=n,e}throw e}async function _F(e,t,r,n,o){let{embeddedLanguageFormatting:i,printer:{embed:l,hasPrettierIgnore:u=a((()=>!1),"s"),getVisitorKeys:c}}=r;if(!l||"auto"!==i)return;if(l.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let p=ml(l.getVisitorKeys??c),d=[];v();let h=e.stack;for(let{print:b,node:m,pathStack:g}of d)try{e.stack=g;let y=await b(f,t,e,r);y&&o.set(m,y)}catch(y){if(globalThis.PRETTIER_DEBUG)throw y}function f(b,m){return PF(b,m,r,n)}function v(){let{node:b}=e;if(null===b||"object"!=typeof b||u(e))return;for(let g of p(b))Array.isArray(b[g])?e.each(v,g):e.call(v,g);let m=l(e,r);if(m){if("function"==typeof m)return void d.push({print:m,node:b,pathStack:[...e.stack]});o.set(b,m)}}e.stack=h,a(f,"f"),a(v,"p")}async function PF(e,t,r,n){let o=await Co({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:i}=await La(e,o);return Im(await n(i,o))}function HF(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:o,locEnd:i,[Symbol.for("printedComments")]:l}=t,{node:u}=e,c=o(u),p=i(u);for(let d of n)o(d)>=c&&i(d)<=p&&l.add(d);return r.slice(c,p)}async function gl(e,t){({ast:e}=await eg(e,t));let r=new Map,n=new xA(e),o=qA(t),i=new Map;await _F(n,u,t,gl,i);let l=await sm(n,t,u,void 0,i);return jA(t),l;function u(p,d){return void 0===p||p===n?c(d):Array.isArray(p)?n.call((()=>c(d)),...p):n.call((()=>c(d)),p)}function c(p){o(n);let d=n.node;if(null==d)return"";let h=d&&"object"==typeof d&&void 0===p;if(h&&r.has(d))return r.get(d);let f=sm(n,t,u,p,i);return h&&r.set(d,f),f}}function sm(e,t,r,n,o){var i;let c,{node:l}=e,{printer:u}=t;return c=null!=(i=u.hasPrettierIgnore)&&i.call(u,e)?$F(e,t):o.has(l)?o.get(l):u.print(e,t,r,n),l===t.cursorNode&&(c=Bm(c,(p=>[Tc,p,Tc]))),u.printComment&&(!u.willPrintOwnComments||!u.willPrintOwnComments(e,t))&&(c=NA(e,c,t)),c}async function eg(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,MA(e,t);let{printer:{preprocess:n}}=t;return{ast:e=n?await n(e,t):e,comments:r}}function zF(e,t){let{cursorOffset:r,locStart:n,locEnd:o}=t,i=ml(t.printer.getVisitorKeys),l=a((c=>n(c)<=r&&o(c)>=r),"i"),u=e;for(let c of SA(e,{getVisitorKeys:i,filter:l}))u=c;return u}function NF(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let o=ml(n),i=r.ignoredProperties??new Set;return function l(u,c){if(null===u||"object"!=typeof u)return u;if(Array.isArray(u))return u.map((f=>l(f,c))).filter(Boolean);let p={},d=new Set(o(u));for(let f in u)!Object.prototype.hasOwnProperty.call(u,f)||i.has(f)||(d.has(f)?p[f]=l(u[f],u):p[f]=u[f]);let h=r(u,p,c);if(null!==h)return h??p}(e)}function UF(e,t){let r=[e.node,...e.parentNodes],n=new Set([t.node,...t.parentNodes]);return r.find((o=>tg.has(o.type)&&n.has(o)))}function um(e){let t=qF(!1,e,(r=>"Program"!==r.type&&"File"!==r.type));return-1===t?e:e.slice(0,t+1)}function GF(e,t,{locStart:r,locEnd:n}){let o=e.node,i=t.node;if(o===i)return{startNode:o,endNode:i};let l=r(e.node);for(let c of um(t.parentNodes)){if(!(r(c)>=l))break;i=c}let u=n(t.node);for(let c of um(e.parentNodes)){if(!(n(c)<=u))break;if(o=c,o===i)break}return{startNode:o,endNode:i}}function Pc(e,t,r,n,o=[],i){let{locStart:l,locEnd:u}=r,c=l(e),p=u(e);if(!(t>p||tn);let u=e.slice(n,o).search(/\S/u),c=-1===u;if(!c)for(n+=u;o>n&&!/\S/u.test(e[o-1]);--o);let h,f,p=Pc(r,n,t,((v,b)=>cm(t,v,b)),[],"rangeStart"),d=c?p:Pc(r,o,t,(v=>cm(t,v)),[],"rangeEnd");if(!p||!d)return{rangeStart:0,rangeEnd:0};if(WF(t)){let v=UF(p,d);h=v,f=v}else({startNode:h,endNode:f}=GF(p,d,t));return{rangeStart:Math.min(i(h),i(f)),rangeEnd:Math.max(l(h),l(f))}}async function ng(e,t,r=0){if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:o}=await La(e,t);t.cursorOffset>=0&&(t.cursorNode=OF(n,t));let i=await gl(n,t);r>0&&(i=Lm([$r,i],r,t.tabWidth));let l=hl(i,t);if(r>0){let c=l.formatted.trim();void 0!==l.cursorNodeStart&&(l.cursorNodeStart-=l.formatted.indexOf(c)),l.formatted=c+zc(t.endOfLine)}let u=t[Symbol.for("comments")];if(t.cursorOffset>=0){let c,p,d,h,f;if(t.cursorNode&&l.cursorNodeText?(c=t.locStart(t.cursorNode),p=o.slice(c,t.locEnd(t.cursorNode)),d=t.cursorOffset-c,h=l.cursorNodeStart,f=l.cursorNodeText):(c=0,p=o,d=t.cursorOffset,h=0,f=l.formatted),p===f)return{formatted:l.formatted,cursorOffset:h+d,comments:u};let v=p.split("");v.splice(d,0,pm);let m=PR(v,f.split("")),g=h;for(let y of m)if(y.removed){if(y.value.includes(pm))break}else g+=y.count;return{formatted:l.formatted,cursorOffset:g,comments:u}}return{formatted:l.formatted,cursorOffset:-1,comments:u}}async function ZF(e,t){let{ast:r,text:n}=await La(e,t),{rangeStart:o,rangeEnd:i}=KF(n,t,r),l=n.slice(o,i),u=Math.min(o,n.lastIndexOf("\n",o)+1),c=n.slice(u,o).match(/^\s*/u)[0],p=Wc(c,t.tabWidth),d=await ng(l,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>o&&t.cursorOffset<=i?t.cursorOffset-o:-1,endOfLine:"lf"},p),h=d.formatted.trimEnd(),{cursorOffset:f}=t;f>i?f+=h.length-l.length:d.cursorOffset>=0&&(f=d.cursorOffset+o);let v=n.slice(0,o)+h+n.slice(i);if("lf"!==t.endOfLine){let b=zc(t.endOfLine);f>=0&&"\r\n"===b&&(f+=xm(v.slice(0,f),"\n")),v=pl(!1,v,"\n",b)}return{formatted:v,cursorOffset:f,comments:d.comments}}function Ac(e,t,r){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?r:t}function dm(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=t;return r=Ac(e,r,-1),n=Ac(e,n,0),o=Ac(e,o,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:o}}function og(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:i}=dm(e,t),l=e.charAt(0)===rg;if(l&&(e=e.slice(1),r--,n--,o--),"auto"===i&&(i=HR(e)),e.includes("\r")){let u=a((c=>xm(e.slice(0,Math.max(c,0)),"\r\n")),"s");r-=u(r),n-=u(n),o-=u(o),e=$R(e)}return{hasBOM:l,text:e,options:dm(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:o,endOfLine:i})}}async function fm(e,t){let r=await Jm(t);return!r.hasPragma||r.hasPragma(e)}async function ag(e,t){let i,{hasBOM:r,text:n,options:o}=og(e,await Co(t));return o.rangeStart>=o.rangeEnd&&""!==n||o.requirePragma&&!await fm(n,o)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(o.rangeStart>0||o.rangeEnd=0&&i.cursorOffset++),i)}async function JF(e,t,r){let{text:n,options:o}=og(e,await Co(t)),i=await La(n,o);return r&&(r.preprocessForPrint&&(i.ast=await eg(i.ast,o)),r.massage&&(i.ast=jF(i.ast,o))),i}async function QF(e,t){return t=await Co(t),hl(await gl(e,t),t)}async function ek(e,t){let r=eA(e),{formatted:n}=await ag(r,{...t,parser:"__js_expression"});return n}async function tk(e,t){t=await Co(t);let{ast:r}=await La(e,t);return gl(r,t)}async function rk(e,t){return hl(e,await Co(t))}function lk(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1))for(let r=t+2;rMath.max(n,o.length/t.length)),0)}function gk(e,t){let r=Zc(e,t);return!1===r?"":e.charAt(r)}function wk(e,t,r){for(let n=t;nl===n?l:u===t?"\\"+u:u||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(l)?l:"\\"+l)));return t+o+t}function Ek(e,t,r){return Zc(e,r(t))}function Sk(e,t){return 2===arguments.length||"number"==typeof t?Zc(e,t):Ek(...arguments)}function Rk(e,t,r){return Xc(e,r(t))}function Ak(e,t){return 2===arguments.length||"number"==typeof t?Xc(e,t):Rk(...arguments)}function Fk(e,t,r){return Jc(e,r(t))}function kk(e,t){return 2===arguments.length||"number"==typeof t?Jc(e,t):Fk(...arguments)}function Hr(e,t=1){return async(...r)=>{let n=r[t]??{},o=n.plugins??[];return r[t]={...n,plugins:Array.isArray(o)?o:Object.values(o)},e(...r)}}async function ug(e,t){let{formatted:r}=await sg(e,{...t,cursorOffset:-1});return r}async function Tk(e,t){return await ug(e,t)===e}var bR,sl,yR,DR,xR,CR,hm,ER,Hc,ul,mm,cl,SR,RR,AR,Ra,$c,gm,vm,wm,FR,kR,TR,bm,pl,N2,j2,ym,Dm,_R,ka,il,Or,Mt,Nr,Pt,Ht,$t,He,xt,Ne,zt,Ot,Nt,De,Ct,Ke,Cm,jr,OR,io,Do,V2,Oc,Em,Dt,Nc,KR,dl,ZR,jc,Am,Fm,JR,$r,km,Tc,he,rA,aA,iA,Vc,Pe,yt,Fa,Wc,_r,Bc,ol,lo,DA,xA,_m,Mc,EA,RA,ir,Hm,$m,zr,ar,TA,zm,LA,ml,xc,Cc,Nm,Xc,qA,so,Vm,uo,G2,WA,XA,ZA,oo,Y2,JA,ao,Wm,al,K2,QA,J2,Sc,Q2,Xm,tF,co,lr,po,oF,fo,aF,ho,iF,mo,lF,go,gF,vo,vF,wo,wF,bo,im,bF,yF,DF,xF,yo,CF,Rc,AF,Km,lm,Co,IF,La,$F,OF,jF,qF,WF,tg,YF,rg,pm,ig,nk,ok,ak,ik,lg,Yc,Kc,Zc,Jc,dk,mk,vk,bk,Dk,Ck,sg,Lk,Ik,cg,pg=F((()=>{bR=Object.create,sl=Object.defineProperty,yR=Object.getOwnPropertyDescriptor,DR=Object.getOwnPropertyNames,xR=Object.getPrototypeOf,CR=Object.prototype.hasOwnProperty,hm=a((e=>{throw TypeError(e)}),"sr"),ER=a(((e,t)=>()=>(e&&(t=e(e=0)),t)),"_u"),Hc=a(((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports)),"At"),ul=a(((e,t)=>{for(var r in t)sl(e,r,{get:t[r],enumerable:!0})}),"We"),mm=a(((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of DR(t))!CR.call(e,o)&&o!==r&&sl(e,o,{get:a((()=>t[o]),"get"),enumerable:!(n=yR(t,o))||n.enumerable});return e}),"ar"),cl=a(((e,t,r)=>(r=null!=e?bR(xR(e)):{},mm(!t&&e&&e.__esModule?r:sl(r,"default",{value:e,enumerable:!0}),e))),"Me"),SR=a((e=>mm(sl({},"__esModule",{value:!0}),e)),"vu"),RR=a(((e,t,r)=>t.has(e)||hm("Cannot "+r)),"bu"),AR=a(((e,t,r)=>t.has(e)?hm("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r)),"Dr"),Ra=a(((e,t,r)=>(RR(e,t,"access private method"),r)),"pe"),$c=Hc(((e,t)=>{var r=new Proxy(String,{get:a((()=>r),"get")});t.exports=r})),ul(gm={},{default:a((()=>wm),"default"),shouldHighlight:a((()=>vm),"shouldHighlight")}),FR=ER((()=>{vm=a((()=>!1),"xo"),wm=String})),kR=Hc(((e,t)=>{var r=String,n=a((function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r}}),"Ln");t.exports=n(),t.exports.createColors=n})),TR=Hc((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=v,e.default=b;var t=(FR(),SR(gm)),r=o(kR(),!0);function n(m){if("function"!=typeof WeakMap)return null;var g=new WeakMap,y=new WeakMap;return(n=a((function(w){return w?y:g}),"Wn"))(m)}function o(m,g){if(!g&&m&&m.__esModule)return m;if(null===m||"object"!=typeof m&&"function"!=typeof m)return{default:m};var y=n(g);if(y&&y.has(m))return y.get(m);var w={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in m)if("default"!==x&&{}.hasOwnProperty.call(m,x)){var C=D?Object.getOwnPropertyDescriptor(m,x):null;C&&(C.get||C.set)?Object.defineProperty(w,x,C):w[x]=m[x]}return w.default=m,y&&y.set(m,w),w}a(n,"Wn"),a(o,"vo");var u,i=r.default,l=a(((m,g)=>y=>m(g(y))),"Rn");function c(m){return m?(null!=u||(u=(0,r.createColors)(!0)),u):i}a(c,"Oo");var p=!1;function d(m){return{gutter:m.gray,marker:l(m.red,m.bold),message:l(m.red,m.bold)}}a(d,"So");var h=/\r\n|[\n\r\u2028\u2029]/;function f(m,g,y){let w=Object.assign({column:0,line:-1},m.start),D=Object.assign({},w,m.end),{linesAbove:x=2,linesBelow:C=3}=y||{},E=w.line,S=w.column,R=D.line,A=D.column,k=Math.max(E-(x+1),0),B=Math.min(g.length,R+C);-1===E&&(k=0),-1===R&&(B=g.length);let $=R-E,M={};if($)for(let W=0;W<=$;W++){let T=W+E;if(S)if(0===W){let L=g[T-1].length;M[T]=[S,L-S+1]}else if(W===$)M[T]=[0,A];else{let L=g[T-W].length;M[T]=[0,L]}else M[T]=!0}else M[E]=S===A?!S||[S,0]:[S,A-S];return{start:k,end:B,markerLines:M}}function v(m,g,y={}){let w=(y.highlightCode||y.forceColor)&&(0,t.shouldHighlight)(y),D=c(y.forceColor),x=d(D),C=a(((M,W)=>w?M(W):W),"i"),E=m.split(h),{start:S,end:R,markerLines:A}=f(g,E,y),k=g.start&&"number"==typeof g.start.column,B=String(R).length,$=(w?(0,t.default)(m,y):m).split(h,R).slice(S,R).map(((M,W)=>{let T=S+1+W,L=` ${` ${T}`.slice(-B)} |`,P=A[T],U=!A[T+1];if(P){let N="";if(Array.isArray(P)){let G=M.slice(0,Math.max(P[0]-1,0)).replace(/[^\t]/g," "),z=P[1]||1;N=["\n ",C(x.gutter,L.replace(/\d/g," "))," ",G,C(x.marker,"^").repeat(z)].join(""),U&&y.message&&(N+=" "+C(x.message,y.message))}return[C(x.marker,">"),C(x.gutter,L),M.length>0?` ${M}`:"",N].join("")}return` ${C(x.gutter,L)}${M.length>0?` ${M}`:""}`})).join("\n");return y.message&&!k&&($=`${" ".repeat(B+1)}${y.message}\n${$}`),w?D.reset($):$}function b(m,g,y,w={}){if(!p){p=!0;let D="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";new Error(D).name="DeprecationWarning",console.warn(new Error(D))}return v(m,{start:{column:y=Math.max(y,0),line:g}},w)}a(f,"No"),a(v,"Mn"),a(b,"To")})),ul(bm={},{__debug:a((()=>Ik),"__debug"),check:a((()=>Tk),"check"),doc:a((()=>ig),"doc"),format:a((()=>ug),"format"),formatWithCursor:a((()=>sg),"formatWithCursor"),getSupportInfo:a((()=>Lk),"getSupportInfo"),util:a((()=>lg),"util"),version:a((()=>ik),"version")}),pl=a(((e,t,r,n)=>{if(!e||null!=t)return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)}),"Ou"),a(_t,"Z"),_t.prototype={diff:a((function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var i=this;function l(D){return o?(setTimeout((function(){o(void 0,D)}),0),!0):D}a(l,"s"),e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var u=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,p=1,d=u+c;n.maxEditLength&&(d=Math.min(d,n.maxEditLength));var h=null!==(r=n.timeout)&&void 0!==r?r:1/0,f=Date.now()+h,v=[{oldPos:-1,lastComponent:void 0}],b=this.extractCommon(v[0],t,e,0);if(v[0].oldPos+1>=c&&b+1>=u)return l([{value:this.join(t),count:t.length}]);var m=-1/0,g=1/0;function y(){for(var D=Math.max(m,-p);D<=Math.min(g,p);D+=2){var x=void 0,C=v[D-1],E=v[D+1];C&&(v[D-1]=void 0);var S=!1;if(E){var R=E.oldPos-D;S=E&&0<=R&&R=c&&b+1>=u)return l(IR(i,x.lastComponent,t,e,i.useLongestToken));v[D]=x,x.oldPos+1>=c&&(g=Math.min(g,D-1)),b+1>=u&&(m=Math.max(m,D+1))}else v[D]=void 0}p++}if(a(y,"A"),o)a((function D(){setTimeout((function(){if(p>d||Date.now()>f)return o();y()||D()}),0)}),"h")();else for(;p<=d&&Date.now()<=f;){var w=y();if(w)return w}}),"diff"),addToPath:a((function(e,t,r,n){var o=e.lastComponent;return o&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}}),"addToPath"),extractCommon:a((function(e,t,r,n){for(var o=t.length,i=r.length,l=e.oldPos,u=l-n,c=0;u+1"u"?r:l}:n;return"string"==typeof e?e:JSON.stringify(Fc(e,null,null,o),o," ")},ka.equals=function(e,t){return _t.prototype.equals.call(ka,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))},a(Fc,"Bt"),(il=new _t).tokenize=function(e){return e.slice()},il.join=il.removeEmpty=function(e){return e},a(PR,"dr"),a(HR,"Fr"),a(zc,"Be"),a(xm,"wt"),a($R,"mr"),Or="string",Mt="array",Nr="cursor",Pt="indent",Ht="align",$t="trim",He="group",xt="fill",Ne="if-break",zt="indent-if-break",Ot="line-suffix",Nt="line-suffix-boundary",De="line",Ct="label",Ke="break-parent",Cm=new Set([Nr,Pt,Ht,$t,He,xt,Ne,zt,Ot,Nt,De,Ct,Ke]),a(zR,"Lu"),jr=zR,OR=a((e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e)),"Pu"),a(NR,"Iu"),io=class extends Error{name="InvalidDocError";constructor(t){super(NR(t)),this.doc=t}},a(io,"xt"),Do=io,V2={},a(VR,"Ru"),Oc=VR,Dt=Em=a((()=>{}),"hr"),Nc=Em,a(ll,"De"),a(xo,"ae"),a(Sm,"_t"),a(qR,"Cr"),a(WR,"gr"),a(UR,"yr"),a(GR,"Ar"),a(Rm,"Ge"),a(XR,"Br"),a(YR,"wr"),a(kc,"xe"),KR={type:Nt},ZR={type:$t},Fm={type:De},JR={type:De,soft:!0},$r=[jc={type:De,hard:!0},dl={type:Ke}],km=[Am={type:De,hard:!0,literal:!0},dl],Tc={type:Nr},a(Tm,"be"),a(Lm,"Je"),a(QR,"br"),a(Bt,"ee"),a(eA,"Or"),he=a(((e,t,r)=>{if(!e||null!=t)return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)}),"Yu"),rA=a((()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g),"Sr"),a(nA,"Nr"),a(oA,"Tr"),aA=a((e=>!(nA(e)||oA(e))),"kr"),iA=/[^\x20-\x7F]/u,a(lA,"Hu"),Vc=lA,a(fl,"Ne"),a(qc,"Xe"),a(sA,"Wu"),a(uA,"Ir"),a(q2,"Lr"),a(cA,"Rr"),a(pA,"Mu"),a(dA,"Yr"),a(W2,"Pr"),a(Aa,"Se"),a(Im,"Ze"),a(fA,"$u"),a(hA,"Vu"),a(mA,"jr"),a(gA,"Uu"),a(vA,"Hr"),a(Bm,"Qe"),Pe=Symbol("MODE_BREAK"),yt=Symbol("MODE_FLAT"),Fa=Symbol("cursor"),a(Mm,"Wr"),a(wA,"zu"),a(bA,"Gu"),a(Lc,"bt"),a(Ic,"Ot"),a(rl,"et"),a(hl,"Fe"),a(yA,"Ku"),Wc=yA,a(lo=class{constructor(t){AR(this,_r),this.stack=[t]}get key(){let{stack:t,siblings:r}=this;return he(!1,t,null===r?-2:-4)??null}get index(){return null===this.siblings?null:he(!1,this.stack,-2)}get node(){return he(!1,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return null!==this.siblings}get siblings(){let{stack:t}=this,r=he(!1,t,-3);return Array.isArray(r)?r:null}get next(){let{siblings:t}=this;return null===t?null:t[this.index+1]}get previous(){let{siblings:t}=this;return null===t?null:t[this.index-1]}get isFirst(){return 0===this.index}get isLast(){let{siblings:t,index:r}=this;return null!==t&&r===t.length-1}get isRoot(){return 1===this.stack.length}get root(){return this.stack[0]}get ancestors(){return[...Ra(this,_r,ol).call(this)]}getName(){let{stack:t}=this,{length:r}=t;return r>1?he(!1,t,-2):null}getValue(){return he(!1,this.stack,-1)}getNode(t=0){let r=Ra(this,_r,Bc).call(this,t);return-1===r?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}call(t,...r){let{stack:n}=this,{length:o}=n,i=he(!1,n,-1);for(let l of r)i=i[l],n.push(l,i);try{return t(this)}finally{n.length=o}}callParent(t,r=0){let n=Ra(this,_r,Bc).call(this,r+1),o=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...o)}}each(t,...r){let{stack:n}=this,{length:o}=n,i=he(!1,n,-1);for(let l of r)i=i[l],n.push(l,i);try{for(let l=0;l{n[i]=t(o,i,l)}),...r),n}match(...t){let r=this.stack.length-1,n=null,o=this.stack[r--];for(let i of t){if(void 0===o)return!1;let l=null;if("number"==typeof n&&(l=n,n=this.stack[r--],o=this.stack[r--]),i&&!i(o,n,l))return!1;n=this.stack[r--],o=this.stack[r--]}return!0}findAncestor(t){for(let r of Ra(this,_r,ol).call(this))if(t(r))return r}hasAncestor(t){for(let r of Ra(this,_r,ol).call(this))if(t(r))return!0;return!1}},"St"),DA=lo,_r=new WeakSet,Bc=a((function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return-1}),"Nt"),ol=a((function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}}),"tt"),xA=DA,_m=new Proxy((()=>{}),{get:a((()=>_m),"get")}),Mc=_m,a(CA,"qu"),EA=CA,a(Pm,"Tt"),a(SA,"Ur"),a(Ta,"Ee"),RA=Ta(/\s/u),ir=Ta(" \t"),Hm=Ta(",; \t"),$m=Ta(/[^\n\r]/u),a(AA,"Ju"),zr=AA,a(FA,"Xu"),ar=FA,a(kA,"Zu"),TA=kA,zm=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),LA=a((e=>Object.keys(e).filter((t=>!zm.has(t)))),"Qu"),a(IA,"eo"),ml=IA,a(BA,"to"),a(Uc,"Lt"),a(ro,"ue"),a(Pr,"re"),a(no,"oe"),xc=new WeakMap,a(Gc,"ut"),a(Om,"qr"),Cc=a((()=>!1),"It"),a(MA,"Jr"),Nm=a((e=>!/[\S\n\u2028\u2029]/u.test(e)),"Xr"),a(_A,"ro"),a(PA,"no"),a(U2,"Kr"),a(Ec,"Rt"),a(HA,"uo"),Xc=HA,a(jm,"Zr"),a($A,"oo"),a(zA,"io"),a(OA,"so"),a(NA,"Qr"),a(jA,"en"),a(VA,"ao"),qA=VA,so=class extends Error{name="ConfigError"},a(so,"Pe"),Vm=so,uo=class extends Error{name="UndefinedParserError"},a(uo,"Ie"),G2=uo,WA={cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:"Maintain existing\n(mixed values within one file are normalised by looking at what's used after the first line)"}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:a((e=>"string"==typeof e||"function"==typeof e),"exception"),choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:a((e=>"string"==typeof e||"object"==typeof e),"exception"),cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:"Format code ending at a given character offset (exclusive).\nThe range will extend forwards to the end of the selected statement.",cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:"Format code starting at a given character offset.\nThe range will extend backwards to the start of the first line containing the selected statement.",cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment\nin order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}},a(qm,"ot"),a(UA,"Do"),a(GA,"lo"),XA=a((e=>String(e).split(/[/\\]/u).pop()),"co"),a(X2,"nn"),a(YA,"fo"),a(KA,"po"),ZA=KA,oo={key:a((e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e)),"key"),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map((r=>oo.value(r))).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map((r=>`${oo.key(r)}: ${oo.value(e[r])}`)).join(", ")} }`},pair:a((({key:e,value:t})=>oo.value({[e]:t})),"pair")},Y2=cl($c(),1),JA=a(((e,t,{descriptor:r})=>{let n=[`${Y2.default.yellow("string"==typeof e?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${Y2.default.blue("string"==typeof t?r.key(t):r.pair(t))}`),n.join("; ")+"."}),"an"),ao=cl($c(),1),Wm=Symbol.for("vnopts.VALUE_NOT_EXIST"),al=Symbol.for("vnopts.VALUE_UNCHANGED"),K2=" ".repeat(2),QA=a(((e,t,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(Z2(e,t,n,r.descriptor)),o&&i.push([Z2(e,t,o.title,r.descriptor)].concat(o.values.map((l=>Um(l,r.loggerPrintWidth)))).join("\n")),Gm(i,r.loggerPrintWidth)}),"cn"),a(Z2,"ln"),a(Um,"fn"),a(Gm,"pn"),J2=cl($c(),1),Sc=[],Q2=[],a(eF,"Ht"),Xm=a(((e,t,{descriptor:r,logger:n,schemas:o})=>{let i=[`Ignored unknown option ${J2.default.yellow(r.pair({key:e,value:t}))}.`],l=Object.keys(o).sort().find((u=>eF(e,u)<3));l&&i.push(`Did you mean ${J2.default.blue(r.key(l))}?`),n.warn(i.join(" "))}),"at"),tF=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],a(rF,"mo"),a(co=class{static create(t){return rF(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return al}},"O"),lr=co,a(nF,"Eo"),a(po=class extends lr{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}},"Dt"),oF=po,a(fo=class extends lr{expected(){return"anything"}validate(){return!0}},"lt"),aF=fo,a(ho=class extends lr{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let o of t){let i=r.normalizeValidateResult(this._valueSchema.validate(o,r),o);!0!==i&&n.push(i.value)}return 0===n.length||{value:n}}deprecated(t,r){let n=[];for(let o of t){let i=r.normalizeDeprecatedResult(this._valueSchema.deprecated(o,r),o);!1!==i&&n.push(...i.map((({value:l})=>({value:[l]}))))}return n}forward(t,r){let n=[];for(let o of t){let i=r.normalizeForwardResult(this._valueSchema.forward(o,r),o);n.push(...i.map(em))}return n}redirect(t,r){let n=[],o=[];for(let i of t){let l=r.normalizeRedirectResult(this._valueSchema.redirect(i,r),i);"remain"in l&&n.push(l.remain),o.push(...l.redirect.map(em))}return 0===n.length?{redirect:o}:{redirect:o,remain:n}}overlap(t,r){return t.concat(r)}},"ct"),iF=ho,a(em,"Fn"),a(mo=class extends lr{expected(){return"true or false"}validate(t){return"boolean"==typeof t}},"ft"),lF=mo,a(sF,"En"),a(uF,"hn"),a(cF,"Cn"),a(pF,"gn"),a(dF,"yn"),a(fF,"An"),a(hF,"Bn"),a(tm,"Mt"),a(Ym,"$t"),a(rm,"Vt"),a(nm,"Ut"),a(om,"mn"),a(_c,"pt"),a(am,"zt"),a(mF,"ho"),a(go=class extends lr{constructor(t){super(t),this._choices=uF(t.choices.map((r=>r&&"object"==typeof r?r:{value:r})),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map((i=>this._choices.get(i))).filter((({hidden:i})=>!i)).map((i=>i.value)).sort(fF).map(t.value),n=r.slice(0,-2),o=r.slice(-2);return{text:n.concat(o.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return!(!r||!r.deprecated)&&{value:t}}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}},"dt"),gF=go,a(vo=class extends lr{expected(){return"a number"}validate(t,r){return"number"==typeof t}},"Ft"),vF=vo,a(wo=class extends vF{expected(){return"an integer"}validate(t,r){return!0===r.normalizeValidateResult(super.validate(t,r),t)&&dF(t)}},"mt"),wF=wo,a(bo=class extends lr{expected(){return"a string"}validate(t){return"string"==typeof t}},"Re"),im=bo,bF=oo,yF=Xm,DF=QA,xF=JA,a(yo=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:o=80,descriptor:i=bF,unknown:l=yF,invalid:u=DF,deprecated:c=xF,missing:p=a((()=>!1),"D"),required:d=a((()=>!1),"l"),preprocess:h=a((v=>v),"d"),postprocess:f=a((()=>al),"f")}=r||{};this._utils={descriptor:i,logger:n||{warn:a((()=>{}),"warn")},loggerPrintWidth:o,schemas:sF(t,"name"),normalizeDefaultResult:tm,normalizeExpectedResult:Ym,normalizeDeprecatedResult:nm,normalizeForwardResult:_c,normalizeRedirectResult:am,normalizeValidateResult:rm},this._unknownHandler=l,this._invalidHandler=hF(u),this._deprecatedHandler=c,this._identifyMissing=(v,b)=>!(v in b)||p(v,b),this._identifyRequired=d,this._preprocess=h,this._postprocess=f,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=cF()}normalize(t){let r={},n=[this._preprocess(t,this._utils)],o=a((()=>{for(;0!==n.length;){let i=n.shift(),l=this._applyNormalization(i,r);n.push(...l)}}),"u");o();for(let i of Object.keys(this._utils.schemas)){let l=this._utils.schemas[i];if(!(i in r)){let u=tm(l.default(this._utils));"value"in u&&n.push({[i]:u.value})}}o();for(let i of Object.keys(this._utils.schemas)){if(!(i in r))continue;let l=this._utils.schemas[i],u=r[i],c=l.postprocess(u,this._utils);c!==al&&(this._applyValidation(c,i,l),r[i]=c)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:o,unknownKeys:i}=this._partitionOptionKeys(t);for(let l of o){let u=this._utils.schemas[l],c=u.preprocess(t[l],this._utils);this._applyValidation(c,l,u);let p=a((({from:f,to:v})=>{n.push("string"==typeof v?{[v]:f}:{[v.key]:v.value})}),"D"),d=a((({value:f,redirectTo:v})=>{let b=nm(u.deprecated(f,this._utils),c,!0);if(!1!==b)if(!0===b)this._hasDeprecationWarned(l)||this._utils.logger.warn(this._deprecatedHandler(l,v,this._utils));else for(let{value:m}of b){let g={key:l,value:m};if(!this._hasDeprecationWarned(g)){let y="string"==typeof v?{key:v,value:m}:v;this._utils.logger.warn(this._deprecatedHandler(g,y,this._utils))}}}),"l");_c(u.forward(c,this._utils),c).forEach(p);let h=am(u.redirect(c,this._utils),c);if(h.redirect.forEach(p),"remain"in h){let f=h.remain;r[l]=l in r?u.overlap(r[l],f,this._utils):f,d({value:f})}for(let{from:f,to:v}of h.redirect)d({value:f,redirectTo:v})}for(let l of i){let u=t[l];this._applyUnknownHandler(l,u,r,((c,p)=>{n.push({[c]:p})}))}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,Wm,this._utils)}_partitionOptionKeys(t){let[r,n]=pF(Object.keys(t).filter((o=>!this._identifyMissing(o,t))),(o=>o in this._utils.schemas));return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let o=rm(n.validate(t,this._utils),t);if(!0!==o)throw this._invalidHandler(r,o.value,this._utils)}_applyUnknownHandler(t,r,n,o){let i=this._unknownHandler(t,r,this._utils);if(i)for(let l of Object.keys(i)){if(this._identifyMissing(l,i))continue;let u=i[l];l in this._utils.schemas?o(l,u):n[l]=u}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==al){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(r.override);for(let i of n){let l=r.override[i];this._applyValidation(l,i,this._utils.schemas[i]),t[i]=l}for(let i of o){let l=r.override[i];this._applyUnknownHandler(i,l,t,((u,c)=>{let p=this._utils.schemas[u];this._applyValidation(c,u,p),t[u]=c}))}}}}},"Et"),CF=yo,a(EF,"go"),a(SF,"yo"),a(RF,"Ao"),AF=EF,Km=a(((e,t,r)=>{if(!e||null!=t){if(t.findLast)return t.findLast(r);for(let n=t.length-1;n>=0;n--){let o=t[n];if(r(o,n,t))return o}}}),"Bo"),a(Zm,"qt"),a(kF,"On"),a(Jm,"ht"),a(Qm,"Jt"),a(TF,"Sn"),lm={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null},a(LF,"wo"),Co=LF,IF=cl(TR(),1),a(BF,"ko"),a(MF,"Lo"),La=BF,a(_F,"Un"),a(PF,"Po"),a(HF,"Io"),$F=HF,a(gl,"Ye"),a(sm,"Gn"),a(eg,"Qt"),a(zF,"Ro"),OF=zF,a(NF,"Yo"),jF=NF,qF=a(((e,t,r)=>{if(!e||null!=t){if(t.findLastIndex)return t.findLastIndex(r);for(let n=t.length-1;n>=0;n--){if(r(t[n],n,t))return n}return-1}}),"jo"),WF=a((({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e),"Ho"),a(UF,"Wo"),a(um,"Xn"),a(GF,"Mo"),a(Pc,"er"),a(XF,"$o"),tg=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),YF=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]),a(cm,"Zn"),a(KF,"eu"),rg="\ufeff",pm=Symbol("cursor"),a(ng,"ou"),a(ZF,"Uo"),a(Ac,"tr"),a(dm,"ru"),a(og,"iu"),a(fm,"nu"),a(ag,"rr"),a(JF,"su"),a(QF,"au"),a(ek,"Du"),a(tk,"lu"),a(rk,"cu"),ul(ig={},{builders:a((()=>nk),"builders"),printer:a((()=>ok),"printer"),utils:a((()=>ak),"utils")}),nk={join:Tm,line:Fm,softline:JR,hardline:$r,literalline:km,group:Sm,conditionalGroup:GR,fill:Rm,lineSuffix:kc,lineSuffixBoundary:KR,cursor:Tc,breakParent:dl,ifBreak:XR,trim:ZR,indent:ll,indentIfBreak:YR,align:xo,addAlignmentToDoc:Lm,markAsRoot:WR,dedentToRoot:qR,dedent:UR,hardlineWithoutBreakParent:jc,literallineWithoutBreakParent:Am,label:QR,concat:a((e=>e),"concat")},ok={printDocToString:hl},ak={willBreak:uA,traverseDoc:Oc,findInDoc:qc,mapDoc:fl,removeLines:dA,stripTrailingHardline:Im,replaceEndOfLine:mA,canBreak:vA},ik="3.3.3",ul(lg={},{addDanglingComment:a((()=>Pr),"addDanglingComment"),addLeadingComment:a((()=>ro),"addLeadingComment"),addTrailingComment:a((()=>no),"addTrailingComment"),getAlignmentSize:a((()=>Wc),"getAlignmentSize"),getIndentSize:a((()=>dk),"getIndentSize"),getMaxContinuousCount:a((()=>mk),"getMaxContinuousCount"),getNextNonSpaceNonCommentCharacter:a((()=>vk),"getNextNonSpaceNonCommentCharacter"),getNextNonSpaceNonCommentCharacterIndex:a((()=>Sk),"getNextNonSpaceNonCommentCharacterIndex"),getStringWidth:a((()=>Vc),"getStringWidth"),hasNewline:a((()=>ar),"hasNewline"),hasNewlineInRange:a((()=>bk),"hasNewlineInRange"),hasSpaces:a((()=>Dk),"hasSpaces"),isNextLineEmpty:a((()=>kk),"isNextLineEmpty"),isNextLineEmptyAfterIndex:a((()=>Jc),"isNextLineEmptyAfterIndex"),isPreviousLineEmpty:a((()=>Ak),"isPreviousLineEmpty"),makeString:a((()=>Ck),"makeString"),skip:a((()=>Ta),"skip"),skipEverythingButNewLine:a((()=>$m),"skipEverythingButNewLine"),skipInlineComment:a((()=>Yc),"skipInlineComment"),skipNewline:a((()=>zr),"skipNewline"),skipSpaces:a((()=>ir),"skipSpaces"),skipToLineEnd:a((()=>Hm),"skipToLineEnd"),skipTrailingComment:a((()=>Kc),"skipTrailingComment"),skipWhitespace:a((()=>RA),"skipWhitespace")}),a(lk,"Jo"),Yc=lk,a(sk,"Xo"),Kc=sk,a(uk,"Zo"),Zc=uk,a(ck,"Qo"),Jc=ck,a(pk,"ei"),dk=pk,a(fk,"ur"),a(hk,"ti"),mk=hk,a(gk,"ri"),vk=gk,a(wk,"ni"),bk=wk,a(yk,"ui"),Dk=yk,a(xk,"oi"),Ck=xk,a(Ek,"ii"),a(Sk,"si"),a(Rk,"ai"),a(Ak,"Di"),a(Fk,"li"),a(kk,"ci"),a(Hr,"fe"),sg=Hr(ag),a(ug,"gu"),a(Tk,"fi"),Lk=Hr(qm,0),Ik={parse:Hr(JF),formatAST:Hr(QF),formatDoc:Hr(ek),printToDoc:Hr(tk),printDocToString:Hr(rk)},cg=bm}));function dg(e){for(var t=[],r=1;r{a(dg,"dedent")})),mg={};an(mg,{formatter:()=>Bk});var hg,Bk,Q0,e1,ne,ce,se,oe,Pl,cr,Vt,Xr,r3,Hl,Mo,n3,t1,$l,o3,gg=F((()=>{hg=we(Qo(),1),O2(),pg(),fg(),Bk=(0,hg.default)(2)((async(e,t)=>!1===e?t:"dedent"===e||!0===e?dg(t):(await cg.format(t,{parser:e,plugins:[z2],htmlWhitespaceSensitivity:"ignore"})).trim()))})),t3=F((()=>{Q0=a((function(t){return t.reduce((function(r,n){var o=n[0],i=n[1];return r[o]=i,r}),{})}),"fromEntries"),e1=typeof window<"u"&&window.document&&window.document.createElement?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect})),je=F((()=>{Pl="auto",Vt="start",Xr="end",r3="clippingParents",Hl="viewport",Mo="popper",n3="reference",t1=(cr=[ne="top",ce="bottom",se="right",oe="left"]).reduce((function(e,t){return e.concat([t+"-"+Vt,t+"-"+Xr])}),[]),$l=[].concat(cr,[Pl]).reduce((function(e,t){return e.concat([t,t+"-"+Vt,t+"-"+Xr])}),[]),"beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite",o3=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]}));function me(e){return e?(e.nodeName||"").toLowerCase():null}var pr=F((()=>{a(me,"getNodeName")}));function ee(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var ut=F((()=>{a(ee,"getWindow")}));function Je(e){return e instanceof ee(e).Element||e instanceof Element}function pe(e){return e instanceof ee(e).HTMLElement||e instanceof HTMLElement}function _o(e){return!(typeof ShadowRoot>"u")&&(e instanceof ee(e).ShadowRoot||e instanceof ShadowRoot)}var Ve=F((()=>{ut(),a(Je,"isElement"),a(pe,"isHTMLElement"),a(_o,"isShadowRoot")}));function ZI(e){var t=e.state;Object.keys(t.elements).forEach((function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!pe(i)||!me(i)||(Object.assign(i.style,n),Object.keys(o).forEach((function(l){var u=o[l];!1===u?i.removeAttribute(l):i.setAttribute(l,!0===u?"":u)})))}))}function JI(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(n){var o=t.elements[n],i=t.attributes[n]||{},u=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]).reduce((function(c,p){return c[p]="",c}),{});!pe(o)||!me(o)||(Object.assign(o.style,u),Object.keys(i).forEach((function(c){o.removeAttribute(c)})))}))}}var a3,i3=F((()=>{pr(),Ve(),a(ZI,"applyStyles"),a(JI,"effect"),a3={name:"applyStyles",enabled:!0,phase:"write",fn:ZI,effect:JI,requires:["computeStyles"]}}));function ge(e){return e.split("-")[0]}var ct,Yr,qt,dr=F((()=>{a(ge,"getBasePlacement")})),fr=F((()=>{ct=Math.max,Yr=Math.min,qt=Math.round}));function Po(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}var r1=F((()=>{a(Po,"getUAString")}));function Na(){return!/^((?!chrome|android).)*safari/i.test(Po())}var n1=F((()=>{r1(),a(Na,"isLayoutViewport")}));function Qe(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&pe(e)&&(o=e.offsetWidth>0&&qt(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&qt(n.height)/e.offsetHeight||1);var u=(Je(e)?ee(e):window).visualViewport,c=!Na()&&r,p=(n.left+(c&&u?u.offsetLeft:0))/o,d=(n.top+(c&&u?u.offsetTop:0))/i,h=n.width/o,f=n.height/i;return{width:h,height:f,top:d,right:p+h,bottom:d+f,left:p,x:p,y:d}}var Ho=F((()=>{Ve(),fr(),ut(),n1(),a(Qe,"getBoundingClientRect")}));function Kr(e){var t=Qe(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}var zl=F((()=>{Ho(),a(Kr,"getLayoutRect")}));function ja(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&_o(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}var o1=F((()=>{Ve(),a(ja,"contains")}));function ke(e){return ee(e).getComputedStyle(e)}var $o=F((()=>{ut(),a(ke,"getComputedStyle")}));function a1(e){return["table","td","th"].indexOf(me(e))>=0}var l3=F((()=>{pr(),a(a1,"isTableElement")}));function xe(e){return((Je(e)?e.ownerDocument:e.document)||window.document).documentElement}var Wt=F((()=>{Ve(),a(xe,"getDocumentElement")}));function Ut(e){return"html"===me(e)?e:e.assignedSlot||e.parentNode||(_o(e)?e.host:null)||xe(e)}var Va=F((()=>{pr(),Wt(),Ve(),a(Ut,"getParentNode")}));function s3(e){return pe(e)&&"fixed"!==ke(e).position?e.offsetParent:null}function QI(e){var t=/firefox/i.test(Po());if(/Trident/i.test(Po())&&pe(e)&&"fixed"===ke(e).position)return null;var o=Ut(e);for(_o(o)&&(o=o.host);pe(o)&&["html","body"].indexOf(me(o))<0;){var i=ke(o);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return o;o=o.parentNode}return null}function pt(e){for(var t=ee(e),r=s3(e);r&&a1(r)&&"static"===ke(r).position;)r=s3(r);return r&&("html"===me(r)||"body"===me(r)&&"static"===ke(r).position)?t:r||QI(e)||t}var zo=F((()=>{ut(),pr(),$o(),Ve(),l3(),Va(),r1(),a(s3,"getTrueOffsetParent"),a(QI,"getContainingBlock"),a(pt,"getOffsetParent")}));function Zr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Ol=F((()=>{a(Zr,"getMainAxisFromPlacement")}));function Jr(e,t,r){return ct(e,Yr(t,r))}function u3(e,t,r){var n=Jr(e,t,r);return n>r?r:n}var i1=F((()=>{fr(),a(Jr,"within"),a(u3,"withinMaxClamp")}));function qa(){return{top:0,right:0,bottom:0,left:0}}var l1=F((()=>{a(qa,"getFreshSideObject")}));function Wa(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}var s1=F((()=>{l1(),a(Wa,"mergePaddingObject")}));function Ua(e,t){return t.reduce((function(r,n){return r[n]=e,r}),{})}var u1=F((()=>{a(Ua,"expandToHashMap")}));function tB(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,l=r.modifiersData.popperOffsets,u=ge(r.placement),c=Zr(u),d=[oe,se].indexOf(u)>=0?"height":"width";if(i&&l){var h=eB(o.padding,r),f=Kr(i),v="y"===c?ne:oe,b="y"===c?ce:se,m=r.rects.reference[d]+r.rects.reference[c]-l[c]-r.rects.popper[d],g=l[c]-r.rects.reference[c],y=pt(i),w=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,D=m/2-g/2,x=h[v],C=w-f[d]-h[b],E=w/2-f[d]/2+D,S=Jr(x,E,C),R=c;r.modifiersData[n]=((t={})[R]=S,t.centerOffset=S-E,t)}}function rB(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"==typeof o&&!(o=t.elements.popper.querySelector(o))||ja(t.elements.popper,o)&&(t.elements.arrow=o))}var eB,c3,p3=F((()=>{dr(),zl(),o1(),zo(),Ol(),i1(),s1(),u1(),je(),eB=a((function(t,r){return Wa("number"!=typeof(t="function"==typeof t?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:Ua(t,cr))}),"toPaddingObject"),a(tB,"arrow"),a(rB,"effect"),c3={name:"arrow",enabled:!0,phase:"main",fn:tB,effect:rB,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}}));function et(e){return e.split("-")[1]}var Oo=F((()=>{a(et,"getVariation")}));function oB(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:qt(r*o)/o||0,y:qt(n*o)/o||0}}function d3(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,p=e.adaptive,d=e.roundOffsets,h=e.isFixed,f=l.x,v=void 0===f?0:f,b=l.y,m=void 0===b?0:b,g="function"==typeof d?d({x:v,y:m}):{x:v,y:m};v=g.x,m=g.y;var y=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),D=oe,x=ne,C=window;if(p){var E=pt(r),S="clientHeight",R="clientWidth";if(E===ee(r)&&("static"!==ke(E=xe(r)).position&&"absolute"===u&&(S="scrollHeight",R="scrollWidth")),o===ne||(o===oe||o===se)&&i===Xr)x=ce,m-=(h&&E===C&&C.visualViewport?C.visualViewport.height:E[S])-n.height,m*=c?1:-1;if(o===oe||(o===ne||o===ce)&&i===Xr)D=se,v-=(h&&E===C&&C.visualViewport?C.visualViewport.width:E[R])-n.width,v*=c?1:-1}var M,B=Object.assign({position:u},p&&nB),$=!0===d?oB({x:v,y:m},ee(r)):{x:v,y:m};return v=$.x,m=$.y,c?Object.assign({},B,((M={})[x]=w?"0":"",M[D]=y?"0":"",M.transform=(C.devicePixelRatio||1)<=1?"translate("+v+"px, "+m+"px)":"translate3d("+v+"px, "+m+"px, 0)",M)):Object.assign({},B,((t={})[x]=w?m+"px":"",t[D]=y?v+"px":"",t.transform="",t))}function aB(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,l=void 0===i||i,u=r.roundOffsets,c=void 0===u||u,p={placement:ge(t.placement),variation:et(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,d3(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,d3(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var nB,f3,h3=F((()=>{je(),zo(),ut(),Wt(),$o(),dr(),Oo(),fr(),nB={top:"auto",right:"auto",bottom:"auto",left:"auto"},a(oB,"roundOffsetsByDPR"),a(d3,"mapToStyles"),a(aB,"computeStyles"),f3={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:aB,data:{}}}));function iB(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,l=n.resize,u=void 0===l||l,c=ee(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&p.forEach((function(d){d.addEventListener("scroll",r.update,Nl)})),u&&c.addEventListener("resize",r.update,Nl),function(){i&&p.forEach((function(d){d.removeEventListener("scroll",r.update,Nl)})),u&&c.removeEventListener("resize",r.update,Nl)}}var Nl,m3,g3=F((()=>{ut(),Nl={passive:!0},a(iB,"effect"),m3={name:"eventListeners",enabled:!0,phase:"write",fn:a((function(){}),"fn"),effect:iB,data:{}}}));function No(e){return e.replace(/left|right|bottom|top/g,(function(t){return lB[t]}))}var lB,v3=F((()=>{lB={left:"right",right:"left",bottom:"top",top:"bottom"},a(No,"getOppositePlacement")}));function jl(e){return e.replace(/start|end/g,(function(t){return sB[t]}))}var sB,w3=F((()=>{sB={start:"end",end:"start"},a(jl,"getOppositeVariationPlacement")}));function Qr(e){var t=ee(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var Vl=F((()=>{ut(),a(Qr,"getWindowScroll")}));function en(e){return Qe(xe(e)).left+Qr(e).scrollLeft}var ql=F((()=>{Ho(),Wt(),Vl(),a(en,"getWindowScrollBarX")}));function c1(e,t){var r=ee(e),n=xe(e),o=r.visualViewport,i=n.clientWidth,l=n.clientHeight,u=0,c=0;if(o){i=o.width,l=o.height;var p=Na();(p||!p&&"fixed"===t)&&(u=o.offsetLeft,c=o.offsetTop)}return{width:i,height:l,x:u+en(e),y:c}}var b3=F((()=>{ut(),Wt(),ql(),n1(),a(c1,"getViewportRect")}));function p1(e){var t,r=xe(e),n=Qr(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ct(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ct(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-n.scrollLeft+en(e),c=-n.scrollTop;return"rtl"===ke(o||r).direction&&(u+=ct(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:l,x:u,y:c}}var y3=F((()=>{Wt(),$o(),ql(),Vl(),fr(),a(p1,"getDocumentRect")}));function tn(e){var t=ke(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}var Wl=F((()=>{$o(),a(tn,"isScrollParent")}));function Ul(e){return["html","body","#document"].indexOf(me(e))>=0?e.ownerDocument.body:pe(e)&&tn(e)?e:Ul(Ut(e))}var D3=F((()=>{Va(),Wl(),pr(),Ve(),a(Ul,"getScrollParent")}));function hr(e,t){var r;void 0===t&&(t=[]);var n=Ul(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=ee(n),l=o?[i].concat(i.visualViewport||[],tn(n)?n:[]):n,u=t.concat(l);return o?u:u.concat(hr(Ut(l)))}var d1=F((()=>{D3(),Va(),ut(),Wl(),a(hr,"listScrollParents")}));function jo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}var f1=F((()=>{a(jo,"rectToClientRect")}));function uB(e,t){var r=Qe(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function x3(e,t,r){return t===Hl?jo(c1(e,r)):Je(t)?uB(t,r):jo(p1(xe(e)))}function cB(e){var t=hr(Ut(e)),n=["absolute","fixed"].indexOf(ke(e).position)>=0&&pe(e)?pt(e):e;return Je(n)?t.filter((function(o){return Je(o)&&ja(o,n)&&"body"!==me(o)})):[]}function h1(e,t,r,n){var o="clippingParents"===t?cB(e):[].concat(t),i=[].concat(o,[r]),l=i[0],u=i.reduce((function(c,p){var d=x3(e,p,n);return c.top=ct(d.top,c.top),c.right=Yr(d.right,c.right),c.bottom=Yr(d.bottom,c.bottom),c.left=ct(d.left,c.left),c}),x3(e,l,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}var C3=F((()=>{je(),b3(),y3(),d1(),zo(),Wt(),$o(),Ve(),Ho(),Va(),o1(),pr(),f1(),fr(),a(uB,"getInnerBoundingClientRect"),a(x3,"getClientRectFromMixedType"),a(cB,"getClippingParents"),a(h1,"getClippingRect")}));function Ga(e){var c,t=e.reference,r=e.element,n=e.placement,o=n?ge(n):null,i=n?et(n):null,l=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2;switch(o){case ne:c={x:l,y:t.y-r.height};break;case ce:c={x:l,y:t.y+t.height};break;case se:c={x:t.x+t.width,y:u};break;case oe:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var p=o?Zr(o):null;if(null!=p){var d="y"===p?"height":"width";switch(i){case Vt:c[p]=c[p]-(t[d]/2-r[d]/2);break;case Xr:c[p]=c[p]+(t[d]/2-r[d]/2)}}return c}var m1=F((()=>{dr(),Oo(),Ol(),je(),a(Ga,"computeOffsets")}));function dt(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,l=void 0===i?e.strategy:i,u=r.boundary,c=void 0===u?r3:u,p=r.rootBoundary,d=void 0===p?Hl:p,h=r.elementContext,f=void 0===h?Mo:h,v=r.altBoundary,b=void 0!==v&&v,m=r.padding,g=void 0===m?0:m,y=Wa("number"!=typeof g?g:Ua(g,cr)),w=f===Mo?n3:Mo,D=e.rects.popper,x=e.elements[b?w:f],C=h1(Je(x)?x:x.contextElement||xe(e.elements.popper),c,d,l),E=Qe(e.elements.reference),S=Ga({reference:E,element:D,strategy:"absolute",placement:o}),R=jo(Object.assign({},D,S)),A=f===Mo?R:E,k={top:C.top-A.top+y.top,bottom:A.bottom-C.bottom+y.bottom,left:C.left-A.left+y.left,right:A.right-C.right+y.right},B=e.modifiersData.offset;if(f===Mo&&B){var $=B[o];Object.keys(k).forEach((function(M){var W=[se,ce].indexOf(M)>=0?1:-1,T=[ne,ce].indexOf(M)>=0?"y":"x";k[M]+=$[T]*W}))}return k}var Xa=F((()=>{C3(),Wt(),Ho(),m1(),f1(),je(),Ve(),s1(),u1(),a(dt,"detectOverflow")}));function g1(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,l=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,p=void 0===c?$l:c,d=et(n),h=d?u?t1:t1.filter((function(b){return et(b)===d})):cr,f=h.filter((function(b){return p.indexOf(b)>=0}));0===f.length&&(f=h);var v=f.reduce((function(b,m){return b[m]=dt(e,{placement:m,boundary:o,rootBoundary:i,padding:l})[ge(m)],b}),{});return Object.keys(v).sort((function(b,m){return v[b]-v[m]}))}var E3=F((()=>{Oo(),je(),Xa(),dr(),a(g1,"computeAutoPlacement")}));function pB(e){if(ge(e)===Pl)return[];var t=No(e);return[jl(e),t,jl(t)]}function dB(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,l=r.altAxis,u=void 0===l||l,c=r.fallbackPlacements,p=r.padding,d=r.boundary,h=r.rootBoundary,f=r.altBoundary,v=r.flipVariations,b=void 0===v||v,m=r.allowedAutoPlacements,g=t.options.placement,y=ge(g),D=c||(y===g||!b?[No(g)]:pB(g)),x=[g].concat(D).reduce((function(ve,de){return ve.concat(ge(de)===Pl?g1(t,{placement:de,boundary:d,rootBoundary:h,padding:p,flipVariations:b,allowedAutoPlacements:m}):de)}),[]),C=t.rects.reference,E=t.rects.popper,S=new Map,R=!0,A=x[0],k=0;k=0,T=W?"width":"height",L=dt(t,{placement:B,boundary:d,rootBoundary:h,altBoundary:f,padding:p}),P=W?M?se:oe:M?ce:ne;C[T]>E[T]&&(P=No(P));var U=No(P),N=[];if(i&&N.push(L[$]<=0),u&&N.push(L[P]<=0,L[U]<=0),N.every((function(ve){return ve}))){A=B,R=!1;break}S.set(B,N)}if(R)for(var G=b?3:1,z=a((function(de){var Ce=x.find((function(Le){var Ie=S.get(Le);if(Ie)return Ie.slice(0,de).every((function(Xo){return Xo}))}));if(Ce)return A=Ce,"break"}),"_loop"),K=G;K>0;K--){if("break"===z(K))break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}var S3,R3=F((()=>{v3(),dr(),w3(),Xa(),E3(),je(),Oo(),a(pB,"getExpandedFallbackPlacements"),a(dB,"flip"),S3={name:"flip",enabled:!0,phase:"main",fn:dB,requiresIfExists:["offset"],data:{_skip:!1}}}));function A3(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function F3(e){return[ne,se,ce,oe].some((function(t){return e[t]>=0}))}function fB(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,l=dt(t,{elementContext:"reference"}),u=dt(t,{altBoundary:!0}),c=A3(l,n),p=A3(u,o,i),d=F3(c),h=F3(p);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}var k3,T3=F((()=>{je(),Xa(),a(A3,"getSideOffsets"),a(F3,"isAnySideFullyClipped"),a(fB,"hide"),k3={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fB}}));function hB(e,t,r){var n=ge(e),o=[oe,ne].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,l=i[0],u=i[1];return l=l||0,u=(u||0)*o,[oe,se].indexOf(n)>=0?{x:u,y:l}:{x:l,y:u}}function mB(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,l=$l.reduce((function(d,h){return d[h]=hB(h,t.rects,i),d}),{}),u=l[t.placement],c=u.x,p=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=l}var L3,I3=F((()=>{dr(),je(),a(hB,"distanceAndSkiddingToXY"),a(mB,"offset"),L3={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mB}}));function gB(e){var t=e.state,r=e.name;t.modifiersData[r]=Ga({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var B3,M3=F((()=>{m1(),a(gB,"popperOffsets"),B3={name:"popperOffsets",enabled:!0,phase:"read",fn:gB,data:{}}}));function v1(e){return"x"===e?"y":"x"}var _3=F((()=>{a(v1,"getAltAxis")}));function vB(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,l=r.altAxis,u=void 0!==l&&l,c=r.boundary,p=r.rootBoundary,d=r.altBoundary,h=r.padding,f=r.tether,v=void 0===f||f,b=r.tetherOffset,m=void 0===b?0:b,g=dt(t,{boundary:c,rootBoundary:p,padding:h,altBoundary:d}),y=ge(t.placement),w=et(t.placement),D=!w,x=Zr(y),C=v1(x),E=t.modifiersData.popperOffsets,S=t.rects.reference,R=t.rects.popper,A="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,k="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(E){if(i){var M,W="y"===x?ne:oe,T="y"===x?ce:se,L="y"===x?"height":"width",P=E[x],U=P+g[W],N=P-g[T],G=v?-R[L]/2:0,z=w===Vt?S[L]:R[L],K=w===Vt?-R[L]:-S[L],Te=t.elements.arrow,ve=v&&Te?Kr(Te):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ce=de[W],Le=de[T],Ie=Jr(0,S[L],ve[L]),Xo=D?S[L]/2-G-Ie-Ce-k.mainAxis:z-Ie-Ce-k.mainAxis,Yo=D?-S[L]/2+G+Ie+Le+k.mainAxis:K+Ie+Le+k.mainAxis,ns=t.elements.arrow&&pt(t.elements.arrow),R4=ns?"y"===x?ns.clientTop||0:ns.clientLeft||0:0,G1=null!=(M=B?.[x])?M:0,F4=P+Yo-G1,X1=Jr(v?Yr(U,P+Xo-G1-R4):U,P,v?ct(N,F4):N);E[x]=X1,$[x]=X1-P}if(u){var Y1,k4="x"===x?ne:oe,T4="x"===x?ce:se,vr=E[C],Ja="y"===C?"height":"width",K1=vr+g[k4],Z1=vr-g[T4],os=-1!==[ne,oe].indexOf(y),J1=null!=(Y1=B?.[C])?Y1:0,Q1=os?K1:vr-S[Ja]-R[Ja]-J1+k.altAxis,ep=os?vr+S[Ja]+R[Ja]-J1-k.altAxis:Z1,tp=v&&os?u3(Q1,vr,ep):Jr(v?Q1:K1,vr,v?ep:Z1);E[C]=tp,$[C]=tp-vr}t.modifiersData[n]=$}}var P3,H3=F((()=>{je(),dr(),Ol(),_3(),i1(),zl(),zo(),Xa(),Oo(),l1(),fr(),a(vB,"preventOverflow"),P3={name:"preventOverflow",enabled:!0,phase:"main",fn:vB,requiresIfExists:["offset"]}})),w1=F((()=>{}));function b1(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}var $3=F((()=>{a(b1,"getHTMLElementScroll")}));function y1(e){return e!==ee(e)&&pe(e)?b1(e):Qr(e)}var z3=F((()=>{Vl(),ut(),Ve(),$3(),a(y1,"getNodeScroll")}));function wB(e){var t=e.getBoundingClientRect(),r=qt(t.width)/e.offsetWidth||1,n=qt(t.height)/e.offsetHeight||1;return 1!==r||1!==n}function D1(e,t,r){void 0===r&&(r=!1);var n=pe(t),o=pe(t)&&wB(t),i=xe(t),l=Qe(e,o,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(("body"!==me(t)||tn(i))&&(u=y1(t)),pe(t)?((c=Qe(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=en(i))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}var O3=F((()=>{Ho(),z3(),pr(),Ve(),ql(),Wt(),Wl(),fr(),a(wB,"isElementScaled"),a(D1,"getCompositeRect")}));function bB(e){var t=new Map,r=new Set,n=[];function o(i){r.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(u){if(!r.has(u)){var c=t.get(u);c&&o(c)}})),n.push(i)}return e.forEach((function(i){t.set(i.name,i)})),a(o,"sort"),e.forEach((function(i){r.has(i.name)||o(i)})),n}function x1(e){var t=bB(e);return o3.reduce((function(r,n){return r.concat(t.filter((function(o){return o.phase===n})))}),[])}var N3=F((()=>{je(),a(bB,"order"),a(x1,"orderModifiers")}));function C1(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var j3=F((()=>{a(C1,"debounce")}));function E1(e){var t=e.reduce((function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r}),{});return Object.keys(t).map((function(r){return t[r]}))}var V3=F((()=>{a(E1,"mergeByName")}));function W3(){for(var e=arguments.length,t=new Array(e),r=0;r{O3(),zl(),d1(),zo(),N3(),j3(),V3(),Ve(),q3={placement:"bottom",modifiers:[],strategy:"absolute"},a(W3,"areValidElements"),a(U3,"popperGenerator")})),X3=F((()=>{G3(),g3(),M3(),h3(),i3(),I3(),R3(),H3(),p3(),T3(),w1(),S1=U3({defaultModifiers:[m3,B3,f3,a3,L3,S3,P3,c3,k3]})})),Y3=F((()=>{je(),w1(),X3()})),Z3=_(((QZ,K3)=>{var DB=typeof Element<"u",xB="function"==typeof Map,CB="function"==typeof Set,EB="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function Gl(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var r,n,o,i;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!Gl(e[n],t[n]))return!1;return!0}if(xB&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!Gl(n.value[1],t.get(n.value[0])))return!1;return!0}if(CB&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(EB&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(DB&&e instanceof Element)return!1;for(n=r;0!=n--;)if(("_owner"!==o[n]&&"__v"!==o[n]&&"__o"!==o[n]||!e.$$typeof)&&!Gl(e[o[n]],t[o[n]]))return!1;return!0}return e!=e&&t!=t}a(Gl,"equal"),K3.exports=a((function(t,r){try{return Gl(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}),"isEqual")})),e4=F((()=>{Y3(),Q3=we(Z3()),t3(),SB=[],R1=a((function(t,r,n){void 0===n&&(n={});var o=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||SB},l=react__WEBPACK_IMPORTED_MODULE_0__.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),u=l[0],c=l[1],p=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:a((function(v){var b=v.state,m=Object.keys(b.elements);react_dom__WEBPACK_IMPORTED_MODULE_3__.flushSync((function(){c({styles:Q0(m.map((function(g){return[g,b.styles[g]||{}]}))),attributes:Q0(m.map((function(g){return[g,b.attributes[g]]})))})}))}),"fn"),requires:["computeStyles"]}}),[]),d=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){var f={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[p,{name:"applyStyles",enabled:!1}])};return(0,Q3.default)(o.current,f)?o.current||f:(o.current=f,f)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,p]),h=react__WEBPACK_IMPORTED_MODULE_0__.useRef();return e1((function(){h.current&&h.current.setOptions(d)}),[d]),e1((function(){if(null!=t&&null!=r){var v=(n.createPopper||S1)(t,r,d);return h.current=v,function(){v.destroy(),h.current=null}}}),[t,r,n.createPopper]),{state:h.current?h.current.state:null,styles:u.styles,attributes:u.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}}),"usePopper")})),t4=F((()=>{e4()}));function o4(e){var t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e);return t.current=e,react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){return t.current}),[])}function AB(e){var t=e.initial,r=e.value,n=e.onChange,o=void 0===n?RB:n;if(void 0===t&&void 0===r)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var i=react__WEBPACK_IMPORTED_MODULE_0__.useState(t),l=i[0],u=i[1],c=o4(l),p=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(h){var f=c(),v="function"==typeof h?h(f):h;"function"==typeof v.persist&&v.persist(),u(v),"function"==typeof o&&o(v)}),[c,o]),d=void 0!==r;return[d?r:l,d?o:p]}function a4(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:a((function(){return null}),"toJSON")}}}function i4(e,t){var r,n,o;void 0===e&&(e={}),void 0===t&&(t={});var i=Object.keys(n4).reduce((function(T,L){var P;return H({},T,((P={})[L]=void 0!==T[L]?T[L]:n4[L],P))}),e),l=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return[{name:"offset",options:{offset:i.offset}}]}),Array.isArray(i.offset)?i.offset:[]),u=H({},t,{placement:t.placement||i.placement,modifiers:t.modifiers||l}),c=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),p=c[0],d=c[1],h=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),f=h[0],v=h[1],b=AB({initial:i.defaultVisible,value:i.visible,onChange:i.onVisibleChange}),m=b[0],g=b[1],y=react__WEBPACK_IMPORTED_MODULE_0__.useRef();react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){return function(){return clearTimeout(y.current)}}),[]);var w=R1(i.followCursor?r4:p,f,u),D=w.styles,x=w.attributes,C=sn(w,FB),E=C.update,S=o4({visible:m,triggerRef:p,tooltipRef:f,finalConfig:i}),R=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(T){return Array.isArray(i.trigger)?i.trigger.includes(T):i.trigger===T}),Array.isArray(i.trigger)?i.trigger:[i.trigger]),A=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){clearTimeout(y.current),y.current=window.setTimeout((function(){return g(!1)}),i.delayHide)}),[i.delayHide,g]),k=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){clearTimeout(y.current),y.current=window.setTimeout((function(){return g(!0)}),i.delayShow)}),[i.delayShow,g]),B=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){S().visible?A():k()}),[S,A,k]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(S().finalConfig.closeOnOutsideClick){var T=a((function(P){var U,N=S(),G=N.tooltipRef,z=N.triggerRef,K=(null==P.composedPath||null==(U=P.composedPath())?void 0:U[0])||P.target;K instanceof Node&&null!=G&&null!=z&&!G.contains(K)&&!z.contains(K)&&A()}),"handleClickOutside");return document.addEventListener("mousedown",T),function(){return document.removeEventListener("mousedown",T)}}}),[S,A]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=p&&R("click"))return p.addEventListener("click",B),function(){return p.removeEventListener("click",B)}}),[p,R,B]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=p&&R("double-click"))return p.addEventListener("dblclick",B),function(){return p.removeEventListener("dblclick",B)}}),[p,R,B]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=p&&R("right-click")){var T=a((function(P){P.preventDefault(),B()}),"preventDefaultAndToggle");return p.addEventListener("contextmenu",T),function(){return p.removeEventListener("contextmenu",T)}}}),[p,R,B]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=p&&R("focus"))return p.addEventListener("focus",k),p.addEventListener("blur",A),function(){p.removeEventListener("focus",k),p.removeEventListener("blur",A)}}),[p,R,k,A]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=p&&R("hover"))return p.addEventListener("mouseenter",k),p.addEventListener("mouseleave",A),function(){p.removeEventListener("mouseenter",k),p.removeEventListener("mouseleave",A)}}),[p,R,k,A]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=f&&R("hover")&&S().finalConfig.interactive)return f.addEventListener("mouseenter",k),f.addEventListener("mouseleave",A),function(){f.removeEventListener("mouseenter",k),f.removeEventListener("mouseleave",A)}}),[f,R,k,A,S]);var $=null==C||null==(r=C.state)||null==(n=r.modifiersData)||null==(o=n.hide)?void 0:o.isReferenceHidden;react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){i.closeOnTriggerHidden&&$&&A()}),[i.closeOnTriggerHidden,A,$]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(i.followCursor&&null!=p)return a(T,"setMousePosition"),p.addEventListener("mousemove",T),function(){return p.removeEventListener("mousemove",T)};function T(L){var P=L.clientX,U=L.clientY;r4.getBoundingClientRect=a4(P,U),E?.()}}),[i.followCursor,p,E]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=f&&null!=E&&null!=i.mutationObserverOptions){var T=new MutationObserver(E);return T.observe(f,i.mutationObserverOptions),function(){return T.disconnect()}}}),[i.mutationObserverOptions,f,E]);var M=a((function(L){return void 0===L&&(L={}),H({},L,{style:H({},L.style,D.popper)},x.popper,{"data-popper-interactive":i.interactive})}),"getTooltipProps"),W=a((function(L){return void 0===L&&(L={}),H({},L,x.arrow,{style:H({},L.style,D.arrow),"data-popper-arrow":!0})}),"getArrowProps");return H({getArrowProps:W,getTooltipProps:M,setTooltipRef:v,setTriggerRef:d,tooltipRef:f,triggerRef:p,visible:m},C)}var RB,FB,r4,n4,u4,tt,kB,TB,F1,l4=F((()=>{ai(),qe(),t4(),a(o4,"useGetLatest"),RB=a((function(){}),"noop"),a(AB,"useControlledState"),a(a4,"generateBoundingClientRect"),FB=["styles","attributes"],r4={getBoundingClientRect:a4()},n4={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"},a(i4,"usePopperTooltip")})),c4=F((()=>{u4=we(Qo(),1),tt=(0,u4.default)(1e3)(((e,t,r,n=0)=>t.split("-")[0]===e?r:n)),8,kB=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({position:"absolute",borderStyle:"solid"},(({placement:e})=>{let t=0,r=0;switch(!0){case e.startsWith("left")||e.startsWith("right"):r=8;break;case e.startsWith("top")||e.startsWith("bottom"):t=8}return{transform:`translate3d(${t}px, ${r}px, 0px)`}}),(({theme:e,color:t,placement:r})=>({bottom:`${tt("top",r,"-8px","auto")}`,top:`${tt("bottom",r,"-8px","auto")}`,right:`${tt("left",r,"-8px","auto")}`,left:`${tt("right",r,"-8px","auto")}`,borderBottomWidth:`${tt("top",r,"0",8)}px`,borderTopWidth:`${tt("bottom",r,"0",8)}px`,borderRightWidth:`${tt("left",r,"0",8)}px`,borderLeftWidth:`${tt("right",r,"0",8)}px`,borderTopColor:tt("top",r,e.color[t]||t||"light"===e.base?(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent"),borderBottomColor:tt("bottom",r,e.color[t]||t||"light"===e.base?(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent"),borderLeftColor:tt("left",r,e.color[t]||t||"light"===e.base?(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent"),borderRightColor:tt("right",r,e.color[t]||t||"light"===e.base?(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent")}))),TB=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647})),(({theme:e,color:t,hasChrome:r})=>r?{background:t&&e.color[t]||t||"light"===e.base?(0,_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:e.appBorderRadius,fontSize:e.typography.size.s1}:{})),(F1=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({placement:e="top",hasChrome:t=!0,children:r,arrowProps:n={},tooltipRef:o,color:i,withArrows:l,...u},c)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(TB,{"data-testid":"tooltip",hasChrome:t,ref:c,...u,color:i},t&&l&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(kB,{placement:e,...n,color:i}),r)))).displayName="Tooltip"})),T1={};an(T1,{WithToolTipState:()=>k1,WithTooltip:()=>k1,WithTooltipPure:()=>d4});var Xl,_B,PB,d4,k1,Yl=F((()=>{oi(),l4(),c4(),({document:Xl}=ln),_B=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div` display: inline-block; cursor: ${e=>"hover"===e.trigger||e.trigger.includes("hover")?"default":"pointer"}; `,PB=_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.I4.g` @@ -53,7 +53,7 @@ overflow: hidden; font-family: ${_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.Il.fonts.mono}; font-size: ${_storybook_core_theming__WEBPACK_IMPORTED_MODULE_1__.Il.size.s2-1}px; -`,Pu),x_={};Object.keys(Pu).forEach((e=>{x_[e]=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((t,r)=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(e,{...t,ref:r})))}))},"./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/theming/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C6:()=>zr,D8:()=>pc,DP:()=>Mt,EG:()=>sr,I4:()=>Tr,Il:()=>H,NP:()=>jt,Zj:()=>Ne,a:()=>yo,i7:()=>be,v_:()=>gc,yW:()=>g});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("storybook/internal/client-logger"),Bn=Object.create,or=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,Hn=Object.getOwnPropertyNames,Vn=Object.getPrototypeOf,Un=Object.prototype.hasOwnProperty,a=(e,r)=>or(e,"name",{value:r,configurable:!0}),Ee=(e=>__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/theming sync recursive"))(),Le=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ir=(e,r,t)=>(t=null!=e?Bn(Vn(e)):{},((e,r,t,n)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let o of Hn(r))!Un.call(e,o)&&o!==t&&or(e,o,{get:()=>r[o],enumerable:!(n=$n(r,o))||n.enumerable});return e})(!r&&e&&e.__esModule?t:or(t,"default",{value:e,enumerable:!0}),e)),ct=Le((R=>{!function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function A(b){return"string"==typeof b||"function"==typeof b||b===n||b===d||b===i||b===o||b===l||b===p||"object"==typeof b&&null!==b&&(b.$$typeof===h||b.$$typeof===v||b.$$typeof===s||b.$$typeof===u||b.$$typeof===f||b.$$typeof===y||b.$$typeof===x||b.$$typeof===E||b.$$typeof===m)}function T(b){if("object"==typeof b&&null!==b){var ar=b.$$typeof;switch(ar){case r:var Pe=b.type;switch(Pe){case c:case d:case n:case i:case o:case l:return Pe;default:var Br=Pe&&Pe.$$typeof;switch(Br){case u:case f:case h:case v:case s:return Br;default:return ar}}case t:return ar}}}a(A,"isValidElementType"),a(T,"typeOf");var C=c,N=d,S=u,xe=s,W=r,G=f,er=n,rr=h,tr=v,nr=t,Tn=i,Cn=o,Rn=l,jr=!1;function An(b){return jr||(jr=!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.")),Dr(b)||T(b)===c}function Dr(b){return T(b)===d}function _n(b){return T(b)===u}function Fn(b){return T(b)===s}function Nn(b){return"object"==typeof b&&null!==b&&b.$$typeof===r}function In(b){return T(b)===f}function kn(b){return T(b)===n}function Pn(b){return T(b)===h}function Ln(b){return T(b)===v}function zn(b){return T(b)===t}function Mn(b){return T(b)===i}function jn(b){return T(b)===o}function Dn(b){return T(b)===l}a(An,"isAsyncMode"),a(Dr,"isConcurrentMode"),a(_n,"isContextConsumer"),a(Fn,"isContextProvider"),a(Nn,"isElement"),a(In,"isForwardRef"),a(kn,"isFragment"),a(Pn,"isLazy"),a(Ln,"isMemo"),a(zn,"isPortal"),a(Mn,"isProfiler"),a(jn,"isStrictMode"),a(Dn,"isSuspense"),R.AsyncMode=C,R.ConcurrentMode=N,R.ContextConsumer=S,R.ContextProvider=xe,R.Element=W,R.ForwardRef=G,R.Fragment=er,R.Lazy=rr,R.Memo=tr,R.Portal=nr,R.Profiler=Tn,R.StrictMode=Cn,R.Suspense=Rn,R.isAsyncMode=An,R.isConcurrentMode=Dr,R.isContextConsumer=_n,R.isContextProvider=Fn,R.isElement=Nn,R.isForwardRef=In,R.isFragment=kn,R.isLazy=Pn,R.isMemo=Ln,R.isPortal=zn,R.isProfiler=Mn,R.isStrictMode=jn,R.isSuspense=Dn,R.isValidElementType=A,R.typeOf=T}()})),lt=Le(((xi,ft)=>{ft.exports=ct()})),mr=Le(((Ei,bt)=>{var dr=lt(),ua={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ca={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ht={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pr={};function dt(e){return dr.isMemo(e)?ht:pr[e.$$typeof]||ua}pr[dr.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pr[dr.Memo]=ht,a(dt,"getStatics");var la=Object.defineProperty,da=Object.getOwnPropertyNames,pt=Object.getOwnPropertySymbols,pa=Object.getOwnPropertyDescriptor,ma=Object.getPrototypeOf,mt=Object.prototype;function gt(e,r,t){if("string"!=typeof r){if(mt){var n=ma(r);n&&n!==mt&>(e,n,t)}var o=da(r);pt&&(o=o.concat(pt(r)));for(var i=dt(e),s=dt(r),u=0;u{!function(e){if("object"==typeof fn&&typeof Ir<"u")Ir.exports=e();else if("function"==typeof define&&__webpack_require__.amdO)define([],e);else{(typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:this).memoizerific=e()}}((function(){return a((function n(o,i,s){function u(f,l){if(!i[f]){if(!o[f]){var p="function"==typeof Ee&&Ee;if(!l&&p)return p(f,!0);if(c)return c(f,!0);var v=new Error("Cannot find module '"+f+"'");throw v.code="MODULE_NOT_FOUND",v}var h=i[f]={exports:{}};o[f][0].call(h.exports,(function(m){return u(o[f][1][m]||m)}),h,h.exports,n,o,i,s)}return i[f].exports}a(u,"s");for(var c="function"==typeof Ee&&Ee,d=0;d=0?(this.lastItem=this.list[c],this.list[c].val):void 0},s.prototype.set=function(u,c){var d;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=c,this):(d=this.indexOf(u))>=0?(this.lastItem=this.list[d],this.list[d].val=c,this):(this.lastItem={key:u,val:c},this.list.push(this.lastItem),this.size++,this)},s.prototype.delete=function(u){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),(c=this.indexOf(u))>=0)return this.size--,this.list.splice(c,1)[0]},s.prototype.has=function(u){var c;return!(!this.lastItem||!this.isEqual(this.lastItem.key,u))||(c=this.indexOf(u))>=0&&(this.lastItem=this.list[c],!0)},s.prototype.forEach=function(u,c){var d;for(d=0;d=0&&(!(v=(p=f[h]).cacheItem.get(p.arg))||!v.size);h--)p.cacheItem.delete(p.arg)}function d(f,l){return f===l||f!=f&&l!=l}o.exports=function(f){var l=new s(!1),p=[];return function(v){var h=a((function(){var y,x,C,m=l,E=arguments.length-1,A=Array(E+1),T=!0;if((h.numArgs||0===h.numArgs)&&h.numArgs!==E+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(C=0;C0&&(A[E]={cacheItem:m,arg:arguments[E]},T?u(p,A):p.push(A),p.length>f&&c(p.shift())),h.wasMemoized=T,h.numArgs=E+1,x}),"memoizerific");return h.limit=f,h.wasMemoized=!1,h.cache=l,h.lru=p,h}},a(u,"moveToMostRecentLru"),a(c,"removeCachedResult"),a(d,"isEqual")},{"map-or-similar":1}]},{},[3])(3)}))}));function j(){return j=Object.assign?Object.assign.bind():function(e){for(var r=1;r0?_(le,--L):0,ce--,10===F&&(ce=1,De--),F}function z(){return F=L2||fe(F)>3?"":" "}function Kr(e,r){for(;--r&&z()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return pe(e,Te()+(r<6&&32==D()&&32==z()))}function fr(e){for(;z();)switch(F){case e:return L;case 34:case 39:34!==e&&39!==e&&fr(F);break;case 40:41===e&&fr(e);break;case 92:z()}return L}function Xr(e,r){for(;z()&&e+F!==57&&(e+F!==84||47!==D()););return"/*"+pe(r,L-1)+"*"+X(47===e?e:z())}function Qr(e){for(;!fe(D());)z();return pe(e,L)}function tt(e){return $e(He("",null,null,null,[""],e=Be(e),0,[0],e))}function He(e,r,t,n,o,i,s,u,c){for(var d=0,f=0,l=s,p=0,v=0,h=0,m=1,y=1,x=1,E=0,A="",T=o,C=i,N=n,S=A;y;)switch(h=E,E=z()){case 40:if(108!=h&&58==_(S,l-1)){-1!=Se(S+=w(me(E),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:S+=me(E);break;case 9:case 10:case 13:case 32:S+=Zr(h);break;case 92:S+=Kr(Te()-1,7);continue;case 47:switch(D()){case 42:case 47:ue(Jn(Xr(z(),Te()),r,t),c);break;default:S+="/"}break;case 123*m:u[d++]=P(S)*x;case 125*m:case 59:case 0:switch(E){case 0:case 125:y=0;case 59+f:-1==x&&(S=w(S,/\f/g,"")),v>0&&P(S)-l&&ue(v>32?rt(S+";",n,t,l-1):rt(w(S," ","")+";",n,t,l-2),c);break;case 59:S+=";";default:if(ue(N=et(S,r,t,d,f,o,u,A,T=[],C=[],l),i),123===E)if(0===f)He(S,r,N,N,T,i,l,u,C);else switch(99===p&&110===_(S,3)?100:p){case 100:case 108:case 109:case 115:He(e,N,N,n&&ue(et(e,N,N,0,0,o,u,A,o,T=[],l),C),o,C,l,u,n?T:C);break;default:He(S,N,N,N,[""],C,0,u,C)}}d=f=v=0,m=x=1,A=S="",l=s;break;case 58:l=1+P(S),v=h;default:if(m<1)if(123==E)--m;else if(125==E&&0==m++&&125==Jr())continue;switch(S+=X(E),E*m){case 38:x=f>0?1:(S+="\f",-1);break;case 44:u[d++]=(P(S)-1)*x,x=1;break;case 64:45===D()&&(S+=me(z())),p=D(),f=l=P(A=S+=Qr(Te())),E++;break;case 45:45===h&&2==P(S)&&(m=0)}}return i}function et(e,r,t,n,o,i,s,u,c,d,f){for(var l=o-1,p=0===o?i:[""],v=se(p),h=0,m=0,y=0;h0?p[x]+" "+E:w(E,/&\f/g,p[x])))&&(c[y++]=A);return Oe(e,r,t,0===o?oe:u,c,d,f)}function Jn(e,r,t){return Oe(e,r,t,ae,X(qr()),q(e,2,-2),0)}function rt(e,r,t,n){return Oe(e,r,t,ie,q(e,0,n),q(e,n+1,-1),n)}function Q(e,r){for(var t="",n=se(e),o=0;o-1}),"isIgnoringComment"),na=a((function(r){return function(t,n,o){if("rule"===t.type&&!r.compat){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var u=!!t.parent?t.parent.children:o,c=u.length-1;c>=0;c--){var d=u[c];if(d.line=0;n--)if(!st(t[n]))return!0;return!1}),"isPrependedWithRegularRules"),it=a((function(r){r.type="",r.value="",r.return="",r.children="",r.props=""}),"nullifyElement"),oa=a((function(r,t,n){st(r)&&(r.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."),it(r)):aa(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),it(r)))}),"incorrectImportAlarm");function ut(e,r){switch(Yr(e,r)){case 5103:return O+"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 O+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+we+e+k+e+e;case 6828:case 4268:return O+e+k+e+e;case 6165:return O+e+k+"flex-"+e+e;case 5187:return O+e+w(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return O+e+k+"flex-item-"+w(e,/flex-|-self/,"")+e;case 4675:return O+e+k+"flex-line-pack"+w(e,/align-content|flex-|-self/,"")+e;case 5548:return O+e+k+w(e,"shrink","negative")+e;case 5292:return O+e+k+w(e,"basis","preferred-size")+e;case 6060:return O+"box-"+w(e,"-grow","")+O+e+k+w(e,"grow","positive")+e;case 4554:return O+w(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,O+"$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(P(e)-1-r>6)switch(_(e,r+1)){case 109:if(45!==_(e,r+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+we+(108==_(e,r+3)?"$3":"$2-$3"))+e;case 115:return~Se(e,"stretch")?ut(w(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==_(e,r+1))break;case 6444:switch(_(e,P(e)-3-(~Se(e,"!important")&&10))){case 107:return w(e,":",":"+O)+e;case 101:return w(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(45===_(e,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+k+"$2box$3")+e}break;case 5936:switch(_(e,r+11)){case 114:return O+e+k+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+k+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+k+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return O+e+k+e+e}return e}a(ut,"prefix");var sa=[a((function(r,t,n,o){if(r.length>-1&&!r.return)switch(r.type){case ie:r.return=ut(r.value,r.length);break;case Me:return Q([de(r,{value:w(r.value,"@","@"+O)})],o);case oe:if(r.length)return cr(r.props,(function(i){switch(ur(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Q([de(r,{props:[w(i,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Q([de(r,{props:[w(i,/:(plac\w+)/,":"+O+"input-$1")]}),de(r,{props:[w(i,/:(plac\w+)/,":-moz-$1")]}),de(r,{props:[w(i,/:(plac\w+)/,k+"input-$1")]})],o)}return""}))}}),"prefixer")],Ve=a((function(r){var t=r.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.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(m){-1!==m.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(m),m.setAttribute("data-s",""))}))}var o=r.stylisPlugins||sa;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var s,i={},u=[];s=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(m){for(var y=m.getAttribute("data-emotion").split(" "),x=1;x=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}a(xt,"murmur2");var Et={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},wt="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",ga="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ba=/[A-Z]|^ms/g,Ft=/_EMO_([^_]+?)_([^]*?)_EMO_/g,br=a((function(r){return 45===r.charCodeAt(1)}),"isCustomProperty"),St=a((function(r){return null!=r&&"boolean"!=typeof r}),"isProcessableValue"),hr=ze((function(e){return br(e)?e:e.replace(ba,"-$&").toLowerCase()})),Ue=a((function(r,t){switch(r){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ft,(function(n,o,i){return $={name:o,styles:i,next:$},o}))}return 1===Et[r]||br(r)||"number"!=typeof t||0===t?t:t+"px"}),"processStyleValue");Ot=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Tt=["normal","none","initial","inherit","unset"],Ct=Ue,Rt=/^-ms-/,At=/-(.)/g,gr={},Ue=a((function(r,t){if("content"===r&&("string"!=typeof t||-1===Tt.indexOf(t)&&!Ot.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Ct(r,t);return""!==n&&!br(r)&&-1!==r.indexOf("-")&&void 0===gr[r]&&(gr[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(Rt,"ms-").replace(At,(function(o,i){return i.toUpperCase()}))+"?")),n}),"processStyleValue");var Ot,Tt,Ct,Rt,At,gr,Nt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ce(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles){if("NO_COMPONENT_SELECTOR"===t.toString())throw new Error(Nt);return t}switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return $={name:t.name,styles:t.styles,next:$},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)$={name:n.name,styles:n.styles,next:$},n=n.next;var o=t.styles+";";return void 0!==t.map&&(o+=t.map),o}return va(e,r,t);case"function":if(void 0!==e){var i=$,s=t(e);return $=i,Ce(e,r,s)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var u=[],c=t.replace(Ft,(function(f,l,p){var v="animation"+u.length;return u.push("const "+v+" = keyframes`"+p.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"}));u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}if(null==r)return t;var d=r[t];return void 0!==d?d:t}function va(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o ({})}!");return n}if(null==t||"object"!=typeof t||Array.isArray(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return j({},r,t)}),"getTheme"),wa=lr((function(e){return lr((function(r){return Ea(e,r)}))})),jt=a((function(r){var t=react__WEBPACK_IMPORTED_MODULE_0__.useContext(B);return r.theme!==t&&(t=wa(t)(r.theme)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(B.Provider,{value:t},r.children)}),"ThemeProvider");a((function Dt(e){var r=e.displayName||e.name||"Component",t=a((function(i,s){var u=react__WEBPACK_IMPORTED_MODULE_0__.useContext(B);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(e,j({theme:u,ref:s},i))}),"render"),n=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(t);return n.displayName="WithTheme("+r+")",yt(n,e)}),"withTheme");var yr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xr="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ra=a((function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return ee(t,n,o),ge((function(){return re(t,n,o)})),null}),"Insertion"),$t=J((function(e,r,t){var n=e.css;"string"==typeof n&&void 0!==r.registered[n]&&(n=r.registered[n]);var o=e[yr],i=[n],s="";"string"==typeof e.className?s=he(r.registered,i,e.className):null!=e.className&&(s=e.className+" ");var u=Y(i,void 0,react__WEBPACK_IMPORTED_MODULE_0__.useContext(B));if(-1===u.name.indexOf("-")){var c=e[xr];c&&(u=Y([u,"label:"+c+";"]))}s+=r.key+"-"+u.name;var d={};for(var f in e)We.call(e,f)&&"css"!==f&&f!==yr&&f!==xr&&(d[f]=e[f]);return d.ref=t,d.className=s,react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ra,{cache:r,serialized:u,isStringTag:"string"==typeof o}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(o,d))}));$t.displayName="EmotionCssPropInternal";ir(mr());var Vt=!1;function _e(){for(var e=arguments.length,r=new Array(e),t=0;t component."),s="",i)i[u]&&u&&(s&&(s+=" "),s+=u);break;default:s=i}s&&(o&&(o+=" "),o+=s)}}return o}),"classnames");function Na(e,r,t){var n=[],o=he(e,n,t);return n.length<2?t:o+r(n)}a(Na,"merge");var Sr,Or,Ia=a((function(r){var t=r.cache,n=r.serializedArr;return ge((function(){for(var o=0;o96?ka:Pa}),"getDefaultShouldForwardProp"),qt=a((function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(s){return r.__emotion_forwardProp(s)&&i(s)}:i}return"function"!=typeof o&&n&&(o=r.__emotion_forwardProp),o}),"composeShouldForwardProps"),Jt="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",La=a((function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return ee(t,n,o),ge((function(){return re(t,n,o)})),null}),"Insertion"),Tr=a((function e(r,t){if(void 0===r)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var i,s,n=r.__emotion_real===r,o=n&&r.__emotion_base||r;void 0!==t&&(i=t.label,s=t.target);var u=qt(r,t,n),c=u||Gt(o),d=!c("as");return function(){var f=arguments,l=n&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==i&&l.push("label:"+i+";"),null==f[0]||void 0===f[0].raw)l.push.apply(l,f);else{void 0===f[0][0]&&console.error(Jt),l.push(f[0][0]);for(var p=f.length,v=1;v1?o-1:0),s=1;s=0&&o<1?(u=i,c=s):o>=1&&o<2?(u=s,c=i):o>=2&&o<3?(c=i,d=s):o>=3&&o<4?(c=s,d=i):o>=4&&o<5?(u=s,d=i):o>=5&&o<6&&(u=i,d=s);var f=t-i/2;return n(u+f,c+f,d+f)}a(Rr,"colorToInt"),a(Da,"convertToInt"),a(Fe,"hslToRgb");var rn={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 Ba(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return rn[r]?"#"+rn[r]:e}a(Ba,"nameToHex");var $a=/^#[a-fA-F0-9]{6}$/,Ha=/^#[a-fA-F0-9]{8}$/,Va=/^#[a-fA-F0-9]{3}$/,Ua=/^#[a-fA-F0-9]{4}$/,Ar=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Wa=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Ya=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Ga=/^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 Je(e){if("string"!=typeof e)throw new V(3);var r=Ba(e);if(r.match($a))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(Ha)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(Va))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(Ua)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var o=Ar.exec(r);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=Wa.exec(r.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=Ya.exec(r);if(s){var f="rgb("+Fe(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",l=Ar.exec(f);if(!l)throw new V(4,r,f);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var p=Ga.exec(r.substring(0,50));if(p){var y="rgb("+Fe(parseInt(""+p[1],10),parseInt(""+p[2],10)/100,parseInt(""+p[3],10)/100)+")",x=Ar.exec(y);if(!x)throw new V(4,r,y);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+p[4])>1?parseFloat(""+p[4])/100:parseFloat(""+p[4])}}throw new V(5)}function qa(e){var r=e.red/255,t=e.green/255,n=e.blue/255,o=Math.max(r,t,n),i=Math.min(r,t,n),s=(o+i)/2;if(o===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u,c=o-i,d=s>.5?c/(2-o-i):c/(o+i);switch(o){case r:u=(t-n)/c+(t=1?qe(e,r,t):"rgba("+Fe(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?qe(e.hue,e.saturation,e.lightness):"rgba("+Fe(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new V(2)}function Nr(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Fr("#"+te(e)+te(r)+te(t));if("object"==typeof e&&void 0===r&&void 0===t)return Fr("#"+te(e.red)+te(e.green)+te(e.blue));throw new V(6)}function ve(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=Je(e);return"rgba("+o.red+","+o.green+","+o.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?Nr(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?Nr(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new V(7)}a(te,"numberToHex"),a(_r,"colorToHex"),a(Za,"convertToHex"),a(qe,"hslToHex"),a(Ka,"hsl"),a(Xa,"hsla"),a(Nr,"rgb"),a(ve,"rgba");var Qa=a((function(r){return"number"==typeof r.red&&"number"==typeof r.green&&"number"==typeof r.blue&&("number"!=typeof r.alpha||typeof r.alpha>"u")}),"isRgb"),eo=a((function(r){return"number"==typeof r.red&&"number"==typeof r.green&&"number"==typeof r.blue&&"number"==typeof r.alpha}),"isRgba"),ro=a((function(r){return"number"==typeof r.hue&&"number"==typeof r.saturation&&"number"==typeof r.lightness&&("number"!=typeof r.alpha||typeof r.alpha>"u")}),"isHsl"),to=a((function(r){return"number"==typeof r.hue&&"number"==typeof r.saturation&&"number"==typeof r.lightness&&"number"==typeof r.alpha}),"isHsla");function nn(e){if("object"!=typeof e)throw new V(8);if(eo(e))return ve(e);if(Qa(e))return Nr(e);if(to(e))return Xa(e);if(ro(e))return Ka(e);throw new V(8)}function an(e,r,t){return a((function(){var o=t.concat(Array.prototype.slice.call(arguments));return o.length>=r?e.apply(this,o):an(e,r,o)}),"fn")}function Ze(e){return an(e,e.length,[])}function Ke(e,r,t){return Math.max(e,Math.min(r,t))}function no(e,r){if("transparent"===r)return r;var t=tn(r);return nn(j({},t,{lightness:Ke(0,1,t.lightness-parseFloat(e))}))}a(nn,"toColorString"),a(an,"curried"),a(Ze,"curry"),a(Ke,"guard"),a(no,"darken");var on=Ze(no);function oo(e,r){if("transparent"===r)return r;var t=tn(r);return nn(j({},t,{lightness:Ke(0,1,t.lightness+parseFloat(e))}))}a(oo,"lighten");var sn=Ze(oo);function so(e,r){if("transparent"===r)return r;var t=Je(r);return ve(j({},t,{alpha:Ke(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}a(so,"opacify");var un=Ze(so);function co(e,r){if("transparent"===r)return r;var t=Je(r);return ve(j({},t,{alpha:Ke(0,1,+(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}a(co,"transparentize");var cn=Ze(co),g={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},U={app:"#F6F9FC",bar:g.lightest,content:g.lightest,preview:g.lightest,gridCellSize:10,hoverable:cn(.9,g.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},H={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},kr=ir(ln(),1),dn=(0,kr.default)(1)((({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}))),pn=((0,kr.default)(1)((({color:e,background:r,typography:t})=>{let n=dn({typography:t});return{...n,body:{...n.body,color:e.defaultText,background:r.app,overflow:"hidden"},hr:{...n.hr,borderTop:`1px solid ${e.border}`}}})),{base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:g.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:H.fonts.base,fontCode:H.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:g.mediumdark,barHoverColor:g.secondary,barSelectedColor:g.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:g.lightest,inputBorderRadius:4}),ye={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:U.app,appContentBg:g.lightest,appPreviewBg:g.lightest,appBorderColor:g.border,appBorderRadius:4,fontBase:H.fonts.base,fontCode:H.fonts.mono,textColor:g.darkest,textInverseColor:g.lightest,textMutedColor:g.dark,barTextColor:g.mediumdark,barHoverColor:g.secondary,barSelectedColor:g.secondary,barBg:g.lightest,buttonBg:U.app,buttonBorder:g.medium,booleanBg:g.mediumlight,booleanSelectedBg:g.lightest,inputBg:g.lightest,inputBorder:g.border,inputTextColor:g.darkest,inputBorderRadius:4},mn=(()=>{let e;return e=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:{},e})(),{window:Pr}=mn,hn=a((e=>({color:e})),"mkColor"),go=a((e=>"string"==typeof e||(_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1)),"isColorString"),bo=a((e=>!/(gradient|var|calc)/.test(e)),"isValidColorForPolished"),vo=a(((e,r)=>"darken"===e?ve(`${on(1,r)}`,.95):"lighten"===e?ve(`${sn(1,r)}`,.95):r),"applyPolished"),gn=a((e=>r=>{if(!go(r)||!bo(r))return r;try{return vo(e,r)}catch{return r}}),"colorFactory"),yo=gn("lighten"),Xe=(gn("darken"),a((()=>Pr&&Pr.matchMedia&&Pr.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),"getPreferredColorScheme")),Ne={light:ye,dark:pn,normal:ye},bn=(Xe(),{rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"}),Eo=be` +`,Pu),x_={};Object.keys(Pu).forEach((e=>{x_[e]=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((t,r)=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(e,{...t,ref:r})))}))},"./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/theming/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C6:()=>zr,D8:()=>pc,DP:()=>Mt,EG:()=>sr,I4:()=>Tr,Il:()=>H,NP:()=>jt,Zj:()=>Ne,a:()=>yo,i7:()=>be,v_:()=>gc,yW:()=>g});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("storybook/internal/client-logger"),Bn=Object.create,or=Object.defineProperty,$n=Object.getOwnPropertyDescriptor,Hn=Object.getOwnPropertyNames,Vn=Object.getPrototypeOf,Un=Object.prototype.hasOwnProperty,a=(e,r)=>or(e,"name",{value:r,configurable:!0}),Ee=(e=>__webpack_require__("./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/theming sync recursive"))(),Le=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ir=(e,r,t)=>(t=null!=e?Bn(Vn(e)):{},((e,r,t,n)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let o of Hn(r))!Un.call(e,o)&&o!==t&&or(e,o,{get:()=>r[o],enumerable:!(n=$n(r,o))||n.enumerable});return e})(!r&&e&&e.__esModule?t:or(t,"default",{value:e,enumerable:!0}),e)),ct=Le((R=>{!function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function A(b){return"string"==typeof b||"function"==typeof b||b===n||b===d||b===i||b===o||b===l||b===p||"object"==typeof b&&null!==b&&(b.$$typeof===h||b.$$typeof===v||b.$$typeof===s||b.$$typeof===u||b.$$typeof===f||b.$$typeof===y||b.$$typeof===x||b.$$typeof===E||b.$$typeof===m)}function T(b){if("object"==typeof b&&null!==b){var ar=b.$$typeof;switch(ar){case r:var Pe=b.type;switch(Pe){case c:case d:case n:case i:case o:case l:return Pe;default:var Br=Pe&&Pe.$$typeof;switch(Br){case u:case f:case h:case v:case s:return Br;default:return ar}}case t:return ar}}}a(A,"isValidElementType"),a(T,"typeOf");var C=c,N=d,S=u,xe=s,W=r,G=f,er=n,rr=h,tr=v,nr=t,Tn=i,Cn=o,Rn=l,jr=!1;function An(b){return jr||(jr=!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.")),Dr(b)||T(b)===c}function Dr(b){return T(b)===d}function _n(b){return T(b)===u}function Fn(b){return T(b)===s}function Nn(b){return"object"==typeof b&&null!==b&&b.$$typeof===r}function In(b){return T(b)===f}function kn(b){return T(b)===n}function Pn(b){return T(b)===h}function Ln(b){return T(b)===v}function zn(b){return T(b)===t}function Mn(b){return T(b)===i}function jn(b){return T(b)===o}function Dn(b){return T(b)===l}a(An,"isAsyncMode"),a(Dr,"isConcurrentMode"),a(_n,"isContextConsumer"),a(Fn,"isContextProvider"),a(Nn,"isElement"),a(In,"isForwardRef"),a(kn,"isFragment"),a(Pn,"isLazy"),a(Ln,"isMemo"),a(zn,"isPortal"),a(Mn,"isProfiler"),a(jn,"isStrictMode"),a(Dn,"isSuspense"),R.AsyncMode=C,R.ConcurrentMode=N,R.ContextConsumer=S,R.ContextProvider=xe,R.Element=W,R.ForwardRef=G,R.Fragment=er,R.Lazy=rr,R.Memo=tr,R.Portal=nr,R.Profiler=Tn,R.StrictMode=Cn,R.Suspense=Rn,R.isAsyncMode=An,R.isConcurrentMode=Dr,R.isContextConsumer=_n,R.isContextProvider=Fn,R.isElement=Nn,R.isForwardRef=In,R.isFragment=kn,R.isLazy=Pn,R.isMemo=Ln,R.isPortal=zn,R.isProfiler=Mn,R.isStrictMode=jn,R.isSuspense=Dn,R.isValidElementType=A,R.typeOf=T}()})),lt=Le(((xi,ft)=>{ft.exports=ct()})),mr=Le(((Ei,bt)=>{var dr=lt(),ua={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ca={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ht={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pr={};function dt(e){return dr.isMemo(e)?ht:pr[e.$$typeof]||ua}pr[dr.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pr[dr.Memo]=ht,a(dt,"getStatics");var la=Object.defineProperty,da=Object.getOwnPropertyNames,pt=Object.getOwnPropertySymbols,pa=Object.getOwnPropertyDescriptor,ma=Object.getPrototypeOf,mt=Object.prototype;function gt(e,r,t){if("string"!=typeof r){if(mt){var n=ma(r);n&&n!==mt&>(e,n,t)}var o=da(r);pt&&(o=o.concat(pt(r)));for(var i=dt(e),s=dt(r),u=0;u{!function(e){if("object"==typeof fn&&typeof Ir<"u")Ir.exports=e();else if("function"==typeof define&&__webpack_require__.amdO)define([],e);else{(typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:this).memoizerific=e()}}((function(){return a((function n(o,i,s){function u(f,l){if(!i[f]){if(!o[f]){var p="function"==typeof Ee&&Ee;if(!l&&p)return p(f,!0);if(c)return c(f,!0);var v=new Error("Cannot find module '"+f+"'");throw v.code="MODULE_NOT_FOUND",v}var h=i[f]={exports:{}};o[f][0].call(h.exports,(function(m){return u(o[f][1][m]||m)}),h,h.exports,n,o,i,s)}return i[f].exports}a(u,"s");for(var c="function"==typeof Ee&&Ee,d=0;d=0?(this.lastItem=this.list[c],this.list[c].val):void 0},s.prototype.set=function(u,c){var d;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=c,this):(d=this.indexOf(u))>=0?(this.lastItem=this.list[d],this.list[d].val=c,this):(this.lastItem={key:u,val:c},this.list.push(this.lastItem),this.size++,this)},s.prototype.delete=function(u){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),(c=this.indexOf(u))>=0)return this.size--,this.list.splice(c,1)[0]},s.prototype.has=function(u){var c;return!(!this.lastItem||!this.isEqual(this.lastItem.key,u))||(c=this.indexOf(u))>=0&&(this.lastItem=this.list[c],!0)},s.prototype.forEach=function(u,c){var d;for(d=0;d=0&&(!(v=(p=f[h]).cacheItem.get(p.arg))||!v.size);h--)p.cacheItem.delete(p.arg)}function d(f,l){return f===l||f!=f&&l!=l}o.exports=function(f){var l=new s(!1),p=[];return function(v){var h=a((function(){var y,x,C,m=l,E=arguments.length-1,A=Array(E+1),T=!0;if((h.numArgs||0===h.numArgs)&&h.numArgs!==E+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(C=0;C0&&(A[E]={cacheItem:m,arg:arguments[E]},T?u(p,A):p.push(A),p.length>f&&c(p.shift())),h.wasMemoized=T,h.numArgs=E+1,x}),"memoizerific");return h.limit=f,h.wasMemoized=!1,h.cache=l,h.lru=p,h}},a(u,"moveToMostRecentLru"),a(c,"removeCachedResult"),a(d,"isEqual")},{"map-or-similar":1}]},{},[3])(3)}))}));function j(){return j=Object.assign?Object.assign.bind():function(e){for(var r=1;r0?_(le,--L):0,ce--,10===F&&(ce=1,De--),F}function z(){return F=L2||fe(F)>3?"":" "}function Kr(e,r){for(;--r&&z()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return pe(e,Te()+(r<6&&32==D()&&32==z()))}function fr(e){for(;z();)switch(F){case e:return L;case 34:case 39:34!==e&&39!==e&&fr(F);break;case 40:41===e&&fr(e);break;case 92:z()}return L}function Xr(e,r){for(;z()&&e+F!==57&&(e+F!==84||47!==D()););return"/*"+pe(r,L-1)+"*"+X(47===e?e:z())}function Qr(e){for(;!fe(D());)z();return pe(e,L)}function tt(e){return $e(He("",null,null,null,[""],e=Be(e),0,[0],e))}function He(e,r,t,n,o,i,s,u,c){for(var d=0,f=0,l=s,p=0,v=0,h=0,m=1,y=1,x=1,E=0,A="",T=o,C=i,N=n,S=A;y;)switch(h=E,E=z()){case 40:if(108!=h&&58==_(S,l-1)){-1!=Se(S+=w(me(E),"&","&\f"),"&\f")&&(x=-1);break}case 34:case 39:case 91:S+=me(E);break;case 9:case 10:case 13:case 32:S+=Zr(h);break;case 92:S+=Kr(Te()-1,7);continue;case 47:switch(D()){case 42:case 47:ue(Jn(Xr(z(),Te()),r,t),c);break;default:S+="/"}break;case 123*m:u[d++]=P(S)*x;case 125*m:case 59:case 0:switch(E){case 0:case 125:y=0;case 59+f:-1==x&&(S=w(S,/\f/g,"")),v>0&&P(S)-l&&ue(v>32?rt(S+";",n,t,l-1):rt(w(S," ","")+";",n,t,l-2),c);break;case 59:S+=";";default:if(ue(N=et(S,r,t,d,f,o,u,A,T=[],C=[],l),i),123===E)if(0===f)He(S,r,N,N,T,i,l,u,C);else switch(99===p&&110===_(S,3)?100:p){case 100:case 108:case 109:case 115:He(e,N,N,n&&ue(et(e,N,N,0,0,o,u,A,o,T=[],l),C),o,C,l,u,n?T:C);break;default:He(S,N,N,N,[""],C,0,u,C)}}d=f=v=0,m=x=1,A=S="",l=s;break;case 58:l=1+P(S),v=h;default:if(m<1)if(123==E)--m;else if(125==E&&0==m++&&125==Jr())continue;switch(S+=X(E),E*m){case 38:x=f>0?1:(S+="\f",-1);break;case 44:u[d++]=(P(S)-1)*x,x=1;break;case 64:45===D()&&(S+=me(z())),p=D(),f=l=P(A=S+=Qr(Te())),E++;break;case 45:45===h&&2==P(S)&&(m=0)}}return i}function et(e,r,t,n,o,i,s,u,c,d,f){for(var l=o-1,p=0===o?i:[""],v=se(p),h=0,m=0,y=0;h0?p[x]+" "+E:w(E,/&\f/g,p[x])))&&(c[y++]=A);return Oe(e,r,t,0===o?oe:u,c,d,f)}function Jn(e,r,t){return Oe(e,r,t,ae,X(qr()),q(e,2,-2),0)}function rt(e,r,t,n){return Oe(e,r,t,ie,q(e,0,n),q(e,n+1,-1),n)}function Q(e,r){for(var t="",n=se(e),o=0;o-1}),"isIgnoringComment"),na=a((function(r){return function(t,n,o){if("rule"===t.type&&!r.compat){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var u=!!t.parent?t.parent.children:o,c=u.length-1;c>=0;c--){var d=u[c];if(d.line=0;n--)if(!st(t[n]))return!0;return!1}),"isPrependedWithRegularRules"),it=a((function(r){r.type="",r.value="",r.return="",r.children="",r.props=""}),"nullifyElement"),oa=a((function(r,t,n){st(r)&&(r.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."),it(r)):aa(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),it(r)))}),"incorrectImportAlarm");function ut(e,r){switch(Yr(e,r)){case 5103:return O+"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 O+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return O+e+we+e+k+e+e;case 6828:case 4268:return O+e+k+e+e;case 6165:return O+e+k+"flex-"+e+e;case 5187:return O+e+w(e,/(\w+).+(:[^]+)/,O+"box-$1$2"+k+"flex-$1$2")+e;case 5443:return O+e+k+"flex-item-"+w(e,/flex-|-self/,"")+e;case 4675:return O+e+k+"flex-line-pack"+w(e,/align-content|flex-|-self/,"")+e;case 5548:return O+e+k+w(e,"shrink","negative")+e;case 5292:return O+e+k+w(e,"basis","preferred-size")+e;case 6060:return O+"box-"+w(e,"-grow","")+O+e+k+w(e,"grow","positive")+e;case 4554:return O+w(e,/([^-])(transform)/g,"$1"+O+"$2")+e;case 6187:return w(w(w(e,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),e,"")+e;case 5495:case 3959:return w(e,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return w(w(e,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+e+e;case 4095:case 3583:case 4068:case 2532:return w(e,/(.+)-inline(.+)/,O+"$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(P(e)-1-r>6)switch(_(e,r+1)){case 109:if(45!==_(e,r+4))break;case 102:return w(e,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+we+(108==_(e,r+3)?"$3":"$2-$3"))+e;case 115:return~Se(e,"stretch")?ut(w(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==_(e,r+1))break;case 6444:switch(_(e,P(e)-3-(~Se(e,"!important")&&10))){case 107:return w(e,":",":"+O)+e;case 101:return w(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(45===_(e,14)?"inline-":"")+"box$3$1"+O+"$2$3$1"+k+"$2box$3")+e}break;case 5936:switch(_(e,r+11)){case 114:return O+e+k+w(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return O+e+k+w(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return O+e+k+w(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return O+e+k+e+e}return e}a(ut,"prefix");var sa=[a((function(r,t,n,o){if(r.length>-1&&!r.return)switch(r.type){case ie:r.return=ut(r.value,r.length);break;case Me:return Q([de(r,{value:w(r.value,"@","@"+O)})],o);case oe:if(r.length)return cr(r.props,(function(i){switch(ur(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Q([de(r,{props:[w(i,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return Q([de(r,{props:[w(i,/:(plac\w+)/,":"+O+"input-$1")]}),de(r,{props:[w(i,/:(plac\w+)/,":-moz-$1")]}),de(r,{props:[w(i,/:(plac\w+)/,k+"input-$1")]})],o)}return""}))}}),"prefixer")],Ve=a((function(r){var t=r.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.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(m){-1!==m.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(m),m.setAttribute("data-s",""))}))}var o=r.stylisPlugins||sa;if(/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var s,i={},u=[];s=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(m){for(var y=m.getAttribute("data-emotion").split(" "),x=1;x=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}a(xt,"murmur2");var Et={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},wt="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",ga="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ba=/[A-Z]|^ms/g,Ft=/_EMO_([^_]+?)_([^]*?)_EMO_/g,br=a((function(r){return 45===r.charCodeAt(1)}),"isCustomProperty"),St=a((function(r){return null!=r&&"boolean"!=typeof r}),"isProcessableValue"),hr=ze((function(e){return br(e)?e:e.replace(ba,"-$&").toLowerCase()})),Ue=a((function(r,t){switch(r){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ft,(function(n,o,i){return $={name:o,styles:i,next:$},o}))}return 1===Et[r]||br(r)||"number"!=typeof t||0===t?t:t+"px"}),"processStyleValue");Ot=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Tt=["normal","none","initial","inherit","unset"],Ct=Ue,Rt=/^-ms-/,At=/-(.)/g,gr={},Ue=a((function(r,t){if("content"===r&&("string"!=typeof t||-1===Tt.indexOf(t)&&!Ot.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Ct(r,t);return""!==n&&!br(r)&&-1!==r.indexOf("-")&&void 0===gr[r]&&(gr[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(Rt,"ms-").replace(At,(function(o,i){return i.toUpperCase()}))+"?")),n}),"processStyleValue");var Ot,Tt,Ct,Rt,At,gr,Nt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ce(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles){if("NO_COMPONENT_SELECTOR"===t.toString())throw new Error(Nt);return t}switch(typeof t){case"boolean":return"";case"object":if(1===t.anim)return $={name:t.name,styles:t.styles,next:$},t.name;if(void 0!==t.styles){var n=t.next;if(void 0!==n)for(;void 0!==n;)$={name:n.name,styles:n.styles,next:$},n=n.next;var o=t.styles+";";return void 0!==t.map&&(o+=t.map),o}return va(e,r,t);case"function":if(void 0!==e){var i=$,s=t(e);return $=i,Ce(e,r,s)}console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":var u=[],c=t.replace(Ft,(function(f,l,p){var v="animation"+u.length;return u.push("const "+v+" = keyframes`"+p.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+v+"}"}));u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+c+"`")}if(null==r)return t;var d=r[t];return void 0!==d?d:t}function va(e,r,t){var n="";if(Array.isArray(t))for(var o=0;o ({})}!");return n}if(null==t||"object"!=typeof t||Array.isArray(t))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return j({},r,t)}),"getTheme"),wa=lr((function(e){return lr((function(r){return Ea(e,r)}))})),jt=a((function(r){var t=react__WEBPACK_IMPORTED_MODULE_0__.useContext(B);return r.theme!==t&&(t=wa(t)(r.theme)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(B.Provider,{value:t},r.children)}),"ThemeProvider");a((function Dt(e){var r=e.displayName||e.name||"Component",t=a((function(i,s){var u=react__WEBPACK_IMPORTED_MODULE_0__.useContext(B);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(e,j({theme:u,ref:s},i))}),"render"),n=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(t);return n.displayName="WithTheme("+r+")",yt(n,e)}),"withTheme");var yr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xr="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ra=a((function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return ee(t,n,o),ge((function(){return re(t,n,o)})),null}),"Insertion"),$t=J((function(e,r,t){var n=e.css;"string"==typeof n&&void 0!==r.registered[n]&&(n=r.registered[n]);var o=e[yr],i=[n],s="";"string"==typeof e.className?s=he(r.registered,i,e.className):null!=e.className&&(s=e.className+" ");var u=Y(i,void 0,react__WEBPACK_IMPORTED_MODULE_0__.useContext(B));if(-1===u.name.indexOf("-")){var c=e[xr];c&&(u=Y([u,"label:"+c+";"]))}s+=r.key+"-"+u.name;var d={};for(var f in e)We.call(e,f)&&"css"!==f&&f!==yr&&f!==xr&&(d[f]=e[f]);return d.ref=t,d.className=s,react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ra,{cache:r,serialized:u,isStringTag:"string"==typeof o}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(o,d))}));$t.displayName="EmotionCssPropInternal";ir(mr());var Vt=!1;function _e(){for(var e=arguments.length,r=new Array(e),t=0;t component."),s="",i)i[u]&&u&&(s&&(s+=" "),s+=u);break;default:s=i}s&&(o&&(o+=" "),o+=s)}}return o}),"classnames");function Na(e,r,t){var n=[],o=he(e,n,t);return n.length<2?t:o+r(n)}a(Na,"merge");var Sr,Or,Ia=a((function(r){var t=r.cache,n=r.serializedArr;return ge((function(){for(var o=0;o96?ka:Pa}),"getDefaultShouldForwardProp"),qt=a((function(r,t,n){var o;if(t){var i=t.shouldForwardProp;o=r.__emotion_forwardProp&&i?function(s){return r.__emotion_forwardProp(s)&&i(s)}:i}return"function"!=typeof o&&n&&(o=r.__emotion_forwardProp),o}),"composeShouldForwardProps"),Jt="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",La=a((function(r){var t=r.cache,n=r.serialized,o=r.isStringTag;return ee(t,n,o),ge((function(){return re(t,n,o)})),null}),"Insertion"),Tr=a((function e(r,t){if(void 0===r)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var i,s,n=r.__emotion_real===r,o=n&&r.__emotion_base||r;void 0!==t&&(i=t.label,s=t.target);var u=qt(r,t,n),c=u||Gt(o),d=!c("as");return function(){var f=arguments,l=n&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==i&&l.push("label:"+i+";"),null==f[0]||void 0===f[0].raw)l.push.apply(l,f);else{void 0===f[0][0]&&console.error(Jt),l.push(f[0][0]);for(var p=f.length,v=1;v1?o-1:0),s=1;s=0&&o<1?(u=i,c=s):o>=1&&o<2?(u=s,c=i):o>=2&&o<3?(c=i,d=s):o>=3&&o<4?(c=s,d=i):o>=4&&o<5?(u=s,d=i):o>=5&&o<6&&(u=i,d=s);var f=t-i/2;return n(u+f,c+f,d+f)}a(Rr,"colorToInt"),a(Da,"convertToInt"),a(Fe,"hslToRgb");var rn={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 Ba(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return rn[r]?"#"+rn[r]:e}a(Ba,"nameToHex");var $a=/^#[a-fA-F0-9]{6}$/,Ha=/^#[a-fA-F0-9]{8}$/,Va=/^#[a-fA-F0-9]{3}$/,Ua=/^#[a-fA-F0-9]{4}$/,Ar=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Wa=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Ya=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Ga=/^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 Je(e){if("string"!=typeof e)throw new V(3);var r=Ba(e);if(r.match($a))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(Ha)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(Va))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(Ua)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var o=Ar.exec(r);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=Wa.exec(r.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=Ya.exec(r);if(s){var f="rgb("+Fe(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",l=Ar.exec(f);if(!l)throw new V(4,r,f);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var p=Ga.exec(r.substring(0,50));if(p){var y="rgb("+Fe(parseInt(""+p[1],10),parseInt(""+p[2],10)/100,parseInt(""+p[3],10)/100)+")",x=Ar.exec(y);if(!x)throw new V(4,r,y);return{red:parseInt(""+x[1],10),green:parseInt(""+x[2],10),blue:parseInt(""+x[3],10),alpha:parseFloat(""+p[4])>1?parseFloat(""+p[4])/100:parseFloat(""+p[4])}}throw new V(5)}function qa(e){var r=e.red/255,t=e.green/255,n=e.blue/255,o=Math.max(r,t,n),i=Math.min(r,t,n),s=(o+i)/2;if(o===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u,c=o-i,d=s>.5?c/(2-o-i):c/(o+i);switch(o){case r:u=(t-n)/c+(t=1?qe(e,r,t):"rgba("+Fe(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?qe(e.hue,e.saturation,e.lightness):"rgba("+Fe(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new V(2)}function Nr(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Fr("#"+te(e)+te(r)+te(t));if("object"==typeof e&&void 0===r&&void 0===t)return Fr("#"+te(e.red)+te(e.green)+te(e.blue));throw new V(6)}function ve(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=Je(e);return"rgba("+o.red+","+o.green+","+o.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?Nr(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?Nr(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new V(7)}a(te,"numberToHex"),a(_r,"colorToHex"),a(Za,"convertToHex"),a(qe,"hslToHex"),a(Ka,"hsl"),a(Xa,"hsla"),a(Nr,"rgb"),a(ve,"rgba");var Qa=a((function(r){return"number"==typeof r.red&&"number"==typeof r.green&&"number"==typeof r.blue&&("number"!=typeof r.alpha||typeof r.alpha>"u")}),"isRgb"),eo=a((function(r){return"number"==typeof r.red&&"number"==typeof r.green&&"number"==typeof r.blue&&"number"==typeof r.alpha}),"isRgba"),ro=a((function(r){return"number"==typeof r.hue&&"number"==typeof r.saturation&&"number"==typeof r.lightness&&("number"!=typeof r.alpha||typeof r.alpha>"u")}),"isHsl"),to=a((function(r){return"number"==typeof r.hue&&"number"==typeof r.saturation&&"number"==typeof r.lightness&&"number"==typeof r.alpha}),"isHsla");function nn(e){if("object"!=typeof e)throw new V(8);if(eo(e))return ve(e);if(Qa(e))return Nr(e);if(to(e))return Xa(e);if(ro(e))return Ka(e);throw new V(8)}function an(e,r,t){return a((function(){var o=t.concat(Array.prototype.slice.call(arguments));return o.length>=r?e.apply(this,o):an(e,r,o)}),"fn")}function Ze(e){return an(e,e.length,[])}function Ke(e,r,t){return Math.max(e,Math.min(r,t))}function no(e,r){if("transparent"===r)return r;var t=tn(r);return nn(j({},t,{lightness:Ke(0,1,t.lightness-parseFloat(e))}))}a(nn,"toColorString"),a(an,"curried"),a(Ze,"curry"),a(Ke,"guard"),a(no,"darken");var on=Ze(no);function oo(e,r){if("transparent"===r)return r;var t=tn(r);return nn(j({},t,{lightness:Ke(0,1,t.lightness+parseFloat(e))}))}a(oo,"lighten");var sn=Ze(oo);function so(e,r){if("transparent"===r)return r;var t=Je(r);return ve(j({},t,{alpha:Ke(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}a(so,"opacify");var un=Ze(so);function co(e,r){if("transparent"===r)return r;var t=Je(r);return ve(j({},t,{alpha:Ke(0,1,+(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}a(co,"transparentize");var cn=Ze(co),g={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},U={app:"#F6F9FC",bar:g.lightest,content:g.lightest,preview:g.lightest,gridCellSize:10,hoverable:cn(.9,g.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},H={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},kr=ir(ln(),1),dn=(0,kr.default)(1)((({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}))),pn=((0,kr.default)(1)((({color:e,background:r,typography:t})=>{let n=dn({typography:t});return{...n,body:{...n.body,color:e.defaultText,background:r.app,overflow:"hidden"},hr:{...n.hr,borderTop:`1px solid ${e.border}`}}})),{base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:g.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:H.fonts.base,fontCode:H.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:g.mediumdark,barHoverColor:g.secondary,barSelectedColor:g.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:g.lightest,inputBorderRadius:4}),ye={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:U.app,appContentBg:g.lightest,appPreviewBg:g.lightest,appBorderColor:g.border,appBorderRadius:4,fontBase:H.fonts.base,fontCode:H.fonts.mono,textColor:g.darkest,textInverseColor:g.lightest,textMutedColor:g.dark,barTextColor:g.mediumdark,barHoverColor:g.secondary,barSelectedColor:g.secondary,barBg:g.lightest,buttonBg:U.app,buttonBorder:g.medium,booleanBg:g.mediumlight,booleanSelectedBg:g.lightest,inputBg:g.lightest,inputBorder:g.border,inputTextColor:g.darkest,inputBorderRadius:4},mn=(()=>{let e;return e=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:{},e})(),{window:Pr}=mn,hn=a((e=>({color:e})),"mkColor"),go=a((e=>"string"==typeof e||(_storybook_core_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1)),"isColorString"),bo=a((e=>!/(gradient|var|calc)/.test(e)),"isValidColorForPolished"),vo=a(((e,r)=>"darken"===e?ve(`${on(1,r)}`,.95):"lighten"===e?ve(`${sn(1,r)}`,.95):r),"applyPolished"),gn=a((e=>r=>{if(!go(r)||!bo(r))return r;try{return vo(e,r)}catch{return r}}),"colorFactory"),yo=gn("lighten"),Xe=(gn("darken"),a((()=>Pr&&Pr.matchMedia&&Pr.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),"getPreferredColorScheme")),Ne={light:ye,dark:pn,normal:ye},bn=(Xe(),{rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"}),Eo=be` from { transform: rotate(0deg); } @@ -92,4 +92,4 @@ theme-data missing: `,r),zr(e)}),"ensure"),gc="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */"},"./node_modules/.pnpm/@storybook+icons@1.2.12_react-dom@16.14.0_react@16.14.0__react@16.14.0/node_modules/@storybook/icons/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{D3D:()=>ChevronDownIcon,LoD:()=>ZoomOutIcon,PU:()=>ZoomIcon,QDE:()=>MarkupIcon,Qpb:()=>SubtractIcon,REV:()=>AddIcon,abt:()=>ChevronSmallDownIcon,bMW:()=>EyeIcon,dbI:()=>EyeCloseIcon,ejX:()=>UndoIcon,npA:()=>VideoIcon,pyG:()=>DocumentIcon,qYV:()=>LinkIcon,tN5:()=>ChevronSmallUpIcon,vKP:()=>ChevronRightIcon,wV5:()=>ZoomResetIcon});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),ZoomIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:color})))),ZoomOutIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:color})))),ZoomResetIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:color})))),EyeIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:color})))),EyeCloseIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:color})))),VideoIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M2.5 10a.5.5 0 100-1 .5.5 0 000 1z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 4a2 2 0 012-2h6a2 2 0 012 2v.5l3.189-2.391A.5.5 0 0114 2.5v9a.5.5 0 01-.804.397L10 9.5v.5a2 2 0 01-2 2H2a2 2 0 01-2-2V4zm9 0v1.5a.5.5 0 00.8.4L13 3.5v7L9.8 8.1a.5.5 0 00-.8.4V10a1 1 0 01-1 1H2a1 1 0 01-1-1V4a1 1 0 011-1h6a1 1 0 011 1z",fill:color})))),DocumentIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:color})))),MarkupIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:color})))),AddIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:color})))),SubtractIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color})))),LinkIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:color})))),ChevronDownIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:color})))),ChevronRightIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:color})))),ChevronSmallUpIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:color})))),ChevronSmallDownIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:color})))),UndoIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:color}))))},"./node_modules/.pnpm/react@16.14.0/node_modules/react/cjs/react-jsx-runtime.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{var f=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),g=60103;if(exports.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var h=Symbol.for;g=h("react.element"),exports.Fragment=h("react.fragment")}var m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n=Object.prototype.hasOwnProperty,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,k){var b,d={},e=null,l=null;for(b in void 0!==k&&(e=""+k),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(l=a.ref),a)n.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:g,type:c,key:e,ref:l,props:d,_owner:m.current}}exports.jsx=q,exports.jsxs=q},"./node_modules/.pnpm/react@16.14.0/node_modules/react/jsx-runtime.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/cjs/react-jsx-runtime.production.min.js")}}]); -//# sourceMappingURL=529.0e030490.iframe.bundle.js.map \ No newline at end of file +//# sourceMappingURL=443.977eea32.iframe.bundle.js.map \ No newline at end of file diff --git a/529.0e030490.iframe.bundle.js.LICENSE.txt b/443.977eea32.iframe.bundle.js.LICENSE.txt similarity index 100% rename from 529.0e030490.iframe.bundle.js.LICENSE.txt rename to 443.977eea32.iframe.bundle.js.LICENSE.txt diff --git a/529.0e030490.iframe.bundle.js.map b/443.977eea32.iframe.bundle.js.map similarity index 99% rename from 529.0e030490.iframe.bundle.js.map rename to 443.977eea32.iframe.bundle.js.map index 98a305f..8d8c9fd 100644 --- a/529.0e030490.iframe.bundle.js.map +++ b/443.977eea32.iframe.bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"529.0e030490.iframe.bundle.js","mappings":";;;;;;;;;;;;;;;;;AAoNA;;ACigaA;AAIA;AACA;AAIA;;;;;;;;AAy7VA;;;;;;;AAmTA;;;;;AA2DA;;;;;AAyEA;;;;;;AAMA;AACA;AAIA;;;;;;;ACljrBA;;;AA2BA;;;;;AAIA;;;;AACA;AAnBA;;;AAoBA;;;;;;;;;;;AAIA;;;;AAgXA","sources":["webpack://@freecodecamp/ui/./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist/index.mjs","webpack://@freecodecamp/ui/./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/components/index.js","webpack://@freecodecamp/ui/./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/theming/index.js"],"sourcesContent":["import { __commonJS, __toESM, __require, getControlSetterButtonId, getControlId, cloneDeep, pickBy, uniq } from './chunk-2PTXLE6R.mjs';\nimport * as React15 from 'react';\nimport React15__default, { createContext, lazy, useState, useCallback, useRef, useEffect, Component, cloneElement, useMemo, Suspense, useContext, Children } from 'react';\nimport { withReset, SyntaxHighlighter, FlexBar, Form, IconButton, codeCommon, components, Zoom, ActionBar, Button, Link, ResetWrapper, Code, nameSpaceClassNames, H3, H2, Loader, EmptyTabContent, TabsState, ErrorFormatter, getStoryHref, WithTooltipPure } from 'storybook/internal/components';\nimport { styled, ignoreSsrWarning, useTheme, themes, ThemeProvider, convert, ensure } from 'storybook/internal/theming';\nimport { AddIcon, SubtractIcon, ChevronSmallUpIcon, ChevronSmallDownIcon, ChevronDownIcon as ChevronDownIcon$1, ChevronRightIcon, ZoomIcon, ZoomOutIcon, ZoomResetIcon, EyeCloseIcon, EyeIcon, DocumentIcon, UndoIcon, VideoIcon, LinkIcon } from '@storybook/icons';\nimport { deprecate, once, logger } from 'storybook/internal/client-logger';\nimport { includeConditionalArg } from '@storybook/csf';\nimport { filterArgTypes, composeConfigs, Preview as Preview$1, DocsContext as DocsContext$1 } from 'storybook/internal/preview-api';\nimport { SNIPPET_RENDERED, SourceType } from 'storybook/internal/docs-tools';\nimport { STORY_ARGS_UPDATED, UPDATE_STORY_ARGS, RESET_STORY_ARGS, GLOBALS_UPDATED, NAVIGATE_URL } from 'storybook/internal/core-events';\nimport { dedent } from 'ts-dedent';\nimport { Channel } from 'storybook/internal/channels';\n\nvar require_memoizerific=__commonJS({\"../../node_modules/memoizerific/memoizerific.js\"(exports,module){(function(f3){if(typeof exports==\"object\"&&typeof module<\"u\")module.exports=f3();else if(typeof define==\"function\"&&define.amd)define([],f3);else {var g2;typeof window<\"u\"?g2=window:typeof global<\"u\"?g2=global:typeof self<\"u\"?g2=self:g2=this,g2.memoizerific=f3();}})(function(){return function e2(t2,n2,r2){function s2(o3,u2){if(!n2[o3]){if(!t2[o3]){var a2=typeof __require==\"function\"&&__require;if(!u2&&a2)return a2(o3,!0);if(i2)return i2(o3,!0);var f3=new Error(\"Cannot find module '\"+o3+\"'\");throw f3.code=\"MODULE_NOT_FOUND\",f3}var l2=n2[o3]={exports:{}};t2[o3][0].call(l2.exports,function(e3){var n3=t2[o3][1][e3];return s2(n3||e3)},l2,l2.exports,e2,t2,n2,r2);}return n2[o3].exports}for(var i2=typeof __require==\"function\"&&__require,o2=0;o2=0)return this.lastItem=this.list[index],this.list[index].val},Similar.prototype.set=function(key2,val){var index;return this.lastItem&&this.isEqual(this.lastItem.key,key2)?(this.lastItem.val=val,this):(index=this.indexOf(key2),index>=0?(this.lastItem=this.list[index],this.list[index].val=val,this):(this.lastItem={key:key2,val},this.list.push(this.lastItem),this.size++,this))},Similar.prototype.delete=function(key2){var index;if(this.lastItem&&this.isEqual(this.lastItem.key,key2)&&(this.lastItem=void 0),index=this.indexOf(key2),index>=0)return this.size--,this.list.splice(index,1)[0]},Similar.prototype.has=function(key2){var index;return this.lastItem&&this.isEqual(this.lastItem.key,key2)?!0:(index=this.indexOf(key2),index>=0?(this.lastItem=this.list[index],!0):!1)},Similar.prototype.forEach=function(callback,thisArg){var i2;for(i2=0;i20&&(lruPath[argsLengthMinusOne]={cacheItem:currentCache,arg:arguments[argsLengthMinusOne]},isMemoized?moveToMostRecentLru(lru,lruPath):lru.push(lruPath),lru.length>limit&&removeCachedResult(lru.shift())),memoizerific.wasMemoized=isMemoized,memoizerific.numArgs=argsLengthMinusOne+1,fnResult};return memoizerific.limit=limit,memoizerific.wasMemoized=!1,memoizerific.cache=cache,memoizerific.lru=lru,memoizerific}};function moveToMostRecentLru(lru,lruPath){var lruLen=lru.length,lruPathLen=lruPath.length,isMatch,i2,ii;for(i2=0;i2=0&&(currentLru=removedLru[i2],tmp=currentLru.cacheItem.get(currentLru.arg),!tmp||!tmp.size);i2--)currentLru.cacheItem.delete(currentLru.arg);}function isEqual(val1,val2){return val1===val2||val1!==val1&&val2!==val2}},{\"map-or-similar\":1}]},{},[3])(3)});}});var require_default_options=__commonJS({\"../../node_modules/tocbot/src/js/default-options.js\"(exports,module){module.exports={tocSelector:\".js-toc\",contentSelector:\".js-toc-content\",headingSelector:\"h1, h2, h3\",ignoreSelector:\".js-toc-ignore\",hasInnerContainers:!1,linkClass:\"toc-link\",extraLinkClasses:\"\",activeLinkClass:\"is-active-link\",listClass:\"toc-list\",extraListClasses:\"\",isCollapsedClass:\"is-collapsed\",collapsibleClass:\"is-collapsible\",listItemClass:\"toc-list-item\",activeListItemClass:\"is-active-li\",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e2){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:\"is-position-fixed\",fixedSidebarOffset:\"auto\",includeHtml:!1,includeTitleTags:!1,onClick:function(e2){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:\"\",disableTocScrollSync:!1,tocScrollOffset:0};}});var require_build_html=__commonJS({\"../../node_modules/tocbot/src/js/build-html.js\"(exports,module){module.exports=function(options2){var forEach=[].forEach,some=[].some,body=document.body,tocElement,currentlyHighlighting=!0,SPACE_CHAR=\" \";function createEl(d2,container){var link=container.appendChild(createLink(d2));if(d2.children.length){var list=createList(d2.isCollapsed);d2.children.forEach(function(child){createEl(child,list);}),link.appendChild(list);}}function render(parent,data){var collapsed=!1,container=createList(collapsed);if(data.forEach(function(d2){createEl(d2,container);}),tocElement=parent||tocElement,tocElement!==null)return tocElement.firstChild&&tocElement.removeChild(tocElement.firstChild),data.length===0?tocElement:tocElement.appendChild(container)}function createLink(data){var item=document.createElement(\"li\"),a2=document.createElement(\"a\");return options2.listItemClass&&item.setAttribute(\"class\",options2.listItemClass),options2.onClick&&(a2.onclick=options2.onClick),options2.includeTitleTags&&a2.setAttribute(\"title\",data.textContent),options2.includeHtml&&data.childNodes.length?forEach.call(data.childNodes,function(node){a2.appendChild(node.cloneNode(!0));}):a2.textContent=data.textContent,a2.setAttribute(\"href\",options2.basePath+\"#\"+data.id),a2.setAttribute(\"class\",options2.linkClass+SPACE_CHAR+\"node-name--\"+data.nodeName+SPACE_CHAR+options2.extraLinkClasses),item.appendChild(a2),item}function createList(isCollapsed){var listElement=options2.orderedList?\"ol\":\"ul\",list=document.createElement(listElement),classes=options2.listClass+SPACE_CHAR+options2.extraListClasses;return isCollapsed&&(classes=classes+SPACE_CHAR+options2.collapsibleClass,classes=classes+SPACE_CHAR+options2.isCollapsedClass),list.setAttribute(\"class\",classes),list}function updateFixedSidebarClass(){if(options2.scrollContainer&&document.querySelector(options2.scrollContainer)){var top;top=document.querySelector(options2.scrollContainer).scrollTop;}else top=document.documentElement.scrollTop||body.scrollTop;var posFixedEl=document.querySelector(options2.positionFixedSelector);options2.fixedSidebarOffset===\"auto\"&&(options2.fixedSidebarOffset=tocElement.offsetTop),top>options2.fixedSidebarOffset?posFixedEl.className.indexOf(options2.positionFixedClass)===-1&&(posFixedEl.className+=SPACE_CHAR+options2.positionFixedClass):posFixedEl.className=posFixedEl.className.replace(SPACE_CHAR+options2.positionFixedClass,\"\");}function getHeadingTopPos(obj){var position=0;return obj!==null&&(position=obj.offsetTop,options2.hasInnerContainers&&(position+=getHeadingTopPos(obj.offsetParent))),position}function updateClassname(obj,className){return obj&&obj.className!==className&&(obj.className=className),obj}function updateToc(headingsArray){if(options2.scrollContainer&&document.querySelector(options2.scrollContainer)){var top;top=document.querySelector(options2.scrollContainer).scrollTop;}else top=document.documentElement.scrollTop||body.scrollTop;options2.positionFixedSelector&&updateFixedSidebarClass();var headings=headingsArray,topHeader;if(currentlyHighlighting&&tocElement!==null&&headings.length>0){some.call(headings,function(heading,i2){if(getHeadingTopPos(heading)>top+options2.headingsOffset+10){var index=i2===0?i2:i2-1;return topHeader=headings[index],!0}else if(i2===headings.length-1)return topHeader=headings[headings.length-1],!0});var oldActiveTocLink=tocElement.querySelector(\".\"+options2.activeLinkClass),activeTocLink=tocElement.querySelector(\".\"+options2.linkClass+\".node-name--\"+topHeader.nodeName+'[href=\"'+options2.basePath+\"#\"+topHeader.id.replace(/([ #;&,.+*~':\"!^$[\\]()=>|/\\\\@])/g,\"\\\\$1\")+'\"]');if(oldActiveTocLink===activeTocLink)return;var tocLinks=tocElement.querySelectorAll(\".\"+options2.linkClass);forEach.call(tocLinks,function(tocLink){updateClassname(tocLink,tocLink.className.replace(SPACE_CHAR+options2.activeLinkClass,\"\"));});var tocLis=tocElement.querySelectorAll(\".\"+options2.listItemClass);forEach.call(tocLis,function(tocLi){updateClassname(tocLi,tocLi.className.replace(SPACE_CHAR+options2.activeListItemClass,\"\"));}),activeTocLink&&activeTocLink.className.indexOf(options2.activeLinkClass)===-1&&(activeTocLink.className+=SPACE_CHAR+options2.activeLinkClass);var li=activeTocLink&&activeTocLink.parentNode;li&&li.className.indexOf(options2.activeListItemClass)===-1&&(li.className+=SPACE_CHAR+options2.activeListItemClass);var tocLists=tocElement.querySelectorAll(\".\"+options2.listClass+\".\"+options2.collapsibleClass);forEach.call(tocLists,function(list){list.className.indexOf(options2.isCollapsedClass)===-1&&(list.className+=SPACE_CHAR+options2.isCollapsedClass);}),activeTocLink&&activeTocLink.nextSibling&&activeTocLink.nextSibling.className.indexOf(options2.isCollapsedClass)!==-1&&updateClassname(activeTocLink.nextSibling,activeTocLink.nextSibling.className.replace(SPACE_CHAR+options2.isCollapsedClass,\"\")),removeCollapsedFromParents(activeTocLink&&activeTocLink.parentNode.parentNode);}}function removeCollapsedFromParents(element){return element&&element.className.indexOf(options2.collapsibleClass)!==-1&&element.className.indexOf(options2.isCollapsedClass)!==-1?(updateClassname(element,element.className.replace(SPACE_CHAR+options2.isCollapsedClass,\"\")),removeCollapsedFromParents(element.parentNode.parentNode)):element}function disableTocAnimation(event){var target=event.target||event.srcElement;typeof target.className!=\"string\"||target.className.indexOf(options2.linkClass)===-1||(currentlyHighlighting=!1);}function enableTocAnimation(){currentlyHighlighting=!0;}return {enableTocAnimation,disableTocAnimation,render,updateToc}};}});var require_parse_content=__commonJS({\"../../node_modules/tocbot/src/js/parse-content.js\"(exports,module){module.exports=function(options2){var reduce=[].reduce;function getLastItem(array2){return array2[array2.length-1]}function getHeadingLevel(heading){return +heading.nodeName.toUpperCase().replace(\"H\",\"\")}function isHTMLElement(maybeElement){try{return maybeElement instanceof window.HTMLElement||maybeElement instanceof window.parent.HTMLElement}catch{return maybeElement instanceof window.HTMLElement}}function getHeadingObject(heading){if(!isHTMLElement(heading))return heading;if(options2.ignoreHiddenElements&&(!heading.offsetHeight||!heading.offsetParent))return null;let headingLabel=heading.getAttribute(\"data-heading-label\")||(options2.headingLabelCallback?String(options2.headingLabelCallback(heading.innerText)):(heading.innerText||heading.textContent).trim());var obj={id:heading.id,children:[],nodeName:heading.nodeName,headingLevel:getHeadingLevel(heading),textContent:headingLabel};return options2.includeHtml&&(obj.childNodes=heading.childNodes),options2.headingObjectCallback?options2.headingObjectCallback(obj,heading):obj}function addNode(node,nest){for(var obj=getHeadingObject(node),level=obj.headingLevel,array2=nest,lastItem=getLastItem(array2),lastItemLevel=lastItem?lastItem.headingLevel:0,counter=level-lastItemLevel;counter>0&&(lastItem=getLastItem(array2),!(lastItem&&level===lastItem.headingLevel));)lastItem&&lastItem.children!==void 0&&(array2=lastItem.children),counter--;return level>=options2.collapseDepth&&(obj.isCollapsed=!0),array2.push(obj),array2}function selectHeadings(contentElement,headingSelector){var selectors=headingSelector;options2.ignoreSelector&&(selectors=headingSelector.split(\",\").map(function(selector){return selector.trim()+\":not(\"+options2.ignoreSelector+\")\"}));try{return contentElement.querySelectorAll(selectors)}catch{return console.warn(\"Headers not found with selector: \"+selectors),null}}function nestHeadingsArray(headingsArray){return reduce.call(headingsArray,function(prev,curr){var currentHeading=getHeadingObject(curr);return currentHeading&&addNode(currentHeading,prev.nest),prev},{nest:[]})}return {nestHeadingsArray,selectHeadings}};}});var require_update_toc_scroll=__commonJS({\"../../node_modules/tocbot/src/js/update-toc-scroll.js\"(exports,module){module.exports=function(options2){var toc=options2.tocElement||document.querySelector(options2.tocSelector);if(toc&&toc.scrollHeight>toc.clientHeight){var activeItem=toc.querySelector(\".\"+options2.activeListItemClass);activeItem&&(toc.scrollTop=activeItem.offsetTop-options2.tocScrollOffset);}};}});var require_scroll_smooth=__commonJS({\"../../node_modules/tocbot/src/js/scroll-smooth/index.js\"(exports){exports.initSmoothScrolling=initSmoothScrolling;function initSmoothScrolling(options2){var duration=options2.duration,offset=options2.offset,pageUrl=location.hash?stripHash(location.href):location.href;delegatedLinkHijacking();function delegatedLinkHijacking(){document.body.addEventListener(\"click\",onClick,!1);function onClick(e2){!isInPageLink(e2.target)||e2.target.className.indexOf(\"no-smooth-scroll\")>-1||e2.target.href.charAt(e2.target.href.length-2)===\"#\"&&e2.target.href.charAt(e2.target.href.length-1)===\"!\"||e2.target.className.indexOf(options2.linkClass)===-1||jump(e2.target.hash,{duration,offset,callback:function(){setFocus(e2.target.hash);}});}}function isInPageLink(n2){return n2.tagName.toLowerCase()===\"a\"&&(n2.hash.length>0||n2.href.charAt(n2.href.length-1)===\"#\")&&(stripHash(n2.href)===pageUrl||stripHash(n2.href)+\"#\"===pageUrl)}function stripHash(url){return url.slice(0,url.lastIndexOf(\"#\"))}function setFocus(hash){var element=document.getElementById(hash.substring(1));element&&(/^(?:a|select|input|button|textarea)$/i.test(element.tagName)||(element.tabIndex=-1),element.focus());}}function jump(target,options2){var start=window.pageYOffset,opt={duration:options2.duration,offset:options2.offset||0,callback:options2.callback,easing:options2.easing||easeInOutQuad},tgt=document.querySelector('[id=\"'+decodeURI(target).split(\"#\").join(\"\")+'\"]')||document.querySelector('[id=\"'+target.split(\"#\").join(\"\")+'\"]'),distance=typeof target==\"string\"?opt.offset+(target?tgt&&tgt.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):target,duration=typeof opt.duration==\"function\"?opt.duration(distance):opt.duration,timeStart,timeElapsed;requestAnimationFrame(function(time){timeStart=time,loop(time);});function loop(time){timeElapsed=time-timeStart,window.scrollTo(0,opt.easing(timeElapsed,start,distance,duration)),timeElapsed\"u\"&&!supports)return;var headingsArray,hasOwnProperty5=Object.prototype.hasOwnProperty;function extend(){for(var target={},i2=0;i21?_len2-1:0),_key2=1;_key2<_len2;_key2++)args2[_key2-1]=arguments[_key2];return _this=_Error.call(this,format.apply(void 0,[ERRORS[code]].concat(args2)))||this,_assertThisInitialized(_this)}return PolishedError2}(_wrapNativeSuper(Error));function colorToInt(color){return Math.round(color*255)}function convertToInt(red,green,blue){return colorToInt(red)+\",\"+colorToInt(green)+\",\"+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert2){if(convert2===void 0&&(convert2=convertToInt),saturation===0)return convert2(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2,finalRed=red+lightnessModification,finalGreen=green+lightnessModification,finalBlue=blue+lightnessModification;return convert2(finalRed,finalGreen,finalBlue)}var namedColorMap={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 nameToHex(color){if(typeof color!=\"string\")return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?\"#\"+namedColorMap[normalizedColorName]:color}var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*\\)$/i,rgbaRegex=/^rgb(?:a)?\\(\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,)?\\s*(\\d{1,3})\\s*(?:,|\\/)\\s*([-+]?\\d*[.]?\\d+[%]?)\\s*\\)$/i,hslRegex=/^hsl\\(\\s*(\\d{0,3}[.]?[0-9]+(?:deg)?)\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*(?:,)?\\s*(\\d{1,3}[.]?[0-9]?)%\\s*\\)$/i,hslaRegex=/^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 parseToRgb(color){if(typeof color!=\"string\")throw new PolishedError(3);var normalizedColor=nameToHex(color);if(normalizedColor.match(hexRegex))return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[2],16),green:parseInt(\"\"+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(\"\"+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(\"\"+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[2],16),green:parseInt(\"\"+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(\"\"+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[1],16),green:parseInt(\"\"+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(\"\"+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(\"\"+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return {red:parseInt(\"\"+normalizedColor[1]+normalizedColor[1],16),green:parseInt(\"\"+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(\"\"+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return {red:parseInt(\"\"+rgbMatched[1],10),green:parseInt(\"\"+rgbMatched[2],10),blue:parseInt(\"\"+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return {red:parseInt(\"\"+rgbaMatched[1],10),green:parseInt(\"\"+rgbaMatched[2],10),blue:parseInt(\"\"+rgbaMatched[3],10),alpha:parseFloat(\"\"+rgbaMatched[4])>1?parseFloat(\"\"+rgbaMatched[4])/100:parseFloat(\"\"+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var hue=parseInt(\"\"+hslMatched[1],10),saturation=parseInt(\"\"+hslMatched[2],10)/100,lightness=parseInt(\"\"+hslMatched[3],10)/100,rgbColorString=\"rgb(\"+hslToRgb(hue,saturation,lightness)+\")\",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return {red:parseInt(\"\"+hslRgbMatched[1],10),green:parseInt(\"\"+hslRgbMatched[2],10),blue:parseInt(\"\"+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _hue=parseInt(\"\"+hslaMatched[1],10),_saturation=parseInt(\"\"+hslaMatched[2],10)/100,_lightness=parseInt(\"\"+hslaMatched[3],10)/100,_rgbColorString=\"rgb(\"+hslToRgb(_hue,_saturation,_lightness)+\")\",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return {red:parseInt(\"\"+_hslRgbMatched[1],10),green:parseInt(\"\"+_hslRgbMatched[2],10),blue:parseInt(\"\"+_hslRgbMatched[3],10),alpha:parseFloat(\"\"+hslaMatched[4])>1?parseFloat(\"\"+hslaMatched[4])/100:parseFloat(\"\"+hslaMatched[4])}}throw new PolishedError(5)}function rgbToHsl(color){var red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return color.alpha!==void 0?{hue:0,saturation:0,lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness};var hue,delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green=1?hslToHex(value3,saturation,lightness):\"rgba(\"+hslToRgb(value3,saturation,lightness)+\",\"+alpha+\")\";if(typeof value3==\"object\"&&saturation===void 0&&lightness===void 0&&alpha===void 0)return value3.alpha>=1?hslToHex(value3.hue,value3.saturation,value3.lightness):\"rgba(\"+hslToRgb(value3.hue,value3.saturation,value3.lightness)+\",\"+value3.alpha+\")\";throw new PolishedError(2)}function rgb(value3,green,blue){if(typeof value3==\"number\"&&typeof green==\"number\"&&typeof blue==\"number\")return reduceHexValue$1(\"#\"+numberToHex(value3)+numberToHex(green)+numberToHex(blue));if(typeof value3==\"object\"&&green===void 0&&blue===void 0)return reduceHexValue$1(\"#\"+numberToHex(value3.red)+numberToHex(value3.green)+numberToHex(value3.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if(typeof firstValue==\"string\"&&typeof secondValue==\"number\"){var rgbValue=parseToRgb(firstValue);return \"rgba(\"+rgbValue.red+\",\"+rgbValue.green+\",\"+rgbValue.blue+\",\"+secondValue+\")\"}else {if(typeof firstValue==\"number\"&&typeof secondValue==\"number\"&&typeof thirdValue==\"number\"&&typeof fourthValue==\"number\")return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):\"rgba(\"+firstValue+\",\"+secondValue+\",\"+thirdValue+\",\"+fourthValue+\")\";if(typeof firstValue==\"object\"&&secondValue===void 0&&thirdValue===void 0&&fourthValue===void 0)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):\"rgba(\"+firstValue.red+\",\"+firstValue.green+\",\"+firstValue.blue+\",\"+firstValue.alpha+\")\"}throw new PolishedError(7)}var isRgb=function(color){return typeof color.red==\"number\"&&typeof color.green==\"number\"&&typeof color.blue==\"number\"&&(typeof color.alpha!=\"number\"||typeof color.alpha>\"u\")},isRgba=function(color){return typeof color.red==\"number\"&&typeof color.green==\"number\"&&typeof color.blue==\"number\"&&typeof color.alpha==\"number\"},isHsl=function(color){return typeof color.hue==\"number\"&&typeof color.saturation==\"number\"&&typeof color.lightness==\"number\"&&(typeof color.alpha!=\"number\"||typeof color.alpha>\"u\")},isHsla=function(color){return typeof color.hue==\"number\"&&typeof color.saturation==\"number\"&&typeof color.lightness==\"number\"&&typeof color.alpha==\"number\"};function toColorString(color){if(typeof color!=\"object\")throw new PolishedError(8);if(isRgba(color))return rgba(color);if(isRgb(color))return rgb(color);if(isHsla(color))return hsla(color);if(isHsl(color))return hsl(color);throw new PolishedError(8)}function curried(f3,length,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f3.apply(this,combined):curried(f3,length,combined)}}function curry(f3){return curried(f3,f3.length,[])}function guard(lowerBoundary,upperBoundary,value3){return Math.max(lowerBoundary,Math.min(upperBoundary,value3))}function darken(amount,color){if(color===\"transparent\")return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}var curriedDarken=curry(darken),curriedDarken$1=curriedDarken;function lighten(amount,color){if(color===\"transparent\")return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}var curriedLighten=curry(lighten),curriedLighten$1=curriedLighten;function opacify(amount,color){if(color===\"transparent\")return color;var parsedColor=parseToRgb(color),alpha=typeof parsedColor.alpha==\"number\"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,(alpha*100+parseFloat(amount)*100)/100)});return rgba(colorWithAlpha)}var curriedOpacify=curry(opacify),curriedOpacify$1=curriedOpacify;function transparentize(amount,color){if(color===\"transparent\")return color;var parsedColor=parseToRgb(color),alpha=typeof parsedColor.alpha==\"number\"?parsedColor.alpha:1,colorWithAlpha=_extends({},parsedColor,{alpha:guard(0,1,+(alpha*100-parseFloat(amount)*100).toFixed(2)/100)});return rgba(colorWithAlpha)}var curriedTransparentize=curry(transparentize),curriedTransparentize$1=curriedTransparentize;var Wrapper=styled.div(withReset,({theme})=>({backgroundColor:theme.base===\"light\"?\"rgba(0,0,0,.01)\":\"rgba(255,255,255,.01)\",borderRadius:theme.appBorderRadius,border:`1px dashed ${theme.appBorderColor}`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:20,margin:\"25px 0 40px\",color:curriedTransparentize$1(.3,theme.color.defaultText),fontSize:theme.typography.size.s2})),EmptyBlock=props=>React15__default.createElement(Wrapper,{...props,className:\"docblock-emptyblock sb-unstyled\"});var StyledSyntaxHighlighter=styled(SyntaxHighlighter)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,lineHeight:\"19px\",margin:\"25px 0 40px\",borderRadius:theme.appBorderRadius,boxShadow:theme.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\"}}));var SourceSkeletonWrapper=styled.div(({theme})=>({background:theme.background.content,borderRadius:theme.appBorderRadius,border:`1px solid ${theme.appBorderColor}`,boxShadow:theme.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\"})),SourceSkeletonPlaceholder=styled.div(({theme})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,height:17,marginTop:1,width:\"60%\",[`&:first-child${ignoreSsrWarning}`]:{margin:0}})),SourceSkeleton=()=>React15__default.createElement(SourceSkeletonWrapper,null,React15__default.createElement(SourceSkeletonPlaceholder,null),React15__default.createElement(SourceSkeletonPlaceholder,{style:{width:\"80%\"}}),React15__default.createElement(SourceSkeletonPlaceholder,{style:{width:\"30%\"}}),React15__default.createElement(SourceSkeletonPlaceholder,{style:{width:\"80%\"}})),Source=({isLoading,error,language,code,dark,format:format3=!1,...rest})=>{let{typography}=useTheme();if(isLoading)return React15__default.createElement(SourceSkeleton,null);if(error)return React15__default.createElement(EmptyBlock,null,error);let syntaxHighlighter=React15__default.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,format:format3,language,className:\"docblock-source sb-unstyled\",...rest},code);if(typeof dark>\"u\")return syntaxHighlighter;let overrideTheme=dark?themes.dark:themes.light;return React15__default.createElement(ThemeProvider,{theme:convert({...overrideTheme,fontCode:typography.fonts.mono,fontBase:typography.fonts.base})},syntaxHighlighter)};var toGlobalSelector=element=>`& :where(${element}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${element}))`,breakpoint=600,Title=styled.h1(withReset,({theme})=>({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,lineHeight:\"32px\",[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.l1,lineHeight:\"36px\",marginBottom:\"16px\"}})),Subtitle=styled.h2(withReset,({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:\"20px\",borderBottom:\"none\",marginBottom:15,[`@media (min-width: ${breakpoint}px)`]:{fontSize:theme.typography.size.m1,lineHeight:\"28px\",marginBottom:24},color:curriedTransparentize$1(.25,theme.color.defaultText)})),DocsContent=styled.div(({theme})=>{let reset={fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",WebkitTapHighlightColor:\"rgba(0, 0, 0, 0)\",WebkitOverflowScrolling:\"touch\"},headers={margin:\"20px 0 8px\",padding:0,cursor:\"text\",position:\"relative\",color:theme.color.defaultText,\"&:first-of-type\":{marginTop:0,paddingTop:0},\"&:hover a.anchor\":{textDecoration:\"none\"},\"& code\":{fontSize:\"inherit\"}},code={lineHeight:1,margin:\"0 2px\",padding:\"3px 5px\",whiteSpace:\"nowrap\",borderRadius:3,fontSize:theme.typography.size.s2-1,border:theme.base===\"light\"?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:theme.base===\"light\"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:theme.base===\"light\"?theme.color.lighter:theme.color.border};return {maxWidth:1e3,width:\"100%\",[toGlobalSelector(\"a\")]:{...reset,fontSize:\"inherit\",lineHeight:\"24px\",color:theme.color.secondary,textDecoration:\"none\",\"&.absent\":{color:\"#cc0000\"},\"&.anchor\":{display:\"block\",paddingLeft:30,marginLeft:-30,cursor:\"pointer\",position:\"absolute\",top:0,left:0,bottom:0}},[toGlobalSelector(\"blockquote\")]:{...reset,margin:\"16px 0\",borderLeft:`4px solid ${theme.color.medium}`,padding:\"0 15px\",color:theme.color.dark,\"& > :first-of-type\":{marginTop:0},\"& > :last-child\":{marginBottom:0}},[toGlobalSelector(\"div\")]:reset,[toGlobalSelector(\"dl\")]:{...reset,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}},[toGlobalSelector(\"h1\")]:{...reset,...headers,fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector(\"h2\")]:{...reset,...headers,fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`},[toGlobalSelector(\"h3\")]:{...reset,...headers,fontSize:`${theme.typography.size.m1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector(\"h4\")]:{...reset,...headers,fontSize:`${theme.typography.size.s3}px`},[toGlobalSelector(\"h5\")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`},[toGlobalSelector(\"h6\")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},[toGlobalSelector(\"hr\")]:{border:\"0 none\",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},[toGlobalSelector(\"img\")]:{maxWidth:\"100%\"},[toGlobalSelector(\"li\")]:{...reset,fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:\"24px\",\"& + li\":{marginTop:\".25em\"},\"& ul, & ol\":{marginTop:\".25em\",marginBottom:0},\"& code\":code},[toGlobalSelector(\"ol\")]:{...reset,margin:\"16px 0\",paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0}},[toGlobalSelector(\"p\")]:{...reset,margin:\"16px 0\",fontSize:theme.typography.size.s2,lineHeight:\"24px\",color:theme.color.defaultText,\"& code\":code},[toGlobalSelector(\"pre\")]:{...reset,fontFamily:theme.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\"}},[toGlobalSelector(\"span\")]:{...reset,\"&.frame\":{display:\"block\",overflow:\"hidden\",\"& > span\":{border:`1px solid ${theme.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:theme.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\"}}},[toGlobalSelector(\"table\")]:{...reset,margin:\"16px 0\",fontSize:theme.typography.size.s2,lineHeight:\"24px\",padding:0,borderCollapse:\"collapse\",\"& tr\":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},\"& tr:nth-of-type(2n)\":{backgroundColor:theme.base===\"dark\"?theme.color.darker:theme.color.lighter},\"& tr th\":{fontWeight:\"bold\",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:\"6px 13px\"},\"& tr td\":{border:`1px solid ${theme.appBorderColor}`,color:theme.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}},[toGlobalSelector(\"ul\")]:{...reset,margin:\"16px 0\",paddingLeft:30,\"& :first-of-type\":{marginTop:0},\"& :last-child\":{marginBottom:0},listStyle:\"disc\"}}}),DocsWrapper=styled.div(({theme})=>({background:theme.background.content,display:\"flex\",justifyContent:\"center\",padding:\"4rem 20px\",minHeight:\"100vh\",boxSizing:\"border-box\",gap:\"3rem\",[`@media (min-width: ${breakpoint}px)`]:{}})),DocsPageWrapper=({children,toc})=>React15__default.createElement(DocsWrapper,{className:\"sbdocs sbdocs-wrapper\"},React15__default.createElement(DocsContent,{className:\"sbdocs sbdocs-content\"},children),toc);var getBlockBackgroundStyle=theme=>({borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:theme.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 ${theme.appBorderColor}`});var{window:globalWindow}=globalThis,IFrame=class extends Component{constructor(){super(...arguments);this.iframe=null;}componentDidMount(){let{id}=this.props;this.iframe=globalWindow.document.getElementById(id);}shouldComponentUpdate(nextProps){let{scale}=nextProps;return scale!==this.props.scale&&this.setIframeBodyStyle({width:`${scale*100}%`,height:`${scale*100}%`,transform:`scale(${1/scale})`,transformOrigin:\"top left\"}),!1}setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}render(){let{id,title,src,allowFullScreen,scale,...rest}=this.props;return React15__default.createElement(\"iframe\",{id,title,src,...allowFullScreen?{allow:\"fullscreen\"}:{},loading:\"lazy\",...rest})}};var ZoomContext=createContext({scale:1});var{PREVIEW_URL}=globalThis,BASE_URL=PREVIEW_URL||\"iframe.html\",storyBlockIdFromId=({story,primary})=>`story--${story.id}${primary?\"--primary\":\"\"}`,InlineStory=props=>{let storyRef=useRef(),[showLoader,setShowLoader]=useState(!0),[error,setError]=useState(),{story,height,autoplay,forceInitialArgs,renderStoryToElement}=props;return useEffect(()=>{if(!(story&&storyRef.current))return ()=>{};let element=storyRef.current,cleanup=renderStoryToElement(story,element,{showMain:()=>{},showError:({title,description})=>setError(new Error(`${title} - ${description}`)),showException:err=>setError(err)},{autoplay,forceInitialArgs});return setShowLoader(!1),()=>{Promise.resolve().then(()=>cleanup());}},[autoplay,renderStoryToElement,story]),error?React15__default.createElement(\"pre\",null,React15__default.createElement(ErrorFormatter,{error})):React15__default.createElement(React15__default.Fragment,null,height?React15__default.createElement(\"style\",null,`#${storyBlockIdFromId(props)} { min-height: ${height}; transform: translateZ(0); overflow: auto }`):null,showLoader&&React15__default.createElement(StorySkeleton,null),React15__default.createElement(\"div\",{ref:storyRef,id:`${storyBlockIdFromId(props)}-inner`,\"data-name\":story.name}))},IFrameStory=({story,height=\"500px\"})=>React15__default.createElement(\"div\",{style:{width:\"100%\",height}},React15__default.createElement(ZoomContext.Consumer,null,({scale})=>React15__default.createElement(IFrame,{key:\"iframe\",id:`iframe--${story.id}`,title:story.name,src:getStoryHref(BASE_URL,story.id,{viewMode:\"story\"}),allowFullScreen:!0,scale,style:{width:\"100%\",height:\"100%\",border:\"0 none\"}}))),ErrorMessage=styled.strong(({theme})=>({color:theme.color.orange})),Story=props=>{let{inline,story}=props;return inline&&!props.autoplay&&story.usesMount?React15__default.createElement(ErrorMessage,null,\"This story mounts inside of play. Set\",\" \",React15__default.createElement(\"a\",{href:\"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay\"},\"autoplay\"),\" \",\"to true to view this story.\"):React15__default.createElement(\"div\",{id:storyBlockIdFromId(props),className:\"sb-story sb-unstyled\",\"data-story-block\":\"true\"},inline?React15__default.createElement(InlineStory,{...props}):React15__default.createElement(IFrameStory,{...props}))},StorySkeleton=()=>React15__default.createElement(Loader,null);var Bar=styled(FlexBar)({position:\"absolute\",left:0,right:0,top:0,transition:\"transform .2s linear\"}),Wrapper2=styled.div({display:\"flex\",alignItems:\"center\",gap:4}),IconPlaceholder=styled.div(({theme})=>({width:14,height:14,borderRadius:2,margin:\"0 7px\",backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`})),Toolbar=({isLoading,storyId,baseUrl,zoom,resetZoom,...rest})=>React15__default.createElement(Bar,{...rest},React15__default.createElement(Wrapper2,{key:\"left\"},isLoading?[1,2,3].map(key2=>React15__default.createElement(IconPlaceholder,{key:key2})):React15__default.createElement(React15__default.Fragment,null,React15__default.createElement(IconButton,{key:\"zoomin\",onClick:e2=>{e2.preventDefault(),zoom(.8);},title:\"Zoom in\"},React15__default.createElement(ZoomIcon,null)),React15__default.createElement(IconButton,{key:\"zoomout\",onClick:e2=>{e2.preventDefault(),zoom(1.25);},title:\"Zoom out\"},React15__default.createElement(ZoomOutIcon,null)),React15__default.createElement(IconButton,{key:\"zoomreset\",onClick:e2=>{e2.preventDefault(),resetZoom();},title:\"Reset zoom\"},React15__default.createElement(ZoomResetIcon,null)))));var ChildrenContainer=styled.div(({isColumn,columns,layout})=>({display:isColumn||!columns?\"block\":\"flex\",position:\"relative\",flexWrap:\"wrap\",overflow:\"auto\",flexDirection:isColumn?\"column\":\"row\",\"& .innerZoomElementWrapper > *\":isColumn?{width:layout!==\"fullscreen\"?\"calc(100% - 20px)\":\"100%\",display:\"block\"}:{maxWidth:layout!==\"fullscreen\"?\"calc(100% - 20px)\":\"100%\",display:\"inline-block\"}}),({layout=\"padded\"})=>layout===\"centered\"||layout===\"padded\"?{padding:\"30px 20px\",\"& .innerZoomElementWrapper > *\":{width:\"auto\",border:\"10px solid transparent!important\"}}:{},({layout=\"padded\"})=>layout===\"centered\"?{display:\"flex\",justifyContent:\"center\",justifyItems:\"center\",alignContent:\"center\",alignItems:\"center\"}:{},({columns})=>columns&&columns>1?{\".innerZoomElementWrapper > *\":{minWidth:`calc(100% / ${columns} - 20px)`}}:{}),StyledSource=styled(Source)(({theme})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:\"none\",background:theme.base===\"light\"?\"rgba(0, 0, 0, 0.85)\":curriedDarken$1(.05,theme.background.content),color:theme.color.lightest,button:{background:theme.base===\"light\"?\"rgba(0, 0, 0, 0.85)\":curriedDarken$1(.05,theme.background.content)}})),PreviewContainer=styled.div(({theme,withSource,isExpanded})=>({position:\"relative\",overflow:\"hidden\",margin:\"25px 0 40px\",...getBlockBackgroundStyle(theme),borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0,\"h3 + &\":{marginTop:\"16px\"}}),({withToolbar})=>withToolbar&&{paddingTop:40}),getSource=(withSource,expanded,setExpanded)=>{switch(!0){case!!(withSource&&withSource.error):return {source:null,actionItem:{title:\"No code available\",className:\"docblock-code-toggle docblock-code-toggle--disabled\",disabled:!0,onClick:()=>setExpanded(!1)}};case expanded:return {source:React15__default.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:\"Hide code\",className:\"docblock-code-toggle docblock-code-toggle--expanded\",onClick:()=>setExpanded(!1)}};default:return {source:React15__default.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:\"Show code\",className:\"docblock-code-toggle\",onClick:()=>setExpanded(!0)}}}};function getStoryId(children){if(Children.count(children)===1){let elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=styled(Toolbar)({position:\"absolute\",top:0,left:0,right:0,height:40}),Relative=styled.div({overflow:\"hidden\",position:\"relative\"}),Preview=({isLoading,isColumn,columns,children,withSource,withToolbar=!1,isExpanded=!1,additionalActions,className,layout=\"padded\",...props})=>{let[expanded,setExpanded]=useState(isExpanded),{source:source2,actionItem}=getSource(withSource,expanded,setExpanded),[scale,setScale]=useState(1),previewClasses=[className].concat([\"sbdocs\",\"sbdocs-preview\",\"sb-unstyled\"]),defaultActionItems=withSource?[actionItem]:[],[additionalActionItems,setAdditionalActionItems]=useState(additionalActions?[...additionalActions]:[]),actionItems=[...defaultActionItems,...additionalActionItems],{window:globalWindow4}=globalThis,copyToClipboard=useCallback(async text=>{let{createCopyToClipboardFunction}=await import('storybook/internal/components');createCopyToClipboardFunction();},[]),onCopyCapture=e2=>{let selection=globalWindow4.getSelection();selection&&selection.type===\"Range\"||(e2.preventDefault(),additionalActionItems.filter(item=>item.title===\"Copied\").length===0&©ToClipboard(source2.props.code).then(()=>{setAdditionalActionItems([...additionalActionItems,{title:\"Copied\",onClick:()=>{}}]),globalWindow4.setTimeout(()=>setAdditionalActionItems(additionalActionItems.filter(item=>item.title!==\"Copied\")),1500);}));};return React15__default.createElement(PreviewContainer,{withSource,withToolbar,...props,className:previewClasses.join(\" \")},withToolbar&&React15__default.createElement(PositionedToolbar,{isLoading,border:!0,zoom:z2=>setScale(scale*z2),resetZoom:()=>setScale(1),storyId:getStoryId(children),baseUrl:\"./iframe.html\"}),React15__default.createElement(ZoomContext.Provider,{value:{scale}},React15__default.createElement(Relative,{className:\"docs-story\",onCopyCapture:withSource&&onCopyCapture},React15__default.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout},React15__default.createElement(Zoom.Element,{scale},Array.isArray(children)?children.map((child,i2)=>React15__default.createElement(\"div\",{key:i2},child)):React15__default.createElement(\"div\",null,children))),React15__default.createElement(ActionBar,{actionItems}))),withSource&&expanded&&source2)};styled(Preview)(()=>({\".docs-story\":{paddingTop:32,paddingBottom:40}}));function n(){return n=Object.assign?Object.assign.bind():function(e2){for(var n2=1;n2(e2[n2.toLowerCase()]=n2,e2),{for:\"htmlFor\"}),o={amp:\"&\",apos:\"'\",gt:\">\",lt:\"<\",nbsp:\"\\xA0\",quot:\"\\u201C\"},c=[\"style\",\"script\"],a=/([-A-Z0-9_:]+)(?:\\s*=\\s*(?:(?:\"((?:\\\\.|[^\"])*)\")|(?:'((?:\\\\.|[^'])*)')|(?:\\{((?:\\\\.|{[^}]*?}|[^}])*)\\})))?/gi,s=/mailto:/i,d=/\\n{2,}$/,u=/^(\\s*>[\\s\\S]*?)(?=\\n{2,})/,p=/^ *> ?/gm,f2=/^ {2,}\\n/,h=/^(?:( *[-*_])){3,} *(?:\\n *)+\\n/,m=/^\\s*(`{3,}|~{3,}) *(\\S+)?([^\\n]*?)?\\n([\\s\\S]+?)\\s*\\1 *(?:\\n *)*\\n?/,g=/^(?: {4}[^\\n]+\\n*)+(?:\\n *)+\\n?/,y=/^(`+)\\s*([\\s\\S]*?[^`])\\s*\\1(?!`)/,k=/^(?:\\n *)*\\n/,x=/\\r\\n?/g,b=/^\\[\\^([^\\]]+)](:(.*)((\\n+ {4,}.*)|(\\n(?!\\[\\^).+))*)/,v=/^\\[\\^([^\\]]+)]/,$=/\\f/g,w=/^---[ \\t]*\\n(.|\\n)*\\n---[ \\t]*\\n/,E=/^\\s*?\\[(x|\\s)\\]/,S=/^ *(#{1,6}) *([^\\n]+?)(?: +#*)?(?:\\n *)*(?:\\n|$)/,C=/^ *(#{1,6}) +([^\\n]+?)(?: +#*)?(?:\\n *)*(?:\\n|$)/,A=/^([^\\n]+)\\n *(=|-){3,} *(?:\\n *)+\\n/,O=/^ *(?!<[a-z][^ >/]* ?\\/>)<([a-z][^ >/]*) ?([^>]*)>\\n?(\\s*(?:<\\1[^>]*?>[\\s\\S]*?<\\/\\1>|(?!<\\1\\b)[\\s\\S])*?)<\\/\\1>(?!<\\/\\1>)\\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,L=/^)/,R=/^(data|aria|x)-[a-z_][a-z\\d_.-]*$/,z=/^ *<([a-z][a-z0-9:]*)(?:\\s+((?:<.*?>|[^>])*))?\\/?>(?!<\\/\\1>)(\\s*\\n)?/i,M=/^\\{.*\\}$/,I=/^(https?:\\/\\/[^\\s<]+[^<.,:;\"')\\]\\s])/,U=/^<([^ >]+@[^ >]+)>/,j=/^<([^ >]+:\\/[^ >]+)>/,B=/-([a-z])?/gi,N=/^(.*\\|?.*)\\n *(\\|? *[-:]+ *\\|[-| :]*)\\n((?:.*\\|.*\\n)*)\\n?/,H=/^\\[([^\\]]*)\\]:\\s+]+)>?\\s*(\"([^\"]*)\")?/,D=/^!\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,P=/^\\[([^\\]]*)\\] ?\\[([^\\]]*)\\]/,_=/(\\[|\\])/g,F=/(\\n|^[-*]\\s|^#|^ {2,}|^-{2,}|^>\\s)/,W=/\\t/g,G=/^ *\\| */,Z=/(^ *\\||\\| *$)/g,q=/ *$/,V=/^ *:-+: *$/,X=/^ *:-+ *$/,Q=/^ *-+: *$/,J=\"((?:\\\\[.*?\\\\][([].*?[)\\\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\\\n)*?)\",K=new RegExp(`^([*_])\\\\1${J}\\\\1\\\\1(?!\\\\1)`),Y=new RegExp(`^([*_])${J}\\\\1(?!\\\\1|\\\\w)`),ee=new RegExp(`^==${J}==`),ne=new RegExp(`^~~${J}~~`),te=/^\\\\([^0-9A-Za-z\\s])/,re=/^[\\s\\S]+?(?=[^0-9A-Z\\s\\u00c0-\\uffff&#;.()'\"]|\\d+\\.|\\n\\n| {2,}\\n|\\w+:\\S|$)/i,ie=/^\\n+/,le=/^([ \\t]*)/,oe=/\\\\([^\\\\])/g,ce=/ *\\n+$/,ae=/(?:^|\\n)( *)$/,se=\"(?:\\\\d+\\\\.)\",de=\"(?:[*+-])\";function ue(e2){return \"( *)(\"+(e2===1?se:de)+\") +\"}var pe=ue(1),fe=ue(2);function he(e2){return new RegExp(\"^\"+(e2===1?pe:fe))}var me=he(1),ge=he(2);function ye(e2){return new RegExp(\"^\"+(e2===1?pe:fe)+\"[^\\\\n]*(?:\\\\n(?!\\\\1\"+(e2===1?se:de)+\" )[^\\\\n]*)*(\\\\n|$)\",\"gm\")}var ke=ye(1),xe=ye(2);function be(e2){let n2=e2===1?se:de;return new RegExp(\"^( *)(\"+n2+\") [\\\\s\\\\S]+?(?:\\\\n{2,}(?! )(?!\\\\1\"+n2+\" (?!\"+n2+\" ))\\\\n*|\\\\s*\\\\n*$)\")}var ve=be(1),$e=be(2);function we(e2,n2){let t2=n2===1,r2=t2?ve:$e,i2=t2?ke:xe,l2=t2?me:ge;return {match(e3,n3,t3){let i3=ae.exec(t3);return i3&&(n3.list||!n3.inline&&!n3.simple)?r2.exec(e3=i3[1]+e3):null},order:1,parse(e3,n3,r3){let o2=t2?+e3[2]:void 0,c2=e3[0].replace(d,`\n`).match(i2),a2=!1;return {items:c2.map(function(e4,t3){let i3=l2.exec(e4)[0].length,o3=new RegExp(\"^ {1,\"+i3+\"}\",\"gm\"),s2=e4.replace(o3,\"\").replace(l2,\"\"),d2=t3===c2.length-1,u2=s2.indexOf(`\n\n`)!==-1||d2&&a2;a2=u2;let p2=r3.inline,f3=r3.list,h2;r3.list=!0,u2?(r3.inline=!1,h2=s2.replace(ce,`\n\n`)):(r3.inline=!0,h2=s2.replace(ce,\"\"));let m2=n3(h2,r3);return r3.inline=p2,r3.list=f3,m2}),ordered:t2,start:o2}},render:(n3,t3,r3)=>e2(n3.ordered?\"ol\":\"ul\",{key:r3.key,start:n3.type===\"20\"?n3.start:void 0},n3.items.map(function(n4,i3){return e2(\"li\",{key:i3},t3(n4,r3))}))}}var Ee=new RegExp(`^\\\\[((?:\\\\[[^\\\\]]*\\\\]|[^\\\\[\\\\]]|\\\\](?=[^\\\\[]*\\\\]))*)\\\\]\\\\(\\\\s*?(?:\\\\s+['\"]([\\\\s\\\\S]*?)['\"])?\\\\s*\\\\)`),Se=/^!\\[(.*?)\\]\\( *((?:\\([^)]*\\)|[^() ])*) *\"?([^)\"]*)?\"?\\)/,Ce=[u,m,g,S,A,C,L,N,ke,ve,xe,$e],Ae=[...Ce,/^[^\\n]+(?: \\n|\\n{2,})/,O,z];function Oe(e2){return e2.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,\"a\").replace(/[çÇ]/g,\"c\").replace(/[ðÐ]/g,\"d\").replace(/[ÈÉÊËéèêë]/g,\"e\").replace(/[ÏïÎîÍíÌì]/g,\"i\").replace(/[Ññ]/g,\"n\").replace(/[øØœŒÕõÔôÓóÒò]/g,\"o\").replace(/[ÜüÛûÚúÙù]/g,\"u\").replace(/[ŸÿÝý]/g,\"y\").replace(/[^a-z0-9- ]/gi,\"\").replace(/ /gi,\"-\").toLowerCase()}function Te(e2){return Q.test(e2)?\"right\":V.test(e2)?\"center\":X.test(e2)?\"left\":null}function Le(e2,n2,t2){let r2=t2.inTable;t2.inTable=!0;let i2=n2(e2.trim(),t2);t2.inTable=r2;let l2=[[]];return i2.forEach(function(e3,n3){e3.type===\"26\"?n3!==0&&n3!==i2.length-1&&l2.push([]):(e3.type!==\"27\"||i2[n3+1]!=null&&i2[n3+1].type!==\"26\"||(e3.text=e3.text.replace(q,\"\")),l2[l2.length-1].push(e3));}),l2}function Re(e2,n2,t2){t2.inline=!0;let r2=Le(e2[1],n2,t2),i2=e2[2].replace(Z,\"\").split(\"|\").map(Te),l2=function(e3,n3,t3){return e3.trim().split(`\n`).map(function(e4){return Le(e4,n3,t3)})}(e2[3],n2,t2);return t2.inline=!1,{align:i2,cells:l2,header:r2,type:\"25\"}}function ze(e2,n2){return e2.align[n2]==null?{}:{textAlign:e2.align[n2]}}function Me(e2){return function(n2,t2){return t2.inline?e2.exec(n2):null}}function Ie(e2){return function(n2,t2){return t2.inline||t2.simple?e2.exec(n2):null}}function Ue(e2){return function(n2,t2){return t2.inline||t2.simple?null:e2.exec(n2)}}function je(e2){return function(n2){return e2.exec(n2)}}function Be(e2,n2,t2){if(n2.inline||n2.simple||t2&&!t2.endsWith(`\n`))return null;let r2=\"\";e2.split(`\n`).every(e3=>!Ce.some(n3=>n3.test(e3))&&(r2+=e3+`\n`,e3.trim()));let i2=r2.trimEnd();return i2==\"\"?null:[r2,i2]}function Ne(e2){try{if(decodeURIComponent(e2).replace(/[^A-Za-z0-9/:]/g,\"\").match(/^\\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e2}function He(e2){return e2.replace(oe,\"$1\")}function De(e2,n2,t2){let r2=t2.inline||!1,i2=t2.simple||!1;t2.inline=!0,t2.simple=!0;let l2=e2(n2,t2);return t2.inline=r2,t2.simple=i2,l2}function Pe(e2,n2,t2){let r2=t2.inline||!1,i2=t2.simple||!1;t2.inline=!1,t2.simple=!0;let l2=e2(n2,t2);return t2.inline=r2,t2.simple=i2,l2}function _e(e2,n2,t2){return t2.inline=!1,e2(n2,t2)}var Fe=(e2,n2,t2)=>({children:De(n2,e2[1],t2)});function We(){return {}}function Ge(){return null}function Ze(...e2){return e2.filter(Boolean).join(\" \")}function qe(e2,n2,t2){let r2=e2,i2=n2.split(\".\");for(;i2.length&&(r2=r2[i2[0]],r2!==void 0);)i2.shift();return r2||t2}function Ve(t2=\"\",r2={}){r2.overrides=r2.overrides||{},r2.slugify=r2.slugify||Oe,r2.namedCodesToUnicode=r2.namedCodesToUnicode?n({},o,r2.namedCodesToUnicode):o;let i2=r2.createElement||React15.createElement;function d2(e2,t3,...l2){let o2=qe(r2.overrides,`${e2}.props`,{});return i2(function(e3,n2){let t4=qe(n2,e3);return t4?typeof t4==\"function\"||typeof t4==\"object\"&&\"render\"in t4?t4:qe(n2,`${e3}.component`,e3):e3}(e2,r2.overrides),n({},t3,o2,{className:Ze(t3?.className,o2.className)||void 0}),...l2)}function Z2(n2){n2=n2.replace(w,\"\");let t3=!1;r2.forceInline?t3=!0:r2.forceBlock||(t3=F.test(n2)===!1);let i3=oe2(J2(t3?n2:`${n2.trimEnd().replace(ie,\"\")}\n\n`,{inline:t3}));for(;typeof i3[i3.length-1]==\"string\"&&!i3[i3.length-1].trim();)i3.pop();if(r2.wrapper===null)return i3;let l2=r2.wrapper||(t3?\"span\":\"div\"),o2;if(i3.length>1||r2.forceWrapper)o2=i3;else {if(i3.length===1)return o2=i3[0],typeof o2==\"string\"?d2(\"span\",{key:\"outer\"},o2):o2;o2=null;}return React15.createElement(l2,{key:\"outer\"},o2)}function q2(n2){let t3=n2.match(a);return t3?t3.reduce(function(n3,t4,r3){let i3=t4.indexOf(\"=\");if(i3!==-1){let o2=function(e2){return e2.indexOf(\"-\")!==-1&&e2.match(R)===null&&(e2=e2.replace(B,function(e3,n4){return n4.toUpperCase()})),e2}(t4.slice(0,i3)).trim(),c2=function(e2){let n4=e2[0];return (n4==='\"'||n4===\"'\")&&e2.length>=2&&e2[e2.length-1]===n4?e2.slice(1,-1):e2}(t4.slice(i3+1).trim()),a2=l[o2]||o2,s2=n3[a2]=function(e2,n4){return e2===\"style\"?n4.split(/;\\s?/).reduce(function(e3,n5){let t5=n5.slice(0,n5.indexOf(\":\"));return e3[t5.trim().replace(/(-[a-z])/g,e4=>e4[1].toUpperCase())]=n5.slice(t5.length+1).trim(),e3},{}):e2===\"href\"||e2===\"src\"?Ne(n4):(n4.match(M)&&(n4=n4.slice(1,n4.length-1)),n4===\"true\"||n4!==\"false\"&&n4)}(o2,c2);typeof s2==\"string\"&&(O.test(s2)||z.test(s2))&&(n3[a2]=React15.cloneElement(Z2(s2.trim()),{key:r3}));}else t4!==\"style\"&&(n3[l[t4]||t4]=!0);return n3},{}):null}let V2=[],X2={},Q2={0:{match:Ue(u),order:1,parse:(e2,n2,t3)=>({children:n2(e2[0].replace(p,\"\"),t3)}),render:(e2,n2,t3)=>d2(\"blockquote\",{key:t3.key},n2(e2.children,t3))},1:{match:je(f2),order:1,parse:We,render:(e2,n2,t3)=>d2(\"br\",{key:t3.key})},2:{match:Ue(h),order:1,parse:We,render:(e2,n2,t3)=>d2(\"hr\",{key:t3.key})},3:{match:Ue(g),order:0,parse:e2=>({lang:void 0,text:e2[0].replace(/^ {4}/gm,\"\").replace(/\\n+$/,\"\")}),render:(e2,t3,r3)=>d2(\"pre\",{key:r3.key},d2(\"code\",n({},e2.attrs,{className:e2.lang?`lang-${e2.lang}`:\"\"}),e2.text))},4:{match:Ue(m),order:0,parse:e2=>({attrs:q2(e2[3]||\"\"),lang:e2[2]||void 0,text:e2[4],type:\"3\"})},5:{match:Ie(y),order:3,parse:e2=>({text:e2[2]}),render:(e2,n2,t3)=>d2(\"code\",{key:t3.key},e2.text)},6:{match:Ue(b),order:0,parse:e2=>(V2.push({footnote:e2[2],identifier:e2[1]}),{}),render:Ge},7:{match:Me(v),order:1,parse:e2=>({target:`#${r2.slugify(e2[1])}`,text:e2[1]}),render:(e2,n2,t3)=>d2(\"a\",{key:t3.key,href:Ne(e2.target)},d2(\"sup\",{key:t3.key},e2.text))},8:{match:Me(E),order:1,parse:e2=>({completed:e2[1].toLowerCase()===\"x\"}),render:(e2,n2,t3)=>d2(\"input\",{checked:e2.completed,key:t3.key,readOnly:!0,type:\"checkbox\"})},9:{match:Ue(r2.enforceAtxHeadings?C:S),order:1,parse:(e2,n2,t3)=>({children:De(n2,e2[2],t3),id:r2.slugify(e2[2]),level:e2[1].length}),render:(e2,n2,t3)=>d2(`h${e2.level}`,{id:e2.id,key:t3.key},n2(e2.children,t3))},10:{match:Ue(A),order:0,parse:(e2,n2,t3)=>({children:De(n2,e2[1],t3),level:e2[2]===\"=\"?1:2,type:\"9\"})},11:{match:je(O),order:1,parse(e2,n2,t3){let[,r3]=e2[3].match(le),i3=new RegExp(`^${r3}`,\"gm\"),l2=e2[3].replace(i3,\"\"),o2=(a2=l2,Ae.some(e3=>e3.test(a2))?_e:De);var a2;let s2=e2[1].toLowerCase(),d3=c.indexOf(s2)!==-1,u2={attrs:q2(e2[2]),noInnerParse:d3,tag:(d3?s2:e2[1]).trim()};return t3.inAnchor=t3.inAnchor||s2===\"a\",d3?u2.text=e2[3]:u2.children=o2(n2,l2,t3),t3.inAnchor=!1,u2},render:(e2,t3,r3)=>d2(e2.tag,n({key:r3.key},e2.attrs),e2.text||t3(e2.children,r3))},13:{match:je(z),order:1,parse:e2=>({attrs:q2(e2[2]||\"\"),tag:e2[1].trim()}),render:(e2,t3,r3)=>d2(e2.tag,n({},e2.attrs,{key:r3.key}))},12:{match:je(L),order:1,parse:()=>({}),render:Ge},14:{match:Ie(Se),order:1,parse:e2=>({alt:e2[1],target:He(e2[2]),title:e2[3]}),render:(e2,n2,t3)=>d2(\"img\",{key:t3.key,alt:e2.alt||void 0,title:e2.title||void 0,src:Ne(e2.target)})},15:{match:Me(Ee),order:3,parse:(e2,n2,t3)=>({children:Pe(n2,e2[1],t3),target:He(e2[2]),title:e2[3]}),render:(e2,n2,t3)=>d2(\"a\",{key:t3.key,href:Ne(e2.target),title:e2.title},n2(e2.children,t3))},16:{match:Me(j),order:0,parse:e2=>({children:[{text:e2[1],type:\"27\"}],target:e2[1],type:\"15\"})},17:{match:(e2,n2)=>n2.inAnchor?null:Me(I)(e2,n2),order:0,parse:e2=>({children:[{text:e2[1],type:\"27\"}],target:e2[1],title:void 0,type:\"15\"})},18:{match:Me(U),order:0,parse(e2){let n2=e2[1],t3=e2[1];return s.test(t3)||(t3=\"mailto:\"+t3),{children:[{text:n2.replace(\"mailto:\",\"\"),type:\"27\"}],target:t3,type:\"15\"}}},20:we(d2,1),33:we(d2,2),19:{match:Ue(k),order:3,parse:We,render:()=>`\n`},21:{match:Be,order:3,parse:Fe,render:(e2,n2,t3)=>d2(\"p\",{key:t3.key},n2(e2.children,t3))},22:{match:Me(H),order:0,parse:e2=>(X2[e2[1]]={target:e2[2],title:e2[4]},{}),render:Ge},23:{match:Ie(D),order:0,parse:e2=>({alt:e2[1]||void 0,ref:e2[2]}),render:(e2,n2,t3)=>X2[e2.ref]?d2(\"img\",{key:t3.key,alt:e2.alt,src:Ne(X2[e2.ref].target),title:X2[e2.ref].title}):null},24:{match:Me(P),order:0,parse:(e2,n2,t3)=>({children:n2(e2[1],t3),fallbackChildren:n2(e2[0].replace(_,\"\\\\$1\"),t3),ref:e2[2]}),render:(e2,n2,t3)=>X2[e2.ref]?d2(\"a\",{key:t3.key,href:Ne(X2[e2.ref].target),title:X2[e2.ref].title},n2(e2.children,t3)):d2(\"span\",{key:t3.key},n2(e2.fallbackChildren,t3))},25:{match:Ue(N),order:1,parse:Re,render:(e2,n2,t3)=>d2(\"table\",{key:t3.key},d2(\"thead\",null,d2(\"tr\",null,e2.header.map(function(r3,i3){return d2(\"th\",{key:i3,style:ze(e2,i3)},n2(r3,t3))}))),d2(\"tbody\",null,e2.cells.map(function(r3,i3){return d2(\"tr\",{key:i3},r3.map(function(r4,i4){return d2(\"td\",{key:i4,style:ze(e2,i4)},n2(r4,t3))}))})))},26:{match:function(e2,n2){return n2.inTable?(n2.inline=!0,G.exec(e2)):null},order:1,parse:function(){return {type:\"26\"}},render:()=>\" | \"},27:{match:je(re),order:4,parse:e2=>({text:e2[0].replace(T,(e3,n2)=>r2.namedCodesToUnicode[n2]?r2.namedCodesToUnicode[n2]:e3)}),render:e2=>e2.text},28:{match:Ie(K),order:2,parse:(e2,n2,t3)=>({children:n2(e2[2],t3)}),render:(e2,n2,t3)=>d2(\"strong\",{key:t3.key},n2(e2.children,t3))},29:{match:Ie(Y),order:3,parse:(e2,n2,t3)=>({children:n2(e2[2],t3)}),render:(e2,n2,t3)=>d2(\"em\",{key:t3.key},n2(e2.children,t3))},30:{match:Ie(te),order:1,parse:e2=>({text:e2[1],type:\"27\"})},31:{match:Ie(ee),order:3,parse:Fe,render:(e2,n2,t3)=>d2(\"mark\",{key:t3.key},n2(e2.children,t3))},32:{match:Ie(ne),order:3,parse:Fe,render:(e2,n2,t3)=>d2(\"del\",{key:t3.key},n2(e2.children,t3))}};r2.disableParsingRawHTML===!0&&(delete Q2[11],delete Q2[13]);let J2=function(e2){let n2=Object.keys(e2);function t3(r3,i3){let l2=[],o2=\"\";for(;r3;){let c2=0;for(;c2l2(t3,r3,i3),t3,r3,i3):l2(t3,r3,i3)}}(Q2,r2.renderRule),function e2(n2,t3={}){if(Array.isArray(n2)){let r3=t3.key,i3=[],l2=!1;for(let r4=0;r4{let{children:r2=\"\",options:i2}=n2,l2=function(e2,n3){if(e2==null)return {};var t2,r3,i3={},l3=Object.keys(e2);for(r3=0;r3=0||(i3[t2]=e2[t2]);return i3}(n2,t);return React15.cloneElement(Ve(r2,i2),l2)};var Label=styled.label(({theme})=>({lineHeight:\"18px\",alignItems:\"center\",marginBottom:8,display:\"inline-block\",position:\"relative\",whiteSpace:\"nowrap\",background:theme.boolean.background,borderRadius:\"3em\",padding:1,'&[aria-disabled=\"true\"]':{opacity:.5,input:{cursor:\"not-allowed\"}},input:{appearance:\"none\",width:\"100%\",height:\"100%\",position:\"absolute\",left:0,top:0,margin:0,padding:0,border:\"none\",background:\"transparent\",cursor:\"pointer\",borderRadius:\"3em\",\"&:focus\":{outline:\"none\",boxShadow:`${theme.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:\"center\",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:\"1\",cursor:\"pointer\",display:\"inline-block\",padding:\"7px 15px\",transition:\"all 100ms ease-out\",userSelect:\"none\",borderRadius:\"3em\",color:curriedTransparentize$1(.5,theme.color.defaultText),background:\"transparent\",\"&:hover\":{boxShadow:`${curriedOpacify$1(.3,theme.appBorderColor)} 0 0 0 1px inset`},\"&:active\":{boxShadow:`${curriedOpacify$1(.05,theme.appBorderColor)} 0 0 0 2px inset`,color:curriedOpacify$1(1,theme.appBorderColor)},\"&:first-of-type\":{paddingRight:8},\"&:last-of-type\":{paddingLeft:8}},\"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type\":{background:theme.boolean.selectedBackground,boxShadow:theme.base===\"light\"?`${curriedOpacify$1(.1,theme.appBorderColor)} 0 0 2px`:`${theme.appBorderColor} 0 0 0 1px`,color:theme.color.defaultText,padding:\"7px 15px\"}})),parse=value3=>value3===\"true\",BooleanControl=({name:name2,value:value3,onChange,onBlur,onFocus,argType})=>{let onSetFalse=useCallback(()=>onChange(!1),[onChange]),readonly=!!argType?.table?.readonly;if(value3===void 0)return React15__default.createElement(Button,{variant:\"outline\",size:\"medium\",id:getControlSetterButtonId(name2),onClick:onSetFalse,disabled:readonly},\"Set boolean\");let controlId=getControlId(name2),parsedValue=typeof value3==\"string\"?parse(value3):value3;return React15__default.createElement(Label,{\"aria-disabled\":readonly,htmlFor:controlId,\"aria-label\":name2},React15__default.createElement(\"input\",{id:controlId,type:\"checkbox\",onChange:e2=>onChange(e2.target.checked),checked:parsedValue,role:\"switch\",disabled:readonly,name:name2,onBlur,onFocus}),React15__default.createElement(\"span\",{\"aria-hidden\":\"true\"},\"False\"),React15__default.createElement(\"span\",{\"aria-hidden\":\"true\"},\"True\"))};var parseDate=value3=>{let[year,month,day]=value3.split(\"-\"),result2=new Date;return result2.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result2},parseTime=value3=>{let[hours,minutes]=value3.split(\":\"),result2=new Date;return result2.setHours(parseInt(hours,10)),result2.setMinutes(parseInt(minutes,10)),result2},formatDate=value3=>{let date=new Date(value3),year=`000${date.getFullYear()}`.slice(-4),month=`0${date.getMonth()+1}`.slice(-2),day=`0${date.getDate()}`.slice(-2);return `${year}-${month}-${day}`},formatTime=value3=>{let date=new Date(value3),hours=`0${date.getHours()}`.slice(-2),minutes=`0${date.getMinutes()}`.slice(-2);return `${hours}:${minutes}`},FormInput=styled(Form.Input)(({readOnly})=>({opacity:readOnly?.5:1})),FlexSpaced=styled.div(({theme})=>({flex:1,display:\"flex\",input:{marginLeft:10,flex:1,height:32,\"&::-webkit-calendar-picker-indicator\":{opacity:.5,height:12,filter:theme.base===\"light\"?void 0:\"invert(1)\"}},\"input:first-of-type\":{marginLeft:0,flexGrow:4},\"input:last-of-type\":{flexGrow:3}})),DateControl=({name:name2,value:value3,onChange,onFocus,onBlur,argType})=>{let[valid,setValid]=useState(!0),dateRef=useRef(),timeRef=useRef(),readonly=!!argType?.table?.readonly;useEffect(()=>{valid!==!1&&(dateRef&&dateRef.current&&(dateRef.current.value=value3?formatDate(value3):\"\"),timeRef&&timeRef.current&&(timeRef.current.value=value3?formatTime(value3):\"\"));},[value3]);let onDateChange=e2=>{if(!e2.target.value)return onChange();let parsed=parseDate(e2.target.value),result2=new Date(value3);result2.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());let time=result2.getTime();time&&onChange(time),setValid(!!time);},onTimeChange=e2=>{if(!e2.target.value)return onChange();let parsed=parseTime(e2.target.value),result2=new Date(value3);result2.setHours(parsed.getHours()),result2.setMinutes(parsed.getMinutes());let time=result2.getTime();time&&onChange(time),setValid(!!time);},controlId=getControlId(name2);return React15__default.createElement(FlexSpaced,null,React15__default.createElement(FormInput,{type:\"date\",max:\"9999-12-31\",ref:dateRef,id:`${controlId}-date`,name:`${controlId}-date`,readOnly:readonly,onChange:onDateChange,onFocus,onBlur}),React15__default.createElement(FormInput,{type:\"time\",id:`${controlId}-time`,name:`${controlId}-time`,ref:timeRef,onChange:onTimeChange,readOnly:readonly,onFocus,onBlur}),valid?null:React15__default.createElement(\"div\",null,\"invalid\"))};var Wrapper3=styled.label({display:\"flex\"}),parse2=value3=>{let result2=parseFloat(value3);return Number.isNaN(result2)?void 0:result2},format2=value3=>value3!=null?String(value3):\"\",FormInput2=styled(Form.Input)(({readOnly})=>({opacity:readOnly?.5:1})),NumberControl=({name:name2,value:value3,onChange,min,max,step,onBlur,onFocus,argType})=>{let[inputValue,setInputValue]=useState(typeof value3==\"number\"?value3:\"\"),[forceVisible,setForceVisible]=useState(!1),[parseError,setParseError]=useState(null),readonly=!!argType?.table?.readonly,handleChange=useCallback(event=>{setInputValue(event.target.value);let result2=parseFloat(event.target.value);Number.isNaN(result2)?setParseError(new Error(`'${event.target.value}' is not a number`)):(onChange(result2),setParseError(null));},[onChange,setParseError]),onForceVisible=useCallback(()=>{setInputValue(\"0\"),onChange(0),setForceVisible(!0);},[setForceVisible]),htmlElRef=useRef(null);return useEffect(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),useEffect(()=>{inputValue!==(typeof value3==\"number\"?value3:\"\")&&setInputValue(value3);},[value3]),value3===void 0?React15__default.createElement(Button,{variant:\"outline\",size:\"medium\",id:getControlSetterButtonId(name2),onClick:onForceVisible,disabled:readonly},\"Set number\"):React15__default.createElement(Wrapper3,null,React15__default.createElement(FormInput2,{ref:htmlElRef,id:getControlId(name2),type:\"number\",onChange:handleChange,size:\"flex\",placeholder:\"Edit number...\",value:inputValue,valid:parseError?\"error\":null,autoFocus:forceVisible,readOnly:readonly,name:name2,min,max,step,onFocus,onBlur}))};var selectedKey=(value3,options2)=>{let entry=options2&&Object.entries(options2).find(([_key,val])=>val===value3);return entry?entry[0]:void 0},selectedKeys=(value3,options2)=>value3&&options2?Object.entries(options2).filter(entry=>value3.includes(entry[1])).map(entry=>entry[0]):[],selectedValues=(keys,options2)=>keys&&options2&&keys.map(key2=>options2[key2]);var Wrapper4=styled.div(({isInline})=>isInline?{display:\"flex\",flexWrap:\"wrap\",alignItems:\"flex-start\",label:{display:\"inline-flex\",marginRight:15}}:{label:{display:\"flex\"}},props=>{if(props[\"aria-readonly\"]===\"true\")return {input:{cursor:\"not-allowed\"}}}),Text=styled.span({\"[aria-readonly=true] &\":{opacity:.5}}),Label2=styled.label({lineHeight:\"20px\",alignItems:\"center\",marginBottom:8,\"&:last-child\":{marginBottom:0},input:{margin:0,marginRight:6}}),CheckboxControl=({name:name2,options:options2,value:value3,onChange,isInline,argType})=>{if(!options2)return logger.warn(`Checkbox with no options: ${name2}`),React15__default.createElement(React15__default.Fragment,null,\"-\");let initial=selectedKeys(value3,options2),[selected,setSelected]=useState(initial),readonly=!!argType?.table?.readonly,handleChange=e2=>{let option=e2.target.value,updated=[...selected];updated.includes(option)?updated.splice(updated.indexOf(option),1):updated.push(option),onChange(selectedValues(updated,options2)),setSelected(updated);};useEffect(()=>{setSelected(selectedKeys(value3,options2));},[value3]);let controlId=getControlId(name2);return React15__default.createElement(Wrapper4,{\"aria-readonly\":readonly,isInline},Object.keys(options2).map((key2,index)=>{let id=`${controlId}-${index}`;return React15__default.createElement(Label2,{key:id,htmlFor:id},React15__default.createElement(\"input\",{type:\"checkbox\",disabled:readonly,id,name:id,value:key2,onChange:handleChange,checked:selected?.includes(key2)}),React15__default.createElement(Text,null,key2))}))};var Wrapper5=styled.div(({isInline})=>isInline?{display:\"flex\",flexWrap:\"wrap\",alignItems:\"flex-start\",label:{display:\"inline-flex\",marginRight:15}}:{label:{display:\"flex\"}},props=>{if(props[\"aria-readonly\"]===\"true\")return {input:{cursor:\"not-allowed\"}}}),Text2=styled.span({\"[aria-readonly=true] &\":{opacity:.5}}),Label3=styled.label({lineHeight:\"20px\",alignItems:\"center\",marginBottom:8,\"&:last-child\":{marginBottom:0},input:{margin:0,marginRight:6}}),RadioControl=({name:name2,options:options2,value:value3,onChange,isInline,argType})=>{if(!options2)return logger.warn(`Radio with no options: ${name2}`),React15__default.createElement(React15__default.Fragment,null,\"-\");let selection=selectedKey(value3,options2),controlId=getControlId(name2),readonly=!!argType?.table?.readonly;return React15__default.createElement(Wrapper5,{\"aria-readonly\":readonly,isInline},Object.keys(options2).map((key2,index)=>{let id=`${controlId}-${index}`;return React15__default.createElement(Label3,{key:id,htmlFor:id},React15__default.createElement(\"input\",{type:\"radio\",id,name:controlId,disabled:readonly,value:key2,onChange:e2=>onChange(options2[e2.currentTarget.value]),checked:key2===selection}),React15__default.createElement(Text2,null,key2))}))};var styleResets={appearance:\"none\",border:\"0 none\",boxSizing:\"inherit\",display:\" block\",margin:\" 0\",background:\"transparent\",padding:0,fontSize:\"inherit\",position:\"relative\"},OptionsSelect=styled.select(styleResets,({theme})=>({boxSizing:\"border-box\",position:\"relative\",padding:\"6px 10px\",width:\"100%\",color:theme.input.color||\"inherit\",background:theme.input.background,borderRadius:theme.input.borderRadius,boxShadow:`${theme.input.border} 0 0 0 1px inset`,fontSize:theme.typography.size.s2-1,lineHeight:\"20px\",\"&:focus\":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:\"none\"},\"&[disabled]\":{cursor:\"not-allowed\",opacity:.5},\"::placeholder\":{color:theme.textMutedColor},\"&[multiple]\":{overflow:\"auto\",padding:0,option:{display:\"block\",padding:\"6px 10px\",marginLeft:1,marginRight:1}}})),SelectWrapper=styled.span(({theme})=>({display:\"inline-block\",lineHeight:\"normal\",overflow:\"hidden\",position:\"relative\",verticalAlign:\"top\",width:\"100%\",svg:{position:\"absolute\",zIndex:1,pointerEvents:\"none\",height:\"12px\",marginTop:\"-6px\",right:\"12px\",top:\"50%\",fill:theme.textMutedColor,path:{fill:theme.textMutedColor}}})),NO_SELECTION=\"Choose option...\",SingleSelect=({name:name2,value:value3,options:options2,onChange,argType})=>{let handleChange=e2=>{onChange(options2[e2.currentTarget.value]);},selection=selectedKey(value3,options2)||NO_SELECTION,controlId=getControlId(name2),readonly=!!argType?.table?.readonly;return React15__default.createElement(SelectWrapper,null,React15__default.createElement(ChevronSmallDownIcon,null),React15__default.createElement(OptionsSelect,{disabled:readonly,id:controlId,value:selection,onChange:handleChange},React15__default.createElement(\"option\",{key:\"no-selection\",disabled:!0},NO_SELECTION),Object.keys(options2).map(key2=>React15__default.createElement(\"option\",{key:key2,value:key2},key2))))},MultiSelect=({name:name2,value:value3,options:options2,onChange,argType})=>{let handleChange=e2=>{let selection2=Array.from(e2.currentTarget.options).filter(option=>option.selected).map(option=>option.value);onChange(selectedValues(selection2,options2));},selection=selectedKeys(value3,options2),controlId=getControlId(name2),readonly=!!argType?.table?.readonly;return React15__default.createElement(SelectWrapper,null,React15__default.createElement(OptionsSelect,{disabled:readonly,id:controlId,multiple:!0,value:selection,onChange:handleChange},Object.keys(options2).map(key2=>React15__default.createElement(\"option\",{key:key2,value:key2},key2))))},SelectControl=props=>{let{name:name2,options:options2}=props;return options2?props.isMulti?React15__default.createElement(MultiSelect,{...props}):React15__default.createElement(SingleSelect,{...props}):(logger.warn(`Select with no options: ${name2}`),React15__default.createElement(React15__default.Fragment,null,\"-\"))};var normalizeOptions=(options2,labels)=>Array.isArray(options2)?options2.reduce((acc,item)=>(acc[labels?.[item]||String(item)]=item,acc),{}):options2,Controls={check:CheckboxControl,\"inline-check\":CheckboxControl,radio:RadioControl,\"inline-radio\":RadioControl,select:SelectControl,\"multi-select\":SelectControl},OptionsControl=props=>{let{type=\"select\",labels,argType}=props,normalized={...props,argType,options:argType?normalizeOptions(argType.options,labels):{},isInline:type.includes(\"inline\"),isMulti:type.includes(\"multi\")},Control=Controls[type];if(Control)return React15__default.createElement(Control,{...normalized});throw new Error(`Unknown options type: ${type}`)};var ERROR=\"Error\",OBJECT=\"Object\",ARRAY=\"Array\",STRING=\"String\",NUMBER=\"Number\",BOOLEAN=\"Boolean\",DATE=\"Date\",NULL=\"Null\",UNDEFINED=\"Undefined\",FUNCTION=\"Function\",SYMBOL=\"Symbol\";var ADD_DELTA_TYPE=\"ADD_DELTA_TYPE\",REMOVE_DELTA_TYPE=\"REMOVE_DELTA_TYPE\",UPDATE_DELTA_TYPE=\"UPDATE_DELTA_TYPE\";var VALUE=\"value\",KEY=\"key\";function getObjectType(obj){return obj!==null&&typeof obj==\"object\"&&!Array.isArray(obj)&&typeof obj[Symbol.iterator]==\"function\"?\"Iterable\":Object.prototype.toString.call(obj).slice(8,-1)}function isComponentWillChange(oldValue,newValue){let oldType=getObjectType(oldValue),newType=getObjectType(newValue);return (oldType===\"Function\"||newType===\"Function\")&&newType!==oldType}var JsonAddValue=class extends Component{constructor(props){super(props),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this);}componentDidMount(){let{inputRefKey,inputRefValue}=this.state,{onlyValue}=this.props;inputRefKey&&typeof inputRefKey.focus==\"function\"&&inputRefKey.focus(),onlyValue&&inputRefValue&&typeof inputRefValue.focus==\"function\"&&inputRefValue.focus(),document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.onSubmit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.props.handleCancel()));}onSubmit(){let{handleAdd,onlyValue,onSubmitValueParser,keyPath,deep}=this.props,{inputRefKey,inputRefValue}=this.state,result2={};if(!onlyValue){if(!inputRefKey.value)return;result2.key=inputRefKey.value;}result2.newValue=onSubmitValueParser(!1,keyPath,deep,result2.key,inputRefValue.value),handleAdd(result2);}refInputKey(node){this.state.inputRefKey=node;}refInputValue(node){this.state.inputRefValue=node;}render(){let{handleCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep}=this.props,addButtonElementLayout=cloneElement(addButtonElement,{onClick:this.onSubmit}),cancelButtonElementLayout=cloneElement(cancelButtonElement,{onClick:handleCancel}),inputElementValue=inputElementGenerator(VALUE,keyPath,deep),inputElementValueLayout=cloneElement(inputElementValue,{placeholder:\"Value\",ref:this.refInputValue}),inputElementKeyLayout=null;if(!onlyValue){let inputElementKey=inputElementGenerator(KEY,keyPath,deep);inputElementKeyLayout=cloneElement(inputElementKey,{placeholder:\"Key\",ref:this.refInputKey});}return React15__default.createElement(\"span\",{className:\"rejt-add-value-node\"},inputElementKeyLayout,inputElementValueLayout,cancelButtonElementLayout,addButtonElementLayout)}};JsonAddValue.defaultProps={onlyValue:!1,addButtonElement:React15__default.createElement(\"button\",null,\"+\"),cancelButtonElement:React15__default.createElement(\"button\",null,\"c\")};var JsonArray=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={data:props.data,name:props.name,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleRemoveItem(index){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[index];beforeRemoveAction(index,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key:index,oldValue,type:REMOVE_DELTA_TYPE};data.splice(index,1),this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleAddValueAdd({newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(data.length,keyPath,deep,newValue).then(()=>{let newData=[...data,newValue];this.setState({data:newData}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],newData),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key:newData.length-1,newValue});}).catch(logger4.error);}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleEditValue({key:key2,value:value3}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key2];beforeUpdateAction(key2,keyPath,deep,oldValue,value3).then(()=>{data[key2]=value3,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key:key2,newValue:value3,oldValue}),resolve(void 0);}).catch(reject);})}renderCollapsed(){let{name:name2,data,keyPath,deep}=this.state,{handleRemove,readOnly,getStyle,dataType,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name2,data,keyPath,deep,dataType),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React15__default.createElement(\"span\",{className:\"rejt-collapsed\"},React15__default.createElement(\"span\",{className:\"rejt-collapsed-text\",style:collapsed,onClick:this.handleCollapseMode},\"[...] \",data.length,\" \",data.length===1?\"item\":\"items\"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name:name2,data,keyPath,deep,addFormVisible,nextDeep}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,delimiter,ul,addForm}=getStyle(name2,data,keyPath,deep,dataType),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),addItemButton=cloneElement(plusMenuElement,{onClick:this.handleAddMode,className:\"rejt-plus-menu\",style:plus}),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React15__default.createElement(\"span\",{className:\"rejt-not-collapsed\"},React15__default.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"[\"),!addFormVisible&&addItemButton,React15__default.createElement(\"ul\",{className:\"rejt-not-collapsed-list\",style:ul},data.map((item,index)=>React15__default.createElement(JsonNode,{key:index,name:index.toString(),data:item,keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveItem(index),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}))),!isReadOnly&&addFormVisible&&React15__default.createElement(\"div\",{className:\"rejt-add-form\",style:addForm},React15__default.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),React15__default.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"]\"),!isReadOnly&&removeItemButton)}render(){let{name:name2,collapsed,data,keyPath,deep}=this.state,{dataType,getStyle}=this.props,value3=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name2,data,keyPath,deep,dataType);return React15__default.createElement(\"div\",{className:\"rejt-array-node\"},React15__default.createElement(\"span\",{onClick:this.handleCollapseMode},React15__default.createElement(\"span\",{className:\"rejt-name\",style:style.name},name2,\" :\",\" \")),value3)}};JsonArray.defaultProps={keyPath:[],deep:0,minusMenuElement:React15__default.createElement(\"span\",null,\" - \"),plusMenuElement:React15__default.createElement(\"span\",null,\" + \")};var JsonFunctionValue=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this);}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name:name2,value:value3,keyPath,deep}=this.state,{readOnly,dataType}=this.props,readOnlyResult=readOnly(name2,value3,keyPath,deep,dataType);editEnabled&&!readOnlyResult&&typeof inputRef.focus==\"function\"&&inputRef.focus();}componentDidMount(){document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.handleEdit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name:name2,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name2,inputRef.value);handleUpdateValue({value:newValue,key:name2}).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name:name2,value:value3,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,textareaElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name2,originalValue,keyPath,deep,dataType),result2=null,minusElement=null,resultOnlyResult=readOnly(name2,originalValue,keyPath,deep,dataType);if(editEnabled&&!resultOnlyResult){let textareaElement=textareaElementGenerator(VALUE,comeFromKeyPath,deep,name2,originalValue,dataType),editButtonElementLayout=cloneElement(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=cloneElement(cancelButtonElement,{onClick:this.handleCancelEdit}),textareaElementLayout=cloneElement(textareaElement,{ref:this.refInput,defaultValue:originalValue});result2=React15__default.createElement(\"span\",{className:\"rejt-edit-form\",style:style.editForm},textareaElementLayout,\" \",cancelButtonElementLayout,editButtonElementLayout),minusElement=null;}else {result2=React15__default.createElement(\"span\",{className:\"rejt-value\",style:style.value,onClick:resultOnlyResult?null:this.handleEditMode},value3);let minusMenuLayout=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:style.minus});minusElement=resultOnlyResult?null:minusMenuLayout;}return React15__default.createElement(\"li\",{className:\"rejt-function-value-node\",style:style.li},React15__default.createElement(\"span\",{className:\"rejt-name\",style:style.name},name2,\" :\",\" \"),result2,minusElement)}};JsonFunctionValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:React15__default.createElement(\"button\",null,\"e\"),cancelButtonElement:React15__default.createElement(\"button\",null,\"c\"),minusMenuElement:React15__default.createElement(\"span\",null,\" - \")};var JsonNode=class extends Component{constructor(props){super(props),this.state={data:props.data,name:props.name,keyPath:props.keyPath,deep:props.deep};}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}render(){let{data,name:name2,keyPath,deep}=this.state,{isCollapsed,handleRemove,handleUpdateValue,onUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,readOnlyTrue=()=>!0,dataType=getObjectType(data);switch(dataType){case ERROR:return React15__default.createElement(JsonObject,{data,name:name2,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly:readOnlyTrue,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case OBJECT:return React15__default.createElement(JsonObject,{data,name:name2,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case ARRAY:return React15__default.createElement(JsonArray,{data,name:name2,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case STRING:return React15__default.createElement(JsonValue,{name:name2,value:`\"${data}\"`,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NUMBER:return React15__default.createElement(JsonValue,{name:name2,value:data,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case BOOLEAN:return React15__default.createElement(JsonValue,{name:name2,value:data?\"true\":\"false\",originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case DATE:return React15__default.createElement(JsonValue,{name:name2,value:data.toISOString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case NULL:return React15__default.createElement(JsonValue,{name:name2,value:\"null\",originalValue:\"null\",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case UNDEFINED:return React15__default.createElement(JsonValue,{name:name2,value:\"undefined\",originalValue:\"undefined\",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case FUNCTION:return React15__default.createElement(JsonFunctionValue,{name:name2,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,editButtonElement,textareaElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case SYMBOL:return React15__default.createElement(JsonValue,{name:name2,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,editButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});default:return null}}};JsonNode.defaultProps={keyPath:[],deep:0};var JsonObject=class extends Component{constructor(props){super(props);let keyPath=props.deep===-1?[]:[...props.keyPath,props.name];this.state={name:props.name,data:props.data,keyPath,deep:props.deep,nextDeep:props.deep+1,collapsed:props.isCollapsed(keyPath,props.deep,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props,size=keyPath.length;onUpdate(keyPath[size-1],data);}handleAddMode(){this.setState({addFormVisible:!0});}handleAddValueCancel(){this.setState({addFormVisible:!1});}handleAddValueAdd({key:key2,newValue}){let{data,keyPath,nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;beforeAddAction(key2,keyPath,deep,newValue).then(()=>{data[key2]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:ADD_DELTA_TYPE,keyPath,deep,key:key2,newValue});}).catch(logger4.error);}handleRemoveValue(key2){return ()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key2];beforeRemoveAction(key2,keyPath,deep,oldValue).then(()=>{let deltaUpdateResult={keyPath,deep,key:key2,oldValue,type:REMOVE_DELTA_TYPE};delete data[key2],this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult);}).catch(logger4.error);}}handleCollapseMode(){this.setState(state=>({collapsed:!state.collapsed}));}handleEditValue({key:key2,value:value3}){return new Promise((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key2];beforeUpdateAction(key2,keyPath,deep,oldValue,value3).then(()=>{data[key2]=value3,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:UPDATE_DELTA_TYPE,keyPath,deep,key:key2,newValue:value3,oldValue}),resolve();}).catch(reject);})}renderCollapsed(){let{name:name2,keyPath,deep,data}=this.state,{handleRemove,readOnly,dataType,getStyle,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name2,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus});return React15__default.createElement(\"span\",{className:\"rejt-collapsed\"},React15__default.createElement(\"span\",{className:\"rejt-collapsed-text\",style:collapsed,onClick:this.handleCollapseMode},\"{...}\",\" \",keyList.length,\" \",keyList.length===1?\"key\":\"keys\"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name:name2,data,keyPath,deep,nextDeep,addFormVisible}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,addForm,ul,delimiter}=getStyle(name2,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name2,data,keyPath,deep,dataType),addItemButton=cloneElement(plusMenuElement,{onClick:this.handleAddMode,className:\"rejt-plus-menu\",style:plus}),removeItemButton=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:minus}),list=keyList.map(key2=>React15__default.createElement(JsonNode,{key:key2,name:key2,data:data[key2],keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveValue(key2),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}));return React15__default.createElement(\"span\",{className:\"rejt-not-collapsed\"},React15__default.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"{\"),!isReadOnly&&addItemButton,React15__default.createElement(\"ul\",{className:\"rejt-not-collapsed-list\",style:ul},list),!isReadOnly&&addFormVisible&&React15__default.createElement(\"div\",{className:\"rejt-add-form\",style:addForm},React15__default.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),React15__default.createElement(\"span\",{className:\"rejt-not-collapsed-delimiter\",style:delimiter},\"}\"),!isReadOnly&&removeItemButton)}render(){let{name:name2,collapsed,data,keyPath,deep}=this.state,{getStyle,dataType}=this.props,value3=collapsed?this.renderCollapsed():this.renderNotCollapsed(),style=getStyle(name2,data,keyPath,deep,dataType);return React15__default.createElement(\"div\",{className:\"rejt-object-node\"},React15__default.createElement(\"span\",{onClick:this.handleCollapseMode},React15__default.createElement(\"span\",{className:\"rejt-name\",style:style.name},name2,\" :\",\" \")),value3)}};JsonObject.defaultProps={keyPath:[],deep:0,minusMenuElement:React15__default.createElement(\"span\",null,\" - \"),plusMenuElement:React15__default.createElement(\"span\",null,\" + \")};var JsonValue=class extends Component{constructor(props){super(props);let keyPath=[...props.keyPath,props.name];this.state={value:props.value,name:props.name,keyPath,deep:props.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this);}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name:name2,value:value3,keyPath,deep}=this.state,{readOnly,dataType}=this.props,isReadOnly=readOnly(name2,value3,keyPath,deep,dataType);editEnabled&&!isReadOnly&&typeof inputRef.focus==\"function\"&&inputRef.focus();}componentDidMount(){document.addEventListener(\"keydown\",this.onKeydown);}componentWillUnmount(){document.removeEventListener(\"keydown\",this.onKeydown);}onKeydown(event){event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||((event.code===\"Enter\"||event.key===\"Enter\")&&(event.preventDefault(),this.handleEdit()),(event.code===\"Escape\"||event.key===\"Escape\")&&(event.preventDefault(),this.handleCancelEdit()));}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name:name2,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name2,inputRef.value);handleUpdateValue({value:newValue,key:name2}).then(()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit();}).catch(logger4.error);}handleEditMode(){this.setState({editEnabled:!0});}refInput(node){this.state.inputRef=node;}handleCancelEdit(){this.setState({editEnabled:!1});}render(){let{name:name2,value:value3,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,editButtonElement,cancelButtonElement,inputElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name2,originalValue,keyPath,deep,dataType),isReadOnly=readOnly(name2,originalValue,keyPath,deep,dataType),isEditing=editEnabled&&!isReadOnly,inputElement=inputElementGenerator(VALUE,comeFromKeyPath,deep,name2,originalValue,dataType),editButtonElementLayout=cloneElement(editButtonElement,{onClick:this.handleEdit}),cancelButtonElementLayout=cloneElement(cancelButtonElement,{onClick:this.handleCancelEdit}),inputElementLayout=cloneElement(inputElement,{ref:this.refInput,defaultValue:JSON.stringify(originalValue)}),minusMenuLayout=cloneElement(minusMenuElement,{onClick:handleRemove,className:\"rejt-minus-menu\",style:style.minus});return React15__default.createElement(\"li\",{className:\"rejt-value-node\",style:style.li},React15__default.createElement(\"span\",{className:\"rejt-name\",style:style.name},name2,\" : \"),isEditing?React15__default.createElement(\"span\",{className:\"rejt-edit-form\",style:style.editForm},inputElementLayout,\" \",cancelButtonElementLayout,editButtonElementLayout):React15__default.createElement(\"span\",{className:\"rejt-value\",style:style.value,onClick:isReadOnly?null:this.handleEditMode},String(value3)),!isReadOnly&&!isEditing&&minusMenuLayout)}};JsonValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:React15__default.createElement(\"button\",null,\"e\"),cancelButtonElement:React15__default.createElement(\"button\",null,\"c\"),minusMenuElement:React15__default.createElement(\"span\",null,\" - \")};function parse3(string){let result2=string;if(result2.indexOf(\"function\")===0)return (0, eval)(`(${result2})`);try{result2=JSON.parse(string);}catch{}return result2}var object={minus:{color:\"red\"},plus:{color:\"green\"},collapsed:{color:\"grey\"},delimiter:{},ul:{padding:\"0px\",margin:\"0 0 0 25px\",listStyle:\"none\"},name:{color:\"#2287CD\"},addForm:{}},array={minus:{color:\"red\"},plus:{color:\"green\"},collapsed:{color:\"grey\"},delimiter:{},ul:{padding:\"0px\",margin:\"0 0 0 25px\",listStyle:\"none\"},name:{color:\"#2287CD\"},addForm:{}},value2={minus:{color:\"red\"},editForm:{},value:{color:\"#7bba3d\"},li:{minHeight:\"22px\",lineHeight:\"22px\",outline:\"0px\"},name:{color:\"#2287CD\"}};var JsonTree=class extends Component{constructor(props){super(props),this.state={data:props.data,rootName:props.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this);}static getDerivedStateFromProps(props,state){return props.data!==state.data||props.rootName!==state.rootName?{data:props.data,rootName:props.rootName}:null}onUpdate(key2,data){this.setState({data}),this.props.onFullyUpdate(data);}removeRoot(){this.onUpdate(null,null);}render(){let{data,rootName}=this.state,{isCollapsed,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElement,textareaElement,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser,fallback=null}=this.props,dataType=getObjectType(data),readOnlyFunction=readOnly;getObjectType(readOnly)===\"Boolean\"&&(readOnlyFunction=()=>readOnly);let inputElementFunction=inputElement;inputElement&&getObjectType(inputElement)!==\"Function\"&&(inputElementFunction=()=>inputElement);let textareaElementFunction=textareaElement;return textareaElement&&getObjectType(textareaElement)!==\"Function\"&&(textareaElementFunction=()=>textareaElement),dataType===\"Object\"||dataType===\"Array\"?React15__default.createElement(\"div\",{className:\"rejt-tree\"},React15__default.createElement(JsonNode,{data,name:rootName,deep:-1,isCollapsed,onUpdate:this.onUpdate,onDeltaUpdate,readOnly:readOnlyFunction,getStyle,addButtonElement,cancelButtonElement,editButtonElement,inputElementGenerator:inputElementFunction,textareaElementGenerator:textareaElementFunction,minusMenuElement,plusMenuElement,handleRemove:this.removeRoot,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})):fallback}};JsonTree.defaultProps={rootName:\"root\",isCollapsed:(keyPath,deep)=>deep!==-1,getStyle:(keyName,data,keyPath,deep,dataType)=>{switch(dataType){case\"Object\":case\"Error\":return object;case\"Array\":return array;default:return value2}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(isEditMode,keyPath,deep,name2,rawValue)=>parse3(rawValue),inputElement:()=>React15__default.createElement(\"input\",null),textareaElement:()=>React15__default.createElement(\"textarea\",null),fallback:null};var {window:globalWindow2}=globalThis,Wrapper6=styled.div(({theme})=>({position:\"relative\",display:\"flex\",'&[aria-readonly=\"true\"]':{opacity:.5},\".rejt-tree\":{marginLeft:\"1rem\",fontSize:\"13px\"},\".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed\":{\"& > svg\":{opacity:0,transition:\"opacity 0.2s\"}},\".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed\":{\"& > svg\":{opacity:1}},\".rejt-edit-form button\":{display:\"none\"},\".rejt-add-form\":{marginLeft:10},\".rejt-add-value-node\":{display:\"inline-flex\",alignItems:\"center\"},\".rejt-name\":{lineHeight:\"22px\"},\".rejt-not-collapsed-delimiter\":{lineHeight:\"22px\"},\".rejt-plus-menu\":{marginLeft:5},\".rejt-object-node > span > *, .rejt-array-node > span > *\":{position:\"relative\",zIndex:2},\".rejt-object-node, .rejt-array-node\":{position:\"relative\"},\".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before\":{content:'\"\"',position:\"absolute\",top:0,display:\"block\",width:\"100%\",marginLeft:\"-1rem\",padding:\"0 4px 0 1rem\",height:22},\".rejt-collapsed::before, .rejt-not-collapsed::before\":{zIndex:1,background:\"transparent\",borderRadius:4,transition:\"background 0.2s\",pointerEvents:\"none\",opacity:.1},\".rejt-object-node:hover, .rejt-array-node:hover\":{\"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before\":{background:theme.color.secondary}},\".rejt-collapsed::after, .rejt-not-collapsed::after\":{content:'\"\"',position:\"absolute\",display:\"inline-block\",pointerEvents:\"none\",width:0,height:0},\".rejt-collapsed::after\":{left:-8,top:8,borderTop:\"3px solid transparent\",borderBottom:\"3px solid transparent\",borderLeft:\"3px solid rgba(153,153,153,0.6)\"},\".rejt-not-collapsed::after\":{left:-10,top:10,borderTop:\"3px solid rgba(153,153,153,0.6)\",borderLeft:\"3px solid transparent\",borderRight:\"3px solid transparent\"},\".rejt-value\":{display:\"inline-block\",border:\"1px solid transparent\",borderRadius:4,margin:\"1px 0\",padding:\"0 4px\",cursor:\"text\",color:theme.color.defaultText},\".rejt-value-node:hover > .rejt-value\":{background:theme.color.lighter,borderColor:theme.appBorderColor}})),ButtonInline=styled.button(({theme,primary})=>({border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:\"transparent\",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?\"bold\":\"normal\",cursor:\"pointer\",order:primary?\"initial\":9})),ActionAddIcon=styled(AddIcon)(({theme,disabled})=>({display:\"inline-block\",verticalAlign:\"middle\",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?\"not-allowed\":\"pointer\",color:theme.textMutedColor,\"&:hover\":disabled?{}:{color:theme.color.ancillary},\"svg + &\":{marginLeft:0}})),ActionSubstractIcon=styled(SubtractIcon)(({theme,disabled})=>({display:\"inline-block\",verticalAlign:\"middle\",width:15,height:15,padding:3,marginLeft:5,cursor:disabled?\"not-allowed\":\"pointer\",color:theme.textMutedColor,\"&:hover\":disabled?{}:{color:theme.color.negative},\"svg + &\":{marginLeft:0}})),Input=styled.input(({theme,placeholder})=>({outline:0,margin:placeholder?1:\"1px 0\",padding:\"3px 4px\",color:theme.color.defaultText,background:theme.background.app,border:`1px solid ${theme.appBorderColor}`,borderRadius:4,lineHeight:\"14px\",width:placeholder===\"Key\"?80:120,\"&:focus\":{border:`1px solid ${theme.color.secondary}`}})),RawButton=styled(IconButton)(({theme})=>({position:\"absolute\",zIndex:2,top:2,right:2,height:21,padding:\"0 3px\",background:theme.background.bar,border:`1px solid ${theme.appBorderColor}`,borderRadius:3,color:theme.textMutedColor,fontSize:\"9px\",fontWeight:\"bold\",textDecoration:\"none\",span:{marginLeft:3,marginTop:1}})),RawInput=styled(Form.Textarea)(({theme})=>({flex:1,padding:\"7px 6px\",fontFamily:theme.typography.fonts.mono,fontSize:\"12px\",lineHeight:\"18px\",\"&::placeholder\":{fontFamily:theme.typography.fonts.base,fontSize:\"13px\"},\"&:placeholder-shown\":{padding:\"7px 10px\"}})),ENTER_EVENT={bubbles:!0,cancelable:!0,key:\"Enter\",code:\"Enter\",keyCode:13},dispatchEnterKey=event=>{event.currentTarget.dispatchEvent(new globalWindow2.KeyboardEvent(\"keydown\",ENTER_EVENT));},selectValue=event=>{event.currentTarget.select();},getCustomStyleFunction=theme=>()=>({name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:\"none\",margin:\"0 0 0 1rem\",padding:0},li:{outline:0}}),ObjectControl=({name:name2,value:value3,onChange,argType})=>{let theme=useTheme(),data=useMemo(()=>value3&&cloneDeep(value3),[value3]),hasData=data!=null,[showRaw,setShowRaw]=useState(!hasData),[parseError,setParseError]=useState(null),readonly=!!argType?.table?.readonly,updateRaw=useCallback(raw=>{try{raw&&onChange(JSON.parse(raw)),setParseError(void 0);}catch(e2){setParseError(e2);}},[onChange]),[forceVisible,setForceVisible]=useState(!1),onForceVisible=useCallback(()=>{onChange({}),setForceVisible(!0);},[setForceVisible]),htmlElRef=useRef(null);if(useEffect(()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select();},[forceVisible]),!hasData)return React15__default.createElement(Button,{disabled:readonly,id:getControlSetterButtonId(name2),onClick:onForceVisible},\"Set object\");let rawJSONForm=React15__default.createElement(RawInput,{ref:htmlElRef,id:getControlId(name2),name:name2,defaultValue:value3===null?\"\":JSON.stringify(value3,null,2),onBlur:event=>updateRaw(event.target.value),placeholder:\"Edit JSON string...\",autoFocus:forceVisible,valid:parseError?\"error\":null,readOnly:readonly}),isObjectOrArray=Array.isArray(value3)||typeof value3==\"object\"&&value3?.constructor===Object;return React15__default.createElement(Wrapper6,{\"aria-readonly\":readonly},isObjectOrArray&&React15__default.createElement(RawButton,{onClick:e2=>{e2.preventDefault(),setShowRaw(v2=>!v2);}},showRaw?React15__default.createElement(EyeCloseIcon,null):React15__default.createElement(EyeIcon,null),React15__default.createElement(\"span\",null,\"RAW\")),showRaw?rawJSONForm:React15__default.createElement(JsonTree,{readOnly:readonly||!isObjectOrArray,isCollapsed:isObjectOrArray?void 0:()=>!0,data,rootName:name2,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:React15__default.createElement(ButtonInline,{type:\"button\"},\"Cancel\"),editButtonElement:React15__default.createElement(ButtonInline,{type:\"submit\"},\"Save\"),addButtonElement:React15__default.createElement(ButtonInline,{type:\"submit\",primary:!0},\"Save\"),plusMenuElement:React15__default.createElement(ActionAddIcon,null),minusMenuElement:React15__default.createElement(ActionSubstractIcon,null),inputElement:(_2,__,___,key2)=>key2?React15__default.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):React15__default.createElement(Input,null),fallback:rawJSONForm}))};var RangeInput=styled.input(({theme,min,max,value:value3,disabled})=>({\"&\":{width:\"100%\",backgroundColor:\"transparent\",appearance:\"none\"},\"&::-webkit-slider-runnable-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:\"100%\",height:6,cursor:disabled?\"not-allowed\":\"pointer\"},\"&::-webkit-slider-thumb\":{marginTop:\"-6px\",width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:\"50px\",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?\"not-allowed\":\"grab\",appearance:\"none\",background:`${theme.input.background}`,transition:\"all 150ms ease-out\",\"&:hover\":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:\"scale3d(1.1, 1.1, 1.1) translateY(-1px)\",transition:\"all 50ms ease-out\"},\"&:active\":{background:`${theme.input.background}`,transform:\"scale3d(1, 1, 1) translateY(0px)\",cursor:disabled?\"not-allowed\":\"grab\"}},\"&:focus\":{outline:\"none\",\"&::-webkit-slider-runnable-track\":{borderColor:rgba(theme.color.secondary,.4)},\"&::-webkit-slider-thumb\":{borderColor:theme.color.secondary,boxShadow:`0 0px 5px 0px ${theme.color.secondary}`}},\"&::-moz-range-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:\"100%\",height:6,cursor:disabled?\"not-allowed\":\"pointer\",outline:\"none\"},\"&::-moz-range-thumb\":{width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:\"50px\",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?\"not-allowed\":\"grap\",background:`${theme.input.background}`,transition:\"all 150ms ease-out\",\"&:hover\":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:\"scale3d(1.1, 1.1, 1.1) translateY(-1px)\",transition:\"all 50ms ease-out\"},\"&:active\":{background:`${theme.input.background}`,transform:\"scale3d(1, 1, 1) translateY(0px)\",cursor:\"grabbing\"}},\"&::-ms-track\":{background:theme.base===\"light\"?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value3-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.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:`${theme.input.background}`,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:50,cursor:\"grab\",marginTop:0},\"@supports (-ms-ime-align:auto)\":{\"input[type=range]\":{margin:\"0\"}}})),RangeLabel=styled.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:\"nowrap\",fontFeatureSettings:\"tnum\",fontVariantNumeric:\"tabular-nums\",\"[aria-readonly=true] &\":{opacity:.5}}),RangeCurrentAndMaxLabel=styled(RangeLabel)(({numberOFDecimalsPlaces,max})=>({width:`${numberOFDecimalsPlaces+max.toString().length*2+3}ch`,textAlign:\"right\",flexShrink:0})),RangeWrapper=styled.div({display:\"flex\",alignItems:\"center\",width:\"100%\"});function getNumberOfDecimalPlaces(number){let match=number.toString().match(/(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}var RangeControl=({name:name2,value:value3,onChange,min=0,max=100,step=1,onBlur,onFocus,argType})=>{let handleChange=event=>{onChange(parse2(event.target.value));},hasValue=value3!==void 0,numberOFDecimalsPlaces=useMemo(()=>getNumberOfDecimalPlaces(step),[step]),readonly=!!argType?.table?.readonly;return React15__default.createElement(RangeWrapper,{\"aria-readonly\":readonly},React15__default.createElement(RangeLabel,null,min),React15__default.createElement(RangeInput,{id:getControlId(name2),type:\"range\",disabled:readonly,onChange:handleChange,name:name2,value:value3,min,max,step,onFocus,onBlur}),React15__default.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces,max},hasValue?value3.toFixed(numberOFDecimalsPlaces):\"--\",\" / \",max))};var Wrapper7=styled.label({display:\"flex\"}),MaxLength=styled.div(({isMaxed})=>({marginLeft:\"0.75rem\",paddingTop:\"0.35rem\",color:isMaxed?\"red\":void 0})),TextControl=({name:name2,value:value3,onChange,onFocus,onBlur,maxLength,argType})=>{let handleChange=event=>{onChange(event.target.value);},readonly=!!argType?.table?.readonly,[forceVisible,setForceVisible]=useState(!1),onForceVisible=useCallback(()=>{onChange(\"\"),setForceVisible(!0);},[setForceVisible]);if(value3===void 0)return React15__default.createElement(Button,{variant:\"outline\",size:\"medium\",disabled:readonly,id:getControlSetterButtonId(name2),onClick:onForceVisible},\"Set string\");let isValid=typeof value3==\"string\";return React15__default.createElement(Wrapper7,null,React15__default.createElement(Form.Textarea,{id:getControlId(name2),maxLength,onChange:handleChange,disabled:readonly,size:\"flex\",placeholder:\"Edit string...\",autoFocus:forceVisible,valid:isValid?null:\"error\",name:name2,value:isValid?value3:\"\",onFocus,onBlur}),maxLength&&React15__default.createElement(MaxLength,{isMaxed:value3?.length===maxLength},value3?.length??0,\" / \",maxLength))};var FileInput=styled(Form.Input)({padding:10});function revokeOldUrls(urls){urls.forEach(url=>{url.startsWith(\"blob:\")&&URL.revokeObjectURL(url);});}var FilesControl=({onChange,name:name2,accept=\"image/*\",value:value3,argType})=>{let inputElement=useRef(null),readonly=argType?.control?.readOnly;function handleFileChange(e2){if(!e2.target.files)return;let fileUrls=Array.from(e2.target.files).map(file=>URL.createObjectURL(file));onChange(fileUrls),revokeOldUrls(value3);}return useEffect(()=>{value3==null&&inputElement.current&&(inputElement.current.value=null);},[value3,name2]),React15__default.createElement(FileInput,{ref:inputElement,id:getControlId(name2),type:\"file\",name:name2,multiple:!0,disabled:readonly,onChange:handleFileChange,accept,size:\"flex\"})};var LazyColorControl=lazy(()=>import('./Color-F6OSRLHC.mjs')),ColorControl=props=>React15__default.createElement(Suspense,{fallback:React15__default.createElement(\"div\",null)},React15__default.createElement(LazyColorControl,{...props}));var Controls2={array:ObjectControl,object:ObjectControl,boolean:BooleanControl,color:ColorControl,date:DateControl,number:NumberControl,check:OptionsControl,\"inline-check\":OptionsControl,radio:OptionsControl,\"inline-radio\":OptionsControl,select:OptionsControl,\"multi-select\":OptionsControl,range:RangeControl,text:TextControl,file:FilesControl},NoControl=()=>React15__default.createElement(React15__default.Fragment,null,\"-\"),ArgControl=({row,arg,updateArgs,isHovered})=>{let{key:key2,control}=row,[isFocused,setFocused]=useState(!1),[boxedValue,setBoxedValue]=useState({value:arg});useEffect(()=>{isFocused||setBoxedValue({value:arg});},[isFocused,arg]);let onChange=useCallback(argVal=>(setBoxedValue({value:argVal}),updateArgs({[key2]:argVal}),argVal),[updateArgs,key2]),onBlur=useCallback(()=>setFocused(!1),[]),onFocus=useCallback(()=>setFocused(!0),[]);if(!control||control.disable){let canBeSetup=control?.disable!==!0&&row?.type?.name!==\"function\";return isHovered&&canBeSetup?React15__default.createElement(Link,{href:\"https://storybook.js.org/docs/essentials/controls\",target:\"_blank\",withArrow:!0},\"Setup controls\"):React15__default.createElement(NoControl,null)}let props={name:key2,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls2[control.type]||NoControl;return React15__default.createElement(Control,{...props,...control,controlType:control.type})};var Table=styled.table(({theme})=>({\"&&\":{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:codeCommon({theme}),div:{span:{fontWeight:\"bold\"}},\"& code\":{margin:0,display:\"inline-block\",fontSize:theme.typography.size.s1}}})),ArgJsDoc=({tags})=>{let params=(tags.params||[]).filter(x2=>x2.description),hasDisplayableParams=params.length!==0,hasDisplayableDeprecated=tags.deprecated!=null,hasDisplayableReturns=tags.returns!=null&&tags.returns.description!=null;return !hasDisplayableParams&&!hasDisplayableReturns&&!hasDisplayableDeprecated?null:React15__default.createElement(React15__default.Fragment,null,React15__default.createElement(Table,null,React15__default.createElement(\"tbody\",null,hasDisplayableDeprecated&&React15__default.createElement(\"tr\",{key:\"deprecated\"},React15__default.createElement(\"td\",{colSpan:2},React15__default.createElement(\"strong\",null,\"Deprecated\"),\": \",tags.deprecated.toString())),hasDisplayableParams&¶ms.map(x2=>React15__default.createElement(\"tr\",{key:x2.name},React15__default.createElement(\"td\",null,React15__default.createElement(\"code\",null,x2.name)),React15__default.createElement(\"td\",null,x2.description))),hasDisplayableReturns&&React15__default.createElement(\"tr\",{key:\"returns\"},React15__default.createElement(\"td\",null,React15__default.createElement(\"code\",null,\"Returns\")),React15__default.createElement(\"td\",null,tags.returns.description)))))};var import_memoizerific=__toESM(require_memoizerific()),ITEMS_BEFORE_EXPANSION=8,Summary=styled.div(({isExpanded})=>({display:\"flex\",flexDirection:isExpanded?\"column\":\"row\",flexWrap:\"wrap\",alignItems:\"flex-start\",marginBottom:\"-4px\",minWidth:100})),Text3=styled.span(codeCommon,({theme,simple=!1})=>({flex:\"0 0 auto\",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,wordBreak:\"break-word\",whiteSpace:\"normal\",maxWidth:\"100%\",margin:0,marginRight:\"4px\",marginBottom:\"4px\",paddingTop:\"2px\",paddingBottom:\"2px\",lineHeight:\"13px\",...simple&&{background:\"transparent\",border:\"0 none\",paddingLeft:0}})),ExpandButton=styled.button(({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,marginBottom:\"4px\",background:\"none\",border:\"none\"})),Expandable=styled.div(codeCommon,({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,fontSize:theme.typography.size.s1,margin:0,whiteSpace:\"nowrap\",display:\"flex\",alignItems:\"center\"})),Detail=styled.div(({theme,width})=>({width,minWidth:200,maxWidth:800,padding:15,fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,boxSizing:\"content-box\",\"& code\":{padding:\"0 !important\"}})),ChevronUpIcon=styled(ChevronSmallUpIcon)({marginLeft:4}),ChevronDownIcon=styled(ChevronSmallDownIcon)({marginLeft:4}),EmptyArg=()=>React15__default.createElement(\"span\",null,\"-\"),ArgText=({text,simple})=>React15__default.createElement(Text3,{simple},text),calculateDetailWidth=(0, import_memoizerific.default)(1e3)(detail=>{let lines=detail.split(/\\r?\\n/);return `${Math.max(...lines.map(x2=>x2.length))}ch`}),getSummaryItems=summary=>{if(!summary)return [summary];let summaryItems=summary.split(\"|\").map(value3=>value3.trim());return uniq(summaryItems)},renderSummaryItems=(summaryItems,isExpanded=!0)=>{let items=summaryItems;return isExpanded||(items=summaryItems.slice(0,ITEMS_BEFORE_EXPANSION)),items.map(item=>React15__default.createElement(ArgText,{key:item,text:item===\"\"?'\"\"':item}))},ArgSummary=({value:value3,initialExpandedArgs})=>{let{summary,detail}=value3,[isOpen,setIsOpen]=useState(!1),[isExpanded,setIsExpanded]=useState(initialExpandedArgs||!1);if(summary==null)return null;let summaryAsString=typeof summary.toString==\"function\"?summary.toString():summary;if(detail==null){if(/[(){}[\\]<>]/.test(summaryAsString))return React15__default.createElement(ArgText,{text:summaryAsString});let summaryItems=getSummaryItems(summaryAsString),itemsCount=summaryItems.length;return itemsCount>ITEMS_BEFORE_EXPANSION?React15__default.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),React15__default.createElement(ExpandButton,{onClick:()=>setIsExpanded(!isExpanded)},isExpanded?\"Show less...\":`Show ${itemsCount-ITEMS_BEFORE_EXPANSION} more...`)):React15__default.createElement(Summary,null,renderSummaryItems(summaryItems))}return React15__default.createElement(WithTooltipPure,{closeOnOutsideClick:!0,placement:\"bottom\",visible:isOpen,onVisibleChange:isVisible=>{setIsOpen(isVisible);},tooltip:React15__default.createElement(Detail,{width:calculateDetailWidth(detail)},React15__default.createElement(SyntaxHighlighter,{language:\"jsx\",format:!1},detail))},React15__default.createElement(Expandable,{className:\"sbdocs-expandable\"},React15__default.createElement(\"span\",null,summaryAsString),isOpen?React15__default.createElement(ChevronUpIcon,null):React15__default.createElement(ChevronDownIcon,null)))},ArgValue=({value:value3,initialExpandedArgs})=>value3==null?React15__default.createElement(EmptyArg,null):React15__default.createElement(ArgSummary,{value:value3,initialExpandedArgs});var Name=styled.span({fontWeight:\"bold\"}),Required=styled.span(({theme})=>({color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:\"help\"})),Description=styled.div(({theme})=>({\"&&\":{p:{margin:\"0 0 10px 0\"},a:{color:theme.color.secondary}},code:{...codeCommon({theme}),fontSize:12,fontFamily:theme.typography.fonts.mono},\"& code\":{margin:0,display:\"inline-block\"},\"& pre > code\":{whiteSpace:\"pre-wrap\"}})),Type=styled.div(({theme,hasDescription})=>({color:theme.base===\"light\"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?4:0})),TypeWithJsDoc=styled.div(({theme,hasDescription})=>({color:theme.base===\"light\"?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12})),StyledTd=styled.td(({theme,expandable})=>({paddingLeft:expandable?\"40px !important\":\"20px !important\"})),toSummary=value3=>value3&&{summary:typeof value3==\"string\"?value3:value3.name},ArgRow=props=>{let[isHovered,setIsHovered]=useState(!1),{row,updateArgs,compact,expandable,initialExpandedArgs}=props,{name:name2,description}=row,table=row.table||{},type=table.type||toSummary(row.type),defaultValue=table.defaultValue||row.defaultValue,required=row.type?.required,hasDescription=description!=null&&description!==\"\";return React15__default.createElement(\"tr\",{onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1)},React15__default.createElement(StyledTd,{expandable},React15__default.createElement(Name,null,name2),required?React15__default.createElement(Required,{title:\"Required\"},\"*\"):null),compact?null:React15__default.createElement(\"td\",null,hasDescription&&React15__default.createElement(Description,null,React15__default.createElement(index_modern_default,null,description)),table.jsDocTags!=null?React15__default.createElement(React15__default.Fragment,null,React15__default.createElement(TypeWithJsDoc,{hasDescription},React15__default.createElement(ArgValue,{value:type,initialExpandedArgs})),React15__default.createElement(ArgJsDoc,{tags:table.jsDocTags})):React15__default.createElement(Type,{hasDescription},React15__default.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:React15__default.createElement(\"td\",null,React15__default.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?React15__default.createElement(\"td\",null,React15__default.createElement(ArgControl,{...props,isHovered})):null)};var Wrapper8=styled.div(({inAddonPanel,theme})=>({height:inAddonPanel?\"100%\":\"auto\",display:\"flex\",border:inAddonPanel?\"none\":`1px solid ${theme.appBorderColor}`,borderRadius:inAddonPanel?0:theme.appBorderRadius,padding:inAddonPanel?0:40,alignItems:\"center\",justifyContent:\"center\",flexDirection:\"column\",gap:15,background:theme.background.content,boxShadow:\"rgba(0, 0, 0, 0.10) 0 1px 3px 0\"})),Links=styled.div(({theme})=>({display:\"flex\",fontSize:theme.typography.size.s2-1,gap:25})),Divider=styled.div(({theme})=>({width:1,height:16,backgroundColor:theme.appBorderColor})),Empty=({inAddonPanel})=>{let[isLoading,setIsLoading]=useState(!0);return useEffect(()=>{let load=setTimeout(()=>{setIsLoading(!1);},100);return ()=>clearTimeout(load)},[]),isLoading?null:React15__default.createElement(Wrapper8,{inAddonPanel},React15__default.createElement(EmptyTabContent,{title:inAddonPanel?\"Interactive story playground\":\"Args table with interactive controls couldn't be auto-generated\",description:React15__default.createElement(React15__default.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:React15__default.createElement(Links,null,inAddonPanel&&React15__default.createElement(React15__default.Fragment,null,React15__default.createElement(Link,{href:\"https://youtu.be/0gOfS6K0x0E\",target:\"_blank\",withArrow:!0},React15__default.createElement(VideoIcon,null),\" Watch 5m video\"),React15__default.createElement(Divider,null),React15__default.createElement(Link,{href:\"https://storybook.js.org/docs/essentials/controls\",target:\"_blank\",withArrow:!0},React15__default.createElement(DocumentIcon,null),\" Read docs\")),!inAddonPanel&&React15__default.createElement(Link,{href:\"https://storybook.js.org/docs/essentials/controls\",target:\"_blank\",withArrow:!0},React15__default.createElement(DocumentIcon,null),\" Learn how to set that up\"))}))};var ExpanderIconDown=styled(ChevronDownIcon$1)(({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:theme.base===\"light\"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:\"none\",display:\"inline-block\"})),ExpanderIconRight=styled(ChevronRightIcon)(({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:theme.base===\"light\"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:\"none\",display:\"inline-block\"})),FlexWrapper=styled.span(({theme})=>({display:\"flex\",lineHeight:\"20px\",alignItems:\"center\"})),Section=styled.td(({theme})=>({position:\"relative\",letterSpacing:\"0.35em\",textTransform:\"uppercase\",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s1-1,color:theme.base===\"light\"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),background:`${theme.background.app} !important`,\"& ~ td\":{background:`${theme.background.app} !important`}})),Subsection=styled.td(({theme})=>({position:\"relative\",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.app})),StyledTd2=styled.td(()=>({position:\"relative\"})),StyledTr=styled.tr(({theme})=>({\"&:hover > td\":{backgroundColor:`${curriedLighten$1(.005,theme.background.app)} !important`,boxShadow:`${theme.color.mediumlight} 0 - 1px 0 0 inset`,cursor:\"row-resize\"}})),ClickIntercept=styled.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\"})),SectionRow=({level=\"section\",label,children,initialExpanded=!0,colSpan=3})=>{let[expanded,setExpanded]=useState(initialExpanded),Level=level===\"subsection\"?Subsection:Section,itemCount=children?.length||0,caption=level===\"subsection\"?`${itemCount} item${itemCount!==1?\"s\":\"\"}`:\"\",helperText=`${expanded?\"Hide\":\"Show\"} ${level===\"subsection\"?itemCount:label} item${itemCount!==1?\"s\":\"\"}`;return React15__default.createElement(React15__default.Fragment,null,React15__default.createElement(StyledTr,{title:helperText},React15__default.createElement(Level,{colSpan:1},React15__default.createElement(ClickIntercept,{onClick:e2=>setExpanded(!expanded),tabIndex:0},helperText),React15__default.createElement(FlexWrapper,null,expanded?React15__default.createElement(ExpanderIconDown,null):React15__default.createElement(ExpanderIconRight,null),label)),React15__default.createElement(StyledTd2,{colSpan:colSpan-1},React15__default.createElement(ClickIntercept,{onClick:e2=>setExpanded(!expanded),tabIndex:-1,style:{outline:\"none\"}},helperText),expanded?null:caption)),expanded?children:null)};var Row=styled.div(({theme})=>({display:\"flex\",gap:16,borderBottom:`1px solid ${theme.appBorderColor}`,\"&:last-child\":{borderBottom:0}})),Column=styled.div(({numColumn})=>({display:\"flex\",flexDirection:\"column\",flex:numColumn||1,gap:5,padding:\"12px 20px\"})),SkeletonText=styled.div(({theme,width,height})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,width:width||\"100%\",height:height||16,borderRadius:3})),columnWidth=[2,4,2,2],Skeleton=()=>React15__default.createElement(React15__default.Fragment,null,React15__default.createElement(Row,null,React15__default.createElement(Column,{numColumn:columnWidth[0]},React15__default.createElement(SkeletonText,{width:\"60%\"})),React15__default.createElement(Column,{numColumn:columnWidth[1]},React15__default.createElement(SkeletonText,{width:\"30%\"})),React15__default.createElement(Column,{numColumn:columnWidth[2]},React15__default.createElement(SkeletonText,{width:\"60%\"})),React15__default.createElement(Column,{numColumn:columnWidth[3]},React15__default.createElement(SkeletonText,{width:\"60%\"}))),React15__default.createElement(Row,null,React15__default.createElement(Column,{numColumn:columnWidth[0]},React15__default.createElement(SkeletonText,{width:\"60%\"})),React15__default.createElement(Column,{numColumn:columnWidth[1]},React15__default.createElement(SkeletonText,{width:\"80%\"}),React15__default.createElement(SkeletonText,{width:\"30%\"})),React15__default.createElement(Column,{numColumn:columnWidth[2]},React15__default.createElement(SkeletonText,{width:\"60%\"})),React15__default.createElement(Column,{numColumn:columnWidth[3]},React15__default.createElement(SkeletonText,{width:\"60%\"}))),React15__default.createElement(Row,null,React15__default.createElement(Column,{numColumn:columnWidth[0]},React15__default.createElement(SkeletonText,{width:\"60%\"})),React15__default.createElement(Column,{numColumn:columnWidth[1]},React15__default.createElement(SkeletonText,{width:\"80%\"}),React15__default.createElement(SkeletonText,{width:\"30%\"})),React15__default.createElement(Column,{numColumn:columnWidth[2]},React15__default.createElement(SkeletonText,{width:\"60%\"})),React15__default.createElement(Column,{numColumn:columnWidth[3]},React15__default.createElement(SkeletonText,{width:\"60%\"}))),React15__default.createElement(Row,null,React15__default.createElement(Column,{numColumn:columnWidth[0]},React15__default.createElement(SkeletonText,{width:\"60%\"})),React15__default.createElement(Column,{numColumn:columnWidth[1]},React15__default.createElement(SkeletonText,{width:\"80%\"}),React15__default.createElement(SkeletonText,{width:\"30%\"})),React15__default.createElement(Column,{numColumn:columnWidth[2]},React15__default.createElement(SkeletonText,{width:\"60%\"})),React15__default.createElement(Column,{numColumn:columnWidth[3]},React15__default.createElement(SkeletonText,{width:\"60%\"}))));var TableWrapper=styled.table(({theme,compact,inAddonPanel})=>({\"&&\":{borderSpacing:0,color:theme.color.defaultText,\"td, th\":{padding:0,border:\"none\",verticalAlign:\"top\",textOverflow:\"ellipsis\"},fontSize:theme.typography.size.s2-1,lineHeight:\"20px\",textAlign:\"left\",width:\"100%\",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?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)\":{...compact?null:{width:\"35%\"}},\"td:nth-of-type(3)\":{...compact?null:{width:\"15%\"}},\"th:last-of-type, td:last-of-type\":{paddingRight:20,...compact?null:{width:\"25%\"}},th:{color:theme.base===\"light\"?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.45,theme.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:inAddonPanel?0:1,marginRight:inAddonPanel?0:1,tbody:{...inAddonPanel?null:{filter:theme.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:theme.background.content,borderTop:`1px solid ${theme.appBorderColor}`},...inAddonPanel?null:{\"> tr:first-of-type > *\":{borderBlockStart:`1px solid ${theme.appBorderColor}`},\"> tr:last-of-type > *\":{borderBlockEnd:`1px solid ${theme.appBorderColor}`},\"> tr > *:first-of-type\":{borderInlineStart:`1px solid ${theme.appBorderColor}`},\"> tr > *:last-of-type\":{borderInlineEnd:`1px solid ${theme.appBorderColor}`},\"> tr:first-of-type > td:first-of-type\":{borderTopLeftRadius:theme.appBorderRadius},\"> tr:first-of-type > td:last-of-type\":{borderTopRightRadius:theme.appBorderRadius},\"> tr:last-of-type > td:first-of-type\":{borderBottomLeftRadius:theme.appBorderRadius},\"> tr:last-of-type > td:last-of-type\":{borderBottomRightRadius:theme.appBorderRadius}}}}})),StyledIconButton=styled(IconButton)(({theme})=>({margin:\"-4px -12px -4px 0\"})),ControlHeadingWrapper=styled.span({display:\"flex\",justifyContent:\"space-between\"});var sortFns={alpha:(a2,b2)=>a2.name.localeCompare(b2.name),requiredFirst:(a2,b2)=>+!!b2.type?.required-+!!a2.type?.required||a2.name.localeCompare(b2.name),none:void 0},groupRows=(rows,sort)=>{let sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach(([key2,row])=>{let{category,subcategory}=row?.table||{};if(category){let section=sections.sections[category]||{ungrouped:[],subsections:{}};if(!subcategory)section.ungrouped.push({key:key2,...row});else {let subsection=section.subsections[subcategory]||[];subsection.push({key:key2,...row}),section.subsections[subcategory]=subsection;}sections.sections[category]=section;}else if(subcategory){let subsection=sections.ungroupedSubsections[subcategory]||[];subsection.push({key:key2,...row}),sections.ungroupedSubsections[subcategory]=subsection;}else sections.ungrouped.push({key:key2,...row});});let sortFn=sortFns[sort],sortSubsection=record=>sortFn?Object.keys(record).reduce((acc,cur)=>({...acc,[cur]:record[cur].sort(sortFn)}),{}):record;return {ungrouped:sections.ungrouped.sort(sortFn),ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce((acc,cur)=>({...acc,[cur]:{ungrouped:sections.sections[cur].ungrouped.sort(sortFn),subsections:sortSubsection(sections.sections[cur].subsections)}}),{})}},safeIncludeConditionalArg=(row,args2,globals)=>{try{return includeConditionalArg(row,args2,globals)}catch(err){return once.warn(err.message),!1}},ArgsTable=props=>{let{updateArgs,resetArgs,compact,inAddonPanel,initialExpandedArgs,sort=\"none\",isLoading}=props;if(\"error\"in props){let{error}=props;return React15__default.createElement(EmptyBlock,null,error,\"\\xA0\",React15__default.createElement(Link,{href:\"http://storybook.js.org/docs/\",target:\"_blank\",withArrow:!0},React15__default.createElement(DocumentIcon,null),\" Read the docs\"))}if(isLoading)return React15__default.createElement(Skeleton,null);let{rows,args:args2,globals}=\"rows\"in props&&props,groups=groupRows(pickBy(rows||{},row=>!row?.table?.disable&&safeIncludeConditionalArg(row,args2||{},globals||{})),sort),hasNoUngrouped=groups.ungrouped.length===0,hasNoSections=Object.entries(groups.sections).length===0,hasNoUngroupedSubsections=Object.entries(groups.ungroupedSubsections).length===0;if(hasNoUngrouped&&hasNoSections&&hasNoUngroupedSubsections)return React15__default.createElement(Empty,{inAddonPanel});let colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);let expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return React15__default.createElement(ResetWrapper,null,React15__default.createElement(TableWrapper,{compact,inAddonPanel,className:\"docblock-argstable sb-unstyled\"},React15__default.createElement(\"thead\",{className:\"docblock-argstable-head\"},React15__default.createElement(\"tr\",null,React15__default.createElement(\"th\",null,React15__default.createElement(\"span\",null,\"Name\")),compact?null:React15__default.createElement(\"th\",null,React15__default.createElement(\"span\",null,\"Description\")),compact?null:React15__default.createElement(\"th\",null,React15__default.createElement(\"span\",null,\"Default\")),updateArgs?React15__default.createElement(\"th\",null,React15__default.createElement(ControlHeadingWrapper,null,\"Control\",\" \",!isLoading&&resetArgs&&React15__default.createElement(StyledIconButton,{onClick:()=>resetArgs(),title:\"Reset controls\"},React15__default.createElement(UndoIcon,{\"aria-hidden\":!0})))):null)),React15__default.createElement(\"tbody\",{className:\"docblock-argstable-body\"},groups.ungrouped.map(row=>React15__default.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],...common})),Object.entries(groups.ungroupedSubsections).map(([subcategory,subsection])=>React15__default.createElement(SectionRow,{key:subcategory,label:subcategory,level:\"subsection\",colSpan},subsection.map(row=>React15__default.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],expandable,...common})))),Object.entries(groups.sections).map(([category,section])=>React15__default.createElement(SectionRow,{key:category,label:category,level:\"section\",colSpan},section.ungrouped.map(row=>React15__default.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],...common})),Object.entries(section.subsections).map(([subcategory,subsection])=>React15__default.createElement(SectionRow,{key:subcategory,label:subcategory,level:\"subsection\",colSpan},subsection.map(row=>React15__default.createElement(ArgRow,{key:row.key,row,arg:args2&&args2[row.key],expandable,...common})))))))))};var TabbedArgsTable=({tabs,...props})=>{let entries=Object.entries(tabs);return entries.length===1?React15__default.createElement(ArgsTable,{...entries[0][1],...props}):React15__default.createElement(TabsState,null,entries.map((entry,index)=>{let[label,table]=entry,id=`prop_table_div_${label}`,Component4=\"div\",argsTableProps=index===0?props:{sort:props.sort};return React15__default.createElement(Component4,{key:id,id,title:label},({active})=>active?React15__default.createElement(ArgsTable,{key:`prop_table_${label}`,...table,...argsTableProps}):null)}))};var Label4=styled.div(({theme})=>({marginRight:30,fontSize:`${theme.typography.size.s1}px`,color:theme.base===\"light\"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),Sample=styled.div({overflow:\"hidden\",whiteSpace:\"nowrap\",textOverflow:\"ellipsis\"}),TypeSpecimen=styled.div({display:\"flex\",flexDirection:\"row\",alignItems:\"baseline\",\"&:not(:last-child)\":{marginBottom:\"1rem\"}}),Wrapper9=styled.div(withReset,({theme})=>({...getBlockBackgroundStyle(theme),margin:\"25px 0 40px\",padding:\"30px 20px\"})),Typeset=({fontFamily,fontSizes,fontWeight,sampleText,...props})=>React15__default.createElement(Wrapper9,{...props,className:\"docblock-typeset sb-unstyled\"},fontSizes.map(size=>React15__default.createElement(TypeSpecimen,{key:size},React15__default.createElement(Label4,null,size),React15__default.createElement(Sample,{style:{fontFamily,fontSize:size,fontWeight,lineHeight:1.2}},sampleText||\"Was he a beast if music could move him so?\"))));var ItemTitle=styled.div(({theme})=>({fontWeight:theme.typography.weight.bold,color:theme.color.defaultText})),ItemSubtitle=styled.div(({theme})=>({color:theme.base===\"light\"?curriedTransparentize$1(.2,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),ItemDescription=styled.div({flex:\"0 0 30%\",lineHeight:\"20px\",marginTop:5}),SwatchLabel=styled.div(({theme})=>({flex:1,textAlign:\"center\",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:\"hidden\",color:theme.base===\"light\"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),\"> div\":{display:\"inline-block\",overflow:\"hidden\",maxWidth:\"100%\",textOverflow:\"ellipsis\"},span:{display:\"block\",marginTop:2}})),SwatchLabels=styled.div({display:\"flex\",flexDirection:\"row\"}),Swatch=styled.div(({background})=>({position:\"relative\",flex:1,\"&::before\":{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background,content:'\"\"'}})),SwatchColors=styled.div(({theme})=>({...getBlockBackgroundStyle(theme),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\"})),SwatchSpecimen=styled.div({display:\"flex\",flexDirection:\"column\",flex:1,position:\"relative\",marginBottom:30}),Swatches=styled.div({flex:1,display:\"flex\",flexDirection:\"row\"}),Item=styled.div({display:\"flex\",alignItems:\"flex-start\"}),ListName=styled.div({flex:\"0 0 30%\"}),ListSwatches=styled.div({flex:1}),ListHeading=styled.div(({theme})=>({display:\"flex\",flexDirection:\"row\",alignItems:\"center\",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:theme.base===\"light\"?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)})),List=styled.div(({theme})=>({fontSize:theme.typography.size.s2,lineHeight:\"20px\",display:\"flex\",flexDirection:\"column\"}));function renderSwatch(color,index){return React15__default.createElement(Swatch,{key:`${color}-${index}`,title:color,background:color})}function renderSwatchLabel(color,index,colorDescription){return React15__default.createElement(SwatchLabel,{key:`${color}-${index}`,title:color},React15__default.createElement(\"div\",null,color,colorDescription&&React15__default.createElement(\"span\",null,colorDescription)))}function renderSwatchSpecimen(colors){if(Array.isArray(colors))return React15__default.createElement(SwatchSpecimen,null,React15__default.createElement(SwatchColors,null,colors.map((color,index)=>renderSwatch(color,index))),React15__default.createElement(SwatchLabels,null,colors.map((color,index)=>renderSwatchLabel(color,index))));let swatchElements=[],labelElements=[];for(let colorKey in colors){let colorValue=colors[colorKey];swatchElements.push(renderSwatch(colorValue,swatchElements.length)),labelElements.push(renderSwatchLabel(colorKey,labelElements.length,colorValue));}return React15__default.createElement(SwatchSpecimen,null,React15__default.createElement(SwatchColors,null,swatchElements),React15__default.createElement(SwatchLabels,null,labelElements))}var ColorItem=({title,subtitle,colors})=>React15__default.createElement(Item,null,React15__default.createElement(ItemDescription,null,React15__default.createElement(ItemTitle,null,title),React15__default.createElement(ItemSubtitle,null,subtitle)),React15__default.createElement(Swatches,null,renderSwatchSpecimen(colors))),ColorPalette=({children,...props})=>React15__default.createElement(ResetWrapper,null,React15__default.createElement(List,{...props,className:\"docblock-colorpalette sb-unstyled\"},React15__default.createElement(ListHeading,null,React15__default.createElement(ListName,null,\"Name\"),React15__default.createElement(ListSwatches,null,\"Swatches\")),children));var ItemLabel=styled.div(({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2})),ItemSpecimen=styled.div(({theme})=>({...getBlockBackgroundStyle(theme),overflow:\"hidden\",height:40,width:40,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flex:\"none\",\"> img, > svg\":{width:20,height:20}})),Item2=styled.div({display:\"inline-flex\",flexDirection:\"row\",alignItems:\"center\",flex:\"0 1 calc(20% - 10px)\",minWidth:120,margin:\"0px 10px 30px 0\"}),List2=styled.div({display:\"flex\",flexFlow:\"row wrap\"}),IconItem=({name:name2,children})=>React15__default.createElement(Item2,null,React15__default.createElement(ItemSpecimen,null,children),React15__default.createElement(ItemLabel,null,name2)),IconGallery=({children,...props})=>React15__default.createElement(ResetWrapper,null,React15__default.createElement(List2,{...props,className:\"docblock-icongallery sb-unstyled\"},children));var anchorBlockIdFromId=storyId=>`anchor--${storyId}`,Anchor=({storyId,children})=>React15__default.createElement(\"div\",{id:anchorBlockIdFromId(storyId),className:\"sb-anchor\"},children);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=createContext(null),globalThis.__DOCS_CONTEXT__.displayName=\"DocsContext\");var DocsContext=globalThis?globalThis.__DOCS_CONTEXT__:createContext(null);var useOf=(moduleExportOrType,validTypes)=>useContext(DocsContext).resolveOf(moduleExportOrType,validTypes);var titleCase=str=>str.split(\"-\").map(part=>part.charAt(0).toUpperCase()+part.slice(1)).join(\"\"),getComponentName=component=>{if(component)return typeof component==\"string\"?component.includes(\"-\")?titleCase(component):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name};function scrollToElement(element,block=\"start\"){element.scrollIntoView({behavior:\"smooth\",block,inline:\"nearest\"});}function extractComponentArgTypes(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error(\"Args unsupported. See Args documentation for your framework.\");return extractArgTypes(component)}function getArgTypesFromResolved(resolved){if(resolved.type===\"component\"){let{component:component2,projectAnnotations:{parameters:parameters2}}=resolved;return {argTypes:extractComponentArgTypes(component2,parameters2),parameters:parameters2,component:component2}}if(resolved.type===\"meta\"){let{preparedMeta:{argTypes:argTypes2,parameters:parameters2,component:component2,subcomponents:subcomponents2}}=resolved;return {argTypes:argTypes2,parameters:parameters2,component:component2,subcomponents:subcomponents2}}let{story:{argTypes,parameters,component,subcomponents}}=resolved;return {argTypes,parameters,component,subcomponents}}var ArgTypes=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let resolved=useOf(of||\"meta\"),{argTypes,parameters,component,subcomponents}=getArgTypesFromResolved(resolved),argTypesParameters=parameters.docs?.argTypes||{},include=props.include??argTypesParameters.include,exclude=props.exclude??argTypesParameters.exclude,sort=props.sort??argTypesParameters.sort,filteredArgTypes=filterArgTypes(argTypes,include,exclude);if(!(!!subcomponents&&Object.keys(subcomponents).length>0))return React15__default.createElement(ArgsTable,{rows:filteredArgTypes,sort});let mainComponentName=getComponentName(component),subcomponentTabs=Object.fromEntries(Object.entries(subcomponents).map(([key2,comp])=>[key2,{rows:filterArgTypes(extractComponentArgTypes(comp,parameters),include,exclude),sort}])),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return React15__default.createElement(TabbedArgsTable,{tabs,sort})};var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS2=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__copyProps=(to,from,except,desc)=>{if(from&&typeof from==\"object\"||typeof from==\"function\")for(let key2 of __getOwnPropNames(from))!__hasOwnProp.call(to,key2)&&key2!==except&&__defProp(to,key2,{get:()=>from[key2],enumerable:!(desc=__getOwnPropDesc(from,key2))||desc.enumerable});return to},__toESM2=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,\"default\",{value:mod,enumerable:!0}):target,mod)),eventProperties=[\"bubbles\",\"cancelBubble\",\"cancelable\",\"composed\",\"currentTarget\",\"defaultPrevented\",\"eventPhase\",\"isTrusted\",\"returnValue\",\"srcElement\",\"target\",\"timeStamp\",\"type\"],customEventSpecificProperties=[\"detail\"];function extractEventHiddenProperties(event){let rebuildEvent=eventProperties.filter(value3=>event[value3]!==void 0).reduce((acc,value3)=>({...acc,[value3]:event[value3]}),{});return event instanceof CustomEvent&&customEventSpecificProperties.filter(value3=>event[value3]!==void 0).forEach(value3=>{rebuildEvent[value3]=event[value3];}),rebuildEvent}var import_memoizerific2=__toESM(require_memoizerific(),1),require_shams=__commonJS2({\"node_modules/has-symbols/shams.js\"(exports,module){module.exports=function(){if(typeof Symbol!=\"function\"||typeof Object.getOwnPropertySymbols!=\"function\")return !1;if(typeof Symbol.iterator==\"symbol\")return !0;var obj={},sym=Symbol(\"test\"),symObj=Object(sym);if(typeof sym==\"string\"||Object.prototype.toString.call(sym)!==\"[object Symbol]\"||Object.prototype.toString.call(symObj)!==\"[object Symbol]\")return !1;var symVal=42;obj[sym]=symVal;for(sym in obj)return !1;if(typeof Object.keys==\"function\"&&Object.keys(obj).length!==0||typeof Object.getOwnPropertyNames==\"function\"&&Object.getOwnPropertyNames(obj).length!==0)return !1;var syms=Object.getOwnPropertySymbols(obj);if(syms.length!==1||syms[0]!==sym||!Object.prototype.propertyIsEnumerable.call(obj,sym))return !1;if(typeof Object.getOwnPropertyDescriptor==\"function\"){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(descriptor.value!==symVal||descriptor.enumerable!==!0)return !1}return !0};}}),require_has_symbols=__commonJS2({\"node_modules/has-symbols/index.js\"(exports,module){var origSymbol=typeof Symbol<\"u\"&&Symbol,hasSymbolSham=require_shams();module.exports=function(){return typeof origSymbol!=\"function\"||typeof Symbol!=\"function\"||typeof origSymbol(\"foo\")!=\"symbol\"||typeof Symbol(\"bar\")!=\"symbol\"?!1:hasSymbolSham()};}}),require_implementation=__commonJS2({\"node_modules/function-bind/implementation.js\"(exports,module){var ERROR_MESSAGE=\"Function.prototype.bind called on incompatible \",slice=Array.prototype.slice,toStr=Object.prototype.toString,funcType=\"[object Function]\";module.exports=function(that){var target=this;if(typeof target!=\"function\"||toStr.call(target)!==funcType)throw new TypeError(ERROR_MESSAGE+target);for(var args2=slice.call(arguments,1),bound,binder=function(){if(this instanceof bound){var result2=target.apply(this,args2.concat(slice.call(arguments)));return Object(result2)===result2?result2:this}else return target.apply(that,args2.concat(slice.call(arguments)))},boundLength=Math.max(0,target.length-args2.length),boundArgs=[],i2=0;i2\"u\"?undefined2:getProto(Uint8Array),INTRINSICS={\"%AggregateError%\":typeof AggregateError>\"u\"?undefined2:AggregateError,\"%Array%\":Array,\"%ArrayBuffer%\":typeof ArrayBuffer>\"u\"?undefined2:ArrayBuffer,\"%ArrayIteratorPrototype%\":hasSymbols?getProto([][Symbol.iterator]()):undefined2,\"%AsyncFromSyncIteratorPrototype%\":undefined2,\"%AsyncFunction%\":needsEval,\"%AsyncGenerator%\":needsEval,\"%AsyncGeneratorFunction%\":needsEval,\"%AsyncIteratorPrototype%\":needsEval,\"%Atomics%\":typeof Atomics>\"u\"?undefined2:Atomics,\"%BigInt%\":typeof BigInt>\"u\"?undefined2:BigInt,\"%Boolean%\":Boolean,\"%DataView%\":typeof DataView>\"u\"?undefined2:DataView,\"%Date%\":Date,\"%decodeURI%\":decodeURI,\"%decodeURIComponent%\":decodeURIComponent,\"%encodeURI%\":encodeURI,\"%encodeURIComponent%\":encodeURIComponent,\"%Error%\":Error,\"%eval%\":eval,\"%EvalError%\":EvalError,\"%Float32Array%\":typeof Float32Array>\"u\"?undefined2:Float32Array,\"%Float64Array%\":typeof Float64Array>\"u\"?undefined2:Float64Array,\"%FinalizationRegistry%\":typeof FinalizationRegistry>\"u\"?undefined2:FinalizationRegistry,\"%Function%\":$Function,\"%GeneratorFunction%\":needsEval,\"%Int8Array%\":typeof Int8Array>\"u\"?undefined2:Int8Array,\"%Int16Array%\":typeof Int16Array>\"u\"?undefined2:Int16Array,\"%Int32Array%\":typeof Int32Array>\"u\"?undefined2:Int32Array,\"%isFinite%\":isFinite,\"%isNaN%\":isNaN,\"%IteratorPrototype%\":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined2,\"%JSON%\":typeof JSON==\"object\"?JSON:undefined2,\"%Map%\":typeof Map>\"u\"?undefined2:Map,\"%MapIteratorPrototype%\":typeof Map>\"u\"||!hasSymbols?undefined2:getProto(new Map()[Symbol.iterator]()),\"%Math%\":Math,\"%Number%\":Number,\"%Object%\":Object,\"%parseFloat%\":parseFloat,\"%parseInt%\":parseInt,\"%Promise%\":typeof Promise>\"u\"?undefined2:Promise,\"%Proxy%\":typeof Proxy>\"u\"?undefined2:Proxy,\"%RangeError%\":RangeError,\"%ReferenceError%\":ReferenceError,\"%Reflect%\":typeof Reflect>\"u\"?undefined2:Reflect,\"%RegExp%\":RegExp,\"%Set%\":typeof Set>\"u\"?undefined2:Set,\"%SetIteratorPrototype%\":typeof Set>\"u\"||!hasSymbols?undefined2:getProto(new Set()[Symbol.iterator]()),\"%SharedArrayBuffer%\":typeof SharedArrayBuffer>\"u\"?undefined2:SharedArrayBuffer,\"%String%\":String,\"%StringIteratorPrototype%\":hasSymbols?getProto(\"\"[Symbol.iterator]()):undefined2,\"%Symbol%\":hasSymbols?Symbol:undefined2,\"%SyntaxError%\":$SyntaxError,\"%ThrowTypeError%\":ThrowTypeError,\"%TypedArray%\":TypedArray,\"%TypeError%\":$TypeError,\"%Uint8Array%\":typeof Uint8Array>\"u\"?undefined2:Uint8Array,\"%Uint8ClampedArray%\":typeof Uint8ClampedArray>\"u\"?undefined2:Uint8ClampedArray,\"%Uint16Array%\":typeof Uint16Array>\"u\"?undefined2:Uint16Array,\"%Uint32Array%\":typeof Uint32Array>\"u\"?undefined2:Uint32Array,\"%URIError%\":URIError,\"%WeakMap%\":typeof WeakMap>\"u\"?undefined2:WeakMap,\"%WeakRef%\":typeof WeakRef>\"u\"?undefined2:WeakRef,\"%WeakSet%\":typeof WeakSet>\"u\"?undefined2:WeakSet},doEval=function doEval2(name2){var value22;if(name2===\"%AsyncFunction%\")value22=getEvalledConstructor(\"async function () {}\");else if(name2===\"%GeneratorFunction%\")value22=getEvalledConstructor(\"function* () {}\");else if(name2===\"%AsyncGeneratorFunction%\")value22=getEvalledConstructor(\"async function* () {}\");else if(name2===\"%AsyncGenerator%\"){var fn=doEval2(\"%AsyncGeneratorFunction%\");fn&&(value22=fn.prototype);}else if(name2===\"%AsyncIteratorPrototype%\"){var gen=doEval2(\"%AsyncGenerator%\");gen&&(value22=getProto(gen.prototype));}return INTRINSICS[name2]=value22,value22},LEGACY_ALIASES={\"%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\"]},bind=require_function_bind(),hasOwn=require_src(),$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName2=/[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g,reEscapeChar2=/\\\\(\\\\)?/g,stringToPath2=function(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if(first===\"%\"&&last!==\"%\")throw new $SyntaxError(\"invalid intrinsic syntax, expected closing `%`\");if(last===\"%\"&&first!==\"%\")throw new $SyntaxError(\"invalid intrinsic syntax, expected opening `%`\");var result2=[];return $replace(string,rePropName2,function(match,number,quote,subString){result2[result2.length]=quote?$replace(subString,reEscapeChar2,\"$1\"):number||match;}),result2},getBaseIntrinsic=function(name2,allowMissing){var intrinsicName=name2,alias;if(hasOwn(LEGACY_ALIASES,intrinsicName)&&(alias=LEGACY_ALIASES[intrinsicName],intrinsicName=\"%\"+alias[0]+\"%\"),hasOwn(INTRINSICS,intrinsicName)){var value22=INTRINSICS[intrinsicName];if(value22===needsEval&&(value22=doEval(intrinsicName)),typeof value22>\"u\"&&!allowMissing)throw new $TypeError(\"intrinsic \"+name2+\" exists, but is not available. Please file an issue!\");return {alias,name:intrinsicName,value:value22}}throw new $SyntaxError(\"intrinsic \"+name2+\" does not exist!\")};module.exports=function(name2,allowMissing){if(typeof name2!=\"string\"||name2.length===0)throw new $TypeError(\"intrinsic name must be a non-empty string\");if(arguments.length>1&&typeof allowMissing!=\"boolean\")throw new $TypeError('\"allowMissing\" argument must be a boolean');if($exec(/^%?[^%]*%?$/,name2)===null)throw new $SyntaxError(\"`%` may not be present anywhere but at the beginning and end of the intrinsic name\");var parts=stringToPath2(name2),intrinsicBaseName=parts.length>0?parts[0]:\"\",intrinsic=getBaseIntrinsic(\"%\"+intrinsicBaseName+\"%\",allowMissing),intrinsicRealName=intrinsic.name,value22=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i2=1,isOwn=!0;i2=parts.length){var desc=$gOPD(value22,part);isOwn=!!desc,isOwn&&\"get\"in desc&&!(\"originalValue\"in desc.get)?value22=desc.get:value22=value22[part];}else isOwn=hasOwn(value22,part),value22=value22[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value22);}}return value22};}}),require_call_bind=__commonJS2({\"node_modules/call-bind/index.js\"(exports,module){var bind=require_function_bind(),GetIntrinsic=require_get_intrinsic(),$apply=GetIntrinsic(\"%Function.prototype.apply%\"),$call=GetIntrinsic(\"%Function.prototype.call%\"),$reflectApply=GetIntrinsic(\"%Reflect.apply%\",!0)||bind.call($call,$apply),$gOPD=GetIntrinsic(\"%Object.getOwnPropertyDescriptor%\",!0),$defineProperty=GetIntrinsic(\"%Object.defineProperty%\",!0),$max=GetIntrinsic(\"%Math.max%\");if($defineProperty)try{$defineProperty({},\"a\",{value:1});}catch{$defineProperty=null;}module.exports=function(originalFunction){var func=$reflectApply(bind,$call,arguments);if($gOPD&&$defineProperty){var desc=$gOPD(func,\"length\");desc.configurable&&$defineProperty(func,\"length\",{value:1+$max(0,originalFunction.length-(arguments.length-1))});}return func};var applyBind=function(){return $reflectApply(bind,$apply,arguments)};$defineProperty?$defineProperty(module.exports,\"apply\",{value:applyBind}):module.exports.apply=applyBind;}}),require_callBound=__commonJS2({\"node_modules/call-bind/callBound.js\"(exports,module){var GetIntrinsic=require_get_intrinsic(),callBind=require_call_bind(),$indexOf=callBind(GetIntrinsic(\"String.prototype.indexOf\"));module.exports=function(name2,allowMissing){var intrinsic=GetIntrinsic(name2,!!allowMissing);return typeof intrinsic==\"function\"&&$indexOf(name2,\".prototype.\")>-1?callBind(intrinsic):intrinsic};}}),require_shams2=__commonJS2({\"node_modules/has-tostringtag/shams.js\"(exports,module){var hasSymbols=require_shams();module.exports=function(){return hasSymbols()&&!!Symbol.toStringTag};}}),require_is_regex=__commonJS2({\"node_modules/is-regex/index.js\"(exports,module){var callBound=require_callBound(),hasToStringTag=require_shams2()(),has,$exec,isRegexMarker,badStringifier;hasToStringTag&&(has=callBound(\"Object.prototype.hasOwnProperty\"),$exec=callBound(\"RegExp.prototype.exec\"),isRegexMarker={},throwRegexMarker=function(){throw isRegexMarker},badStringifier={toString:throwRegexMarker,valueOf:throwRegexMarker},typeof Symbol.toPrimitive==\"symbol\"&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker));var throwRegexMarker,$toString=callBound(\"Object.prototype.toString\"),gOPD=Object.getOwnPropertyDescriptor,regexClass=\"[object RegExp]\";module.exports=hasToStringTag?function(value22){if(!value22||typeof value22!=\"object\")return !1;var descriptor=gOPD(value22,\"lastIndex\"),hasLastIndexDataProperty=descriptor&&has(descriptor,\"value\");if(!hasLastIndexDataProperty)return !1;try{$exec(value22,badStringifier);}catch(e2){return e2===isRegexMarker}}:function(value22){return !value22||typeof value22!=\"object\"&&typeof value22!=\"function\"?!1:$toString(value22)===regexClass};}}),require_is_function=__commonJS2({\"node_modules/is-function/index.js\"(exports,module){module.exports=isFunction3;var toString2=Object.prototype.toString;function isFunction3(fn){if(!fn)return !1;var string=toString2.call(fn);return string===\"[object Function]\"||typeof fn==\"function\"&&string!==\"[object RegExp]\"||typeof window<\"u\"&&(fn===window.setTimeout||fn===window.alert||fn===window.confirm||fn===window.prompt)}}}),require_is_symbol=__commonJS2({\"node_modules/is-symbol/index.js\"(exports,module){var toStr=Object.prototype.toString,hasSymbols=require_has_symbols()();hasSymbols?(symToStr=Symbol.prototype.toString,symStringRegex=/^Symbol\\(.*\\)$/,isSymbolObject=function(value22){return typeof value22.valueOf()!=\"symbol\"?!1:symStringRegex.test(symToStr.call(value22))},module.exports=function(value22){if(typeof value22==\"symbol\")return !0;if(toStr.call(value22)!==\"[object Symbol]\")return !1;try{return isSymbolObject(value22)}catch{return !1}}):module.exports=function(value22){return !1};var symToStr,symStringRegex,isSymbolObject;}}),import_is_regex=__toESM2(require_is_regex()),import_is_function=__toESM2(require_is_function()),import_is_symbol=__toESM2(require_is_symbol());function isObject(val){return val!=null&&typeof val==\"object\"&&Array.isArray(val)===!1}var freeGlobal=typeof global==\"object\"&&global&&global.Object===Object&&global,freeGlobal_default=freeGlobal,freeSelf=typeof self==\"object\"&&self&&self.Object===Object&&self,root2=freeGlobal_default||freeSelf||Function(\"return this\")(),root_default=root2,Symbol2=root_default.Symbol,Symbol_default=Symbol2,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;function getRawTag(value22){var isOwn=hasOwnProperty.call(value22,symToStringTag),tag=value22[symToStringTag];try{value22[symToStringTag]=void 0;var unmasked=!0;}catch{}var result2=nativeObjectToString.call(value22);return unmasked&&(isOwn?value22[symToStringTag]=tag:delete value22[symToStringTag]),result2}var getRawTag_default=getRawTag,objectProto2=Object.prototype,nativeObjectToString2=objectProto2.toString;function objectToString(value22){return nativeObjectToString2.call(value22)}var objectToString_default=objectToString,nullTag=\"[object Null]\",undefinedTag=\"[object Undefined]\",symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;function baseGetTag(value22){return value22==null?value22===void 0?undefinedTag:nullTag:symToStringTag2&&symToStringTag2 in Object(value22)?getRawTag_default(value22):objectToString_default(value22)}var baseGetTag_default=baseGetTag;var symbolProto=Symbol_default?Symbol_default.prototype:void 0;symbolProto?symbolProto.toString:void 0;function isObject2(value22){var type=typeof value22;return value22!=null&&(type==\"object\"||type==\"function\")}var isObject_default=isObject2,asyncTag=\"[object AsyncFunction]\",funcTag=\"[object Function]\",genTag=\"[object GeneratorFunction]\",proxyTag=\"[object Proxy]\";function isFunction(value22){if(!isObject_default(value22))return !1;var tag=baseGetTag_default(value22);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}var isFunction_default=isFunction,coreJsData=root_default[\"__core-js_shared__\"],coreJsData_default=coreJsData,maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData_default&&coreJsData_default.keys&&coreJsData_default.keys.IE_PROTO||\"\");return uid?\"Symbol(src)_1.\"+uid:\"\"}();function isMasked(func){return !!maskSrcKey&&maskSrcKey in func}var isMasked_default=isMasked,funcProto=Function.prototype,funcToString=funcProto.toString;function toSource(func){if(func!=null){try{return funcToString.call(func)}catch{}try{return func+\"\"}catch{}}return \"\"}var toSource_default=toSource,reRegExpChar=/[\\\\^$.*+?()[\\]{}|]/g,reIsHostCtor=/^\\[object .+?Constructor\\]$/,funcProto2=Function.prototype,objectProto3=Object.prototype,funcToString2=funcProto2.toString,hasOwnProperty2=objectProto3.hasOwnProperty,reIsNative=RegExp(\"^\"+funcToString2.call(hasOwnProperty2).replace(reRegExpChar,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\");function baseIsNative(value22){if(!isObject_default(value22)||isMasked_default(value22))return !1;var pattern=isFunction_default(value22)?reIsNative:reIsHostCtor;return pattern.test(toSource_default(value22))}var baseIsNative_default=baseIsNative;function getValue(object2,key2){return object2?.[key2]}var getValue_default=getValue;function getNative(object2,key2){var value22=getValue_default(object2,key2);return baseIsNative_default(value22)?value22:void 0}var getNative_default=getNative;function eq(value22,other){return value22===other||value22!==value22&&other!==other}var eq_default=eq;var nativeCreate=getNative_default(Object,\"create\"),nativeCreate_default=nativeCreate;function hashClear(){this.__data__=nativeCreate_default?nativeCreate_default(null):{},this.size=0;}var hashClear_default=hashClear;function hashDelete(key2){var result2=this.has(key2)&&delete this.__data__[key2];return this.size-=result2?1:0,result2}var hashDelete_default=hashDelete,HASH_UNDEFINED=\"__lodash_hash_undefined__\",objectProto4=Object.prototype,hasOwnProperty3=objectProto4.hasOwnProperty;function hashGet(key2){var data=this.__data__;if(nativeCreate_default){var result2=data[key2];return result2===HASH_UNDEFINED?void 0:result2}return hasOwnProperty3.call(data,key2)?data[key2]:void 0}var hashGet_default=hashGet,objectProto5=Object.prototype,hasOwnProperty4=objectProto5.hasOwnProperty;function hashHas(key2){var data=this.__data__;return nativeCreate_default?data[key2]!==void 0:hasOwnProperty4.call(data,key2)}var hashHas_default=hashHas,HASH_UNDEFINED2=\"__lodash_hash_undefined__\";function hashSet(key2,value22){var data=this.__data__;return this.size+=this.has(key2)?0:1,data[key2]=nativeCreate_default&&value22===void 0?HASH_UNDEFINED2:value22,this}var hashSet_default=hashSet;function Hash(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index-1}var listCacheHas_default=listCacheHas;function listCacheSet(key2,value22){var data=this.__data__,index=assocIndexOf_default(data,key2);return index<0?(++this.size,data.push([key2,value22])):data[index][1]=value22,this}var listCacheSet_default=listCacheSet;function ListCache(entries){var index=-1,length=entries==null?0:entries.length;for(this.clear();++index{let inQuoteChar=null,inBlockComment=!1,inLineComment=!1,inRegexLiteral=!1,newCode=\"\";if(code.indexOf(\"//\")>=0||code.indexOf(\"/*\")>=0)for(let i2=0;i2removeCodeComments(code).replace(/\\n\\s*/g,\"\").trim()),convertShorthandMethods=function(key2,stringified){let fnHead=stringified.slice(0,stringified.indexOf(\"{\")),fnBody=stringified.slice(stringified.indexOf(\"{\"));if(fnHead.includes(\"=>\")||fnHead.includes(\"function\"))return stringified;let modifiedHead=fnHead;return modifiedHead=modifiedHead.replace(key2,\"function\"),modifiedHead+fnBody},dateFormat=/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$/;function convertUnconventionalData(data){if(!isObject3(data))return data;let result2=data,wasMutated=!1;return typeof Event<\"u\"&&data instanceof Event&&(result2=extractEventHiddenProperties(result2),wasMutated=!0),result2=Object.keys(result2).reduce((acc,key2)=>{try{result2[key2]&&result2[key2].toJSON,acc[key2]=result2[key2];}catch{wasMutated=!0;}return acc},{}),wasMutated?result2:data}var replacer=function(options2){let objects,map,stack,keys;return function(key2,value22){try{if(key2===\"\")return keys=[],objects=new Map([[value22,\"[]\"]]),map=new Map,stack=[],value22;let origin=map.get(this)||this;for(;stack.length&&origin!==stack[0];)stack.shift(),keys.pop();if(typeof value22==\"boolean\")return value22;if(value22===void 0)return options2.allowUndefined?\"_undefined_\":void 0;if(value22===null)return null;if(typeof value22==\"number\")return value22===-1/0?\"_-Infinity_\":value22===1/0?\"_Infinity_\":Number.isNaN(value22)?\"_NaN_\":value22;if(typeof value22==\"bigint\")return `_bigint_${value22.toString()}`;if(typeof value22==\"string\")return dateFormat.test(value22)?options2.allowDate?`_date_${value22}`:void 0:value22;if((0,import_is_regex.default)(value22))return options2.allowRegExp?`_regexp_${value22.flags}|${value22.source}`:void 0;if((0,import_is_function.default)(value22)){if(!options2.allowFunction)return;let{name:name2}=value22,stringified=value22.toString();return stringified.match(/(\\[native code\\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${name2}|${(()=>{}).toString()}`:`_function_${name2}|${cleanCode(convertShorthandMethods(key2,stringified))}`}if((0,import_is_symbol.default)(value22)){if(!options2.allowSymbol)return;let globalRegistryKey=Symbol.keyFor(value22);return globalRegistryKey!==void 0?`_gsymbol_${globalRegistryKey}`:`_symbol_${value22.toString().slice(7,-1)}`}if(stack.length>=options2.maxDepth)return Array.isArray(value22)?`[Array(${value22.length})]`:\"[Object]\";if(value22===this)return `_duplicate_${JSON.stringify(keys)}`;if(value22 instanceof Error&&options2.allowError)return {__isConvertedError__:!0,errorProperties:{...value22.cause?{cause:value22.cause}:{},...value22,name:value22.name,message:value22.message,stack:value22.stack,\"_constructor-name_\":value22.constructor.name}};if(value22.constructor&&value22.constructor.name&&value22.constructor.name!==\"Object\"&&!Array.isArray(value22)&&!options2.allowClass)return;let found=objects.get(value22);if(!found){let converted=Array.isArray(value22)?value22:convertUnconventionalData(value22);if(value22.constructor&&value22.constructor.name&&value22.constructor.name!==\"Object\"&&!Array.isArray(value22)&&options2.allowClass)try{Object.assign(converted,{\"_constructor-name_\":value22.constructor.name});}catch{}return keys.push(key2),stack.unshift(converted),objects.set(value22,JSON.stringify(keys)),value22!==converted&&map.set(value22,converted),converted}return `_duplicate_${found}`}catch{return}}},defaultOptions={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},stringify=(data,options2={})=>{let mergedOptions={...defaultOptions,...options2};return JSON.stringify(convertUnconventionalData(data),replacer(mergedOptions),options2.space)};function argsHash(args2){return stringify(args2,{allowFunction:!1})}var SourceContext=createContext({sources:{}}),UNKNOWN_ARGS_HASH=\"--unknown--\",SourceContainer=({children,channel})=>{let[sources,setSources]=useState({});return useEffect(()=>{let handleSnippetRendered=(idOrEvent,inputSource=null,inputFormat=!1)=>{let{id,args:args2=void 0,source:source2,format:format3}=typeof idOrEvent==\"string\"?{id:idOrEvent,source:inputSource,format:inputFormat}:idOrEvent,hash=args2?argsHash(args2):UNKNOWN_ARGS_HASH;setSources(current=>({...current,[id]:{...current[id],[hash]:{code:source2,format:format3}}}));};return channel.on(SNIPPET_RENDERED,handleSnippetRendered),()=>channel.off(SNIPPET_RENDERED,handleSnippetRendered)},[]),React15__default.createElement(SourceContext.Provider,{value:{sources}},children)};var getStorySource=(storyId,args2,sourceContext)=>{let{sources}=sourceContext,sourceMap=sources?.[storyId];return sourceMap?.[argsHash(args2)]||sourceMap?.[UNKNOWN_ARGS_HASH]||{code:\"\"}},getSnippet=({snippet,storyContext,typeFromProps,transformFromProps})=>{let{__isArgsStory:isArgsStory}=storyContext.parameters,sourceParameters=storyContext.parameters.docs?.source||{},type=typeFromProps||sourceParameters.type||SourceType.AUTO;if(sourceParameters.code!==void 0)return sourceParameters.code;let code=type===SourceType.DYNAMIC||type===SourceType.AUTO&&snippet&&isArgsStory?snippet:sourceParameters.originalSource||\"\";return (transformFromProps??sourceParameters.transform)?.(code,storyContext)||code},useSourceProps=(props,docsContext,sourceContext)=>{let story,{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");if(of)story=docsContext.resolveOf(of,[\"story\"]).story;else try{story=docsContext.storyById();}catch{}let sourceParameters=story?.parameters?.docs?.source||{},{code}=props,format3=props.format??sourceParameters.format,language=props.language??sourceParameters.language??\"jsx\",dark=props.dark??sourceParameters.dark??!1;if(!code&&!story)return {error:\"Oh no! The source is not available.\"};if(code)return {code,format:format3,language,dark};let storyContext=docsContext.getStoryContext(story),argsForSource=props.__forceInitialArgs?storyContext.initialArgs:storyContext.unmappedArgs,source2=getStorySource(story.id,argsForSource,sourceContext);return format3=source2.format??story.parameters.docs?.source?.format??!1,{code:getSnippet({snippet:source2.code,storyContext:{...storyContext,args:argsForSource},typeFromProps:props.type,transformFromProps:props.transform}),format:format3,language,dark}},Source2=props=>{let sourceContext=useContext(SourceContext),docsContext=useContext(DocsContext),sourceProps=useSourceProps(props,docsContext,sourceContext);return React15__default.createElement(Source,{...sourceProps})};function useStory(storyId,context){let stories=useStories([storyId],context);return stories&&stories[0]}function useStories(storyIds,context){let[storiesById,setStories]=useState({});return useEffect(()=>{Promise.all(storyIds.map(async storyId=>{let story=await context.loadStory(storyId);setStories(current=>current[storyId]===story?current:{...current,[storyId]:story});}));}),storyIds.map(storyId=>{if(storiesById[storyId])return storiesById[storyId];try{return context.storyById(storyId)}catch{return null}})}var getStoryId2=(props,context)=>{let{of,meta}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");return meta&&context.referenceMeta(meta,!1),context.resolveOf(of||\"story\",[\"story\"]).story.id},getStoryProps=(props,story,context)=>{let{parameters={}}=story||{},{docs={}}=parameters,storyParameters=docs.story||{};if(docs.disable)return null;if(props.inline??storyParameters.inline??!1){let height2=props.height??storyParameters.height,autoplay=props.autoplay??storyParameters.autoplay??!1;return {story,inline:!0,height:height2,autoplay,forceInitialArgs:!!props.__forceInitialArgs,primary:!!props.__primary,renderStoryToElement:context.renderStoryToElement}}let height=props.height??storyParameters.height??storyParameters.iframeHeight??\"100px\";return {story,inline:!1,height,primary:!!props.__primary}},Story2=(props={__forceInitialArgs:!1,__primary:!1})=>{let context=useContext(DocsContext),storyId=getStoryId2(props,context),story=useStory(storyId,context);if(!story)return React15__default.createElement(StorySkeleton,null);let storyProps=getStoryProps(props,story,context);return storyProps?React15__default.createElement(Story,{...storyProps}):null};var Canvas=props=>{let docsContext=useContext(DocsContext),sourceContext=useContext(SourceContext),{of,source:source2}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let{story}=useOf(of||\"story\",[\"story\"]),sourceProps=useSourceProps({...source2,...of&&{of}},docsContext,sourceContext),layout=props.layout??story.parameters.layout??story.parameters.docs?.canvas?.layout??\"padded\",withToolbar=props.withToolbar??story.parameters.docs?.canvas?.withToolbar??!1,additionalActions=props.additionalActions??story.parameters.docs?.canvas?.additionalActions,sourceState=props.sourceState??story.parameters.docs?.canvas?.sourceState??\"hidden\",className=props.className??story.parameters.docs?.canvas?.className;return React15__default.createElement(Preview,{withSource:sourceState===\"none\"?void 0:sourceProps,isExpanded:sourceState===\"shown\",withToolbar,additionalActions,className,layout},React15__default.createElement(Story2,{of:of||story.moduleExport,meta:props.meta,...props.story}))};var useArgs=(story,context)=>{let result2=useArgsIfDefined(story,context);if(!result2)throw new Error(\"No result when story was defined\");return result2},useArgsIfDefined=(story,context)=>{let storyContext=story?context.getStoryContext(story):{args:{}},{id:storyId}=story||{id:\"none\"},[args2,setArgs]=useState(storyContext.args);useEffect(()=>{let onArgsUpdated=changed=>{changed.storyId===storyId&&setArgs(changed.args);};return context.channel.on(STORY_ARGS_UPDATED,onArgsUpdated),()=>context.channel.off(STORY_ARGS_UPDATED,onArgsUpdated)},[storyId,context.channel]);let updateArgs=useCallback(updatedArgs=>context.channel.emit(UPDATE_STORY_ARGS,{storyId,updatedArgs}),[storyId,context.channel]),resetArgs=useCallback(argNames=>context.channel.emit(RESET_STORY_ARGS,{storyId,argNames}),[storyId,context.channel]);return story&&[args2,updateArgs,resetArgs]};var useGlobals=(story,context)=>{let storyContext=context.getStoryContext(story),[globals,setGlobals]=useState(storyContext.globals);return useEffect(()=>{let onGlobalsUpdated=changed=>{setGlobals(changed.globals);};return context.channel.on(GLOBALS_UPDATED,onGlobalsUpdated),()=>context.channel.off(GLOBALS_UPDATED,onGlobalsUpdated)},[context.channel]),[globals]};function extractComponentArgTypes2(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error(\"Args unsupported. See Args documentation for your framework.\");return extractArgTypes(component)}var Controls3=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let context=useContext(DocsContext),{story}=context.resolveOf(of||\"story\",[\"story\"]),{parameters,argTypes,component,subcomponents}=story,controlsParameters=parameters.docs?.controls||{},include=props.include??controlsParameters.include,exclude=props.exclude??controlsParameters.exclude,sort=props.sort??controlsParameters.sort,[args2,updateArgs,resetArgs]=useArgs(story,context),[globals]=useGlobals(story,context),filteredArgTypes=filterArgTypes(argTypes,include,exclude);if(!(!!subcomponents&&Object.keys(subcomponents).length>0))return Object.keys(filteredArgTypes).length>0||Object.keys(args2).length>0?React15__default.createElement(ArgsTable,{rows:filteredArgTypes,sort,args:args2,globals,updateArgs,resetArgs}):null;let mainComponentName=getComponentName(component),subcomponentTabs=Object.fromEntries(Object.entries(subcomponents).map(([key2,comp])=>[key2,{rows:filterArgTypes(extractComponentArgTypes2(comp,parameters),include,exclude),sort}])),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return React15__default.createElement(TabbedArgsTable,{tabs,sort,args:args2,globals,updateArgs,resetArgs})};var {document:document2}=globalThis,assertIsFn=val=>{if(typeof val!=\"function\")throw new Error(`Expected story function, got: ${val}`);return val},AddContext=props=>{let{children,...rest}=props,parentContext=React15__default.useContext(DocsContext);return React15__default.createElement(DocsContext.Provider,{value:{...parentContext,...rest}},children)},CodeOrSourceMdx=({className,children,...rest})=>{if(typeof className!=\"string\"&&(typeof children!=\"string\"||!children.match(/[\\n\\r]/g)))return React15__default.createElement(Code,null,children);let language=className&&className.split(\"-\");return React15__default.createElement(Source,{language:language&&language[1]||\"text\",format:!1,code:children,...rest})};function navigate(context,url){context.channel.emit(NAVIGATE_URL,url);}var A2=components.a,AnchorInPage=({hash,children})=>{let context=useContext(DocsContext);return React15__default.createElement(A2,{href:hash,target:\"_self\",onClick:event=>{let id=hash.substring(1);document2.getElementById(id)&&navigate(context,hash);}},children)},AnchorMdx=props=>{let{href,target,children,...rest}=props,context=useContext(DocsContext);return !href||target===\"_blank\"||/^https?:\\/\\//.test(href)?React15__default.createElement(A2,{...props}):href.startsWith(\"#\")?React15__default.createElement(AnchorInPage,{hash:href},children):React15__default.createElement(A2,{href,onClick:event=>{event.button===0&&!event.altKey&&!event.ctrlKey&&!event.metaKey&&!event.shiftKey&&(event.preventDefault(),navigate(context,event.currentTarget.getAttribute(\"href\")));},target,...rest},children)},SUPPORTED_MDX_HEADERS=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:styled(headerType)({\"& svg\":{position:\"relative\",top:\"-0.1em\",visibility:\"hidden\"},\"&:hover svg\":{visibility:\"visible\"}})}),{}),OcticonAnchor=styled.a(()=>({float:\"left\",lineHeight:\"inherit\",paddingRight:\"10px\",marginLeft:\"-24px\",color:\"inherit\"})),HeaderWithOcticonAnchor=({as,id,children,...rest})=>{let context=useContext(DocsContext),OcticonHeader=OcticonHeaders[as],hash=`#${id}`;return React15__default.createElement(OcticonHeader,{id,...rest},React15__default.createElement(OcticonAnchor,{\"aria-hidden\":\"true\",href:hash,tabIndex:-1,target:\"_self\",onClick:event=>{document2.getElementById(id)&&navigate(context,hash);}},React15__default.createElement(LinkIcon,null)),children)},HeaderMdx=props=>{let{as,id,children,...rest}=props;if(id)return React15__default.createElement(HeaderWithOcticonAnchor,{as,id,...rest},children);let Component4=as,{as:omittedAs,...withoutAs}=props;return React15__default.createElement(Component4,{...nameSpaceClassNames(withoutAs,as)})},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce((acc,headerType)=>({...acc,[headerType]:props=>React15__default.createElement(HeaderMdx,{as:headerType,...props})}),{});var Markdown=props=>{if(!props.children)return null;if(typeof props.children!=\"string\")throw new Error(dedent`The Markdown block only accepts children as a single string, but children were of type: '${typeof props.children}'\n This is often caused by not wrapping the child in a template string.\n \n This is invalid:\n \n # Some heading\n A paragraph\n \n\n Instead do:\n \n {\\`\n # Some heading\n A paragraph\n \\`}\n \n `);return React15__default.createElement(index_modern_default,{...props,options:{forceBlock:!0,overrides:{code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx,...props?.options?.overrides},...props?.options}})};var DescriptionType=(DescriptionType2=>(DescriptionType2.INFO=\"info\",DescriptionType2.NOTES=\"notes\",DescriptionType2.DOCGEN=\"docgen\",DescriptionType2.AUTO=\"auto\",DescriptionType2))(DescriptionType||{}),getDescriptionFromResolvedOf=resolvedOf=>{switch(resolvedOf.type){case\"story\":return resolvedOf.story.parameters.docs?.description?.story||null;case\"meta\":{let{parameters,component}=resolvedOf.preparedMeta,metaDescription=parameters.docs?.description?.component;return metaDescription||parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}case\"component\":{let{component,projectAnnotations:{parameters}}=resolvedOf;return parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${resolvedOf.type}`)}},DescriptionContainer=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let resolvedOf=useOf(of||\"meta\"),markdown=getDescriptionFromResolvedOf(resolvedOf);return markdown?React15__default.createElement(Markdown,null,markdown):null};var tocbot=__toESM(require_js());var Wrapper10=styled.div(({theme})=>({width:\"10rem\",\"@media (max-width: 768px)\":{display:\"none\"}})),Content=styled.div(({theme})=>({position:\"fixed\",bottom:0,top:0,width:\"10rem\",paddingTop:\"4rem\",paddingBottom:\"2rem\",overflowY:\"auto\",fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,WebkitFontSmoothing:\"antialiased\",MozOsxFontSmoothing:\"grayscale\",WebkitTapHighlightColor:\"rgba(0, 0, 0, 0)\",WebkitOverflowScrolling:\"touch\",\"& *\":{boxSizing:\"border-box\"},\"& > .toc-wrapper > .toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,\".toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,\".toc-list\":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`}}},\"& .toc-list-item\":{position:\"relative\",listStyleType:\"none\",marginLeft:20,paddingTop:3,paddingBottom:3},\"& .toc-list-item::before\":{content:'\"\"',position:\"absolute\",height:\"100%\",top:0,left:0,transform:\"translateX(calc(-2px - 20px))\",borderLeft:`solid 2px ${theme.color.mediumdark}`,opacity:0,transition:\"opacity 0.2s\"},\"& .toc-list-item.is-active-li::before\":{opacity:1},\"& .toc-list-item > a\":{color:theme.color.defaultText,textDecoration:\"none\"},\"& .toc-list-item.is-active-li > a\":{fontWeight:600,color:theme.color.secondary,textDecoration:\"none\"}})),Heading=styled.p(({theme})=>({fontWeight:600,fontSize:\"0.875em\",color:theme.textColor,textTransform:\"uppercase\",marginBottom:10})),OptionalTitle=({title})=>title===null?null:typeof title==\"string\"?React15__default.createElement(Heading,null,title):title,TableOfContents=({title,disable,headingSelector,contentsSelector,ignoreSelector,unsafeTocbotOptions})=>(useEffect(()=>{let configuration={tocSelector:\".toc-wrapper\",contentSelector:contentsSelector??\".sbdocs-content\",headingSelector:headingSelector??\"h3\",ignoreSelector:ignoreSelector??\".docs-story *, .skip-toc\",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:()=>!1,...unsafeTocbotOptions},timeout=setTimeout(()=>tocbot.init(configuration),100);return ()=>{clearTimeout(timeout),tocbot.destroy();}},[disable]),React15__default.createElement(React15__default.Fragment,null,React15__default.createElement(Wrapper10,null,disable?null:React15__default.createElement(Content,null,React15__default.createElement(OptionalTitle,{title:title||null}),React15__default.createElement(\"div\",{className:\"toc-wrapper\"})))));var {document:document3,window:globalWindow3}=globalThis,DocsContainer=({context,theme,children})=>{let toc;try{toc=context.resolveOf(\"meta\",[\"meta\"]).preparedMeta.parameters?.docs?.toc;}catch{toc=context?.projectAnnotations?.parameters?.docs?.toc;}return useEffect(()=>{let url;try{if(url=new URL(globalWindow3.parent.location.toString()),url.hash){let element=document3.getElementById(decodeURIComponent(url.hash.substring(1)));element&&setTimeout(()=>{scrollToElement(element);},200);}}catch{}}),React15__default.createElement(DocsContext.Provider,{value:context},React15__default.createElement(SourceContainer,{channel:context.channel},React15__default.createElement(ThemeProvider,{theme:ensure(theme)},React15__default.createElement(DocsPageWrapper,{toc:toc?React15__default.createElement(TableOfContents,{className:\"sbdocs sbdocs-toc--custom\",...toc}):null},children))))};var Subheading=({children,disableAnchor})=>{if(disableAnchor||typeof children!=\"string\")return React15__default.createElement(H3,null,children);let tagID=globalThis.encodeURIComponent(children.toLowerCase());return React15__default.createElement(HeaderMdx,{as:\"h3\",id:tagID},children)};var DocsStory=({of,expanded=!0,withToolbar:withToolbarProp=!1,__forceInitialArgs=!1,__primary=!1})=>{let{story}=useOf(of||\"story\",[\"story\"]),withToolbar=story.parameters.docs?.canvas?.withToolbar??withToolbarProp;return React15__default.createElement(Anchor,{storyId:story.id},expanded&&React15__default.createElement(React15__default.Fragment,null,React15__default.createElement(Subheading,null,story.name),React15__default.createElement(DescriptionContainer,{of})),React15__default.createElement(Canvas,{of,withToolbar,story:{__forceInitialArgs,__primary},source:{__forceInitialArgs}}))};var Primary=props=>{let{of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let{csfFile}=useOf(of||\"meta\",[\"meta\"]),primaryStory=useContext(DocsContext).componentStoriesFromCSFFile(csfFile)[0];return primaryStory?React15__default.createElement(DocsStory,{of:primaryStory.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null};var Heading2=({children,disableAnchor,...props})=>{if(disableAnchor||typeof children!=\"string\")return React15__default.createElement(H2,null,children);let tagID=children.toLowerCase().replace(/[^a-z0-9]/gi,\"-\");return React15__default.createElement(HeaderMdx,{as:\"h2\",id:tagID,...props},children)};var StyledHeading=styled(Heading2)(({theme})=>({fontSize:`${theme.typography.size.s2-1}px`,fontWeight:theme.typography.weight.bold,lineHeight:\"16px\",letterSpacing:\"0.35em\",textTransform:\"uppercase\",color:theme.textMutedColor,border:0,marginBottom:\"12px\",\"&:first-of-type\":{marginTop:\"56px\"}})),Stories=({title=\"Stories\",includePrimary=!0})=>{let{componentStories,projectAnnotations,getStoryContext}=useContext(DocsContext),stories=componentStories(),{stories:{filter}={filter:void 0}}=projectAnnotations.parameters?.docs||{};return filter&&(stories=stories.filter(story=>filter(story,getStoryContext(story)))),stories.some(story=>story.tags?.includes(\"autodocs\"))&&(stories=stories.filter(story=>story.tags?.includes(\"autodocs\")&&!story.usesMount)),includePrimary||(stories=stories.slice(1)),!stories||stories.length===0?null:React15__default.createElement(React15__default.Fragment,null,React15__default.createElement(StyledHeading,null,title),stories.map(story=>story&&React15__default.createElement(DocsStory,{key:story.id,of:story.moduleExport,expanded:!0,__forceInitialArgs:!0})))};var DEPRECATION_MIGRATION_LINK=\"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle\",Subtitle2=props=>{let{of,children}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let preparedMeta;try{preparedMeta=useOf(of||\"meta\",[\"meta\"]).preparedMeta;}catch(error){if(children&&!error.message.includes(\"did you forget to use ?\"))throw error}let{componentSubtitle,docs}=preparedMeta?.parameters||{};componentSubtitle&&deprecate(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${DEPRECATION_MIGRATION_LINK}`);let content=children||docs?.subtitle||componentSubtitle;return content?React15__default.createElement(Subtitle,{className:\"sbdocs-subtitle sb-unstyled\"},content):null};var STORY_KIND_PATH_SEPARATOR=/\\s*\\/\\s*/,extractTitle=title=>{let groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups?.[groups?.length-1]||title},Title2=props=>{let{children,of}=props;if(\"of\"in props&&of===void 0)throw new Error(\"Unexpected `of={undefined}`, did you mistype a CSF file reference?\");let preparedMeta;try{preparedMeta=useOf(of||\"meta\",[\"meta\"]).preparedMeta;}catch(error){if(children&&!error.message.includes(\"did you forget to use ?\"))throw error}let content=children||extractTitle(preparedMeta?.title);return content?React15__default.createElement(Title,{className:\"sbdocs-title sb-unstyled\"},content):null};var DocsPage=()=>{let resolvedOf=useOf(\"meta\",[\"meta\"]),{stories}=resolvedOf.csfFile,isSingleStory=Object.keys(stories).length===1;return React15__default.createElement(React15__default.Fragment,null,React15__default.createElement(Title2,null),React15__default.createElement(Subtitle2,null),React15__default.createElement(DescriptionContainer,{of:\"meta\"}),isSingleStory?React15__default.createElement(DescriptionContainer,{of:\"story\"}):null,React15__default.createElement(Primary,null),React15__default.createElement(Controls3,null),isSingleStory?null:React15__default.createElement(Stories,null))};function Docs({context,docsParameter}){let Container=docsParameter.container||DocsContainer,Page=docsParameter.page||DocsPage;return React15__default.createElement(Container,{context,theme:docsParameter.theme},React15__default.createElement(Page,null))}var ExternalDocsContext=class extends DocsContext$1{constructor(channel,store,renderStoryToElement,processMetaExports){super(channel,store,renderStoryToElement,[]);this.channel=channel;this.store=store;this.renderStoryToElement=renderStoryToElement;this.processMetaExports=processMetaExports;this.referenceMeta=(metaExports,attach)=>{let csfFile=this.processMetaExports(metaExports);this.referenceCSFFile(csfFile),super.referenceMeta(metaExports,attach);};}};var ConstantMap=class{constructor(prefix){this.prefix=prefix;this.entries=new Map;}get(key2){return this.entries.has(key2)||this.entries.set(key2,`${this.prefix}${this.entries.size}`),this.entries.get(key2)}},ExternalPreview=class extends Preview$1{constructor(projectAnnotations){super(path=>Promise.resolve(this.moduleExportsByImportPath[path]),()=>composeConfigs([{parameters:{docs:{story:{inline:!0}}}},this.projectAnnotations]),new Channel({}));this.projectAnnotations=projectAnnotations;this.importPaths=new ConstantMap(\"./importPath/\");this.titles=new ConstantMap(\"title-\");this.storyIndex={v:5,entries:{}};this.moduleExportsByImportPath={};this.processMetaExports=metaExports=>{let importPath=this.importPaths.get(metaExports);this.moduleExportsByImportPath[importPath]=metaExports;let title=metaExports.default.title||this.titles.get(metaExports),csfFile=this.storyStoreValue.processCSFFileWithCache(metaExports,importPath,title);return Object.values(csfFile.stories).forEach(({id,name:name2})=>{this.storyIndex.entries[id]={id,importPath,title,name:name2,type:\"story\"};}),this.onStoriesChanged({storyIndex:this.storyIndex}),csfFile};this.docsContext=()=>new ExternalDocsContext(this.channel,this.storyStoreValue,this.renderStoryToElement.bind(this),this.processMetaExports.bind(this));}async getStoryIndexFromServer(){return this.storyIndex}};function usePreview(projectAnnotations){let previewRef=useRef();return previewRef.current||(previewRef.current=new ExternalPreview(projectAnnotations)),previewRef.current}function ExternalDocs({projectAnnotationsList,children}){let projectAnnotations=composeConfigs(projectAnnotationsList),preview2=usePreview(projectAnnotations),docsParameter={...projectAnnotations.parameters?.docs,page:()=>children};return React15__default.createElement(Docs,{docsParameter,context:preview2.docsContext()})}var preview,ExternalDocsContainer=({projectAnnotations,children})=>(preview||(preview=new ExternalPreview(projectAnnotations)),React15__default.createElement(DocsContext.Provider,{value:preview.docsContext()},React15__default.createElement(ThemeProvider,{theme:ensure(themes.light)},children)));var Meta=({of})=>{let context=useContext(DocsContext);of&&context.referenceMeta(of,!0);try{let primary=context.storyById();return React15__default.createElement(Anchor,{storyId:primary.id})}catch{return null}};var Unstyled=props=>React15__default.createElement(\"div\",{...props,className:\"sb-unstyled\"});var Wrapper11=({children})=>React15__default.createElement(\"div\",{style:{fontFamily:\"sans-serif\"}},children);var PRIMARY_STORY=\"^\";\n\nexport { AddContext, Anchor, AnchorMdx, ArgTypes, BooleanControl, Canvas, CodeOrSourceMdx, ColorControl, ColorItem, ColorPalette, Controls3 as Controls, DateControl, DescriptionContainer as Description, DescriptionType, Docs, DocsContainer, DocsContext, DocsPage, DocsStory, ExternalDocs, ExternalDocsContainer, FilesControl, HeaderMdx, HeadersMdx, Heading2 as Heading, IconGallery, IconItem, Markdown, Meta, NumberControl, ObjectControl, OptionsControl, PRIMARY_STORY, Primary, ArgsTable as PureArgsTable, RangeControl, Source2 as Source, SourceContainer, SourceContext, Stories, Story2 as Story, Subheading, Subtitle2 as Subtitle, TextControl, Title2 as Title, Typeset, UNKNOWN_ARGS_HASH, Unstyled, Wrapper11 as Wrapper, anchorBlockIdFromId, argsHash, assertIsFn, extractTitle, format2 as format, formatDate, formatTime, getStoryId2 as getStoryId, getStoryProps, parse2 as parse, parseDate, parseTime, useOf, useSourceProps };\n","var L4 = Object.create;\nvar Qa = Object.defineProperty;\nvar I4 = Object.getOwnPropertyDescriptor;\nvar B4 = Object.getOwnPropertyNames;\nvar M4 = Object.getPrototypeOf, _4 = Object.prototype.hasOwnProperty;\nvar a = (e, t) => Qa(e, \"name\", { value: t, configurable: !0 }), Ko = /* @__PURE__ */ ((e) => typeof require < \"u\" ? require : typeof Proxy <\n\"u\" ? new Proxy(e, {\n get: (t, r) => (typeof require < \"u\" ? require : t)[r]\n}) : e)(function(e) {\n if (typeof require < \"u\") return require.apply(this, arguments);\n throw Error('Dynamic require of \"' + e + '\" is not supported');\n});\nvar F = (e, t) => () => (e && (t = e(e = 0)), t);\nvar _ = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), an = (e, t) => {\n for (var r in t)\n Qa(e, r, { get: t[r], enumerable: !0 });\n}, P4 = (e, t, r, n) => {\n if (t && typeof t == \"object\" || typeof t == \"function\")\n for (let o of B4(t))\n !_4.call(e, o) && o !== r && Qa(e, o, { get: () => t[o], enumerable: !(n = I4(t, o)) || n.enumerable });\n return e;\n};\nvar we = (e, t, r) => (r = e != null ? L4(M4(e)) : {}, P4(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n t || !e || !e.__esModule ? Qa(r, \"default\", { value: e, enumerable: !0 }) : r,\n e\n));\n\n// ../node_modules/@babel/runtime/helpers/esm/extends.js\nfunction H() {\n return H = Object.assign ? Object.assign.bind() : function(e) {\n for (var t = 1; t < arguments.length; t++) {\n var r = arguments[t];\n for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);\n }\n return e;\n }, H.apply(null, arguments);\n}\nvar qe = F(() => {\n a(H, \"_extends\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js\nfunction rp(e) {\n if (e === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nvar np = F(() => {\n a(rp, \"_assertThisInitialized\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js\nfunction Xt(e, t) {\n return Xt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {\n return r.__proto__ = n, r;\n }, Xt(e, t);\n}\nvar ei = F(() => {\n a(Xt, \"_setPrototypeOf\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js\nfunction ti(e) {\n return ti = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, ti(e);\n}\nvar ap = F(() => {\n a(ti, \"_getPrototypeOf\");\n});\n\n// ../node_modules/@storybook/global/dist/index.mjs\nvar ln, oi = F(() => {\n ln = (() => {\n let e;\n return typeof window < \"u\" ? e = window : typeof globalThis < \"u\" ? e = globalThis : typeof global < \"u\" ? e = global : typeof self < \"u\" ?\n e = self : e = {}, e;\n })();\n});\n\n// ../node_modules/memoizerific/memoizerific.js\nvar Qo = _((hp, vs) => {\n (function(e) {\n if (typeof hp == \"object\" && typeof vs < \"u\")\n vs.exports = e();\n else if (typeof define == \"function\" && define.amd)\n define([], e);\n else {\n var t;\n typeof window < \"u\" ? t = window : typeof global < \"u\" ? t = global : typeof self < \"u\" ? t = self : t = this, t.memoizerific = e();\n }\n })(function() {\n var e, t, r;\n return (/* @__PURE__ */ a(function n(o, i, l) {\n function u(d, h) {\n if (!i[d]) {\n if (!o[d]) {\n var f = typeof Ko == \"function\" && Ko;\n if (!h && f) return f(d, !0);\n if (c) return c(d, !0);\n var v = new Error(\"Cannot find module '\" + d + \"'\");\n throw v.code = \"MODULE_NOT_FOUND\", v;\n }\n var b = i[d] = { exports: {} };\n o[d][0].call(b.exports, function(m) {\n var g = o[d][1][m];\n return u(g || m);\n }, b, b.exports, n, o, i, l);\n }\n return i[d].exports;\n }\n a(u, \"s\");\n for (var c = typeof Ko == \"function\" && Ko, p = 0; p < l.length; p++) u(l[p]);\n return u;\n }, \"e\"))({ 1: [function(n, o, i) {\n o.exports = function(l) {\n if (typeof Map != \"function\" || l) {\n var u = n(\"./similar\");\n return new u();\n } else\n return /* @__PURE__ */ new Map();\n };\n }, { \"./similar\": 2 }], 2: [function(n, o, i) {\n function l() {\n return this.list = [], this.lastItem = void 0, this.size = 0, this;\n }\n a(l, \"Similar\"), l.prototype.get = function(u) {\n var c;\n if (this.lastItem && this.isEqual(this.lastItem.key, u))\n return this.lastItem.val;\n if (c = this.indexOf(u), c >= 0)\n return this.lastItem = this.list[c], this.list[c].val;\n }, l.prototype.set = function(u, c) {\n var p;\n return this.lastItem && this.isEqual(this.lastItem.key, u) ? (this.lastItem.val = c, this) : (p = this.indexOf(u), p >= 0 ? (this.lastItem =\n this.list[p], this.list[p].val = c, this) : (this.lastItem = { key: u, val: c }, this.list.push(this.lastItem), this.size++, this));\n }, l.prototype.delete = function(u) {\n var c;\n if (this.lastItem && this.isEqual(this.lastItem.key, u) && (this.lastItem = void 0), c = this.indexOf(u), c >= 0)\n return this.size--, this.list.splice(c, 1)[0];\n }, l.prototype.has = function(u) {\n var c;\n return this.lastItem && this.isEqual(this.lastItem.key, u) ? !0 : (c = this.indexOf(u), c >= 0 ? (this.lastItem = this.list[c], !0) :\n !1);\n }, l.prototype.forEach = function(u, c) {\n var p;\n for (p = 0; p < this.size; p++)\n u.call(c || this, this.list[p].val, this.list[p].key, this);\n }, l.prototype.indexOf = function(u) {\n var c;\n for (c = 0; c < this.size; c++)\n if (this.isEqual(this.list[c].key, u))\n return c;\n return -1;\n }, l.prototype.isEqual = function(u, c) {\n return u === c || u !== u && c !== c;\n }, o.exports = l;\n }, {}], 3: [function(n, o, i) {\n var l = n(\"map-or-similar\");\n o.exports = function(d) {\n var h = new l(!1), f = [];\n return function(v) {\n var b = /* @__PURE__ */ a(function() {\n var m = h, g, y, w = arguments.length - 1, D = Array(w + 1), x = !0, C;\n if ((b.numArgs || b.numArgs === 0) && b.numArgs !== w + 1)\n throw new Error(\"Memoizerific functions should always be called with the same number of arguments\");\n for (C = 0; C < w; C++) {\n if (D[C] = {\n cacheItem: m,\n arg: arguments[C]\n }, m.has(arguments[C])) {\n m = m.get(arguments[C]);\n continue;\n }\n x = !1, g = new l(!1), m.set(arguments[C], g), m = g;\n }\n return x && (m.has(arguments[w]) ? y = m.get(arguments[w]) : x = !1), x || (y = v.apply(null, arguments), m.set(arguments[w], y)),\n d > 0 && (D[w] = {\n cacheItem: m,\n arg: arguments[w]\n }, x ? u(f, D) : f.push(D), f.length > d && c(f.shift())), b.wasMemoized = x, b.numArgs = w + 1, y;\n }, \"memoizerific\");\n return b.limit = d, b.wasMemoized = !1, b.cache = h, b.lru = f, b;\n };\n };\n function u(d, h) {\n var f = d.length, v = h.length, b, m, g;\n for (m = 0; m < f; m++) {\n for (b = !0, g = 0; g < v; g++)\n if (!p(d[m][g].arg, h[g].arg)) {\n b = !1;\n break;\n }\n if (b)\n break;\n }\n d.push(d.splice(m, 1)[0]);\n }\n a(u, \"moveToMostRecentLru\");\n function c(d) {\n var h = d.length, f = d[h - 1], v, b;\n for (f.cacheItem.delete(f.arg), b = h - 2; b >= 0 && (f = d[b], v = f.cacheItem.get(f.arg), !v || !v.size); b--)\n f.cacheItem.delete(f.arg);\n }\n a(c, \"removeCachedResult\");\n function p(d, h) {\n return d === h || d !== d && h !== h;\n }\n a(p, \"isEqual\");\n }, { \"map-or-similar\": 1 }] }, {}, [3])(3);\n });\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js\nfunction sn(e, t) {\n if (e == null) return {};\n var r = {};\n for (var n in e) if ({}.hasOwnProperty.call(e, n)) {\n if (t.indexOf(n) >= 0) continue;\n r[n] = e[n];\n }\n return r;\n}\nvar ai = F(() => {\n a(sn, \"_objectWithoutPropertiesLoose\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js\nfunction mp(e, t) {\n if (e == null) return {};\n var r, n, o = sn(e, t);\n if (Object.getOwnPropertySymbols) {\n var i = Object.getOwnPropertySymbols(e);\n for (n = 0; n < i.length; n++) r = i[n], t.indexOf(r) >= 0 || {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);\n }\n return o;\n}\nvar gp = F(() => {\n ai();\n a(mp, \"_objectWithoutProperties\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js\nfunction ea(e, t) {\n (t == null || t > e.length) && (t = e.length);\n for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];\n return n;\n}\nvar ws = F(() => {\n a(ea, \"_arrayLikeToArray\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js\nfunction vp(e) {\n if (Array.isArray(e)) return ea(e);\n}\nvar wp = F(() => {\n ws();\n a(vp, \"_arrayWithoutHoles\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/iterableToArray.js\nfunction bp(e) {\n if (typeof Symbol < \"u\" && e[Symbol.iterator] != null || e[\"@@iterator\"] != null) return Array.from(e);\n}\nvar yp = F(() => {\n a(bp, \"_iterableToArray\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js\nfunction Dp(e, t) {\n if (e) {\n if (typeof e == \"string\") return ea(e, t);\n var r = {}.toString.call(e).slice(8, -1);\n return r === \"Object\" && e.constructor && (r = e.constructor.name), r === \"Map\" || r === \"Set\" ? Array.from(e) : r === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.\n test(r) ? ea(e, t) : void 0;\n }\n}\nvar xp = F(() => {\n ws();\n a(Dp, \"_unsupportedIterableToArray\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js\nfunction Cp() {\n throw new TypeError(`Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);\n}\nvar Ep = F(() => {\n a(Cp, \"_nonIterableSpread\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\nfunction Sp(e) {\n return vp(e) || bp(e) || Dp(e) || Cp();\n}\nvar Rp = F(() => {\n wp();\n yp();\n xp();\n Ep();\n a(Sp, \"_toConsumableArray\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/typeof.js\nfunction br(e) {\n \"@babel/helpers - typeof\";\n return br = typeof Symbol == \"function\" && typeof Symbol.iterator == \"symbol\" ? function(t) {\n return typeof t;\n } : function(t) {\n return t && typeof Symbol == \"function\" && t.constructor === Symbol && t !== Symbol.prototype ? \"symbol\" : typeof t;\n }, br(e);\n}\nvar bs = F(() => {\n a(br, \"_typeof\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/toPrimitive.js\nfunction Ap(e, t) {\n if (br(e) != \"object\" || !e) return e;\n var r = e[Symbol.toPrimitive];\n if (r !== void 0) {\n var n = r.call(e, t || \"default\");\n if (br(n) != \"object\") return n;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (t === \"string\" ? String : Number)(e);\n}\nvar Fp = F(() => {\n bs();\n a(Ap, \"toPrimitive\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js\nfunction kp(e) {\n var t = Ap(e, \"string\");\n return br(t) == \"symbol\" ? t : t + \"\";\n}\nvar Tp = F(() => {\n bs();\n Fp();\n a(kp, \"toPropertyKey\");\n});\n\n// ../node_modules/@babel/runtime/helpers/esm/defineProperty.js\nfunction ii(e, t, r) {\n return (t = kp(t)) in e ? Object.defineProperty(e, t, {\n value: r,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[t] = r, e;\n}\nvar ys = F(() => {\n Tp();\n a(ii, \"_defineProperty\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/create-element.js\nimport f6 from \"react\";\nfunction Lp(e, t) {\n var r = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n t && (n = n.filter(function(o) {\n return Object.getOwnPropertyDescriptor(e, o).enumerable;\n })), r.push.apply(r, n);\n }\n return r;\n}\nfunction un(e) {\n for (var t = 1; t < arguments.length; t++) {\n var r = arguments[t] != null ? arguments[t] : {};\n t % 2 ? Lp(Object(r), !0).forEach(function(n) {\n ii(e, n, r[n]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Lp(Object(r)).forEach(function(n) {\n Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));\n });\n }\n return e;\n}\nfunction h6(e) {\n var t = e.length;\n if (t === 0 || t === 1) return e;\n if (t === 2)\n return [e[0], e[1], \"\".concat(e[0], \".\").concat(e[1]), \"\".concat(e[1], \".\").concat(e[0])];\n if (t === 3)\n return [e[0], e[1], e[2], \"\".concat(e[0], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(e[0]), \"\".concat(\n e[1], \".\").concat(e[2]), \"\".concat(e[2], \".\").concat(e[0]), \"\".concat(e[2], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[1], \".\").concat(\n e[2]), \"\".concat(e[0], \".\").concat(e[2], \".\").concat(e[1]), \"\".concat(e[1], \".\").concat(e[0], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(\n e[2], \".\").concat(e[0]), \"\".concat(e[2], \".\").concat(e[0], \".\").concat(e[1]), \"\".concat(e[2], \".\").concat(e[1], \".\").concat(e[0])];\n if (t >= 4)\n return [e[0], e[1], e[2], e[3], \"\".concat(e[0], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[2]), \"\".concat(e[0], \".\").concat(e[3]),\n \"\".concat(e[1], \".\").concat(e[0]), \"\".concat(e[1], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(e[3]), \"\".concat(e[2], \".\").concat(e[0]),\n \"\".concat(e[2], \".\").concat(e[1]), \"\".concat(e[2], \".\").concat(e[3]), \"\".concat(e[3], \".\").concat(e[0]), \"\".concat(e[3], \".\").concat(e[1]),\n \"\".concat(e[3], \".\").concat(e[2]), \"\".concat(e[0], \".\").concat(e[1], \".\").concat(e[2]), \"\".concat(e[0], \".\").concat(e[1], \".\").concat(e[3]),\n \"\".concat(e[0], \".\").concat(e[2], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[2], \".\").concat(e[3]), \"\".concat(e[0], \".\").concat(e[3],\n \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[3], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(e[0], \".\").concat(e[2]), \"\".concat(e[1],\n \".\").concat(e[0], \".\").concat(e[3]), \"\".concat(e[1], \".\").concat(e[2], \".\").concat(e[0]), \"\".concat(e[1], \".\").concat(e[2], \".\").concat(\n e[3]), \"\".concat(e[1], \".\").concat(e[3], \".\").concat(e[0]), \"\".concat(e[1], \".\").concat(e[3], \".\").concat(e[2]), \"\".concat(e[2], \".\").concat(\n e[0], \".\").concat(e[1]), \"\".concat(e[2], \".\").concat(e[0], \".\").concat(e[3]), \"\".concat(e[2], \".\").concat(e[1], \".\").concat(e[0]), \"\".concat(\n e[2], \".\").concat(e[1], \".\").concat(e[3]), \"\".concat(e[2], \".\").concat(e[3], \".\").concat(e[0]), \"\".concat(e[2], \".\").concat(e[3], \".\").concat(\n e[1]), \"\".concat(e[3], \".\").concat(e[0], \".\").concat(e[1]), \"\".concat(e[3], \".\").concat(e[0], \".\").concat(e[2]), \"\".concat(e[3], \".\").concat(\n e[1], \".\").concat(e[0]), \"\".concat(e[3], \".\").concat(e[1], \".\").concat(e[2]), \"\".concat(e[3], \".\").concat(e[2], \".\").concat(e[0]), \"\".concat(\n e[3], \".\").concat(e[2], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[1], \".\").concat(e[2], \".\").concat(e[3]), \"\".concat(e[0], \".\").concat(\n e[1], \".\").concat(e[3], \".\").concat(e[2]), \"\".concat(e[0], \".\").concat(e[2], \".\").concat(e[1], \".\").concat(e[3]), \"\".concat(e[0], \".\").concat(\n e[2], \".\").concat(e[3], \".\").concat(e[1]), \"\".concat(e[0], \".\").concat(e[3], \".\").concat(e[1], \".\").concat(e[2]), \"\".concat(e[0], \".\").concat(\n e[3], \".\").concat(e[2], \".\").concat(e[1]), \"\".concat(e[1], \".\").concat(e[0], \".\").concat(e[2], \".\").concat(e[3]), \"\".concat(e[1], \".\").concat(\n e[0], \".\").concat(e[3], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(e[2], \".\").concat(e[0], \".\").concat(e[3]), \"\".concat(e[1], \".\").concat(\n e[2], \".\").concat(e[3], \".\").concat(e[0]), \"\".concat(e[1], \".\").concat(e[3], \".\").concat(e[0], \".\").concat(e[2]), \"\".concat(e[1], \".\").concat(\n e[3], \".\").concat(e[2], \".\").concat(e[0]), \"\".concat(e[2], \".\").concat(e[0], \".\").concat(e[1], \".\").concat(e[3]), \"\".concat(e[2], \".\").concat(\n e[0], \".\").concat(e[3], \".\").concat(e[1]), \"\".concat(e[2], \".\").concat(e[1], \".\").concat(e[0], \".\").concat(e[3]), \"\".concat(e[2], \".\").concat(\n e[1], \".\").concat(e[3], \".\").concat(e[0]), \"\".concat(e[2], \".\").concat(e[3], \".\").concat(e[0], \".\").concat(e[1]), \"\".concat(e[2], \".\").concat(\n e[3], \".\").concat(e[1], \".\").concat(e[0]), \"\".concat(e[3], \".\").concat(e[0], \".\").concat(e[1], \".\").concat(e[2]), \"\".concat(e[3], \".\").concat(\n e[0], \".\").concat(e[2], \".\").concat(e[1]), \"\".concat(e[3], \".\").concat(e[1], \".\").concat(e[0], \".\").concat(e[2]), \"\".concat(e[3], \".\").concat(\n e[1], \".\").concat(e[2], \".\").concat(e[0]), \"\".concat(e[3], \".\").concat(e[2], \".\").concat(e[0], \".\").concat(e[1]), \"\".concat(e[3], \".\").concat(\n e[2], \".\").concat(e[1], \".\").concat(e[0])];\n}\nfunction m6(e) {\n if (e.length === 0 || e.length === 1) return e;\n var t = e.join(\".\");\n return Ds[t] || (Ds[t] = h6(e)), Ds[t];\n}\nfunction g6(e) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 ? arguments[2] : void 0, n = e.filter(\n function(i) {\n return i !== \"token\";\n }), o = m6(n);\n return o.reduce(function(i, l) {\n return un(un({}, i), r[l]);\n }, t);\n}\nfunction Ip(e) {\n return e.join(\" \");\n}\nfunction v6(e, t) {\n var r = 0;\n return function(n) {\n return r += 1, n.map(function(o, i) {\n return yr({\n node: o,\n stylesheet: e,\n useInlineStyles: t,\n key: \"code-segment-\".concat(r, \"-\").concat(i)\n });\n });\n };\n}\nfunction yr(e) {\n var t = e.node, r = e.stylesheet, n = e.style, o = n === void 0 ? {} : n, i = e.useInlineStyles, l = e.key, u = t.properties, c = t.type, p = t.\n tagName, d = t.value;\n if (c === \"text\")\n return d;\n if (p) {\n var h = v6(r, i), f;\n if (!i)\n f = un(un({}, u), {}, {\n className: Ip(u.className)\n });\n else {\n var v = Object.keys(r).reduce(function(y, w) {\n return w.split(\".\").forEach(function(D) {\n y.includes(D) || y.push(D);\n }), y;\n }, []), b = u.className && u.className.includes(\"token\") ? [\"token\"] : [], m = u.className && b.concat(u.className.filter(function(y) {\n return !v.includes(y);\n }));\n f = un(un({}, u), {}, {\n className: Ip(m) || void 0,\n style: g6(u.className, Object.assign({}, u.style, o), r)\n });\n }\n var g = h(t.children);\n return /* @__PURE__ */ f6.createElement(p, H({\n key: l\n }, f), g);\n }\n}\nvar Ds, xs = F(() => {\n qe();\n ys();\n a(Lp, \"ownKeys\");\n a(un, \"_objectSpread\");\n a(h6, \"powerSetPermutations\");\n Ds = {};\n a(m6, \"getClassNameCombinations\");\n a(g6, \"createStyleObject\");\n a(Ip, \"createClassNameString\");\n a(v6, \"createChildren\");\n a(yr, \"createElement\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.js\nvar Bp, Mp = F(() => {\n Bp = /* @__PURE__ */ a(function(e, t) {\n var r = e.listLanguages();\n return r.indexOf(t) !== -1;\n }, \"default\");\n});\n\n// ../node_modules/react-syntax-highlighter/dist/esm/highlight.js\nimport Dr from \"react\";\nfunction _p(e, t) {\n var r = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n t && (n = n.filter(function(o) {\n return Object.getOwnPropertyDescriptor(e, o).enumerable;\n })), r.push.apply(r, n);\n }\n return r;\n}\nfunction mt(e) {\n for (var t = 1; t < arguments.length; t++) {\n var r = arguments[t] != null ? arguments[t] : {};\n t % 2 ? _p(Object(r), !0).forEach(function(n) {\n ii(e, n, r[n]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : _p(Object(r)).forEach(function(n) {\n Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));\n });\n }\n return e;\n}\nfunction y6(e) {\n return e.match(b6);\n}\nfunction D6(e) {\n var t = e.lines, r = e.startingLineNumber, n = e.style;\n return t.map(function(o, i) {\n var l = i + r;\n return /* @__PURE__ */ Dr.createElement(\"span\", {\n key: \"line-\".concat(i),\n className: \"react-syntax-highlighter-line-number\",\n style: typeof n == \"function\" ? n(l) : n\n }, \"\".concat(l, `\n`));\n });\n}\nfunction x6(e) {\n var t = e.codeString, r = e.codeStyle, n = e.containerStyle, o = n === void 0 ? {\n float: \"left\",\n paddingRight: \"10px\"\n } : n, i = e.numberStyle, l = i === void 0 ? {} : i, u = e.startingLineNumber;\n return /* @__PURE__ */ Dr.createElement(\"code\", {\n style: Object.assign({}, r, o)\n }, D6({\n lines: t.replace(/\\n$/, \"\").split(`\n`),\n style: l,\n startingLineNumber: u\n }));\n}\nfunction C6(e) {\n return \"\".concat(e.toString().length, \".25em\");\n}\nfunction Pp(e, t) {\n return {\n type: \"element\",\n tagName: \"span\",\n properties: {\n key: \"line-number--\".concat(e),\n className: [\"comment\", \"linenumber\", \"react-syntax-highlighter-line-number\"],\n style: t\n },\n children: [{\n type: \"text\",\n value: e\n }]\n };\n}\nfunction Hp(e, t, r) {\n var n = {\n display: \"inline-block\",\n minWidth: C6(r),\n paddingRight: \"1em\",\n textAlign: \"right\",\n userSelect: \"none\"\n }, o = typeof e == \"function\" ? e(t) : e, i = mt(mt({}, n), o);\n return i;\n}\nfunction li(e) {\n var t = e.children, r = e.lineNumber, n = e.lineNumberStyle, o = e.largestLineNumber, i = e.showInlineLineNumbers, l = e.lineProps, u = l ===\n void 0 ? {} : l, c = e.className, p = c === void 0 ? [] : c, d = e.showLineNumbers, h = e.wrapLongLines, f = typeof u == \"function\" ? u(r) :\n u;\n if (f.className = p, r && i) {\n var v = Hp(n, r, o);\n t.unshift(Pp(r, v));\n }\n return h & d && (f.style = mt(mt({}, f.style), {}, {\n display: \"flex\"\n })), {\n type: \"element\",\n tagName: \"span\",\n properties: f,\n children: t\n };\n}\nfunction $p(e) {\n for (var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :\n [], n = 0; n < e.length; n++) {\n var o = e[n];\n if (o.type === \"text\")\n r.push(li({\n children: [o],\n className: Sp(new Set(t))\n }));\n else if (o.children) {\n var i = t.concat(o.properties.className);\n $p(o.children, i).forEach(function(l) {\n return r.push(l);\n });\n }\n }\n return r;\n}\nfunction E6(e, t, r, n, o, i, l, u, c) {\n var p, d = $p(e.value), h = [], f = -1, v = 0;\n function b(C, E) {\n var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n return li({\n children: C,\n lineNumber: E,\n lineNumberStyle: u,\n largestLineNumber: l,\n showInlineLineNumbers: o,\n lineProps: r,\n className: S,\n showLineNumbers: n,\n wrapLongLines: c\n });\n }\n a(b, \"createWrappedLine\");\n function m(C, E) {\n if (n && E && o) {\n var S = Hp(u, E, l);\n C.unshift(Pp(E, S));\n }\n return C;\n }\n a(m, \"createUnwrappedLine\");\n function g(C, E) {\n var S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];\n return t || S.length > 0 ? b(C, E, S) : m(C, E);\n }\n a(g, \"createLine\");\n for (var y = /* @__PURE__ */ a(function() {\n var E = d[v], S = E.children[0].value, R = y6(S);\n if (R) {\n var A = S.split(`\n`);\n A.forEach(function(k, B) {\n var $ = n && h.length + i, M = {\n type: \"text\",\n value: \"\".concat(k, `\n`)\n };\n if (B === 0) {\n var W = d.slice(f + 1, v).concat(li({\n children: [M],\n className: E.properties.className\n })), T = g(W, $);\n h.push(T);\n } else if (B === A.length - 1) {\n var L = d[v + 1] && d[v + 1].children && d[v + 1].children[0], P = {\n type: \"text\",\n value: \"\".concat(k)\n };\n if (L) {\n var U = li({\n children: [P],\n className: E.properties.className\n });\n d.splice(v + 1, 0, U);\n } else {\n var N = [P], G = g(N, $, E.properties.className);\n h.push(G);\n }\n } else {\n var z = [M], K = g(z, $, E.properties.className);\n h.push(K);\n }\n }), f = v;\n }\n v++;\n }, \"_loop\"); v < d.length; )\n y();\n if (f !== d.length - 1) {\n var w = d.slice(f + 1, d.length);\n if (w && w.length) {\n var D = n && h.length + i, x = g(w, D);\n h.push(x);\n }\n }\n return t ? h : (p = []).concat.apply(p, h);\n}\nfunction S6(e) {\n var t = e.rows, r = e.stylesheet, n = e.useInlineStyles;\n return t.map(function(o, i) {\n return yr({\n node: o,\n stylesheet: r,\n useInlineStyles: n,\n key: \"code-segement\".concat(i)\n });\n });\n}\nfunction zp(e) {\n return e && typeof e.highlightAuto < \"u\";\n}\nfunction R6(e) {\n var t = e.astGenerator, r = e.language, n = e.code, o = e.defaultCodeValue;\n if (zp(t)) {\n var i = Bp(t, r);\n return r === \"text\" ? {\n value: o,\n language: \"text\"\n } : i ? t.highlight(r, n) : t.highlightAuto(n);\n }\n try {\n return r && r !== \"text\" ? {\n value: t.highlight(n, r)\n } : {\n value: o\n };\n } catch {\n return {\n value: o\n };\n }\n}\nfunction Cs(e, t) {\n return /* @__PURE__ */ a(function(n) {\n var o = n.language, i = n.children, l = n.style, u = l === void 0 ? t : l, c = n.customStyle, p = c === void 0 ? {} : c, d = n.codeTagProps,\n h = d === void 0 ? {\n className: o ? \"language-\".concat(o) : void 0,\n style: mt(mt({}, u['code[class*=\"language-\"]']), u['code[class*=\"language-'.concat(o, '\"]')])\n } : d, f = n.useInlineStyles, v = f === void 0 ? !0 : f, b = n.showLineNumbers, m = b === void 0 ? !1 : b, g = n.showInlineLineNumbers, y = g ===\n void 0 ? !0 : g, w = n.startingLineNumber, D = w === void 0 ? 1 : w, x = n.lineNumberContainerStyle, C = n.lineNumberStyle, E = C === void 0 ?\n {} : C, S = n.wrapLines, R = n.wrapLongLines, A = R === void 0 ? !1 : R, k = n.lineProps, B = k === void 0 ? {} : k, $ = n.renderer, M = n.\n PreTag, W = M === void 0 ? \"pre\" : M, T = n.CodeTag, L = T === void 0 ? \"code\" : T, P = n.code, U = P === void 0 ? (Array.isArray(i) ? i[0] :\n i) || \"\" : P, N = n.astGenerator, G = mp(n, w6);\n N = N || e;\n var z = m ? /* @__PURE__ */ Dr.createElement(x6, {\n containerStyle: x,\n codeStyle: h.style || {},\n numberStyle: E,\n startingLineNumber: D,\n codeString: U\n }) : null, K = u.hljs || u['pre[class*=\"language-\"]'] || {\n backgroundColor: \"#fff\"\n }, Te = zp(N) ? \"hljs\" : \"prismjs\", ve = v ? Object.assign({}, G, {\n style: Object.assign({}, K, p)\n }) : Object.assign({}, G, {\n className: G.className ? \"\".concat(Te, \" \").concat(G.className) : Te,\n style: Object.assign({}, p)\n });\n if (A ? h.style = mt(mt({}, h.style), {}, {\n whiteSpace: \"pre-wrap\"\n }) : h.style = mt(mt({}, h.style), {}, {\n whiteSpace: \"pre\"\n }), !N)\n return /* @__PURE__ */ Dr.createElement(W, ve, z, /* @__PURE__ */ Dr.createElement(L, h, U));\n (S === void 0 && $ || A) && (S = !0), $ = $ || S6;\n var de = [{\n type: \"text\",\n value: U\n }], Ce = R6({\n astGenerator: N,\n language: o,\n code: U,\n defaultCodeValue: de\n });\n Ce.language === null && (Ce.value = de);\n var Le = Ce.value.length + D, Ie = E6(Ce, S, B, m, y, D, Le, E, A);\n return /* @__PURE__ */ Dr.createElement(W, ve, /* @__PURE__ */ Dr.createElement(L, h, !y && z, $({\n rows: Ie,\n stylesheet: u,\n useInlineStyles: v\n })));\n }, \"SyntaxHighlighter\");\n}\nvar w6, b6, Op = F(() => {\n gp();\n Rp();\n ys();\n xs();\n Mp();\n w6 = [\"language\", \"children\", \"style\", \"customStyle\", \"codeTagProps\", \"useInlineStyles\", \"showLineNumbers\", \"showInlineLineNumbers\", \"star\\\ntingLineNumber\", \"lineNumberContainerStyle\", \"lineNumberStyle\", \"wrapLines\", \"wrapLongLines\", \"lineProps\", \"renderer\", \"PreTag\", \"CodeTag\", \"\\\ncode\", \"astGenerator\"];\n a(_p, \"ownKeys\");\n a(mt, \"_objectSpread\");\n b6 = /\\n/g;\n a(y6, \"getNewLines\");\n a(D6, \"getAllLineNumbers\");\n a(x6, \"AllLineNumbers\");\n a(C6, \"getEmWidthOfNumber\");\n a(Pp, \"getInlineLineNumber\");\n a(Hp, \"assembleLineNumberStyles\");\n a(li, \"createLineElement\");\n a($p, \"flattenCodeTree\");\n a(E6, \"processLines\");\n a(S6, \"defaultRenderer\");\n a(zp, \"isHighlightJs\");\n a(R6, \"getCodeTree\");\n a(Cs, \"default\");\n});\n\n// ../node_modules/xtend/immutable.js\nvar jp = _((DH, Np) => {\n Np.exports = F6;\n var A6 = Object.prototype.hasOwnProperty;\n function F6() {\n for (var e = {}, t = 0; t < arguments.length; t++) {\n var r = arguments[t];\n for (var n in r)\n A6.call(r, n) && (e[n] = r[n]);\n }\n return e;\n }\n a(F6, \"extend\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/schema.js\nvar Ss = _((CH, qp) => {\n \"use strict\";\n qp.exports = Vp;\n var Es = Vp.prototype;\n Es.space = null;\n Es.normal = {};\n Es.property = {};\n function Vp(e, t, r) {\n this.property = e, this.normal = t, r && (this.space = r);\n }\n a(Vp, \"Schema\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/merge.js\nvar Gp = _((SH, Up) => {\n \"use strict\";\n var Wp = jp(), k6 = Ss();\n Up.exports = T6;\n function T6(e) {\n for (var t = e.length, r = [], n = [], o = -1, i, l; ++o < t; )\n i = e[o], r.push(i.property), n.push(i.normal), l = i.space;\n return new k6(\n Wp.apply(null, r),\n Wp.apply(null, n),\n l\n );\n }\n a(T6, \"merge\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/normalize.js\nvar si = _((AH, Xp) => {\n \"use strict\";\n Xp.exports = L6;\n function L6(e) {\n return e.toLowerCase();\n }\n a(L6, \"normalize\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/info.js\nvar Rs = _((kH, Kp) => {\n \"use strict\";\n Kp.exports = Yp;\n var Ue = Yp.prototype;\n Ue.space = null;\n Ue.attribute = null;\n Ue.property = null;\n Ue.boolean = !1;\n Ue.booleanish = !1;\n Ue.overloadedBoolean = !1;\n Ue.number = !1;\n Ue.commaSeparated = !1;\n Ue.spaceSeparated = !1;\n Ue.commaOrSpaceSeparated = !1;\n Ue.mustUseProperty = !1;\n Ue.defined = !1;\n function Yp(e, t) {\n this.property = e, this.attribute = t;\n }\n a(Yp, \"Info\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/types.js\nvar ui = _((Kt) => {\n \"use strict\";\n var I6 = 0;\n Kt.boolean = xr();\n Kt.booleanish = xr();\n Kt.overloadedBoolean = xr();\n Kt.number = xr();\n Kt.spaceSeparated = xr();\n Kt.commaSeparated = xr();\n Kt.commaOrSpaceSeparated = xr();\n function xr() {\n return Math.pow(2, ++I6);\n }\n a(xr, \"increment\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js\nvar Fs = _((BH, td) => {\n \"use strict\";\n var Qp = Rs(), Zp = ui();\n td.exports = As;\n As.prototype = new Qp();\n As.prototype.defined = !0;\n var ed = [\n \"boolean\",\n \"booleanish\",\n \"overloadedBoolean\",\n \"number\",\n \"commaSeparated\",\n \"spaceSeparated\",\n \"commaOrSpaceSeparated\"\n ], B6 = ed.length;\n function As(e, t, r, n) {\n var o = -1, i;\n for (Jp(this, \"space\", n), Qp.call(this, e, t); ++o < B6; )\n i = ed[o], Jp(this, i, (r & Zp[i]) === Zp[i]);\n }\n a(As, \"DefinedInfo\");\n function Jp(e, t, r) {\n r && (e[t] = r);\n }\n a(Jp, \"mark\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/create.js\nvar cn = _((_H, nd) => {\n \"use strict\";\n var rd = si(), M6 = Ss(), _6 = Fs();\n nd.exports = P6;\n function P6(e) {\n var t = e.space, r = e.mustUseProperty || [], n = e.attributes || {}, o = e.properties, i = e.transform, l = {}, u = {}, c, p;\n for (c in o)\n p = new _6(\n c,\n i(n, c),\n o[c],\n t\n ), r.indexOf(c) !== -1 && (p.mustUseProperty = !0), l[c] = p, u[rd(c)] = c, u[rd(p.attribute)] = c;\n return new M6(l, u, t);\n }\n a(P6, \"create\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/xlink.js\nvar ad = _((HH, od) => {\n \"use strict\";\n var H6 = cn();\n od.exports = H6({\n space: \"xlink\",\n transform: $6,\n properties: {\n xLinkActuate: null,\n xLinkArcRole: null,\n xLinkHref: null,\n xLinkRole: null,\n xLinkShow: null,\n xLinkTitle: null,\n xLinkType: null\n }\n });\n function $6(e, t) {\n return \"xlink:\" + t.slice(5).toLowerCase();\n }\n a($6, \"xlinkTransform\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/xml.js\nvar ld = _((zH, id) => {\n \"use strict\";\n var z6 = cn();\n id.exports = z6({\n space: \"xml\",\n transform: O6,\n properties: {\n xmlLang: null,\n xmlBase: null,\n xmlSpace: null\n }\n });\n function O6(e, t) {\n return \"xml:\" + t.slice(3).toLowerCase();\n }\n a(O6, \"xmlTransform\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js\nvar ud = _((NH, sd) => {\n \"use strict\";\n sd.exports = N6;\n function N6(e, t) {\n return t in e ? e[t] : t;\n }\n a(N6, \"caseSensitiveTransform\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js\nvar ks = _((VH, cd) => {\n \"use strict\";\n var j6 = ud();\n cd.exports = V6;\n function V6(e, t) {\n return j6(e, t.toLowerCase());\n }\n a(V6, \"caseInsensitiveTransform\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/xmlns.js\nvar dd = _((WH, pd) => {\n \"use strict\";\n var q6 = cn(), W6 = ks();\n pd.exports = q6({\n space: \"xmlns\",\n attributes: {\n xmlnsxlink: \"xmlns:xlink\"\n },\n transform: W6,\n properties: {\n xmlns: null,\n xmlnsXLink: null\n }\n });\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/aria.js\nvar hd = _((UH, fd) => {\n \"use strict\";\n var Ts = ui(), U6 = cn(), Me = Ts.booleanish, Ge = Ts.number, Cr = Ts.spaceSeparated;\n fd.exports = U6({\n transform: G6,\n properties: {\n ariaActiveDescendant: null,\n ariaAtomic: Me,\n ariaAutoComplete: null,\n ariaBusy: Me,\n ariaChecked: Me,\n ariaColCount: Ge,\n ariaColIndex: Ge,\n ariaColSpan: Ge,\n ariaControls: Cr,\n ariaCurrent: null,\n ariaDescribedBy: Cr,\n ariaDetails: null,\n ariaDisabled: Me,\n ariaDropEffect: Cr,\n ariaErrorMessage: null,\n ariaExpanded: Me,\n ariaFlowTo: Cr,\n ariaGrabbed: Me,\n ariaHasPopup: null,\n ariaHidden: Me,\n ariaInvalid: null,\n ariaKeyShortcuts: null,\n ariaLabel: null,\n ariaLabelledBy: Cr,\n ariaLevel: Ge,\n ariaLive: null,\n ariaModal: Me,\n ariaMultiLine: Me,\n ariaMultiSelectable: Me,\n ariaOrientation: null,\n ariaOwns: Cr,\n ariaPlaceholder: null,\n ariaPosInSet: Ge,\n ariaPressed: Me,\n ariaReadOnly: Me,\n ariaRelevant: null,\n ariaRequired: Me,\n ariaRoleDescription: Cr,\n ariaRowCount: Ge,\n ariaRowIndex: Ge,\n ariaRowSpan: Ge,\n ariaSelected: Me,\n ariaSetSize: Ge,\n ariaSort: null,\n ariaValueMax: Ge,\n ariaValueMin: Ge,\n ariaValueNow: Ge,\n ariaValueText: null,\n role: null\n }\n });\n function G6(e, t) {\n return t === \"role\" ? t : \"aria-\" + t.slice(4).toLowerCase();\n }\n a(G6, \"ariaTransform\");\n});\n\n// ../node_modules/hastscript/node_modules/property-information/lib/html.js\nvar gd = _((XH, md) => {\n \"use strict\";\n var pn = ui(), X6 = cn(), Y6 = ks(), V = pn.boolean, K6 = pn.overloadedBoolean, ta = pn.booleanish, Z = pn.number, Re = pn.spaceSeparated,\n ci = pn.commaSeparated;\n md.exports = X6({\n space: \"html\",\n attributes: {\n acceptcharset: \"accept-charset\",\n classname: \"class\",\n htmlfor: \"for\",\n httpequiv: \"http-equiv\"\n },\n transform: Y6,\n mustUseProperty: [\"checked\", \"multiple\", \"muted\", \"selected\"],\n properties: {\n // Standard Properties.\n abbr: null,\n accept: ci,\n acceptCharset: Re,\n accessKey: Re,\n action: null,\n allow: null,\n allowFullScreen: V,\n allowPaymentRequest: V,\n allowUserMedia: V,\n alt: null,\n as: null,\n async: V,\n autoCapitalize: null,\n autoComplete: Re,\n autoFocus: V,\n autoPlay: V,\n capture: V,\n charSet: null,\n checked: V,\n cite: null,\n className: Re,\n cols: Z,\n colSpan: null,\n content: null,\n contentEditable: ta,\n controls: V,\n controlsList: Re,\n coords: Z | ci,\n crossOrigin: null,\n data: null,\n dateTime: null,\n decoding: null,\n default: V,\n defer: V,\n dir: null,\n dirName: null,\n disabled: V,\n download: K6,\n draggable: ta,\n encType: null,\n enterKeyHint: null,\n form: null,\n formAction: null,\n formEncType: null,\n formMethod: null,\n formNoValidate: V,\n formTarget: null,\n headers: Re,\n height: Z,\n hidden: V,\n high: Z,\n href: null,\n hrefLang: null,\n htmlFor: Re,\n httpEquiv: Re,\n id: null,\n imageSizes: null,\n imageSrcSet: ci,\n inputMode: null,\n integrity: null,\n is: null,\n isMap: V,\n itemId: null,\n itemProp: Re,\n itemRef: Re,\n itemScope: V,\n itemType: Re,\n kind: null,\n label: null,\n lang: null,\n language: null,\n list: null,\n loading: null,\n loop: V,\n low: Z,\n manifest: null,\n max: null,\n maxLength: Z,\n media: null,\n method: null,\n min: null,\n minLength: Z,\n multiple: V,\n muted: V,\n name: null,\n nonce: null,\n noModule: V,\n noValidate: V,\n onAbort: null,\n onAfterPrint: null,\n onAuxClick: null,\n onBeforePrint: null,\n onBeforeUnload: null,\n onBlur: null,\n onCancel: null,\n onCanPlay: null,\n onCanPlayThrough: null,\n onChange: null,\n onClick: null,\n onClose: null,\n onContextMenu: null,\n onCopy: null,\n onCueChange: null,\n onCut: null,\n onDblClick: null,\n onDrag: null,\n onDragEnd: null,\n onDragEnter: null,\n onDragExit: null,\n onDragLeave: null,\n onDragOver: null,\n onDragStart: null,\n onDrop: null,\n onDurationChange: null,\n onEmptied: null,\n onEnded: null,\n onError: null,\n onFocus: null,\n onFormData: null,\n onHashChange: null,\n onInput: null,\n onInvalid: null,\n onKeyDown: null,\n onKeyPress: null,\n onKeyUp: null,\n onLanguageChange: null,\n onLoad: null,\n onLoadedData: null,\n onLoadedMetadata: null,\n onLoadEnd: null,\n onLoadStart: null,\n onMessage: null,\n onMessageError: null,\n onMouseDown: null,\n onMouseEnter: null,\n onMouseLeave: null,\n onMouseMove: null,\n onMouseOut: null,\n onMouseOver: null,\n onMouseUp: null,\n onOffline: null,\n onOnline: null,\n onPageHide: null,\n onPageShow: null,\n onPaste: null,\n onPause: null,\n onPlay: null,\n onPlaying: null,\n onPopState: null,\n onProgress: null,\n onRateChange: null,\n onRejectionHandled: null,\n onReset: null,\n onResize: null,\n onScroll: null,\n onSecurityPolicyViolation: null,\n onSeeked: null,\n onSeeking: null,\n onSelect: null,\n onSlotChange: null,\n onStalled: null,\n onStorage: null,\n onSubmit: null,\n onSuspend: null,\n onTimeUpdate: null,\n onToggle: null,\n onUnhandledRejection: null,\n onUnload: null,\n onVolumeChange: null,\n onWaiting: null,\n onWheel: null,\n open: V,\n optimum: Z,\n pattern: null,\n ping: Re,\n placeholder: null,\n playsInline: V,\n poster: null,\n preload: null,\n readOnly: V,\n referrerPolicy: null,\n rel: Re,\n required: V,\n reversed: V,\n rows: Z,\n rowSpan: Z,\n sandbox: Re,\n scope: null,\n scoped: V,\n seamless: V,\n selected: V,\n shape: null,\n size: Z,\n sizes: null,\n slot: null,\n span: Z,\n spellCheck: ta,\n src: null,\n srcDoc: null,\n srcLang: null,\n srcSet: ci,\n start: Z,\n step: null,\n style: null,\n tabIndex: Z,\n target: null,\n title: null,\n translate: null,\n type: null,\n typeMustMatch: V,\n useMap: null,\n value: ta,\n width: Z,\n wrap: null,\n // Legacy.\n // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis\n align: null,\n // Several. Use CSS `text-align` instead,\n aLink: null,\n // ``. Use CSS `a:active {color}` instead\n archive: Re,\n // ``. List of URIs to archives\n axis: null,\n // `` and ``. Use `scope` on ``\n background: null,\n // ``. Use CSS `background-image` instead\n bgColor: null,\n // `` and table elements. Use CSS `background-color` instead\n border: Z,\n // ``. Use CSS `border-width` instead,\n borderColor: null,\n // `
`. Use CSS `border-color` instead,\n bottomMargin: Z,\n // ``\n cellPadding: null,\n // `
`\n cellSpacing: null,\n // `
`\n char: null,\n // Several table elements. When `align=char`, sets the character to align on\n charOff: null,\n // Several table elements. When `char`, offsets the alignment\n classId: null,\n // ``\n clear: null,\n // `
`. Use CSS `clear` instead\n code: null,\n // ``\n codeBase: null,\n // ``\n codeType: null,\n // ``\n color: null,\n // `` and `
`. Use CSS instead\n compact: V,\n // Lists. Use CSS to reduce space between items instead\n declare: V,\n // ``\n event: null,\n // ` \ No newline at end of file + import './main.6920d2f8.iframe.bundle.js'; \ No newline at end of file diff --git a/introduction-mdx.b4b9c3ce.iframe.bundle.js b/introduction-mdx.31cdfda1.iframe.bundle.js similarity index 89% rename from introduction-mdx.b4b9c3ce.iframe.bundle.js rename to introduction-mdx.31cdfda1.iframe.bundle.js index 43ccd4f..1ed800f 100644 --- a/introduction-mdx.b4b9c3ce.iframe.bundle.js +++ b/introduction-mdx.31cdfda1.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[525],{"./node_modules/.pnpm/@mdx-js+react@3.0.1_@types+react@16.14.62_react@16.14.0/node_modules/@mdx-js/react/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>useMDXComponents,x:()=>MDXProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js");const emptyComponents={},MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext(emptyComponents);function useMDXComponents(components){const contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return"function"==typeof components?components(contextComponents):{...contextComponents,...components}}),[contextComponents,components])}function MDXProvider(properties){let allComponents;return allComponents=properties.disableParentContext?"function"==typeof properties.components?properties.components(emptyComponents):properties.components||emptyComponents:useMDXComponents(properties.components),react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},properties.children)}},"./src/introduction.mdx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/jsx-runtime.js"),_home_runner_work_ui_ui_node_modules_pnpm_storybook_addon_docs_8_4_5_types_react_16_14_62_storybook_8_4_5_prettier_3_4_1_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/@mdx-js+react@3.0.1_@types+react@16.14.62_react@16.14.0/node_modules/@mdx-js/react/lib/index.js"),_storybook_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist/index.mjs");function _createMdxContent(props){const _components={h1:"h1",h2:"h2",li:"li",p:"p",ul:"ul",...(0,_home_runner_work_ui_ui_node_modules_pnpm_storybook_addon_docs_8_4_5_types_react_16_14_62_storybook_8_4_5_prettier_3_4_1_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{title:"Introduction"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("style",{children:"\n .subheading {\n --mediumdark: '#999999';\n font-weight: 900;\n font-size: 13px;\n color: #999;\n letter-spacing: 6px;\n line-height: 24px;\n text-transform: uppercase;\n margin-bottom: 12px;\n margin-top: 40px;\n }\n\n .link-list {\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 1fr 1fr;\n row-gap: 10px;\n }\n\n @media (min-width: 620px) {\n .link-list {\n row-gap: 20px;\n column-gap: 20px;\n grid-template-columns: 1fr 1fr;\n }\n }\n\n @media all and (-ms-high-contrast:none) {\n .link-list {\n display: -ms-grid;\n -ms-grid-columns: 1fr 1fr;\n -ms-grid-rows: 1fr 1fr;\n }\n }\n\n .link-item {\n display: block;\n padding: 20px 30px 20px 15px;\n border: 1px solid #00000010;\n border-radius: 5px;\n transition: background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out;\n color: #333333;\n display: flex;\n align-items: flex-start;\n }\n\n .link-item:hover {\n border-color: #1EA7FD50;\n transform: translate3d(0, -3px, 0);\n box-shadow: rgba(0, 0, 0, 0.08) 0 3px 10px 0;\n }\n\n .link-item:active {\n border-color: #1EA7FD;\n transform: translate3d(0, 0, 0);\n }\n\n .link-item strong {\n font-weight: 700;\n display: block;\n margin-bottom: 2px;\n }\n\n .link-item img {\n height: 40px;\n width: 40px;\n margin-right: 15px;\n flex: none;\n }\n\n .link-item span {\n font-size: 14px;\n line-height: 20px;\n }\n\n .tip {\n display: inline-block;\n border-radius: 1em;\n font-size: 11px;\n line-height: 12px;\n font-weight: 700;\n background: #E7FDD8;\n color: #66BF3C;\n padding: 4px 12px;\n margin-right: 10px;\n vertical-align: top;\n }\n\n .tip-wrapper {\n font-size: 13px;\n line-height: 20px;\n margin-top: 40px;\n margin-bottom: 40px;\n }\n\n .tip-wrapper code {\n font-size: 12px;\n display: inline-block;\n }\n\n\n "}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h1,{id:"freecodecamps-ui-component-library",children:"freeCodeCamp's UI Component Library"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Welcome to freeCodeCamp's UI component library. This is a collection of reusable\ncomponents that can be used to build user interfaces for freeCodeCamp projects."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"getting-started",children:"Getting Started"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"To get started, you can use the following components:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"TBD"}),"\n"]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,_home_runner_work_ui_ui_node_modules_pnpm_storybook_addon_docs_8_4_5_types_react_16_14_62_storybook_8_4_5_prettier_3_4_1_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@storybook+blocks@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/blocks/dist sync recursive",module.exports=webpackEmptyContext},"./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/components sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/components sync recursive",module.exports=webpackEmptyContext},"./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/theming sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@storybook+core@8.4.5_prettier@3.4.1/node_modules/@storybook/core/dist/theming sync recursive",module.exports=webpackEmptyContext}}]); \ No newline at end of file +(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[525],{"./node_modules/.pnpm/@mdx-js+react@3.0.1_@types+react@16.14.62_react@16.14.0/node_modules/@mdx-js/react/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{R:()=>useMDXComponents,x:()=>MDXProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js");const emptyComponents={},MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext(emptyComponents);function useMDXComponents(components){const contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return"function"==typeof components?components(contextComponents):{...contextComponents,...components}}),[contextComponents,components])}function MDXProvider(properties){let allComponents;return allComponents=properties.disableParentContext?"function"==typeof properties.components?properties.components(emptyComponents):properties.components||emptyComponents:useMDXComponents(properties.components),react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},properties.children)}},"./src/introduction.mdx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/jsx-runtime.js"),_home_runner_work_ui_ui_node_modules_pnpm_storybook_addon_docs_8_4_6_types_react_16_14_62_storybook_8_4_6_prettier_3_4_1_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/@mdx-js+react@3.0.1_@types+react@16.14.62_react@16.14.0/node_modules/@mdx-js/react/lib/index.js"),_storybook_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/.pnpm/@storybook+blocks@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/blocks/dist/index.mjs");function _createMdxContent(props){const _components={h1:"h1",h2:"h2",li:"li",p:"p",ul:"ul",...(0,_home_runner_work_ui_ui_node_modules_pnpm_storybook_addon_docs_8_4_6_types_react_16_14_62_storybook_8_4_6_prettier_3_4_1_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{title:"Introduction"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("style",{children:"\n .subheading {\n --mediumdark: '#999999';\n font-weight: 900;\n font-size: 13px;\n color: #999;\n letter-spacing: 6px;\n line-height: 24px;\n text-transform: uppercase;\n margin-bottom: 12px;\n margin-top: 40px;\n }\n\n .link-list {\n display: grid;\n grid-template-columns: 1fr;\n grid-template-rows: 1fr 1fr;\n row-gap: 10px;\n }\n\n @media (min-width: 620px) {\n .link-list {\n row-gap: 20px;\n column-gap: 20px;\n grid-template-columns: 1fr 1fr;\n }\n }\n\n @media all and (-ms-high-contrast:none) {\n .link-list {\n display: -ms-grid;\n -ms-grid-columns: 1fr 1fr;\n -ms-grid-rows: 1fr 1fr;\n }\n }\n\n .link-item {\n display: block;\n padding: 20px 30px 20px 15px;\n border: 1px solid #00000010;\n border-radius: 5px;\n transition: background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out;\n color: #333333;\n display: flex;\n align-items: flex-start;\n }\n\n .link-item:hover {\n border-color: #1EA7FD50;\n transform: translate3d(0, -3px, 0);\n box-shadow: rgba(0, 0, 0, 0.08) 0 3px 10px 0;\n }\n\n .link-item:active {\n border-color: #1EA7FD;\n transform: translate3d(0, 0, 0);\n }\n\n .link-item strong {\n font-weight: 700;\n display: block;\n margin-bottom: 2px;\n }\n\n .link-item img {\n height: 40px;\n width: 40px;\n margin-right: 15px;\n flex: none;\n }\n\n .link-item span {\n font-size: 14px;\n line-height: 20px;\n }\n\n .tip {\n display: inline-block;\n border-radius: 1em;\n font-size: 11px;\n line-height: 12px;\n font-weight: 700;\n background: #E7FDD8;\n color: #66BF3C;\n padding: 4px 12px;\n margin-right: 10px;\n vertical-align: top;\n }\n\n .tip-wrapper {\n font-size: 13px;\n line-height: 20px;\n margin-top: 40px;\n margin-bottom: 40px;\n }\n\n .tip-wrapper code {\n font-size: 12px;\n display: inline-block;\n }\n\n\n "}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h1,{id:"freecodecamps-ui-component-library",children:"freeCodeCamp's UI Component Library"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Welcome to freeCodeCamp's UI component library. This is a collection of reusable\ncomponents that can be used to build user interfaces for freeCodeCamp projects."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"getting-started",children:"Getting Started"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"To get started, you can use the following components:"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.ul,{children:["\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.li,{children:"TBD"}),"\n"]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,_home_runner_work_ui_ui_node_modules_pnpm_storybook_addon_docs_8_4_6_types_react_16_14_62_storybook_8_4_6_prettier_3_4_1_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./node_modules/.pnpm/@storybook+blocks@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/blocks/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@storybook+blocks@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/blocks/dist sync recursive",module.exports=webpackEmptyContext},"./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/components sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/components sync recursive",module.exports=webpackEmptyContext},"./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/theming sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/.pnpm/@storybook+core@8.4.6_prettier@3.4.1/node_modules/@storybook/core/dist/theming sync recursive",module.exports=webpackEmptyContext}}]); \ No newline at end of file diff --git a/main.af3a8593.iframe.bundle.js b/main.6920d2f8.iframe.bundle.js similarity index 98% rename from main.af3a8593.iframe.bundle.js rename to main.6920d2f8.iframe.bundle.js index a7a13c3..890af5a 100644 --- a/main.af3a8593.iframe.bundle.js +++ b/main.6920d2f8.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[792],{"./storybook-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/channels"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/internal/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global");const importers=[async path=>{if(!/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)},async path=>{if(!/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.tsx)$/.exec(path))return;const pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.tsx)$")("./"+pathRemainder)}];const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb((async function importFn(path){for(let i=0;iimporters[i](path),x());if(moduleExports)return moduleExports}var x}),(()=>(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)([__webpack_require__("./node_modules/.pnpm/@storybook+react@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1__typescript@5.7.2/node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+react@8.4.5_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.5_prettier@3.4.1__typescript@5.7.2/node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-links@8.4.5_react@16.14.0_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-links/dist/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.5_@types+react@16.14.62_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/docs/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.5_@types+react@16.14.62_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/actions/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.5_@types+react@16.14.62_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.5_@types+react@16.14.62_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/viewport/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.5_@types+react@16.14.62_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/measure/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.5_@types+react@16.14.62_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/outline/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.5_@types+react@16.14.62_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-a11y@8.4.5_storybook@8.4.5_prettier@3.4.1_/node_modules/@storybook/addon-a11y/dist/preview.mjs"),__webpack_require__("./.storybook/preview.js")])));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./.storybook/preview.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{decorators:()=>decorators,parameters:()=>parameters});var react=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),base=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[12].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.91.0_esbuild@0.23.0_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[12].use[2]!./src/base.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(base.A,options);base.A&&base.A.locals&&base.A.locals;var fonts=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[12].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.91.0_esbuild@0.23.0_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[12].use[2]!./src/fonts.css"),fonts_options={};fonts_options.styleTagTransform=styleTagTransform_default(),fonts_options.setAttributes=setAttributesWithoutAttributes_default(),fonts_options.insert=insertBySelector_default().bind(null,"head"),fonts_options.domAPI=styleDomAPI_default(),fonts_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(fonts.A,fonts_options);fonts.A&&fonts.A.locals&&fonts.A.locals;const parameters={controls:{matchers:{color:/(background|color)$/i,date:/Date$/}},backgrounds:{default:"light-palette",values:[{name:"light-palette",value:"#f5f6f7"},{name:"dark-palette",value:"#1b1b32"}]}},decorators=[function renderTheme(Story,context){const selectedBackgroundValue=context.globals.backgrounds?.value,selectedBackgroundName=parameters.backgrounds.values.find((bg=>bg.value===selectedBackgroundValue))?.name;"light-palette"===(selectedBackgroundName||parameters.backgrounds.default)?(document.body.classList.remove("dark-palette"),document.body.classList.add("light-palette")):(document.body.classList.remove("light-palette"),document.body.classList.add("dark-palette"));return react.createElement(Story,null)}]},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[12].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.91.0_esbuild@0.23.0_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[12].use[2]!./src/base.css":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,":root {\n\t--gray00: #ffffff;\n\t--gray05: #f5f6f7;\n\t--gray10: #dfdfe2;\n\t--gray15: #d0d0d5;\n\t--gray45: #858591;\n\t--gray75: #3b3b4f;\n\t--gray80: #2a2a40;\n\t--gray85: #1b1b32;\n\t--gray90: #0a0a23;\n\n\t--purple10: #dbb8ff;\n\t--purple50: #9400d3;\n\t--purple90: #5a01a7;\n\n\t--yellow05: #fcf8e3;\n\t--yellow10: #faebcc;\n\t--yellow40: #ffc300;\n\t--yellow45: #ffbf00;\n\t--yellow50: #f1be32;\n\t--yellow70: #8a6d3b;\n\t--yellow90: #4d3800;\n\n\t--blue05: #d9edf7;\n\t--blue10: #bce8f1;\n\t--blue30: #99c9ff;\n\t--blue50: #198eee;\n\t--blue70: #31708f;\n\t--blue90: #002ead;\n\n\t/* These are blue30 and blue90 with an alpha value.\n\t\t The colors are in RGBA format instead of #RRGGBBAA\n\t\t in order to be compatible with older browsers. */\n\t--blue30-translucent: rgba(153, 201, 255, 0.3);\n\t--blue90-translucent: rgba(0, 46, 173, 0.3);\n\n\t--green05: #dff0d8;\n\t--green10: #d6e9c6;\n\t--green40: #acd157;\n\t--green70: #3c763d;\n\t--green90: #00471b;\n\n\t--red05: #f2dede;\n\t--red10: #ebccd1;\n\t--red15: #ffadad;\n\t--red30: #f8577c;\n\t--red70: #a94442;\n\t--red80: #f82153;\n\t--red90: #850000;\n}\n\n/* Export the variables in order to use them on the Color System Storybook page */\n\n:export {\n\t--gray00: var(--gray00);\n\t--gray05: var(--gray05);\n\t--gray10: var(--gray10);\n\t--gray15: var(--gray15);\n\t--gray45: var(--gray45);\n\t--gray75: var(--gray75);\n\t--gray80: var(--gray80);\n\t--gray85: var(--gray85);\n\t--gray90: var(--gray90);\n\n\t--purple10: var(--purple10);\n\t--purple50: var(--purple50);\n\t--purple90: var(--purple90);\n\n\t--yellow05: var(--yellow05);\n\t--yellow10: var(--yellow10);\n\t--yellow40: var(--yellow40);\n\t--yellow45: var(--yellow45);\n\t--yellow50: var(--yellow50);\n\t--yellow70: var(--yellow70);\n\t--yellow90: var(--yellow90);\n\n\t--blue05: var(--blue05);\n\t--blue10: var(--blue10);\n\t--blue30: var(--blue30);\n\t--blue50: var(--blue50);\n\t--blue70: var(--blue70);\n\t--blue90: var(--blue90);\n\n\t--green05: var(--green05);\n\t--green10: var(--green10);\n\t--green40: var(--green40);\n\t--green70: var(--green70);\n\t--green90: var(--green90);\n\n\t--red05: var(--red05);\n\t--red10: var(--red10);\n\t--red15: var(--red15);\n\t--red30: var(--red30);\n\t--red70: var(--red70);\n\t--red80: var(--red80);\n\t--red90: var(--red90);\n}\n\n.light-palette {\n\t--foreground-primary: var(--gray90);\n\t--foreground-secondary: var(--gray85);\n\t--foreground-tertiary: var(--gray80);\n\t--foreground-quaternary: var(--gray75);\n\t--foreground-danger: var(--red15);\n\t--foreground-success: var(--green40);\n\t--foreground-info: var(--blue30);\n\t--foreground-warning: var(--yellow45);\n\n\t--background-primary: var(--gray00);\n\t--background-secondary: var(--gray05);\n\t--background-tertiary: var(--gray10);\n\t--background-quaternary: var(--gray15);\n\t--background-danger: var(--red90);\n\t--background-success: var(--green90);\n\t--background-info: var(--blue90);\n\t--background-selection: var(--blue90-translucent);\n\n\t--focus-outline-color: var(--blue50);\n}\n\n.dark-palette {\n\t--foreground-primary: var(--gray00);\n\t--foreground-secondary: var(--gray05);\n\t--foreground-tertiary: var(--gray10);\n\t--foreground-quaternary: var(--gray15);\n\t--foreground-danger: var(--red90);\n\t--foreground-success: var(--green90);\n\t--foreground-info: var(--blue90);\n\t--foreground-warning: var(--yellow40);\n\n\t--background-primary: var(--gray90);\n\t--background-secondary: var(--gray85);\n\t--background-tertiary: var(--gray80);\n\t--background-quaternary: var(--gray75);\n\t--background-danger: var(--red15);\n\t--background-success: var(--green40);\n\t--background-info: var(--blue30);\n\t--background-selection: var(--blue30-translucent);\n\n\t--focus-outline-color: var(--blue50);\n}\n\n/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css */\n\n*, ::before, ::after {\n\t--tw-border-spacing-x: 0;\n\t--tw-border-spacing-y: 0;\n\t--tw-translate-x: 0;\n\t--tw-translate-y: 0;\n\t--tw-rotate: 0;\n\t--tw-skew-x: 0;\n\t--tw-skew-y: 0;\n\t--tw-scale-x: 1;\n\t--tw-scale-y: 1;\n\t--tw-pan-x: ;\n\t--tw-pan-y: ;\n\t--tw-pinch-zoom: ;\n\t--tw-scroll-snap-strictness: proximity;\n\t--tw-gradient-from-position: ;\n\t--tw-gradient-via-position: ;\n\t--tw-gradient-to-position: ;\n\t--tw-ordinal: ;\n\t--tw-slashed-zero: ;\n\t--tw-numeric-figure: ;\n\t--tw-numeric-spacing: ;\n\t--tw-numeric-fraction: ;\n\t--tw-ring-inset: ;\n\t--tw-ring-offset-width: 0px;\n\t--tw-ring-offset-color: #fff;\n\t--tw-ring-color: rgb(147 197 253 / 0.5);\n\t--tw-ring-offset-shadow: 0 0 #0000;\n\t--tw-ring-shadow: 0 0 #0000;\n\t--tw-shadow: 0 0 #0000;\n\t--tw-shadow-colored: 0 0 #0000;\n\t--tw-blur: ;\n\t--tw-brightness: ;\n\t--tw-contrast: ;\n\t--tw-grayscale: ;\n\t--tw-hue-rotate: ;\n\t--tw-invert: ;\n\t--tw-saturate: ;\n\t--tw-sepia: ;\n\t--tw-drop-shadow: ;\n\t--tw-backdrop-blur: ;\n\t--tw-backdrop-brightness: ;\n\t--tw-backdrop-contrast: ;\n\t--tw-backdrop-grayscale: ;\n\t--tw-backdrop-hue-rotate: ;\n\t--tw-backdrop-invert: ;\n\t--tw-backdrop-opacity: ;\n\t--tw-backdrop-saturate: ;\n\t--tw-backdrop-sepia: ;\n\t--tw-contain-size: ;\n\t--tw-contain-layout: ;\n\t--tw-contain-paint: ;\n\t--tw-contain-style: ;\n}\n\n::backdrop {\n\t--tw-border-spacing-x: 0;\n\t--tw-border-spacing-y: 0;\n\t--tw-translate-x: 0;\n\t--tw-translate-y: 0;\n\t--tw-rotate: 0;\n\t--tw-skew-x: 0;\n\t--tw-skew-y: 0;\n\t--tw-scale-x: 1;\n\t--tw-scale-y: 1;\n\t--tw-pan-x: ;\n\t--tw-pan-y: ;\n\t--tw-pinch-zoom: ;\n\t--tw-scroll-snap-strictness: proximity;\n\t--tw-gradient-from-position: ;\n\t--tw-gradient-via-position: ;\n\t--tw-gradient-to-position: ;\n\t--tw-ordinal: ;\n\t--tw-slashed-zero: ;\n\t--tw-numeric-figure: ;\n\t--tw-numeric-spacing: ;\n\t--tw-numeric-fraction: ;\n\t--tw-ring-inset: ;\n\t--tw-ring-offset-width: 0px;\n\t--tw-ring-offset-color: #fff;\n\t--tw-ring-color: rgb(147 197 253 / 0.5);\n\t--tw-ring-offset-shadow: 0 0 #0000;\n\t--tw-ring-shadow: 0 0 #0000;\n\t--tw-shadow: 0 0 #0000;\n\t--tw-shadow-colored: 0 0 #0000;\n\t--tw-blur: ;\n\t--tw-brightness: ;\n\t--tw-contrast: ;\n\t--tw-grayscale: ;\n\t--tw-hue-rotate: ;\n\t--tw-invert: ;\n\t--tw-saturate: ;\n\t--tw-sepia: ;\n\t--tw-drop-shadow: ;\n\t--tw-backdrop-blur: ;\n\t--tw-backdrop-brightness: ;\n\t--tw-backdrop-contrast: ;\n\t--tw-backdrop-grayscale: ;\n\t--tw-backdrop-hue-rotate: ;\n\t--tw-backdrop-invert: ;\n\t--tw-backdrop-opacity: ;\n\t--tw-backdrop-saturate: ;\n\t--tw-backdrop-sepia: ;\n\t--tw-contain-size: ;\n\t--tw-contain-layout: ;\n\t--tw-contain-paint: ;\n\t--tw-contain-style: ;\n}\n\n/* ! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com */\n\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: Lato, sans-serif; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: Hack-ZeroSlash, monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\n\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n\n[hidden]:where(:not([hidden=\"until-found\"])) {\n display: none;\n}\n\nhtml {\n\tfont-size: 18px;\n\tline-height: 1.42857143;\n}\n\n:focus-visible {\n\toutline-style: solid;\n\toutline-width: 3px;\n\toutline-offset: 0px;\n\toutline-color: var(--focus-outline-color);\n}\n\na {\n\t\t/* Override Tailwind's default `text-decoration` rule. */\n\t\t/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css#L92 */\n\t\ttext-decoration-line: underline;\n\t\t/* This is required in order to improve text readability in Arabic */\n\t\ttext-underline-position: under;\n\t}\n\n@supports not (text-underline-position: under) {\n\t\ta {\n\t\t\ttext-underline-offset: 0.1em;\n\t\t}\n\t}\n\ncode {\n\tbackground-color: var(--background-tertiary);\n\tcolor: var(--foreground-tertiary);\n}\n\n:not(pre) > code {\n\tborder-width: 1px;\n\tborder-color: var(--gray45);\n\tpadding-left: 4px;\n\tpadding-right: 4px;\n\tpadding-top: 1px;\n\tpadding-bottom: 1px;\n}\n\nh1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tp {\n\t\tmargin-bottom: 12.5px;\n\t}\n\n/* Override the Tailwind's placeholder text color. */\n\n/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css#L335 */\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n\tcolor: var(--foreground-quaternary);\n\topacity: 0.8;\n}\n\ninput::placeholder,\n\ttextarea::placeholder {\n\tcolor: var(--foreground-quaternary);\n\topacity: 0.8;\n}\n\n.container {\n\twidth: 100%;\n}\n\n@media (min-width: 640px) {\n\n\t.container {\n\t\tmax-width: 640px;\n\t}\n}\n\n@media (min-width: 768px) {\n\n\t.container {\n\t\tmax-width: 768px;\n\t}\n}\n\n@media (min-width: 1024px) {\n\n\t.container {\n\t\tmax-width: 1024px;\n\t}\n}\n\n@media (min-width: 1280px) {\n\n\t.container {\n\t\tmax-width: 1280px;\n\t}\n}\n\n@media (min-width: 1536px) {\n\n\t.container {\n\t\tmax-width: 1536px;\n\t}\n}\n\n.sr-only {\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tpadding: 0;\n\tmargin: -1px;\n\toverflow: hidden;\n\tclip: rect(0, 0, 0, 0);\n\twhite-space: nowrap;\n\tborder-width: 0;\n}\n\n.pointer-events-none {\n\tpointer-events: none;\n}\n\n.fixed {\n\tposition: fixed;\n}\n\n.absolute {\n\tposition: absolute;\n}\n\n.relative {\n\tposition: relative;\n}\n\n.inset-0 {\n\tinset: 0px;\n}\n\n.right-0 {\n\tright: 0px;\n}\n\n.top-0 {\n\ttop: 0px;\n}\n\n.top-\\[30px\\] {\n\ttop: 30px;\n}\n\n.z-10 {\n\tz-index: 10;\n}\n\n.z-1050 {\n\tz-index: 1050;\n}\n\n.z-2 {\n\tz-index: 2;\n}\n\n.m-0 {\n\tmargin: 0px;\n}\n\n.m-4 {\n\tmargin: 1rem;\n}\n\n.mx-2 {\n\tmargin-left: 0.5rem;\n\tmargin-right: 0.5rem;\n}\n\n.mx-\\[-15px\\] {\n\tmargin-left: -15px;\n\tmargin-right: -15px;\n}\n\n.mx-auto {\n\tmargin-left: auto;\n\tmargin-right: auto;\n}\n\n.my-0 {\n\tmargin-top: 0px;\n\tmargin-bottom: 0px;\n}\n\n.mb-0 {\n\tmargin-bottom: 0px;\n}\n\n.mb-2 {\n\tmargin-bottom: 0.5rem;\n}\n\n.mb-3\\.5 {\n\tmargin-bottom: 0.875rem;\n}\n\n.mb-6 {\n\tmargin-bottom: 1.5rem;\n}\n\n.mb-\\[0\\.6rem\\] {\n\tmargin-bottom: 0.6rem;\n}\n\n.mb-\\[20px\\] {\n\tmargin-bottom: 20px;\n}\n\n.me-\\[15px\\] {\n\tmargin-inline-end: 15px;\n}\n\n.me-\\[8px\\] {\n\tmargin-inline-end: 8px;\n}\n\n.ml-\\[-3px\\] {\n\tmargin-left: -3px;\n}\n\n.ml-\\[16\\.6\\%\\] {\n\tmargin-left: 16.6%;\n}\n\n.ml-\\[25\\%\\] {\n\tmargin-left: 25%;\n}\n\n.ml-\\[8\\.3\\%\\] {\n\tmargin-left: 8.3%;\n}\n\n.mt-0 {\n\tmargin-top: 0px;\n}\n\n.mt-1 {\n\tmargin-top: 0.25rem;\n}\n\n.mt-\\[0\\.5px\\] {\n\tmargin-top: 0.5px;\n}\n\n.block {\n\tdisplay: block;\n}\n\n.inline-block {\n\tdisplay: inline-block;\n}\n\n.flex {\n\tdisplay: flex;\n}\n\n.inline-flex {\n\tdisplay: inline-flex;\n}\n\n.table {\n\tdisplay: table;\n}\n\n.h-0 {\n\theight: 0px;\n}\n\n.h-3 {\n\theight: 0.75rem;\n}\n\n.h-8 {\n\theight: 2rem;\n}\n\n.h-\\[10px\\] {\n\theight: 10px;\n}\n\n.h-\\[180px\\] {\n\theight: 180px;\n}\n\n.h-\\[20px\\] {\n\theight: 20px;\n}\n\n.h-\\[24px\\] {\n\theight: 24px;\n}\n\n.h-\\[30px\\] {\n\theight: 30px;\n}\n\n.h-\\[5px\\] {\n\theight: 5px;\n}\n\n.h-\\[60px\\] {\n\theight: 60px;\n}\n\n.h-\\[90px\\] {\n\theight: 90px;\n}\n\n.h-screen {\n\theight: 100vh;\n}\n\n.min-h-43-px {\n\tmin-height: 43px;\n}\n\n.min-h-\\[1px\\] {\n\tmin-height: 1px;\n}\n\n.w-0 {\n\twidth: 0px;\n}\n\n.w-1\\/2 {\n\twidth: 50%;\n}\n\n.w-2\\/3 {\n\twidth: 66.666667%;\n}\n\n.w-3\\/12 {\n\twidth: 25%;\n}\n\n.w-5\\/6 {\n\twidth: 83.333333%;\n}\n\n.w-8 {\n\twidth: 2rem;\n}\n\n.w-\\[20px\\] {\n\twidth: 20px;\n}\n\n.w-\\[24px\\] {\n\twidth: 24px;\n}\n\n.w-\\[600px\\] {\n\twidth: 600px;\n}\n\n.w-\\[900px\\] {\n\twidth: 900px;\n}\n\n.w-\\[95vw\\] {\n\twidth: 95vw;\n}\n\n.w-full {\n\twidth: 100%;\n}\n\n.w-screen {\n\twidth: 100vw;\n}\n\n.min-w-max {\n\tmin-width: -moz-max-content;\n\tmin-width: max-content;\n}\n\n.max-w-full {\n\tmax-width: 100%;\n}\n\n.max-w-none {\n\tmax-width: none;\n}\n\n.flex-1 {\n\tflex: 1 1 0%;\n}\n\n.shrink-0 {\n\tflex-shrink: 0;\n}\n\n.table-auto {\n\ttable-layout: auto;\n}\n\n.border-collapse {\n\tborder-collapse: collapse;\n}\n\n.origin-top-right {\n\ttransform-origin: top right;\n}\n\n.-translate-y-1\\/4 {\n\t--tw-translate-y: -25%;\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.-translate-y-full {\n\t--tw-translate-y: -100%;\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.translate-y-0 {\n\t--tw-translate-y: 0px;\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.transform {\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.cursor-default {\n\tcursor: default;\n}\n\n.cursor-pointer {\n\tcursor: pointer;\n}\n\n.touch-manipulation {\n\ttouch-action: manipulation;\n}\n\n.list-none {\n\tlist-style-type: none;\n}\n\n.flex-col {\n\tflex-direction: column;\n}\n\n.items-start {\n\talign-items: flex-start;\n}\n\n.items-center {\n\talign-items: center;\n}\n\n.justify-end {\n\tjustify-content: flex-end;\n}\n\n.justify-center {\n\tjustify-content: center;\n}\n\n.justify-between {\n\tjustify-content: space-between;\n}\n\n.gap-y-\\[48px\\] {\n\trow-gap: 48px;\n}\n\n.overflow-scroll {\n\toverflow: scroll;\n}\n\n.break-words {\n\toverflow-wrap: break-word;\n}\n\n.rounded-full {\n\tborder-radius: 9999px;\n}\n\n.rounded-none {\n\tborder-radius: 0px;\n}\n\n.border {\n\tborder-width: 1px;\n}\n\n.border-1 {\n\tborder-width: 1px;\n}\n\n.border-2 {\n\tborder-width: 2px;\n}\n\n.border-3 {\n\tborder-width: 3px;\n}\n\n.border-x-4 {\n\tborder-left-width: 4px;\n\tborder-right-width: 4px;\n}\n\n.border-b-1 {\n\tborder-bottom-width: 1px;\n}\n\n.border-b-\\[1px\\] {\n\tborder-bottom-width: 1px;\n}\n\n.border-t-4 {\n\tborder-top-width: 4px;\n}\n\n.border-solid {\n\tborder-style: solid;\n}\n\n.border-none {\n\tborder-style: none;\n}\n\n.border-background-quaternary {\n\tborder-color: var(--background-quaternary);\n}\n\n.border-background-tertiary {\n\tborder-color: var(--background-tertiary);\n}\n\n.border-blue-100 {\n\tborder-color: var(--blue10);\n}\n\n.border-blue-700 {\n\tborder-color: var(--blue70);\n}\n\n.border-foreground-danger {\n\tborder-color: var(--foreground-danger);\n}\n\n.border-foreground-info {\n\tborder-color: var(--foreground-info);\n}\n\n.border-foreground-primary {\n\tborder-color: var(--foreground-primary);\n}\n\n.border-foreground-quaternary {\n\tborder-color: var(--foreground-quaternary);\n}\n\n.border-foreground-secondary {\n\tborder-color: var(--foreground-secondary);\n}\n\n.border-gray-450 {\n\tborder-color: var(--gray45);\n}\n\n.border-green-100 {\n\tborder-color: var(--green10);\n}\n\n.border-green-700 {\n\tborder-color: var(--green70);\n}\n\n.border-red-100 {\n\tborder-color: var(--red10);\n}\n\n.border-red-700 {\n\tborder-color: var(--red70);\n}\n\n.border-yellow-100 {\n\tborder-color: var(--yellow10);\n}\n\n.border-yellow-700 {\n\tborder-color: var(--yellow70);\n}\n\n.border-l-background-danger {\n\tborder-left-color: var(--background-danger);\n}\n\n.border-l-background-success {\n\tborder-left-color: var(--background-success);\n}\n\n.bg-background-danger {\n\tbackground-color: var(--background-danger);\n}\n\n.bg-background-info {\n\tbackground-color: var(--background-info);\n}\n\n.bg-background-primary {\n\tbackground-color: var(--background-primary);\n}\n\n.bg-background-quaternary {\n\tbackground-color: var(--background-quaternary);\n}\n\n.bg-background-secondary {\n\tbackground-color: var(--background-secondary);\n}\n\n.bg-blue-50 {\n\tbackground-color: var(--blue05);\n}\n\n.bg-foreground-danger {\n\tbackground-color: var(--foreground-danger);\n}\n\n.bg-foreground-info {\n\tbackground-color: var(--foreground-info);\n}\n\n.bg-foreground-primary {\n\tbackground-color: var(--foreground-primary);\n}\n\n.bg-foreground-secondary {\n\tbackground-color: var(--foreground-secondary);\n}\n\n.bg-gray-700 {\n\t--tw-bg-opacity: 1;\n\tbackground-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));\n}\n\n.bg-gray-900 {\n\tbackground-color: var(--gray90);\n}\n\n.bg-green-50 {\n\tbackground-color: var(--green05);\n}\n\n.bg-red-50 {\n\tbackground-color: var(--red05);\n}\n\n.bg-transparent {\n\tbackground-color: transparent;\n}\n\n.bg-yellow-50 {\n\tbackground-color: var(--yellow05);\n}\n\n.bg-none {\n\tbackground-image: none;\n}\n\n.p-2 {\n\tpadding: 0.5rem;\n}\n\n.p-3\\.5 {\n\tpadding: 0.875rem;\n}\n\n.p-4 {\n\tpadding: 1rem;\n}\n\n.p-\\[10px\\] {\n\tpadding: 10px;\n}\n\n.p-\\[15px\\] {\n\tpadding: 15px;\n}\n\n.p-\\[20px\\] {\n\tpadding: 20px;\n}\n\n.px-0 {\n\tpadding-left: 0px;\n\tpadding-right: 0px;\n}\n\n.px-2\\.5 {\n\tpadding-left: 0.625rem;\n\tpadding-right: 0.625rem;\n}\n\n.px-3 {\n\tpadding-left: 0.75rem;\n\tpadding-right: 0.75rem;\n}\n\n.px-3\\.5 {\n\tpadding-left: 0.875rem;\n\tpadding-right: 0.875rem;\n}\n\n.px-4 {\n\tpadding-left: 1rem;\n\tpadding-right: 1rem;\n}\n\n.px-5 {\n\tpadding-left: 1.25rem;\n\tpadding-right: 1.25rem;\n}\n\n.px-6 {\n\tpadding-left: 1.5rem;\n\tpadding-right: 1.5rem;\n}\n\n.px-8 {\n\tpadding-left: 2rem;\n\tpadding-right: 2rem;\n}\n\n.px-\\[15px\\] {\n\tpadding-left: 15px;\n\tpadding-right: 15px;\n}\n\n.py-1 {\n\tpadding-top: 0.25rem;\n\tpadding-bottom: 0.25rem;\n}\n\n.py-1\\.5 {\n\tpadding-top: 0.375rem;\n\tpadding-bottom: 0.375rem;\n}\n\n.py-2\\.5 {\n\tpadding-top: 0.625rem;\n\tpadding-bottom: 0.625rem;\n}\n\n.py-\\[5px\\] {\n\tpadding-top: 5px;\n\tpadding-bottom: 5px;\n}\n\n.pb-\\[20px\\] {\n\tpadding-bottom: 20px;\n}\n\n.pl-0 {\n\tpadding-left: 0px;\n}\n\n.ps-\\[20px\\] {\n\tpadding-inline-start: 20px;\n}\n\n.text-center {\n\ttext-align: center;\n}\n\n.text-start {\n\ttext-align: start;\n}\n\n.text-lg {\n\tfont-size: 24px;\n\tline-height: 1.3333333;\n}\n\n.text-md {\n\tfont-size: 18px;\n\tline-height: 1.42857143;\n}\n\n.text-sm {\n\tfont-size: 16px;\n\tline-height: 1.5;\n}\n\n.text-xl {\n\tfont-size: 1.25rem;\n\tline-height: 1.75rem;\n}\n\n.font-bold {\n\tfont-weight: 700;\n}\n\n.leading-8 {\n\tline-height: 2rem;\n}\n\n.text-background-danger {\n\tcolor: var(--background-danger);\n}\n\n.text-background-info {\n\tcolor: var(--background-info);\n}\n\n.text-background-primary {\n\tcolor: var(--background-primary);\n}\n\n.text-background-secondary {\n\tcolor: var(--background-secondary);\n}\n\n.text-background-success {\n\tcolor: var(--background-success);\n}\n\n.text-blue-700 {\n\tcolor: var(--blue70);\n}\n\n.text-foreground-danger {\n\tcolor: var(--foreground-danger);\n}\n\n.text-foreground-info {\n\tcolor: var(--foreground-info);\n}\n\n.text-foreground-primary {\n\tcolor: var(--foreground-primary);\n}\n\n.text-foreground-quaternary {\n\tcolor: var(--foreground-quaternary);\n}\n\n.text-foreground-secondary {\n\tcolor: var(--foreground-secondary);\n}\n\n.text-foreground-tertiary {\n\tcolor: var(--foreground-tertiary);\n}\n\n.text-green-700 {\n\tcolor: var(--green70);\n}\n\n.text-inherit {\n\tcolor: inherit;\n}\n\n.text-red-700 {\n\tcolor: var(--red70);\n}\n\n.text-yellow-700 {\n\tcolor: var(--yellow70);\n}\n\n.no-underline {\n\ttext-decoration-line: none;\n}\n\n.opacity-0 {\n\topacity: 0;\n}\n\n.opacity-100 {\n\topacity: 1;\n}\n\n.opacity-50 {\n\topacity: 0.5;\n}\n\n.shadow-none {\n\t--tw-shadow: 0 0 #0000;\n\t--tw-shadow-colored: 0 0 #0000;\n\tbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.shadow-sm {\n\t--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\t--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n\tbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.outline {\n\toutline-style: solid;\n}\n\n.outline-0 {\n\toutline-width: 0px;\n}\n\n.outline-3 {\n\toutline-width: 3px;\n}\n\n.outline-\\[1px\\] {\n\toutline-width: 1px;\n}\n\n.outline-offset-2 {\n\toutline-offset: 2px;\n}\n\n.outline-offset-\\[-3px\\] {\n\toutline-offset: -3px;\n}\n\n.outline-background-tertiary {\n\toutline-color: var(--background-tertiary);\n}\n\n.outline-blue-500 {\n\toutline-color: var(--blue50);\n}\n\n.outline-focus-outline-color {\n\toutline-color: var(--focus-outline-color);\n}\n\n.outline-foreground-primary {\n\toutline-color: var(--foreground-primary);\n}\n\n.filter {\n\tfilter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.transition {\n\ttransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n\ttransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\ttransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n\ttransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\ttransition-duration: 150ms;\n}\n\n.transition-all {\n\ttransition-property: all;\n\ttransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\ttransition-duration: 150ms;\n}\n\n.duration-150 {\n\ttransition-duration: 150ms;\n}\n\n.duration-300 {\n\ttransition-duration: 300ms;\n}\n\n.ease-in-out {\n\ttransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.ease-out {\n\ttransition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.before\\:absolute::before {\n\tcontent: var(--tw-content);\n\tposition: absolute;\n}\n\n.before\\:start-1\\/2::before {\n\tcontent: var(--tw-content);\n\tinset-inline-start: 50%;\n}\n\n.before\\:top-1\\/2::before {\n\tcontent: var(--tw-content);\n\ttop: 50%;\n}\n\n.before\\:h-\\[10px\\]::before {\n\tcontent: var(--tw-content);\n\theight: 10px;\n}\n\n.before\\:w-\\[10px\\]::before {\n\tcontent: var(--tw-content);\n\twidth: 10px;\n}\n\n.before\\:-translate-x-1\\/2::before {\n\tcontent: var(--tw-content);\n\t--tw-translate-x: -50%;\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.before\\:-translate-y-1\\/2::before {\n\tcontent: var(--tw-content);\n\t--tw-translate-y: -50%;\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.before\\:rounded-full::before {\n\tcontent: var(--tw-content);\n\tborder-radius: 9999px;\n}\n\n.before\\:bg-foreground-primary::before {\n\tcontent: var(--tw-content);\n\tbackground-color: var(--foreground-primary);\n}\n\n.first\\:ml-0:first-child {\n\tmargin-left: 0px;\n}\n\n.last\\:border-b-4:last-child {\n\tborder-bottom-width: 4px;\n}\n\n.focus-within\\:ring:focus-within {\n\t--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\t--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\tbox-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.focus-within\\:ring-focus-outline-color:focus-within {\n\t--tw-ring-color: var(--focus-outline-color);\n}\n\n.hover\\:border-foreground-danger:hover {\n\tborder-color: var(--foreground-danger);\n}\n\n.hover\\:border-foreground-info:hover {\n\tborder-color: var(--foreground-info);\n}\n\n.hover\\:border-foreground-secondary:hover {\n\tborder-color: var(--foreground-secondary);\n}\n\n.hover\\:bg-background-quaternary:hover {\n\tbackground-color: var(--background-quaternary);\n}\n\n.hover\\:bg-background-secondary:hover {\n\tbackground-color: var(--background-secondary);\n}\n\n.hover\\:bg-background-tertiary:hover {\n\tbackground-color: var(--background-tertiary);\n}\n\n.hover\\:bg-foreground-danger:hover {\n\tbackground-color: var(--foreground-danger);\n}\n\n.hover\\:bg-foreground-info:hover {\n\tbackground-color: var(--foreground-info);\n}\n\n.hover\\:bg-foreground-primary:hover {\n\tbackground-color: var(--foreground-primary);\n}\n\n.hover\\:bg-foreground-secondary:hover {\n\tbackground-color: var(--foreground-secondary);\n}\n\n.hover\\:text-background-danger:hover {\n\tcolor: var(--background-danger);\n}\n\n.hover\\:text-background-info:hover {\n\tcolor: var(--background-info);\n}\n\n.hover\\:text-background-primary:hover {\n\tcolor: var(--background-primary);\n}\n\n.hover\\:text-background-secondary:hover {\n\tcolor: var(--background-secondary);\n}\n\n.hover\\:text-foreground-secondary:hover {\n\tcolor: var(--foreground-secondary);\n}\n\n.hover\\:text-opacity-100:hover {\n\t--tw-text-opacity: 1;\n}\n\n.hover\\:no-underline:hover {\n\ttext-decoration-line: none;\n}\n\n.hover\\:opacity-100:hover {\n\topacity: 1;\n}\n\n.focus\\:border-foreground-tertiary:focus {\n\tborder-color: var(--foreground-tertiary);\n}\n\n.focus\\:bg-background-secondary:focus {\n\tbackground-color: var(--background-secondary);\n}\n\n.focus\\:text-foreground-secondary:focus {\n\tcolor: var(--foreground-secondary);\n}\n\n.focus\\:text-opacity-100:focus {\n\t--tw-text-opacity: 1;\n}\n\n.focus\\:opacity-100:focus {\n\topacity: 1;\n}\n\n.focus\\:outline-none:focus {\n\toutline: 2px solid transparent;\n\toutline-offset: 2px;\n}\n\n.focus\\:outline-transparent:focus {\n\toutline-color: transparent;\n}\n\n.active\\:before\\:absolute:active::before {\n\tcontent: var(--tw-content);\n\tposition: absolute;\n}\n\n.active\\:before\\:inset-0:active::before {\n\tcontent: var(--tw-content);\n\tinset: 0px;\n}\n\n.active\\:before\\:hidden:active::before {\n\tcontent: var(--tw-content);\n\tdisplay: none;\n}\n\n.active\\:before\\:h-full:active::before {\n\tcontent: var(--tw-content);\n\theight: 100%;\n}\n\n.active\\:before\\:w-full:active::before {\n\tcontent: var(--tw-content);\n\twidth: 100%;\n}\n\n.active\\:before\\:border-3:active::before {\n\tcontent: var(--tw-content);\n\tborder-width: 3px;\n}\n\n.active\\:before\\:border-transparent:active::before {\n\tcontent: var(--tw-content);\n\tborder-color: transparent;\n}\n\n.active\\:before\\:bg-gray-900:active::before {\n\tcontent: var(--tw-content);\n\tbackground-color: var(--gray90);\n}\n\n.active\\:before\\:opacity-20:active::before {\n\tcontent: var(--tw-content);\n\topacity: 0.2;\n}\n\n.aria-selected\\:bg-foreground-quaternary[aria-selected=\"true\"] {\n\tbackground-color: var(--foreground-quaternary);\n}\n\n.aria-selected\\:font-bold[aria-selected=\"true\"] {\n\tfont-weight: 700;\n}\n\n.aria-selected\\:text-background-secondary[aria-selected=\"true\"] {\n\tcolor: var(--background-secondary);\n}\n\n.aria-disabled\\:cursor-not-allowed[aria-disabled=\"true\"] {\n\tcursor: not-allowed;\n}\n\n.aria-disabled\\:opacity-50[aria-disabled=\"true\"] {\n\topacity: 0.5;\n}\n\n.aria-disabled\\:opacity-80[aria-disabled=\"true\"] {\n\topacity: 0.8;\n}\n\n.dark\\:hover\\:bg-background-danger:hover:is(.dark *) {\n\tbackground-color: var(--background-danger);\n}\n\n.dark\\:hover\\:bg-background-info:hover:is(.dark *) {\n\tbackground-color: var(--background-info);\n}\n\n.dark\\:hover\\:bg-background-primary:hover:is(.dark *) {\n\tbackground-color: var(--background-primary);\n}\n\n.dark\\:hover\\:text-foreground-danger:hover:is(.dark *) {\n\tcolor: var(--foreground-danger);\n}\n\n.dark\\:hover\\:text-foreground-info:hover:is(.dark *) {\n\tcolor: var(--foreground-info);\n}\n\n.dark\\:hover\\:text-foreground-primary:hover:is(.dark *) {\n\tcolor: var(--foreground-primary);\n}\n\n@media (min-width: 768px) {\n\n\t.md\\:left-\\[8\\.3\\%\\] {\n\t\tleft: 8.3%;\n\t}\n\n\t.md\\:ml-\\[16\\.6\\%\\] {\n\t\tmargin-left: 16.6%;\n\t}\n\n\t.md\\:ml-\\[25\\%\\] {\n\t\tmargin-left: 25%;\n\t}\n\n\t.md\\:ml-\\[33\\.3\\%\\] {\n\t\tmargin-left: 33.3%;\n\t}\n\n\t.md\\:ml-\\[8\\.3\\%\\] {\n\t\tmargin-left: 8.3%;\n\t}\n\n\t.md\\:w-1\\/2 {\n\t\twidth: 50%;\n\t}\n\n\t.md\\:w-1\\/3 {\n\t\twidth: 33.333333%;\n\t}\n\n\t.md\\:w-1\\/6 {\n\t\twidth: 16.666667%;\n\t}\n\n\t.md\\:w-2\\/3 {\n\t\twidth: 66.666667%;\n\t}\n\n\t.md\\:w-5\\/12 {\n\t\twidth: 41.666667%;\n\t}\n\n\t.md\\:w-5\\/6 {\n\t\twidth: 83.333333%;\n\t}\n\n\t.md\\:w-\\[750px\\] {\n\t\twidth: 750px;\n\t}\n\n\t.md\\:w-\\[90vw\\] {\n\t\twidth: 90vw;\n\t}\n\n\t.md\\:w-full {\n\t\twidth: 100%;\n\t}\n\n\t.md\\:pb-\\[30px\\] {\n\t\tpadding-bottom: 30px;\n\t}\n\n\t.md\\:pt-\\[30px\\] {\n\t\tpadding-top: 30px;\n\t}\n}\n\n@media (min-width: 992px) {\n\n\t.min-\\[992px\\]\\:ml-\\[16\\.6\\%\\] {\n\t\tmargin-left: 16.6%;\n\t}\n\n\t.min-\\[992px\\]\\:ml-\\[25\\%\\] {\n\t\tmargin-left: 25%;\n\t}\n\n\t.min-\\[992px\\]\\:ml-\\[33\\.3\\%\\] {\n\t\tmargin-left: 33.3%;\n\t}\n\n\t.min-\\[992px\\]\\:ml-\\[8\\.3\\%\\] {\n\t\tmargin-left: 8.3%;\n\t}\n\n\t.min-\\[992px\\]\\:w-1\\/2 {\n\t\twidth: 50%;\n\t}\n\n\t.min-\\[992px\\]\\:w-1\\/3 {\n\t\twidth: 33.333333%;\n\t}\n\n\t.min-\\[992px\\]\\:w-2\\/3 {\n\t\twidth: 66.666667%;\n\t}\n\n\t.min-\\[992px\\]\\:w-5\\/6 {\n\t\twidth: 83.333333%;\n\t}\n\n\t.min-\\[992px\\]\\:w-\\[970px\\] {\n\t\twidth: 970px;\n\t}\n\n\t.min-\\[992px\\]\\:w-full {\n\t\twidth: 100%;\n\t}\n}\n\n@media (min-width: 1200px) {\n\n\t.min-\\[1200px\\]\\:ml-0 {\n\t\tmargin-left: 0px;\n\t}\n\n\t.min-\\[1200px\\]\\:ml-\\[16\\.6\\%\\] {\n\t\tmargin-left: 16.6%;\n\t}\n\n\t.min-\\[1200px\\]\\:ml-\\[8\\.3\\%\\] {\n\t\tmargin-left: 8.3%;\n\t}\n\n\t.min-\\[1200px\\]\\:w-1\\/2 {\n\t\twidth: 50%;\n\t}\n\n\t.min-\\[1200px\\]\\:w-2\\/3 {\n\t\twidth: 66.666667%;\n\t}\n\n\t.min-\\[1200px\\]\\:w-5\\/6 {\n\t\twidth: 83.333333%;\n\t}\n\n\t.min-\\[1200px\\]\\:w-\\[1170px\\] {\n\t\twidth: 1170px;\n\t}\n}\n\n.\\[\\&\\>p\\:last-child\\]\\:m-0>p:last-child {\n\tmargin: 0px;\n}\n\n.\\[\\&\\>tbody\\>tr\\:nth-of-type\\(odd\\)\\]\\:bg-background-tertiary>tbody>tr:nth-of-type(odd) {\n\tbackground-color: var(--background-tertiary);\n}\n\n.\\[\\&_td\\]\\:p-1 td {\n\tpadding: 0.25rem;\n}\n\n.\\[\\&_td\\]\\:p-2 td {\n\tpadding: 0.5rem;\n}\n\n.\\[\\&_th\\]\\:p-1 th {\n\tpadding: 0.25rem;\n}\n\n.\\[\\&_th\\]\\:p-2 th {\n\tpadding: 0.5rem;\n}\n\n.\\[\\&_th\\]\\:font-normal th {\n\tfont-weight: 400;\n}\n","",{version:3,sources:["webpack://./src/colors.css","webpack://./src/base.css"],names:[],mappings:"AAAA;CACC,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;;CAEjB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;;CAEnB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;;CAEnB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;;CAEjB;;mDAEkD;CAClD,8CAA8C;CAC9C,2CAA2C;;CAE3C,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;;CAElB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;AACjB;;AAEA,iFAAiF;;AACjF;CACC,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;;CAEvB,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;;CAE3B,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;;CAE3B,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;;CAEvB,yBAAyB;CACzB,yBAAyB;CACzB,yBAAyB;CACzB,yBAAyB;CACzB,yBAAyB;;CAEzB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;AACtB;;AAEA;CACC,mCAAmC;CACnC,qCAAqC;CACrC,oCAAoC;CACpC,sCAAsC;CACtC,iCAAiC;CACjC,oCAAoC;CACpC,gCAAgC;CAChC,qCAAqC;;CAErC,mCAAmC;CACnC,qCAAqC;CACrC,oCAAoC;CACpC,sCAAsC;CACtC,iCAAiC;CACjC,oCAAoC;CACpC,gCAAgC;CAChC,iDAAiD;;CAEjD,oCAAoC;AACrC;;AAEA;CACC,mCAAmC;CACnC,qCAAqC;CACrC,oCAAoC;CACpC,sCAAsC;CACtC,iCAAiC;CACjC,oCAAoC;CACpC,gCAAgC;CAChC,qCAAqC;;CAErC,mCAAmC;CACnC,qCAAqC;CACrC,oCAAoC;CACpC,sCAAsC;CACtC,iCAAiC;CACjC,oCAAoC;CACpC,gCAAgC;CAChC,iDAAiD;;CAEjD,oCAAoC;AACrC;;ACzIA,+EAA+E;;AAC/E;CAAA,wBAAc;CAAd,wBAAc;CAAd,mBAAc;CAAd,mBAAc;CAAd,cAAc;CAAd,cAAc;CAAd,cAAc;CAAd,eAAc;CAAd,eAAc;CAAd,aAAc;CAAd,aAAc;CAAd,kBAAc;CAAd,sCAAc;CAAd,8BAAc;CAAd,6BAAc;CAAd,4BAAc;CAAd,eAAc;CAAd,oBAAc;CAAd,sBAAc;CAAd,uBAAc;CAAd,wBAAc;CAAd,kBAAc;CAAd,2BAAc;CAAd,4BAAc;CAAd,uCAAc;CAAd,kCAAc;CAAd,2BAAc;CAAd,sBAAc;CAAd,8BAAc;CAAd,YAAc;CAAd,kBAAc;CAAd,gBAAc;CAAd,iBAAc;CAAd,kBAAc;CAAd,cAAc;CAAd,gBAAc;CAAd,aAAc;CAAd,mBAAc;CAAd,qBAAc;CAAd,2BAAc;CAAd,yBAAc;CAAd,0BAAc;CAAd,2BAAc;CAAd,uBAAc;CAAd,wBAAc;CAAd,yBAAc;CAAd,sBAAc;CAAd,oBAAc;CAAd,sBAAc;CAAd,qBAAc;CAAd;AAAc;;AAAd;CAAA,wBAAc;CAAd,wBAAc;CAAd,mBAAc;CAAd,mBAAc;CAAd,cAAc;CAAd,cAAc;CAAd,cAAc;CAAd,eAAc;CAAd,eAAc;CAAd,aAAc;CAAd,aAAc;CAAd,kBAAc;CAAd,sCAAc;CAAd,8BAAc;CAAd,6BAAc;CAAd,4BAAc;CAAd,eAAc;CAAd,oBAAc;CAAd,sBAAc;CAAd,uBAAc;CAAd,wBAAc;CAAd,kBAAc;CAAd,2BAAc;CAAd,4BAAc;CAAd,uCAAc;CAAd,kCAAc;CAAd,2BAAc;CAAd,sBAAc;CAAd,8BAAc;CAAd,YAAc;CAAd,kBAAc;CAAd,gBAAc;CAAd,iBAAc;CAAd,kBAAc;CAAd,cAAc;CAAd,gBAAc;CAAd,aAAc;CAAd,mBAAc;CAAd,qBAAc;CAAd,2BAAc;CAAd,yBAAc;CAAd,0BAAc;CAAd,2BAAc;CAAd,uBAAc;CAAd,wBAAc;CAAd,yBAAc;CAAd,sBAAc;CAAd,oBAAc;CAAd,sBAAc;CAAd,qBAAc;CAAd;AAAc;;AAAd,kEAAc;;AAAd;;;CAAc;;AAAd;;;EAAA,sBAAc,EAAd,MAAc;EAAd,eAAc,EAAd,MAAc;EAAd,mBAAc,EAAd,MAAc;EAAd,qBAAc,EAAd,MAAc;AAAA;;AAAd;;EAAA,gBAAc;AAAA;;AAAd;;;;;;;;CAAc;;AAAd;;EAAA,gBAAc,EAAd,MAAc;EAAd,8BAAc,EAAd,MAAc;EAAd,gBAAc,EAAd,MAAc;EAAd,cAAc;KAAd,WAAc,EAAd,MAAc;EAAd,6BAAc,EAAd,MAAc;EAAd,6BAAc,EAAd,MAAc;EAAd,+BAAc,EAAd,MAAc;EAAd,wCAAc,EAAd,MAAc;AAAA;;AAAd;;;CAAc;;AAAd;EAAA,SAAc,EAAd,MAAc;EAAd,oBAAc,EAAd,MAAc;AAAA;;AAAd;;;;CAAc;;AAAd;EAAA,SAAc,EAAd,MAAc;EAAd,cAAc,EAAd,MAAc;EAAd,qBAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,yCAAc;UAAd,iCAAc;AAAA;;AAAd;;CAAc;;AAAd;;;;;;EAAA,kBAAc;EAAd,oBAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,cAAc;EAAd,wBAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,mBAAc;AAAA;;AAAd;;;;;CAAc;;AAAd;;;;EAAA,sCAAc,EAAd,MAAc;EAAd,6BAAc,EAAd,MAAc;EAAd,+BAAc,EAAd,MAAc;EAAd,cAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,cAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,cAAc;EAAd,cAAc;EAAd,kBAAc;EAAd,wBAAc;AAAA;;AAAd;EAAA,eAAc;AAAA;;AAAd;EAAA,WAAc;AAAA;;AAAd;;;;CAAc;;AAAd;EAAA,cAAc,EAAd,MAAc;EAAd,qBAAc,EAAd,MAAc;EAAd,yBAAc,EAAd,MAAc;AAAA;;AAAd;;;;CAAc;;AAAd;;;;;EAAA,oBAAc,EAAd,MAAc;EAAd,8BAAc,EAAd,MAAc;EAAd,gCAAc,EAAd,MAAc;EAAd,eAAc,EAAd,MAAc;EAAd,oBAAc,EAAd,MAAc;EAAd,oBAAc,EAAd,MAAc;EAAd,uBAAc,EAAd,MAAc;EAAd,cAAc,EAAd,MAAc;EAAd,SAAc,EAAd,MAAc;EAAd,UAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,oBAAc;AAAA;;AAAd;;;CAAc;;AAAd;;;;EAAA,0BAAc,EAAd,MAAc;EAAd,6BAAc,EAAd,MAAc;EAAd,sBAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,aAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,gBAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,wBAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,YAAc;AAAA;;AAAd;;;CAAc;;AAAd;EAAA,6BAAc,EAAd,MAAc;EAAd,oBAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,wBAAc;AAAA;;AAAd;;;CAAc;;AAAd;EAAA,0BAAc,EAAd,MAAc;EAAd,aAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,kBAAc;AAAA;;AAAd;;CAAc;;AAAd;;;;;;;;;;;;;EAAA,SAAc;AAAA;;AAAd;EAAA,SAAc;EAAd,UAAc;AAAA;;AAAd;EAAA,UAAc;AAAA;;AAAd;;;EAAA,gBAAc;EAAd,SAAc;EAAd,UAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,UAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,gBAAc;AAAA;;AAAd;;;CAAc;;AAAd;EAAA,UAAc,EAAd,MAAc;EAAd,cAAc,EAAd,MAAc;AAAA;;AAAd;;EAAA,UAAc,EAAd,MAAc;EAAd,cAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,eAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,eAAc;AAAA;;AAAd;;;;CAAc;;AAAd;;;;;;;;EAAA,cAAc,EAAd,MAAc;EAAd,sBAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,eAAc;EAAd,YAAc;AAAA;;AAAd,wEAAc;;AAAd;EAAA,aAAc;AAAA;;AAAd;CAAA,eAAc;CAAd;AAAc;;AAAd;CAAA,oBAAc;CAAd,kBAAc;CAAd,mBAAc;CAAd;AAAc;;AAAd;EAAA,wDAAc;EAAd,mFAAc;EAAd,+BAAc;EAAd,oEAAc;EAAd,8BAAc;CAAA;;AAAd;EAAA;GAAA,4BAAc;EAAA;CAAA;;AAAd;CAAA,4CAAc;CAAd;AAAc;;AAAd;CAAA,iBAAc;CAAd,2BAAc;CAAd,iBAAc;CAAd,kBAAc;CAAd,gBAAc;CAAd;AAAc;;AAAd;;;;;;;EAAA,qBAAc;CAAA;;AAAd,oDAAc;;AAAd,oFAAc;;AAAd;CAAA,mCAAc;CAAd;AAAc;;AAAd;;CAAA,mCAAc;CAAd;AAAc;;AAiDd;CAAA;AAAoB;;AAApB;;CAAA;EAAA;CAAoB;AAAA;;AAApB;;CAAA;EAAA;CAAoB;AAAA;;AAApB;;CAAA;EAAA;CAAoB;AAAA;;AAApB;;CAAA;EAAA;CAAoB;AAAA;;AAApB;;CAAA;EAAA;CAAoB;AAAA;;AACpB;CAAA,kBAAmB;CAAnB,UAAmB;CAAnB,WAAmB;CAAnB,UAAmB;CAAnB,YAAmB;CAAnB,gBAAmB;CAAnB,sBAAmB;CAAnB,mBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,mBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,iBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,eAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,2BAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,sBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,uBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,qBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,sBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,iBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,sBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,qBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,sBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,qBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,oBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,oBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,qBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,qBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,gBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,eAAmB;CAAnB;AAAmB;;AAAnB;CAAA,eAAmB;CAAnB;AAAmB;;AAAnB;CAAA,eAAmB;CAAnB;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,sBAAmB;CAAnB,8BAAmB;CAAnB;AAAmB;;AAAnB;CAAA,0CAAmB;CAAnB,uDAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,gKAAmB;CAAnB,wJAAmB;CAAnB,iLAAmB;CAAnB,wDAAmB;CAAnB;AAAmB;;AAAnB;CAAA,wBAAmB;CAAnB,wDAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AArDnB;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA,sBAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA,sBAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA,2GAsDA;CAtDA,yGAsDA;CAtDA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA,8BAsDA;CAtDA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;;CAAA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;AAAA;;AAtDA;;CAAA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;AAAA;;AAtDA;;CAAA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;AAAA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA",sourcesContent:[":root {\n\t--gray00: #ffffff;\n\t--gray05: #f5f6f7;\n\t--gray10: #dfdfe2;\n\t--gray15: #d0d0d5;\n\t--gray45: #858591;\n\t--gray75: #3b3b4f;\n\t--gray80: #2a2a40;\n\t--gray85: #1b1b32;\n\t--gray90: #0a0a23;\n\n\t--purple10: #dbb8ff;\n\t--purple50: #9400d3;\n\t--purple90: #5a01a7;\n\n\t--yellow05: #fcf8e3;\n\t--yellow10: #faebcc;\n\t--yellow40: #ffc300;\n\t--yellow45: #ffbf00;\n\t--yellow50: #f1be32;\n\t--yellow70: #8a6d3b;\n\t--yellow90: #4d3800;\n\n\t--blue05: #d9edf7;\n\t--blue10: #bce8f1;\n\t--blue30: #99c9ff;\n\t--blue50: #198eee;\n\t--blue70: #31708f;\n\t--blue90: #002ead;\n\n\t/* These are blue30 and blue90 with an alpha value.\n\t\t The colors are in RGBA format instead of #RRGGBBAA\n\t\t in order to be compatible with older browsers. */\n\t--blue30-translucent: rgba(153, 201, 255, 0.3);\n\t--blue90-translucent: rgba(0, 46, 173, 0.3);\n\n\t--green05: #dff0d8;\n\t--green10: #d6e9c6;\n\t--green40: #acd157;\n\t--green70: #3c763d;\n\t--green90: #00471b;\n\n\t--red05: #f2dede;\n\t--red10: #ebccd1;\n\t--red15: #ffadad;\n\t--red30: #f8577c;\n\t--red70: #a94442;\n\t--red80: #f82153;\n\t--red90: #850000;\n}\n\n/* Export the variables in order to use them on the Color System Storybook page */\n:export {\n\t--gray00: var(--gray00);\n\t--gray05: var(--gray05);\n\t--gray10: var(--gray10);\n\t--gray15: var(--gray15);\n\t--gray45: var(--gray45);\n\t--gray75: var(--gray75);\n\t--gray80: var(--gray80);\n\t--gray85: var(--gray85);\n\t--gray90: var(--gray90);\n\n\t--purple10: var(--purple10);\n\t--purple50: var(--purple50);\n\t--purple90: var(--purple90);\n\n\t--yellow05: var(--yellow05);\n\t--yellow10: var(--yellow10);\n\t--yellow40: var(--yellow40);\n\t--yellow45: var(--yellow45);\n\t--yellow50: var(--yellow50);\n\t--yellow70: var(--yellow70);\n\t--yellow90: var(--yellow90);\n\n\t--blue05: var(--blue05);\n\t--blue10: var(--blue10);\n\t--blue30: var(--blue30);\n\t--blue50: var(--blue50);\n\t--blue70: var(--blue70);\n\t--blue90: var(--blue90);\n\n\t--green05: var(--green05);\n\t--green10: var(--green10);\n\t--green40: var(--green40);\n\t--green70: var(--green70);\n\t--green90: var(--green90);\n\n\t--red05: var(--red05);\n\t--red10: var(--red10);\n\t--red15: var(--red15);\n\t--red30: var(--red30);\n\t--red70: var(--red70);\n\t--red80: var(--red80);\n\t--red90: var(--red90);\n}\n\n.light-palette {\n\t--foreground-primary: var(--gray90);\n\t--foreground-secondary: var(--gray85);\n\t--foreground-tertiary: var(--gray80);\n\t--foreground-quaternary: var(--gray75);\n\t--foreground-danger: var(--red15);\n\t--foreground-success: var(--green40);\n\t--foreground-info: var(--blue30);\n\t--foreground-warning: var(--yellow45);\n\n\t--background-primary: var(--gray00);\n\t--background-secondary: var(--gray05);\n\t--background-tertiary: var(--gray10);\n\t--background-quaternary: var(--gray15);\n\t--background-danger: var(--red90);\n\t--background-success: var(--green90);\n\t--background-info: var(--blue90);\n\t--background-selection: var(--blue90-translucent);\n\n\t--focus-outline-color: var(--blue50);\n}\n\n.dark-palette {\n\t--foreground-primary: var(--gray00);\n\t--foreground-secondary: var(--gray05);\n\t--foreground-tertiary: var(--gray10);\n\t--foreground-quaternary: var(--gray15);\n\t--foreground-danger: var(--red90);\n\t--foreground-success: var(--green90);\n\t--foreground-info: var(--blue90);\n\t--foreground-warning: var(--yellow40);\n\n\t--background-primary: var(--gray90);\n\t--background-secondary: var(--gray85);\n\t--background-tertiary: var(--gray80);\n\t--background-quaternary: var(--gray75);\n\t--background-danger: var(--red15);\n\t--background-success: var(--green40);\n\t--background-info: var(--blue30);\n\t--background-selection: var(--blue30-translucent);\n\n\t--focus-outline-color: var(--blue50);\n}\n","@import \"./colors.css\";\n\n/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css */\n@tailwind base;\n\n@layer base {\n\thtml {\n\t\t@apply text-md;\n\t}\n\n\t:focus-visible {\n\t\t@apply outline outline-3 outline-focus-outline-color outline-offset-0;\n\t}\n\n\ta {\n\t\t/* Override Tailwind's default `text-decoration` rule. */\n\t\t/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css#L92 */\n\t\t@apply underline;\n\t\t/* This is required in order to improve text readability in Arabic */\n\t\ttext-underline-position: under;\n\t}\n\t@supports not (text-underline-position: under) {\n\t\ta {\n\t\t\ttext-underline-offset: 0.1em;\n\t\t}\n\t}\n\n\tcode {\n\t\t@apply bg-background-tertiary text-foreground-tertiary;\n\t}\n\t:not(pre) > code {\n\t\t@apply border-1 border-gray-450 px-[4px] py-[1px];\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tp {\n\t\tmargin-bottom: 12.5px;\n\t}\n\n\t/* Override the Tailwind's placeholder text color. */\n\t/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css#L335 */\n\tinput::placeholder,\n\ttextarea::placeholder {\n\t\t@apply text-foreground-quaternary opacity-80;\n\t}\n}\n\n@tailwind components;\n@tailwind utilities;\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[12].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.91.0_esbuild@0.23.0_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[12].use[2]!./src/fonts.css":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/runtime/api.js"),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/runtime/getUrl.js"),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__),___CSS_LOADER_URL_IMPORT_0___=new URL(__webpack_require__("./src/assets/fonts/lato/Lato-Light.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_1___=new URL(__webpack_require__("./src/assets/fonts/lato/Lato-Regular.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_2___=new URL(__webpack_require__("./src/assets/fonts/lato/Lato-Italic.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_3___=new URL(__webpack_require__("./src/assets/fonts/lato/Lato-Bold.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_4___=new URL(__webpack_require__("./src/assets/fonts/lato/Lato-Black.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_5___=new URL(__webpack_require__("./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Light.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_6___=new URL(__webpack_require__("./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Regular.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_7___=new URL(__webpack_require__("./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Bold.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_8___=new URL(__webpack_require__("./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Black.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_9___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff2"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_10___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_11___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff2"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_12___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_13___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff2"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_14___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff"),__webpack_require__.b),___CSS_LOADER_EXPORT___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()),___CSS_LOADER_URL_REPLACEMENT_0___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___),___CSS_LOADER_URL_REPLACEMENT_1___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_1___),___CSS_LOADER_URL_REPLACEMENT_2___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_2___),___CSS_LOADER_URL_REPLACEMENT_3___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_3___),___CSS_LOADER_URL_REPLACEMENT_4___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_4___),___CSS_LOADER_URL_REPLACEMENT_5___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_5___),___CSS_LOADER_URL_REPLACEMENT_6___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_6___),___CSS_LOADER_URL_REPLACEMENT_7___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_7___),___CSS_LOADER_URL_REPLACEMENT_8___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_8___),___CSS_LOADER_URL_REPLACEMENT_9___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_9___),___CSS_LOADER_URL_REPLACEMENT_10___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_10___),___CSS_LOADER_URL_REPLACEMENT_11___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_11___),___CSS_LOADER_URL_REPLACEMENT_12___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_12___),___CSS_LOADER_URL_REPLACEMENT_13___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_13___),___CSS_LOADER_URL_REPLACEMENT_14___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_14___);___CSS_LOADER_EXPORT___.push([module.id,`/* Lato */\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_0___}) format("woff");\n\tfont-weight: 300;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_1___}) format("woff");\n\tfont-weight: normal;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_2___}) format("woff");\n\tfont-weight: normal;\n\tfont-style: italic;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_3___}) format("woff");\n\tfont-weight: bold;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_4___}) format("woff");\n\tfont-weight: 900;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n/* NotoSansArabic */\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_5___})\n\t\tformat("woff");\n\tfont-weight: 300;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_6___})\n\t\tformat("woff");\n\tfont-weight: normal;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_7___})\n\t\tformat("woff");\n\tfont-weight: bold;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_8___})\n\t\tformat("woff");\n\tfont-weight: 900;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n/* hack zeroslash */\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_9___})\n\t\t\tformat("woff2"),\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_10___})\n\t\t\tformat("woff");\n}\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_11___})\n\t\t\tformat("woff2"),\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_12___}) format("woff");\n\tfont-weight: bold;\n}\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_13___})\n\t\t\tformat("woff2"),\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_14___})\n\t\t\tformat("woff");\n\tfont-style: italic;\n}\n`,"",{version:3,sources:["webpack://./src/fonts.css"],names:[],mappings:"AAAA,SAAS;;AAET;CACC,mBAAmB;CACnB,2DAA8D;CAC9D,gBAAgB;CAChB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,mBAAmB;CACnB,2DAAgE;CAChE,mBAAmB;CACnB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,mBAAmB;CACnB,2DAA+D;CAC/D,mBAAmB;CACnB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,mBAAmB;CACnB,2DAA6D;CAC7D,iBAAiB;CACjB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,mBAAmB;CACnB,2DAA8D;CAC9D,gBAAgB;CAChB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA,mBAAmB;;AAEnB;CACC,6BAA6B;CAC7B;gBACe;CACf,gBAAgB;CAChB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,6BAA6B;CAC7B;gBACe;CACf,mBAAmB;CACnB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,6BAA6B;CAC7B;gBACe;CACf,iBAAiB;CACjB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,6BAA6B;CAC7B;gBACe;CACf,gBAAgB;CAChB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA,mBAAmB;;AAEnB;CACC,6BAA6B;CAC7B;;;;iBAIgB;AACjB;;AAEA;CACC,6BAA6B;CAC7B;;;yDAG6E;CAC7E,iBAAiB;AAClB;;AAEA;CACC,6BAA6B;CAC7B;;;;iBAIgB;CAChB,kBAAkB;AACnB",sourcesContent:['/* Lato */\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url("./assets/fonts/lato/Lato-Light.woff") format("woff");\n\tfont-weight: 300;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url("./assets/fonts/lato/Lato-Regular.woff") format("woff");\n\tfont-weight: normal;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url("./assets/fonts/lato/Lato-Italic.woff") format("woff");\n\tfont-weight: normal;\n\tfont-style: italic;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url("./assets/fonts/lato/Lato-Bold.woff") format("woff");\n\tfont-weight: bold;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url("./assets/fonts/lato/Lato-Black.woff") format("woff");\n\tfont-weight: 900;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n/* NotoSansArabic */\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url("./assets/fonts/noto-sans-arabic/NotoSansArabic-Light.woff")\n\t\tformat("woff");\n\tfont-weight: 300;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url("./assets/fonts/noto-sans-arabic/NotoSansArabic-Regular.woff")\n\t\tformat("woff");\n\tfont-weight: normal;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url("./assets/fonts/noto-sans-arabic/NotoSansArabic-Bold.woff")\n\t\tformat("woff");\n\tfont-weight: bold;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url("./assets/fonts/noto-sans-arabic/NotoSansArabic-Black.woff")\n\t\tformat("woff");\n\tfont-weight: 900;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n/* hack zeroslash */\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff2")\n\t\t\tformat("woff2"),\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff")\n\t\t\tformat("woff");\n}\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff2")\n\t\t\tformat("woff2"),\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff") format("woff");\n\tfont-weight: bold;\n}\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff2")\n\t\t\tformat("woff2"),\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff")\n\t\t\tformat("woff");\n\tfont-style: italic;\n}\n'],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./introduction.mdx":["./src/introduction.mdx",529,525]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackAsyncContext},"./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.tsx)$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./alert/alert.stories":["./src/alert/alert.stories.tsx",590],"./alert/alert.stories.tsx":["./src/alert/alert.stories.tsx",590],"./button/button.stories":["./src/button/button.stories.tsx",16],"./button/button.stories.tsx":["./src/button/button.stories.tsx",16],"./callout/callout.stories":["./src/callout/callout.stories.tsx",470],"./callout/callout.stories.tsx":["./src/callout/callout.stories.tsx",470],"./close-button/close-button.stories":["./src/close-button/close-button.stories.tsx",974],"./close-button/close-button.stories.tsx":["./src/close-button/close-button.stories.tsx",974],"./col/col.stories":["./src/col/col.stories.tsx",850],"./col/col.stories.tsx":["./src/col/col.stories.tsx",850],"./color-system/color-system.stories":["./src/color-system/color-system.stories.tsx",414],"./color-system/color-system.stories.tsx":["./src/color-system/color-system.stories.tsx",414],"./container/container.stories":["./src/container/container.stories.tsx",846],"./container/container.stories.tsx":["./src/container/container.stories.tsx",846],"./control-label/control-label.stories":["./src/control-label/control-label.stories.tsx",94],"./control-label/control-label.stories.tsx":["./src/control-label/control-label.stories.tsx",94],"./drop-down/drop-down.stories":["./src/drop-down/drop-down.stories.tsx",210,886],"./drop-down/drop-down.stories.tsx":["./src/drop-down/drop-down.stories.tsx",210,886],"./form-control/form-control.stories":["./src/form-control/form-control.stories.tsx",412],"./form-control/form-control.stories.tsx":["./src/form-control/form-control.stories.tsx",412],"./form-group/form-group.stories":["./src/form-group/form-group.stories.tsx",396],"./form-group/form-group.stories.tsx":["./src/form-group/form-group.stories.tsx",396],"./help-block/help-block.stories":["./src/help-block/help-block.stories.tsx",694],"./help-block/help-block.stories.tsx":["./src/help-block/help-block.stories.tsx",694],"./image/image.stories":["./src/image/image.stories.tsx",150],"./image/image.stories.tsx":["./src/image/image.stories.tsx",150],"./link/link.stories":["./src/link/link.stories.tsx",540],"./link/link.stories.tsx":["./src/link/link.stories.tsx",540],"./modal/modal.stories":["./src/modal/modal.stories.tsx",2,862],"./modal/modal.stories.tsx":["./src/modal/modal.stories.tsx",2,862],"./panel/panel.stories":["./src/panel/panel.stories.tsx",762],"./panel/panel.stories.tsx":["./src/panel/panel.stories.tsx",762],"./prism-formatted/prism-formatted.stories":["./src/prism-formatted/prism-formatted.stories.tsx",852,481,378],"./prism-formatted/prism-formatted.stories.tsx":["./src/prism-formatted/prism-formatted.stories.tsx",852,481,378],"./quiz-question/quiz-question.stories":["./src/quiz-question/quiz-question.stories.tsx",210,852,481,302],"./quiz-question/quiz-question.stories.tsx":["./src/quiz-question/quiz-question.stories.tsx",210,852,481,302],"./quiz/quiz.stories":["./src/quiz/quiz.stories.tsx",210,852,481,226],"./quiz/quiz.stories.tsx":["./src/quiz/quiz.stories.tsx",210,852,481,226],"./row/row.stories":["./src/row/row.stories.tsx",802],"./row/row.stories.tsx":["./src/row/row.stories.tsx",802],"./spacer/spacer.stories":["./src/spacer/spacer.stories.tsx",628],"./spacer/spacer.stories.tsx":["./src/spacer/spacer.stories.tsx",628],"./table/table.stories":["./src/table/table.stories.tsx",465],"./table/table.stories.tsx":["./src/table/table.stories.tsx",465],"./tabs/tabs.stories":["./src/tabs/tabs.stories.tsx",236],"./tabs/tabs.stories.tsx":["./src/tabs/tabs.stories.tsx",236],"./toggle-button/toggle-button.stories":["./src/toggle-button/toggle-button.stories.tsx",381],"./toggle-button/toggle-button.stories.tsx":["./src/toggle-button/toggle-button.stories.tsx",381]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.tsx)$",module.exports=webpackAsyncContext},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Bold.c8ea19a8.woff"},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff2":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Bold.ceb133b6.woff2"},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Italic.678bc16b.woff"},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff2":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Italic.69f322d5.woff2"},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Regular.f67447de.woff"},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff2":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Regular.bf7335f4.woff2"},"./src/assets/fonts/lato/Lato-Black.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Lato-Black.efe7c183.woff"},"./src/assets/fonts/lato/Lato-Bold.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Lato-Bold.ba3a83ad.woff"},"./src/assets/fonts/lato/Lato-Italic.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Lato-Italic.251de5f4.woff"},"./src/assets/fonts/lato/Lato-Light.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Lato-Light.91308c02.woff"},"./src/assets/fonts/lato/Lato-Regular.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Lato-Regular.77ca2742.woff"},"./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Black.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/NotoSansArabic-Black.0c2f873d.woff"},"./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Bold.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/NotoSansArabic-Bold.b2991670.woff"},"./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Light.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/NotoSansArabic-Light.29c28f1c.woff"},"./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Regular.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/NotoSansArabic-Regular.d99c6e61.woff"},"storybook/internal/channels":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"storybook/internal/client-logger":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"storybook/internal/preview-errors":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"storybook/internal/core-events":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global":module=>{"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"storybook/internal/preview-api":module=>{"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__}},__webpack_require__=>{__webpack_require__.O(0,[978],(()=>{return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]); \ No newline at end of file +(self.webpackChunk_freecodecamp_ui=self.webpackChunk_freecodecamp_ui||[]).push([[792],{"./storybook-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/channels"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/internal/preview-api"),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global");const importers=[async path=>{if(!/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path))return;const pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$")("./"+pathRemainder)},async path=>{if(!/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.tsx)$/.exec(path))return;const pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.tsx)$")("./"+pathRemainder)}];const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb((async function importFn(path){for(let i=0;iimporters[i](path),x());if(moduleExports)return moduleExports}var x}),(()=>(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)([__webpack_require__("./node_modules/.pnpm/@storybook+react@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1__typescript@5.7.2/node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+react@8.4.6_react-dom@16.14.0_react@16.14.0__react@16.14.0_storybook@8.4.6_prettier@3.4.1__typescript@5.7.2/node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-links@8.4.6_react@16.14.0_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/addon-links/dist/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.6_@types+react@16.14.62_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/docs/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.6_@types+react@16.14.62_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/actions/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.6_@types+react@16.14.62_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.6_@types+react@16.14.62_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/viewport/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.6_@types+react@16.14.62_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/measure/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.6_@types+react@16.14.62_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/outline/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-essentials@8.4.6_@types+react@16.14.62_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs"),__webpack_require__("./node_modules/.pnpm/@storybook+addon-a11y@8.4.6_storybook@8.4.6_prettier@3.4.1_/node_modules/@storybook/addon-a11y/dist/preview.mjs"),__webpack_require__("./.storybook/preview.js")])));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./.storybook/preview.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{decorators:()=>decorators,parameters:()=>parameters});var react=__webpack_require__("./node_modules/.pnpm/react@16.14.0/node_modules/react/index.js"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.91.0_esbuild@0.23.0_/node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),base=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[12].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.91.0_esbuild@0.23.0_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[12].use[2]!./src/base.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(base.A,options);base.A&&base.A.locals&&base.A.locals;var fonts=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[12].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.91.0_esbuild@0.23.0_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[12].use[2]!./src/fonts.css"),fonts_options={};fonts_options.styleTagTransform=styleTagTransform_default(),fonts_options.setAttributes=setAttributesWithoutAttributes_default(),fonts_options.insert=insertBySelector_default().bind(null,"head"),fonts_options.domAPI=styleDomAPI_default(),fonts_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(fonts.A,fonts_options);fonts.A&&fonts.A.locals&&fonts.A.locals;const parameters={controls:{matchers:{color:/(background|color)$/i,date:/Date$/}},backgrounds:{default:"light-palette",values:[{name:"light-palette",value:"#f5f6f7"},{name:"dark-palette",value:"#1b1b32"}]}},decorators=[function renderTheme(Story,context){const selectedBackgroundValue=context.globals.backgrounds?.value,selectedBackgroundName=parameters.backgrounds.values.find((bg=>bg.value===selectedBackgroundValue))?.name;"light-palette"===(selectedBackgroundName||parameters.backgrounds.default)?(document.body.classList.remove("dark-palette"),document.body.classList.add("light-palette")):(document.body.classList.remove("light-palette"),document.body.classList.add("dark-palette"));return react.createElement(Story,null)}]},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[12].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.91.0_esbuild@0.23.0_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[12].use[2]!./src/base.css":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,":root {\n\t--gray00: #ffffff;\n\t--gray05: #f5f6f7;\n\t--gray10: #dfdfe2;\n\t--gray15: #d0d0d5;\n\t--gray45: #858591;\n\t--gray75: #3b3b4f;\n\t--gray80: #2a2a40;\n\t--gray85: #1b1b32;\n\t--gray90: #0a0a23;\n\n\t--purple10: #dbb8ff;\n\t--purple50: #9400d3;\n\t--purple90: #5a01a7;\n\n\t--yellow05: #fcf8e3;\n\t--yellow10: #faebcc;\n\t--yellow40: #ffc300;\n\t--yellow45: #ffbf00;\n\t--yellow50: #f1be32;\n\t--yellow70: #8a6d3b;\n\t--yellow90: #4d3800;\n\n\t--blue05: #d9edf7;\n\t--blue10: #bce8f1;\n\t--blue30: #99c9ff;\n\t--blue50: #198eee;\n\t--blue70: #31708f;\n\t--blue90: #002ead;\n\n\t/* These are blue30 and blue90 with an alpha value.\n\t\t The colors are in RGBA format instead of #RRGGBBAA\n\t\t in order to be compatible with older browsers. */\n\t--blue30-translucent: rgba(153, 201, 255, 0.3);\n\t--blue90-translucent: rgba(0, 46, 173, 0.3);\n\n\t--green05: #dff0d8;\n\t--green10: #d6e9c6;\n\t--green40: #acd157;\n\t--green70: #3c763d;\n\t--green90: #00471b;\n\n\t--red05: #f2dede;\n\t--red10: #ebccd1;\n\t--red15: #ffadad;\n\t--red30: #f8577c;\n\t--red70: #a94442;\n\t--red80: #f82153;\n\t--red90: #850000;\n}\n\n/* Export the variables in order to use them on the Color System Storybook page */\n\n:export {\n\t--gray00: var(--gray00);\n\t--gray05: var(--gray05);\n\t--gray10: var(--gray10);\n\t--gray15: var(--gray15);\n\t--gray45: var(--gray45);\n\t--gray75: var(--gray75);\n\t--gray80: var(--gray80);\n\t--gray85: var(--gray85);\n\t--gray90: var(--gray90);\n\n\t--purple10: var(--purple10);\n\t--purple50: var(--purple50);\n\t--purple90: var(--purple90);\n\n\t--yellow05: var(--yellow05);\n\t--yellow10: var(--yellow10);\n\t--yellow40: var(--yellow40);\n\t--yellow45: var(--yellow45);\n\t--yellow50: var(--yellow50);\n\t--yellow70: var(--yellow70);\n\t--yellow90: var(--yellow90);\n\n\t--blue05: var(--blue05);\n\t--blue10: var(--blue10);\n\t--blue30: var(--blue30);\n\t--blue50: var(--blue50);\n\t--blue70: var(--blue70);\n\t--blue90: var(--blue90);\n\n\t--green05: var(--green05);\n\t--green10: var(--green10);\n\t--green40: var(--green40);\n\t--green70: var(--green70);\n\t--green90: var(--green90);\n\n\t--red05: var(--red05);\n\t--red10: var(--red10);\n\t--red15: var(--red15);\n\t--red30: var(--red30);\n\t--red70: var(--red70);\n\t--red80: var(--red80);\n\t--red90: var(--red90);\n}\n\n.light-palette {\n\t--foreground-primary: var(--gray90);\n\t--foreground-secondary: var(--gray85);\n\t--foreground-tertiary: var(--gray80);\n\t--foreground-quaternary: var(--gray75);\n\t--foreground-danger: var(--red15);\n\t--foreground-success: var(--green40);\n\t--foreground-info: var(--blue30);\n\t--foreground-warning: var(--yellow45);\n\n\t--background-primary: var(--gray00);\n\t--background-secondary: var(--gray05);\n\t--background-tertiary: var(--gray10);\n\t--background-quaternary: var(--gray15);\n\t--background-danger: var(--red90);\n\t--background-success: var(--green90);\n\t--background-info: var(--blue90);\n\t--background-selection: var(--blue90-translucent);\n\n\t--focus-outline-color: var(--blue50);\n}\n\n.dark-palette {\n\t--foreground-primary: var(--gray00);\n\t--foreground-secondary: var(--gray05);\n\t--foreground-tertiary: var(--gray10);\n\t--foreground-quaternary: var(--gray15);\n\t--foreground-danger: var(--red90);\n\t--foreground-success: var(--green90);\n\t--foreground-info: var(--blue90);\n\t--foreground-warning: var(--yellow40);\n\n\t--background-primary: var(--gray90);\n\t--background-secondary: var(--gray85);\n\t--background-tertiary: var(--gray80);\n\t--background-quaternary: var(--gray75);\n\t--background-danger: var(--red15);\n\t--background-success: var(--green40);\n\t--background-info: var(--blue30);\n\t--background-selection: var(--blue30-translucent);\n\n\t--focus-outline-color: var(--blue50);\n}\n\n/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css */\n\n*, ::before, ::after {\n\t--tw-border-spacing-x: 0;\n\t--tw-border-spacing-y: 0;\n\t--tw-translate-x: 0;\n\t--tw-translate-y: 0;\n\t--tw-rotate: 0;\n\t--tw-skew-x: 0;\n\t--tw-skew-y: 0;\n\t--tw-scale-x: 1;\n\t--tw-scale-y: 1;\n\t--tw-pan-x: ;\n\t--tw-pan-y: ;\n\t--tw-pinch-zoom: ;\n\t--tw-scroll-snap-strictness: proximity;\n\t--tw-gradient-from-position: ;\n\t--tw-gradient-via-position: ;\n\t--tw-gradient-to-position: ;\n\t--tw-ordinal: ;\n\t--tw-slashed-zero: ;\n\t--tw-numeric-figure: ;\n\t--tw-numeric-spacing: ;\n\t--tw-numeric-fraction: ;\n\t--tw-ring-inset: ;\n\t--tw-ring-offset-width: 0px;\n\t--tw-ring-offset-color: #fff;\n\t--tw-ring-color: rgb(147 197 253 / 0.5);\n\t--tw-ring-offset-shadow: 0 0 #0000;\n\t--tw-ring-shadow: 0 0 #0000;\n\t--tw-shadow: 0 0 #0000;\n\t--tw-shadow-colored: 0 0 #0000;\n\t--tw-blur: ;\n\t--tw-brightness: ;\n\t--tw-contrast: ;\n\t--tw-grayscale: ;\n\t--tw-hue-rotate: ;\n\t--tw-invert: ;\n\t--tw-saturate: ;\n\t--tw-sepia: ;\n\t--tw-drop-shadow: ;\n\t--tw-backdrop-blur: ;\n\t--tw-backdrop-brightness: ;\n\t--tw-backdrop-contrast: ;\n\t--tw-backdrop-grayscale: ;\n\t--tw-backdrop-hue-rotate: ;\n\t--tw-backdrop-invert: ;\n\t--tw-backdrop-opacity: ;\n\t--tw-backdrop-saturate: ;\n\t--tw-backdrop-sepia: ;\n\t--tw-contain-size: ;\n\t--tw-contain-layout: ;\n\t--tw-contain-paint: ;\n\t--tw-contain-style: ;\n}\n\n::backdrop {\n\t--tw-border-spacing-x: 0;\n\t--tw-border-spacing-y: 0;\n\t--tw-translate-x: 0;\n\t--tw-translate-y: 0;\n\t--tw-rotate: 0;\n\t--tw-skew-x: 0;\n\t--tw-skew-y: 0;\n\t--tw-scale-x: 1;\n\t--tw-scale-y: 1;\n\t--tw-pan-x: ;\n\t--tw-pan-y: ;\n\t--tw-pinch-zoom: ;\n\t--tw-scroll-snap-strictness: proximity;\n\t--tw-gradient-from-position: ;\n\t--tw-gradient-via-position: ;\n\t--tw-gradient-to-position: ;\n\t--tw-ordinal: ;\n\t--tw-slashed-zero: ;\n\t--tw-numeric-figure: ;\n\t--tw-numeric-spacing: ;\n\t--tw-numeric-fraction: ;\n\t--tw-ring-inset: ;\n\t--tw-ring-offset-width: 0px;\n\t--tw-ring-offset-color: #fff;\n\t--tw-ring-color: rgb(147 197 253 / 0.5);\n\t--tw-ring-offset-shadow: 0 0 #0000;\n\t--tw-ring-shadow: 0 0 #0000;\n\t--tw-shadow: 0 0 #0000;\n\t--tw-shadow-colored: 0 0 #0000;\n\t--tw-blur: ;\n\t--tw-brightness: ;\n\t--tw-contrast: ;\n\t--tw-grayscale: ;\n\t--tw-hue-rotate: ;\n\t--tw-invert: ;\n\t--tw-saturate: ;\n\t--tw-sepia: ;\n\t--tw-drop-shadow: ;\n\t--tw-backdrop-blur: ;\n\t--tw-backdrop-brightness: ;\n\t--tw-backdrop-contrast: ;\n\t--tw-backdrop-grayscale: ;\n\t--tw-backdrop-hue-rotate: ;\n\t--tw-backdrop-invert: ;\n\t--tw-backdrop-opacity: ;\n\t--tw-backdrop-saturate: ;\n\t--tw-backdrop-sepia: ;\n\t--tw-contain-size: ;\n\t--tw-contain-layout: ;\n\t--tw-contain-paint: ;\n\t--tw-contain-style: ;\n}\n\n/* ! tailwindcss v3.4.15 | MIT License | https://tailwindcss.com */\n\n/*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: Lato, sans-serif; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: Hack-ZeroSlash, monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\n\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n\n[hidden]:where(:not([hidden=\"until-found\"])) {\n display: none;\n}\n\nhtml {\n\tfont-size: 18px;\n\tline-height: 1.42857143;\n}\n\n:focus-visible {\n\toutline-style: solid;\n\toutline-width: 3px;\n\toutline-offset: 0px;\n\toutline-color: var(--focus-outline-color);\n}\n\na {\n\t\t/* Override Tailwind's default `text-decoration` rule. */\n\t\t/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css#L92 */\n\t\ttext-decoration-line: underline;\n\t\t/* This is required in order to improve text readability in Arabic */\n\t\ttext-underline-position: under;\n\t}\n\n@supports not (text-underline-position: under) {\n\t\ta {\n\t\t\ttext-underline-offset: 0.1em;\n\t\t}\n\t}\n\ncode {\n\tbackground-color: var(--background-tertiary);\n\tcolor: var(--foreground-tertiary);\n}\n\n:not(pre) > code {\n\tborder-width: 1px;\n\tborder-color: var(--gray45);\n\tpadding-left: 4px;\n\tpadding-right: 4px;\n\tpadding-top: 1px;\n\tpadding-bottom: 1px;\n}\n\nh1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tp {\n\t\tmargin-bottom: 12.5px;\n\t}\n\n/* Override the Tailwind's placeholder text color. */\n\n/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css#L335 */\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n\tcolor: var(--foreground-quaternary);\n\topacity: 0.8;\n}\n\ninput::placeholder,\n\ttextarea::placeholder {\n\tcolor: var(--foreground-quaternary);\n\topacity: 0.8;\n}\n\n.container {\n\twidth: 100%;\n}\n\n@media (min-width: 640px) {\n\n\t.container {\n\t\tmax-width: 640px;\n\t}\n}\n\n@media (min-width: 768px) {\n\n\t.container {\n\t\tmax-width: 768px;\n\t}\n}\n\n@media (min-width: 1024px) {\n\n\t.container {\n\t\tmax-width: 1024px;\n\t}\n}\n\n@media (min-width: 1280px) {\n\n\t.container {\n\t\tmax-width: 1280px;\n\t}\n}\n\n@media (min-width: 1536px) {\n\n\t.container {\n\t\tmax-width: 1536px;\n\t}\n}\n\n.sr-only {\n\tposition: absolute;\n\twidth: 1px;\n\theight: 1px;\n\tpadding: 0;\n\tmargin: -1px;\n\toverflow: hidden;\n\tclip: rect(0, 0, 0, 0);\n\twhite-space: nowrap;\n\tborder-width: 0;\n}\n\n.pointer-events-none {\n\tpointer-events: none;\n}\n\n.fixed {\n\tposition: fixed;\n}\n\n.absolute {\n\tposition: absolute;\n}\n\n.relative {\n\tposition: relative;\n}\n\n.inset-0 {\n\tinset: 0px;\n}\n\n.right-0 {\n\tright: 0px;\n}\n\n.top-0 {\n\ttop: 0px;\n}\n\n.top-\\[30px\\] {\n\ttop: 30px;\n}\n\n.z-10 {\n\tz-index: 10;\n}\n\n.z-1050 {\n\tz-index: 1050;\n}\n\n.z-2 {\n\tz-index: 2;\n}\n\n.m-0 {\n\tmargin: 0px;\n}\n\n.m-4 {\n\tmargin: 1rem;\n}\n\n.mx-2 {\n\tmargin-left: 0.5rem;\n\tmargin-right: 0.5rem;\n}\n\n.mx-\\[-15px\\] {\n\tmargin-left: -15px;\n\tmargin-right: -15px;\n}\n\n.mx-auto {\n\tmargin-left: auto;\n\tmargin-right: auto;\n}\n\n.my-0 {\n\tmargin-top: 0px;\n\tmargin-bottom: 0px;\n}\n\n.mb-0 {\n\tmargin-bottom: 0px;\n}\n\n.mb-2 {\n\tmargin-bottom: 0.5rem;\n}\n\n.mb-3\\.5 {\n\tmargin-bottom: 0.875rem;\n}\n\n.mb-6 {\n\tmargin-bottom: 1.5rem;\n}\n\n.mb-\\[0\\.6rem\\] {\n\tmargin-bottom: 0.6rem;\n}\n\n.mb-\\[20px\\] {\n\tmargin-bottom: 20px;\n}\n\n.me-\\[15px\\] {\n\tmargin-inline-end: 15px;\n}\n\n.me-\\[8px\\] {\n\tmargin-inline-end: 8px;\n}\n\n.ml-\\[-3px\\] {\n\tmargin-left: -3px;\n}\n\n.ml-\\[16\\.6\\%\\] {\n\tmargin-left: 16.6%;\n}\n\n.ml-\\[25\\%\\] {\n\tmargin-left: 25%;\n}\n\n.ml-\\[8\\.3\\%\\] {\n\tmargin-left: 8.3%;\n}\n\n.mt-0 {\n\tmargin-top: 0px;\n}\n\n.mt-1 {\n\tmargin-top: 0.25rem;\n}\n\n.mt-\\[0\\.5px\\] {\n\tmargin-top: 0.5px;\n}\n\n.block {\n\tdisplay: block;\n}\n\n.inline-block {\n\tdisplay: inline-block;\n}\n\n.flex {\n\tdisplay: flex;\n}\n\n.inline-flex {\n\tdisplay: inline-flex;\n}\n\n.table {\n\tdisplay: table;\n}\n\n.h-0 {\n\theight: 0px;\n}\n\n.h-3 {\n\theight: 0.75rem;\n}\n\n.h-8 {\n\theight: 2rem;\n}\n\n.h-\\[10px\\] {\n\theight: 10px;\n}\n\n.h-\\[180px\\] {\n\theight: 180px;\n}\n\n.h-\\[20px\\] {\n\theight: 20px;\n}\n\n.h-\\[24px\\] {\n\theight: 24px;\n}\n\n.h-\\[30px\\] {\n\theight: 30px;\n}\n\n.h-\\[5px\\] {\n\theight: 5px;\n}\n\n.h-\\[60px\\] {\n\theight: 60px;\n}\n\n.h-\\[90px\\] {\n\theight: 90px;\n}\n\n.h-screen {\n\theight: 100vh;\n}\n\n.min-h-43-px {\n\tmin-height: 43px;\n}\n\n.min-h-\\[1px\\] {\n\tmin-height: 1px;\n}\n\n.w-0 {\n\twidth: 0px;\n}\n\n.w-1\\/2 {\n\twidth: 50%;\n}\n\n.w-2\\/3 {\n\twidth: 66.666667%;\n}\n\n.w-3\\/12 {\n\twidth: 25%;\n}\n\n.w-5\\/6 {\n\twidth: 83.333333%;\n}\n\n.w-8 {\n\twidth: 2rem;\n}\n\n.w-\\[20px\\] {\n\twidth: 20px;\n}\n\n.w-\\[24px\\] {\n\twidth: 24px;\n}\n\n.w-\\[600px\\] {\n\twidth: 600px;\n}\n\n.w-\\[900px\\] {\n\twidth: 900px;\n}\n\n.w-\\[95vw\\] {\n\twidth: 95vw;\n}\n\n.w-full {\n\twidth: 100%;\n}\n\n.w-screen {\n\twidth: 100vw;\n}\n\n.min-w-max {\n\tmin-width: -moz-max-content;\n\tmin-width: max-content;\n}\n\n.max-w-full {\n\tmax-width: 100%;\n}\n\n.max-w-none {\n\tmax-width: none;\n}\n\n.flex-1 {\n\tflex: 1 1 0%;\n}\n\n.shrink-0 {\n\tflex-shrink: 0;\n}\n\n.table-auto {\n\ttable-layout: auto;\n}\n\n.border-collapse {\n\tborder-collapse: collapse;\n}\n\n.origin-top-right {\n\ttransform-origin: top right;\n}\n\n.-translate-y-1\\/4 {\n\t--tw-translate-y: -25%;\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.-translate-y-full {\n\t--tw-translate-y: -100%;\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.translate-y-0 {\n\t--tw-translate-y: 0px;\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.transform {\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.cursor-default {\n\tcursor: default;\n}\n\n.cursor-pointer {\n\tcursor: pointer;\n}\n\n.touch-manipulation {\n\ttouch-action: manipulation;\n}\n\n.list-none {\n\tlist-style-type: none;\n}\n\n.flex-col {\n\tflex-direction: column;\n}\n\n.items-start {\n\talign-items: flex-start;\n}\n\n.items-center {\n\talign-items: center;\n}\n\n.justify-end {\n\tjustify-content: flex-end;\n}\n\n.justify-center {\n\tjustify-content: center;\n}\n\n.justify-between {\n\tjustify-content: space-between;\n}\n\n.gap-y-\\[48px\\] {\n\trow-gap: 48px;\n}\n\n.overflow-scroll {\n\toverflow: scroll;\n}\n\n.break-words {\n\toverflow-wrap: break-word;\n}\n\n.rounded-full {\n\tborder-radius: 9999px;\n}\n\n.rounded-none {\n\tborder-radius: 0px;\n}\n\n.border {\n\tborder-width: 1px;\n}\n\n.border-1 {\n\tborder-width: 1px;\n}\n\n.border-2 {\n\tborder-width: 2px;\n}\n\n.border-3 {\n\tborder-width: 3px;\n}\n\n.border-x-4 {\n\tborder-left-width: 4px;\n\tborder-right-width: 4px;\n}\n\n.border-b-1 {\n\tborder-bottom-width: 1px;\n}\n\n.border-b-\\[1px\\] {\n\tborder-bottom-width: 1px;\n}\n\n.border-t-4 {\n\tborder-top-width: 4px;\n}\n\n.border-solid {\n\tborder-style: solid;\n}\n\n.border-none {\n\tborder-style: none;\n}\n\n.border-background-quaternary {\n\tborder-color: var(--background-quaternary);\n}\n\n.border-background-tertiary {\n\tborder-color: var(--background-tertiary);\n}\n\n.border-blue-100 {\n\tborder-color: var(--blue10);\n}\n\n.border-blue-700 {\n\tborder-color: var(--blue70);\n}\n\n.border-foreground-danger {\n\tborder-color: var(--foreground-danger);\n}\n\n.border-foreground-info {\n\tborder-color: var(--foreground-info);\n}\n\n.border-foreground-primary {\n\tborder-color: var(--foreground-primary);\n}\n\n.border-foreground-quaternary {\n\tborder-color: var(--foreground-quaternary);\n}\n\n.border-foreground-secondary {\n\tborder-color: var(--foreground-secondary);\n}\n\n.border-gray-450 {\n\tborder-color: var(--gray45);\n}\n\n.border-green-100 {\n\tborder-color: var(--green10);\n}\n\n.border-green-700 {\n\tborder-color: var(--green70);\n}\n\n.border-red-100 {\n\tborder-color: var(--red10);\n}\n\n.border-red-700 {\n\tborder-color: var(--red70);\n}\n\n.border-yellow-100 {\n\tborder-color: var(--yellow10);\n}\n\n.border-yellow-700 {\n\tborder-color: var(--yellow70);\n}\n\n.border-l-background-danger {\n\tborder-left-color: var(--background-danger);\n}\n\n.border-l-background-success {\n\tborder-left-color: var(--background-success);\n}\n\n.bg-background-danger {\n\tbackground-color: var(--background-danger);\n}\n\n.bg-background-info {\n\tbackground-color: var(--background-info);\n}\n\n.bg-background-primary {\n\tbackground-color: var(--background-primary);\n}\n\n.bg-background-quaternary {\n\tbackground-color: var(--background-quaternary);\n}\n\n.bg-background-secondary {\n\tbackground-color: var(--background-secondary);\n}\n\n.bg-blue-50 {\n\tbackground-color: var(--blue05);\n}\n\n.bg-foreground-danger {\n\tbackground-color: var(--foreground-danger);\n}\n\n.bg-foreground-info {\n\tbackground-color: var(--foreground-info);\n}\n\n.bg-foreground-primary {\n\tbackground-color: var(--foreground-primary);\n}\n\n.bg-foreground-secondary {\n\tbackground-color: var(--foreground-secondary);\n}\n\n.bg-gray-700 {\n\t--tw-bg-opacity: 1;\n\tbackground-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));\n}\n\n.bg-gray-900 {\n\tbackground-color: var(--gray90);\n}\n\n.bg-green-50 {\n\tbackground-color: var(--green05);\n}\n\n.bg-red-50 {\n\tbackground-color: var(--red05);\n}\n\n.bg-transparent {\n\tbackground-color: transparent;\n}\n\n.bg-yellow-50 {\n\tbackground-color: var(--yellow05);\n}\n\n.bg-none {\n\tbackground-image: none;\n}\n\n.p-2 {\n\tpadding: 0.5rem;\n}\n\n.p-3\\.5 {\n\tpadding: 0.875rem;\n}\n\n.p-4 {\n\tpadding: 1rem;\n}\n\n.p-\\[10px\\] {\n\tpadding: 10px;\n}\n\n.p-\\[15px\\] {\n\tpadding: 15px;\n}\n\n.p-\\[20px\\] {\n\tpadding: 20px;\n}\n\n.px-0 {\n\tpadding-left: 0px;\n\tpadding-right: 0px;\n}\n\n.px-2\\.5 {\n\tpadding-left: 0.625rem;\n\tpadding-right: 0.625rem;\n}\n\n.px-3 {\n\tpadding-left: 0.75rem;\n\tpadding-right: 0.75rem;\n}\n\n.px-3\\.5 {\n\tpadding-left: 0.875rem;\n\tpadding-right: 0.875rem;\n}\n\n.px-4 {\n\tpadding-left: 1rem;\n\tpadding-right: 1rem;\n}\n\n.px-5 {\n\tpadding-left: 1.25rem;\n\tpadding-right: 1.25rem;\n}\n\n.px-6 {\n\tpadding-left: 1.5rem;\n\tpadding-right: 1.5rem;\n}\n\n.px-8 {\n\tpadding-left: 2rem;\n\tpadding-right: 2rem;\n}\n\n.px-\\[15px\\] {\n\tpadding-left: 15px;\n\tpadding-right: 15px;\n}\n\n.py-1 {\n\tpadding-top: 0.25rem;\n\tpadding-bottom: 0.25rem;\n}\n\n.py-1\\.5 {\n\tpadding-top: 0.375rem;\n\tpadding-bottom: 0.375rem;\n}\n\n.py-2\\.5 {\n\tpadding-top: 0.625rem;\n\tpadding-bottom: 0.625rem;\n}\n\n.py-\\[5px\\] {\n\tpadding-top: 5px;\n\tpadding-bottom: 5px;\n}\n\n.pb-\\[20px\\] {\n\tpadding-bottom: 20px;\n}\n\n.pl-0 {\n\tpadding-left: 0px;\n}\n\n.ps-\\[20px\\] {\n\tpadding-inline-start: 20px;\n}\n\n.text-center {\n\ttext-align: center;\n}\n\n.text-start {\n\ttext-align: start;\n}\n\n.text-lg {\n\tfont-size: 24px;\n\tline-height: 1.3333333;\n}\n\n.text-md {\n\tfont-size: 18px;\n\tline-height: 1.42857143;\n}\n\n.text-sm {\n\tfont-size: 16px;\n\tline-height: 1.5;\n}\n\n.text-xl {\n\tfont-size: 1.25rem;\n\tline-height: 1.75rem;\n}\n\n.font-bold {\n\tfont-weight: 700;\n}\n\n.leading-8 {\n\tline-height: 2rem;\n}\n\n.text-background-danger {\n\tcolor: var(--background-danger);\n}\n\n.text-background-info {\n\tcolor: var(--background-info);\n}\n\n.text-background-primary {\n\tcolor: var(--background-primary);\n}\n\n.text-background-secondary {\n\tcolor: var(--background-secondary);\n}\n\n.text-background-success {\n\tcolor: var(--background-success);\n}\n\n.text-blue-700 {\n\tcolor: var(--blue70);\n}\n\n.text-foreground-danger {\n\tcolor: var(--foreground-danger);\n}\n\n.text-foreground-info {\n\tcolor: var(--foreground-info);\n}\n\n.text-foreground-primary {\n\tcolor: var(--foreground-primary);\n}\n\n.text-foreground-quaternary {\n\tcolor: var(--foreground-quaternary);\n}\n\n.text-foreground-secondary {\n\tcolor: var(--foreground-secondary);\n}\n\n.text-foreground-tertiary {\n\tcolor: var(--foreground-tertiary);\n}\n\n.text-green-700 {\n\tcolor: var(--green70);\n}\n\n.text-inherit {\n\tcolor: inherit;\n}\n\n.text-red-700 {\n\tcolor: var(--red70);\n}\n\n.text-yellow-700 {\n\tcolor: var(--yellow70);\n}\n\n.no-underline {\n\ttext-decoration-line: none;\n}\n\n.opacity-0 {\n\topacity: 0;\n}\n\n.opacity-100 {\n\topacity: 1;\n}\n\n.opacity-50 {\n\topacity: 0.5;\n}\n\n.shadow-none {\n\t--tw-shadow: 0 0 #0000;\n\t--tw-shadow-colored: 0 0 #0000;\n\tbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.shadow-sm {\n\t--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n\t--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n\tbox-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.outline {\n\toutline-style: solid;\n}\n\n.outline-0 {\n\toutline-width: 0px;\n}\n\n.outline-3 {\n\toutline-width: 3px;\n}\n\n.outline-\\[1px\\] {\n\toutline-width: 1px;\n}\n\n.outline-offset-2 {\n\toutline-offset: 2px;\n}\n\n.outline-offset-\\[-3px\\] {\n\toutline-offset: -3px;\n}\n\n.outline-background-tertiary {\n\toutline-color: var(--background-tertiary);\n}\n\n.outline-blue-500 {\n\toutline-color: var(--blue50);\n}\n\n.outline-focus-outline-color {\n\toutline-color: var(--focus-outline-color);\n}\n\n.outline-foreground-primary {\n\toutline-color: var(--foreground-primary);\n}\n\n.filter {\n\tfilter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n\n.transition {\n\ttransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n\ttransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\ttransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n\ttransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\ttransition-duration: 150ms;\n}\n\n.transition-all {\n\ttransition-property: all;\n\ttransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\ttransition-duration: 150ms;\n}\n\n.duration-150 {\n\ttransition-duration: 150ms;\n}\n\n.duration-300 {\n\ttransition-duration: 300ms;\n}\n\n.ease-in-out {\n\ttransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.ease-out {\n\ttransition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n\n.before\\:absolute::before {\n\tcontent: var(--tw-content);\n\tposition: absolute;\n}\n\n.before\\:start-1\\/2::before {\n\tcontent: var(--tw-content);\n\tinset-inline-start: 50%;\n}\n\n.before\\:top-1\\/2::before {\n\tcontent: var(--tw-content);\n\ttop: 50%;\n}\n\n.before\\:h-\\[10px\\]::before {\n\tcontent: var(--tw-content);\n\theight: 10px;\n}\n\n.before\\:w-\\[10px\\]::before {\n\tcontent: var(--tw-content);\n\twidth: 10px;\n}\n\n.before\\:-translate-x-1\\/2::before {\n\tcontent: var(--tw-content);\n\t--tw-translate-x: -50%;\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.before\\:-translate-y-1\\/2::before {\n\tcontent: var(--tw-content);\n\t--tw-translate-y: -50%;\n\ttransform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.before\\:rounded-full::before {\n\tcontent: var(--tw-content);\n\tborder-radius: 9999px;\n}\n\n.before\\:bg-foreground-primary::before {\n\tcontent: var(--tw-content);\n\tbackground-color: var(--foreground-primary);\n}\n\n.first\\:ml-0:first-child {\n\tmargin-left: 0px;\n}\n\n.last\\:border-b-4:last-child {\n\tborder-bottom-width: 4px;\n}\n\n.focus-within\\:ring:focus-within {\n\t--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\t--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\tbox-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n\n.focus-within\\:ring-focus-outline-color:focus-within {\n\t--tw-ring-color: var(--focus-outline-color);\n}\n\n.hover\\:border-foreground-danger:hover {\n\tborder-color: var(--foreground-danger);\n}\n\n.hover\\:border-foreground-info:hover {\n\tborder-color: var(--foreground-info);\n}\n\n.hover\\:border-foreground-secondary:hover {\n\tborder-color: var(--foreground-secondary);\n}\n\n.hover\\:bg-background-quaternary:hover {\n\tbackground-color: var(--background-quaternary);\n}\n\n.hover\\:bg-background-secondary:hover {\n\tbackground-color: var(--background-secondary);\n}\n\n.hover\\:bg-background-tertiary:hover {\n\tbackground-color: var(--background-tertiary);\n}\n\n.hover\\:bg-foreground-danger:hover {\n\tbackground-color: var(--foreground-danger);\n}\n\n.hover\\:bg-foreground-info:hover {\n\tbackground-color: var(--foreground-info);\n}\n\n.hover\\:bg-foreground-primary:hover {\n\tbackground-color: var(--foreground-primary);\n}\n\n.hover\\:bg-foreground-secondary:hover {\n\tbackground-color: var(--foreground-secondary);\n}\n\n.hover\\:text-background-danger:hover {\n\tcolor: var(--background-danger);\n}\n\n.hover\\:text-background-info:hover {\n\tcolor: var(--background-info);\n}\n\n.hover\\:text-background-primary:hover {\n\tcolor: var(--background-primary);\n}\n\n.hover\\:text-background-secondary:hover {\n\tcolor: var(--background-secondary);\n}\n\n.hover\\:text-foreground-secondary:hover {\n\tcolor: var(--foreground-secondary);\n}\n\n.hover\\:text-opacity-100:hover {\n\t--tw-text-opacity: 1;\n}\n\n.hover\\:no-underline:hover {\n\ttext-decoration-line: none;\n}\n\n.hover\\:opacity-100:hover {\n\topacity: 1;\n}\n\n.focus\\:border-foreground-tertiary:focus {\n\tborder-color: var(--foreground-tertiary);\n}\n\n.focus\\:bg-background-secondary:focus {\n\tbackground-color: var(--background-secondary);\n}\n\n.focus\\:text-foreground-secondary:focus {\n\tcolor: var(--foreground-secondary);\n}\n\n.focus\\:text-opacity-100:focus {\n\t--tw-text-opacity: 1;\n}\n\n.focus\\:opacity-100:focus {\n\topacity: 1;\n}\n\n.focus\\:outline-none:focus {\n\toutline: 2px solid transparent;\n\toutline-offset: 2px;\n}\n\n.focus\\:outline-transparent:focus {\n\toutline-color: transparent;\n}\n\n.active\\:before\\:absolute:active::before {\n\tcontent: var(--tw-content);\n\tposition: absolute;\n}\n\n.active\\:before\\:inset-0:active::before {\n\tcontent: var(--tw-content);\n\tinset: 0px;\n}\n\n.active\\:before\\:hidden:active::before {\n\tcontent: var(--tw-content);\n\tdisplay: none;\n}\n\n.active\\:before\\:h-full:active::before {\n\tcontent: var(--tw-content);\n\theight: 100%;\n}\n\n.active\\:before\\:w-full:active::before {\n\tcontent: var(--tw-content);\n\twidth: 100%;\n}\n\n.active\\:before\\:border-3:active::before {\n\tcontent: var(--tw-content);\n\tborder-width: 3px;\n}\n\n.active\\:before\\:border-transparent:active::before {\n\tcontent: var(--tw-content);\n\tborder-color: transparent;\n}\n\n.active\\:before\\:bg-gray-900:active::before {\n\tcontent: var(--tw-content);\n\tbackground-color: var(--gray90);\n}\n\n.active\\:before\\:opacity-20:active::before {\n\tcontent: var(--tw-content);\n\topacity: 0.2;\n}\n\n.aria-selected\\:bg-foreground-quaternary[aria-selected=\"true\"] {\n\tbackground-color: var(--foreground-quaternary);\n}\n\n.aria-selected\\:font-bold[aria-selected=\"true\"] {\n\tfont-weight: 700;\n}\n\n.aria-selected\\:text-background-secondary[aria-selected=\"true\"] {\n\tcolor: var(--background-secondary);\n}\n\n.aria-disabled\\:cursor-not-allowed[aria-disabled=\"true\"] {\n\tcursor: not-allowed;\n}\n\n.aria-disabled\\:opacity-50[aria-disabled=\"true\"] {\n\topacity: 0.5;\n}\n\n.aria-disabled\\:opacity-80[aria-disabled=\"true\"] {\n\topacity: 0.8;\n}\n\n.dark\\:hover\\:bg-background-danger:hover:is(.dark *) {\n\tbackground-color: var(--background-danger);\n}\n\n.dark\\:hover\\:bg-background-info:hover:is(.dark *) {\n\tbackground-color: var(--background-info);\n}\n\n.dark\\:hover\\:bg-background-primary:hover:is(.dark *) {\n\tbackground-color: var(--background-primary);\n}\n\n.dark\\:hover\\:text-foreground-danger:hover:is(.dark *) {\n\tcolor: var(--foreground-danger);\n}\n\n.dark\\:hover\\:text-foreground-info:hover:is(.dark *) {\n\tcolor: var(--foreground-info);\n}\n\n.dark\\:hover\\:text-foreground-primary:hover:is(.dark *) {\n\tcolor: var(--foreground-primary);\n}\n\n@media (min-width: 768px) {\n\n\t.md\\:left-\\[8\\.3\\%\\] {\n\t\tleft: 8.3%;\n\t}\n\n\t.md\\:ml-\\[16\\.6\\%\\] {\n\t\tmargin-left: 16.6%;\n\t}\n\n\t.md\\:ml-\\[25\\%\\] {\n\t\tmargin-left: 25%;\n\t}\n\n\t.md\\:ml-\\[33\\.3\\%\\] {\n\t\tmargin-left: 33.3%;\n\t}\n\n\t.md\\:ml-\\[8\\.3\\%\\] {\n\t\tmargin-left: 8.3%;\n\t}\n\n\t.md\\:w-1\\/2 {\n\t\twidth: 50%;\n\t}\n\n\t.md\\:w-1\\/3 {\n\t\twidth: 33.333333%;\n\t}\n\n\t.md\\:w-1\\/6 {\n\t\twidth: 16.666667%;\n\t}\n\n\t.md\\:w-2\\/3 {\n\t\twidth: 66.666667%;\n\t}\n\n\t.md\\:w-5\\/12 {\n\t\twidth: 41.666667%;\n\t}\n\n\t.md\\:w-5\\/6 {\n\t\twidth: 83.333333%;\n\t}\n\n\t.md\\:w-\\[750px\\] {\n\t\twidth: 750px;\n\t}\n\n\t.md\\:w-\\[90vw\\] {\n\t\twidth: 90vw;\n\t}\n\n\t.md\\:w-full {\n\t\twidth: 100%;\n\t}\n\n\t.md\\:pb-\\[30px\\] {\n\t\tpadding-bottom: 30px;\n\t}\n\n\t.md\\:pt-\\[30px\\] {\n\t\tpadding-top: 30px;\n\t}\n}\n\n@media (min-width: 992px) {\n\n\t.min-\\[992px\\]\\:ml-\\[16\\.6\\%\\] {\n\t\tmargin-left: 16.6%;\n\t}\n\n\t.min-\\[992px\\]\\:ml-\\[25\\%\\] {\n\t\tmargin-left: 25%;\n\t}\n\n\t.min-\\[992px\\]\\:ml-\\[33\\.3\\%\\] {\n\t\tmargin-left: 33.3%;\n\t}\n\n\t.min-\\[992px\\]\\:ml-\\[8\\.3\\%\\] {\n\t\tmargin-left: 8.3%;\n\t}\n\n\t.min-\\[992px\\]\\:w-1\\/2 {\n\t\twidth: 50%;\n\t}\n\n\t.min-\\[992px\\]\\:w-1\\/3 {\n\t\twidth: 33.333333%;\n\t}\n\n\t.min-\\[992px\\]\\:w-2\\/3 {\n\t\twidth: 66.666667%;\n\t}\n\n\t.min-\\[992px\\]\\:w-5\\/6 {\n\t\twidth: 83.333333%;\n\t}\n\n\t.min-\\[992px\\]\\:w-\\[970px\\] {\n\t\twidth: 970px;\n\t}\n\n\t.min-\\[992px\\]\\:w-full {\n\t\twidth: 100%;\n\t}\n}\n\n@media (min-width: 1200px) {\n\n\t.min-\\[1200px\\]\\:ml-0 {\n\t\tmargin-left: 0px;\n\t}\n\n\t.min-\\[1200px\\]\\:ml-\\[16\\.6\\%\\] {\n\t\tmargin-left: 16.6%;\n\t}\n\n\t.min-\\[1200px\\]\\:ml-\\[8\\.3\\%\\] {\n\t\tmargin-left: 8.3%;\n\t}\n\n\t.min-\\[1200px\\]\\:w-1\\/2 {\n\t\twidth: 50%;\n\t}\n\n\t.min-\\[1200px\\]\\:w-2\\/3 {\n\t\twidth: 66.666667%;\n\t}\n\n\t.min-\\[1200px\\]\\:w-5\\/6 {\n\t\twidth: 83.333333%;\n\t}\n\n\t.min-\\[1200px\\]\\:w-\\[1170px\\] {\n\t\twidth: 1170px;\n\t}\n}\n\n.\\[\\&\\>p\\:last-child\\]\\:m-0>p:last-child {\n\tmargin: 0px;\n}\n\n.\\[\\&\\>tbody\\>tr\\:nth-of-type\\(odd\\)\\]\\:bg-background-tertiary>tbody>tr:nth-of-type(odd) {\n\tbackground-color: var(--background-tertiary);\n}\n\n.\\[\\&_td\\]\\:p-1 td {\n\tpadding: 0.25rem;\n}\n\n.\\[\\&_td\\]\\:p-2 td {\n\tpadding: 0.5rem;\n}\n\n.\\[\\&_th\\]\\:p-1 th {\n\tpadding: 0.25rem;\n}\n\n.\\[\\&_th\\]\\:p-2 th {\n\tpadding: 0.5rem;\n}\n\n.\\[\\&_th\\]\\:font-normal th {\n\tfont-weight: 400;\n}\n","",{version:3,sources:["webpack://./src/colors.css","webpack://./src/base.css"],names:[],mappings:"AAAA;CACC,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;;CAEjB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;;CAEnB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;CACnB,mBAAmB;;CAEnB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;CACjB,iBAAiB;;CAEjB;;mDAEkD;CAClD,8CAA8C;CAC9C,2CAA2C;;CAE3C,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;CAClB,kBAAkB;;CAElB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;CAChB,gBAAgB;AACjB;;AAEA,iFAAiF;;AACjF;CACC,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;;CAEvB,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;;CAE3B,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;CAC3B,2BAA2B;;CAE3B,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;CACvB,uBAAuB;;CAEvB,yBAAyB;CACzB,yBAAyB;CACzB,yBAAyB;CACzB,yBAAyB;CACzB,yBAAyB;;CAEzB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;CACrB,qBAAqB;AACtB;;AAEA;CACC,mCAAmC;CACnC,qCAAqC;CACrC,oCAAoC;CACpC,sCAAsC;CACtC,iCAAiC;CACjC,oCAAoC;CACpC,gCAAgC;CAChC,qCAAqC;;CAErC,mCAAmC;CACnC,qCAAqC;CACrC,oCAAoC;CACpC,sCAAsC;CACtC,iCAAiC;CACjC,oCAAoC;CACpC,gCAAgC;CAChC,iDAAiD;;CAEjD,oCAAoC;AACrC;;AAEA;CACC,mCAAmC;CACnC,qCAAqC;CACrC,oCAAoC;CACpC,sCAAsC;CACtC,iCAAiC;CACjC,oCAAoC;CACpC,gCAAgC;CAChC,qCAAqC;;CAErC,mCAAmC;CACnC,qCAAqC;CACrC,oCAAoC;CACpC,sCAAsC;CACtC,iCAAiC;CACjC,oCAAoC;CACpC,gCAAgC;CAChC,iDAAiD;;CAEjD,oCAAoC;AACrC;;ACzIA,+EAA+E;;AAC/E;CAAA,wBAAc;CAAd,wBAAc;CAAd,mBAAc;CAAd,mBAAc;CAAd,cAAc;CAAd,cAAc;CAAd,cAAc;CAAd,eAAc;CAAd,eAAc;CAAd,aAAc;CAAd,aAAc;CAAd,kBAAc;CAAd,sCAAc;CAAd,8BAAc;CAAd,6BAAc;CAAd,4BAAc;CAAd,eAAc;CAAd,oBAAc;CAAd,sBAAc;CAAd,uBAAc;CAAd,wBAAc;CAAd,kBAAc;CAAd,2BAAc;CAAd,4BAAc;CAAd,uCAAc;CAAd,kCAAc;CAAd,2BAAc;CAAd,sBAAc;CAAd,8BAAc;CAAd,YAAc;CAAd,kBAAc;CAAd,gBAAc;CAAd,iBAAc;CAAd,kBAAc;CAAd,cAAc;CAAd,gBAAc;CAAd,aAAc;CAAd,mBAAc;CAAd,qBAAc;CAAd,2BAAc;CAAd,yBAAc;CAAd,0BAAc;CAAd,2BAAc;CAAd,uBAAc;CAAd,wBAAc;CAAd,yBAAc;CAAd,sBAAc;CAAd,oBAAc;CAAd,sBAAc;CAAd,qBAAc;CAAd;AAAc;;AAAd;CAAA,wBAAc;CAAd,wBAAc;CAAd,mBAAc;CAAd,mBAAc;CAAd,cAAc;CAAd,cAAc;CAAd,cAAc;CAAd,eAAc;CAAd,eAAc;CAAd,aAAc;CAAd,aAAc;CAAd,kBAAc;CAAd,sCAAc;CAAd,8BAAc;CAAd,6BAAc;CAAd,4BAAc;CAAd,eAAc;CAAd,oBAAc;CAAd,sBAAc;CAAd,uBAAc;CAAd,wBAAc;CAAd,kBAAc;CAAd,2BAAc;CAAd,4BAAc;CAAd,uCAAc;CAAd,kCAAc;CAAd,2BAAc;CAAd,sBAAc;CAAd,8BAAc;CAAd,YAAc;CAAd,kBAAc;CAAd,gBAAc;CAAd,iBAAc;CAAd,kBAAc;CAAd,cAAc;CAAd,gBAAc;CAAd,aAAc;CAAd,mBAAc;CAAd,qBAAc;CAAd,2BAAc;CAAd,yBAAc;CAAd,0BAAc;CAAd,2BAAc;CAAd,uBAAc;CAAd,wBAAc;CAAd,yBAAc;CAAd,sBAAc;CAAd,oBAAc;CAAd,sBAAc;CAAd,qBAAc;CAAd;AAAc;;AAAd,kEAAc;;AAAd;;;CAAc;;AAAd;;;EAAA,sBAAc,EAAd,MAAc;EAAd,eAAc,EAAd,MAAc;EAAd,mBAAc,EAAd,MAAc;EAAd,qBAAc,EAAd,MAAc;AAAA;;AAAd;;EAAA,gBAAc;AAAA;;AAAd;;;;;;;;CAAc;;AAAd;;EAAA,gBAAc,EAAd,MAAc;EAAd,8BAAc,EAAd,MAAc;EAAd,gBAAc,EAAd,MAAc;EAAd,cAAc;KAAd,WAAc,EAAd,MAAc;EAAd,6BAAc,EAAd,MAAc;EAAd,6BAAc,EAAd,MAAc;EAAd,+BAAc,EAAd,MAAc;EAAd,wCAAc,EAAd,MAAc;AAAA;;AAAd;;;CAAc;;AAAd;EAAA,SAAc,EAAd,MAAc;EAAd,oBAAc,EAAd,MAAc;AAAA;;AAAd;;;;CAAc;;AAAd;EAAA,SAAc,EAAd,MAAc;EAAd,cAAc,EAAd,MAAc;EAAd,qBAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,yCAAc;UAAd,iCAAc;AAAA;;AAAd;;CAAc;;AAAd;;;;;;EAAA,kBAAc;EAAd,oBAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,cAAc;EAAd,wBAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,mBAAc;AAAA;;AAAd;;;;;CAAc;;AAAd;;;;EAAA,sCAAc,EAAd,MAAc;EAAd,6BAAc,EAAd,MAAc;EAAd,+BAAc,EAAd,MAAc;EAAd,cAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,cAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,cAAc;EAAd,cAAc;EAAd,kBAAc;EAAd,wBAAc;AAAA;;AAAd;EAAA,eAAc;AAAA;;AAAd;EAAA,WAAc;AAAA;;AAAd;;;;CAAc;;AAAd;EAAA,cAAc,EAAd,MAAc;EAAd,qBAAc,EAAd,MAAc;EAAd,yBAAc,EAAd,MAAc;AAAA;;AAAd;;;;CAAc;;AAAd;;;;;EAAA,oBAAc,EAAd,MAAc;EAAd,8BAAc,EAAd,MAAc;EAAd,gCAAc,EAAd,MAAc;EAAd,eAAc,EAAd,MAAc;EAAd,oBAAc,EAAd,MAAc;EAAd,oBAAc,EAAd,MAAc;EAAd,uBAAc,EAAd,MAAc;EAAd,cAAc,EAAd,MAAc;EAAd,SAAc,EAAd,MAAc;EAAd,UAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,oBAAc;AAAA;;AAAd;;;CAAc;;AAAd;;;;EAAA,0BAAc,EAAd,MAAc;EAAd,6BAAc,EAAd,MAAc;EAAd,sBAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,aAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,gBAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,wBAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,YAAc;AAAA;;AAAd;;;CAAc;;AAAd;EAAA,6BAAc,EAAd,MAAc;EAAd,oBAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,wBAAc;AAAA;;AAAd;;;CAAc;;AAAd;EAAA,0BAAc,EAAd,MAAc;EAAd,aAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,kBAAc;AAAA;;AAAd;;CAAc;;AAAd;;;;;;;;;;;;;EAAA,SAAc;AAAA;;AAAd;EAAA,SAAc;EAAd,UAAc;AAAA;;AAAd;EAAA,UAAc;AAAA;;AAAd;;;EAAA,gBAAc;EAAd,SAAc;EAAd,UAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,UAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,gBAAc;AAAA;;AAAd;;;CAAc;;AAAd;EAAA,UAAc,EAAd,MAAc;EAAd,cAAc,EAAd,MAAc;AAAA;;AAAd;;EAAA,UAAc,EAAd,MAAc;EAAd,cAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,eAAc;AAAA;;AAAd;;CAAc;;AAAd;EAAA,eAAc;AAAA;;AAAd;;;;CAAc;;AAAd;;;;;;;;EAAA,cAAc,EAAd,MAAc;EAAd,sBAAc,EAAd,MAAc;AAAA;;AAAd;;CAAc;;AAAd;;EAAA,eAAc;EAAd,YAAc;AAAA;;AAAd,wEAAc;;AAAd;EAAA,aAAc;AAAA;;AAAd;CAAA,eAAc;CAAd;AAAc;;AAAd;CAAA,oBAAc;CAAd,kBAAc;CAAd,mBAAc;CAAd;AAAc;;AAAd;EAAA,wDAAc;EAAd,mFAAc;EAAd,+BAAc;EAAd,oEAAc;EAAd,8BAAc;CAAA;;AAAd;EAAA;GAAA,4BAAc;EAAA;CAAA;;AAAd;CAAA,4CAAc;CAAd;AAAc;;AAAd;CAAA,iBAAc;CAAd,2BAAc;CAAd,iBAAc;CAAd,kBAAc;CAAd,gBAAc;CAAd;AAAc;;AAAd;;;;;;;EAAA,qBAAc;CAAA;;AAAd,oDAAc;;AAAd,oFAAc;;AAAd;CAAA,mCAAc;CAAd;AAAc;;AAAd;;CAAA,mCAAc;CAAd;AAAc;;AAiDd;CAAA;AAAoB;;AAApB;;CAAA;EAAA;CAAoB;AAAA;;AAApB;;CAAA;EAAA;CAAoB;AAAA;;AAApB;;CAAA;EAAA;CAAoB;AAAA;;AAApB;;CAAA;EAAA;CAAoB;AAAA;;AAApB;;CAAA;EAAA;CAAoB;AAAA;;AACpB;CAAA,kBAAmB;CAAnB,UAAmB;CAAnB,WAAmB;CAAnB,UAAmB;CAAnB,YAAmB;CAAnB,gBAAmB;CAAnB,sBAAmB;CAAnB,mBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,mBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,iBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,eAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,2BAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,sBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,uBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,qBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,sBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,iBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,sBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,qBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,sBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,qBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,oBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,oBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,qBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,qBAAmB;CAAnB;AAAmB;;AAAnB;CAAA,gBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,eAAmB;CAAnB;AAAmB;;AAAnB;CAAA,eAAmB;CAAnB;AAAmB;;AAAnB;CAAA,eAAmB;CAAnB;AAAmB;;AAAnB;CAAA,kBAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,sBAAmB;CAAnB,8BAAmB;CAAnB;AAAmB;;AAAnB;CAAA,0CAAmB;CAAnB,uDAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA,gKAAmB;CAAnB,wJAAmB;CAAnB,iLAAmB;CAAnB,wDAAmB;CAAnB;AAAmB;;AAAnB;CAAA,wBAAmB;CAAnB,wDAAmB;CAAnB;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AAAnB;CAAA;AAAmB;;AArDnB;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA,sBAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA,sBAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA,2GAsDA;CAtDA,yGAsDA;CAtDA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA,8BAsDA;CAtDA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA,0BAsDA;CAtDA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;;CAAA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;AAAA;;AAtDA;;CAAA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;AAAA;;AAtDA;;CAAA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;;CAtDA;EAAA;CAsDA;AAAA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA;;AAtDA;CAAA;AAsDA",sourcesContent:[":root {\n\t--gray00: #ffffff;\n\t--gray05: #f5f6f7;\n\t--gray10: #dfdfe2;\n\t--gray15: #d0d0d5;\n\t--gray45: #858591;\n\t--gray75: #3b3b4f;\n\t--gray80: #2a2a40;\n\t--gray85: #1b1b32;\n\t--gray90: #0a0a23;\n\n\t--purple10: #dbb8ff;\n\t--purple50: #9400d3;\n\t--purple90: #5a01a7;\n\n\t--yellow05: #fcf8e3;\n\t--yellow10: #faebcc;\n\t--yellow40: #ffc300;\n\t--yellow45: #ffbf00;\n\t--yellow50: #f1be32;\n\t--yellow70: #8a6d3b;\n\t--yellow90: #4d3800;\n\n\t--blue05: #d9edf7;\n\t--blue10: #bce8f1;\n\t--blue30: #99c9ff;\n\t--blue50: #198eee;\n\t--blue70: #31708f;\n\t--blue90: #002ead;\n\n\t/* These are blue30 and blue90 with an alpha value.\n\t\t The colors are in RGBA format instead of #RRGGBBAA\n\t\t in order to be compatible with older browsers. */\n\t--blue30-translucent: rgba(153, 201, 255, 0.3);\n\t--blue90-translucent: rgba(0, 46, 173, 0.3);\n\n\t--green05: #dff0d8;\n\t--green10: #d6e9c6;\n\t--green40: #acd157;\n\t--green70: #3c763d;\n\t--green90: #00471b;\n\n\t--red05: #f2dede;\n\t--red10: #ebccd1;\n\t--red15: #ffadad;\n\t--red30: #f8577c;\n\t--red70: #a94442;\n\t--red80: #f82153;\n\t--red90: #850000;\n}\n\n/* Export the variables in order to use them on the Color System Storybook page */\n:export {\n\t--gray00: var(--gray00);\n\t--gray05: var(--gray05);\n\t--gray10: var(--gray10);\n\t--gray15: var(--gray15);\n\t--gray45: var(--gray45);\n\t--gray75: var(--gray75);\n\t--gray80: var(--gray80);\n\t--gray85: var(--gray85);\n\t--gray90: var(--gray90);\n\n\t--purple10: var(--purple10);\n\t--purple50: var(--purple50);\n\t--purple90: var(--purple90);\n\n\t--yellow05: var(--yellow05);\n\t--yellow10: var(--yellow10);\n\t--yellow40: var(--yellow40);\n\t--yellow45: var(--yellow45);\n\t--yellow50: var(--yellow50);\n\t--yellow70: var(--yellow70);\n\t--yellow90: var(--yellow90);\n\n\t--blue05: var(--blue05);\n\t--blue10: var(--blue10);\n\t--blue30: var(--blue30);\n\t--blue50: var(--blue50);\n\t--blue70: var(--blue70);\n\t--blue90: var(--blue90);\n\n\t--green05: var(--green05);\n\t--green10: var(--green10);\n\t--green40: var(--green40);\n\t--green70: var(--green70);\n\t--green90: var(--green90);\n\n\t--red05: var(--red05);\n\t--red10: var(--red10);\n\t--red15: var(--red15);\n\t--red30: var(--red30);\n\t--red70: var(--red70);\n\t--red80: var(--red80);\n\t--red90: var(--red90);\n}\n\n.light-palette {\n\t--foreground-primary: var(--gray90);\n\t--foreground-secondary: var(--gray85);\n\t--foreground-tertiary: var(--gray80);\n\t--foreground-quaternary: var(--gray75);\n\t--foreground-danger: var(--red15);\n\t--foreground-success: var(--green40);\n\t--foreground-info: var(--blue30);\n\t--foreground-warning: var(--yellow45);\n\n\t--background-primary: var(--gray00);\n\t--background-secondary: var(--gray05);\n\t--background-tertiary: var(--gray10);\n\t--background-quaternary: var(--gray15);\n\t--background-danger: var(--red90);\n\t--background-success: var(--green90);\n\t--background-info: var(--blue90);\n\t--background-selection: var(--blue90-translucent);\n\n\t--focus-outline-color: var(--blue50);\n}\n\n.dark-palette {\n\t--foreground-primary: var(--gray00);\n\t--foreground-secondary: var(--gray05);\n\t--foreground-tertiary: var(--gray10);\n\t--foreground-quaternary: var(--gray15);\n\t--foreground-danger: var(--red90);\n\t--foreground-success: var(--green90);\n\t--foreground-info: var(--blue90);\n\t--foreground-warning: var(--yellow40);\n\n\t--background-primary: var(--gray90);\n\t--background-secondary: var(--gray85);\n\t--background-tertiary: var(--gray80);\n\t--background-quaternary: var(--gray75);\n\t--background-danger: var(--red15);\n\t--background-success: var(--green40);\n\t--background-info: var(--blue30);\n\t--background-selection: var(--blue30-translucent);\n\n\t--focus-outline-color: var(--blue50);\n}\n","@import \"./colors.css\";\n\n/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css */\n@tailwind base;\n\n@layer base {\n\thtml {\n\t\t@apply text-md;\n\t}\n\n\t:focus-visible {\n\t\t@apply outline outline-3 outline-focus-outline-color outline-offset-0;\n\t}\n\n\ta {\n\t\t/* Override Tailwind's default `text-decoration` rule. */\n\t\t/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css#L92 */\n\t\t@apply underline;\n\t\t/* This is required in order to improve text readability in Arabic */\n\t\ttext-underline-position: under;\n\t}\n\t@supports not (text-underline-position: under) {\n\t\ta {\n\t\t\ttext-underline-offset: 0.1em;\n\t\t}\n\t}\n\n\tcode {\n\t\t@apply bg-background-tertiary text-foreground-tertiary;\n\t}\n\t:not(pre) > code {\n\t\t@apply border-1 border-gray-450 px-[4px] py-[1px];\n\t}\n\n\th1,\n\th2,\n\th3,\n\th4,\n\th5,\n\th6,\n\tp {\n\t\tmargin-bottom: 12.5px;\n\t}\n\n\t/* Override the Tailwind's placeholder text color. */\n\t/* https://github.com/tailwindlabs/tailwindcss/blob/3.4/src/css/preflight.css#L335 */\n\tinput::placeholder,\n\ttextarea::placeholder {\n\t\t@apply text-foreground-quaternary opacity-80;\n\t}\n}\n\n@tailwind components;\n@tailwind utilities;\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[12].use[1]!./node_modules/.pnpm/postcss-loader@8.1.1_postcss@8.4.49_typescript@5.7.2_webpack@5.91.0_esbuild@0.23.0_/node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[12].use[2]!./src/fonts.css":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/runtime/api.js"),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.91.0_esbuild@0.23.0_/node_modules/css-loader/dist/runtime/getUrl.js"),_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2__),___CSS_LOADER_URL_IMPORT_0___=new URL(__webpack_require__("./src/assets/fonts/lato/Lato-Light.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_1___=new URL(__webpack_require__("./src/assets/fonts/lato/Lato-Regular.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_2___=new URL(__webpack_require__("./src/assets/fonts/lato/Lato-Italic.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_3___=new URL(__webpack_require__("./src/assets/fonts/lato/Lato-Bold.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_4___=new URL(__webpack_require__("./src/assets/fonts/lato/Lato-Black.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_5___=new URL(__webpack_require__("./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Light.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_6___=new URL(__webpack_require__("./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Regular.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_7___=new URL(__webpack_require__("./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Bold.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_8___=new URL(__webpack_require__("./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Black.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_9___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff2"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_10___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_11___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff2"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_12___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_13___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff2"),__webpack_require__.b),___CSS_LOADER_URL_IMPORT_14___=new URL(__webpack_require__("./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff"),__webpack_require__.b),___CSS_LOADER_EXPORT___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()(_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()),___CSS_LOADER_URL_REPLACEMENT_0___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___),___CSS_LOADER_URL_REPLACEMENT_1___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_1___),___CSS_LOADER_URL_REPLACEMENT_2___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_2___),___CSS_LOADER_URL_REPLACEMENT_3___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_3___),___CSS_LOADER_URL_REPLACEMENT_4___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_4___),___CSS_LOADER_URL_REPLACEMENT_5___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_5___),___CSS_LOADER_URL_REPLACEMENT_6___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_6___),___CSS_LOADER_URL_REPLACEMENT_7___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_7___),___CSS_LOADER_URL_REPLACEMENT_8___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_8___),___CSS_LOADER_URL_REPLACEMENT_9___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_9___),___CSS_LOADER_URL_REPLACEMENT_10___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_10___),___CSS_LOADER_URL_REPLACEMENT_11___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_11___),___CSS_LOADER_URL_REPLACEMENT_12___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_12___),___CSS_LOADER_URL_REPLACEMENT_13___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_13___),___CSS_LOADER_URL_REPLACEMENT_14___=_node_modules_pnpm_css_loader_6_11_0_webpack_5_91_0_esbuild_0_23_0_node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_14___);___CSS_LOADER_EXPORT___.push([module.id,`/* Lato */\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_0___}) format("woff");\n\tfont-weight: 300;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_1___}) format("woff");\n\tfont-weight: normal;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_2___}) format("woff");\n\tfont-weight: normal;\n\tfont-style: italic;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_3___}) format("woff");\n\tfont-weight: bold;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_4___}) format("woff");\n\tfont-weight: 900;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n/* NotoSansArabic */\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_5___})\n\t\tformat("woff");\n\tfont-weight: 300;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_6___})\n\t\tformat("woff");\n\tfont-weight: normal;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_7___})\n\t\tformat("woff");\n\tfont-weight: bold;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url(${___CSS_LOADER_URL_REPLACEMENT_8___})\n\t\tformat("woff");\n\tfont-weight: 900;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n/* hack zeroslash */\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_9___})\n\t\t\tformat("woff2"),\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_10___})\n\t\t\tformat("woff");\n}\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_11___})\n\t\t\tformat("woff2"),\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_12___}) format("woff");\n\tfont-weight: bold;\n}\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_13___})\n\t\t\tformat("woff2"),\n\t\turl(${___CSS_LOADER_URL_REPLACEMENT_14___})\n\t\t\tformat("woff");\n\tfont-style: italic;\n}\n`,"",{version:3,sources:["webpack://./src/fonts.css"],names:[],mappings:"AAAA,SAAS;;AAET;CACC,mBAAmB;CACnB,2DAA8D;CAC9D,gBAAgB;CAChB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,mBAAmB;CACnB,2DAAgE;CAChE,mBAAmB;CACnB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,mBAAmB;CACnB,2DAA+D;CAC/D,mBAAmB;CACnB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,mBAAmB;CACnB,2DAA6D;CAC7D,iBAAiB;CACjB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,mBAAmB;CACnB,2DAA8D;CAC9D,gBAAgB;CAChB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA,mBAAmB;;AAEnB;CACC,6BAA6B;CAC7B;gBACe;CACf,gBAAgB;CAChB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,6BAA6B;CAC7B;gBACe;CACf,mBAAmB;CACnB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,6BAA6B;CAC7B;gBACe;CACf,iBAAiB;CACjB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA;CACC,6BAA6B;CAC7B;gBACe;CACf,gBAAgB;CAChB,kBAAkB;CAClB,sBAAsB;AACvB;;AAEA,mBAAmB;;AAEnB;CACC,6BAA6B;CAC7B;;;;iBAIgB;AACjB;;AAEA;CACC,6BAA6B;CAC7B;;;yDAG6E;CAC7E,iBAAiB;AAClB;;AAEA;CACC,6BAA6B;CAC7B;;;;iBAIgB;CAChB,kBAAkB;AACnB",sourcesContent:['/* Lato */\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url("./assets/fonts/lato/Lato-Light.woff") format("woff");\n\tfont-weight: 300;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url("./assets/fonts/lato/Lato-Regular.woff") format("woff");\n\tfont-weight: normal;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url("./assets/fonts/lato/Lato-Italic.woff") format("woff");\n\tfont-weight: normal;\n\tfont-style: italic;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url("./assets/fonts/lato/Lato-Bold.woff") format("woff");\n\tfont-weight: bold;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "Lato";\n\tsrc: url("./assets/fonts/lato/Lato-Black.woff") format("woff");\n\tfont-weight: 900;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n/* NotoSansArabic */\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url("./assets/fonts/noto-sans-arabic/NotoSansArabic-Light.woff")\n\t\tformat("woff");\n\tfont-weight: 300;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url("./assets/fonts/noto-sans-arabic/NotoSansArabic-Regular.woff")\n\t\tformat("woff");\n\tfont-weight: normal;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url("./assets/fonts/noto-sans-arabic/NotoSansArabic-Bold.woff")\n\t\tformat("woff");\n\tfont-weight: bold;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n@font-face {\n\tfont-family: "NotoSansArabic";\n\tsrc: url("./assets/fonts/noto-sans-arabic/NotoSansArabic-Black.woff")\n\t\tformat("woff");\n\tfont-weight: 900;\n\tfont-style: normal;\n\tfont-display: fallback;\n}\n\n/* hack zeroslash */\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff2")\n\t\t\tformat("woff2"),\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff")\n\t\t\tformat("woff");\n}\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff2")\n\t\t\tformat("woff2"),\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff") format("woff");\n\tfont-weight: bold;\n}\n\n@font-face {\n\tfont-family: "Hack-ZeroSlash";\n\tsrc:\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff2")\n\t\t\tformat("woff2"),\n\t\turl("./assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff")\n\t\t\tformat("woff");\n\tfont-style: italic;\n}\n'],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./introduction.mdx":["./src/introduction.mdx",443,525]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.mdx)$",module.exports=webpackAsyncContext},"./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.tsx)$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./alert/alert.stories":["./src/alert/alert.stories.tsx",590],"./alert/alert.stories.tsx":["./src/alert/alert.stories.tsx",590],"./button/button.stories":["./src/button/button.stories.tsx",16],"./button/button.stories.tsx":["./src/button/button.stories.tsx",16],"./callout/callout.stories":["./src/callout/callout.stories.tsx",470],"./callout/callout.stories.tsx":["./src/callout/callout.stories.tsx",470],"./close-button/close-button.stories":["./src/close-button/close-button.stories.tsx",974],"./close-button/close-button.stories.tsx":["./src/close-button/close-button.stories.tsx",974],"./col/col.stories":["./src/col/col.stories.tsx",850],"./col/col.stories.tsx":["./src/col/col.stories.tsx",850],"./color-system/color-system.stories":["./src/color-system/color-system.stories.tsx",414],"./color-system/color-system.stories.tsx":["./src/color-system/color-system.stories.tsx",414],"./container/container.stories":["./src/container/container.stories.tsx",846],"./container/container.stories.tsx":["./src/container/container.stories.tsx",846],"./control-label/control-label.stories":["./src/control-label/control-label.stories.tsx",94],"./control-label/control-label.stories.tsx":["./src/control-label/control-label.stories.tsx",94],"./drop-down/drop-down.stories":["./src/drop-down/drop-down.stories.tsx",210,886],"./drop-down/drop-down.stories.tsx":["./src/drop-down/drop-down.stories.tsx",210,886],"./form-control/form-control.stories":["./src/form-control/form-control.stories.tsx",412],"./form-control/form-control.stories.tsx":["./src/form-control/form-control.stories.tsx",412],"./form-group/form-group.stories":["./src/form-group/form-group.stories.tsx",396],"./form-group/form-group.stories.tsx":["./src/form-group/form-group.stories.tsx",396],"./help-block/help-block.stories":["./src/help-block/help-block.stories.tsx",694],"./help-block/help-block.stories.tsx":["./src/help-block/help-block.stories.tsx",694],"./image/image.stories":["./src/image/image.stories.tsx",150],"./image/image.stories.tsx":["./src/image/image.stories.tsx",150],"./link/link.stories":["./src/link/link.stories.tsx",540],"./link/link.stories.tsx":["./src/link/link.stories.tsx",540],"./modal/modal.stories":["./src/modal/modal.stories.tsx",2,862],"./modal/modal.stories.tsx":["./src/modal/modal.stories.tsx",2,862],"./panel/panel.stories":["./src/panel/panel.stories.tsx",762],"./panel/panel.stories.tsx":["./src/panel/panel.stories.tsx",762],"./prism-formatted/prism-formatted.stories":["./src/prism-formatted/prism-formatted.stories.tsx",852,481,378],"./prism-formatted/prism-formatted.stories.tsx":["./src/prism-formatted/prism-formatted.stories.tsx",852,481,378],"./quiz-question/quiz-question.stories":["./src/quiz-question/quiz-question.stories.tsx",210,852,481,302],"./quiz-question/quiz-question.stories.tsx":["./src/quiz-question/quiz-question.stories.tsx",210,852,481,302],"./quiz/quiz.stories":["./src/quiz/quiz.stories.tsx",210,852,481,226],"./quiz/quiz.stories.tsx":["./src/quiz/quiz.stories.tsx",210,852,481,226],"./row/row.stories":["./src/row/row.stories.tsx",802],"./row/row.stories.tsx":["./src/row/row.stories.tsx",802],"./spacer/spacer.stories":["./src/spacer/spacer.stories.tsx",628],"./spacer/spacer.stories.tsx":["./src/spacer/spacer.stories.tsx",628],"./table/table.stories":["./src/table/table.stories.tsx",465],"./table/table.stories.tsx":["./src/table/table.stories.tsx",465],"./tabs/tabs.stories":["./src/tabs/tabs.stories.tsx",236],"./tabs/tabs.stories.tsx":["./src/tabs/tabs.stories.tsx",236],"./toggle-button/toggle-button.stories":["./src/toggle-button/toggle-button.stories.tsx",381],"./toggle-button/toggle-button.stories.tsx":["./src/toggle-button/toggle-button.stories.tsx",381]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:\\/src(?:\\/(?%21\\.)(?:(?:(?%21(?:^%7C\\/)\\.).)*?)\\/%7C\\/%7C$)(?%21\\.)(?=.)[^/]*?\\.stories\\.tsx)$",module.exports=webpackAsyncContext},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Bold.c8ea19a8.woff"},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Bold.woff2":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Bold.ceb133b6.woff2"},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Italic.678bc16b.woff"},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Italic.woff2":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Italic.69f322d5.woff2"},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Regular.f67447de.woff"},"./src/assets/fonts/hack-zeroslash/Hack-ZeroSlash-Regular.woff2":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Hack-ZeroSlash-Regular.bf7335f4.woff2"},"./src/assets/fonts/lato/Lato-Black.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Lato-Black.efe7c183.woff"},"./src/assets/fonts/lato/Lato-Bold.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Lato-Bold.ba3a83ad.woff"},"./src/assets/fonts/lato/Lato-Italic.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Lato-Italic.251de5f4.woff"},"./src/assets/fonts/lato/Lato-Light.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Lato-Light.91308c02.woff"},"./src/assets/fonts/lato/Lato-Regular.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/Lato-Regular.77ca2742.woff"},"./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Black.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/NotoSansArabic-Black.0c2f873d.woff"},"./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Bold.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/NotoSansArabic-Bold.b2991670.woff"},"./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Light.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/NotoSansArabic-Light.29c28f1c.woff"},"./src/assets/fonts/noto-sans-arabic/NotoSansArabic-Regular.woff":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/NotoSansArabic-Regular.d99c6e61.woff"},"storybook/internal/channels":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"storybook/internal/client-logger":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"storybook/internal/preview-errors":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"storybook/internal/core-events":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global":module=>{"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"storybook/internal/preview-api":module=>{"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__}},__webpack_require__=>{__webpack_require__.O(0,[586],(()=>{return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]); \ No newline at end of file diff --git a/project.json b/project.json index 5b11e6c..17da7dd 100644 --- a/project.json +++ b/project.json @@ -1 +1 @@ -{"generatedAt":1732811081892,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@testing-library/jest-dom":"6.6.3","@testing-library/react":"12.1.5","@testing-library/react-hooks":"8.0.1","@testing-library/user-event":null,"@types/jest":"29.5.14","eslint-plugin-jest":"28.9.0","eslint-plugin-jest-dom":"5.5.0","eslint-plugin-testing-library":"6.5.0","jest":"29.7.0","jest-environment-jsdom":"29.7.0"},"packageManager":{"type":"pnpm","version":"9.14.2"},"typescriptOptions":{"check":false,"checkOptions":{},"reactDocgen":"react-docgen-typescript","reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true}},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","portableStoriesFileCount":0,"storybookVersion":"8.4.5","storybookVersionSpecifier":"8.4.5","language":"typescript","storybookPackages":{"@storybook/addon-actions":{"version":"8.4.5"},"@storybook/addon-docs":{"version":"8.4.5"},"@storybook/blocks":{"version":"8.4.5"},"@storybook/react":{"version":"8.4.5"},"@storybook/react-webpack5":{"version":"8.4.5"},"storybook":{"version":"8.4.5"}},"addons":{"@storybook/addon-links":{"version":"8.4.5"},"@storybook/addon-essentials":{"version":"8.4.5"},"@storybook/addon-a11y":{"version":"8.4.5"},"@storybook/addon-styling-webpack":{"version":"1.0.1"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"}}} \ No newline at end of file +{"generatedAt":1732889027080,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@testing-library/jest-dom":"6.6.3","@testing-library/react":"12.1.5","@testing-library/react-hooks":"8.0.1","@testing-library/user-event":null,"@types/jest":"29.5.14","eslint-plugin-jest":"28.9.0","eslint-plugin-jest-dom":"5.5.0","eslint-plugin-testing-library":"6.5.0","jest":"29.7.0","jest-environment-jsdom":"29.7.0"},"packageManager":{"type":"pnpm","version":"9.14.4"},"typescriptOptions":{"check":false,"checkOptions":{},"reactDocgen":"react-docgen-typescript","reactDocgenTypescriptOptions":{"shouldExtractLiteralValuesFromEnum":true}},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","portableStoriesFileCount":0,"storybookVersion":"8.4.6","storybookVersionSpecifier":"8.4.6","language":"typescript","storybookPackages":{"@storybook/addon-actions":{"version":"8.4.6"},"@storybook/addon-docs":{"version":"8.4.6"},"@storybook/blocks":{"version":"8.4.6"},"@storybook/react":{"version":"8.4.6"},"@storybook/react-webpack5":{"version":"8.4.6"},"storybook":{"version":"8.4.6"}},"addons":{"@storybook/addon-links":{"version":"8.4.6"},"@storybook/addon-essentials":{"version":"8.4.6"},"@storybook/addon-a11y":{"version":"8.4.6"},"@storybook/addon-styling-webpack":{"version":"1.0.1"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"}}} \ No newline at end of file diff --git a/runtime~main.644c830c.iframe.bundle.js b/runtime~main.644c830c.iframe.bundle.js new file mode 100644 index 0000000..d4dda23 --- /dev/null +++ b/runtime~main.644c830c.iframe.bundle.js @@ -0,0 +1 @@ +(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>(({16:"button-button-stories",94:"control-label-control-label-stories",150:"image-image-stories",226:"quiz-quiz-stories",236:"tabs-tabs-stories",302:"quiz-question-quiz-question-stories",378:"prism-formatted-prism-formatted-stories",381:"toggle-button-toggle-button-stories",396:"form-group-form-group-stories",412:"form-control-form-control-stories",414:"color-system-color-system-stories",465:"table-table-stories",470:"callout-callout-stories",525:"introduction-mdx",540:"link-link-stories",590:"alert-alert-stories",628:"spacer-spacer-stories",694:"help-block-help-block-stories",762:"panel-panel-stories",802:"row-row-stories",846:"container-container-stories",850:"col-col-stories",862:"modal-modal-stories",886:"drop-down-drop-down-stories",974:"close-button-close-button-stories"}[chunkId]||chunkId)+"."+{2:"f95f762f",16:"979c80bd",94:"9013d1ea",102:"4a9bf042",150:"b50bcf80",210:"5c893c92",226:"d6cb9722",236:"5a5836a4",260:"c8df7431",302:"5ff8f085",378:"a8f25b58",381:"bf0bc87f",396:"40f78686",412:"b5a9cc00",414:"e853a59f",421:"bc4920eb",443:"977eea32",465:"caa3202e",470:"e7f60763",481:"867c1997",525:"31cdfda1",540:"a973d98e",566:"212b2898",590:"749b59e6",628:"487873c1",694:"f0525037",762:"7a1e152d",802:"4621831c",839:"cceae78f",846:"8d24f761",850:"50af4dff",852:"34669f59",862:"88a0ab2d",886:"6bafe401",945:"afceb4a5",974:"ecb351b1"}[chunkId]+".iframe.bundle.js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{__webpack_require__.b=document.baseURI||self.location.href;var installedChunks={354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(354!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>(({16:"button-button-stories",94:"control-label-control-label-stories",150:"image-image-stories",226:"quiz-quiz-stories",236:"tabs-tabs-stories",302:"quiz-question-quiz-question-stories",378:"prism-formatted-prism-formatted-stories",381:"toggle-button-toggle-button-stories",396:"form-group-form-group-stories",412:"form-control-form-control-stories",414:"color-system-color-system-stories",465:"table-table-stories",470:"callout-callout-stories",525:"introduction-mdx",540:"link-link-stories",590:"alert-alert-stories",628:"spacer-spacer-stories",694:"help-block-help-block-stories",762:"panel-panel-stories",802:"row-row-stories",846:"container-container-stories",850:"col-col-stories",862:"modal-modal-stories",886:"drop-down-drop-down-stories",974:"close-button-close-button-stories"}[chunkId]||chunkId)+"."+{1:"7c628f35",2:"f95f762f",16:"979c80bd",94:"9013d1ea",102:"4a9bf042",150:"b50bcf80",210:"5c893c92",226:"d6cb9722",236:"5a5836a4",302:"5ff8f085",378:"a8f25b58",381:"bf0bc87f",396:"40f78686",412:"b5a9cc00",414:"e853a59f",465:"caa3202e",470:"e7f60763",481:"867c1997",525:"b4b9c3ce",529:"0e030490",540:"a973d98e",590:"749b59e6",628:"487873c1",694:"f0525037",720:"df51a5f4",746:"9dc2fba3",762:"7a1e152d",802:"4621831c",846:"8d24f761",850:"50af4dff",852:"34669f59",862:"88a0ab2d",886:"6bafe401",903:"27914c6a",945:"afceb4a5",974:"ecb351b1"}[chunkId]+".iframe.bundle.js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{__webpack_require__.b=document.baseURI||self.location.href;var installedChunks={354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(354!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i{var fp=Object.create;var kn=Object.defineProperty;var hp=Object.getOwnPropertyDescriptor;var mp=Object.getOwnPropertyNames;var yp=Object.getPrototypeOf,gp=Object.prototype.hasOwnProperty;var Pe=(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')});var Qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var bp=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qa=(e,t)=>{for(var r in t)kn(e,r,{get:t[r],enumerable:!0})},Ep=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mp(t))!gp.call(e,o)&&o!==r&&kn(e,o,{get:()=>t[o],enumerable:!(n=hp(t,o))||n.enumerable});return e};var vp=(e,t,r)=>(r=e!=null?fp(yp(e)):{},Ep(t||!e||!e.__esModule?kn(r,"default",{value:e,enumerable:!0}):r,e));var V=Qe(()=>{});var J=Qe(()=>{});var z=Qe(()=>{});function Cp(e,t,{signal:r,edges:n}={}){let o,a=null,i=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),s=()=>{a!==null&&(e.apply(o,a),o=void 0,a=null)},c=()=>{l&&s(),f()},d=null,p=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,c()},t)},h=()=>{d!==null&&(clearTimeout(d),d=null)},f=()=>{h(),o=void 0,a=null},b=()=>{h(),s()},g=function(...x){if(r?.aborted)return;o=this,a=x;let S=d==null;p(),i&&S&&s()};return g.schedule=p,g.cancel=f,g.flush=b,r?.addEventListener("abort",f,{once:!0}),g}function Ha(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:o=!1,trailing:a=!0,maxWait:i}=r,l=Array(2);o&&(l[0]="leading"),a&&(l[1]="trailing");let s,c=null,d=Cp(function(...f){s=e.apply(this,f),c=null},t,{signal:n,edges:l}),p=function(...f){if(i!=null){if(c===null)c=Date.now();else if(Date.now()-c>=i)return s=e.apply(this,f),c=Date.now(),d.cancel(),d.schedule(),s}return d.apply(this,f),s},h=()=>(d.flush(),s);return p.cancel=d.cancel,p.flush=h,p}function Ga(e){return Array.from(new Set(e))}function Wa(e,t){let r={},n=Object.entries(e);for(let o=0;o{V();J();z();Bt=(e=>typeof Pe<"u"?Pe:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Pe<"u"?Pe:t)[r]}):e)(function(e){if(typeof Pe<"u")return Pe.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),xp=Object.create,Ja=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,za=Object.getOwnPropertyNames,wp=Object.getPrototypeOf,Ap=Object.prototype.hasOwnProperty,sr=(e=>typeof Bt<"u"?Bt:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Bt<"u"?Bt:t)[r]}):e)(function(e){if(typeof Bt<"u")return Bt.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),je=(e,t)=>function(){return t||(0,e[za(e)[0]])((t={exports:{}}).exports,t),t.exports},Tp=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of za(t))!Ap.call(e,o)&&o!==r&&Ja(e,o,{get:()=>t[o],enumerable:!(n=Sp(t,o))||n.enumerable});return e},Lt=(e,t,r)=>(r=e!=null?xp(wp(e)):{},Tp(t||!e||!e.__esModule?Ja(r,"default",{value:e,enumerable:!0}):r,e));Op="[object String]",Dp="[object Number]",Rp="[object Boolean]",_p="[object Arguments]";Fe=e=>`control-${e.replace(/\s+/g,"-")}`,lr=e=>`set-${e.replace(/\s+/g,"-")}`});var m,Ya,it,Wv,Kv,Yv,Xv,Xa,Qv,ue,ur,On,Zv,ex,tx,rx,Qa,nx,ox,ax,xe,Za,ix,sx,Se,lx,ux,cx,ei,st,dx,Re,X,px,fx,hx,Dr=Qe(()=>{V();J();z();m=__REACT__,{Children:Ya,Component:it,Fragment:Wv,Profiler:Kv,PureComponent:Yv,StrictMode:Xv,Suspense:Xa,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qv,cloneElement:ue,createContext:ur,createElement:On,createFactory:Zv,createRef:ex,forwardRef:tx,isValidElement:rx,lazy:Qa,memo:nx,startTransition:ox,unstable_act:ax,useCallback:xe,useContext:Za,useDebugValue:ix,useDeferredValue:sx,useEffect:Se,useId:lx,useImperativeHandle:ux,useInsertionEffect:cx,useLayoutEffect:ei,useMemo:st,useReducer:dx,useRef:Re,useState:X,useSyncExternalStore:px,useTransition:fx,version:hx}=__REACT__});var ti={};qa(ti,{A:()=>Np,ActionBar:()=>Dn,AddonPanel:()=>Rn,Badge:()=>_n,Bar:()=>Pn,Blockquote:()=>Bp,Button:()=>lt,ClipboardCode:()=>jp,Code:()=>Lp,DL:()=>Mp,Div:()=>Up,DocumentWrapper:()=>$p,EmptyTabContent:()=>Fn,ErrorFormatter:()=>qp,FlexBar:()=>Nn,Form:()=>Ve,H1:()=>Vp,H2:()=>Bn,H3:()=>Jp,H4:()=>zp,H5:()=>Hp,H6:()=>Gp,HR:()=>Wp,IconButton:()=>ze,IconButtonSkeleton:()=>Kp,Icons:()=>Yp,Img:()=>Xp,LI:()=>Qp,Link:()=>xt,ListItem:()=>Zp,Loader:()=>ef,Modal:()=>He,OL:()=>tf,P:()=>rf,Placeholder:()=>nf,Pre:()=>of,ResetWrapper:()=>jn,ScrollArea:()=>af,Separator:()=>sf,Spaced:()=>Ln,Span:()=>lf,StorybookIcon:()=>uf,StorybookLogo:()=>cf,Symbols:()=>df,SyntaxHighlighter:()=>Rr,TT:()=>pf,TabBar:()=>ff,TabButton:()=>hf,TabWrapper:()=>mf,Table:()=>yf,Tabs:()=>gf,TabsState:()=>bf,TooltipLinkList:()=>Ef,TooltipMessage:()=>vf,TooltipNote:()=>St,UL:()=>xf,WithTooltip:()=>ut,WithTooltipPure:()=>Mn,Zoom:()=>Un,codeCommon:()=>Mt,components:()=>$n,createCopyToClipboardFunction:()=>Sf,default:()=>Fp,getStoryHref:()=>wf,icons:()=>Af,interleaveSeparators:()=>Tf,nameSpaceClassNames:()=>qn,resetComponents:()=>Cf,withReset:()=>Ut});var Fp,Np,Dn,Rn,_n,Pn,Bp,lt,jp,Lp,Mp,Up,$p,Fn,qp,Nn,Ve,Vp,Bn,Jp,zp,Hp,Gp,Wp,ze,Kp,Yp,Xp,Qp,xt,Zp,ef,He,tf,rf,nf,of,jn,af,sf,Ln,lf,uf,cf,df,Rr,pf,ff,hf,mf,yf,gf,bf,Ef,vf,St,xf,ut,Mn,Un,Mt,$n,Sf,wf,Af,Tf,qn,Cf,Ut,_r=Qe(()=>{V();J();z();Fp=__STORYBOOK_COMPONENTS__,{A:Np,ActionBar:Dn,AddonPanel:Rn,Badge:_n,Bar:Pn,Blockquote:Bp,Button:lt,ClipboardCode:jp,Code:Lp,DL:Mp,Div:Up,DocumentWrapper:$p,EmptyTabContent:Fn,ErrorFormatter:qp,FlexBar:Nn,Form:Ve,H1:Vp,H2:Bn,H3:Jp,H4:zp,H5:Hp,H6:Gp,HR:Wp,IconButton:ze,IconButtonSkeleton:Kp,Icons:Yp,Img:Xp,LI:Qp,Link:xt,ListItem:Zp,Loader:ef,Modal:He,OL:tf,P:rf,Placeholder:nf,Pre:of,ResetWrapper:jn,ScrollArea:af,Separator:sf,Spaced:Ln,Span:lf,StorybookIcon:uf,StorybookLogo:cf,Symbols:df,SyntaxHighlighter:Rr,TT:pf,TabBar:ff,TabButton:hf,TabWrapper:mf,Table:yf,Tabs:gf,TabsState:bf,TooltipLinkList:Ef,TooltipMessage:vf,TooltipNote:St,UL:xf,WithTooltip:ut,WithTooltipPure:Mn,Zoom:Un,codeCommon:Mt,components:$n,createCopyToClipboardFunction:Sf,getStoryHref:wf,icons:Af,interleaveSeparators:Tf,nameSpaceClassNames:qn,resetComponents:Cf,withReset:Ut}=__STORYBOOK_COMPONENTS__});var NS,BS,jS,LS,ki,MS,Ur,Ii,US,$S,qS,VS,JS,zS,HS,Oi,GS,WS,Kn,KS,R,Yn,YS,Xn,XS,Qn=Qe(()=>{V();J();z();NS=__STORYBOOK_THEMING__,{CacheProvider:BS,ClassNames:jS,Global:LS,ThemeProvider:ki,background:MS,color:Ur,convert:Ii,create:US,createCache:$S,createGlobal:qS,createReset:VS,css:JS,darken:zS,ensure:HS,ignoreSsrWarning:Oi,isPropValid:GS,jsx:WS,keyframes:Kn,lighten:KS,styled:R,themes:Yn,typography:YS,useTheme:Xn,withTheme:XS}=__STORYBOOK_THEMING__});var iw,sw,lw,Zn,uw,cw,dw,pw,fw,hw,mw,yw,gw,bw,Ew,vw,xw,Sw,ww,Aw,Tw,Cw,kw,Iw,Ow,Dw,Rw,_w,Pw,Fw,Nw,Bw,jw,Lw,Mw,Uw,$w,qw,Vw,Jw,zw,Hw,Gw,Ww,Kw,Yw,Xw,_i,Pi,Qw,Fi,eo,Zw,eA,Ni,tA,rA,nA,oA,aA,iA,sA,lA,uA,cA,dA,pA,fA,hA,mA,yA,gA,bA,EA,vA,xA,SA,wA,AA,TA,CA,kA,IA,OA,DA,RA,_A,PA,$r,FA,NA,BA,jA,LA,MA,UA,Bi,ji,$A,qA,VA,JA,zA,HA,GA,WA,KA,YA,XA,QA,ZA,eT,tT,rT,nT,oT,aT,iT,sT,lT,uT,cT,dT,pT,fT,hT,mT,yT,gT,bT,ET,Li,vT,xT,ST,wT,AT,TT,CT,Mi,kT,IT,OT,DT,RT,_T,PT,FT,NT,BT,jT,LT,MT,UT,$T,qT,VT,JT,zT,HT,GT,WT,KT,YT,XT,QT,ZT,eC,tC,rC,nC,oC,aC,iC,sC,lC,uC,cC,dC,pC,fC,hC,mC,yC,gC,bC,EC,vC,xC,SC,wC,AC,TC,CC,kC,IC,OC,DC,RC,_C,PC,FC,NC,BC,jC,Ui,LC,MC,UC,$C,qC,VC,JC,zC,HC,GC,WC,KC,YC,to,XC,QC,ZC,e5,t5,r5,n5,o5,a5,i5,$i,s5,l5,u5,c5,d5,p5,qi,Vi,Ji,f5,ro=Qe(()=>{V();J();z();iw=__STORYBOOK_ICONS__,{AccessibilityAltIcon:sw,AccessibilityIcon:lw,AddIcon:Zn,AdminIcon:uw,AlertAltIcon:cw,AlertIcon:dw,AlignLeftIcon:pw,AlignRightIcon:fw,AppleIcon:hw,ArrowBottomLeftIcon:mw,ArrowBottomRightIcon:yw,ArrowDownIcon:gw,ArrowLeftIcon:bw,ArrowRightIcon:Ew,ArrowSolidDownIcon:vw,ArrowSolidLeftIcon:xw,ArrowSolidRightIcon:Sw,ArrowSolidUpIcon:ww,ArrowTopLeftIcon:Aw,ArrowTopRightIcon:Tw,ArrowUpIcon:Cw,AzureDevOpsIcon:kw,BackIcon:Iw,BasketIcon:Ow,BatchAcceptIcon:Dw,BatchDenyIcon:Rw,BeakerIcon:_w,BellIcon:Pw,BitbucketIcon:Fw,BoldIcon:Nw,BookIcon:Bw,BookmarkHollowIcon:jw,BookmarkIcon:Lw,BottomBarIcon:Mw,BottomBarToggleIcon:Uw,BoxIcon:$w,BranchIcon:qw,BrowserIcon:Vw,ButtonIcon:Jw,CPUIcon:zw,CalendarIcon:Hw,CameraIcon:Gw,CategoryIcon:Ww,CertificateIcon:Kw,ChangedIcon:Yw,ChatIcon:Xw,CheckIcon:_i,ChevronDownIcon:Pi,ChevronLeftIcon:Qw,ChevronRightIcon:Fi,ChevronSmallDownIcon:eo,ChevronSmallLeftIcon:Zw,ChevronSmallRightIcon:eA,ChevronSmallUpIcon:Ni,ChevronUpIcon:tA,ChromaticIcon:rA,ChromeIcon:nA,CircleHollowIcon:oA,CircleIcon:aA,ClearIcon:iA,CloseAltIcon:sA,CloseIcon:lA,CloudHollowIcon:uA,CloudIcon:cA,CogIcon:dA,CollapseIcon:pA,CommandIcon:fA,CommentAddIcon:hA,CommentIcon:mA,CommentsIcon:yA,CommitIcon:gA,CompassIcon:bA,ComponentDrivenIcon:EA,ComponentIcon:vA,ContrastIcon:xA,ControlsIcon:SA,CopyIcon:wA,CreditIcon:AA,CrossIcon:TA,DashboardIcon:CA,DatabaseIcon:kA,DeleteIcon:IA,DiamondIcon:OA,DirectionIcon:DA,DiscordIcon:RA,DocChartIcon:_A,DocListIcon:PA,DocumentIcon:$r,DownloadIcon:FA,DragIcon:NA,EditIcon:BA,EllipsisIcon:jA,EmailIcon:LA,ExpandAltIcon:MA,ExpandIcon:UA,EyeCloseIcon:Bi,EyeIcon:ji,FaceHappyIcon:$A,FaceNeutralIcon:qA,FaceSadIcon:VA,FacebookIcon:JA,FailedIcon:zA,FastForwardIcon:HA,FigmaIcon:GA,FilterIcon:WA,FlagIcon:KA,FolderIcon:YA,FormIcon:XA,GDriveIcon:QA,GithubIcon:ZA,GitlabIcon:eT,GlobeIcon:tT,GoogleIcon:rT,GraphBarIcon:nT,GraphLineIcon:oT,GraphqlIcon:aT,GridAltIcon:iT,GridIcon:sT,GrowIcon:lT,HeartHollowIcon:uT,HeartIcon:cT,HomeIcon:dT,HourglassIcon:pT,InfoIcon:fT,ItalicIcon:hT,JumpToIcon:mT,KeyIcon:yT,LightningIcon:gT,LightningOffIcon:bT,LinkBrokenIcon:ET,LinkIcon:Li,LinkedinIcon:vT,LinuxIcon:xT,ListOrderedIcon:ST,ListUnorderedIcon:wT,LocationIcon:AT,LockIcon:TT,MarkdownIcon:CT,MarkupIcon:Mi,MediumIcon:kT,MemoryIcon:IT,MenuIcon:OT,MergeIcon:DT,MirrorIcon:RT,MobileIcon:_T,MoonIcon:PT,NutIcon:FT,OutboxIcon:NT,OutlineIcon:BT,PaintBrushIcon:jT,PaperClipIcon:LT,ParagraphIcon:MT,PassedIcon:UT,PhoneIcon:$T,PhotoDragIcon:qT,PhotoIcon:VT,PinAltIcon:JT,PinIcon:zT,PlayAllHollowIcon:HT,PlayBackIcon:GT,PlayHollowIcon:WT,PlayIcon:KT,PlayNextIcon:YT,PlusIcon:XT,PointerDefaultIcon:QT,PointerHandIcon:ZT,PowerIcon:eC,PrintIcon:tC,ProceedIcon:rC,ProfileIcon:nC,PullRequestIcon:oC,QuestionIcon:aC,RSSIcon:iC,RedirectIcon:sC,ReduxIcon:lC,RefreshIcon:uC,ReplyIcon:cC,RepoIcon:dC,RequestChangeIcon:pC,RewindIcon:fC,RulerIcon:hC,SaveIcon:mC,SearchIcon:yC,ShareAltIcon:gC,ShareIcon:bC,ShieldIcon:EC,SideBySideIcon:vC,SidebarAltIcon:xC,SidebarAltToggleIcon:SC,SidebarIcon:wC,SidebarToggleIcon:AC,SpeakerIcon:TC,StackedIcon:CC,StarHollowIcon:kC,StarIcon:IC,StatusFailIcon:OC,StatusPassIcon:DC,StatusWarnIcon:RC,StickerIcon:_C,StopAltHollowIcon:PC,StopAltIcon:FC,StopIcon:NC,StorybookIcon:BC,StructureIcon:jC,SubtractIcon:Ui,SunIcon:LC,SupportIcon:MC,SwitchAltIcon:UC,SyncIcon:$C,TabletIcon:qC,ThumbsUpIcon:VC,TimeIcon:JC,TimerIcon:zC,TransferIcon:HC,TrashIcon:GC,TwitterIcon:WC,TypeIcon:KC,UbuntuIcon:YC,UndoIcon:to,UnfoldIcon:XC,UnlockIcon:QC,UnpinIcon:ZC,UploadIcon:e5,UserAddIcon:t5,UserAltIcon:r5,UserIcon:n5,UsersIcon:o5,VSCodeIcon:a5,VerifiedIcon:i5,VideoIcon:$i,WandIcon:s5,WatchIcon:l5,WindowsIcon:u5,WrenchIcon:c5,XIcon:d5,YoutubeIcon:p5,ZoomIcon:qi,ZoomOutIcon:Vi,ZoomResetIcon:Ji,iconList:f5}=__STORYBOOK_ICONS__});var Xl=bp((rn,Yl)=>{V();J();z();(function(e,t){typeof rn=="object"&&typeof Yl<"u"?t(rn):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.jtpp={}))})(rn,function(e){"use strict";function t(u){return u.text!==void 0&&u.text!==""?`'${u.type}' with value '${u.text}'`:`'${u.type}'`}class r extends Error{constructor(y){super(`No parslet found for token: ${t(y)}`),this.token=y,Object.setPrototypeOf(this,r.prototype)}getToken(){return this.token}}class n extends Error{constructor(y){super(`The parsing ended early. The next token was: ${t(y)}`),this.token=y,Object.setPrototypeOf(this,n.prototype)}getToken(){return this.token}}class o extends Error{constructor(y,v){let O=`Unexpected type: '${y.type}'.`;v!==void 0&&(O+=` Message: ${v}`),super(O),Object.setPrototypeOf(this,o.prototype)}}function a(u){return y=>y.startsWith(u)?{type:u,text:u}:null}function i(u){let y=0,v,O=u[0],j=!1;if(O!=="'"&&O!=='"')return null;for(;y{let y=c(u);return y==null?null:{type:"Identifier",text:y}};function f(u){return y=>{if(!y.startsWith(u))return null;let v=y[u.length];return v!==void 0&&s.test(v)?null:{type:u,text:u}}}let b=u=>{let y=i(u);return y==null?null:{type:"StringValue",text:y}},g=u=>u.length>0?null:{type:"EOF",text:""},x=u=>{let y=p(u);return y===null?null:{type:"Number",text:y}},S=[g,a("=>"),a("("),a(")"),a("{"),a("}"),a("["),a("]"),a("|"),a("&"),a("<"),a(">"),a(","),a(";"),a("*"),a("?"),a("!"),a("="),a(":"),a("..."),a("."),a("#"),a("~"),a("/"),a("@"),f("undefined"),f("null"),f("function"),f("this"),f("new"),f("module"),f("event"),f("external"),f("typeof"),f("keyof"),f("readonly"),f("import"),f("is"),f("in"),f("asserts"),x,h,b],A=/^\s*\n\s*/;class k{static create(y){let v=this.read(y);y=v.text;let O=this.read(y);return y=O.text,new k(y,void 0,v.token,O.token)}constructor(y,v,O,j){this.text="",this.text=y,this.previous=v,this.current=O,this.next=j}static read(y,v=!1){v=v||A.test(y),y=y.trim();for(let O of S){let j=O(y);if(j!==null){let q=Object.assign(Object.assign({},j),{startOfLine:v});return y=y.slice(q.text.length),{text:y,token:q}}}throw new Error("Unexpected Token "+y)}advance(){let y=k.read(this.text);return new k(y.text,this.current,this.next,y.token)}}function T(u){if(u===void 0)throw new Error("Unexpected undefined");if(u.type==="JsdocTypeKeyValue"||u.type==="JsdocTypeParameterList"||u.type==="JsdocTypeProperty"||u.type==="JsdocTypeReadonlyProperty"||u.type==="JsdocTypeObjectField"||u.type==="JsdocTypeJsdocObjectField"||u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType")throw new o(u);return u}function I(u){return u.type==="JsdocTypeKeyValue"?F(u):T(u)}function D(u){return u.type==="JsdocTypeName"?u:F(u)}function F(u){if(u.type!=="JsdocTypeKeyValue")throw new o(u);return u}function P(u){var y;if(u.type==="JsdocTypeVariadic"){if(((y=u.element)===null||y===void 0?void 0:y.type)==="JsdocTypeName")return u;throw new o(u)}if(u.type!=="JsdocTypeNumber"&&u.type!=="JsdocTypeName")throw new o(u);return u}function L(u){return u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"}var B;(function(u){u[u.ALL=0]="ALL",u[u.PARAMETER_LIST=1]="PARAMETER_LIST",u[u.OBJECT=2]="OBJECT",u[u.KEY_VALUE=3]="KEY_VALUE",u[u.INDEX_BRACKETS=4]="INDEX_BRACKETS",u[u.UNION=5]="UNION",u[u.INTERSECTION=6]="INTERSECTION",u[u.PREFIX=7]="PREFIX",u[u.INFIX=8]="INFIX",u[u.TUPLE=9]="TUPLE",u[u.SYMBOL=10]="SYMBOL",u[u.OPTIONAL=11]="OPTIONAL",u[u.NULLABLE=12]="NULLABLE",u[u.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",u[u.FUNCTION=14]="FUNCTION",u[u.ARROW=15]="ARROW",u[u.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",u[u.GENERIC=17]="GENERIC",u[u.NAME_PATH=18]="NAME_PATH",u[u.PARENTHESIS=19]="PARENTHESIS",u[u.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(B||(B={}));class G{constructor(y,v,O){this.grammar=y,typeof v=="string"?this._lexer=k.create(v):this._lexer=v,this.baseParser=O}get lexer(){return this._lexer}parse(){let y=this.parseType(B.ALL);if(this.lexer.current.type!=="EOF")throw new n(this.lexer.current);return y}parseType(y){return T(this.parseIntermediateType(y))}parseIntermediateType(y){let v=this.tryParslets(null,y);if(v===null)throw new r(this.lexer.current);return this.parseInfixIntermediateType(v,y)}parseInfixIntermediateType(y,v){let O=this.tryParslets(y,v);for(;O!==null;)y=O,O=this.tryParslets(y,v);return y}tryParslets(y,v){for(let O of this.grammar){let j=O(this,v,y);if(j!==null)return j}return null}consume(y){return Array.isArray(y)||(y=[y]),y.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(y){this._lexer=y.lexer}}function $(u){return u==="EOF"||u==="|"||u===","||u===")"||u===">"}let H=(u,y,v)=>{let O=u.lexer.current.type,j=u.lexer.next.type;return v==null&&O==="?"&&!$(j)||v!=null&&O==="?"?(u.consume("?"),v==null?{type:"JsdocTypeNullable",element:u.parseType(B.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:T(v),meta:{position:"suffix"}}):null};function w(u){let y=(v,O,j)=>{let q=v.lexer.current.type,W=v.lexer.next.type;if(j===null){if("parsePrefix"in u&&u.accept(q,W))return u.parsePrefix(v)}else if("parseInfix"in u&&u.precedence>O&&u.accept(q,W))return u.parseInfix(v,j);return null};return Object.defineProperty(y,"name",{value:u.name}),y}let C=w({name:"optionalParslet",accept:u=>u==="=",precedence:B.OPTIONAL,parsePrefix:u=>(u.consume("="),{type:"JsdocTypeOptional",element:u.parseType(B.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(u,y)=>(u.consume("="),{type:"JsdocTypeOptional",element:T(y),meta:{position:"suffix"}})}),_=w({name:"numberParslet",accept:u=>u==="Number",parsePrefix:u=>{let y=parseFloat(u.lexer.current.text);return u.consume("Number"),{type:"JsdocTypeNumber",value:y}}}),M=w({name:"parenthesisParslet",accept:u=>u==="(",parsePrefix:u=>{if(u.consume("("),u.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let y=u.parseIntermediateType(B.ALL);if(!u.consume(")"))throw new Error("Unterminated parenthesis");return y.type==="JsdocTypeParameterList"?y:y.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[y]}:{type:"JsdocTypeParenthesis",element:T(y)}}}),U=w({name:"specialTypesParslet",accept:(u,y)=>u==="?"&&$(y)||u==="null"||u==="undefined"||u==="*",parsePrefix:u=>{if(u.consume("null"))return{type:"JsdocTypeNull"};if(u.consume("undefined"))return{type:"JsdocTypeUndefined"};if(u.consume("*"))return{type:"JsdocTypeAny"};if(u.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+u.lexer.current.text)}}),K=w({name:"notNullableParslet",accept:u=>u==="!",precedence:B.NULLABLE,parsePrefix:u=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:u.parseType(B.NULLABLE),meta:{position:"prefix"}}),parseInfix:(u,y)=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:T(y),meta:{position:"suffix"}})});function re({allowTrailingComma:u}){return w({name:"parameterListParslet",accept:y=>y===",",precedence:B.PARAMETER_LIST,parseInfix:(y,v)=>{let O=[I(v)];y.consume(",");do try{let j=y.parseIntermediateType(B.PARAMETER_LIST);O.push(I(j))}catch(j){if(u&&j instanceof r)break;throw j}while(y.consume(","));if(O.length>0&&O.slice(0,-1).some(j=>j.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:O}}})}let Z=w({name:"genericParslet",accept:(u,y)=>u==="<"||u==="."&&y==="<",precedence:B.GENERIC,parseInfix:(u,y)=>{let v=u.consume(".");u.consume("<");let O=[];do O.push(u.parseType(B.PARAMETER_LIST));while(u.consume(","));if(!u.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:T(y),elements:O,meta:{brackets:"angle",dot:v}}}}),Y=w({name:"unionParslet",accept:u=>u==="|",precedence:B.UNION,parseInfix:(u,y)=>{u.consume("|");let v=[];do v.push(u.parseType(B.UNION));while(u.consume("|"));return{type:"JsdocTypeUnion",elements:[T(y),...v]}}}),ee=[H,C,_,M,U,K,re({allowTrailingComma:!0}),Z,Y,C];function ye({allowSquareBracketsOnAnyType:u,allowJsdocNamePaths:y,pathGrammar:v}){return function(j,q,W){if(W==null||q>=B.NAME_PATH)return null;let te=j.lexer.current.type,Ce=j.lexer.next.type;if(!(te==="."&&Ce!=="<"||te==="["&&(u||W.type==="JsdocTypeName")||y&&(te==="~"||te==="#")))return null;let Le,Or=!1;j.consume(".")?Le="property":j.consume("[")?(Le="property-brackets",Or=!0):j.consume("~")?Le="inner":(j.consume("#"),Le="instance");let Ua=v!==null?new G(v,j.lexer,j):j,Xe=Ua.parseIntermediateType(B.NAME_PATH);j.acceptLexerState(Ua);let ir;switch(Xe.type){case"JsdocTypeName":ir={type:"JsdocTypeProperty",value:Xe.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":ir={type:"JsdocTypeProperty",value:Xe.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":ir={type:"JsdocTypeProperty",value:Xe.value,meta:{quote:Xe.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Xe.specialType==="event")ir=Xe;else throw new o(Xe,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new o(Xe,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Or&&!j.consume("]")){let $a=j.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${$a.type}' with text '${$a.text}'`)}return{type:"JsdocTypeNamePath",left:T(W),right:ir,pathType:Le}}}function le({allowedAdditionalTokens:u}){return w({name:"nameParslet",accept:y=>y==="Identifier"||y==="this"||y==="new"||u.includes(y),parsePrefix:y=>{let{type:v,text:O}=y.lexer.current;return y.consume(v),{type:"JsdocTypeName",value:O}}})}let Ae=w({name:"stringValueParslet",accept:u=>u==="StringValue",parsePrefix:u=>{let y=u.lexer.current.text;return u.consume("StringValue"),{type:"JsdocTypeStringValue",value:y.slice(1,-1),meta:{quote:y[0]==="'"?"single":"double"}}}});function ne({pathGrammar:u,allowedTypes:y}){return w({name:"specialNamePathParslet",accept:v=>y.includes(v),parsePrefix:v=>{let O=v.lexer.current.type;if(v.consume(O),!v.consume(":"))return{type:"JsdocTypeName",value:O};let j,q=v.lexer.current;if(v.consume("StringValue"))j={type:"JsdocTypeSpecialNamePath",value:q.text.slice(1,-1),specialType:O,meta:{quote:q.text[0]==="'"?"single":"double"}};else{let Ce="",ve=["Identifier","@","/"];for(;ve.some(Le=>v.consume(Le));)Ce+=q.text,q=v.lexer.current;j={type:"JsdocTypeSpecialNamePath",value:Ce,specialType:O,meta:{quote:void 0}}}let W=new G(u,v.lexer,v),te=W.parseInfixIntermediateType(j,B.ALL);return v.acceptLexerState(W),T(te)}})}let qe=[le({allowedAdditionalTokens:["external","module"]}),Ae,_,ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],Be=[...qe,ne({allowedTypes:["event"],pathGrammar:qe})];function Ye(u){let y;if(u.type==="JsdocTypeParameterList")y=u.elements;else if(u.type==="JsdocTypeParenthesis")y=[u.element];else throw new o(u);return y.map(v=>I(v))}function nr(u){let y=Ye(u);if(y.some(v=>v.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return y}function Ft({allowNamedParameters:u,allowNoReturnType:y,allowWithoutParenthesis:v,allowNewAsFunctionKeyword:O}){return w({name:"functionParslet",accept:(j,q)=>j==="function"||O&&j==="new"&&q==="(",parsePrefix:j=>{let q=j.consume("new");j.consume("function");let W=j.lexer.current.type==="(";if(!W){if(!v)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let te={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:q,parenthesis:W},Ce=j.parseIntermediateType(B.FUNCTION);if(u===void 0)te.parameters=nr(Ce);else{if(q&&Ce.type==="JsdocTypeFunction"&&Ce.arrow)return te=Ce,te.constructor=!0,te;te.parameters=Ye(Ce);for(let ve of te.parameters)if(ve.type==="JsdocTypeKeyValue"&&!u.includes(ve.key))throw new Error(`only allowed named parameters are ${u.join(", ")} but got ${ve.type}`)}if(j.consume(":"))te.returnType=j.parseType(B.PREFIX);else if(!y)throw new Error("function is missing return type");return te}})}function or({allowPostfix:u,allowEnclosingBrackets:y}){return w({name:"variadicParslet",accept:v=>v==="...",precedence:B.PREFIX,parsePrefix:v=>{v.consume("...");let O=y&&v.consume("[");try{let j=v.parseType(B.PREFIX);if(O&&!v.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:T(j),meta:{position:"prefix",squareBrackets:O}}}catch(j){if(j instanceof r){if(O)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw j}},parseInfix:u?(v,O)=>(v.consume("..."),{type:"JsdocTypeVariadic",element:T(O),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let Cr=w({name:"symbolParslet",accept:u=>u==="(",precedence:B.SYMBOL,parseInfix:(u,y)=>{if(y.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");u.consume("(");let v={type:"JsdocTypeSymbol",value:y.value};if(!u.consume(")")){let O=u.parseIntermediateType(B.SYMBOL);if(v.element=P(O),!u.consume(")"))throw new Error("Symbol does not end after value")}return v}}),_e=w({name:"arrayBracketsParslet",precedence:B.ARRAY_BRACKETS,accept:(u,y)=>u==="["&&y==="]",parseInfix:(u,y)=>(u.consume("["),u.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[T(y)],meta:{brackets:"square",dot:!1}})});function De({objectFieldGrammar:u,allowKeyTypes:y}){return w({name:"objectParslet",accept:v=>v==="{",parsePrefix:v=>{v.consume("{");let O={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!v.consume("}")){let j,q=new G(u,v.lexer,v);for(;;){q.acceptLexerState(v);let W=q.parseIntermediateType(B.OBJECT);v.acceptLexerState(q),W===void 0&&y&&(W=v.parseIntermediateType(B.OBJECT));let te=!1;if(W.type==="JsdocTypeNullable"&&(te=!0,W=W.element),W.type==="JsdocTypeNumber"||W.type==="JsdocTypeName"||W.type==="JsdocTypeStringValue"){let ve;W.type==="JsdocTypeStringValue"&&(ve=W.meta.quote),O.elements.push({type:"JsdocTypeObjectField",key:W.value.toString(),right:void 0,optional:te,readonly:!1,meta:{quote:ve}})}else if(W.type==="JsdocTypeObjectField"||W.type==="JsdocTypeJsdocObjectField")O.elements.push(W);else throw new o(W);if(v.lexer.current.startOfLine)j="linebreak";else if(v.consume(","))j="comma";else if(v.consume(";"))j="semicolon";else break;if(v.lexer.current.type==="}")break}if(O.meta.separator=j??"comma",!v.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return O}})}function nt({allowSquaredProperties:u,allowKeyTypes:y,allowReadonly:v,allowOptional:O}){return w({name:"objectFieldParslet",precedence:B.KEY_VALUE,accept:j=>j===":",parseInfix:(j,q)=>{var W;let te=!1,Ce=!1;O&&q.type==="JsdocTypeNullable"&&(te=!0,q=q.element),v&&q.type==="JsdocTypeReadonlyProperty"&&(Ce=!0,q=q.element);let ve=(W=j.baseParser)!==null&&W!==void 0?W:j;if(ve.acceptLexerState(j),q.type==="JsdocTypeNumber"||q.type==="JsdocTypeName"||q.type==="JsdocTypeStringValue"||L(q)){if(L(q)&&!u)throw new o(q);ve.consume(":");let Le;q.type==="JsdocTypeStringValue"&&(Le=q.meta.quote);let Or=ve.parseType(B.KEY_VALUE);return j.acceptLexerState(ve),{type:"JsdocTypeObjectField",key:L(q)?q:q.value.toString(),right:Or,optional:te,readonly:Ce,meta:{quote:Le}}}else{if(!y)throw new o(q);ve.consume(":");let Le=ve.parseType(B.KEY_VALUE);return j.acceptLexerState(ve),{type:"JsdocTypeJsdocObjectField",left:T(q),right:Le}}}})}function Nt({allowOptional:u,allowVariadic:y}){return w({name:"keyValueParslet",precedence:B.KEY_VALUE,accept:v=>v===":",parseInfix:(v,O)=>{let j=!1,q=!1;if(u&&O.type==="JsdocTypeNullable"&&(j=!0,O=O.element),y&&O.type==="JsdocTypeVariadic"&&O.element!==void 0&&(q=!0,O=O.element),O.type!=="JsdocTypeName")throw new o(O);v.consume(":");let W=v.parseType(B.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:O.value,right:W,optional:j,variadic:q}}})}let kr=[...ee,Ft({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ae,ne({allowedTypes:["module","external","event"],pathGrammar:Be}),or({allowEnclosingBrackets:!0,allowPostfix:!0}),le({allowedAdditionalTokens:["keyof"]}),Cr,_e,ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Be})],An=[...kr,De({objectFieldGrammar:[le({allowedAdditionalTokens:["module","in"]}),nt({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...kr],allowKeyTypes:!0}),Nt({allowOptional:!0,allowVariadic:!0})],Na=w({name:"typeOfParslet",accept:u=>u==="typeof",parsePrefix:u=>(u.consume("typeof"),{type:"JsdocTypeTypeof",element:T(u.parseType(B.KEY_OF_TYPE_OF))})}),Vd=[le({allowedAdditionalTokens:["module","keyof","event","external","in"]}),H,C,Ae,_,nt({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Jd=[...ee,De({allowKeyTypes:!1,objectFieldGrammar:Vd}),le({allowedAdditionalTokens:["event","external","in"]}),Na,Ft({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),or({allowEnclosingBrackets:!1,allowPostfix:!1}),le({allowedAdditionalTokens:["keyof"]}),ne({allowedTypes:["module"],pathGrammar:Be}),ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Be}),Nt({allowOptional:!1,allowVariadic:!1}),Cr],zd=w({name:"assertsParslet",accept:u=>u==="asserts",parsePrefix:u=>{u.consume("asserts");let y=u.parseIntermediateType(B.SYMBOL);if(y.type!=="JsdocTypeName")throw new o(y,"A typescript asserts always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypeAsserts",left:y,right:T(u.parseIntermediateType(B.INFIX))}}});function Hd({allowQuestionMark:u}){return w({name:"tupleParslet",accept:y=>y==="[",parsePrefix:y=>{y.consume("[");let v={type:"JsdocTypeTuple",elements:[]};if(y.consume("]"))return v;let O=y.parseIntermediateType(B.ALL);if(O.type==="JsdocTypeParameterList"?O.elements[0].type==="JsdocTypeKeyValue"?v.elements=O.elements.map(F):v.elements=O.elements.map(T):O.type==="JsdocTypeKeyValue"?v.elements=[F(O)]:v.elements=[T(O)],!y.consume("]"))throw new Error("Unterminated '['");if(!u&&v.elements.some(j=>j.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return v}})}let Gd=w({name:"keyOfParslet",accept:u=>u==="keyof",parsePrefix:u=>(u.consume("keyof"),{type:"JsdocTypeKeyof",element:T(u.parseType(B.KEY_OF_TYPE_OF))})}),Wd=w({name:"importParslet",accept:u=>u==="import",parsePrefix:u=>{if(u.consume("import"),!u.consume("("))throw new Error("Missing parenthesis after import keyword");let y=u.parseType(B.PREFIX);if(y.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!u.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:y}}}),Kd=w({name:"readonlyPropertyParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:u.parseType(B.KEY_VALUE)})}),Yd=w({name:"arrowFunctionParslet",precedence:B.ARROW,accept:u=>u==="=>",parseInfix:(u,y)=>(u.consume("=>"),{type:"JsdocTypeFunction",parameters:Ye(y).map(D),arrow:!0,constructor:!1,parenthesis:!0,returnType:u.parseType(B.OBJECT)})}),Xd=w({name:"intersectionParslet",accept:u=>u==="&",precedence:B.INTERSECTION,parseInfix:(u,y)=>{u.consume("&");let v=[];do v.push(u.parseType(B.INTERSECTION));while(u.consume("&"));return{type:"JsdocTypeIntersection",elements:[T(y),...v]}}}),Qd=w({name:"predicateParslet",precedence:B.INFIX,accept:u=>u==="is",parseInfix:(u,y)=>{if(y.type!=="JsdocTypeName")throw new o(y,"A typescript predicate always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypePredicate",left:y,right:T(u.parseIntermediateType(B.INFIX))}}}),Zd=w({name:"objectSquareBracketPropertyParslet",accept:u=>u==="[",parsePrefix:u=>{if(u.baseParser===void 0)throw new Error("Only allowed inside object grammar");u.consume("[");let y=u.lexer.current.text;u.consume("Identifier");let v;if(u.consume(":")){let O=u.baseParser;O.acceptLexerState(u),v={type:"JsdocTypeIndexSignature",key:y,right:O.parseType(B.INDEX_BRACKETS)},u.acceptLexerState(O)}else if(u.consume("in")){let O=u.baseParser;O.acceptLexerState(u),v={type:"JsdocTypeMappedType",key:y,right:O.parseType(B.ARRAY_BRACKETS)},u.acceptLexerState(O)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!u.consume("]"))throw new Error("Unterminated square brackets");return v}}),ep=[Kd,le({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),H,C,Ae,_,nt({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Zd],tp=[...ee,De({allowKeyTypes:!1,objectFieldGrammar:ep}),Na,Gd,Wd,Ae,Ft({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Hd({allowQuestionMark:!1}),or({allowEnclosingBrackets:!1,allowPostfix:!1}),zd,le({allowedAdditionalTokens:["event","external","in"]}),ne({allowedTypes:["module"],pathGrammar:Be}),_e,Yd,ye({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:Be}),Xd,Qd,Nt({allowVariadic:!0,allowOptional:!0})];function Ba(u,y){switch(y){case"closure":return new G(Jd,u).parse();case"jsdoc":return new G(An,u).parse();case"typescript":return new G(tp,u).parse()}}function rp(u,y=["typescript","closure","jsdoc"]){let v;for(let O of y)try{return Ba(u,O)}catch(j){v=j}throw v}function ar(u,y){let v=u[y.type];if(v===void 0)throw new Error(`In this set of transform rules exists no rule for type ${y.type}.`);return v(y,O=>ar(u,O))}function Te(u){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function ja(u){let y={params:[]};for(let v of u.parameters)v.type==="JsdocTypeKeyValue"?v.key==="this"?y.this=v.right:v.key==="new"?y.new=v.right:y.params.push(v):y.params.push(v);return y}function Ir(u,y,v){return u==="prefix"?v+y:y+v}function ot(u,y){switch(y){case"double":return`"${u}"`;case"single":return`'${u}'`;case void 0:return u}}function La(){return{JsdocTypeParenthesis:(u,y)=>`(${u.element!==void 0?y(u.element):""})`,JsdocTypeKeyof:(u,y)=>`keyof ${y(u.element)}`,JsdocTypeFunction:(u,y)=>{if(u.arrow){if(u.returnType===void 0)throw new Error("Arrow function needs a return type.");let v=`(${u.parameters.map(y).join(", ")}) => ${y(u.returnType)}`;return u.constructor&&(v="new "+v),v}else{let v=u.constructor?"new":"function";return u.parenthesis&&(v+=`(${u.parameters.map(y).join(", ")})`,u.returnType!==void 0&&(v+=`: ${y(u.returnType)}`)),v}},JsdocTypeName:u=>u.value,JsdocTypeTuple:(u,y)=>`[${u.elements.map(y).join(", ")}]`,JsdocTypeVariadic:(u,y)=>u.meta.position===void 0?"...":Ir(u.meta.position,y(u.element),"..."),JsdocTypeNamePath:(u,y)=>{let v=y(u.left),O=y(u.right);switch(u.pathType){case"inner":return`${v}~${O}`;case"instance":return`${v}#${O}`;case"property":return`${v}.${O}`;case"property-brackets":return`${v}[${O}]`}},JsdocTypeStringValue:u=>ot(u.value,u.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(u,y)=>{if(u.meta.brackets==="square"){let v=u.elements[0],O=y(v);return v.type==="JsdocTypeUnion"||v.type==="JsdocTypeIntersection"?`(${O})[]`:`${O}[]`}else return`${y(u.left)}${u.meta.dot?".":""}<${u.elements.map(y).join(", ")}>`},JsdocTypeImport:(u,y)=>`import(${y(u.element)})`,JsdocTypeObjectField:(u,y)=>{let v="";return u.readonly&&(v+="readonly "),typeof u.key=="string"?v+=ot(u.key,u.meta.quote):v+=y(u.key),u.optional&&(v+="?"),u.right===void 0?v:v+`: ${y(u.right)}`},JsdocTypeJsdocObjectField:(u,y)=>`${y(u.left)}: ${y(u.right)}`,JsdocTypeKeyValue:(u,y)=>{let v=u.key;return u.optional&&(v+="?"),u.variadic&&(v="..."+v),u.right===void 0?v:v+`: ${y(u.right)}`},JsdocTypeSpecialNamePath:u=>`${u.specialType}:${ot(u.value,u.meta.quote)}`,JsdocTypeNotNullable:(u,y)=>Ir(u.meta.position,y(u.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(u,y)=>Ir(u.meta.position,y(u.element),"?"),JsdocTypeNumber:u=>u.value.toString(),JsdocTypeObject:(u,y)=>`{${u.elements.map(y).join((u.meta.separator==="comma"?",":";")+" ")}}`,JsdocTypeOptional:(u,y)=>Ir(u.meta.position,y(u.element),"="),JsdocTypeSymbol:(u,y)=>`${u.value}(${u.element!==void 0?y(u.element):""})`,JsdocTypeTypeof:(u,y)=>`typeof ${y(u.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(u,y)=>u.elements.map(y).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(u,y)=>u.elements.map(y).join(" & "),JsdocTypeProperty:u=>ot(u.value,u.meta.quote),JsdocTypePredicate:(u,y)=>`${y(u.left)} is ${y(u.right)}`,JsdocTypeIndexSignature:(u,y)=>`[${u.key}: ${y(u.right)}]`,JsdocTypeMappedType:(u,y)=>`[${u.key} in ${y(u.right)}]`,JsdocTypeAsserts:(u,y)=>`asserts ${y(u.left)} is ${y(u.right)}`}}let np=La();function op(u){return ar(np,u)}let ap=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function at(u){let y={type:"NameExpression",name:u};return ap.includes(u)&&(y.reservedWord=!0),y}let ip={JsdocTypeOptional:(u,y)=>{let v=y(u.element);return v.optional=!0,v},JsdocTypeNullable:(u,y)=>{let v=y(u.element);return v.nullable=!0,v},JsdocTypeNotNullable:(u,y)=>{let v=y(u.element);return v.nullable=!1,v},JsdocTypeVariadic:(u,y)=>{if(u.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let v=y(u.element);return v.repeatable=!0,v},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:u=>at(ot(u.value,u.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(u,y)=>{let v=ja(u),O={type:"FunctionType",params:v.params.map(y)};return v.this!==void 0&&(O.this=y(v.this)),v.new!==void 0&&(O.new=y(v.new)),u.returnType!==void 0&&(O.result=y(u.returnType)),O},JsdocTypeGeneric:(u,y)=>({type:"TypeApplication",applications:u.elements.map(v=>y(v)),expression:y(u.left)}),JsdocTypeSpecialNamePath:u=>at(u.specialType+":"+ot(u.value,u.meta.quote)),JsdocTypeName:u=>u.value!=="function"?at(u.value):{type:"FunctionType",params:[]},JsdocTypeNumber:u=>at(u.value.toString()),JsdocTypeObject:(u,y)=>{let v={type:"RecordType",fields:[]};for(let O of u.elements)O.type!=="JsdocTypeObjectField"&&O.type!=="JsdocTypeJsdocObjectField"?v.fields.push({type:"FieldType",key:y(O),value:void 0}):v.fields.push(y(O));return v},JsdocTypeObjectField:(u,y)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:at(ot(u.key,u.meta.quote)),value:u.right===void 0?void 0:y(u.right)}},JsdocTypeJsdocObjectField:(u,y)=>({type:"FieldType",key:y(u.left),value:y(u.right)}),JsdocTypeUnion:(u,y)=>({type:"TypeUnion",elements:u.elements.map(v=>y(v))}),JsdocTypeKeyValue:(u,y)=>({type:"FieldType",key:at(u.key),value:u.right===void 0?void 0:y(u.right)}),JsdocTypeNamePath:(u,y)=>{let v=y(u.left),O;u.right.type==="JsdocTypeSpecialNamePath"?O=y(u.right).name:O=ot(u.right.value,u.right.meta.quote);let j=u.pathType==="inner"?"~":u.pathType==="instance"?"#":".";return at(`${v.name}${j}${O}`)},JsdocTypeSymbol:u=>{let y="",v=u.element,O=!1;return v?.type==="JsdocTypeVariadic"&&(v.meta.position==="prefix"?y="...":O=!0,v=v.element),v?.type==="JsdocTypeName"?y+=v.value:v?.type==="JsdocTypeNumber"&&(y+=v.value.toString()),O&&(y+="..."),at(`${u.value}(${y})`)},JsdocTypeParenthesis:(u,y)=>y(T(u.element)),JsdocTypeMappedType:Te,JsdocTypeIndexSignature:Te,JsdocTypeImport:Te,JsdocTypeKeyof:Te,JsdocTypeTuple:Te,JsdocTypeTypeof:Te,JsdocTypeIntersection:Te,JsdocTypeProperty:Te,JsdocTypePredicate:Te,JsdocTypeAsserts:Te};function sp(u){return ar(ip,u)}function Et(u){switch(u){case void 0:return"none";case"single":return"single";case"double":return"double"}}function lp(u){switch(u){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function Tn(u,y){return y.length===2?{type:u,left:y[0],right:y[1]}:{type:u,left:y[0],right:Tn(u,y.slice(1))}}let up={JsdocTypeOptional:(u,y)=>({type:"OPTIONAL",value:y(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(u,y)=>({type:"NULLABLE",value:y(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(u,y)=>({type:"NOT_NULLABLE",value:y(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(u,y)=>{let v={type:"VARIADIC",meta:{syntax:u.meta.position==="prefix"?"PREFIX_DOTS":u.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return u.element!==void 0&&(v.value=y(u.element)),v},JsdocTypeName:u=>({type:"NAME",name:u.value}),JsdocTypeTypeof:(u,y)=>({type:"TYPE_QUERY",name:y(u.element)}),JsdocTypeTuple:(u,y)=>({type:"TUPLE",entries:u.elements.map(y)}),JsdocTypeKeyof:(u,y)=>({type:"KEY_QUERY",value:y(u.element)}),JsdocTypeImport:u=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:Et(u.element.meta.quote),string:u.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(u,y)=>{let v=ja(u),O={type:u.arrow?"ARROW":"FUNCTION",params:v.params.map(j=>{if(j.type==="JsdocTypeKeyValue"){if(j.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:j.key,typeName:y(j.right)}}else return y(j)}),new:null,returns:null};return v.this!==void 0?O.this=y(v.this):u.arrow||(O.this=null),v.new!==void 0&&(O.new=y(v.new)),u.returnType!==void 0&&(O.returns=y(u.returnType)),O},JsdocTypeGeneric:(u,y)=>{let v={type:"GENERIC",subject:y(u.left),objects:u.elements.map(y),meta:{syntax:u.meta.brackets==="square"?"SQUARE_BRACKET":u.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return u.meta.brackets==="square"&&u.elements[0].type==="JsdocTypeFunction"&&!u.elements[0].parenthesis&&(v.objects[0]={type:"NAME",name:"function"}),v},JsdocTypeObjectField:(u,y)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:Et(u.meta.quote),value:null,readonly:!1};let v=y(u.right);return u.optional&&(v={type:"OPTIONAL",value:v,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key.toString(),quoteStyle:Et(u.meta.quote),value:v,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(u,y)=>{if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:null,readonly:!1};let v=y(u.right);return u.optional&&(v={type:"OPTIONAL",value:v,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:v,readonly:!1}},JsdocTypeObject:(u,y)=>{let v=[];for(let O of u.elements)(O.type==="JsdocTypeObjectField"||O.type==="JsdocTypeJsdocObjectField")&&v.push(y(O));return{type:"RECORD",entries:v}},JsdocTypeSpecialNamePath:u=>{if(u.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${u.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:Et(u.meta.quote),path:u.value}}},JsdocTypeNamePath:(u,y)=>{let v=!1,O,j;u.right.type==="JsdocTypeSpecialNamePath"&&u.right.specialType==="event"?(v=!0,O=u.right.value,j=Et(u.right.meta.quote)):(O=u.right.value,j=Et(u.right.meta.quote));let q={type:lp(u.pathType),owner:y(u.left),name:O,quoteStyle:j,hasEventPrefix:v};if(q.owner.type==="MODULE"){let W=q.owner;return q.owner=q.owner.value,W.value=q,W}else return q},JsdocTypeUnion:(u,y)=>Tn("UNION",u.elements.map(y)),JsdocTypeParenthesis:(u,y)=>({type:"PARENTHESIS",value:y(T(u.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:u=>({type:"STRING_VALUE",quoteStyle:Et(u.meta.quote),string:u.value}),JsdocTypeIntersection:(u,y)=>Tn("INTERSECTION",u.elements.map(y)),JsdocTypeNumber:u=>({type:"NUMBER_VALUE",number:u.value.toString()}),JsdocTypeSymbol:Te,JsdocTypeProperty:Te,JsdocTypePredicate:Te,JsdocTypeMappedType:Te,JsdocTypeIndexSignature:Te,JsdocTypeAsserts:Te};function cp(u){return ar(up,u)}function dp(){return{JsdocTypeIntersection:(u,y)=>({type:"JsdocTypeIntersection",elements:u.elements.map(y)}),JsdocTypeGeneric:(u,y)=>({type:"JsdocTypeGeneric",left:y(u.left),elements:u.elements.map(y),meta:{dot:u.meta.dot,brackets:u.meta.brackets}}),JsdocTypeNullable:u=>u,JsdocTypeUnion:(u,y)=>({type:"JsdocTypeUnion",elements:u.elements.map(y)}),JsdocTypeUnknown:u=>u,JsdocTypeUndefined:u=>u,JsdocTypeTypeof:(u,y)=>({type:"JsdocTypeTypeof",element:y(u.element)}),JsdocTypeSymbol:(u,y)=>{let v={type:"JsdocTypeSymbol",value:u.value};return u.element!==void 0&&(v.element=y(u.element)),v},JsdocTypeOptional:(u,y)=>({type:"JsdocTypeOptional",element:y(u.element),meta:{position:u.meta.position}}),JsdocTypeObject:(u,y)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:u.elements.map(y)}),JsdocTypeNumber:u=>u,JsdocTypeNull:u=>u,JsdocTypeNotNullable:(u,y)=>({type:"JsdocTypeNotNullable",element:y(u.element),meta:{position:u.meta.position}}),JsdocTypeSpecialNamePath:u=>u,JsdocTypeObjectField:(u,y)=>({type:"JsdocTypeObjectField",key:u.key,right:u.right===void 0?void 0:y(u.right),optional:u.optional,readonly:u.readonly,meta:u.meta}),JsdocTypeJsdocObjectField:(u,y)=>({type:"JsdocTypeJsdocObjectField",left:y(u.left),right:y(u.right)}),JsdocTypeKeyValue:(u,y)=>({type:"JsdocTypeKeyValue",key:u.key,right:u.right===void 0?void 0:y(u.right),optional:u.optional,variadic:u.variadic}),JsdocTypeImport:(u,y)=>({type:"JsdocTypeImport",element:y(u.element)}),JsdocTypeAny:u=>u,JsdocTypeStringValue:u=>u,JsdocTypeNamePath:u=>u,JsdocTypeVariadic:(u,y)=>{let v={type:"JsdocTypeVariadic",meta:{position:u.meta.position,squareBrackets:u.meta.squareBrackets}};return u.element!==void 0&&(v.element=y(u.element)),v},JsdocTypeTuple:(u,y)=>({type:"JsdocTypeTuple",elements:u.elements.map(y)}),JsdocTypeName:u=>u,JsdocTypeFunction:(u,y)=>{let v={type:"JsdocTypeFunction",arrow:u.arrow,parameters:u.parameters.map(y),constructor:u.constructor,parenthesis:u.parenthesis};return u.returnType!==void 0&&(v.returnType=y(u.returnType)),v},JsdocTypeKeyof:(u,y)=>({type:"JsdocTypeKeyof",element:y(u.element)}),JsdocTypeParenthesis:(u,y)=>({type:"JsdocTypeParenthesis",element:y(u.element)}),JsdocTypeProperty:u=>u,JsdocTypePredicate:(u,y)=>({type:"JsdocTypePredicate",left:y(u.left),right:y(u.right)}),JsdocTypeIndexSignature:(u,y)=>({type:"JsdocTypeIndexSignature",key:u.key,right:y(u.right)}),JsdocTypeMappedType:(u,y)=>({type:"JsdocTypeMappedType",key:u.key,right:y(u.right)}),JsdocTypeAsserts:(u,y)=>({type:"JsdocTypeAsserts",left:y(u.left),right:y(u.right)})}}let Ma={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"]};function Cn(u,y,v,O,j){O?.(u,y,v);let q=Ma[u.type];for(let W of q){let te=u[W];if(te!==void 0)if(Array.isArray(te))for(let Ce of te)Cn(Ce,u,W,O,j);else Cn(te,u,W,O,j)}j?.(u,y,v)}function pp(u,y,v){Cn(u,void 0,void 0,y,v)}e.catharsisTransform=sp,e.identityTransformRules=dp,e.jtpTransform=cp,e.parse=Ba,e.stringify=op,e.stringifyRules=La,e.transform=ar,e.traverse=pp,e.tryParse=rp,e.visitorKeys=Ma})});var fc={};qa(fc,{ColorControl:()=>pc,default:()=>Qy});function Ot(){return(Ot=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}function Xo(e){var t=Re(e),r=Re(function(n){t.current&&t.current(n)});return t.current=e,r.current}function lc(e,t,r){var n=Xo(r),o=X(function(){return e.toHsva(t)}),a=o[0],i=o[1],l=Re({color:t,hsva:a});Se(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},i(c)}},[t,e]),Se(function(){var c;ic(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},n(c))},[a,e,n]);var s=xe(function(c){i(function(d){return Object.assign({},d,c)})},[]);return[a,s]}var fy,ec,hy,my,Ue,Kt,Er,Qo,Ku,Yu,na,vr,oa,Ee,yy,gy,Zo,by,Ey,vy,xy,tc,ea,ln,rc,Sy,on,wy,nc,oc,ac,ic,sc,Ay,Ty,Cy,Xu,uc,ky,Iy,Oy,Dy,cc,Ry,_y,Py,Fy,Ny,By,jy,Ly,My,Uy,$y,Qu,qy,Vy,dc,an,Jy,zy,Hy,ta,Gy,Wy,sn,Zu,Wt,Ky,Yy,un,Xy,pc,Qy,hc=Qe(()=>{V();J();z();In();Dr();_r();Qn();ro();fy=je({"../../node_modules/color-name/index.js"(e,t){t.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]}}}),ec=je({"../../node_modules/color-convert/conversions.js"(e,t){var r=fy(),n={};for(let i of Object.keys(r))n[r[i]]=i;var o={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"]}};t.exports=o;for(let i of Object.keys(o)){if(!("channels"in o[i]))throw new Error("missing channels property: "+i);if(!("labels"in o[i]))throw new Error("missing channel labels property: "+i);if(o[i].labels.length!==o[i].channels)throw new Error("channel and label counts mismatch: "+i);let{channels:l,labels:s}=o[i];delete o[i].channels,delete o[i].labels,Object.defineProperty(o[i],"channels",{value:l}),Object.defineProperty(o[i],"labels",{value:s})}o.rgb.hsl=function(i){let l=i[0]/255,s=i[1]/255,c=i[2]/255,d=Math.min(l,s,c),p=Math.max(l,s,c),h=p-d,f,b;p===d?f=0:l===p?f=(s-c)/h:s===p?f=2+(c-l)/h:c===p&&(f=4+(l-s)/h),f=Math.min(f*60,360),f<0&&(f+=360);let g=(d+p)/2;return p===d?b=0:g<=.5?b=h/(p+d):b=h/(2-p-d),[f,b*100,g*100]},o.rgb.hsv=function(i){let l,s,c,d,p,h=i[0]/255,f=i[1]/255,b=i[2]/255,g=Math.max(h,f,b),x=g-Math.min(h,f,b),S=function(A){return(g-A)/6/x+1/2};return x===0?(d=0,p=0):(p=x/g,l=S(h),s=S(f),c=S(b),h===g?d=c-s:f===g?d=1/3+l-c:b===g&&(d=2/3+s-l),d<0?d+=1:d>1&&(d-=1)),[d*360,p*100,g*100]},o.rgb.hwb=function(i){let l=i[0],s=i[1],c=i[2],d=o.rgb.hsl(i)[0],p=1/255*Math.min(l,Math.min(s,c));return c=1-1/255*Math.max(l,Math.max(s,c)),[d,p*100,c*100]},o.rgb.cmyk=function(i){let l=i[0]/255,s=i[1]/255,c=i[2]/255,d=Math.min(1-l,1-s,1-c),p=(1-l-d)/(1-d)||0,h=(1-s-d)/(1-d)||0,f=(1-c-d)/(1-d)||0;return[p*100,h*100,f*100,d*100]};function a(i,l){return(i[0]-l[0])**2+(i[1]-l[1])**2+(i[2]-l[2])**2}o.rgb.keyword=function(i){let l=n[i];if(l)return l;let s=1/0,c;for(let d of Object.keys(r)){let p=r[d],h=a(i,p);h.04045?((l+.055)/1.055)**2.4:l/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92;let d=l*.4124+s*.3576+c*.1805,p=l*.2126+s*.7152+c*.0722,h=l*.0193+s*.1192+c*.9505;return[d*100,p*100,h*100]},o.rgb.lab=function(i){let l=o.rgb.xyz(i),s=l[0],c=l[1],d=l[2];s/=95.047,c/=100,d/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,d=d>.008856?d**(1/3):7.787*d+16/116;let p=116*c-16,h=500*(s-c),f=200*(c-d);return[p,h,f]},o.hsl.rgb=function(i){let l=i[0]/360,s=i[1]/100,c=i[2]/100,d,p,h;if(s===0)return h=c*255,[h,h,h];c<.5?d=c*(1+s):d=c+s-c*s;let f=2*c-d,b=[0,0,0];for(let g=0;g<3;g++)p=l+1/3*-(g-1),p<0&&p++,p>1&&p--,6*p<1?h=f+(d-f)*6*p:2*p<1?h=d:3*p<2?h=f+(d-f)*(2/3-p)*6:h=f,b[g]=h*255;return b},o.hsl.hsv=function(i){let l=i[0],s=i[1]/100,c=i[2]/100,d=s,p=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,d*=p<=1?p:2-p;let h=(c+s)/2,f=c===0?2*d/(p+d):2*s/(c+s);return[l,f*100,h*100]},o.hsv.rgb=function(i){let l=i[0]/60,s=i[1]/100,c=i[2]/100,d=Math.floor(l)%6,p=l-Math.floor(l),h=255*c*(1-s),f=255*c*(1-s*p),b=255*c*(1-s*(1-p));switch(c*=255,d){case 0:return[c,b,h];case 1:return[f,c,h];case 2:return[h,c,b];case 3:return[h,f,c];case 4:return[b,h,c];case 5:return[c,h,f]}},o.hsv.hsl=function(i){let l=i[0],s=i[1]/100,c=i[2]/100,d=Math.max(c,.01),p,h;h=(2-s)*c;let f=(2-s)*d;return p=s*d,p/=f<=1?f:2-f,p=p||0,h/=2,[l,p*100,h*100]},o.hwb.rgb=function(i){let l=i[0]/360,s=i[1]/100,c=i[2]/100,d=s+c,p;d>1&&(s/=d,c/=d);let h=Math.floor(6*l),f=1-c;p=6*l-h,h&1&&(p=1-p);let b=s+p*(f-s),g,x,S;switch(h){default:case 6:case 0:g=f,x=b,S=s;break;case 1:g=b,x=f,S=s;break;case 2:g=s,x=f,S=b;break;case 3:g=s,x=b,S=f;break;case 4:g=b,x=s,S=f;break;case 5:g=f,x=s,S=b;break}return[g*255,x*255,S*255]},o.cmyk.rgb=function(i){let l=i[0]/100,s=i[1]/100,c=i[2]/100,d=i[3]/100,p=1-Math.min(1,l*(1-d)+d),h=1-Math.min(1,s*(1-d)+d),f=1-Math.min(1,c*(1-d)+d);return[p*255,h*255,f*255]},o.xyz.rgb=function(i){let l=i[0]/100,s=i[1]/100,c=i[2]/100,d,p,h;return d=l*3.2406+s*-1.5372+c*-.4986,p=l*-.9689+s*1.8758+c*.0415,h=l*.0557+s*-.204+c*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,p=p>.0031308?1.055*p**(1/2.4)-.055:p*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,d=Math.min(Math.max(0,d),1),p=Math.min(Math.max(0,p),1),h=Math.min(Math.max(0,h),1),[d*255,p*255,h*255]},o.xyz.lab=function(i){let l=i[0],s=i[1],c=i[2];l/=95.047,s/=100,c/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let d=116*s-16,p=500*(l-s),h=200*(s-c);return[d,p,h]},o.lab.xyz=function(i){let l=i[0],s=i[1],c=i[2],d,p,h;p=(l+16)/116,d=s/500+p,h=p-c/200;let f=p**3,b=d**3,g=h**3;return p=f>.008856?f:(p-16/116)/7.787,d=b>.008856?b:(d-16/116)/7.787,h=g>.008856?g:(h-16/116)/7.787,d*=95.047,p*=100,h*=108.883,[d,p,h]},o.lab.lch=function(i){let l=i[0],s=i[1],c=i[2],d;d=Math.atan2(c,s)*360/2/Math.PI,d<0&&(d+=360);let p=Math.sqrt(s*s+c*c);return[l,p,d]},o.lch.lab=function(i){let l=i[0],s=i[1],c=i[2]/360*2*Math.PI,d=s*Math.cos(c),p=s*Math.sin(c);return[l,d,p]},o.rgb.ansi16=function(i,l=null){let[s,c,d]=i,p=l===null?o.rgb.hsv(i)[2]:l;if(p=Math.round(p/50),p===0)return 30;let h=30+(Math.round(d/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return p===2&&(h+=60),h},o.hsv.ansi16=function(i){return o.rgb.ansi16(o.hsv.rgb(i),i[2])},o.rgb.ansi256=function(i){let l=i[0],s=i[1],c=i[2];return l===s&&s===c?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)},o.ansi16.rgb=function(i){let l=i%10;if(l===0||l===7)return i>50&&(l+=3.5),l=l/10.5*255,[l,l,l];let s=(~~(i>50)+1)*.5,c=(l&1)*s*255,d=(l>>1&1)*s*255,p=(l>>2&1)*s*255;return[c,d,p]},o.ansi256.rgb=function(i){if(i>=232){let p=(i-232)*10+8;return[p,p,p]}i-=16;let l,s=Math.floor(i/36)/5*255,c=Math.floor((l=i%36)/6)/5*255,d=l%6/5*255;return[s,c,d]},o.rgb.hex=function(i){let l=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(l.length)+l},o.hex.rgb=function(i){let l=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];let s=l[0];l[0].length===3&&(s=s.split("").map(f=>f+f).join(""));let c=parseInt(s,16),d=c>>16&255,p=c>>8&255,h=c&255;return[d,p,h]},o.rgb.hcg=function(i){let l=i[0]/255,s=i[1]/255,c=i[2]/255,d=Math.max(Math.max(l,s),c),p=Math.min(Math.min(l,s),c),h=d-p,f,b;return h<1?f=p/(1-h):f=0,h<=0?b=0:d===l?b=(s-c)/h%6:d===s?b=2+(c-l)/h:b=4+(l-s)/h,b/=6,b%=1,[b*360,h*100,f*100]},o.hsl.hcg=function(i){let l=i[1]/100,s=i[2]/100,c=s<.5?2*l*s:2*l*(1-s),d=0;return c<1&&(d=(s-.5*c)/(1-c)),[i[0],c*100,d*100]},o.hsv.hcg=function(i){let l=i[1]/100,s=i[2]/100,c=l*s,d=0;return c<1&&(d=(s-c)/(1-c)),[i[0],c*100,d*100]},o.hcg.rgb=function(i){let l=i[0]/360,s=i[1]/100,c=i[2]/100;if(s===0)return[c*255,c*255,c*255];let d=[0,0,0],p=l%1*6,h=p%1,f=1-h,b=0;switch(Math.floor(p)){case 0:d[0]=1,d[1]=h,d[2]=0;break;case 1:d[0]=f,d[1]=1,d[2]=0;break;case 2:d[0]=0,d[1]=1,d[2]=h;break;case 3:d[0]=0,d[1]=f,d[2]=1;break;case 4:d[0]=h,d[1]=0,d[2]=1;break;default:d[0]=1,d[1]=0,d[2]=f}return b=(1-s)*c,[(s*d[0]+b)*255,(s*d[1]+b)*255,(s*d[2]+b)*255]},o.hcg.hsv=function(i){let l=i[1]/100,s=i[2]/100,c=l+s*(1-l),d=0;return c>0&&(d=l/c),[i[0],d*100,c*100]},o.hcg.hsl=function(i){let l=i[1]/100,s=i[2]/100*(1-l)+.5*l,c=0;return s>0&&s<.5?c=l/(2*s):s>=.5&&s<1&&(c=l/(2*(1-s))),[i[0],c*100,s*100]},o.hcg.hwb=function(i){let l=i[1]/100,s=i[2]/100,c=l+s*(1-l);return[i[0],(c-l)*100,(1-c)*100]},o.hwb.hcg=function(i){let l=i[1]/100,s=1-i[2]/100,c=s-l,d=0;return c<1&&(d=(s-c)/(1-c)),[i[0],c*100,d*100]},o.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},o.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},o.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},o.gray.hsl=function(i){return[0,0,i[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(i){return[0,100,i[0]]},o.gray.cmyk=function(i){return[0,0,0,i[0]]},o.gray.lab=function(i){return[i[0],0,0]},o.gray.hex=function(i){let l=Math.round(i[0]/100*255)&255,s=((l<<16)+(l<<8)+l).toString(16).toUpperCase();return"000000".substring(s.length)+s},o.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]}}}),hy=je({"../../node_modules/color-convert/route.js"(e,t){var r=ec();function n(){let l={},s=Object.keys(r);for(let c=s.length,d=0;d1&&(d=p),s(d))};return"conversion"in s&&(c.conversion=s.conversion),c}function l(s){let c=function(...d){let p=d[0];if(p==null)return p;p.length>1&&(d=p);let h=s(d);if(typeof h=="object")for(let f=h.length,b=0;b{o[s]={},Object.defineProperty(o[s],"channels",{value:r[s].channels}),Object.defineProperty(o[s],"labels",{value:r[s].labels});let c=n(s);Object.keys(c).forEach(d=>{let p=c[d];o[s][d]=l(p),o[s][d].raw=i(p)})}),t.exports=o}}),Ue=Lt(my());Kt=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e0:x.buttons>0)&&o.current?a(Ku(o.current,x,l.current)):g(!1)},b=function(){return g(!1)};function g(x){var S=s.current,A=Qo(o.current),k=x?A.addEventListener:A.removeEventListener;k(S?"touchmove":"mousemove",f),k(S?"touchend":"mouseup",b)}return[function(x){var S=x.nativeEvent,A=o.current;if(A&&(Yu(S),!function(T,I){return I&&!Er(T)}(S,s.current)&&A)){if(Er(S)){s.current=!0;var k=S.changedTouches||[];k.length&&(l.current=k[0].identifier)}A.focus(),a(Ku(A,S,l.current)),g(!0)}},function(x){var S=x.which||x.keyCode;S<37||S>40||(x.preventDefault(),i({left:S===39?.05:S===37?-.05:0,top:S===40?.05:S===38?-.05:0}))},g]},[i,a]),d=c[0],p=c[1],h=c[2];return Se(function(){return h},[h]),m.createElement("div",Ot({},n,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:p,tabIndex:0,role:"slider"}))}),vr=function(e){return e.filter(Boolean).join(" ")},oa=function(e){var t=e.color,r=e.left,n=e.top,o=n===void 0?.5:n,a=vr(["react-colorful__pointer",e.className]);return m.createElement("div",{className:a,style:{top:100*o+"%",left:100*r+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Ee=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},yy={grad:.9,turn:360,rad:360/(2*Math.PI)},gy=function(e){return nc(Zo(e))},Zo=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Ee(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?Ee(parseInt(e.substring(6,8),16)/255,2):1}},by=function(e,t){return t===void 0&&(t="deg"),Number(e)*(yy[t]||1)},Ey=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?vy({h:by(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},vy=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},xy=function(e){return wy(rc(e))},tc=function(e){var t=e.s,r=e.v,n=e.a,o=(200-t)*r/100;return{h:Ee(e.h),s:Ee(o>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0),l:Ee(o/2),a:Ee(n,2)}},ea=function(e){var t=tc(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},ln=function(e){var t=tc(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},rc=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),i=n*(1-r),l=n*(1-(t-a)*r),s=n*(1-(1-t+a)*r),c=a%6;return{r:Ee(255*[n,l,i,i,s,n][c]),g:Ee(255*[s,n,n,l,i,i][c]),b:Ee(255*[i,i,s,n,n,l][c]),a:Ee(o,2)}},Sy=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?nc({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},on=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},wy=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=o<1?on(Ee(255*o)):"";return"#"+on(t)+on(r)+on(n)+a},nc=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),i=a-Math.min(t,r,n),l=i?a===t?(r-n)/i:a===r?2+(n-t)/i:4+(t-r)/i:0;return{h:Ee(60*(l<0?l+6:l)),s:Ee(a?i/a*100:0),v:Ee(a/255*100),a:o}},oc=m.memo(function(e){var t=e.hue,r=e.onChange,n=vr(["react-colorful__hue",e.className]);return m.createElement("div",{className:n},m.createElement(na,{onMove:function(o){r({h:360*o.left})},onKey:function(o){r({h:Kt(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":Ee(t),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(oa,{className:"react-colorful__hue-pointer",left:t/360,color:ea({h:t,s:100,v:100,a:1})})))}),ac=m.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:ea({h:t.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:n},m.createElement(na,{onMove:function(o){r({s:100*o.left,v:100-100*o.top})},onKey:function(o){r({s:Kt(t.s+100*o.left,0,100),v:Kt(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Ee(t.s)+"%, Brightness "+Ee(t.v)+"%"},m.createElement(oa,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:ea(t)})))}),ic=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},sc=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Ay=function(e,t){return e.toLowerCase()===t.toLowerCase()||ic(Zo(e),Zo(t))};Ty=typeof window<"u"?ei:Se,Cy=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Xu=new Map,uc=function(e){Ty(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!Xu.has(t)){var r=t.createElement("style");r.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}`,Xu.set(t,r);var n=Cy();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])},ky=function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,i=ra(e,["className","colorModel","color","onChange"]),l=Re(null);uc(l);var s=lc(r,o,a),c=s[0],d=s[1],p=vr(["react-colorful",t]);return m.createElement("div",Ot({},i,{ref:l,className:p}),m.createElement(ac,{hsva:c,onChange:d}),m.createElement(oc,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Iy={defaultColor:"000",toHsva:gy,fromHsva:function(e){return xy({h:e.h,s:e.s,v:e.v,a:1})},equal:Ay},Oy=function(e){return m.createElement(ky,Ot({},e,{colorModel:Iy}))},Dy=function(e){var t=e.className,r=e.hsva,n=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+ln(Object.assign({},r,{a:0}))+", "+ln(Object.assign({},r,{a:1}))+")"},a=vr(["react-colorful__alpha",t]),i=Ee(100*r.a);return m.createElement("div",{className:a},m.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),m.createElement(na,{onMove:function(l){n({a:l.left})},onKey:function(l){n({a:Kt(r.a+l.left)})},"aria-label":"Alpha","aria-valuetext":i+"%","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(oa,{className:"react-colorful__alpha-pointer",left:r.a,color:ln(r)})))},cc=function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,i=ra(e,["className","colorModel","color","onChange"]),l=Re(null);uc(l);var s=lc(r,o,a),c=s[0],d=s[1],p=vr(["react-colorful",t]);return m.createElement("div",Ot({},i,{ref:l,className:p}),m.createElement(ac,{hsva:c,onChange:d}),m.createElement(oc,{hue:c.h,onChange:d}),m.createElement(Dy,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ry={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Ey,fromHsva:ln,equal:sc},_y=function(e){return m.createElement(cc,Ot({},e,{colorModel:Ry}))},Py={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Sy,fromHsva:function(e){var t=rc(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:sc},Fy=function(e){return m.createElement(cc,Ot({},e,{colorModel:Py}))},Ny=R.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),By=R(ut)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),jy=R.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"}}),Ly=R(St)(({theme:e})=>({fontFamily:e.typography.fonts.base})),My=R.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Uy=R.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),$y=`url('data:image/svg+xml;charset=utf-8,')`,Qu=({value:e,style:t,...r})=>{let n=`linear-gradient(${e}, ${e}), ${$y}, linear-gradient(#fff, #fff)`;return m.createElement(Uy,{...r,style:{...t,backgroundImage:n}})},qy=R(Ve.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vy=R(Mi)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),dc=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(dc||{}),an=Object.values(dc),Jy=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,zy=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Hy=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,ta=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Gy=/^\s*#?([0-9a-f]{3})\s*$/i,Wy={hex:Oy,rgb:Fy,hsl:_y},sn={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Zu=e=>{let t=e?.match(Jy);if(!t)return[0,0,0,1];let[,r,n,o,a=1]=t;return[r,n,o,a].map(Number)},Wt=e=>{if(!e)return;let t=!0;if(zy.test(e)){let[i,l,s,c]=Zu(e),[d,p,h]=Ue.default.rgb.hsl([i,l,s])||[0,0,0];return{valid:t,value:e,keyword:Ue.default.rgb.keyword([i,l,s]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${p}%, ${h}%, ${c})`,hex:`#${Ue.default.rgb.hex([i,l,s]).toLowerCase()}`}}if(Hy.test(e)){let[i,l,s,c]=Zu(e),[d,p,h]=Ue.default.hsl.rgb([i,l,s])||[0,0,0];return{valid:t,value:e,keyword:Ue.default.hsl.keyword([i,l,s]),colorSpace:"hsl",rgb:`rgba(${d}, ${p}, ${h}, ${c})`,hsl:e,hex:`#${Ue.default.hsl.hex([i,l,s]).toLowerCase()}`}}let r=e.replace("#",""),n=Ue.default.keyword.rgb(r)||Ue.default.hex.rgb(r),o=Ue.default.rgb.hsl(n),a=e;if(/[^#a-f0-9]/i.test(e)?a=r:ta.test(e)&&(a=`#${r}`),a.startsWith("#"))t=ta.test(a);else try{Ue.default.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:Ue.default.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Ky=(e,t,r)=>{if(!e||!t?.valid)return sn[r];if(r!=="hex")return t?.[r]||sn[r];if(!t.hex.startsWith("#"))try{return`#${Ue.default.keyword.hex(t.hex)}`}catch{return sn.hex}let n=t.hex.match(Gy);if(!n)return ta.test(t.hex)?t.hex:sn.hex;let[o,a,i]=n[1].split("");return`#${o}${o}${a}${a}${i}${i}`},Yy=(e,t)=>{let[r,n]=X(e||""),[o,a]=X(()=>Wt(r)),[i,l]=X(o?.colorSpace||"hex");Se(()=>{let p=e||"",h=Wt(p);n(p),a(h),l(h?.colorSpace||"hex")},[e]);let s=st(()=>Ky(r,o,i).toLowerCase(),[r,o,i]),c=xe(p=>{let h=Wt(p),f=h?.value||p||"";n(f),f===""&&(a(void 0),t(void 0)),h&&(a(h),l(h.colorSpace),t(h.value))},[t]),d=xe(()=>{let p=an.indexOf(i)+1;p>=an.length&&(p=0),l(an[p]);let h=o?.[an[p]]||"";n(h),t(h)},[o,i,t]);return{value:r,realValue:s,updateValue:c,color:o,colorSpace:i,cycleColorSpace:d}},un=e=>e.replace(/\s*/,"").toLowerCase(),Xy=(e,t,r)=>{let[n,o]=X(t?.valid?[t]:[]);Se(()=>{t===void 0&&o([])},[t]);let a=st(()=>(e||[]).map(l=>typeof l=="string"?Wt(l):l.title?{...Wt(l.color),keyword:l.title}:Wt(l.color)).concat(n).filter(Boolean).slice(-27),[e,n]),i=xe(l=>{l?.valid&&(a.some(s=>un(s[r])===un(l[r]))||o(s=>s.concat(l)))},[r,a]);return{presets:a,addPreset:i}},pc=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,presetColors:a,startOpen:i=!1,argType:l})=>{let s=xe(Ha(r,200),[r]),{value:c,realValue:d,updateValue:p,color:h,colorSpace:f,cycleColorSpace:b}=Yy(t,s),{presets:g,addPreset:x}=Xy(a,h,f),S=Wy[f],A=!!l?.table?.readonly;return m.createElement(Ny,{"aria-readonly":A},m.createElement(By,{startOpen:i,trigger:A?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>x(h),tooltip:m.createElement(jy,null,m.createElement(S,{color:d==="transparent"?"#000000":d,onChange:p,onFocus:n,onBlur:o}),g.length>0&&m.createElement(My,null,g.map((k,T)=>m.createElement(ut,{key:`${k.value}-${T}`,hasChrome:!1,tooltip:m.createElement(Ly,{note:k.keyword||k.value})},m.createElement(Qu,{value:k[f],active:h&&un(k[f])===un(h[f]),onClick:()=>p(k.value)})))))},m.createElement(Qu,{value:d,style:{margin:4}})),m.createElement(qy,{id:Fe(e),value:c,onChange:k=>p(k.target.value),onFocus:k=>k.target.select(),readOnly:A,placeholder:"Choose color..."}),c?m.createElement(Vy,{onClick:b}):null)},Qy=pc});V();J();z();V();J();z();V();J();z();In();Dr();Dr();_r();V();J();z();V();J();z();var xx=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:ri,ARGTYPES_INFO_RESPONSE:Vn,CHANNEL_CREATED:Sx,CHANNEL_WS_DISCONNECT:wx,CONFIG_ERROR:ni,CREATE_NEW_STORYFILE_REQUEST:Ax,CREATE_NEW_STORYFILE_RESPONSE:Tx,CURRENT_STORY_WAS_SET:Jn,DOCS_PREPARED:oi,DOCS_RENDERED:Pr,FILE_COMPONENT_SEARCH_REQUEST:Cx,FILE_COMPONENT_SEARCH_RESPONSE:kx,FORCE_REMOUNT:ai,FORCE_RE_RENDER:Fr,GLOBALS_UPDATED:$t,NAVIGATE_URL:ii,PLAY_FUNCTION_THREW_EXCEPTION:si,PRELOAD_ENTRIES:li,PREVIEW_BUILDER_PROGRESS:Ix,PREVIEW_KEYDOWN:ui,REGISTER_SUBSCRIPTION:Ox,REQUEST_WHATS_NEW_DATA:Dx,RESET_STORY_ARGS:Nr,RESULT_WHATS_NEW_DATA:Rx,SAVE_STORY_REQUEST:zn,SAVE_STORY_RESPONSE:Br,SELECT_STORY:_x,SET_CONFIG:Px,SET_CURRENT_STORY:ci,SET_FILTER:Fx,SET_GLOBALS:di,SET_INDEX:Nx,SET_STORIES:Bx,SET_WHATS_NEW_CACHE:jx,SHARED_STATE_CHANGED:Lx,SHARED_STATE_SET:Mx,STORIES_COLLAPSE_ALL:Ux,STORIES_EXPAND_ALL:$x,STORY_ARGS_UPDATED:pi,STORY_CHANGED:fi,STORY_ERRORED:hi,STORY_INDEX_INVALIDATED:mi,STORY_MISSING:Hn,STORY_PREPARED:yi,STORY_RENDERED:cr,STORY_RENDER_PHASE_CHANGED:qt,STORY_SPECIFIED:gi,STORY_THREW_EXCEPTION:bi,STORY_UNCHANGED:Ei,TELEMETRY_ERROR:qx,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:Vx,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:Jx,TESTING_MODULE_CRASH_REPORT:zx,TESTING_MODULE_PROGRESS_REPORT:Hx,TESTING_MODULE_RUN_ALL_REQUEST:Gx,TESTING_MODULE_RUN_REQUEST:Wx,TESTING_MODULE_WATCH_MODE_REQUEST:Kx,TOGGLE_WHATS_NEW_NOTIFICATIONS:Yx,UNHANDLED_ERRORS_WHILE_PLAYING:vi,UPDATE_GLOBALS:jr,UPDATE_QUERY_PARAMS:xi,UPDATE_STORY_ARGS:Lr}=__STORYBOOK_CORE_EVENTS__;V();J();z();var iS=__STORYBOOK_API__,{ActiveTabs:sS,Consumer:lS,ManagerContext:uS,Provider:cS,RequestResponseError:dS,addons:Mr,combineParameters:pS,controlOrMetaKey:fS,controlOrMetaSymbol:hS,eventMatchesShortcut:mS,eventToShortcut:yS,experimental_requestResponse:Gn,isMacLike:gS,isShortcutTaken:bS,keyToSymbol:ES,merge:vS,mockChannel:xS,optionOrAltSymbol:SS,shortcutMatchesShortcut:wS,shortcutToHumanString:AS,types:Si,useAddonState:TS,useArgTypes:Wn,useArgs:wi,useChannel:CS,useGlobalTypes:kS,useGlobals:Ai,useParameter:Ti,useSharedState:IS,useStoryPrepared:OS,useStorybookApi:DS,useStorybookState:Ci}=__STORYBOOK_API__;Qn();V();J();z();var Di=Object.prototype.hasOwnProperty;function Ri(e,t,r){for(r of e.keys())if(wt(r,t))return r}function wt(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&wt(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=Ri(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=Ri(t,o),!o)||!wt(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Di.call(e,r)&&++n&&!Di.call(t,r)||!(r in t)||!wt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}ro();V();J();z();var b5=__STORYBOOK_CLIENT_LOGGER__,{deprecate:E5,logger:qr,once:zi,pretty:v5}=__STORYBOOK_CLIENT_LOGGER__;V();J();z();V();J();z();V();J();z();var T5=__STORYBOOK_CHANNELS__,{Channel:Hi,PostMessageTransport:C5,WebsocketTransport:k5,createBrowserChannel:I5}=__STORYBOOK_CHANNELS__;V();J();z();var P5=__STORYBOOK_CLIENT_LOGGER__,{deprecate:Ze,logger:Q,once:ct,pretty:F5}=__STORYBOOK_CLIENT_LOGGER__;V();J();z();var kf=Object.defineProperty,ce=(e,t)=>kf(e,"name",{value:t,configurable:!0});function de(e){for(var t=[],r=1;r{var fp=Object.create;var kn=Object.defineProperty;var hp=Object.getOwnPropertyDescriptor;var mp=Object.getOwnPropertyNames;var yp=Object.getPrototypeOf,gp=Object.prototype.hasOwnProperty;var Pe=(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')});var Qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var bp=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),qa=(e,t)=>{for(var r in t)kn(e,r,{get:t[r],enumerable:!0})},Ep=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mp(t))!gp.call(e,o)&&o!==r&&kn(e,o,{get:()=>t[o],enumerable:!(n=hp(t,o))||n.enumerable});return e};var vp=(e,t,r)=>(r=e!=null?fp(yp(e)):{},Ep(t||!e||!e.__esModule?kn(r,"default",{value:e,enumerable:!0}):r,e));var V=Qe(()=>{});var J=Qe(()=>{});var z=Qe(()=>{});function Cp(e,t,{signal:r,edges:n}={}){let o,a=null,i=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),s=()=>{a!==null&&(e.apply(o,a),o=void 0,a=null)},c=()=>{l&&s(),f()},d=null,p=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,c()},t)},h=()=>{d!==null&&(clearTimeout(d),d=null)},f=()=>{h(),o=void 0,a=null},b=()=>{h(),s()},g=function(...x){if(r?.aborted)return;o=this,a=x;let S=d==null;p(),i&&S&&s()};return g.schedule=p,g.cancel=f,g.flush=b,r?.addEventListener("abort",f,{once:!0}),g}function Ha(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:o=!1,trailing:a=!0,maxWait:i}=r,l=Array(2);o&&(l[0]="leading"),a&&(l[1]="trailing");let s,c=null,d=Cp(function(...f){s=e.apply(this,f),c=null},t,{signal:n,edges:l}),p=function(...f){if(i!=null){if(c===null)c=Date.now();else if(Date.now()-c>=i)return s=e.apply(this,f),c=Date.now(),d.cancel(),d.schedule(),s}return d.apply(this,f),s},h=()=>(d.flush(),s);return p.cancel=d.cancel,p.flush=h,p}function Ga(e){return Array.from(new Set(e))}function Wa(e,t){let r={},n=Object.entries(e);for(let o=0;o{V();J();z();Bt=(e=>typeof Pe<"u"?Pe:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Pe<"u"?Pe:t)[r]}):e)(function(e){if(typeof Pe<"u")return Pe.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),xp=Object.create,Ja=Object.defineProperty,Sp=Object.getOwnPropertyDescriptor,za=Object.getOwnPropertyNames,wp=Object.getPrototypeOf,Ap=Object.prototype.hasOwnProperty,sr=(e=>typeof Bt<"u"?Bt:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Bt<"u"?Bt:t)[r]}):e)(function(e){if(typeof Bt<"u")return Bt.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),je=(e,t)=>function(){return t||(0,e[za(e)[0]])((t={exports:{}}).exports,t),t.exports},Tp=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of za(t))!Ap.call(e,o)&&o!==r&&Ja(e,o,{get:()=>t[o],enumerable:!(n=Sp(t,o))||n.enumerable});return e},Lt=(e,t,r)=>(r=e!=null?xp(wp(e)):{},Tp(t||!e||!e.__esModule?Ja(r,"default",{value:e,enumerable:!0}):r,e));Op="[object String]",Dp="[object Number]",Rp="[object Boolean]",_p="[object Arguments]";Fe=e=>`control-${e.replace(/\s+/g,"-")}`,lr=e=>`set-${e.replace(/\s+/g,"-")}`});var m,Ya,it,Wv,Kv,Yv,Xv,Xa,Qv,ue,ur,On,Zv,ex,tx,rx,Qa,nx,ox,ax,xe,Za,ix,sx,Se,lx,ux,cx,ei,st,dx,Re,X,px,fx,hx,Rr=Qe(()=>{V();J();z();m=__REACT__,{Children:Ya,Component:it,Fragment:Wv,Profiler:Kv,PureComponent:Yv,StrictMode:Xv,Suspense:Xa,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qv,cloneElement:ue,createContext:ur,createElement:On,createFactory:Zv,createRef:ex,forwardRef:tx,isValidElement:rx,lazy:Qa,memo:nx,startTransition:ox,unstable_act:ax,useCallback:xe,useContext:Za,useDebugValue:ix,useDeferredValue:sx,useEffect:Se,useId:lx,useImperativeHandle:ux,useInsertionEffect:cx,useLayoutEffect:ei,useMemo:st,useReducer:dx,useRef:Re,useState:X,useSyncExternalStore:px,useTransition:fx,version:hx}=__REACT__});var ti={};qa(ti,{A:()=>Np,ActionBar:()=>Dn,AddonPanel:()=>Rn,Badge:()=>_n,Bar:()=>Pn,Blockquote:()=>Bp,Button:()=>lt,ClipboardCode:()=>jp,Code:()=>Lp,DL:()=>Mp,Div:()=>Up,DocumentWrapper:()=>$p,EmptyTabContent:()=>Fn,ErrorFormatter:()=>qp,FlexBar:()=>Nn,Form:()=>Ve,H1:()=>Vp,H2:()=>Bn,H3:()=>Jp,H4:()=>zp,H5:()=>Hp,H6:()=>Gp,HR:()=>Wp,IconButton:()=>ze,IconButtonSkeleton:()=>Kp,Icons:()=>Yp,Img:()=>Xp,LI:()=>Qp,Link:()=>xt,ListItem:()=>Zp,Loader:()=>ef,Modal:()=>He,OL:()=>tf,P:()=>rf,Placeholder:()=>nf,Pre:()=>of,ResetWrapper:()=>jn,ScrollArea:()=>af,Separator:()=>sf,Spaced:()=>Ln,Span:()=>lf,StorybookIcon:()=>uf,StorybookLogo:()=>cf,Symbols:()=>df,SyntaxHighlighter:()=>_r,TT:()=>pf,TabBar:()=>ff,TabButton:()=>hf,TabWrapper:()=>mf,Table:()=>yf,Tabs:()=>gf,TabsState:()=>bf,TooltipLinkList:()=>Ef,TooltipMessage:()=>vf,TooltipNote:()=>St,UL:()=>xf,WithTooltip:()=>ut,WithTooltipPure:()=>Mn,Zoom:()=>Un,codeCommon:()=>Mt,components:()=>$n,createCopyToClipboardFunction:()=>Sf,default:()=>Fp,getStoryHref:()=>wf,icons:()=>Af,interleaveSeparators:()=>Tf,nameSpaceClassNames:()=>qn,resetComponents:()=>Cf,withReset:()=>Ut});var Fp,Np,Dn,Rn,_n,Pn,Bp,lt,jp,Lp,Mp,Up,$p,Fn,qp,Nn,Ve,Vp,Bn,Jp,zp,Hp,Gp,Wp,ze,Kp,Yp,Xp,Qp,xt,Zp,ef,He,tf,rf,nf,of,jn,af,sf,Ln,lf,uf,cf,df,_r,pf,ff,hf,mf,yf,gf,bf,Ef,vf,St,xf,ut,Mn,Un,Mt,$n,Sf,wf,Af,Tf,qn,Cf,Ut,Pr=Qe(()=>{V();J();z();Fp=__STORYBOOK_COMPONENTS__,{A:Np,ActionBar:Dn,AddonPanel:Rn,Badge:_n,Bar:Pn,Blockquote:Bp,Button:lt,ClipboardCode:jp,Code:Lp,DL:Mp,Div:Up,DocumentWrapper:$p,EmptyTabContent:Fn,ErrorFormatter:qp,FlexBar:Nn,Form:Ve,H1:Vp,H2:Bn,H3:Jp,H4:zp,H5:Hp,H6:Gp,HR:Wp,IconButton:ze,IconButtonSkeleton:Kp,Icons:Yp,Img:Xp,LI:Qp,Link:xt,ListItem:Zp,Loader:ef,Modal:He,OL:tf,P:rf,Placeholder:nf,Pre:of,ResetWrapper:jn,ScrollArea:af,Separator:sf,Spaced:Ln,Span:lf,StorybookIcon:uf,StorybookLogo:cf,Symbols:df,SyntaxHighlighter:_r,TT:pf,TabBar:ff,TabButton:hf,TabWrapper:mf,Table:yf,Tabs:gf,TabsState:bf,TooltipLinkList:Ef,TooltipMessage:vf,TooltipNote:St,UL:xf,WithTooltip:ut,WithTooltipPure:Mn,Zoom:Un,codeCommon:Mt,components:$n,createCopyToClipboardFunction:Sf,getStoryHref:wf,icons:Af,interleaveSeparators:Tf,nameSpaceClassNames:qn,resetComponents:Cf,withReset:Ut}=__STORYBOOK_COMPONENTS__});var NS,BS,jS,LS,ki,MS,$r,Ii,US,$S,qS,VS,JS,zS,HS,Oi,GS,WS,Kn,KS,R,Yn,YS,Xn,XS,Qn=Qe(()=>{V();J();z();NS=__STORYBOOK_THEMING__,{CacheProvider:BS,ClassNames:jS,Global:LS,ThemeProvider:ki,background:MS,color:$r,convert:Ii,create:US,createCache:$S,createGlobal:qS,createReset:VS,css:JS,darken:zS,ensure:HS,ignoreSsrWarning:Oi,isPropValid:GS,jsx:WS,keyframes:Kn,lighten:KS,styled:R,themes:Yn,typography:YS,useTheme:Xn,withTheme:XS}=__STORYBOOK_THEMING__});var iw,sw,lw,Zn,uw,cw,dw,pw,fw,hw,mw,yw,gw,bw,Ew,vw,xw,Sw,ww,Aw,Tw,Cw,kw,Iw,Ow,Dw,Rw,_w,Pw,Fw,Nw,Bw,jw,Lw,Mw,Uw,$w,qw,Vw,Jw,zw,Hw,Gw,Ww,Kw,Yw,Xw,_i,Pi,Qw,Fi,eo,Zw,eA,Ni,tA,rA,nA,oA,aA,iA,sA,lA,uA,cA,dA,pA,fA,hA,mA,yA,gA,bA,EA,vA,xA,SA,wA,AA,TA,CA,kA,IA,OA,DA,RA,_A,PA,qr,FA,NA,BA,jA,LA,MA,UA,Bi,ji,$A,qA,VA,JA,zA,HA,GA,WA,KA,YA,XA,QA,ZA,eT,tT,rT,nT,oT,aT,iT,sT,lT,uT,cT,dT,pT,fT,hT,mT,yT,gT,bT,ET,Li,vT,xT,ST,wT,AT,TT,CT,Mi,kT,IT,OT,DT,RT,_T,PT,FT,NT,BT,jT,LT,MT,UT,$T,qT,VT,JT,zT,HT,GT,WT,KT,YT,XT,QT,ZT,eC,tC,rC,nC,oC,aC,iC,sC,lC,uC,cC,dC,pC,fC,hC,mC,yC,gC,bC,EC,vC,xC,SC,wC,AC,TC,CC,kC,IC,OC,DC,RC,_C,PC,FC,NC,BC,jC,Ui,LC,MC,UC,$C,qC,VC,JC,zC,HC,GC,WC,KC,YC,to,XC,QC,ZC,e5,t5,r5,n5,o5,a5,i5,$i,s5,l5,u5,c5,d5,p5,qi,Vi,Ji,f5,ro=Qe(()=>{V();J();z();iw=__STORYBOOK_ICONS__,{AccessibilityAltIcon:sw,AccessibilityIcon:lw,AddIcon:Zn,AdminIcon:uw,AlertAltIcon:cw,AlertIcon:dw,AlignLeftIcon:pw,AlignRightIcon:fw,AppleIcon:hw,ArrowBottomLeftIcon:mw,ArrowBottomRightIcon:yw,ArrowDownIcon:gw,ArrowLeftIcon:bw,ArrowRightIcon:Ew,ArrowSolidDownIcon:vw,ArrowSolidLeftIcon:xw,ArrowSolidRightIcon:Sw,ArrowSolidUpIcon:ww,ArrowTopLeftIcon:Aw,ArrowTopRightIcon:Tw,ArrowUpIcon:Cw,AzureDevOpsIcon:kw,BackIcon:Iw,BasketIcon:Ow,BatchAcceptIcon:Dw,BatchDenyIcon:Rw,BeakerIcon:_w,BellIcon:Pw,BitbucketIcon:Fw,BoldIcon:Nw,BookIcon:Bw,BookmarkHollowIcon:jw,BookmarkIcon:Lw,BottomBarIcon:Mw,BottomBarToggleIcon:Uw,BoxIcon:$w,BranchIcon:qw,BrowserIcon:Vw,ButtonIcon:Jw,CPUIcon:zw,CalendarIcon:Hw,CameraIcon:Gw,CategoryIcon:Ww,CertificateIcon:Kw,ChangedIcon:Yw,ChatIcon:Xw,CheckIcon:_i,ChevronDownIcon:Pi,ChevronLeftIcon:Qw,ChevronRightIcon:Fi,ChevronSmallDownIcon:eo,ChevronSmallLeftIcon:Zw,ChevronSmallRightIcon:eA,ChevronSmallUpIcon:Ni,ChevronUpIcon:tA,ChromaticIcon:rA,ChromeIcon:nA,CircleHollowIcon:oA,CircleIcon:aA,ClearIcon:iA,CloseAltIcon:sA,CloseIcon:lA,CloudHollowIcon:uA,CloudIcon:cA,CogIcon:dA,CollapseIcon:pA,CommandIcon:fA,CommentAddIcon:hA,CommentIcon:mA,CommentsIcon:yA,CommitIcon:gA,CompassIcon:bA,ComponentDrivenIcon:EA,ComponentIcon:vA,ContrastIcon:xA,ControlsIcon:SA,CopyIcon:wA,CreditIcon:AA,CrossIcon:TA,DashboardIcon:CA,DatabaseIcon:kA,DeleteIcon:IA,DiamondIcon:OA,DirectionIcon:DA,DiscordIcon:RA,DocChartIcon:_A,DocListIcon:PA,DocumentIcon:qr,DownloadIcon:FA,DragIcon:NA,EditIcon:BA,EllipsisIcon:jA,EmailIcon:LA,ExpandAltIcon:MA,ExpandIcon:UA,EyeCloseIcon:Bi,EyeIcon:ji,FaceHappyIcon:$A,FaceNeutralIcon:qA,FaceSadIcon:VA,FacebookIcon:JA,FailedIcon:zA,FastForwardIcon:HA,FigmaIcon:GA,FilterIcon:WA,FlagIcon:KA,FolderIcon:YA,FormIcon:XA,GDriveIcon:QA,GithubIcon:ZA,GitlabIcon:eT,GlobeIcon:tT,GoogleIcon:rT,GraphBarIcon:nT,GraphLineIcon:oT,GraphqlIcon:aT,GridAltIcon:iT,GridIcon:sT,GrowIcon:lT,HeartHollowIcon:uT,HeartIcon:cT,HomeIcon:dT,HourglassIcon:pT,InfoIcon:fT,ItalicIcon:hT,JumpToIcon:mT,KeyIcon:yT,LightningIcon:gT,LightningOffIcon:bT,LinkBrokenIcon:ET,LinkIcon:Li,LinkedinIcon:vT,LinuxIcon:xT,ListOrderedIcon:ST,ListUnorderedIcon:wT,LocationIcon:AT,LockIcon:TT,MarkdownIcon:CT,MarkupIcon:Mi,MediumIcon:kT,MemoryIcon:IT,MenuIcon:OT,MergeIcon:DT,MirrorIcon:RT,MobileIcon:_T,MoonIcon:PT,NutIcon:FT,OutboxIcon:NT,OutlineIcon:BT,PaintBrushIcon:jT,PaperClipIcon:LT,ParagraphIcon:MT,PassedIcon:UT,PhoneIcon:$T,PhotoDragIcon:qT,PhotoIcon:VT,PinAltIcon:JT,PinIcon:zT,PlayAllHollowIcon:HT,PlayBackIcon:GT,PlayHollowIcon:WT,PlayIcon:KT,PlayNextIcon:YT,PlusIcon:XT,PointerDefaultIcon:QT,PointerHandIcon:ZT,PowerIcon:eC,PrintIcon:tC,ProceedIcon:rC,ProfileIcon:nC,PullRequestIcon:oC,QuestionIcon:aC,RSSIcon:iC,RedirectIcon:sC,ReduxIcon:lC,RefreshIcon:uC,ReplyIcon:cC,RepoIcon:dC,RequestChangeIcon:pC,RewindIcon:fC,RulerIcon:hC,SaveIcon:mC,SearchIcon:yC,ShareAltIcon:gC,ShareIcon:bC,ShieldIcon:EC,SideBySideIcon:vC,SidebarAltIcon:xC,SidebarAltToggleIcon:SC,SidebarIcon:wC,SidebarToggleIcon:AC,SpeakerIcon:TC,StackedIcon:CC,StarHollowIcon:kC,StarIcon:IC,StatusFailIcon:OC,StatusPassIcon:DC,StatusWarnIcon:RC,StickerIcon:_C,StopAltHollowIcon:PC,StopAltIcon:FC,StopIcon:NC,StorybookIcon:BC,StructureIcon:jC,SubtractIcon:Ui,SunIcon:LC,SupportIcon:MC,SwitchAltIcon:UC,SyncIcon:$C,TabletIcon:qC,ThumbsUpIcon:VC,TimeIcon:JC,TimerIcon:zC,TransferIcon:HC,TrashIcon:GC,TwitterIcon:WC,TypeIcon:KC,UbuntuIcon:YC,UndoIcon:to,UnfoldIcon:XC,UnlockIcon:QC,UnpinIcon:ZC,UploadIcon:e5,UserAddIcon:t5,UserAltIcon:r5,UserIcon:n5,UsersIcon:o5,VSCodeIcon:a5,VerifiedIcon:i5,VideoIcon:$i,WandIcon:s5,WatchIcon:l5,WindowsIcon:u5,WrenchIcon:c5,XIcon:d5,YoutubeIcon:p5,ZoomIcon:qi,ZoomOutIcon:Vi,ZoomResetIcon:Ji,iconList:f5}=__STORYBOOK_ICONS__});var Xl=bp((rn,Yl)=>{V();J();z();(function(e,t){typeof rn=="object"&&typeof Yl<"u"?t(rn):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.jtpp={}))})(rn,function(e){"use strict";function t(u){return u.text!==void 0&&u.text!==""?`'${u.type}' with value '${u.text}'`:`'${u.type}'`}class r extends Error{constructor(y){super(`No parslet found for token: ${t(y)}`),this.token=y,Object.setPrototypeOf(this,r.prototype)}getToken(){return this.token}}class n extends Error{constructor(y){super(`The parsing ended early. The next token was: ${t(y)}`),this.token=y,Object.setPrototypeOf(this,n.prototype)}getToken(){return this.token}}class o extends Error{constructor(y,v){let O=`Unexpected type: '${y.type}'.`;v!==void 0&&(O+=` Message: ${v}`),super(O),Object.setPrototypeOf(this,o.prototype)}}function a(u){return y=>y.startsWith(u)?{type:u,text:u}:null}function i(u){let y=0,v,O=u[0],j=!1;if(O!=="'"&&O!=='"')return null;for(;y{let y=c(u);return y==null?null:{type:"Identifier",text:y}};function f(u){return y=>{if(!y.startsWith(u))return null;let v=y[u.length];return v!==void 0&&s.test(v)?null:{type:u,text:u}}}let b=u=>{let y=i(u);return y==null?null:{type:"StringValue",text:y}},g=u=>u.length>0?null:{type:"EOF",text:""},x=u=>{let y=p(u);return y===null?null:{type:"Number",text:y}},S=[g,a("=>"),a("("),a(")"),a("{"),a("}"),a("["),a("]"),a("|"),a("&"),a("<"),a(">"),a(","),a(";"),a("*"),a("?"),a("!"),a("="),a(":"),a("..."),a("."),a("#"),a("~"),a("/"),a("@"),f("undefined"),f("null"),f("function"),f("this"),f("new"),f("module"),f("event"),f("external"),f("typeof"),f("keyof"),f("readonly"),f("import"),f("is"),f("in"),f("asserts"),x,h,b],A=/^\s*\n\s*/;class k{static create(y){let v=this.read(y);y=v.text;let O=this.read(y);return y=O.text,new k(y,void 0,v.token,O.token)}constructor(y,v,O,j){this.text="",this.text=y,this.previous=v,this.current=O,this.next=j}static read(y,v=!1){v=v||A.test(y),y=y.trim();for(let O of S){let j=O(y);if(j!==null){let q=Object.assign(Object.assign({},j),{startOfLine:v});return y=y.slice(q.text.length),{text:y,token:q}}}throw new Error("Unexpected Token "+y)}advance(){let y=k.read(this.text);return new k(y.text,this.current,this.next,y.token)}}function T(u){if(u===void 0)throw new Error("Unexpected undefined");if(u.type==="JsdocTypeKeyValue"||u.type==="JsdocTypeParameterList"||u.type==="JsdocTypeProperty"||u.type==="JsdocTypeReadonlyProperty"||u.type==="JsdocTypeObjectField"||u.type==="JsdocTypeJsdocObjectField"||u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType")throw new o(u);return u}function I(u){return u.type==="JsdocTypeKeyValue"?F(u):T(u)}function D(u){return u.type==="JsdocTypeName"?u:F(u)}function F(u){if(u.type!=="JsdocTypeKeyValue")throw new o(u);return u}function P(u){var y;if(u.type==="JsdocTypeVariadic"){if(((y=u.element)===null||y===void 0?void 0:y.type)==="JsdocTypeName")return u;throw new o(u)}if(u.type!=="JsdocTypeNumber"&&u.type!=="JsdocTypeName")throw new o(u);return u}function L(u){return u.type==="JsdocTypeIndexSignature"||u.type==="JsdocTypeMappedType"}var B;(function(u){u[u.ALL=0]="ALL",u[u.PARAMETER_LIST=1]="PARAMETER_LIST",u[u.OBJECT=2]="OBJECT",u[u.KEY_VALUE=3]="KEY_VALUE",u[u.INDEX_BRACKETS=4]="INDEX_BRACKETS",u[u.UNION=5]="UNION",u[u.INTERSECTION=6]="INTERSECTION",u[u.PREFIX=7]="PREFIX",u[u.INFIX=8]="INFIX",u[u.TUPLE=9]="TUPLE",u[u.SYMBOL=10]="SYMBOL",u[u.OPTIONAL=11]="OPTIONAL",u[u.NULLABLE=12]="NULLABLE",u[u.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",u[u.FUNCTION=14]="FUNCTION",u[u.ARROW=15]="ARROW",u[u.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",u[u.GENERIC=17]="GENERIC",u[u.NAME_PATH=18]="NAME_PATH",u[u.PARENTHESIS=19]="PARENTHESIS",u[u.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(B||(B={}));class G{constructor(y,v,O){this.grammar=y,typeof v=="string"?this._lexer=k.create(v):this._lexer=v,this.baseParser=O}get lexer(){return this._lexer}parse(){let y=this.parseType(B.ALL);if(this.lexer.current.type!=="EOF")throw new n(this.lexer.current);return y}parseType(y){return T(this.parseIntermediateType(y))}parseIntermediateType(y){let v=this.tryParslets(null,y);if(v===null)throw new r(this.lexer.current);return this.parseInfixIntermediateType(v,y)}parseInfixIntermediateType(y,v){let O=this.tryParslets(y,v);for(;O!==null;)y=O,O=this.tryParslets(y,v);return y}tryParslets(y,v){for(let O of this.grammar){let j=O(this,v,y);if(j!==null)return j}return null}consume(y){return Array.isArray(y)||(y=[y]),y.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(y){this._lexer=y.lexer}}function $(u){return u==="EOF"||u==="|"||u===","||u===")"||u===">"}let H=(u,y,v)=>{let O=u.lexer.current.type,j=u.lexer.next.type;return v==null&&O==="?"&&!$(j)||v!=null&&O==="?"?(u.consume("?"),v==null?{type:"JsdocTypeNullable",element:u.parseType(B.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:T(v),meta:{position:"suffix"}}):null};function w(u){let y=(v,O,j)=>{let q=v.lexer.current.type,W=v.lexer.next.type;if(j===null){if("parsePrefix"in u&&u.accept(q,W))return u.parsePrefix(v)}else if("parseInfix"in u&&u.precedence>O&&u.accept(q,W))return u.parseInfix(v,j);return null};return Object.defineProperty(y,"name",{value:u.name}),y}let C=w({name:"optionalParslet",accept:u=>u==="=",precedence:B.OPTIONAL,parsePrefix:u=>(u.consume("="),{type:"JsdocTypeOptional",element:u.parseType(B.OPTIONAL),meta:{position:"prefix"}}),parseInfix:(u,y)=>(u.consume("="),{type:"JsdocTypeOptional",element:T(y),meta:{position:"suffix"}})}),_=w({name:"numberParslet",accept:u=>u==="Number",parsePrefix:u=>{let y=parseFloat(u.lexer.current.text);return u.consume("Number"),{type:"JsdocTypeNumber",value:y}}}),M=w({name:"parenthesisParslet",accept:u=>u==="(",parsePrefix:u=>{if(u.consume("("),u.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let y=u.parseIntermediateType(B.ALL);if(!u.consume(")"))throw new Error("Unterminated parenthesis");return y.type==="JsdocTypeParameterList"?y:y.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[y]}:{type:"JsdocTypeParenthesis",element:T(y)}}}),U=w({name:"specialTypesParslet",accept:(u,y)=>u==="?"&&$(y)||u==="null"||u==="undefined"||u==="*",parsePrefix:u=>{if(u.consume("null"))return{type:"JsdocTypeNull"};if(u.consume("undefined"))return{type:"JsdocTypeUndefined"};if(u.consume("*"))return{type:"JsdocTypeAny"};if(u.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+u.lexer.current.text)}}),K=w({name:"notNullableParslet",accept:u=>u==="!",precedence:B.NULLABLE,parsePrefix:u=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:u.parseType(B.NULLABLE),meta:{position:"prefix"}}),parseInfix:(u,y)=>(u.consume("!"),{type:"JsdocTypeNotNullable",element:T(y),meta:{position:"suffix"}})});function re({allowTrailingComma:u}){return w({name:"parameterListParslet",accept:y=>y===",",precedence:B.PARAMETER_LIST,parseInfix:(y,v)=>{let O=[I(v)];y.consume(",");do try{let j=y.parseIntermediateType(B.PARAMETER_LIST);O.push(I(j))}catch(j){if(u&&j instanceof r)break;throw j}while(y.consume(","));if(O.length>0&&O.slice(0,-1).some(j=>j.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:O}}})}let Z=w({name:"genericParslet",accept:(u,y)=>u==="<"||u==="."&&y==="<",precedence:B.GENERIC,parseInfix:(u,y)=>{let v=u.consume(".");u.consume("<");let O=[];do O.push(u.parseType(B.PARAMETER_LIST));while(u.consume(","));if(!u.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:T(y),elements:O,meta:{brackets:"angle",dot:v}}}}),Y=w({name:"unionParslet",accept:u=>u==="|",precedence:B.UNION,parseInfix:(u,y)=>{u.consume("|");let v=[];do v.push(u.parseType(B.UNION));while(u.consume("|"));return{type:"JsdocTypeUnion",elements:[T(y),...v]}}}),ee=[H,C,_,M,U,K,re({allowTrailingComma:!0}),Z,Y,C];function ye({allowSquareBracketsOnAnyType:u,allowJsdocNamePaths:y,pathGrammar:v}){return function(j,q,W){if(W==null||q>=B.NAME_PATH)return null;let te=j.lexer.current.type,Ce=j.lexer.next.type;if(!(te==="."&&Ce!=="<"||te==="["&&(u||W.type==="JsdocTypeName")||y&&(te==="~"||te==="#")))return null;let Le,Dr=!1;j.consume(".")?Le="property":j.consume("[")?(Le="property-brackets",Dr=!0):j.consume("~")?Le="inner":(j.consume("#"),Le="instance");let Ua=v!==null?new G(v,j.lexer,j):j,Xe=Ua.parseIntermediateType(B.NAME_PATH);j.acceptLexerState(Ua);let ir;switch(Xe.type){case"JsdocTypeName":ir={type:"JsdocTypeProperty",value:Xe.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":ir={type:"JsdocTypeProperty",value:Xe.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":ir={type:"JsdocTypeProperty",value:Xe.value,meta:{quote:Xe.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Xe.specialType==="event")ir=Xe;else throw new o(Xe,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new o(Xe,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(Dr&&!j.consume("]")){let $a=j.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${$a.type}' with text '${$a.text}'`)}return{type:"JsdocTypeNamePath",left:T(W),right:ir,pathType:Le}}}function le({allowedAdditionalTokens:u}){return w({name:"nameParslet",accept:y=>y==="Identifier"||y==="this"||y==="new"||u.includes(y),parsePrefix:y=>{let{type:v,text:O}=y.lexer.current;return y.consume(v),{type:"JsdocTypeName",value:O}}})}let Ae=w({name:"stringValueParslet",accept:u=>u==="StringValue",parsePrefix:u=>{let y=u.lexer.current.text;return u.consume("StringValue"),{type:"JsdocTypeStringValue",value:y.slice(1,-1),meta:{quote:y[0]==="'"?"single":"double"}}}});function ne({pathGrammar:u,allowedTypes:y}){return w({name:"specialNamePathParslet",accept:v=>y.includes(v),parsePrefix:v=>{let O=v.lexer.current.type;if(v.consume(O),!v.consume(":"))return{type:"JsdocTypeName",value:O};let j,q=v.lexer.current;if(v.consume("StringValue"))j={type:"JsdocTypeSpecialNamePath",value:q.text.slice(1,-1),specialType:O,meta:{quote:q.text[0]==="'"?"single":"double"}};else{let Ce="",ve=["Identifier","@","/"];for(;ve.some(Le=>v.consume(Le));)Ce+=q.text,q=v.lexer.current;j={type:"JsdocTypeSpecialNamePath",value:Ce,specialType:O,meta:{quote:void 0}}}let W=new G(u,v.lexer,v),te=W.parseInfixIntermediateType(j,B.ALL);return v.acceptLexerState(W),T(te)}})}let qe=[le({allowedAdditionalTokens:["external","module"]}),Ae,_,ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],Be=[...qe,ne({allowedTypes:["event"],pathGrammar:qe})];function Ye(u){let y;if(u.type==="JsdocTypeParameterList")y=u.elements;else if(u.type==="JsdocTypeParenthesis")y=[u.element];else throw new o(u);return y.map(v=>I(v))}function nr(u){let y=Ye(u);if(y.some(v=>v.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return y}function Ft({allowNamedParameters:u,allowNoReturnType:y,allowWithoutParenthesis:v,allowNewAsFunctionKeyword:O}){return w({name:"functionParslet",accept:(j,q)=>j==="function"||O&&j==="new"&&q==="(",parsePrefix:j=>{let q=j.consume("new");j.consume("function");let W=j.lexer.current.type==="(";if(!W){if(!v)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let te={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:q,parenthesis:W},Ce=j.parseIntermediateType(B.FUNCTION);if(u===void 0)te.parameters=nr(Ce);else{if(q&&Ce.type==="JsdocTypeFunction"&&Ce.arrow)return te=Ce,te.constructor=!0,te;te.parameters=Ye(Ce);for(let ve of te.parameters)if(ve.type==="JsdocTypeKeyValue"&&!u.includes(ve.key))throw new Error(`only allowed named parameters are ${u.join(", ")} but got ${ve.type}`)}if(j.consume(":"))te.returnType=j.parseType(B.PREFIX);else if(!y)throw new Error("function is missing return type");return te}})}function or({allowPostfix:u,allowEnclosingBrackets:y}){return w({name:"variadicParslet",accept:v=>v==="...",precedence:B.PREFIX,parsePrefix:v=>{v.consume("...");let O=y&&v.consume("[");try{let j=v.parseType(B.PREFIX);if(O&&!v.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:T(j),meta:{position:"prefix",squareBrackets:O}}}catch(j){if(j instanceof r){if(O)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw j}},parseInfix:u?(v,O)=>(v.consume("..."),{type:"JsdocTypeVariadic",element:T(O),meta:{position:"suffix",squareBrackets:!1}}):void 0})}let kr=w({name:"symbolParslet",accept:u=>u==="(",precedence:B.SYMBOL,parseInfix:(u,y)=>{if(y.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");u.consume("(");let v={type:"JsdocTypeSymbol",value:y.value};if(!u.consume(")")){let O=u.parseIntermediateType(B.SYMBOL);if(v.element=P(O),!u.consume(")"))throw new Error("Symbol does not end after value")}return v}}),_e=w({name:"arrayBracketsParslet",precedence:B.ARRAY_BRACKETS,accept:(u,y)=>u==="["&&y==="]",parseInfix:(u,y)=>(u.consume("["),u.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[T(y)],meta:{brackets:"square",dot:!1}})});function De({objectFieldGrammar:u,allowKeyTypes:y}){return w({name:"objectParslet",accept:v=>v==="{",parsePrefix:v=>{v.consume("{");let O={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!v.consume("}")){let j,q=new G(u,v.lexer,v);for(;;){q.acceptLexerState(v);let W=q.parseIntermediateType(B.OBJECT);v.acceptLexerState(q),W===void 0&&y&&(W=v.parseIntermediateType(B.OBJECT));let te=!1;if(W.type==="JsdocTypeNullable"&&(te=!0,W=W.element),W.type==="JsdocTypeNumber"||W.type==="JsdocTypeName"||W.type==="JsdocTypeStringValue"){let ve;W.type==="JsdocTypeStringValue"&&(ve=W.meta.quote),O.elements.push({type:"JsdocTypeObjectField",key:W.value.toString(),right:void 0,optional:te,readonly:!1,meta:{quote:ve}})}else if(W.type==="JsdocTypeObjectField"||W.type==="JsdocTypeJsdocObjectField")O.elements.push(W);else throw new o(W);if(v.lexer.current.startOfLine)j="linebreak";else if(v.consume(","))j="comma";else if(v.consume(";"))j="semicolon";else break;if(v.lexer.current.type==="}")break}if(O.meta.separator=j??"comma",!v.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return O}})}function nt({allowSquaredProperties:u,allowKeyTypes:y,allowReadonly:v,allowOptional:O}){return w({name:"objectFieldParslet",precedence:B.KEY_VALUE,accept:j=>j===":",parseInfix:(j,q)=>{var W;let te=!1,Ce=!1;O&&q.type==="JsdocTypeNullable"&&(te=!0,q=q.element),v&&q.type==="JsdocTypeReadonlyProperty"&&(Ce=!0,q=q.element);let ve=(W=j.baseParser)!==null&&W!==void 0?W:j;if(ve.acceptLexerState(j),q.type==="JsdocTypeNumber"||q.type==="JsdocTypeName"||q.type==="JsdocTypeStringValue"||L(q)){if(L(q)&&!u)throw new o(q);ve.consume(":");let Le;q.type==="JsdocTypeStringValue"&&(Le=q.meta.quote);let Dr=ve.parseType(B.KEY_VALUE);return j.acceptLexerState(ve),{type:"JsdocTypeObjectField",key:L(q)?q:q.value.toString(),right:Dr,optional:te,readonly:Ce,meta:{quote:Le}}}else{if(!y)throw new o(q);ve.consume(":");let Le=ve.parseType(B.KEY_VALUE);return j.acceptLexerState(ve),{type:"JsdocTypeJsdocObjectField",left:T(q),right:Le}}}})}function Nt({allowOptional:u,allowVariadic:y}){return w({name:"keyValueParslet",precedence:B.KEY_VALUE,accept:v=>v===":",parseInfix:(v,O)=>{let j=!1,q=!1;if(u&&O.type==="JsdocTypeNullable"&&(j=!0,O=O.element),y&&O.type==="JsdocTypeVariadic"&&O.element!==void 0&&(q=!0,O=O.element),O.type!=="JsdocTypeName")throw new o(O);v.consume(":");let W=v.parseType(B.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:O.value,right:W,optional:j,variadic:q}}})}let Ir=[...ee,Ft({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ae,ne({allowedTypes:["module","external","event"],pathGrammar:Be}),or({allowEnclosingBrackets:!0,allowPostfix:!0}),le({allowedAdditionalTokens:["keyof"]}),kr,_e,ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Be})],An=[...Ir,De({objectFieldGrammar:[le({allowedAdditionalTokens:["module","in"]}),nt({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...Ir],allowKeyTypes:!0}),Nt({allowOptional:!0,allowVariadic:!0})],Na=w({name:"typeOfParslet",accept:u=>u==="typeof",parsePrefix:u=>(u.consume("typeof"),{type:"JsdocTypeTypeof",element:T(u.parseType(B.KEY_OF_TYPE_OF))})}),Vd=[le({allowedAdditionalTokens:["module","keyof","event","external","in"]}),H,C,Ae,_,nt({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Jd=[...ee,De({allowKeyTypes:!1,objectFieldGrammar:Vd}),le({allowedAdditionalTokens:["event","external","in"]}),Na,Ft({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),or({allowEnclosingBrackets:!1,allowPostfix:!1}),le({allowedAdditionalTokens:["keyof"]}),ne({allowedTypes:["module"],pathGrammar:Be}),ye({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Be}),Nt({allowOptional:!1,allowVariadic:!1}),kr],zd=w({name:"assertsParslet",accept:u=>u==="asserts",parsePrefix:u=>{u.consume("asserts");let y=u.parseIntermediateType(B.SYMBOL);if(y.type!=="JsdocTypeName")throw new o(y,"A typescript asserts always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypeAsserts",left:y,right:T(u.parseIntermediateType(B.INFIX))}}});function Hd({allowQuestionMark:u}){return w({name:"tupleParslet",accept:y=>y==="[",parsePrefix:y=>{y.consume("[");let v={type:"JsdocTypeTuple",elements:[]};if(y.consume("]"))return v;let O=y.parseIntermediateType(B.ALL);if(O.type==="JsdocTypeParameterList"?O.elements[0].type==="JsdocTypeKeyValue"?v.elements=O.elements.map(F):v.elements=O.elements.map(T):O.type==="JsdocTypeKeyValue"?v.elements=[F(O)]:v.elements=[T(O)],!y.consume("]"))throw new Error("Unterminated '['");if(!u&&v.elements.some(j=>j.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return v}})}let Gd=w({name:"keyOfParslet",accept:u=>u==="keyof",parsePrefix:u=>(u.consume("keyof"),{type:"JsdocTypeKeyof",element:T(u.parseType(B.KEY_OF_TYPE_OF))})}),Wd=w({name:"importParslet",accept:u=>u==="import",parsePrefix:u=>{if(u.consume("import"),!u.consume("("))throw new Error("Missing parenthesis after import keyword");let y=u.parseType(B.PREFIX);if(y.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!u.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:y}}}),Kd=w({name:"readonlyPropertyParslet",accept:u=>u==="readonly",parsePrefix:u=>(u.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:u.parseType(B.KEY_VALUE)})}),Yd=w({name:"arrowFunctionParslet",precedence:B.ARROW,accept:u=>u==="=>",parseInfix:(u,y)=>(u.consume("=>"),{type:"JsdocTypeFunction",parameters:Ye(y).map(D),arrow:!0,constructor:!1,parenthesis:!0,returnType:u.parseType(B.OBJECT)})}),Xd=w({name:"intersectionParslet",accept:u=>u==="&",precedence:B.INTERSECTION,parseInfix:(u,y)=>{u.consume("&");let v=[];do v.push(u.parseType(B.INTERSECTION));while(u.consume("&"));return{type:"JsdocTypeIntersection",elements:[T(y),...v]}}}),Qd=w({name:"predicateParslet",precedence:B.INFIX,accept:u=>u==="is",parseInfix:(u,y)=>{if(y.type!=="JsdocTypeName")throw new o(y,"A typescript predicate always has to have a name on the left side.");return u.consume("is"),{type:"JsdocTypePredicate",left:y,right:T(u.parseIntermediateType(B.INFIX))}}}),Zd=w({name:"objectSquareBracketPropertyParslet",accept:u=>u==="[",parsePrefix:u=>{if(u.baseParser===void 0)throw new Error("Only allowed inside object grammar");u.consume("[");let y=u.lexer.current.text;u.consume("Identifier");let v;if(u.consume(":")){let O=u.baseParser;O.acceptLexerState(u),v={type:"JsdocTypeIndexSignature",key:y,right:O.parseType(B.INDEX_BRACKETS)},u.acceptLexerState(O)}else if(u.consume("in")){let O=u.baseParser;O.acceptLexerState(u),v={type:"JsdocTypeMappedType",key:y,right:O.parseType(B.ARRAY_BRACKETS)},u.acceptLexerState(O)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!u.consume("]"))throw new Error("Unterminated square brackets");return v}}),ep=[Kd,le({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),H,C,Ae,_,nt({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),Zd],tp=[...ee,De({allowKeyTypes:!1,objectFieldGrammar:ep}),Na,Gd,Wd,Ae,Ft({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Hd({allowQuestionMark:!1}),or({allowEnclosingBrackets:!1,allowPostfix:!1}),zd,le({allowedAdditionalTokens:["event","external","in"]}),ne({allowedTypes:["module"],pathGrammar:Be}),_e,Yd,ye({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:Be}),Xd,Qd,Nt({allowVariadic:!0,allowOptional:!0})];function Ba(u,y){switch(y){case"closure":return new G(Jd,u).parse();case"jsdoc":return new G(An,u).parse();case"typescript":return new G(tp,u).parse()}}function rp(u,y=["typescript","closure","jsdoc"]){let v;for(let O of y)try{return Ba(u,O)}catch(j){v=j}throw v}function ar(u,y){let v=u[y.type];if(v===void 0)throw new Error(`In this set of transform rules exists no rule for type ${y.type}.`);return v(y,O=>ar(u,O))}function Te(u){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function ja(u){let y={params:[]};for(let v of u.parameters)v.type==="JsdocTypeKeyValue"?v.key==="this"?y.this=v.right:v.key==="new"?y.new=v.right:y.params.push(v):y.params.push(v);return y}function Or(u,y,v){return u==="prefix"?v+y:y+v}function ot(u,y){switch(y){case"double":return`"${u}"`;case"single":return`'${u}'`;case void 0:return u}}function La(){return{JsdocTypeParenthesis:(u,y)=>`(${u.element!==void 0?y(u.element):""})`,JsdocTypeKeyof:(u,y)=>`keyof ${y(u.element)}`,JsdocTypeFunction:(u,y)=>{if(u.arrow){if(u.returnType===void 0)throw new Error("Arrow function needs a return type.");let v=`(${u.parameters.map(y).join(", ")}) => ${y(u.returnType)}`;return u.constructor&&(v="new "+v),v}else{let v=u.constructor?"new":"function";return u.parenthesis&&(v+=`(${u.parameters.map(y).join(", ")})`,u.returnType!==void 0&&(v+=`: ${y(u.returnType)}`)),v}},JsdocTypeName:u=>u.value,JsdocTypeTuple:(u,y)=>`[${u.elements.map(y).join(", ")}]`,JsdocTypeVariadic:(u,y)=>u.meta.position===void 0?"...":Or(u.meta.position,y(u.element),"..."),JsdocTypeNamePath:(u,y)=>{let v=y(u.left),O=y(u.right);switch(u.pathType){case"inner":return`${v}~${O}`;case"instance":return`${v}#${O}`;case"property":return`${v}.${O}`;case"property-brackets":return`${v}[${O}]`}},JsdocTypeStringValue:u=>ot(u.value,u.meta.quote),JsdocTypeAny:()=>"*",JsdocTypeGeneric:(u,y)=>{if(u.meta.brackets==="square"){let v=u.elements[0],O=y(v);return v.type==="JsdocTypeUnion"||v.type==="JsdocTypeIntersection"?`(${O})[]`:`${O}[]`}else return`${y(u.left)}${u.meta.dot?".":""}<${u.elements.map(y).join(", ")}>`},JsdocTypeImport:(u,y)=>`import(${y(u.element)})`,JsdocTypeObjectField:(u,y)=>{let v="";return u.readonly&&(v+="readonly "),typeof u.key=="string"?v+=ot(u.key,u.meta.quote):v+=y(u.key),u.optional&&(v+="?"),u.right===void 0?v:v+`: ${y(u.right)}`},JsdocTypeJsdocObjectField:(u,y)=>`${y(u.left)}: ${y(u.right)}`,JsdocTypeKeyValue:(u,y)=>{let v=u.key;return u.optional&&(v+="?"),u.variadic&&(v="..."+v),u.right===void 0?v:v+`: ${y(u.right)}`},JsdocTypeSpecialNamePath:u=>`${u.specialType}:${ot(u.value,u.meta.quote)}`,JsdocTypeNotNullable:(u,y)=>Or(u.meta.position,y(u.element),"!"),JsdocTypeNull:()=>"null",JsdocTypeNullable:(u,y)=>Or(u.meta.position,y(u.element),"?"),JsdocTypeNumber:u=>u.value.toString(),JsdocTypeObject:(u,y)=>`{${u.elements.map(y).join((u.meta.separator==="comma"?",":";")+" ")}}`,JsdocTypeOptional:(u,y)=>Or(u.meta.position,y(u.element),"="),JsdocTypeSymbol:(u,y)=>`${u.value}(${u.element!==void 0?y(u.element):""})`,JsdocTypeTypeof:(u,y)=>`typeof ${y(u.element)}`,JsdocTypeUndefined:()=>"undefined",JsdocTypeUnion:(u,y)=>u.elements.map(y).join(" | "),JsdocTypeUnknown:()=>"?",JsdocTypeIntersection:(u,y)=>u.elements.map(y).join(" & "),JsdocTypeProperty:u=>ot(u.value,u.meta.quote),JsdocTypePredicate:(u,y)=>`${y(u.left)} is ${y(u.right)}`,JsdocTypeIndexSignature:(u,y)=>`[${u.key}: ${y(u.right)}]`,JsdocTypeMappedType:(u,y)=>`[${u.key} in ${y(u.right)}]`,JsdocTypeAsserts:(u,y)=>`asserts ${y(u.left)} is ${y(u.right)}`}}let np=La();function op(u){return ar(np,u)}let ap=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function at(u){let y={type:"NameExpression",name:u};return ap.includes(u)&&(y.reservedWord=!0),y}let ip={JsdocTypeOptional:(u,y)=>{let v=y(u.element);return v.optional=!0,v},JsdocTypeNullable:(u,y)=>{let v=y(u.element);return v.nullable=!0,v},JsdocTypeNotNullable:(u,y)=>{let v=y(u.element);return v.nullable=!1,v},JsdocTypeVariadic:(u,y)=>{if(u.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let v=y(u.element);return v.repeatable=!0,v},JsdocTypeAny:()=>({type:"AllLiteral"}),JsdocTypeNull:()=>({type:"NullLiteral"}),JsdocTypeStringValue:u=>at(ot(u.value,u.meta.quote)),JsdocTypeUndefined:()=>({type:"UndefinedLiteral"}),JsdocTypeUnknown:()=>({type:"UnknownLiteral"}),JsdocTypeFunction:(u,y)=>{let v=ja(u),O={type:"FunctionType",params:v.params.map(y)};return v.this!==void 0&&(O.this=y(v.this)),v.new!==void 0&&(O.new=y(v.new)),u.returnType!==void 0&&(O.result=y(u.returnType)),O},JsdocTypeGeneric:(u,y)=>({type:"TypeApplication",applications:u.elements.map(v=>y(v)),expression:y(u.left)}),JsdocTypeSpecialNamePath:u=>at(u.specialType+":"+ot(u.value,u.meta.quote)),JsdocTypeName:u=>u.value!=="function"?at(u.value):{type:"FunctionType",params:[]},JsdocTypeNumber:u=>at(u.value.toString()),JsdocTypeObject:(u,y)=>{let v={type:"RecordType",fields:[]};for(let O of u.elements)O.type!=="JsdocTypeObjectField"&&O.type!=="JsdocTypeJsdocObjectField"?v.fields.push({type:"FieldType",key:y(O),value:void 0}):v.fields.push(y(O));return v},JsdocTypeObjectField:(u,y)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:at(ot(u.key,u.meta.quote)),value:u.right===void 0?void 0:y(u.right)}},JsdocTypeJsdocObjectField:(u,y)=>({type:"FieldType",key:y(u.left),value:y(u.right)}),JsdocTypeUnion:(u,y)=>({type:"TypeUnion",elements:u.elements.map(v=>y(v))}),JsdocTypeKeyValue:(u,y)=>({type:"FieldType",key:at(u.key),value:u.right===void 0?void 0:y(u.right)}),JsdocTypeNamePath:(u,y)=>{let v=y(u.left),O;u.right.type==="JsdocTypeSpecialNamePath"?O=y(u.right).name:O=ot(u.right.value,u.right.meta.quote);let j=u.pathType==="inner"?"~":u.pathType==="instance"?"#":".";return at(`${v.name}${j}${O}`)},JsdocTypeSymbol:u=>{let y="",v=u.element,O=!1;return v?.type==="JsdocTypeVariadic"&&(v.meta.position==="prefix"?y="...":O=!0,v=v.element),v?.type==="JsdocTypeName"?y+=v.value:v?.type==="JsdocTypeNumber"&&(y+=v.value.toString()),O&&(y+="..."),at(`${u.value}(${y})`)},JsdocTypeParenthesis:(u,y)=>y(T(u.element)),JsdocTypeMappedType:Te,JsdocTypeIndexSignature:Te,JsdocTypeImport:Te,JsdocTypeKeyof:Te,JsdocTypeTuple:Te,JsdocTypeTypeof:Te,JsdocTypeIntersection:Te,JsdocTypeProperty:Te,JsdocTypePredicate:Te,JsdocTypeAsserts:Te};function sp(u){return ar(ip,u)}function Et(u){switch(u){case void 0:return"none";case"single":return"single";case"double":return"double"}}function lp(u){switch(u){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}function Tn(u,y){return y.length===2?{type:u,left:y[0],right:y[1]}:{type:u,left:y[0],right:Tn(u,y.slice(1))}}let up={JsdocTypeOptional:(u,y)=>({type:"OPTIONAL",value:y(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),JsdocTypeNullable:(u,y)=>({type:"NULLABLE",value:y(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),JsdocTypeNotNullable:(u,y)=>({type:"NOT_NULLABLE",value:y(u.element),meta:{syntax:u.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),JsdocTypeVariadic:(u,y)=>{let v={type:"VARIADIC",meta:{syntax:u.meta.position==="prefix"?"PREFIX_DOTS":u.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return u.element!==void 0&&(v.value=y(u.element)),v},JsdocTypeName:u=>({type:"NAME",name:u.value}),JsdocTypeTypeof:(u,y)=>({type:"TYPE_QUERY",name:y(u.element)}),JsdocTypeTuple:(u,y)=>({type:"TUPLE",entries:u.elements.map(y)}),JsdocTypeKeyof:(u,y)=>({type:"KEY_QUERY",value:y(u.element)}),JsdocTypeImport:u=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:Et(u.element.meta.quote),string:u.element.value}}),JsdocTypeUndefined:()=>({type:"NAME",name:"undefined"}),JsdocTypeAny:()=>({type:"ANY"}),JsdocTypeFunction:(u,y)=>{let v=ja(u),O={type:u.arrow?"ARROW":"FUNCTION",params:v.params.map(j=>{if(j.type==="JsdocTypeKeyValue"){if(j.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:j.key,typeName:y(j.right)}}else return y(j)}),new:null,returns:null};return v.this!==void 0?O.this=y(v.this):u.arrow||(O.this=null),v.new!==void 0&&(O.new=y(v.new)),u.returnType!==void 0&&(O.returns=y(u.returnType)),O},JsdocTypeGeneric:(u,y)=>{let v={type:"GENERIC",subject:y(u.left),objects:u.elements.map(y),meta:{syntax:u.meta.brackets==="square"?"SQUARE_BRACKET":u.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return u.meta.brackets==="square"&&u.elements[0].type==="JsdocTypeFunction"&&!u.elements[0].parenthesis&&(v.objects[0]={type:"NAME",name:"function"}),v},JsdocTypeObjectField:(u,y)=>{if(typeof u.key!="string")throw new Error("Index signatures and mapped types are not supported");if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:Et(u.meta.quote),value:null,readonly:!1};let v=y(u.right);return u.optional&&(v={type:"OPTIONAL",value:v,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key.toString(),quoteStyle:Et(u.meta.quote),value:v,readonly:!1}},JsdocTypeJsdocObjectField:()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},JsdocTypeKeyValue:(u,y)=>{if(u.right===void 0)return{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:null,readonly:!1};let v=y(u.right);return u.optional&&(v={type:"OPTIONAL",value:v,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:u.key,quoteStyle:"none",value:v,readonly:!1}},JsdocTypeObject:(u,y)=>{let v=[];for(let O of u.elements)(O.type==="JsdocTypeObjectField"||O.type==="JsdocTypeJsdocObjectField")&&v.push(y(O));return{type:"RECORD",entries:v}},JsdocTypeSpecialNamePath:u=>{if(u.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${u.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:Et(u.meta.quote),path:u.value}}},JsdocTypeNamePath:(u,y)=>{let v=!1,O,j;u.right.type==="JsdocTypeSpecialNamePath"&&u.right.specialType==="event"?(v=!0,O=u.right.value,j=Et(u.right.meta.quote)):(O=u.right.value,j=Et(u.right.meta.quote));let q={type:lp(u.pathType),owner:y(u.left),name:O,quoteStyle:j,hasEventPrefix:v};if(q.owner.type==="MODULE"){let W=q.owner;return q.owner=q.owner.value,W.value=q,W}else return q},JsdocTypeUnion:(u,y)=>Tn("UNION",u.elements.map(y)),JsdocTypeParenthesis:(u,y)=>({type:"PARENTHESIS",value:y(T(u.element))}),JsdocTypeNull:()=>({type:"NAME",name:"null"}),JsdocTypeUnknown:()=>({type:"UNKNOWN"}),JsdocTypeStringValue:u=>({type:"STRING_VALUE",quoteStyle:Et(u.meta.quote),string:u.value}),JsdocTypeIntersection:(u,y)=>Tn("INTERSECTION",u.elements.map(y)),JsdocTypeNumber:u=>({type:"NUMBER_VALUE",number:u.value.toString()}),JsdocTypeSymbol:Te,JsdocTypeProperty:Te,JsdocTypePredicate:Te,JsdocTypeMappedType:Te,JsdocTypeIndexSignature:Te,JsdocTypeAsserts:Te};function cp(u){return ar(up,u)}function dp(){return{JsdocTypeIntersection:(u,y)=>({type:"JsdocTypeIntersection",elements:u.elements.map(y)}),JsdocTypeGeneric:(u,y)=>({type:"JsdocTypeGeneric",left:y(u.left),elements:u.elements.map(y),meta:{dot:u.meta.dot,brackets:u.meta.brackets}}),JsdocTypeNullable:u=>u,JsdocTypeUnion:(u,y)=>({type:"JsdocTypeUnion",elements:u.elements.map(y)}),JsdocTypeUnknown:u=>u,JsdocTypeUndefined:u=>u,JsdocTypeTypeof:(u,y)=>({type:"JsdocTypeTypeof",element:y(u.element)}),JsdocTypeSymbol:(u,y)=>{let v={type:"JsdocTypeSymbol",value:u.value};return u.element!==void 0&&(v.element=y(u.element)),v},JsdocTypeOptional:(u,y)=>({type:"JsdocTypeOptional",element:y(u.element),meta:{position:u.meta.position}}),JsdocTypeObject:(u,y)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:u.elements.map(y)}),JsdocTypeNumber:u=>u,JsdocTypeNull:u=>u,JsdocTypeNotNullable:(u,y)=>({type:"JsdocTypeNotNullable",element:y(u.element),meta:{position:u.meta.position}}),JsdocTypeSpecialNamePath:u=>u,JsdocTypeObjectField:(u,y)=>({type:"JsdocTypeObjectField",key:u.key,right:u.right===void 0?void 0:y(u.right),optional:u.optional,readonly:u.readonly,meta:u.meta}),JsdocTypeJsdocObjectField:(u,y)=>({type:"JsdocTypeJsdocObjectField",left:y(u.left),right:y(u.right)}),JsdocTypeKeyValue:(u,y)=>({type:"JsdocTypeKeyValue",key:u.key,right:u.right===void 0?void 0:y(u.right),optional:u.optional,variadic:u.variadic}),JsdocTypeImport:(u,y)=>({type:"JsdocTypeImport",element:y(u.element)}),JsdocTypeAny:u=>u,JsdocTypeStringValue:u=>u,JsdocTypeNamePath:u=>u,JsdocTypeVariadic:(u,y)=>{let v={type:"JsdocTypeVariadic",meta:{position:u.meta.position,squareBrackets:u.meta.squareBrackets}};return u.element!==void 0&&(v.element=y(u.element)),v},JsdocTypeTuple:(u,y)=>({type:"JsdocTypeTuple",elements:u.elements.map(y)}),JsdocTypeName:u=>u,JsdocTypeFunction:(u,y)=>{let v={type:"JsdocTypeFunction",arrow:u.arrow,parameters:u.parameters.map(y),constructor:u.constructor,parenthesis:u.parenthesis};return u.returnType!==void 0&&(v.returnType=y(u.returnType)),v},JsdocTypeKeyof:(u,y)=>({type:"JsdocTypeKeyof",element:y(u.element)}),JsdocTypeParenthesis:(u,y)=>({type:"JsdocTypeParenthesis",element:y(u.element)}),JsdocTypeProperty:u=>u,JsdocTypePredicate:(u,y)=>({type:"JsdocTypePredicate",left:y(u.left),right:y(u.right)}),JsdocTypeIndexSignature:(u,y)=>({type:"JsdocTypeIndexSignature",key:u.key,right:y(u.right)}),JsdocTypeMappedType:(u,y)=>({type:"JsdocTypeMappedType",key:u.key,right:y(u.right)}),JsdocTypeAsserts:(u,y)=>({type:"JsdocTypeAsserts",left:y(u.left),right:y(u.right)})}}let Ma={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"]};function Cn(u,y,v,O,j){O?.(u,y,v);let q=Ma[u.type];for(let W of q){let te=u[W];if(te!==void 0)if(Array.isArray(te))for(let Ce of te)Cn(Ce,u,W,O,j);else Cn(te,u,W,O,j)}j?.(u,y,v)}function pp(u,y,v){Cn(u,void 0,void 0,y,v)}e.catharsisTransform=sp,e.identityTransformRules=dp,e.jtpTransform=cp,e.parse=Ba,e.stringify=op,e.stringifyRules=La,e.transform=ar,e.traverse=pp,e.tryParse=rp,e.visitorKeys=Ma})});var fc={};qa(fc,{ColorControl:()=>pc,default:()=>Qy});function Ot(){return(Ot=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}function Xo(e){var t=Re(e),r=Re(function(n){t.current&&t.current(n)});return t.current=e,r.current}function lc(e,t,r){var n=Xo(r),o=X(function(){return e.toHsva(t)}),a=o[0],i=o[1],l=Re({color:t,hsva:a});Se(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},i(c)}},[t,e]),Se(function(){var c;ic(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},n(c))},[a,e,n]);var s=xe(function(c){i(function(d){return Object.assign({},d,c)})},[]);return[a,s]}var fy,ec,hy,my,Ue,Kt,vr,Qo,Ku,Yu,na,xr,oa,Ee,yy,gy,Zo,by,Ey,vy,xy,tc,ea,ln,rc,Sy,on,wy,nc,oc,ac,ic,sc,Ay,Ty,Cy,Xu,uc,ky,Iy,Oy,Dy,cc,Ry,_y,Py,Fy,Ny,By,jy,Ly,My,Uy,$y,Qu,qy,Vy,dc,an,Jy,zy,Hy,ta,Gy,Wy,sn,Zu,Wt,Ky,Yy,un,Xy,pc,Qy,hc=Qe(()=>{V();J();z();In();Rr();Pr();Qn();ro();fy=je({"../../node_modules/color-name/index.js"(e,t){t.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]}}}),ec=je({"../../node_modules/color-convert/conversions.js"(e,t){var r=fy(),n={};for(let i of Object.keys(r))n[r[i]]=i;var o={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"]}};t.exports=o;for(let i of Object.keys(o)){if(!("channels"in o[i]))throw new Error("missing channels property: "+i);if(!("labels"in o[i]))throw new Error("missing channel labels property: "+i);if(o[i].labels.length!==o[i].channels)throw new Error("channel and label counts mismatch: "+i);let{channels:l,labels:s}=o[i];delete o[i].channels,delete o[i].labels,Object.defineProperty(o[i],"channels",{value:l}),Object.defineProperty(o[i],"labels",{value:s})}o.rgb.hsl=function(i){let l=i[0]/255,s=i[1]/255,c=i[2]/255,d=Math.min(l,s,c),p=Math.max(l,s,c),h=p-d,f,b;p===d?f=0:l===p?f=(s-c)/h:s===p?f=2+(c-l)/h:c===p&&(f=4+(l-s)/h),f=Math.min(f*60,360),f<0&&(f+=360);let g=(d+p)/2;return p===d?b=0:g<=.5?b=h/(p+d):b=h/(2-p-d),[f,b*100,g*100]},o.rgb.hsv=function(i){let l,s,c,d,p,h=i[0]/255,f=i[1]/255,b=i[2]/255,g=Math.max(h,f,b),x=g-Math.min(h,f,b),S=function(A){return(g-A)/6/x+1/2};return x===0?(d=0,p=0):(p=x/g,l=S(h),s=S(f),c=S(b),h===g?d=c-s:f===g?d=1/3+l-c:b===g&&(d=2/3+s-l),d<0?d+=1:d>1&&(d-=1)),[d*360,p*100,g*100]},o.rgb.hwb=function(i){let l=i[0],s=i[1],c=i[2],d=o.rgb.hsl(i)[0],p=1/255*Math.min(l,Math.min(s,c));return c=1-1/255*Math.max(l,Math.max(s,c)),[d,p*100,c*100]},o.rgb.cmyk=function(i){let l=i[0]/255,s=i[1]/255,c=i[2]/255,d=Math.min(1-l,1-s,1-c),p=(1-l-d)/(1-d)||0,h=(1-s-d)/(1-d)||0,f=(1-c-d)/(1-d)||0;return[p*100,h*100,f*100,d*100]};function a(i,l){return(i[0]-l[0])**2+(i[1]-l[1])**2+(i[2]-l[2])**2}o.rgb.keyword=function(i){let l=n[i];if(l)return l;let s=1/0,c;for(let d of Object.keys(r)){let p=r[d],h=a(i,p);h.04045?((l+.055)/1.055)**2.4:l/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92;let d=l*.4124+s*.3576+c*.1805,p=l*.2126+s*.7152+c*.0722,h=l*.0193+s*.1192+c*.9505;return[d*100,p*100,h*100]},o.rgb.lab=function(i){let l=o.rgb.xyz(i),s=l[0],c=l[1],d=l[2];s/=95.047,c/=100,d/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,d=d>.008856?d**(1/3):7.787*d+16/116;let p=116*c-16,h=500*(s-c),f=200*(c-d);return[p,h,f]},o.hsl.rgb=function(i){let l=i[0]/360,s=i[1]/100,c=i[2]/100,d,p,h;if(s===0)return h=c*255,[h,h,h];c<.5?d=c*(1+s):d=c+s-c*s;let f=2*c-d,b=[0,0,0];for(let g=0;g<3;g++)p=l+1/3*-(g-1),p<0&&p++,p>1&&p--,6*p<1?h=f+(d-f)*6*p:2*p<1?h=d:3*p<2?h=f+(d-f)*(2/3-p)*6:h=f,b[g]=h*255;return b},o.hsl.hsv=function(i){let l=i[0],s=i[1]/100,c=i[2]/100,d=s,p=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,d*=p<=1?p:2-p;let h=(c+s)/2,f=c===0?2*d/(p+d):2*s/(c+s);return[l,f*100,h*100]},o.hsv.rgb=function(i){let l=i[0]/60,s=i[1]/100,c=i[2]/100,d=Math.floor(l)%6,p=l-Math.floor(l),h=255*c*(1-s),f=255*c*(1-s*p),b=255*c*(1-s*(1-p));switch(c*=255,d){case 0:return[c,b,h];case 1:return[f,c,h];case 2:return[h,c,b];case 3:return[h,f,c];case 4:return[b,h,c];case 5:return[c,h,f]}},o.hsv.hsl=function(i){let l=i[0],s=i[1]/100,c=i[2]/100,d=Math.max(c,.01),p,h;h=(2-s)*c;let f=(2-s)*d;return p=s*d,p/=f<=1?f:2-f,p=p||0,h/=2,[l,p*100,h*100]},o.hwb.rgb=function(i){let l=i[0]/360,s=i[1]/100,c=i[2]/100,d=s+c,p;d>1&&(s/=d,c/=d);let h=Math.floor(6*l),f=1-c;p=6*l-h,h&1&&(p=1-p);let b=s+p*(f-s),g,x,S;switch(h){default:case 6:case 0:g=f,x=b,S=s;break;case 1:g=b,x=f,S=s;break;case 2:g=s,x=f,S=b;break;case 3:g=s,x=b,S=f;break;case 4:g=b,x=s,S=f;break;case 5:g=f,x=s,S=b;break}return[g*255,x*255,S*255]},o.cmyk.rgb=function(i){let l=i[0]/100,s=i[1]/100,c=i[2]/100,d=i[3]/100,p=1-Math.min(1,l*(1-d)+d),h=1-Math.min(1,s*(1-d)+d),f=1-Math.min(1,c*(1-d)+d);return[p*255,h*255,f*255]},o.xyz.rgb=function(i){let l=i[0]/100,s=i[1]/100,c=i[2]/100,d,p,h;return d=l*3.2406+s*-1.5372+c*-.4986,p=l*-.9689+s*1.8758+c*.0415,h=l*.0557+s*-.204+c*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,p=p>.0031308?1.055*p**(1/2.4)-.055:p*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,d=Math.min(Math.max(0,d),1),p=Math.min(Math.max(0,p),1),h=Math.min(Math.max(0,h),1),[d*255,p*255,h*255]},o.xyz.lab=function(i){let l=i[0],s=i[1],c=i[2];l/=95.047,s/=100,c/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let d=116*s-16,p=500*(l-s),h=200*(s-c);return[d,p,h]},o.lab.xyz=function(i){let l=i[0],s=i[1],c=i[2],d,p,h;p=(l+16)/116,d=s/500+p,h=p-c/200;let f=p**3,b=d**3,g=h**3;return p=f>.008856?f:(p-16/116)/7.787,d=b>.008856?b:(d-16/116)/7.787,h=g>.008856?g:(h-16/116)/7.787,d*=95.047,p*=100,h*=108.883,[d,p,h]},o.lab.lch=function(i){let l=i[0],s=i[1],c=i[2],d;d=Math.atan2(c,s)*360/2/Math.PI,d<0&&(d+=360);let p=Math.sqrt(s*s+c*c);return[l,p,d]},o.lch.lab=function(i){let l=i[0],s=i[1],c=i[2]/360*2*Math.PI,d=s*Math.cos(c),p=s*Math.sin(c);return[l,d,p]},o.rgb.ansi16=function(i,l=null){let[s,c,d]=i,p=l===null?o.rgb.hsv(i)[2]:l;if(p=Math.round(p/50),p===0)return 30;let h=30+(Math.round(d/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return p===2&&(h+=60),h},o.hsv.ansi16=function(i){return o.rgb.ansi16(o.hsv.rgb(i),i[2])},o.rgb.ansi256=function(i){let l=i[0],s=i[1],c=i[2];return l===s&&s===c?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)},o.ansi16.rgb=function(i){let l=i%10;if(l===0||l===7)return i>50&&(l+=3.5),l=l/10.5*255,[l,l,l];let s=(~~(i>50)+1)*.5,c=(l&1)*s*255,d=(l>>1&1)*s*255,p=(l>>2&1)*s*255;return[c,d,p]},o.ansi256.rgb=function(i){if(i>=232){let p=(i-232)*10+8;return[p,p,p]}i-=16;let l,s=Math.floor(i/36)/5*255,c=Math.floor((l=i%36)/6)/5*255,d=l%6/5*255;return[s,c,d]},o.rgb.hex=function(i){let l=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(l.length)+l},o.hex.rgb=function(i){let l=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];let s=l[0];l[0].length===3&&(s=s.split("").map(f=>f+f).join(""));let c=parseInt(s,16),d=c>>16&255,p=c>>8&255,h=c&255;return[d,p,h]},o.rgb.hcg=function(i){let l=i[0]/255,s=i[1]/255,c=i[2]/255,d=Math.max(Math.max(l,s),c),p=Math.min(Math.min(l,s),c),h=d-p,f,b;return h<1?f=p/(1-h):f=0,h<=0?b=0:d===l?b=(s-c)/h%6:d===s?b=2+(c-l)/h:b=4+(l-s)/h,b/=6,b%=1,[b*360,h*100,f*100]},o.hsl.hcg=function(i){let l=i[1]/100,s=i[2]/100,c=s<.5?2*l*s:2*l*(1-s),d=0;return c<1&&(d=(s-.5*c)/(1-c)),[i[0],c*100,d*100]},o.hsv.hcg=function(i){let l=i[1]/100,s=i[2]/100,c=l*s,d=0;return c<1&&(d=(s-c)/(1-c)),[i[0],c*100,d*100]},o.hcg.rgb=function(i){let l=i[0]/360,s=i[1]/100,c=i[2]/100;if(s===0)return[c*255,c*255,c*255];let d=[0,0,0],p=l%1*6,h=p%1,f=1-h,b=0;switch(Math.floor(p)){case 0:d[0]=1,d[1]=h,d[2]=0;break;case 1:d[0]=f,d[1]=1,d[2]=0;break;case 2:d[0]=0,d[1]=1,d[2]=h;break;case 3:d[0]=0,d[1]=f,d[2]=1;break;case 4:d[0]=h,d[1]=0,d[2]=1;break;default:d[0]=1,d[1]=0,d[2]=f}return b=(1-s)*c,[(s*d[0]+b)*255,(s*d[1]+b)*255,(s*d[2]+b)*255]},o.hcg.hsv=function(i){let l=i[1]/100,s=i[2]/100,c=l+s*(1-l),d=0;return c>0&&(d=l/c),[i[0],d*100,c*100]},o.hcg.hsl=function(i){let l=i[1]/100,s=i[2]/100*(1-l)+.5*l,c=0;return s>0&&s<.5?c=l/(2*s):s>=.5&&s<1&&(c=l/(2*(1-s))),[i[0],c*100,s*100]},o.hcg.hwb=function(i){let l=i[1]/100,s=i[2]/100,c=l+s*(1-l);return[i[0],(c-l)*100,(1-c)*100]},o.hwb.hcg=function(i){let l=i[1]/100,s=1-i[2]/100,c=s-l,d=0;return c<1&&(d=(s-c)/(1-c)),[i[0],c*100,d*100]},o.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},o.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},o.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},o.gray.hsl=function(i){return[0,0,i[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(i){return[0,100,i[0]]},o.gray.cmyk=function(i){return[0,0,0,i[0]]},o.gray.lab=function(i){return[i[0],0,0]},o.gray.hex=function(i){let l=Math.round(i[0]/100*255)&255,s=((l<<16)+(l<<8)+l).toString(16).toUpperCase();return"000000".substring(s.length)+s},o.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]}}}),hy=je({"../../node_modules/color-convert/route.js"(e,t){var r=ec();function n(){let l={},s=Object.keys(r);for(let c=s.length,d=0;d1&&(d=p),s(d))};return"conversion"in s&&(c.conversion=s.conversion),c}function l(s){let c=function(...d){let p=d[0];if(p==null)return p;p.length>1&&(d=p);let h=s(d);if(typeof h=="object")for(let f=h.length,b=0;b{o[s]={},Object.defineProperty(o[s],"channels",{value:r[s].channels}),Object.defineProperty(o[s],"labels",{value:r[s].labels});let c=n(s);Object.keys(c).forEach(d=>{let p=c[d];o[s][d]=l(p),o[s][d].raw=i(p)})}),t.exports=o}}),Ue=Lt(my());Kt=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e0:x.buttons>0)&&o.current?a(Ku(o.current,x,l.current)):g(!1)},b=function(){return g(!1)};function g(x){var S=s.current,A=Qo(o.current),k=x?A.addEventListener:A.removeEventListener;k(S?"touchmove":"mousemove",f),k(S?"touchend":"mouseup",b)}return[function(x){var S=x.nativeEvent,A=o.current;if(A&&(Yu(S),!function(T,I){return I&&!vr(T)}(S,s.current)&&A)){if(vr(S)){s.current=!0;var k=S.changedTouches||[];k.length&&(l.current=k[0].identifier)}A.focus(),a(Ku(A,S,l.current)),g(!0)}},function(x){var S=x.which||x.keyCode;S<37||S>40||(x.preventDefault(),i({left:S===39?.05:S===37?-.05:0,top:S===40?.05:S===38?-.05:0}))},g]},[i,a]),d=c[0],p=c[1],h=c[2];return Se(function(){return h},[h]),m.createElement("div",Ot({},n,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:p,tabIndex:0,role:"slider"}))}),xr=function(e){return e.filter(Boolean).join(" ")},oa=function(e){var t=e.color,r=e.left,n=e.top,o=n===void 0?.5:n,a=xr(["react-colorful__pointer",e.className]);return m.createElement("div",{className:a,style:{top:100*o+"%",left:100*r+"%"}},m.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Ee=function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},yy={grad:.9,turn:360,rad:360/(2*Math.PI)},gy=function(e){return nc(Zo(e))},Zo=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Ee(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?Ee(parseInt(e.substring(6,8),16)/255,2):1}},by=function(e,t){return t===void 0&&(t="deg"),Number(e)*(yy[t]||1)},Ey=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?vy({h:by(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},vy=function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},xy=function(e){return wy(rc(e))},tc=function(e){var t=e.s,r=e.v,n=e.a,o=(200-t)*r/100;return{h:Ee(e.h),s:Ee(o>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0),l:Ee(o/2),a:Ee(n,2)}},ea=function(e){var t=tc(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},ln=function(e){var t=tc(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},rc=function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),i=n*(1-r),l=n*(1-(t-a)*r),s=n*(1-(1-t+a)*r),c=a%6;return{r:Ee(255*[n,l,i,i,s,n][c]),g:Ee(255*[s,n,n,l,i,i][c]),b:Ee(255*[i,i,s,n,n,l][c]),a:Ee(o,2)}},Sy=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?nc({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},on=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},wy=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=o<1?on(Ee(255*o)):"";return"#"+on(t)+on(r)+on(n)+a},nc=function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),i=a-Math.min(t,r,n),l=i?a===t?(r-n)/i:a===r?2+(n-t)/i:4+(t-r)/i:0;return{h:Ee(60*(l<0?l+6:l)),s:Ee(a?i/a*100:0),v:Ee(a/255*100),a:o}},oc=m.memo(function(e){var t=e.hue,r=e.onChange,n=xr(["react-colorful__hue",e.className]);return m.createElement("div",{className:n},m.createElement(na,{onMove:function(o){r({h:360*o.left})},onKey:function(o){r({h:Kt(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":Ee(t),"aria-valuemax":"360","aria-valuemin":"0"},m.createElement(oa,{className:"react-colorful__hue-pointer",left:t/360,color:ea({h:t,s:100,v:100,a:1})})))}),ac=m.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:ea({h:t.h,s:100,v:100,a:1})};return m.createElement("div",{className:"react-colorful__saturation",style:n},m.createElement(na,{onMove:function(o){r({s:100*o.left,v:100-100*o.top})},onKey:function(o){r({s:Kt(t.s+100*o.left,0,100),v:Kt(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Ee(t.s)+"%, Brightness "+Ee(t.v)+"%"},m.createElement(oa,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:ea(t)})))}),ic=function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},sc=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Ay=function(e,t){return e.toLowerCase()===t.toLowerCase()||ic(Zo(e),Zo(t))};Ty=typeof window<"u"?ei:Se,Cy=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Xu=new Map,uc=function(e){Ty(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!Xu.has(t)){var r=t.createElement("style");r.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}`,Xu.set(t,r);var n=Cy();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])},ky=function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,i=ra(e,["className","colorModel","color","onChange"]),l=Re(null);uc(l);var s=lc(r,o,a),c=s[0],d=s[1],p=xr(["react-colorful",t]);return m.createElement("div",Ot({},i,{ref:l,className:p}),m.createElement(ac,{hsva:c,onChange:d}),m.createElement(oc,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Iy={defaultColor:"000",toHsva:gy,fromHsva:function(e){return xy({h:e.h,s:e.s,v:e.v,a:1})},equal:Ay},Oy=function(e){return m.createElement(ky,Ot({},e,{colorModel:Iy}))},Dy=function(e){var t=e.className,r=e.hsva,n=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+ln(Object.assign({},r,{a:0}))+", "+ln(Object.assign({},r,{a:1}))+")"},a=xr(["react-colorful__alpha",t]),i=Ee(100*r.a);return m.createElement("div",{className:a},m.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),m.createElement(na,{onMove:function(l){n({a:l.left})},onKey:function(l){n({a:Kt(r.a+l.left)})},"aria-label":"Alpha","aria-valuetext":i+"%","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":"100"},m.createElement(oa,{className:"react-colorful__alpha-pointer",left:r.a,color:ln(r)})))},cc=function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,i=ra(e,["className","colorModel","color","onChange"]),l=Re(null);uc(l);var s=lc(r,o,a),c=s[0],d=s[1],p=xr(["react-colorful",t]);return m.createElement("div",Ot({},i,{ref:l,className:p}),m.createElement(ac,{hsva:c,onChange:d}),m.createElement(oc,{hue:c.h,onChange:d}),m.createElement(Dy,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ry={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:Ey,fromHsva:ln,equal:sc},_y=function(e){return m.createElement(cc,Ot({},e,{colorModel:Ry}))},Py={defaultColor:"rgba(0, 0, 0, 1)",toHsva:Sy,fromHsva:function(e){var t=rc(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:sc},Fy=function(e){return m.createElement(cc,Ot({},e,{colorModel:Py}))},Ny=R.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),By=R(ut)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),jy=R.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"}}),Ly=R(St)(({theme:e})=>({fontFamily:e.typography.fonts.base})),My=R.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Uy=R.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),$y=`url('data:image/svg+xml;charset=utf-8,')`,Qu=({value:e,style:t,...r})=>{let n=`linear-gradient(${e}, ${e}), ${$y}, linear-gradient(#fff, #fff)`;return m.createElement(Uy,{...r,style:{...t,backgroundImage:n}})},qy=R(Ve.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vy=R(Mi)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),dc=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(dc||{}),an=Object.values(dc),Jy=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,zy=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Hy=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,ta=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Gy=/^\s*#?([0-9a-f]{3})\s*$/i,Wy={hex:Oy,rgb:Fy,hsl:_y},sn={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},Zu=e=>{let t=e?.match(Jy);if(!t)return[0,0,0,1];let[,r,n,o,a=1]=t;return[r,n,o,a].map(Number)},Wt=e=>{if(!e)return;let t=!0;if(zy.test(e)){let[i,l,s,c]=Zu(e),[d,p,h]=Ue.default.rgb.hsl([i,l,s])||[0,0,0];return{valid:t,value:e,keyword:Ue.default.rgb.keyword([i,l,s]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${p}%, ${h}%, ${c})`,hex:`#${Ue.default.rgb.hex([i,l,s]).toLowerCase()}`}}if(Hy.test(e)){let[i,l,s,c]=Zu(e),[d,p,h]=Ue.default.hsl.rgb([i,l,s])||[0,0,0];return{valid:t,value:e,keyword:Ue.default.hsl.keyword([i,l,s]),colorSpace:"hsl",rgb:`rgba(${d}, ${p}, ${h}, ${c})`,hsl:e,hex:`#${Ue.default.hsl.hex([i,l,s]).toLowerCase()}`}}let r=e.replace("#",""),n=Ue.default.keyword.rgb(r)||Ue.default.hex.rgb(r),o=Ue.default.rgb.hsl(n),a=e;if(/[^#a-f0-9]/i.test(e)?a=r:ta.test(e)&&(a=`#${r}`),a.startsWith("#"))t=ta.test(a);else try{Ue.default.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:Ue.default.rgb.keyword(n),colorSpace:"hex",rgb:`rgba(${n[0]}, ${n[1]}, ${n[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Ky=(e,t,r)=>{if(!e||!t?.valid)return sn[r];if(r!=="hex")return t?.[r]||sn[r];if(!t.hex.startsWith("#"))try{return`#${Ue.default.keyword.hex(t.hex)}`}catch{return sn.hex}let n=t.hex.match(Gy);if(!n)return ta.test(t.hex)?t.hex:sn.hex;let[o,a,i]=n[1].split("");return`#${o}${o}${a}${a}${i}${i}`},Yy=(e,t)=>{let[r,n]=X(e||""),[o,a]=X(()=>Wt(r)),[i,l]=X(o?.colorSpace||"hex");Se(()=>{let p=e||"",h=Wt(p);n(p),a(h),l(h?.colorSpace||"hex")},[e]);let s=st(()=>Ky(r,o,i).toLowerCase(),[r,o,i]),c=xe(p=>{let h=Wt(p),f=h?.value||p||"";n(f),f===""&&(a(void 0),t(void 0)),h&&(a(h),l(h.colorSpace),t(h.value))},[t]),d=xe(()=>{let p=an.indexOf(i)+1;p>=an.length&&(p=0),l(an[p]);let h=o?.[an[p]]||"";n(h),t(h)},[o,i,t]);return{value:r,realValue:s,updateValue:c,color:o,colorSpace:i,cycleColorSpace:d}},un=e=>e.replace(/\s*/,"").toLowerCase(),Xy=(e,t,r)=>{let[n,o]=X(t?.valid?[t]:[]);Se(()=>{t===void 0&&o([])},[t]);let a=st(()=>(e||[]).map(l=>typeof l=="string"?Wt(l):l.title?{...Wt(l.color),keyword:l.title}:Wt(l.color)).concat(n).filter(Boolean).slice(-27),[e,n]),i=xe(l=>{l?.valid&&(a.some(s=>un(s[r])===un(l[r]))||o(s=>s.concat(l)))},[r,a]);return{presets:a,addPreset:i}},pc=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,presetColors:a,startOpen:i=!1,argType:l})=>{let s=xe(Ha(r,200),[r]),{value:c,realValue:d,updateValue:p,color:h,colorSpace:f,cycleColorSpace:b}=Yy(t,s),{presets:g,addPreset:x}=Xy(a,h,f),S=Wy[f],A=!!l?.table?.readonly;return m.createElement(Ny,{"aria-readonly":A},m.createElement(By,{startOpen:i,trigger:A?[null]:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>x(h),tooltip:m.createElement(jy,null,m.createElement(S,{color:d==="transparent"?"#000000":d,onChange:p,onFocus:n,onBlur:o}),g.length>0&&m.createElement(My,null,g.map((k,T)=>m.createElement(ut,{key:`${k.value}-${T}`,hasChrome:!1,tooltip:m.createElement(Ly,{note:k.keyword||k.value})},m.createElement(Qu,{value:k[f],active:h&&un(k[f])===un(h[f]),onClick:()=>p(k.value)})))))},m.createElement(Qu,{value:d,style:{margin:4}})),m.createElement(qy,{id:Fe(e),value:c,onChange:k=>p(k.target.value),onFocus:k=>k.target.select(),readOnly:A,placeholder:"Choose color..."}),c?m.createElement(Vy,{onClick:b}):null)},Qy=pc});V();J();z();V();J();z();V();J();z();In();Rr();Rr();Pr();V();J();z();V();J();z();var xx=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:ri,ARGTYPES_INFO_RESPONSE:Vn,CHANNEL_CREATED:Sx,CHANNEL_WS_DISCONNECT:wx,CONFIG_ERROR:ni,CREATE_NEW_STORYFILE_REQUEST:Ax,CREATE_NEW_STORYFILE_RESPONSE:Tx,CURRENT_STORY_WAS_SET:Jn,DOCS_PREPARED:oi,DOCS_RENDERED:Fr,FILE_COMPONENT_SEARCH_REQUEST:Cx,FILE_COMPONENT_SEARCH_RESPONSE:kx,FORCE_REMOUNT:ai,FORCE_RE_RENDER:Nr,GLOBALS_UPDATED:$t,NAVIGATE_URL:ii,PLAY_FUNCTION_THREW_EXCEPTION:si,PRELOAD_ENTRIES:li,PREVIEW_BUILDER_PROGRESS:Ix,PREVIEW_KEYDOWN:ui,REGISTER_SUBSCRIPTION:Ox,REQUEST_WHATS_NEW_DATA:Dx,RESET_STORY_ARGS:Br,RESULT_WHATS_NEW_DATA:Rx,SAVE_STORY_REQUEST:zn,SAVE_STORY_RESPONSE:jr,SELECT_STORY:_x,SET_CONFIG:Px,SET_CURRENT_STORY:ci,SET_FILTER:Fx,SET_GLOBALS:di,SET_INDEX:Nx,SET_STORIES:Bx,SET_WHATS_NEW_CACHE:jx,SHARED_STATE_CHANGED:Lx,SHARED_STATE_SET:Mx,STORIES_COLLAPSE_ALL:Ux,STORIES_EXPAND_ALL:$x,STORY_ARGS_UPDATED:pi,STORY_CHANGED:fi,STORY_ERRORED:hi,STORY_INDEX_INVALIDATED:mi,STORY_MISSING:Hn,STORY_PREPARED:yi,STORY_RENDERED:cr,STORY_RENDER_PHASE_CHANGED:qt,STORY_SPECIFIED:gi,STORY_THREW_EXCEPTION:bi,STORY_UNCHANGED:Ei,TELEMETRY_ERROR:qx,TESTING_MODULE_CANCEL_TEST_RUN_REQUEST:Vx,TESTING_MODULE_CANCEL_TEST_RUN_RESPONSE:Jx,TESTING_MODULE_CRASH_REPORT:zx,TESTING_MODULE_PROGRESS_REPORT:Hx,TESTING_MODULE_RUN_ALL_REQUEST:Gx,TESTING_MODULE_RUN_REQUEST:Wx,TESTING_MODULE_WATCH_MODE_REQUEST:Kx,TOGGLE_WHATS_NEW_NOTIFICATIONS:Yx,UNHANDLED_ERRORS_WHILE_PLAYING:vi,UPDATE_GLOBALS:Lr,UPDATE_QUERY_PARAMS:xi,UPDATE_STORY_ARGS:Mr}=__STORYBOOK_CORE_EVENTS__;V();J();z();var iS=__STORYBOOK_API__,{ActiveTabs:sS,Consumer:lS,ManagerContext:uS,Provider:cS,RequestResponseError:dS,addons:Ur,combineParameters:pS,controlOrMetaKey:fS,controlOrMetaSymbol:hS,eventMatchesShortcut:mS,eventToShortcut:yS,experimental_requestResponse:Gn,isMacLike:gS,isShortcutTaken:bS,keyToSymbol:ES,merge:vS,mockChannel:xS,optionOrAltSymbol:SS,shortcutMatchesShortcut:wS,shortcutToHumanString:AS,types:Si,useAddonState:TS,useArgTypes:Wn,useArgs:wi,useChannel:CS,useGlobalTypes:kS,useGlobals:Ai,useParameter:Ti,useSharedState:IS,useStoryPrepared:OS,useStorybookApi:DS,useStorybookState:Ci}=__STORYBOOK_API__;Qn();V();J();z();var Di=Object.prototype.hasOwnProperty;function Ri(e,t,r){for(r of e.keys())if(wt(r,t))return r}function wt(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&wt(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=Ri(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=Ri(t,o),!o)||!wt(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Di.call(e,r)&&++n&&!Di.call(t,r)||!(r in t)||!wt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}ro();V();J();z();var b5=__STORYBOOK_CLIENT_LOGGER__,{deprecate:E5,logger:Vr,once:zi,pretty:v5}=__STORYBOOK_CLIENT_LOGGER__;V();J();z();V();J();z();V();J();z();var T5=__STORYBOOK_CHANNELS__,{Channel:Hi,PostMessageTransport:C5,WebsocketTransport:k5,createBrowserChannel:I5}=__STORYBOOK_CHANNELS__;V();J();z();var P5=__STORYBOOK_CLIENT_LOGGER__,{deprecate:Ze,logger:Q,once:ct,pretty:F5}=__STORYBOOK_CLIENT_LOGGER__;V();J();z();var kf=Object.defineProperty,ce=(e,t)=>kf(e,"name",{value:t,configurable:!0});function de(e){for(var t=[],r=1;r()=>(t||e((t={exports:{}}).exports,t),t.exports),Mf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nf(t))!jf.call(e,o)&&o!==r&&ws(e,o,{get:()=>t[o],enumerable:!(n=Ff(t,o))||n.enumerable});return e},Uf=(e,t,r)=>(r=e!=null?Pf(Bf(e)):{},Mf(t||!e||!e.__esModule?ws(r,"default",{value:e,enumerable:!0}):r,e)),$f=Lf(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(l,s,c){var d,p,h,f=t.call(l),b=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(c.indexOf(l)>-1&&c.indexOf(s)>-1)return!0;if(c.push(l,s),f!=b||(d=n(l),p=n(s),d.length!=p.length||d.some(function(g){return!i(l[g],s[g],c)})))return!1;switch(f.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":d=l.entries(),p=s.entries();do if(!i((h=d.next()).value,p.next().value,c))return!1;while(!h.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(h=0;h`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}var vs=Uf($f()),As=e=>e.map(t=>typeof t<"u").filter(Boolean).length,Vf=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(As([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,vs.isEqual)(t,n);if(typeof o<"u")return!(0,vs.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},Ts=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(As([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return Vf(e.if,a)},oo=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),xs=(e,t)=>{let r=oo(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Cs=(e,t)=>`${xs(e,"kind")}${t?`--${xs(t,"name")}`:""}`,ks=e=>qf(e);function Ss(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function zr(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Ss(e,t))&&(!r||!Ss(e,r))}var Is=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};var Jf=Object.create,ko=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,Hf=Object.getOwnPropertyNames,Gf=Object.getPrototypeOf,Wf=Object.prototype.hasOwnProperty,E=(e,t)=>ko(e,"name",{value:t,configurable:!0}),Hr=(e=>typeof Pe<"u"?Pe:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Pe<"u"?Pe:t)[r]}):e)(function(e){if(typeof Pe<"u")return Pe.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Hf(t))!Wf.call(e,o)&&o!==r&&ko(e,o,{get:()=>t[o],enumerable:!(n=zf(t,o))||n.enumerable});return e},Ht=(e,t,r)=>(r=e!=null?Jf(Gf(e)):{},Kf(t||!e||!e.__esModule?ko(r,"default",{value:e,enumerable:!0}):r,e)),Js=we((e,t)=>{(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"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return E(function a(i,l,s){function c(h,f){if(!l[h]){if(!i[h]){var b=typeof Hr=="function"&&Hr;if(!f&&b)return b(h,!0);if(d)return d(h,!0);var g=new Error("Cannot find module '"+h+"'");throw g.code="MODULE_NOT_FOUND",g}var x=l[h]={exports:{}};i[h][0].call(x.exports,function(S){var A=i[h][1][S];return c(A||S)},x,x.exports,a,i,l,s)}return l[h].exports}E(c,"s");for(var d=typeof Hr=="function"&&Hr,p=0;p=0)return this.lastItem=this.list[d],this.list[d].val},s.prototype.set=function(c,d){var p;return this.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=d,this):(p=this.indexOf(c),p>=0?(this.lastItem=this.list[p],this.list[p].val=d,this):(this.lastItem={key:c,val:d},this.list.push(this.lastItem),this.size++,this))},s.prototype.delete=function(c){var d;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void 0),d=this.indexOf(c),d>=0)return this.size--,this.list.splice(d,1)[0]},s.prototype.has=function(c){var d;return this.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(d=this.indexOf(c),d>=0?(this.lastItem=this.list[d],!0):!1)},s.prototype.forEach=function(c,d){var p;for(p=0;p0&&(I[T]={cacheItem:S,arg:arguments[T]},D?c(b,I):b.push(I),b.length>h&&d(b.shift())),x.wasMemoized=D,x.numArgs=T+1,k},"memoizerific");return x.limit=h,x.wasMemoized=!1,x.cache=f,x.lru=b,x}};function c(h,f){var b=h.length,g=f.length,x,S,A;for(S=0;S=0&&(b=h[x],g=b.cacheItem.get(b.arg),!g||!g.size);x--)b.cacheItem.delete(b.arg)}E(d,"removeCachedResult");function p(h,f){return h===f||h!==h&&f!==f}E(p,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),zs=we(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,a)=>"%"+((a<16?"0":"")+a.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let a=o.length;if(a===0)return"";let i="",l=0,s=0;e:for(;s>6]+t[128|c&63];continue}if(c<55296||c>=57344){l=s+1,i+=t[224|c>>12]+t[128|c>>6&63]+t[128|c&63];continue}if(++s,s>=a)throw new Error("URI malformed");let d=o.charCodeAt(s)&1023;l=s+1,c=65536+((c&1023)<<10|d),i+=t[240|c>>18]+t[128|c>>12&63]+t[128|c>>6&63]+t[128|c&63]}return l===0?o:l{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=zs(),r=E(a=>{switch(typeof a){case"string":return(0,t.encodeString)(a);case"bigint":case"boolean":return""+a;case"number":if(Number.isFinite(a))return a<1e21?""+a:(0,t.encodeString)(""+a);break}return a instanceof Date?(0,t.encodeString)(a.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var n=E(a=>a instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=n;var o=E(a=>a,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}),Hs=we(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=d;var t=Io(),r=zs();function n(p){return p==="__proto__"||p==="constructor"||p==="prototype"}E(n,"isPrototypeKey");function o(p,h,f,b,g){if(n(h))return p;let x=p[h];return typeof x=="object"&&x!==null?x:!b&&(g||typeof f=="number"||typeof f=="string"&&f*0===0&&f.indexOf(".")===-1)?p[h]=[]:p[h]={}}E(o,"getDeepObject");var a=20,i="[]",l="[",s="]",c=".";function d(p,h,f=0,b,g){let{nestingSyntax:x=t.defaultOptions.nestingSyntax,arrayRepeat:S=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:A=t.defaultOptions.arrayRepeatSyntax,nesting:k=t.defaultOptions.nesting,delimiter:T=t.defaultOptions.delimiter,valueSerializer:I=t.defaultOptions.valueSerializer,shouldSerializeObject:D=t.defaultOptions.shouldSerializeObject}=h,F=typeof T=="number"?String.fromCharCode(T):T,P=g===!0&&S,L=x==="dot"||x==="js"&&!g;if(f>a)return"";let B="",G=!0,$=!1;for(let H in p){let w=p[H],C;b?(C=b,P?A==="bracket"&&(C+=i):L?(C+=c,C+=H):(C+=l,C+=H,C+=s)):C=H,G||(B+=F),typeof w=="object"&&w!==null&&!D(w)?($=w.pop!==void 0,(k||S&&$)&&(B+=d(w,h,f+1,C,$))):(B+=(0,r.encodeString)(C),B+="=",B+=I(w,H)),G&&(G=!1)}return B}E(d,"stringifyObject")}),Yf=we((e,t)=>{"use strict";var r=12,n=0,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function a(s){var c=s.indexOf("%");if(c===-1)return s;for(var d=s.length,p="",h=0,f=0,b=c,g=r;c>-1&&c>10),56320+(f&1023)),f=0,h=c+3,c=b=s.indexOf("%",h);else{if(g===n)return null;if(c+=3,c{"use strict";var t=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=d;var r=Hs(),n=Io(),o=t(Yf()),a=E(p=>{let h=Number(p);return Number.isNaN(h)?p:h},"numberKeyDeserializer");e.numberKeyDeserializer=a;var i=E(p=>{let h=Number(p);return Number.isNaN(h)?p:h},"numberValueDeserializer");e.numberValueDeserializer=i;var l=/\+/g,s=E(function(){},"Empty");s.prototype=Object.create(null);function c(p,h,f,b,g){let x=p.substring(h,f);return b&&(x=x.replace(l," ")),g&&(x=(0,o.default)(x)||x),x}E(c,"computeKeySlice");function d(p,h){let{valueDeserializer:f=n.defaultOptions.valueDeserializer,keyDeserializer:b=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:g=n.defaultOptions.arrayRepeatSyntax,nesting:x=n.defaultOptions.nesting,arrayRepeat:S=n.defaultOptions.arrayRepeat,nestingSyntax:A=n.defaultOptions.nestingSyntax,delimiter:k=n.defaultOptions.delimiter}=h??{},T=typeof k=="string"?k.charCodeAt(0):k,I=A==="js",D=new s;if(typeof p!="string")return D;let F=p.length,P="",L=-1,B=-1,G=-1,$=D,H,w="",C="",_=!1,M=!1,U=!1,K=!1,re=!1,Z=!1,Y=!1,ee=0,ye=-1,le=-1,Ae=-1;for(let ne=0;neL,Y||(B=ne),G!==B-1&&(C=c(p,G+1,ye>-1?ye:B,U,_),w=b(C),H!==void 0&&($=(0,r.getDeepObject)($,H,w,I&&re,I&&Z))),Y||w!==""){Y&&(P=p.slice(B+1,ne),K&&(P=P.replace(l," ")),M&&(P=(0,o.default)(P)||P));let qe=f(P,w);if(S){let Be=$[w];Be===void 0?ye>-1?$[w]=[qe]:$[w]=qe:Be.pop?Be.push(qe):$[w]=[Be,qe]}else $[w]=qe}P="",L=ne,B=ne,_=!1,M=!1,U=!1,K=!1,re=!1,Z=!1,ye=-1,G=ne,$=D,H=void 0,w=""}else ee===93?(S&&g==="bracket"&&Ae===91&&(ye=le),x&&(A==="index"||I)&&B<=L&&(G!==le&&(C=c(p,G+1,ne,U,_),w=b(C),H!==void 0&&($=(0,r.getDeepObject)($,H,w,void 0,I)),H=w,U=!1,_=!1),G=ne,Z=!0,re=!1)):ee===46?x&&(A==="dot"||I)&&B<=L&&(G!==le&&(C=c(p,G+1,ne,U,_),w=b(C),H!==void 0&&($=(0,r.getDeepObject)($,H,w,I)),H=w,U=!1,_=!1),re=!0,Z=!1,G=ne):ee===91?x&&(A==="index"||I)&&B<=L&&(G!==le&&(C=c(p,G+1,ne,U,_),w=b(C),I&&H!==void 0&&($=(0,r.getDeepObject)($,H,w,I)),H=w,U=!1,_=!1,re=!1,Z=!0),G=ne):ee===61?B<=L?B=ne:M=!0:ee===43?B>L?K=!0:U=!0:ee===37&&(B>L?M=!0:_=!0);le=ne,Ae=ee}return D}E(d,"parse")}),Qf=we(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=Hs();function r(n,o){if(n===null||typeof n!="object")return"";let a=o??{};return(0,t.stringifyObject)(n,a)}E(r,"stringify")}),Oo=we(e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(a,i,l,s){s===void 0&&(s=l);var c=Object.getOwnPropertyDescriptor(i,l);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:E(function(){return i[l]},"get")}),Object.defineProperty(a,s,c)}:function(a,i,l,s){s===void 0&&(s=l),a[s]=i[l]}),r=e&&e.__exportStar||function(a,i){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(i,l)&&t(i,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=Xf();Object.defineProperty(e,"parse",{enumerable:!0,get:E(function(){return n.parse},"get")});var o=Qf();Object.defineProperty(e,"stringify",{enumerable:!0,get:E(function(){return o.stringify},"get")}),r(Io(),e)}),Gs=we((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` + `}),this.data=t}};ce(_f,"UnsupportedViewportDimensionError");V();J();z();var Pf=Object.create,ws=Object.defineProperty,Ff=Object.getOwnPropertyDescriptor,Nf=Object.getOwnPropertyNames,Bf=Object.getPrototypeOf,jf=Object.prototype.hasOwnProperty,Lf=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Mf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nf(t))!jf.call(e,o)&&o!==r&&ws(e,o,{get:()=>t[o],enumerable:!(n=Ff(t,o))||n.enumerable});return e},Uf=(e,t,r)=>(r=e!=null?Pf(Bf(e)):{},Mf(t||!e||!e.__esModule?ws(r,"default",{value:e,enumerable:!0}):r,e)),$f=Lf(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(l,s,c){var d,p,h,f=t.call(l),b=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(c.indexOf(l)>-1&&c.indexOf(s)>-1)return!0;if(c.push(l,s),f!=b||(d=n(l),p=n(s),d.length!=p.length||d.some(function(g){return!i(l[g],s[g],c)})))return!1;switch(f.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":d=l.entries(),p=s.entries();do if(!i((h=d.next()).value,p.next().value,c))return!1;while(!h.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(h=0;h`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}var vs=Uf($f()),As=e=>e.map(t=>typeof t<"u").filter(Boolean).length,Vf=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(As([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,vs.isEqual)(t,n);if(typeof o<"u")return!(0,vs.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},Ts=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(As([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return Vf(e.if,a)},oo=e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),xs=(e,t)=>{let r=oo(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},Cs=(e,t)=>`${xs(e,"kind")}${t?`--${xs(t,"name")}`:""}`,ks=e=>qf(e);function Ss(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}function Hr(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Ss(e,t))&&(!r||!Ss(e,r))}var Is=(...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)};var Jf=Object.create,ko=Object.defineProperty,zf=Object.getOwnPropertyDescriptor,Hf=Object.getOwnPropertyNames,Gf=Object.getPrototypeOf,Wf=Object.prototype.hasOwnProperty,E=(e,t)=>ko(e,"name",{value:t,configurable:!0}),Gr=(e=>typeof Pe<"u"?Pe:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Pe<"u"?Pe:t)[r]}):e)(function(e){if(typeof Pe<"u")return Pe.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kf=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Hf(t))!Wf.call(e,o)&&o!==r&&ko(e,o,{get:()=>t[o],enumerable:!(n=zf(t,o))||n.enumerable});return e},Ht=(e,t,r)=>(r=e!=null?Jf(Gf(e)):{},Kf(t||!e||!e.__esModule?ko(r,"default",{value:e,enumerable:!0}):r,e)),Js=we((e,t)=>{(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"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return E(function a(i,l,s){function c(h,f){if(!l[h]){if(!i[h]){var b=typeof Gr=="function"&&Gr;if(!f&&b)return b(h,!0);if(d)return d(h,!0);var g=new Error("Cannot find module '"+h+"'");throw g.code="MODULE_NOT_FOUND",g}var x=l[h]={exports:{}};i[h][0].call(x.exports,function(S){var A=i[h][1][S];return c(A||S)},x,x.exports,a,i,l,s)}return l[h].exports}E(c,"s");for(var d=typeof Gr=="function"&&Gr,p=0;p=0)return this.lastItem=this.list[d],this.list[d].val},s.prototype.set=function(c,d){var p;return this.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=d,this):(p=this.indexOf(c),p>=0?(this.lastItem=this.list[p],this.list[p].val=d,this):(this.lastItem={key:c,val:d},this.list.push(this.lastItem),this.size++,this))},s.prototype.delete=function(c){var d;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void 0),d=this.indexOf(c),d>=0)return this.size--,this.list.splice(d,1)[0]},s.prototype.has=function(c){var d;return this.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(d=this.indexOf(c),d>=0?(this.lastItem=this.list[d],!0):!1)},s.prototype.forEach=function(c,d){var p;for(p=0;p0&&(I[T]={cacheItem:S,arg:arguments[T]},D?c(b,I):b.push(I),b.length>h&&d(b.shift())),x.wasMemoized=D,x.numArgs=T+1,k},"memoizerific");return x.limit=h,x.wasMemoized=!1,x.cache=f,x.lru=b,x}};function c(h,f){var b=h.length,g=f.length,x,S,A;for(S=0;S=0&&(b=h[x],g=b.cacheItem.get(b.arg),!g||!g.size);x--)b.cacheItem.delete(b.arg)}E(d,"removeCachedResult");function p(h,f){return h===f||h!==h&&f!==f}E(p,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),zs=we(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,a)=>"%"+((a<16?"0":"")+a.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let a=o.length;if(a===0)return"";let i="",l=0,s=0;e:for(;s>6]+t[128|c&63];continue}if(c<55296||c>=57344){l=s+1,i+=t[224|c>>12]+t[128|c>>6&63]+t[128|c&63];continue}if(++s,s>=a)throw new Error("URI malformed");let d=o.charCodeAt(s)&1023;l=s+1,c=65536+((c&1023)<<10|d),i+=t[240|c>>18]+t[128|c>>12&63]+t[128|c>>6&63]+t[128|c&63]}return l===0?o:l{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=zs(),r=E(a=>{switch(typeof a){case"string":return(0,t.encodeString)(a);case"bigint":case"boolean":return""+a;case"number":if(Number.isFinite(a))return a<1e21?""+a:(0,t.encodeString)(""+a);break}return a instanceof Date?(0,t.encodeString)(a.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var n=E(a=>a instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=n;var o=E(a=>a,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}),Hs=we(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=d;var t=Io(),r=zs();function n(p){return p==="__proto__"||p==="constructor"||p==="prototype"}E(n,"isPrototypeKey");function o(p,h,f,b,g){if(n(h))return p;let x=p[h];return typeof x=="object"&&x!==null?x:!b&&(g||typeof f=="number"||typeof f=="string"&&f*0===0&&f.indexOf(".")===-1)?p[h]=[]:p[h]={}}E(o,"getDeepObject");var a=20,i="[]",l="[",s="]",c=".";function d(p,h,f=0,b,g){let{nestingSyntax:x=t.defaultOptions.nestingSyntax,arrayRepeat:S=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:A=t.defaultOptions.arrayRepeatSyntax,nesting:k=t.defaultOptions.nesting,delimiter:T=t.defaultOptions.delimiter,valueSerializer:I=t.defaultOptions.valueSerializer,shouldSerializeObject:D=t.defaultOptions.shouldSerializeObject}=h,F=typeof T=="number"?String.fromCharCode(T):T,P=g===!0&&S,L=x==="dot"||x==="js"&&!g;if(f>a)return"";let B="",G=!0,$=!1;for(let H in p){let w=p[H],C;b?(C=b,P?A==="bracket"&&(C+=i):L?(C+=c,C+=H):(C+=l,C+=H,C+=s)):C=H,G||(B+=F),typeof w=="object"&&w!==null&&!D(w)?($=w.pop!==void 0,(k||S&&$)&&(B+=d(w,h,f+1,C,$))):(B+=(0,r.encodeString)(C),B+="=",B+=I(w,H)),G&&(G=!1)}return B}E(d,"stringifyObject")}),Yf=we((e,t)=>{"use strict";var r=12,n=0,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function a(s){var c=s.indexOf("%");if(c===-1)return s;for(var d=s.length,p="",h=0,f=0,b=c,g=r;c>-1&&c>10),56320+(f&1023)),f=0,h=c+3,c=b=s.indexOf("%",h);else{if(g===n)return null;if(c+=3,c{"use strict";var t=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=d;var r=Hs(),n=Io(),o=t(Yf()),a=E(p=>{let h=Number(p);return Number.isNaN(h)?p:h},"numberKeyDeserializer");e.numberKeyDeserializer=a;var i=E(p=>{let h=Number(p);return Number.isNaN(h)?p:h},"numberValueDeserializer");e.numberValueDeserializer=i;var l=/\+/g,s=E(function(){},"Empty");s.prototype=Object.create(null);function c(p,h,f,b,g){let x=p.substring(h,f);return b&&(x=x.replace(l," ")),g&&(x=(0,o.default)(x)||x),x}E(c,"computeKeySlice");function d(p,h){let{valueDeserializer:f=n.defaultOptions.valueDeserializer,keyDeserializer:b=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:g=n.defaultOptions.arrayRepeatSyntax,nesting:x=n.defaultOptions.nesting,arrayRepeat:S=n.defaultOptions.arrayRepeat,nestingSyntax:A=n.defaultOptions.nestingSyntax,delimiter:k=n.defaultOptions.delimiter}=h??{},T=typeof k=="string"?k.charCodeAt(0):k,I=A==="js",D=new s;if(typeof p!="string")return D;let F=p.length,P="",L=-1,B=-1,G=-1,$=D,H,w="",C="",_=!1,M=!1,U=!1,K=!1,re=!1,Z=!1,Y=!1,ee=0,ye=-1,le=-1,Ae=-1;for(let ne=0;neL,Y||(B=ne),G!==B-1&&(C=c(p,G+1,ye>-1?ye:B,U,_),w=b(C),H!==void 0&&($=(0,r.getDeepObject)($,H,w,I&&re,I&&Z))),Y||w!==""){Y&&(P=p.slice(B+1,ne),K&&(P=P.replace(l," ")),M&&(P=(0,o.default)(P)||P));let qe=f(P,w);if(S){let Be=$[w];Be===void 0?ye>-1?$[w]=[qe]:$[w]=qe:Be.pop?Be.push(qe):$[w]=[Be,qe]}else $[w]=qe}P="",L=ne,B=ne,_=!1,M=!1,U=!1,K=!1,re=!1,Z=!1,ye=-1,G=ne,$=D,H=void 0,w=""}else ee===93?(S&&g==="bracket"&&Ae===91&&(ye=le),x&&(A==="index"||I)&&B<=L&&(G!==le&&(C=c(p,G+1,ne,U,_),w=b(C),H!==void 0&&($=(0,r.getDeepObject)($,H,w,void 0,I)),H=w,U=!1,_=!1),G=ne,Z=!0,re=!1)):ee===46?x&&(A==="dot"||I)&&B<=L&&(G!==le&&(C=c(p,G+1,ne,U,_),w=b(C),H!==void 0&&($=(0,r.getDeepObject)($,H,w,I)),H=w,U=!1,_=!1),re=!0,Z=!1,G=ne):ee===91?x&&(A==="index"||I)&&B<=L&&(G!==le&&(C=c(p,G+1,ne,U,_),w=b(C),I&&H!==void 0&&($=(0,r.getDeepObject)($,H,w,I)),H=w,U=!1,_=!1,re=!1,Z=!0),G=ne):ee===61?B<=L?B=ne:M=!0:ee===43?B>L?K=!0:U=!0:ee===37&&(B>L?M=!0:_=!0);le=ne,Ae=ee}return D}E(d,"parse")}),Qf=we(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=Hs();function r(n,o){if(n===null||typeof n!="object")return"";let a=o??{};return(0,t.stringifyObject)(n,a)}E(r,"stringify")}),Oo=we(e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(a,i,l,s){s===void 0&&(s=l);var c=Object.getOwnPropertyDescriptor(i,l);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:E(function(){return i[l]},"get")}),Object.defineProperty(a,s,c)}:function(a,i,l,s){s===void 0&&(s=l),a[s]=i[l]}),r=e&&e.__exportStar||function(a,i){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(i,l)&&t(i,a,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=Xf();Object.defineProperty(e,"parse",{enumerable:!0,get:E(function(){return n.parse},"get")});var o=Qf();Object.defineProperty(e,"stringify",{enumerable:!0,get:E(function(){return o.stringify},"get")}),r(Io(),e)}),Gs=we((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),Zf=we((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),Ws=we((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),eh=we((e,t)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),th=we(e=>{"use strict";var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(eh()),n=String.fromCodePoint||function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function o(a){return a>=55296&&a<=57343||a>1114111?"\uFFFD":(a in r.default&&(a=r.default[a]),n(a))}E(o,"decodeCodePoint"),e.default=o}),Os=we(e=>{"use strict";var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(Gs()),n=t(Zf()),o=t(Ws()),a=t(th()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=l(o.default),e.decodeHTMLStrict=l(r.default);function l(d){var p=c(d);return function(h){return String(h).replace(i,p)}}E(l,"getStrictDecoder");var s=E(function(d,p){return d{"use strict";var t=e&&e.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(Ws()),n=s(r.default),o=c(n);e.encodeXML=S(n);var a=t(Gs()),i=s(a.default),l=c(i);e.encodeHTML=f(i,l),e.encodeNonAsciiHTML=S(i);function s(A){return Object.keys(A).sort().reduce(function(k,T){return k[A[T]]="&"+T+";",k},{})}E(s,"getInverseObj");function c(A){for(var k=[],T=[],I=0,D=Object.keys(A);I1?p(A):A.charCodeAt(0)).toString(16).toUpperCase()+";"}E(h,"singleCharReplacer");function f(A,k){return function(T){return T.replace(k,function(I){return A[I]}).replace(d,h)}}E(f,"getInverse");var b=new RegExp(o.source+"|"+d.source,"g");function g(A){return A.replace(b,h)}E(g,"escape"),e.escape=g;function x(A){return A.replace(o,h)}E(x,"escapeUTF8"),e.escapeUTF8=x;function S(A){return function(k){return k.replace(b,function(T){return A[T]||h(T)})}}E(S,"getASCIIEncoder")}),rh=we(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Os(),r=Ds();function n(s,c){return(!c||c<=0?t.decodeXML:t.decodeHTML)(s)}E(n,"decode"),e.decode=n;function o(s,c){return(!c||c<=0?t.decodeXML:t.decodeHTMLStrict)(s)}E(o,"decodeStrict"),e.decodeStrict=o;function a(s,c){return(!c||c<=0?r.encodeXML:r.encodeHTML)(s)}E(a,"encode"),e.encode=a;var i=Ds();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:E(function(){return i.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:E(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:E(function(){return i.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:E(function(){return i.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:E(function(){return i.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:E(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:E(function(){return i.encodeHTML},"get")});var l=Os();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:E(function(){return l.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:E(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:E(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:E(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:E(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:E(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:E(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:E(function(){return l.decodeXML},"get")})}),nh=we((e,t)=>{"use strict";function r(w,C){if(!(w instanceof C))throw new TypeError("Cannot call a class as a function")}E(r,"_classCallCheck");function n(w,C){for(var _=0;_=w.length?{done:!0}:{done:!1,value:w[M++]}},"n"),e:E(function(Y){throw Y},"e"),f:U}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var K=!0,re=!1,Z;return{s:E(function(){_=_.call(w)},"s"),n:E(function(){var Y=_.next();return K=Y.done,Y},"n"),e:E(function(Y){re=!0,Z=Y},"e"),f:E(function(){try{!K&&_.return!=null&&_.return()}finally{if(re)throw Z}},"f")}}E(a,"_createForOfIteratorHelper");function i(w,C){if(w){if(typeof w=="string")return l(w,C);var _=Object.prototype.toString.call(w).slice(8,-1);if(_==="Object"&&w.constructor&&(_=w.constructor.name),_==="Map"||_==="Set")return Array.from(w);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return l(w,C)}}E(i,"_unsupportedIterableToArray");function l(w,C){(C==null||C>w.length)&&(C=w.length);for(var _=0,M=new Array(C);_0?w*40+55:0,re=C>0?C*40+55:0,Z=_>0?_*40+55:0;M[U]=f([K,re,Z])}E(p,"setStyleColor");function h(w){for(var C=w.toString(16);C.length<2;)C="0"+C;return C}E(h,"toHexString");function f(w){var C=[],_=a(w),M;try{for(_.s();!(M=_.n()).done;){var U=M.value;C.push(h(U))}}catch(K){_.e(K)}finally{_.f()}return"#"+C.join("")}E(f,"toColorHexString");function b(w,C,_,M){var U;return C==="text"?U=I(_,M):C==="display"?U=x(w,_,M):C==="xterm256Foreground"?U=P(w,M.colors[_]):C==="xterm256Background"?U=L(w,M.colors[_]):C==="rgb"&&(U=g(w,_)),U}E(b,"generateOutput");function g(w,C){C=C.substring(2).slice(0,-1);var _=+C.substr(0,2),M=C.substring(5).split(";"),U=M.map(function(K){return("0"+Number(K).toString(16)).substr(-2)}).join("");return F(w,(_===38?"color:#":"background-color:#")+U)}E(g,"handleRgb");function x(w,C,_){C=parseInt(C,10);var M={"-1":E(function(){return"
"},"_"),0:E(function(){return w.length&&S(w)},"_"),1:E(function(){return D(w,"b")},"_"),3:E(function(){return D(w,"i")},"_"),4:E(function(){return D(w,"u")},"_"),8:E(function(){return F(w,"display:none")},"_"),9:E(function(){return D(w,"strike")},"_"),22:E(function(){return F(w,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:E(function(){return B(w,"i")},"_"),24:E(function(){return B(w,"u")},"_"),39:E(function(){return P(w,_.fg)},"_"),49:E(function(){return L(w,_.bg)},"_"),53:E(function(){return F(w,"text-decoration:overline")},"_")},U;return M[C]?U=M[C]():4"}).join("")}E(S,"resetStyles");function A(w,C){for(var _=[],M=w;M<=C;M++)_.push(M);return _}E(A,"range");function k(w){return function(C){return(w===null||C.category!==w)&&w!=="all"}}E(k,"notCategory");function T(w){w=parseInt(w,10);var C=null;return w===0?C="all":w===1?C="bold":2")}E(D,"pushTag");function F(w,C){return D(w,"span",C)}E(F,"pushStyle");function P(w,C){return D(w,"span","color:"+C)}E(P,"pushForegroundColor");function L(w,C){return D(w,"span","background-color:"+C)}E(L,"pushBackgroundColor");function B(w,C){var _;if(w.slice(-1)[0]===C&&(_=w.pop()),_)return""}E(B,"closeTag");function G(w,C,_){var M=!1,U=3;function K(){return""}E(K,"remove");function re(_e,De){return _("xterm256Foreground",De),""}E(re,"removeXterm256Foreground");function Z(_e,De){return _("xterm256Background",De),""}E(Z,"removeXterm256Background");function Y(_e){return C.newline?_("display",-1):_("text",_e),""}E(Y,"newline");function ee(_e,De){M=!0,De.trim().length===0&&(De="0"),De=De.trimRight(";").split(";");var nt=a(De),Nt;try{for(nt.s();!(Nt=nt.n()).done;){var kr=Nt.value;_("display",kr)}}catch(An){nt.e(An)}finally{nt.f()}return""}E(ee,"ansiMess");function ye(_e){return _("text",_e),""}E(ye,"realText");function le(_e){return _("rgb",_e),""}E(le,"rgb");var Ae=[{pattern:/^\x08+/,sub:K},{pattern:/^\x1b\[[012]?K/,sub:K},{pattern:/^\x1b\[\(B/,sub:K},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:le},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:Z},{pattern:/^\n/,sub:Y},{pattern:/^\r+\n/,sub:Y},{pattern:/^\r/,sub:Y},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:ee},{pattern:/^\x1b\[\d?J/,sub:K},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:K},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:K},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:ye}];function ne(_e,De){De>U&&M||(M=!1,w=w.replace(_e.pattern,_e.sub))}E(ne,"process");var qe=[],Be=w,Ye=Be.length;e:for(;Ye>0;){for(var nr=0,Ft=0,or=Ae.length;Ft{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();function Ks(){let e={setHandler:E(()=>{},"setHandler"),send:E(()=>{},"send")};return new Hi({transport:e})}E(Ks,"mockChannel");var Ys=class{constructor(){this.getChannel=E(()=>{if(!this.channel){let t=Ks();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=E(()=>this.promise,"ready"),this.hasChannel=E(()=>!!this.channel,"hasChannel"),this.setChannel=E(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};E(Ys,"AddonStore");var oh=Ys,ao="__STORYBOOK_ADDONS_PREVIEW";function Xs(){return be[ao]||(be[ao]=new oh),be[ao]}E(Xs,"getAddonsStore");var Ct=Xs(),Qs=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=E(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Ct.getChannel().on(cr,this.renderListener)}removeRenderListeners(){Ct.getChannel().removeListener(cr,this.renderListener)}};E(Qs,"HooksContext");var Zs=Qs;function fo(e){let t=E((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=n.nextHookIndex,l=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let s=be.STORYBOOK_HOOKS_CONTEXT;be.STORYBOOK_HOOKS_CONTEXT=n;let c=e(...r);if(be.STORYBOOK_HOOKS_CONTEXT=s,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=a,n.nextHookIndex=i,n.currentDecoratorName=l,c},"hookified");return t.originalFn=e,t}E(fo,"hookify");var io=0,ah=25,ih=E(e=>(t,r)=>{let n=e(fo(t),r.map(o=>fo(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??=new Set,a.mountedDecorators=new Set([t,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for(io=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),io+=1,io>ah)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks"),sh=E((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),Do=E(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function Ro(){return be.STORYBOOK_HOOKS_CONTEXT||null}E(Ro,"getHooksContextOrNull");function Zr(){let e=Ro();if(e==null)throw Do();return e}E(Zr,"getHooksContextOrThrow");function el(e,t,r){let n=Zr();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Q.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&Q.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&Q.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&Q.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var K=!0,re=!1,Z;return{s:E(function(){_=_.call(w)},"s"),n:E(function(){var Y=_.next();return K=Y.done,Y},"n"),e:E(function(Y){re=!0,Z=Y},"e"),f:E(function(){try{!K&&_.return!=null&&_.return()}finally{if(re)throw Z}},"f")}}E(a,"_createForOfIteratorHelper");function i(w,C){if(w){if(typeof w=="string")return l(w,C);var _=Object.prototype.toString.call(w).slice(8,-1);if(_==="Object"&&w.constructor&&(_=w.constructor.name),_==="Map"||_==="Set")return Array.from(w);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return l(w,C)}}E(i,"_unsupportedIterableToArray");function l(w,C){(C==null||C>w.length)&&(C=w.length);for(var _=0,M=new Array(C);_0?w*40+55:0,re=C>0?C*40+55:0,Z=_>0?_*40+55:0;M[U]=f([K,re,Z])}E(p,"setStyleColor");function h(w){for(var C=w.toString(16);C.length<2;)C="0"+C;return C}E(h,"toHexString");function f(w){var C=[],_=a(w),M;try{for(_.s();!(M=_.n()).done;){var U=M.value;C.push(h(U))}}catch(K){_.e(K)}finally{_.f()}return"#"+C.join("")}E(f,"toColorHexString");function b(w,C,_,M){var U;return C==="text"?U=I(_,M):C==="display"?U=x(w,_,M):C==="xterm256Foreground"?U=P(w,M.colors[_]):C==="xterm256Background"?U=L(w,M.colors[_]):C==="rgb"&&(U=g(w,_)),U}E(b,"generateOutput");function g(w,C){C=C.substring(2).slice(0,-1);var _=+C.substr(0,2),M=C.substring(5).split(";"),U=M.map(function(K){return("0"+Number(K).toString(16)).substr(-2)}).join("");return F(w,(_===38?"color:#":"background-color:#")+U)}E(g,"handleRgb");function x(w,C,_){C=parseInt(C,10);var M={"-1":E(function(){return"
"},"_"),0:E(function(){return w.length&&S(w)},"_"),1:E(function(){return D(w,"b")},"_"),3:E(function(){return D(w,"i")},"_"),4:E(function(){return D(w,"u")},"_"),8:E(function(){return F(w,"display:none")},"_"),9:E(function(){return D(w,"strike")},"_"),22:E(function(){return F(w,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:E(function(){return B(w,"i")},"_"),24:E(function(){return B(w,"u")},"_"),39:E(function(){return P(w,_.fg)},"_"),49:E(function(){return L(w,_.bg)},"_"),53:E(function(){return F(w,"text-decoration:overline")},"_")},U;return M[C]?U=M[C]():4"}).join("")}E(S,"resetStyles");function A(w,C){for(var _=[],M=w;M<=C;M++)_.push(M);return _}E(A,"range");function k(w){return function(C){return(w===null||C.category!==w)&&w!=="all"}}E(k,"notCategory");function T(w){w=parseInt(w,10);var C=null;return w===0?C="all":w===1?C="bold":2")}E(D,"pushTag");function F(w,C){return D(w,"span",C)}E(F,"pushStyle");function P(w,C){return D(w,"span","color:"+C)}E(P,"pushForegroundColor");function L(w,C){return D(w,"span","background-color:"+C)}E(L,"pushBackgroundColor");function B(w,C){var _;if(w.slice(-1)[0]===C&&(_=w.pop()),_)return""}E(B,"closeTag");function G(w,C,_){var M=!1,U=3;function K(){return""}E(K,"remove");function re(_e,De){return _("xterm256Foreground",De),""}E(re,"removeXterm256Foreground");function Z(_e,De){return _("xterm256Background",De),""}E(Z,"removeXterm256Background");function Y(_e){return C.newline?_("display",-1):_("text",_e),""}E(Y,"newline");function ee(_e,De){M=!0,De.trim().length===0&&(De="0"),De=De.trimRight(";").split(";");var nt=a(De),Nt;try{for(nt.s();!(Nt=nt.n()).done;){var Ir=Nt.value;_("display",Ir)}}catch(An){nt.e(An)}finally{nt.f()}return""}E(ee,"ansiMess");function ye(_e){return _("text",_e),""}E(ye,"realText");function le(_e){return _("rgb",_e),""}E(le,"rgb");var Ae=[{pattern:/^\x08+/,sub:K},{pattern:/^\x1b\[[012]?K/,sub:K},{pattern:/^\x1b\[\(B/,sub:K},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:le},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:Z},{pattern:/^\n/,sub:Y},{pattern:/^\r+\n/,sub:Y},{pattern:/^\r/,sub:Y},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:ee},{pattern:/^\x1b\[\d?J/,sub:K},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:K},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:K},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:ye}];function ne(_e,De){De>U&&M||(M=!1,w=w.replace(_e.pattern,_e.sub))}E(ne,"process");var qe=[],Be=w,Ye=Be.length;e:for(;Ye>0;){for(var nr=0,Ft=0,or=Ae.length;Ft{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();function Ks(){let e={setHandler:E(()=>{},"setHandler"),send:E(()=>{},"send")};return new Hi({transport:e})}E(Ks,"mockChannel");var Ys=class{constructor(){this.getChannel=E(()=>{if(!this.channel){let t=Ks();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=E(()=>this.promise,"ready"),this.hasChannel=E(()=>!!this.channel,"hasChannel"),this.setChannel=E(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};E(Ys,"AddonStore");var oh=Ys,ao="__STORYBOOK_ADDONS_PREVIEW";function Xs(){return be[ao]||(be[ao]=new oh),be[ao]}E(Xs,"getAddonsStore");var Ct=Xs(),Qs=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=E(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Ct.getChannel().on(cr,this.renderListener)}removeRenderListeners(){Ct.getChannel().removeListener(cr,this.renderListener)}};E(Qs,"HooksContext");var Zs=Qs;function fo(e){let t=E((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=n.nextHookIndex,l=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let s=be.STORYBOOK_HOOKS_CONTEXT;be.STORYBOOK_HOOKS_CONTEXT=n;let c=e(...r);if(be.STORYBOOK_HOOKS_CONTEXT=s,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=a,n.nextHookIndex=i,n.currentDecoratorName=l,c},"hookified");return t.originalFn=e,t}E(fo,"hookify");var io=0,ah=25,ih=E(e=>(t,r)=>{let n=e(fo(t),r.map(o=>fo(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??=new Set,a.mountedDecorators=new Set([t,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for(io=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),io+=1,io>ah)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks"),sh=E((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),Do=E(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function Ro(){return be.STORYBOOK_HOOKS_CONTEXT||null}E(Ro,"getHooksContextOrNull");function Zr(){let e=Ro();if(e==null)throw Do();return e}E(Zr,"getHooksContextOrThrow");function el(e,t,r){let n=Zr();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Q.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&Q.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&Q.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&Q.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant. Previous: ${o.deps} -Incoming: ${r}`),(r==null||o.deps==null||!sh(r,o.deps))&&(t(o),o.deps=r),o}throw Do()}E(el,"useHook");function hr(e,t,r){let{memoizedState:n}=el(e,o=>{o.memoizedState=t()},r);return n}E(hr,"useMemoLike");function lh(e,t){return hr("useMemo",e,t)}E(lh,"useMemo");function fr(e,t){return hr("useCallback",()=>e,t)}E(fr,"useCallback");function _o(e,t){return hr(e,()=>({current:t}),[])}E(_o,"useRefLike");function uh(e){return _o("useRef",e)}E(uh,"useRef");function tl(){let e=Ro();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{Ct.getChannel().emit(Fr)}catch{Q.warn("State updates of Storybook preview hooks work only in browser")}}E(tl,"triggerUpdate");function Po(e,t){let r=_o(e,typeof t=="function"?t():t),n=E(o=>{r.current=typeof o=="function"?o(r.current):o,tl()},"setState");return[r.current,n]}E(Po,"useStateLike");function ch(e){return Po("useState",e)}E(ch,"useState");function dh(e,t,r){let n=r!=null?()=>r(t):t,[o,a]=Po("useReducer",n);return[o,E(i=>a(l=>e(l,i)),"dispatch")]}E(dh,"useReducer");function rl(e,t){let r=Zr(),n=hr("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}E(rl,"useEffect");function ph(e,t=[]){let r=Ct.getChannel();return rl(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),fr(r.emit.bind(r),[r])}E(ph,"useChannel");function en(){let{currentContext:e}=Zr();if(e==null)throw Do();return e}E(en,"useStoryContext");function fh(e,t){let{parameters:r}=en();if(e)return r[e]??t}E(fh,"useParameter");function hh(){let e=Ct.getChannel(),{id:t,args:r}=en(),n=fr(a=>e.emit(Lr,{storyId:t,updatedArgs:a}),[e,t]),o=fr(a=>e.emit(Nr,{storyId:t,argNames:a}),[e,t]);return[r,n,o]}E(hh,"useArgs");function mh(){let e=Ct.getChannel(),{globals:t}=en(),r=fr(n=>e.emit(jr,{globals:n}),[e]);return[t,r]}E(mh,"useGlobals");var yk=E(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=E(a=>(i,l)=>{let s=l.parameters&&l.parameters[t];return s&&s.disable||n&&!a&&!s?i(l):r(i,l,{options:a,parameters:s})},"decorator");return(...a)=>typeof a[0]=="function"?o()(...a):(...i)=>{if(i.length>1)return a.length>1?o(a)(...i):o(...a)(...i);throw new Error(`Passing stories directly into ${e}() is not allowed, +Incoming: ${r}`),(r==null||o.deps==null||!sh(r,o.deps))&&(t(o),o.deps=r),o}throw Do()}E(el,"useHook");function mr(e,t,r){let{memoizedState:n}=el(e,o=>{o.memoizedState=t()},r);return n}E(mr,"useMemoLike");function lh(e,t){return mr("useMemo",e,t)}E(lh,"useMemo");function fr(e,t){return mr("useCallback",()=>e,t)}E(fr,"useCallback");function _o(e,t){return mr(e,()=>({current:t}),[])}E(_o,"useRefLike");function uh(e){return _o("useRef",e)}E(uh,"useRef");function tl(){let e=Ro();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{Ct.getChannel().emit(Nr)}catch{Q.warn("State updates of Storybook preview hooks work only in browser")}}E(tl,"triggerUpdate");function Po(e,t){let r=_o(e,typeof t=="function"?t():t),n=E(o=>{r.current=typeof o=="function"?o(r.current):o,tl()},"setState");return[r.current,n]}E(Po,"useStateLike");function ch(e){return Po("useState",e)}E(ch,"useState");function dh(e,t,r){let n=r!=null?()=>r(t):t,[o,a]=Po("useReducer",n);return[o,E(i=>a(l=>e(l,i)),"dispatch")]}E(dh,"useReducer");function rl(e,t){let r=Zr(),n=mr("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}E(rl,"useEffect");function ph(e,t=[]){let r=Ct.getChannel();return rl(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),fr(r.emit.bind(r),[r])}E(ph,"useChannel");function en(){let{currentContext:e}=Zr();if(e==null)throw Do();return e}E(en,"useStoryContext");function fh(e,t){let{parameters:r}=en();if(e)return r[e]??t}E(fh,"useParameter");function hh(){let e=Ct.getChannel(),{id:t,args:r}=en(),n=fr(a=>e.emit(Mr,{storyId:t,updatedArgs:a}),[e,t]),o=fr(a=>e.emit(Br,{storyId:t,argNames:a}),[e,t]);return[r,n,o]}E(hh,"useArgs");function mh(){let e=Ct.getChannel(),{globals:t}=en(),r=fr(n=>e.emit(Lr,{globals:n}),[e]);return[t,r]}E(mh,"useGlobals");var yk=E(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=E(a=>(i,l)=>{let s=l.parameters&&l.parameters[t];return s&&s.disable||n&&!a&&!s?i(l):r(i,l,{options:a,parameters:s})},"decorator");return(...a)=>typeof a[0]=="function"?o()(...a):(...i)=>{if(i.length>1)return a.length>1?o(a)(...i):o(...a)(...i);throw new Error(`Passing stories directly into ${e}() is not allowed, instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator");function nl(e,t){let r={},n=Object.entries(e);for(let o=0;oObject.prototype.propertyIsEnumerable.call(e,t))}E(ho,"getSymbols");function mo(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}E(mo,"getTag");function il(e,t){if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Ge(e,t)}return Ge(e,t)}E(il,"isEqual");function Ge(e,t,r){if(Object.is(e,t))return!0;let n=mo(e),o=mo(t);if(n===Rs&&(n=so),o===Rs&&(o=so),n!==o)return!1;switch(n){case gh:return e.toString()===t.toString();case bh:{let l=e.valueOf(),s=t.valueOf();return l===s||Number.isNaN(l)&&Number.isNaN(s)}case Eh:case xh:case vh:return Object.is(e.valueOf(),t.valueOf());case yh:return e.source===t.source&&e.flags===t.flags;case Th:return e===t}r=r??new Map;let a=r.get(e),i=r.get(t);if(a!=null&&i!=null)return a===t;r.set(e,t),r.set(t,e);try{switch(n){case Sh:{if(e.size!==t.size)return!1;for(let[l,s]of e.entries())if(!t.has(l)||!Ge(s,t.get(l),r))return!1;return!0}case wh:{if(e.size!==t.size)return!1;let l=Array.from(e.values()),s=Array.from(t.values());for(let c=0;cGe(d,h,r));if(p===-1)return!1;s.splice(p,1)}return!0}case Ah:case Oh:case Dh:case Rh:case _h:case Ph:case Fh:case Nh:case Bh:case jh:case Lh:case Mh:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let l=0;l!o.includes(p)),s=i&&l===-1;if(e[n]===void 0||o.includes(e[n])||s)return a();let c=i?`${n}[${l}]`:n,d=o.map(p=>typeof p=="string"?`'${p}'`:String(p)).join(", ");return ct.warn(`Received illegal value for '${c}'. Supported options: ${d}`),r},{}),"validateOptions"),dr=Symbol("Deeply equal"),Kr=E((e,t)=>{if(typeof e!=typeof t)return t;if(il(e,t))return dr;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=Kr(e[a],o);return i!==dr&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Je(e)&&Je(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Kr(e?.[n],t?.[n]);return o===dr?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),sl="UNTARGETED";function ll({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:a=sl}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}E(ll,"groupArgsByTarget");function ul(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}E(ul,"deleteUndefined");var cl=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=Kr(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==dr&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let n=$h(r,t.argTypes);this.argsByStoryId[t.id]=go(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){let n=Uh(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=ul({...this.argsByStoryId[t],...r})}};E(cl,"ArgsStore");var qh=cl,dl=E((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),pl=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let n=this.initialGlobals&&Kr(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=dl(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==dr&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:Q.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)}}};E(pl,"GlobalsStore");var Vh=pl,Jh=Ht(Js(),1),zh=(0,Jh.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),fl=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(a=>a.id.startsWith(t));let{name:n,title:o}=t;return r.find(a=>a.name===n&&a.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new Yi({storyId:t});return r}importPathToEntry(t){return zh(this.entries)[t]}};E(fl,"StoryIndexStore");var Hh=fl,Gh=E(e=>typeof e=="string"?{name:e}:e,"normalizeType"),Wh=E(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),Kh=E((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=Gh(r)),n?a.control=Wh(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),Yr=E(e=>kt(e,Kh),"normalizeInputTypes"),pe=E(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),Yh=Me` + `),a();let i=Array.isArray(e[n]),l=i&&e[n].findIndex(p=>!o.includes(p)),s=i&&l===-1;if(e[n]===void 0||o.includes(e[n])||s)return a();let c=i?`${n}[${l}]`:n,d=o.map(p=>typeof p=="string"?`'${p}'`:String(p)).join(", ");return ct.warn(`Received illegal value for '${c}'. Supported options: ${d}`),r},{}),"validateOptions"),dr=Symbol("Deeply equal"),Yr=E((e,t)=>{if(typeof e!=typeof t)return t;if(il(e,t))return dr;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=Yr(e[a],o);return i!==dr&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Je(e)&&Je(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Yr(e?.[n],t?.[n]);return o===dr?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),sl="UNTARGETED";function ll({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:a=sl}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}E(ll,"groupArgsByTarget");function ul(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}E(ul,"deleteUndefined");var cl=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=Yr(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==dr&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let n=$h(r,t.argTypes);this.argsByStoryId[t.id]=go(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){let n=Uh(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=ul({...this.argsByStoryId[t],...r})}};E(cl,"ArgsStore");var qh=cl,dl=E((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),pl=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let n=this.initialGlobals&&Yr(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=dl(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==dr&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:Q.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)}}};E(pl,"GlobalsStore");var Vh=pl,Jh=Ht(Js(),1),zh=(0,Jh.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),fl=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(a=>a.id.startsWith(t));let{name:n,title:o}=t;return r.find(a=>a.name===n&&a.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new Yi({storyId:t});return r}importPathToEntry(t){return zh(this.entries)[t]}};E(fl,"StoryIndexStore");var Hh=fl,Gh=E(e=>typeof e=="string"?{name:e}:e,"normalizeType"),Wh=E(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),Kh=E((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=Gh(r)),n?a.control=Wh(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),Xr=E(e=>kt(e,Kh),"normalizeInputTypes"),pe=E(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),Yh=Me` CSF .story annotations deprecated; annotate story functions directly: - StoryFn.story.name => StoryFn.storyName - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. -`;function Fo(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(Q.debug("deprecated story",a),Ze(Yh));let i=ks(e),l=typeof n!="function"&&n.name||n.storyName||a?.name||i,s=[...pe(n.decorators),...pe(a?.decorators)],c={...a?.parameters,...n.parameters},d={...a?.args,...n.args},p={...a?.argTypes,...n.argTypes},h=[...pe(n.loaders),...pe(a?.loaders)],f=[...pe(n.beforeEach),...pe(a?.beforeEach)],{render:b,play:g,tags:x=[],globals:S={}}=n,A=c.__id||Cs(r.id,i);return{moduleExport:t,id:A,name:l,tags:x,decorators:s,parameters:c,args:d,argTypes:Yr(p),loaders:h,beforeEach:f,globals:S,...b&&{render:b},...o&&{userStoryFn:o},...g&&{play:g}}}E(Fo,"normalizeStory");function No(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:oo(n||t),...e,title:t,...o&&{argTypes:Yr(o)},parameters:{fileName:r,...e.parameters}}}E(No,"normalizeComponentAnnotations");var Xh=E(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&Q.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),Qh=E(e=>{let{options:t}=e;t?.storySort&&Q.error("The storySort option parameter can only be set globally")},"checkStorySort"),_s=E(e=>{e&&(Xh(e),Qh(e))},"checkDisallowedParameters");function hl(e,t,r){let{default:n,__namedExportsOrder:o,...a}=e,i=No(n,r,t);_s(i.parameters);let l={meta:i,stories:{},moduleExports:e};return Object.keys(a).forEach(s=>{if(zr(s,i)){let c=Fo(s,a[s],i);_s(c.parameters),l.stories[c.id]=c}}),l}E(hl,"processCSFFile");function ml(e){return e!=null&&yl(e).includes("mount")}E(ml,"mountDestructured");function yl(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=bo(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?bo(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}E(yl,"getUsedProps");function bo(e){let t=[],r=[],n=0;for(let a=0;at(n,o)}E(gl,"decorateStory");function bl({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:l,argTypes:s,...c}={}){return c}E(bl,"sanitizeStoryContextUpdate");function El(e,t){let r={},n=E(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...bl(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>gl(a,i,n),e);return a=>(r.value=a,o(a))}E(El,"defaultDecorateStory");var et=E((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,l])=>{let s=o[i];Array.isArray(l)||typeof s>"u"?o[i]=l:Je(l)&&Je(s)?t[i]=!0:typeof l<"u"&&(o[i]=l)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>Je(i))?n[o]=et(...a):n[o]=a[a.length-1]}),n},"combineParameters");function Bo(e,t,r){let{moduleExport:n,id:o,name:a}=e||{},i=jo(e,t,r),l=E(async I=>{let D={};for(let F of[..."__STORYBOOK_TEST_LOADERS__"in be&&Array.isArray(be.__STORYBOOK_TEST_LOADERS__)?[be.__STORYBOOK_TEST_LOADERS__]:[],pe(r.loaders),pe(t.loaders),pe(e.loaders)]){if(I.abortSignal.aborted)return D;let P=await Promise.all(F.map(L=>L(I)));Object.assign(D,...P)}return D},"applyLoaders"),s=E(async I=>{let D=new Array;for(let F of[...pe(r.beforeEach),...pe(t.beforeEach),...pe(e.beforeEach)]){if(I.abortSignal.aborted)return D;let P=await F(I);P&&D.push(P)}return D},"applyBeforeEach"),c=E(I=>I.originalStoryFn(I.args,I),"undecoratedStoryFn"),{applyDecorators:d=El,runStep:p}=r,h=[...pe(e?.decorators),...pe(t?.decorators),...pe(r?.decorators)],f=e?.userStoryFn||e?.render||t.render||r.render,b=ih(d)(c,h),g=E(I=>b(I),"unboundStoryFn"),x=e?.play??t?.play,S=ml(x);if(!f&&!S)throw new ys({id:o});let A=E(I=>async()=>(await I.renderToCanvas(),I.canvas),"defaultMount"),k=e.mount??t.mount??r.mount??A,T=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:f,undecoratedStoryFn:c,unboundStoryFn:g,applyLoaders:l,applyBeforeEach:s,playFunction:x,runStep:p,mount:k,testingLibraryRender:T,renderToCanvas:r.renderToCanvas,usesMount:S}}E(Bo,"prepareStory");function vl(e,t,r){return{...jo(void 0,e,t),moduleExport:r}}E(vl,"prepareMeta");function jo(e,t,r){let n=["dev","test"],o=be.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=Is(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),i=et(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:l=[],argsEnhancers:s=[]}=r,c=et(r.argTypes,t.argTypes,e?.argTypes);if(e){let S=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=S&&S.length>0}let d={...r.args,...t.args,...e?.args},p={...t.globals,...e?.globals},h={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:d,argTypes:c,storyGlobals:p};h.argTypes=l.reduce((S,A)=>A({...h,argTypes:S}),h.argTypes);let f={...d};h.initialArgs=s.reduce((S,A)=>({...S,...A({...h,initialArgs:S})}),f);let{name:b,story:g,...x}=h;return x}E(jo,"preparePartialAnnotations");function Lo(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(be.FEATURES?.argTypeTargetsV7){let a=ll(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[sl]||{}}}let n=Object.entries(r.args).reduce((a,[i,l])=>{if(!r.argTypes[i]?.mapping)return a[i]=l,a;let s=E(c=>{let d=r.argTypes[i].mapping;return d&&c in d?d[c]:c},"mappingFn");return a[i]=Array.isArray(l)?l.map(s):s(l),a},{}),o=Object.entries(n).reduce((a,[i,l])=>{let s=r.argTypes[i]||{};return Ts(s,n,r.globals)&&(a[i]=l),a},{});return{...r,unmappedArgs:t,args:o}}E(Lo,"prepareContext");var Eo=E((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n};default:break}return e?r.has(e)?(Q.warn(Me` +`;function Fo(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(Q.debug("deprecated story",a),Ze(Yh));let i=ks(e),l=typeof n!="function"&&n.name||n.storyName||a?.name||i,s=[...pe(n.decorators),...pe(a?.decorators)],c={...a?.parameters,...n.parameters},d={...a?.args,...n.args},p={...a?.argTypes,...n.argTypes},h=[...pe(n.loaders),...pe(a?.loaders)],f=[...pe(n.beforeEach),...pe(a?.beforeEach)],{render:b,play:g,tags:x=[],globals:S={}}=n,A=c.__id||Cs(r.id,i);return{moduleExport:t,id:A,name:l,tags:x,decorators:s,parameters:c,args:d,argTypes:Xr(p),loaders:h,beforeEach:f,globals:S,...b&&{render:b},...o&&{userStoryFn:o},...g&&{play:g}}}E(Fo,"normalizeStory");function No(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:oo(n||t),...e,title:t,...o&&{argTypes:Xr(o)},parameters:{fileName:r,...e.parameters}}}E(No,"normalizeComponentAnnotations");var Xh=E(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&Q.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),Qh=E(e=>{let{options:t}=e;t?.storySort&&Q.error("The storySort option parameter can only be set globally")},"checkStorySort"),_s=E(e=>{e&&(Xh(e),Qh(e))},"checkDisallowedParameters");function hl(e,t,r){let{default:n,__namedExportsOrder:o,...a}=e,i=No(n,r,t);_s(i.parameters);let l={meta:i,stories:{},moduleExports:e};return Object.keys(a).forEach(s=>{if(Hr(s,i)){let c=Fo(s,a[s],i);_s(c.parameters),l.stories[c.id]=c}}),l}E(hl,"processCSFFile");function ml(e){return e!=null&&yl(e).includes("mount")}E(ml,"mountDestructured");function yl(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=bo(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?bo(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}E(yl,"getUsedProps");function bo(e){let t=[],r=[],n=0;for(let a=0;at(n,o)}E(gl,"decorateStory");function bl({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:l,argTypes:s,...c}={}){return c}E(bl,"sanitizeStoryContextUpdate");function El(e,t){let r={},n=E(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...bl(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>gl(a,i,n),e);return a=>(r.value=a,o(a))}E(El,"defaultDecorateStory");var et=E((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,l])=>{let s=o[i];Array.isArray(l)||typeof s>"u"?o[i]=l:Je(l)&&Je(s)?t[i]=!0:typeof l<"u"&&(o[i]=l)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>Je(i))?n[o]=et(...a):n[o]=a[a.length-1]}),n},"combineParameters");function Bo(e,t,r){let{moduleExport:n,id:o,name:a}=e||{},i=jo(e,t,r),l=E(async I=>{let D={};for(let F of[..."__STORYBOOK_TEST_LOADERS__"in be&&Array.isArray(be.__STORYBOOK_TEST_LOADERS__)?[be.__STORYBOOK_TEST_LOADERS__]:[],pe(r.loaders),pe(t.loaders),pe(e.loaders)]){if(I.abortSignal.aborted)return D;let P=await Promise.all(F.map(L=>L(I)));Object.assign(D,...P)}return D},"applyLoaders"),s=E(async I=>{let D=new Array;for(let F of[...pe(r.beforeEach),...pe(t.beforeEach),...pe(e.beforeEach)]){if(I.abortSignal.aborted)return D;let P=await F(I);P&&D.push(P)}return D},"applyBeforeEach"),c=E(I=>I.originalStoryFn(I.args,I),"undecoratedStoryFn"),{applyDecorators:d=El,runStep:p}=r,h=[...pe(e?.decorators),...pe(t?.decorators),...pe(r?.decorators)],f=e?.userStoryFn||e?.render||t.render||r.render,b=ih(d)(c,h),g=E(I=>b(I),"unboundStoryFn"),x=e?.play??t?.play,S=ml(x);if(!f&&!S)throw new ys({id:o});let A=E(I=>async()=>(await I.renderToCanvas(),I.canvas),"defaultMount"),k=e.mount??t.mount??r.mount??A,T=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:f,undecoratedStoryFn:c,unboundStoryFn:g,applyLoaders:l,applyBeforeEach:s,playFunction:x,runStep:p,mount:k,testingLibraryRender:T,renderToCanvas:r.renderToCanvas,usesMount:S}}E(Bo,"prepareStory");function vl(e,t,r){return{...jo(void 0,e,t),moduleExport:r}}E(vl,"prepareMeta");function jo(e,t,r){let n=["dev","test"],o=be.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=Is(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),i=et(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:l=[],argsEnhancers:s=[]}=r,c=et(r.argTypes,t.argTypes,e?.argTypes);if(e){let S=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=S&&S.length>0}let d={...r.args,...t.args,...e?.args},p={...t.globals,...e?.globals},h={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:d,argTypes:c,storyGlobals:p};h.argTypes=l.reduce((S,A)=>A({...h,argTypes:S}),h.argTypes);let f={...d};h.initialArgs=s.reduce((S,A)=>({...S,...A({...h,initialArgs:S})}),f);let{name:b,story:g,...x}=h;return x}E(jo,"preparePartialAnnotations");function Lo(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(be.FEATURES?.argTypeTargetsV7){let a=ll(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[sl]||{}}}let n=Object.entries(r.args).reduce((a,[i,l])=>{if(!r.argTypes[i]?.mapping)return a[i]=l,a;let s=E(c=>{let d=r.argTypes[i].mapping;return d&&c in d?d[c]:c},"mappingFn");return a[i]=Array.isArray(l)?l.map(s):s(l),a},{}),o=Object.entries(n).reduce((a,[i,l])=>{let s=r.argTypes[i]||{};return Ts(s,n,r.globals)&&(a[i]=l),a},{});return{...r,unmappedArgs:t,args:o}}E(Lo,"prepareContext");var Eo=E((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n};default:break}return e?r.has(e)?(Q.warn(Me` We've detected a cycle in arg '${t}'. Args should be JSON-serializable. Consider using the mapping feature or fully custom args: - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args - `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Eo(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:kt(e,o=>Eo(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),xl=E(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=kt(n,(i,l)=>({name:l,type:Eo(i,`${t}.${l}`,new Set)})),a=kt(r,(i,l)=>({name:l}));return et(o,a,r)},"inferArgTypes");xl.secondPass=!0;var Ps=E((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),Zh=E((e,t,r)=>!t&&!r?e:e&&al(e,(n,o)=>{let a=n.name||o.toString();return!!(!t||Ps(a,t))&&(!r||!Ps(a,r))}),"filterArgTypes"),em=E((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&Q.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),Sl=E(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=Zh(t,n,o),l=kt(i,(s,c)=>s?.type&&em(s,c.toString(),a));return et(l,i)},"inferControls");Sl.secondPass=!0;function Xr({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,globals:i,initialGlobals:l,...s}){return i&&Object.keys(i).length>0&&Ze(Me` + `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Eo(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:kt(e,o=>Eo(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),xl=E(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=kt(n,(i,l)=>({name:l,type:Eo(i,`${t}.${l}`,new Set)})),a=kt(r,(i,l)=>({name:l}));return et(o,a,r)},"inferArgTypes");xl.secondPass=!0;var Ps=E((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),Zh=E((e,t,r)=>!t&&!r?e:e&&al(e,(n,o)=>{let a=n.name||o.toString();return!!(!t||Ps(a,t))&&(!r||!Ps(a,r))}),"filterArgTypes"),em=E((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&Q.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),Sl=E(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=Zh(t,n,o),l=kt(i,(s,c)=>s?.type&&em(s,c.toString(),a));return et(l,i)},"inferControls");Sl.secondPass=!0;function Qr({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,globals:i,initialGlobals:l,...s}){return i&&Object.keys(i).length>0&&Ze(Me` The preview.js 'globals' field is deprecated and will be removed in Storybook 9.0. Please use 'initialGlobals' instead. Learn more: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#previewjs-globals-renamed-to-initialglobals - `),{...e&&{argTypes:Yr(e)},...t&&{globalTypes:Yr(t)},decorators:pe(n),loaders:pe(o),beforeEach:pe(a),argTypesEnhancers:[...r||[],xl,Sl],initialGlobals:et(l,i),...s}}E(Xr,"normalizeProjectAnnotations");var tm=E(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function wl(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}E(wl,"composeStepRunners");function zt(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}E(zt,"getField");function dt(e,t,r={}){return zt(e,t).reduce((n,o)=>{let a=pe(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}E(dt,"getArrayField");function Jt(e,t){return Object.assign({},...zt(e,t))}E(Jt,"getObjectField");function At(e,t){return zt(e,t).pop()}E(At,"getSingletonField");function Qr(e){let t=dt(e,"argTypesEnhancers"),r=zt(e,"runStep"),n=dt(e,"beforeAll");return{parameters:et(...zt(e,"parameters")),decorators:dt(e,"decorators",{reverseFileOrder:!(be.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Jt(e,"args"),argsEnhancers:dt(e,"argsEnhancers"),argTypes:Jt(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],globals:Jt(e,"globals"),initialGlobals:Jt(e,"initialGlobals"),globalTypes:Jt(e,"globalTypes"),loaders:dt(e,"loaders"),beforeAll:tm(n),beforeEach:dt(e,"beforeEach"),render:At(e,"render"),renderToCanvas:At(e,"renderToCanvas"),renderToDOM:At(e,"renderToDOM"),applyDecorators:At(e,"applyDecorators"),runStep:wl(r),tags:dt(e,"tags"),mount:At(e,"mount"),testingLibraryRender:At(e,"testingLibraryRender")}}E(Qr,"composeConfigs");function rm(e){globalThis.defaultProjectAnnotations=e}E(rm,"setDefaultProjectAnnotations");var nm="ComposedStory",om="Unnamed Story";function Al(e){return e?"default"in e?e.default:e:{}}E(Al,"extractAnnotation");function am(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Qr(t.map(Al)),Qr([globalThis.defaultProjectAnnotations??{},globalThis.globalProjectAnnotations??{}])}E(am,"setProjectAnnotations");var pt=[];function Tl(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??nm;let a=No(t),i=o||e.storyName||e.story?.name||e.name||om,l=Fo(i,e,a),s=Xr(Qr([n&&Object.keys(n).length>0?n:globalThis.defaultProjectAnnotations??{},globalThis.globalProjectAnnotations??{},r??{}])),c=Bo(l,a,s),d={...dl(s.globalTypes),...s.initialGlobals,...c.storyGlobals},p=E(()=>{let x=Lo({hooks:new Zs,globals:d,args:{...c.initialArgs},viewMode:"story",loaded:{},abortSignal:new AbortController().signal,step:E((S,A)=>c.runStep(S,A,x),"step"),canvasElement:null,canvas:{},globalTypes:s.globalTypes,...c,context:null,mount:null});return x.context=x,c.renderToCanvas&&(x.renderToCanvas=async()=>{let S=await c.renderToCanvas?.({componentId:c.componentId,title:c.title,id:c.id,name:c.name,tags:c.tags,showMain:E(()=>{},"showMain"),showError:E(A=>{throw new Error(`${A.title} -${A.description}`)},"showError"),showException:E(A=>{throw A},"showException"),forceRemount:!0,storyContext:x,storyFn:E(()=>c.unboundStoryFn(x),"storyFn"),unboundStoryFn:c.unboundStoryFn},x.canvasElement);S&&pt.push(S)}),x.mount=c.mount(x),x},"initializeContext"),h,f=E(async x=>{let S=p();return S.canvasElement??=globalThis?.document?.body,h&&(S.loaded=h.loaded),Object.assign(S,x),c.playFunction(S)},"play"),b=E(x=>{let S=p();return Object.assign(S,x),Cl(c,S)},"run"),g=c.playFunction?f:void 0;return Object.assign(E(function(x){let S=p();return h&&(S.loaded=h.loaded),S.args={...S.initialArgs,...x},c.unboundStoryFn(S)},"storyFn"),{id:c.id,storyName:i,load:E(async()=>{for(let S of[...pt].reverse())await S();pt.length=0;let x=p();x.loaded=await c.applyLoaders(x),pt.push(...(await c.applyBeforeEach(x)).filter(Boolean)),h=x},"load"),globals:d,args:c.initialArgs,parameters:c.parameters,argTypes:c.argTypes,play:g,run:b,tags:c.tags})}E(Tl,"composeStory");var im=E((e,t,r,n)=>Tl(e,t,r,{},n),"defaultComposeStory");function sm(e,t,r=im){let{default:n,__esModule:o,__namedExportsOrder:a,...i}=e;return Object.entries(i).reduce((l,[s,c])=>zr(s,n)?Object.assign(l,{[s]:r(c,n,t,s)}):l,{})}E(sm,"composeStories");function lm(e){return e.extend({mount:E(async({mount:t,page:r},n)=>{await n(async(o,...a)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(Me` + `),{...e&&{argTypes:Xr(e)},...t&&{globalTypes:Xr(t)},decorators:pe(n),loaders:pe(o),beforeEach:pe(a),argTypesEnhancers:[...r||[],xl,Sl],initialGlobals:et(l,i),...s}}E(Qr,"normalizeProjectAnnotations");var tm=E(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function wl(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}E(wl,"composeStepRunners");function zt(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}E(zt,"getField");function dt(e,t,r={}){return zt(e,t).reduce((n,o)=>{let a=pe(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}E(dt,"getArrayField");function Jt(e,t){return Object.assign({},...zt(e,t))}E(Jt,"getObjectField");function At(e,t){return zt(e,t).pop()}E(At,"getSingletonField");function hr(e){let t=dt(e,"argTypesEnhancers"),r=zt(e,"runStep"),n=dt(e,"beforeAll");return{parameters:et(...zt(e,"parameters")),decorators:dt(e,"decorators",{reverseFileOrder:!(be.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Jt(e,"args"),argsEnhancers:dt(e,"argsEnhancers"),argTypes:Jt(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],globals:Jt(e,"globals"),initialGlobals:Jt(e,"initialGlobals"),globalTypes:Jt(e,"globalTypes"),loaders:dt(e,"loaders"),beforeAll:tm(n),beforeEach:dt(e,"beforeEach"),render:At(e,"render"),renderToCanvas:At(e,"renderToCanvas"),renderToDOM:At(e,"renderToDOM"),applyDecorators:At(e,"applyDecorators"),runStep:wl(r),tags:dt(e,"tags"),mount:At(e,"mount"),testingLibraryRender:At(e,"testingLibraryRender")}}E(hr,"composeConfigs");function rm(e){globalThis.defaultProjectAnnotations=e}E(rm,"setDefaultProjectAnnotations");var nm="ComposedStory",om="Unnamed Story";function Al(e){return e?hr([e]):{}}E(Al,"extractAnnotation");function am(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=hr(t.map(Al)),hr([globalThis.defaultProjectAnnotations??{},globalThis.globalProjectAnnotations??{}])}E(am,"setProjectAnnotations");var pt=[];function Tl(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??nm;let a=No(t),i=o||e.storyName||e.story?.name||e.name||om,l=Fo(i,e,a),s=Qr(hr([n&&Object.keys(n).length>0?n:globalThis.defaultProjectAnnotations??{},globalThis.globalProjectAnnotations??{},r??{}])),c=Bo(l,a,s),d={...dl(s.globalTypes),...s.initialGlobals,...c.storyGlobals},p=E(()=>{let x=Lo({hooks:new Zs,globals:d,args:{...c.initialArgs},viewMode:"story",loaded:{},abortSignal:new AbortController().signal,step:E((S,A)=>c.runStep(S,A,x),"step"),canvasElement:null,canvas:{},globalTypes:s.globalTypes,...c,context:null,mount:null});return x.context=x,c.renderToCanvas&&(x.renderToCanvas=async()=>{let S=await c.renderToCanvas?.({componentId:c.componentId,title:c.title,id:c.id,name:c.name,tags:c.tags,showMain:E(()=>{},"showMain"),showError:E(A=>{throw new Error(`${A.title} +${A.description}`)},"showError"),showException:E(A=>{throw A},"showException"),forceRemount:!0,storyContext:x,storyFn:E(()=>c.unboundStoryFn(x),"storyFn"),unboundStoryFn:c.unboundStoryFn},x.canvasElement);S&&pt.push(S)}),x.mount=c.mount(x),x},"initializeContext"),h,f=E(async x=>{let S=p();return S.canvasElement??=globalThis?.document?.body,h&&(S.loaded=h.loaded),Object.assign(S,x),c.playFunction(S)},"play"),b=E(x=>{let S=p();return Object.assign(S,x),Cl(c,S)},"run"),g=c.playFunction?f:void 0;return Object.assign(E(function(x){let S=p();return h&&(S.loaded=h.loaded),S.args={...S.initialArgs,...x},c.unboundStoryFn(S)},"storyFn"),{id:c.id,storyName:i,load:E(async()=>{for(let S of[...pt].reverse())await S();pt.length=0;let x=p();x.loaded=await c.applyLoaders(x),pt.push(...(await c.applyBeforeEach(x)).filter(Boolean)),h=x},"load"),globals:d,args:c.initialArgs,parameters:c.parameters,argTypes:c.argTypes,play:g,run:b,tags:c.tags})}E(Tl,"composeStory");var im=E((e,t,r,n)=>Tl(e,t,r,{},n),"defaultComposeStory");function sm(e,t,r=im){let{default:n,__esModule:o,__namedExportsOrder:a,...i}=e;return Object.entries(i).reduce((l,[s,c])=>Hr(s,n)?Object.assign(l,{[s]:r(c,n,t,s)}):l,{})}E(sm,"composeStories");function lm(e){return e.extend({mount:E(async({mount:t,page:r},n)=>{await n(async(o,...a)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(Me` Portable stories in Playwright CT only work when referencing JSX elements. Please use JSX format for your components such as: @@ -174,7 +174,7 @@ ${A.description}`)},"showError"),showException:E(A=>{throw A},"showException"),f await mount() More info: https://storybook.js.org/docs/api/portable-stories-playwright - `);await r.evaluate(async l=>{let s=await globalThis.__pwUnwrapObject?.(l);return("__pw_type"in s?s.type:s)?.load?.()},o);let i=await t(o,...a);return await r.evaluate(async l=>{let s=await globalThis.__pwUnwrapObject?.(l),c="__pw_type"in s?s.type:s,d=document.querySelector("#root");return c?.play?.({canvasElement:d})},o),i})},"mount")})}E(lm,"createPlaywrightTest");async function Cl(e,t){for(let o of[...pt].reverse())await o();if(pt.length=0,!t.canvasElement){let o=document.createElement("div");globalThis?.document?.body?.appendChild(o),t.canvasElement=o,pt.push(()=>{globalThis?.document?.body?.contains(o)&&globalThis?.document?.body?.removeChild(o)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;pt.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;n||await t.mount(),!t.abortSignal.aborted&&r&&(n||(t.mount=async()=>{throw new Vr({playFunction:r.toString()})}),await r(t))}E(Cl,"runStory");function vo(e,t){return nl(ol(e,t),r=>r===void 0)}E(vo,"picky");var Fs=1e3,um=1e4,kl=class{constructor(t,r,n){this.importFn=r,this.getStoriesJsonData=E(()=>{let i=this.getSetStoriesPayload(),l=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:kt(i.stories,s=>{let{importPath:c}=this.storyIndex.entries[s.id];return{...vo(s,["id","name","title"]),importPath:c,kind:s.title,story:s.name,parameters:{...vo(s.parameters,l),fileName:c}}})}},"getStoriesJsonData"),this.storyIndex=new Hh(t),this.projectAnnotations=Xr(n);let{initialGlobals:o,globalTypes:a}=this.projectAnnotations;this.args=new qh,this.userGlobals=new Vh({globals:o,globalTypes:a}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,lo.default)(Fs)(hl),this.prepareMetaWithCache=(0,lo.default)(Fs)(vl),this.prepareStoryWithCache=(0,lo.default)(um)(Bo)}setProjectAnnotations(t){this.projectAnnotations=Xr(t);let{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{t[n]=r}),(await Promise.all(Object.entries(t).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:o})=>(r[n]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new ds({storyId:t});let o=r.meta,a=this.prepareStoryWithCache(n,o,this.projectAnnotations);return this.args.setInitial(a),this.hooks[a.id]=this.hooks[a.id]||new Zs,a}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...a]=await Promise.all([this.importFn(r.importPath),...n.map(i=>{let l=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(l.id)})]);return{entryExports:o,csfFiles:a}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let n=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals;return Lo({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,r){this.cleanupCallbacks[t.id]=r}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new Qi;return Object.entries(this.storyIndex.entries).reduce((n,[o,{type:a,importPath:i}])=>{if(a==="docs")return n;let l=r[i],s=this.storyFromCSFFile({storyId:o,csfFile:l});return!t.includeDocsOnly&&s.parameters.docsOnly||(n[o]=Object.entries(s).reduce((c,[d,p])=>d==="moduleExport"||typeof p=="function"?c:Array.isArray(p)?Object.assign(c,{[d]:p.slice().sort()}):Object.assign(c,{[d]:p}),{args:s.initialArgs})),n},{})}getSetStoriesPayload(){let t=this.extract({includeDocsOnly:!0}),r=Object.values(t).reduce((n,{title:o})=>(n[o]={},n),{});return{v:2,globals:this.userGlobals.get(),globalParameters:{},kindParameters:r,stories:t}}raw(){return Ze("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:t})=>this.fromId(t)).filter(Boolean)}fromId(t){if(Ze("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let r;try{({importPath:r}=this.storyIndex.storyIdToEntry(t))}catch{return null}let n=this.cachedCSFFiles[r],o=this.storyFromCSFFile({storyId:t,csfFile:n});return{...o,storyFn:E(a=>{let i={...this.getStoryContext(o),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:E((l,s)=>o.runStep(l,s,i),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return o.unboundStoryFn({...i,...a})},"storyFn")}}};E(kl,"StoryStore");var cm=kl;function Il(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}E(Il,"slash");var dm=E(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function xo(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}E(xo,"pathJoin");var pm=E((e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:a=""}=t||{};typeof e=="number"&&ct.warn(Me` + `);await r.evaluate(async l=>{let s=await globalThis.__pwUnwrapObject?.(l);return("__pw_type"in s?s.type:s)?.load?.()},o);let i=await t(o,...a);return await r.evaluate(async l=>{let s=await globalThis.__pwUnwrapObject?.(l),c="__pw_type"in s?s.type:s,d=document.querySelector("#root");return c?.play?.({canvasElement:d})},o),i})},"mount")})}E(lm,"createPlaywrightTest");async function Cl(e,t){for(let o of[...pt].reverse())await o();if(pt.length=0,!t.canvasElement){let o=document.createElement("div");globalThis?.document?.body?.appendChild(o),t.canvasElement=o,pt.push(()=>{globalThis?.document?.body?.contains(o)&&globalThis?.document?.body?.removeChild(o)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;pt.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;n||await t.mount(),!t.abortSignal.aborted&&r&&(n||(t.mount=async()=>{throw new Jr({playFunction:r.toString()})}),await r(t))}E(Cl,"runStory");function vo(e,t){return nl(ol(e,t),r=>r===void 0)}E(vo,"picky");var Fs=1e3,um=1e4,kl=class{constructor(t,r,n){this.importFn=r,this.getStoriesJsonData=E(()=>{let i=this.getSetStoriesPayload(),l=["fileName","docsOnly","framework","__id","__isArgsStory"];return{v:3,stories:kt(i.stories,s=>{let{importPath:c}=this.storyIndex.entries[s.id];return{...vo(s,["id","name","title"]),importPath:c,kind:s.title,story:s.name,parameters:{...vo(s.parameters,l),fileName:c}}})}},"getStoriesJsonData"),this.storyIndex=new Hh(t),this.projectAnnotations=Qr(n);let{initialGlobals:o,globalTypes:a}=this.projectAnnotations;this.args=new qh,this.userGlobals=new Vh({globals:o,globalTypes:a}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,lo.default)(Fs)(hl),this.prepareMetaWithCache=(0,lo.default)(Fs)(vl),this.prepareStoryWithCache=(0,lo.default)(um)(Bo)}setProjectAnnotations(t){this.projectAnnotations=Qr(t);let{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{t[n]=r}),(await Promise.all(Object.entries(t).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:o})=>(r[n]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new ds({storyId:t});let o=r.meta,a=this.prepareStoryWithCache(n,o,this.projectAnnotations);return this.args.setInitial(a),this.hooks[a.id]=this.hooks[a.id]||new Zs,a}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...a]=await Promise.all([this.importFn(r.importPath),...n.map(i=>{let l=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(l.id)})]);return{entryExports:o,csfFiles:a}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let n=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals;return Lo({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,r){this.cleanupCallbacks[t.id]=r}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new Qi;return Object.entries(this.storyIndex.entries).reduce((n,[o,{type:a,importPath:i}])=>{if(a==="docs")return n;let l=r[i],s=this.storyFromCSFFile({storyId:o,csfFile:l});return!t.includeDocsOnly&&s.parameters.docsOnly||(n[o]=Object.entries(s).reduce((c,[d,p])=>d==="moduleExport"||typeof p=="function"?c:Array.isArray(p)?Object.assign(c,{[d]:p.slice().sort()}):Object.assign(c,{[d]:p}),{args:s.initialArgs})),n},{})}getSetStoriesPayload(){let t=this.extract({includeDocsOnly:!0}),r=Object.values(t).reduce((n,{title:o})=>(n[o]={},n),{});return{v:2,globals:this.userGlobals.get(),globalParameters:{},kindParameters:r,stories:t}}raw(){return Ze("StoryStore.raw() is deprecated and will be removed in 9.0, please use extract() instead"),Object.values(this.extract()).map(({id:t})=>this.fromId(t)).filter(Boolean)}fromId(t){if(Ze("StoryStore.fromId() is deprecated and will be removed in 9.0, please use loadStory() instead"),!this.cachedCSFFiles)throw new Error("Cannot call fromId/raw() unless you call cacheAllCSFFiles() first.");let r;try{({importPath:r}=this.storyIndex.storyIdToEntry(t))}catch{return null}let n=this.cachedCSFFiles[r],o=this.storyFromCSFFile({storyId:t,csfFile:n});return{...o,storyFn:E(a=>{let i={...this.getStoryContext(o),abortSignal:new AbortController().signal,canvasElement:null,loaded:{},step:E((l,s)=>o.runStep(l,s,i),"step"),context:null,mount:null,canvas:{},viewMode:"story"};return o.unboundStoryFn({...i,...a})},"storyFn")}}};E(kl,"StoryStore");var cm=kl;function Il(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}E(Il,"slash");var dm=E(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function xo(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}E(xo,"pathJoin");var pm=E((e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:a=""}=t||{};typeof e=="number"&&ct.warn(Me` CSF Auto-title received a numeric fileName. This typically happens when webpack is mis-configured in production mode. To force webpack to produce filenames, set optimization.moduleIds = "named" in your webpack config. @@ -186,10 +186,10 @@ ${A.description}`)},"showError"),showException:E(A=>{throw A},"showException"),f Are you using a V6-style sort function in V7 mode? More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort - `)}},"sortStoriesV7"),tn=new Error("prepareAborted"),{AbortController:Bs}=globalThis;function So(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}E(So,"serializeError");var Ol=class{constructor(t,r,n,o,a,i,l={autoplay:!0,forceInitialArgs:!1},s){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=a,this.viewMode=i,this.renderOptions=l,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=E(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Bs,s&&(this.story=s,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(qt,{newPhase:this.phase,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(qt,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),tn}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:a,componentId:i,title:l,name:s,tags:c,applyLoaders:d,applyBeforeEach:p,unboundStoryFn:h,playFunction:f,runStep:b}=o;r&&!t&&(this.cancelRender(),this.abortController=new Bs);let g=this.abortController.signal,x=!1,S=o.usesMount;try{let A={...this.storyContext(),viewMode:this.viewMode,abortSignal:g,canvasElement:n,loaded:{},step:E((P,L)=>b(P,L,A),"step"),context:null,canvas:{},renderToCanvas:E(async()=>{let P=await this.renderToScreen(k,n);this.teardownRender=P||(()=>{}),x=!0},"renderToCanvas"),mount:E(async(...P)=>{this.callbacks.showStoryDuringRender?.();let L=null;return await this.runPhase(g,"rendering",async()=>{L=await o.mount(A)(...P)}),S&&await this.runPhase(g,"playing"),L},"mount")};A.context=A;let k={componentId:i,title:l,kind:l,id:a,name:s,story:s,tags:c,...this.callbacks,showError:E(P=>(this.phase="errored",this.callbacks.showError(P)),"showError"),showException:E(P=>(this.phase="errored",this.callbacks.showException(P)),"showException"),forceRemount:r||this.notYetRendered,storyContext:A,storyFn:E(()=>h(A),"storyFn"),unboundStoryFn:h};if(await this.runPhase(g,"loading",async()=>{A.loaded=await d(A)}),g.aborted)return;let T=await p(A);if(this.store.addCleanupCallbacks(o,T),this.checkIfAborted(g)||(!x&&!S&&await A.mount(),this.notYetRendered=!1,g.aborted))return;let I=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,D=new Set,F=E(P=>D.add("error"in P?P.error:P.reason),"onError");if(this.renderOptions.autoplay&&r&&f&&this.phase!=="errored"){window.addEventListener("error",F),window.addEventListener("unhandledrejection",F),this.disableKeyListeners=!0;try{if(S?await f(A):(A.mount=async()=>{throw new Vr({playFunction:f.toString()})},await this.runPhase(g,"playing",async()=>f(A))),!x)throw new bs;this.checkIfAborted(g),!I&&D.size>0?await this.runPhase(g,"errored"):await this.runPhase(g,"played")}catch(P){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(g,"errored",async()=>{this.channel.emit(si,So(P))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw P;console.error(P)}if(!I&&D.size>0&&this.channel.emit(vi,Array.from(D).map(So)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",F),window.removeEventListener("error",F),g.aborted)return}await this.runPhase(g,"completed",async()=>this.channel.emit(cr,a))}catch(A){this.phase="errored",this.callbacks.showException(A)}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController?.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window.location.reload(),await new Promise(()=>{})}};E(Ol,"StoryRender");var wo=Ol,{fetch:mm}=be,ym="./index.json",Dl=class{constructor(t,r,n=Ct.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((a,i)=>{this.resolveStoreInitializationPromise=a,this.rejectStoreInitializationPromise=i}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:E((t,r)=>{if(this.storyStoreValue)return Ze("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new fs},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t)}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(mi,this.onStoryIndexChanged.bind(this)),this.channel.on(jr,this.onUpdateGlobals.bind(this)),this.channel.on(Lr,this.onUpdateArgs.bind(this)),this.channel.on(ri,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Nr,this.onResetArgs.bind(this)),this.channel.on(Fr,this.onForceReRender.bind(this)),this.channel.on(ai,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new es;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let t=await mm(ym);if(t.status===200)return t.json();throw new ns({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new cm(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Ne({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(di,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new Ne({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new Ne({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:n,storyGlobals:o,userGlobals:a,globals:i}=this.storyStoreValue.getStoryContext(r);this.channel.emit($t,{initialGlobals:n,userGlobals:a,storyGlobals:o,globals:i})}else{let{initialGlobals:n,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit($t,{initialGlobals:n,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(n=>n.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new Ne({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(pi,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(Vn,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(Vn,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new Ne({methodName:"onResetArgs"});let n=this.storyRenders.find(a=>a.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),o=(r||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((a,i)=>(a[i]=n.initialArgs[i],a),{});await this.onUpdateArgs({storyId:t,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}renderStoryToElement(t,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new Ne({methodName:"renderStoryToElement"});let a=new wo(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",o,t);return a.renderToElement(r),this.storyRenders.push(a),async()=>{await this.teardownRender(a)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new Ne({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new Ne({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new Ne({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,Q.error(t),Q.error(r),this.channel.emit(ni,r)}};E(Dl,"Preview");var gm=Dl,bm=!1,uo="Invariant failed";function Gr(e,t){if(!e){if(bm)throw new Error(uo);var r=typeof t=="function"?t():t,n=r?"".concat(uo,": ").concat(r):uo;throw new Error(n)}}E(Gr,"invariant");var Rl=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.renderStoryToElement=n,this.storyIdByName=E(a=>{let i=this.nameToStoryId.get(a);if(i)return i;throw new Error(`No story found with that name: ${a}`)},"storyIdByName"),this.componentStories=E(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=E(a=>this.store.componentStoriesFromCSFFile({csfFile:a}),"componentStoriesFromCSFFile"),this.storyById=E(a=>{if(!a){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use ``?");return this.primaryStory}let i=this.storyIdToCSFFile.get(a);if(!i)throw new Error(`Called \`storyById\` for story that was never loaded: ${a}`);return this.store.storyFromCSFFile({storyId:a,csfFile:i})},"storyById"),this.getStoryContext=E(a=>({...this.store.getStoryContext(a),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=E(a=>this.store.loadStory({storyId:a}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((a,i)=>{this.referenceCSFFile(a)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let n=t.stories[r.id];this.storyIdToCSFFile.set(n.id,t),this.exportToStory.set(n.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error(" must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use ?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use ?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){let o=t;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){let o=n.type==="component"?"component or unknown":n.type;throw new Error(Me`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}. + `)}},"sortStoriesV7"),tn=new Error("prepareAborted"),{AbortController:Bs}=globalThis;function So(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}E(So,"serializeError");var Ol=class{constructor(t,r,n,o,a,i,l={autoplay:!0,forceInitialArgs:!1},s){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=a,this.viewMode=i,this.renderOptions=l,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=E(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Bs,s&&(this.story=s,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(qt,{newPhase:this.phase,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(qt,{newPhase:this.phase,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),tn}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:a,componentId:i,title:l,name:s,tags:c,applyLoaders:d,applyBeforeEach:p,unboundStoryFn:h,playFunction:f,runStep:b}=o;r&&!t&&(this.cancelRender(),this.abortController=new Bs);let g=this.abortController.signal,x=!1,S=o.usesMount;try{let A={...this.storyContext(),viewMode:this.viewMode,abortSignal:g,canvasElement:n,loaded:{},step:E((P,L)=>b(P,L,A),"step"),context:null,canvas:{},renderToCanvas:E(async()=>{let P=await this.renderToScreen(k,n);this.teardownRender=P||(()=>{}),x=!0},"renderToCanvas"),mount:E(async(...P)=>{this.callbacks.showStoryDuringRender?.();let L=null;return await this.runPhase(g,"rendering",async()=>{L=await o.mount(A)(...P)}),S&&await this.runPhase(g,"playing"),L},"mount")};A.context=A;let k={componentId:i,title:l,kind:l,id:a,name:s,story:s,tags:c,...this.callbacks,showError:E(P=>(this.phase="errored",this.callbacks.showError(P)),"showError"),showException:E(P=>(this.phase="errored",this.callbacks.showException(P)),"showException"),forceRemount:r||this.notYetRendered,storyContext:A,storyFn:E(()=>h(A),"storyFn"),unboundStoryFn:h};if(await this.runPhase(g,"loading",async()=>{A.loaded=await d(A)}),g.aborted)return;let T=await p(A);if(this.store.addCleanupCallbacks(o,T),this.checkIfAborted(g)||(!x&&!S&&await A.mount(),this.notYetRendered=!1,g.aborted))return;let I=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,D=new Set,F=E(P=>D.add("error"in P?P.error:P.reason),"onError");if(this.renderOptions.autoplay&&r&&f&&this.phase!=="errored"){window.addEventListener("error",F),window.addEventListener("unhandledrejection",F),this.disableKeyListeners=!0;try{if(S?await f(A):(A.mount=async()=>{throw new Jr({playFunction:f.toString()})},await this.runPhase(g,"playing",async()=>f(A))),!x)throw new bs;this.checkIfAborted(g),!I&&D.size>0?await this.runPhase(g,"errored"):await this.runPhase(g,"played")}catch(P){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(g,"errored",async()=>{this.channel.emit(si,So(P))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw P;console.error(P)}if(!I&&D.size>0&&this.channel.emit(vi,Array.from(D).map(So)),this.disableKeyListeners=!1,window.removeEventListener("unhandledrejection",F),window.removeEventListener("error",F),g.aborted)return}await this.runPhase(g,"completed",async()=>this.channel.emit(cr,a))}catch(A){this.phase="errored",this.callbacks.showException(A)}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController?.abort()}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window.location.reload(),await new Promise(()=>{})}};E(Ol,"StoryRender");var wo=Ol,{fetch:mm}=be,ym="./index.json",Dl=class{constructor(t,r,n=Ct.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((a,i)=>{this.resolveStoreInitializationPromise=a,this.rejectStoreInitializationPromise=i}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:E((t,r)=>{if(this.storyStoreValue)return Ze("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new fs},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t)}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(mi,this.onStoryIndexChanged.bind(this)),this.channel.on(Lr,this.onUpdateGlobals.bind(this)),this.channel.on(Mr,this.onUpdateArgs.bind(this)),this.channel.on(ri,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Br,this.onResetArgs.bind(this)),this.channel.on(Nr,this.onForceReRender.bind(this)),this.channel.on(ai,this.onForceRemount.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new es;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let t=await mm(ym);if(t.status===200)return t.json();throw new ns({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new cm(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Ne({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(di,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new Ne({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new Ne({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:n,storyGlobals:o,userGlobals:a,globals:i}=this.storyStoreValue.getStoryContext(r);this.channel.emit($t,{initialGlobals:n,userGlobals:a,storyGlobals:o,globals:i})}else{let{initialGlobals:n,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit($t,{initialGlobals:n,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(n=>n.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new Ne({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(pi,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(Vn,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(Vn,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new Ne({methodName:"onResetArgs"});let n=this.storyRenders.find(a=>a.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),o=(r||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((a,i)=>(a[i]=n.initialArgs[i],a),{});await this.onUpdateArgs({storyId:t,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}renderStoryToElement(t,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new Ne({methodName:"renderStoryToElement"});let a=new wo(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",o,t);return a.renderToElement(r),this.storyRenders.push(a),async()=>{await this.teardownRender(a)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new Ne({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new Ne({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new Ne({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,Q.error(t),Q.error(r),this.channel.emit(ni,r)}};E(Dl,"Preview");var gm=Dl,bm=!1,uo="Invariant failed";function Wr(e,t){if(!e){if(bm)throw new Error(uo);var r=typeof t=="function"?t():t,n=r?"".concat(uo,": ").concat(r):uo;throw new Error(n)}}E(Wr,"invariant");var Rl=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.renderStoryToElement=n,this.storyIdByName=E(a=>{let i=this.nameToStoryId.get(a);if(i)return i;throw new Error(`No story found with that name: ${a}`)},"storyIdByName"),this.componentStories=E(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=E(a=>this.store.componentStoriesFromCSFFile({csfFile:a}),"componentStoriesFromCSFFile"),this.storyById=E(a=>{if(!a){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use ``?");return this.primaryStory}let i=this.storyIdToCSFFile.get(a);if(!i)throw new Error(`Called \`storyById\` for story that was never loaded: ${a}`);return this.store.storyFromCSFFile({storyId:a,csfFile:i})},"storyById"),this.getStoryContext=E(a=>({...this.store.getStoryContext(a),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=E(a=>this.store.loadStory({storyId:a}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((a,i)=>{this.referenceCSFFile(a)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let n=t.stories[r.id];this.storyIdToCSFFile.set(n.id,t),this.exportToStory.set(n.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error(" must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use ?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use ?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){let o=t;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){let o=n.type==="component"?"component or unknown":n.type;throw new Error(Me`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}. - Did you pass a component to the 'of' prop when the block only supports a story or a meta? - ... or vice versa? - - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}};E(Rl,"DocsContext");var _l=Rl,Pl=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw tn;let{importPath:n,title:o}=this.entry,a=this.store.processCSFFileWithCache(t,n,o),i=Object.keys(a.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:a}),this.csfFiles=[a,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new _l(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a=await o.renderer(),{render:i}=a,l=E(async()=>{try{await i(n,o,t),this.channel.emit(Pr,this.id)}catch(s){this.callbacks.showException(s)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:s})=>{!s||!t||a.unmount(t)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};E(Pl,"CsfDocsRender");var js=Pl,Fl=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw tn;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new _l(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a={...o,page:this.exports.default},i=await o.renderer(),{render:l}=i,s=E(async()=>{try{await l(n,a,t),this.channel.emit(Pr,this.id)}catch(c){this.callbacks.showException(c)}},"renderDocs");return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:c}={})=>{!c||!t||(i.unmount(t),this.torndown=!0)},s()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};E(Fl,"MdxDocsRender");var Ls=Fl,Em=globalThis;function Nl(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}E(Nl,"focusInInput");var Bl="attached-mdx",vm="unattached-mdx";function jl({tags:e}){return e?.includes(vm)||e?.includes(Bl)}E(jl,"isMdxEntry");function Wr(e){return e.type==="story"}E(Wr,"isStoryRender");function Ll(e){return e.type==="docs"}E(Ll,"isDocsRender");function Ml(e){return Ll(e)&&e.subtype==="csf"}E(Ml,"isCsfDocsRender");var Ul=class extends gm{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),Em.onkeydown=this.onKeydown.bind(this),this.channel.on(ci,this.onSetCurrentStory.bind(this)),this.channel.on(xi,this.onUpdateQueryParams.bind(this)),this.channel.on(li,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Ne({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new Ne({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new ss):this.renderStoryLoadingException(t,new us({storySpecifier:t.toString()}));return}let{id:o,type:a}=n;this.selectionStore.setSelection({storyId:o,viewMode:a}),this.channel.emit(gi,this.selectionStore.selection),this.channel.emit(Jn,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!Nl(t)){let{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:l,keyCode:s}=t;this.channel.emit(ui,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:l,keyCode:s}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(Jn,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){let r=this.currentRender instanceof wo&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof Ls||this.currentRender instanceof js)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new Ne({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=n,a;try{a=await this.storyStoreValue.storyIdToEntry(o)}catch(h){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,h);return}let i=this.currentSelection?.storyId!==o,l=this.currentRender?.type!==a.type;a.type==="story"?this.view.showPreparingStory({immediate:l}):this.view.showPreparingDocs({immediate:l}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let s;a.type==="story"?s=new wo(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):jl(a)?s=new Ls(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o)):s=new js(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o));let c=this.currentSelection;this.currentSelection=n;let d=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(h){d&&await this.teardownRender(d),h!==tn&&this.renderStoryLoadingException(o,h);return}let p=!i&&d&&!s.isEqual(d);if(t&&Wr(s)&&(Gr(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,t)),d&&!d.torndown&&!i&&!p&&!l){this.currentRender=d,this.channel.emit(Ei,o),this.view.showMain();return}if(d&&await this.teardownRender(d,{viewModeChanged:l}),c&&(i||l)&&this.channel.emit(fi,o),Wr(s)){Gr(!!s.story);let{parameters:h,initialArgs:f,argTypes:b,unmappedArgs:g,initialGlobals:x,userGlobals:S,storyGlobals:A,globals:k}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(yi,{id:o,parameters:h,initialArgs:f,argTypes:b,args:g}),this.channel.emit($t,{userGlobals:S,storyGlobals:A,globals:k,initialGlobals:x})}else{let{parameters:h}=this.storyStoreValue.projectAnnotations,{initialGlobals:f,globals:b}=this.storyStoreValue.userGlobals;if(this.channel.emit($t,{globals:b,initialGlobals:f,storyGlobals:{},userGlobals:b}),Ml(s)||s.entry.tags?.includes(Bl)){if(!s.csfFiles)throw new as({storyId:o});({parameters:h}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(oi,{id:o,parameters:h})}Wr(s)?(Gr(!!s.story),this.storyRenders.push(s),this.currentRender.renderToElement(this.view.prepareForStory(s.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:E(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:E(()=>this.view.showMain(),"showMain"),showError:E(r=>this.renderError(t,r),"showError"),showException:E(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Hn)}renderStoryLoadingException(t,r){Q.error(r),this.view.showErrorDisplay(r),this.channel.emit(Hn,t)}renderException(t,r){let{name:n="Error",message:o=String(r),stack:a}=r;this.channel.emit(bi,{name:n,message:o,stack:a}),this.channel.emit(qt,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay(r),Q.error(`Error rendering story '${t}':`),Q.error(r)}renderError(t,{title:r,description:n}){Q.error(`Error rendering story ${r}: ${n}`),this.channel.emit(hi,{title:r,description:n}),this.channel.emit(qt,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay({message:r,stack:n})}};E(Ul,"PreviewWithSelection");var xm=Ul,Ao=Ht(Oo(),1),Sm=Ht(Oo(),1),Ms=/^[a-zA-Z0-9 _-]*$/,$l=/^-?[0-9]+(\.[0-9]+)?$/,wm=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,ql=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,To=E((e="",t)=>e===null||e===""||!Ms.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Ms.test(t)||$l.test(t)||wm.test(t)||ql.test(t):Array.isArray(t)?t.every(r=>To(e,r)):Je(t)?Object.entries(t).every(([r,n])=>To(r,n)):!1,"validateArgs"),Am={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(ql);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return $l.test(e)?Number(e):e}},Us=E(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,Sm.parse)(t.join(";"),Am)).reduce((r,[n,o])=>To(n,o)?Object.assign(r,{[n]:o}):(ct.warn(Me` + - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}};E(Rl,"DocsContext");var _l=Rl,Pl=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw tn;let{importPath:n,title:o}=this.entry,a=this.store.processCSFFileWithCache(t,n,o),i=Object.keys(a.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:a}),this.csfFiles=[a,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new _l(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a=await o.renderer(),{render:i}=a,l=E(async()=>{try{await i(n,o,t),this.channel.emit(Fr,this.id)}catch(s){this.callbacks.showException(s)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:s})=>{!s||!t||a.unmount(t)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};E(Pl,"CsfDocsRender");var js=Pl,Fl=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw tn;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new _l(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a={...o,page:this.exports.default},i=await o.renderer(),{render:l}=i,s=E(async()=>{try{await l(n,a,t),this.channel.emit(Fr,this.id)}catch(c){this.callbacks.showException(c)}},"renderDocs");return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:c}={})=>{!c||!t||(i.unmount(t),this.torndown=!0)},s()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};E(Fl,"MdxDocsRender");var Ls=Fl,Em=globalThis;function Nl(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}E(Nl,"focusInInput");var Bl="attached-mdx",vm="unattached-mdx";function jl({tags:e}){return e?.includes(vm)||e?.includes(Bl)}E(jl,"isMdxEntry");function Kr(e){return e.type==="story"}E(Kr,"isStoryRender");function Ll(e){return e.type==="docs"}E(Ll,"isDocsRender");function Ml(e){return Ll(e)&&e.subtype==="csf"}E(Ml,"isCsfDocsRender");var Ul=class extends gm{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),Em.onkeydown=this.onKeydown.bind(this),this.channel.on(ci,this.onSetCurrentStory.bind(this)),this.channel.on(xi,this.onUpdateQueryParams.bind(this)),this.channel.on(li,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Ne({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new Ne({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new ss):this.renderStoryLoadingException(t,new us({storySpecifier:t.toString()}));return}let{id:o,type:a}=n;this.selectionStore.setSelection({storyId:o,viewMode:a}),this.channel.emit(gi,this.selectionStore.selection),this.channel.emit(Jn,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!Nl(t)){let{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:l,keyCode:s}=t;this.channel.emit(ui,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:l,keyCode:s}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(Jn,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){let r=this.currentRender instanceof wo&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof Ls||this.currentRender instanceof js)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new Ne({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=n,a;try{a=await this.storyStoreValue.storyIdToEntry(o)}catch(h){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,h);return}let i=this.currentSelection?.storyId!==o,l=this.currentRender?.type!==a.type;a.type==="story"?this.view.showPreparingStory({immediate:l}):this.view.showPreparingDocs({immediate:l}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let s;a.type==="story"?s=new wo(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):jl(a)?s=new Ls(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o)):s=new js(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o));let c=this.currentSelection;this.currentSelection=n;let d=this.currentRender;this.currentRender=s;try{await s.prepare()}catch(h){d&&await this.teardownRender(d),h!==tn&&this.renderStoryLoadingException(o,h);return}let p=!i&&d&&!s.isEqual(d);if(t&&Kr(s)&&(Wr(!!s.story),this.storyStoreValue.args.updateFromPersisted(s.story,t)),d&&!d.torndown&&!i&&!p&&!l){this.currentRender=d,this.channel.emit(Ei,o),this.view.showMain();return}if(d&&await this.teardownRender(d,{viewModeChanged:l}),c&&(i||l)&&this.channel.emit(fi,o),Kr(s)){Wr(!!s.story);let{parameters:h,initialArgs:f,argTypes:b,unmappedArgs:g,initialGlobals:x,userGlobals:S,storyGlobals:A,globals:k}=this.storyStoreValue.getStoryContext(s.story);this.channel.emit(yi,{id:o,parameters:h,initialArgs:f,argTypes:b,args:g}),this.channel.emit($t,{userGlobals:S,storyGlobals:A,globals:k,initialGlobals:x})}else{let{parameters:h}=this.storyStoreValue.projectAnnotations,{initialGlobals:f,globals:b}=this.storyStoreValue.userGlobals;if(this.channel.emit($t,{globals:b,initialGlobals:f,storyGlobals:{},userGlobals:b}),Ml(s)||s.entry.tags?.includes(Bl)){if(!s.csfFiles)throw new as({storyId:o});({parameters:h}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:s.csfFiles[0]}))}this.channel.emit(oi,{id:o,parameters:h})}Kr(s)?(Wr(!!s.story),this.storyRenders.push(s),this.currentRender.renderToElement(this.view.prepareForStory(s.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:E(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:E(()=>this.view.showMain(),"showMain"),showError:E(r=>this.renderError(t,r),"showError"),showException:E(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Hn)}renderStoryLoadingException(t,r){Q.error(r),this.view.showErrorDisplay(r),this.channel.emit(Hn,t)}renderException(t,r){let{name:n="Error",message:o=String(r),stack:a}=r;this.channel.emit(bi,{name:n,message:o,stack:a}),this.channel.emit(qt,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay(r),Q.error(`Error rendering story '${t}':`),Q.error(r)}renderError(t,{title:r,description:n}){Q.error(`Error rendering story ${r}: ${n}`),this.channel.emit(hi,{title:r,description:n}),this.channel.emit(qt,{newPhase:"errored",storyId:t}),this.view.showErrorDisplay({message:r,stack:n})}};E(Ul,"PreviewWithSelection");var xm=Ul,Ao=Ht(Oo(),1),Sm=Ht(Oo(),1),Ms=/^[a-zA-Z0-9 _-]*$/,$l=/^-?[0-9]+(\.[0-9]+)?$/,wm=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,ql=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,To=E((e="",t)=>e===null||e===""||!Ms.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Ms.test(t)||$l.test(t)||wm.test(t)||ql.test(t):Array.isArray(t)?t.every(r=>To(e,r)):Je(t)?Object.entries(t).every(([r,n])=>To(r,n)):!1,"validateArgs"),Am={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(ql);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return $l.test(e)?Number(e):e}},Us=E(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,Sm.parse)(t.join(";"),Am)).reduce((r,[n,o])=>To(n,o)?Object.assign(r,{[n]:o}):(ct.warn(Me` Omitted potentially unsafe URL args. More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url @@ -198,14 +198,14 @@ ${A.description}`)},"showError"),showException:E(A=>{throw A},"showException"),f The possible options are: ${Object.keys(po).join(", ")}, none. `)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(Gl).forEach(r=>{r===t?ke.body.classList.add(co[r]):ke.body.classList.remove(co[r])})}showErrorDisplay({message:t="",stack:r=""}){let n=t,o=r,a=t.split(` `);a.length>1&&([n]=a,o=a.slice(1).join(` -`).replace(/^\n/,"")),ke.getElementById("error-message").innerHTML=qs.toHtml(n),ke.getElementById("error-stack").innerHTML=qs.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),$s)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),$s)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){ke.body.classList.add(co.MAIN)}};E(Wl,"WebView");var Rm=Wl,_m=class extends xm{constructor(t,r){super(t,r,new Im,new Rm),this.importFn=t,this.getProjectAnnotations=r,be.__STORYBOOK_PREVIEW__=this}};E(_m,"PreviewWeb");var{document:Tt}=be,Pm=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],Fm="script",Vs="scripts-root";function Co(){let e=Tt.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),Tt.dispatchEvent(e)}E(Co,"simulateDOMContentLoaded");function Kl(e,t,r){let n=Tt.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):Tt.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}E(Kl,"insertScript");function Mo(e,t,r=0){e[r](()=>{r++,r===e.length?t():Mo(e,t,r)})}E(Mo,"insertScriptsSequentially");function Nm(e){let t=Tt.getElementById(Vs);t?t.innerHTML="":(t=Tt.createElement("div"),t.id=Vs,Tt.body.appendChild(t));let r=Array.from(e.querySelectorAll(Fm));if(r.length){let n=[];r.forEach(o=>{let a=o.getAttribute("type");(!a||Pm.includes(a))&&n.push(i=>Kl(o,i,t))}),n.length&&Mo(n,Co,void 0)}else Co()}E(Nm,"simulatePageLoad");V();J();z();V();J();z();var Gt=vp(Xl(),1);var Bm=Object.defineProperty,N=(e,t)=>Bm(e,"name",{value:t,configurable:!0}),jm=N(e=>e.name==="literal","isLiteral"),Lm=N(e=>e.value.replace(/['|"]/g,""),"toEnumOption"),Mm=N(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=yr(r.value)}),{name:"object",value:t};default:throw new Jr({type:e,language:"Flow"})}},"convertSig"),yr=N(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(yr)};case"signature":return{...n,...Mm(e)};case"union":return e.elements?.every(jm)?{...n,name:"enum",value:e.elements?.map(Lm)}:{...n,name:t,value:e.elements?.map(yr)};case"intersection":return{...n,name:t,value:e.elements?.map(yr)};default:return{...n,name:"other",value:t}}},"convert");function Ql(e,t){let r={},n=Object.keys(e);for(let o=0;oe.replace(Zl,""),"trimQuotes"),$m=N(e=>Zl.test(e),"includesQuotes"),eu=N(e=>{let t=Um(e);return $m(e)||Number.isNaN(Number(t))?t:Number(t)},"parseLiteral"),qm=/^\(.*\) => /,mr=N(e=>{let{name:t,raw:r,computed:n,value:o}=e,a={};switch(typeof r<"u"&&(a.raw=r),t){case"enum":{let l=n?o:o.map(s=>eu(s.value));return{...a,name:t,value:l}}case"string":case"number":case"symbol":return{...a,name:t};case"func":return{...a,name:"function"};case"bool":case"boolean":return{...a,name:"boolean"};case"arrayOf":case"array":return{...a,name:"array",value:o&&mr(o)};case"object":return{...a,name:t};case"objectOf":return{...a,name:t,value:mr(o)};case"shape":case"exact":let i=Ql(o,l=>mr(l));return{...a,name:"object",value:i};case"union":return{...a,name:"union",value:o.map(l=>mr(l))};case"instanceOf":case"element":case"elementType":default:{if(t?.indexOf("|")>0)try{let c=t.split("|").map(d=>JSON.parse(d));return{...a,name:"enum",value:c}}catch{}let l=o?`${t}(${o})`:t,s=qm.test(t)?"function":"other";return{...a,name:s,value:l}}}},"convert"),Vm=N(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=gr(r.value)}),{name:"object",value:t};default:throw new Jr({type:e,language:"Typescript"})}},"convertSig"),gr=N(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(gr)};case"signature":return{...n,...Vm(e)};case"union":let o;return e.elements?.every(a=>a.name==="literal")?o={...n,name:"enum",value:e.elements?.map(a=>eu(a.value))}:o={...n,name:t,value:e.elements?.map(gr)},o;case"intersection":return{...n,name:t,value:e.elements?.map(gr)};default:return{...n,name:"other",value:t}}},"convert"),Uo=N(e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return mr(t);if(r!=null)return gr(r);if(n!=null)return yr(n)}catch(o){console.error(o)}return null},"convert"),Jm=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(Jm||{}),zm=["null","undefined"];function nn(e){return zm.some(t=>t===e)}N(nn,"isDefaultValueBlacklisted");var Hm=N(e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)},"str");function $o(e){return!!e.__docgenInfo}N($o,"hasDocgen");function tu(e){return e!=null&&Object.keys(e).length>0}N(tu,"isValidDocgenSection");function ru(e,t){return $o(e)?e.__docgenInfo[t]:null}N(ru,"getDocgenSection");function nu(e){return $o(e)?Hm(e.__docgenInfo.description):""}N(nu,"getDocgenDescription");var ht;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(ht=ht||(ht={}));function ou(e){return/^\s+$/.test(e)}N(ou,"isSpace");function au(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}N(au,"splitCR");function It(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}N(It,"splitSpace");function iu(e){return e.split(/\n/)}N(iu,"splitLines");function su(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}N(su,"seedSpec");function lu(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}N(lu,"seedTokens");var Gm=/^@\S+/;function uu({fence:e="```"}={}){let t=cu(e),r=N((n,o)=>t(n)?!o:o,"toggleFence");return N(function(n){let o=[[]],a=!1;for(let i of n)Gm.test(i.tokens.description)&&!a?o.push([i]):o[o.length-1].push(i),a=r(i.tokens.description,a);return o},"parseBlock")}N(uu,"getParser");function cu(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}N(cu,"getFencer");function du({startLine:e=0,markers:t=ht}={}){let r=null,n=e;return N(function(o){let a=o,i=lu();if([i.lineEnd,a]=au(a),[i.start,a]=It(a),r===null&&a.startsWith(t.start)&&!a.startsWith(t.nostart)&&(r=[],i.delimiter=a.slice(0,t.start.length),a=a.slice(t.start.length),[i.postDelimiter,a]=It(a)),r===null)return n++,null;let l=a.trimRight().endsWith(t.end);if(i.delimiter===""&&a.startsWith(t.delim)&&!a.startsWith(t.end)&&(i.delimiter=t.delim,a=a.slice(t.delim.length),[i.postDelimiter,a]=It(a)),l){let s=a.trimRight();i.end=a.slice(s.length-t.end.length),a=s.slice(0,-t.end.length)}if(i.description=a,r.push({number:n,source:o,tokens:i}),n++,l){let s=r.slice();return r=null,s}return null},"parseSource")}N(du,"getParser");function pu({tokenizers:e}){return N(function(t){var r;let n=su({source:t});for(let o of e)if(n=o(n),!((r=n.problems[n.problems.length-1])===null||r===void 0)&&r.critical)break;return n},"parseSpec")}N(pu,"getParser");function fu(){return e=>{let{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}N(fu,"tagTokenizer");function hu(e="compact"){let t=mu(e);return r=>{let n=0,o=[];for(let[l,{tokens:s}]of r.source.entries()){let c="";if(l===0&&s.description[0]!=="{")return r;for(let d of s.description)if(d==="{"&&n++,d==="}"&&n--,c+=d,n===0)break;if(o.push([s,c]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let a=[],i=o[0][0].postDelimiter.length;for(let[l,[s,c]]of o.entries())s.type=c,l>0&&(s.type=s.postDelimiter.slice(i)+c,s.postDelimiter=s.postDelimiter.slice(0,i)),[s.postType,s.description]=It(s.description.slice(c.length)),a.push(s.type);return a[0]=a[0].slice(1),a[a.length-1]=a[a.length-1].slice(0,-1),r.type=t(a),r}}N(hu,"typeTokenizer");var Wm=N(e=>e.trim(),"trim");function mu(e){return e==="compact"?t=>t.map(Wm).join(""):e==="preserve"?t=>t.join(` +`).replace(/^\n/,"")),ke.getElementById("error-message").innerHTML=qs.toHtml(n),ke.getElementById("error-stack").innerHTML=qs.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),$s)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),$s)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){ke.body.classList.add(co.MAIN)}};E(Wl,"WebView");var Rm=Wl,_m=class extends xm{constructor(t,r){super(t,r,new Im,new Rm),this.importFn=t,this.getProjectAnnotations=r,be.__STORYBOOK_PREVIEW__=this}};E(_m,"PreviewWeb");var{document:Tt}=be,Pm=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],Fm="script",Vs="scripts-root";function Co(){let e=Tt.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),Tt.dispatchEvent(e)}E(Co,"simulateDOMContentLoaded");function Kl(e,t,r){let n=Tt.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):Tt.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}E(Kl,"insertScript");function Mo(e,t,r=0){e[r](()=>{r++,r===e.length?t():Mo(e,t,r)})}E(Mo,"insertScriptsSequentially");function Nm(e){let t=Tt.getElementById(Vs);t?t.innerHTML="":(t=Tt.createElement("div"),t.id=Vs,Tt.body.appendChild(t));let r=Array.from(e.querySelectorAll(Fm));if(r.length){let n=[];r.forEach(o=>{let a=o.getAttribute("type");(!a||Pm.includes(a))&&n.push(i=>Kl(o,i,t))}),n.length&&Mo(n,Co,void 0)}else Co()}E(Nm,"simulatePageLoad");V();J();z();V();J();z();var Gt=vp(Xl(),1);var Bm=Object.defineProperty,N=(e,t)=>Bm(e,"name",{value:t,configurable:!0}),jm=N(e=>e.name==="literal","isLiteral"),Lm=N(e=>e.value.replace(/['|"]/g,""),"toEnumOption"),Mm=N(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=gr(r.value)}),{name:"object",value:t};default:throw new zr({type:e,language:"Flow"})}},"convertSig"),gr=N(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(gr)};case"signature":return{...n,...Mm(e)};case"union":return e.elements?.every(jm)?{...n,name:"enum",value:e.elements?.map(Lm)}:{...n,name:t,value:e.elements?.map(gr)};case"intersection":return{...n,name:t,value:e.elements?.map(gr)};default:return{...n,name:"other",value:t}}},"convert");function Ql(e,t){let r={},n=Object.keys(e);for(let o=0;oe.replace(Zl,""),"trimQuotes"),$m=N(e=>Zl.test(e),"includesQuotes"),eu=N(e=>{let t=Um(e);return $m(e)||Number.isNaN(Number(t))?t:Number(t)},"parseLiteral"),qm=/^\(.*\) => /,yr=N(e=>{let{name:t,raw:r,computed:n,value:o}=e,a={};switch(typeof r<"u"&&(a.raw=r),t){case"enum":{let l=n?o:o.map(s=>eu(s.value));return{...a,name:t,value:l}}case"string":case"number":case"symbol":return{...a,name:t};case"func":return{...a,name:"function"};case"bool":case"boolean":return{...a,name:"boolean"};case"arrayOf":case"array":return{...a,name:"array",value:o&&yr(o)};case"object":return{...a,name:t};case"objectOf":return{...a,name:t,value:yr(o)};case"shape":case"exact":let i=Ql(o,l=>yr(l));return{...a,name:"object",value:i};case"union":return{...a,name:"union",value:o.map(l=>yr(l))};case"instanceOf":case"element":case"elementType":default:{if(t?.indexOf("|")>0)try{let c=t.split("|").map(d=>JSON.parse(d));return{...a,name:"enum",value:c}}catch{}let l=o?`${t}(${o})`:t,s=qm.test(t)?"function":"other";return{...a,name:s,value:l}}}},"convert"),Vm=N(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=br(r.value)}),{name:"object",value:t};default:throw new zr({type:e,language:"Typescript"})}},"convertSig"),br=N(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(br)};case"signature":return{...n,...Vm(e)};case"union":let o;return e.elements?.every(a=>a.name==="literal")?o={...n,name:"enum",value:e.elements?.map(a=>eu(a.value))}:o={...n,name:t,value:e.elements?.map(br)},o;case"intersection":return{...n,name:t,value:e.elements?.map(br)};default:return{...n,name:"other",value:t}}},"convert"),Uo=N(e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return yr(t);if(r!=null)return br(r);if(n!=null)return gr(n)}catch(o){console.error(o)}return null},"convert"),Jm=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(Jm||{}),zm=["null","undefined"];function nn(e){return zm.some(t=>t===e)}N(nn,"isDefaultValueBlacklisted");var Hm=N(e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)},"str");function $o(e){return!!e.__docgenInfo}N($o,"hasDocgen");function tu(e){return e!=null&&Object.keys(e).length>0}N(tu,"isValidDocgenSection");function ru(e,t){return $o(e)?e.__docgenInfo[t]:null}N(ru,"getDocgenSection");function nu(e){return $o(e)?Hm(e.__docgenInfo.description):""}N(nu,"getDocgenDescription");var ht;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(ht=ht||(ht={}));function ou(e){return/^\s+$/.test(e)}N(ou,"isSpace");function au(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}N(au,"splitCR");function It(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}N(It,"splitSpace");function iu(e){return e.split(/\n/)}N(iu,"splitLines");function su(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}N(su,"seedSpec");function lu(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}N(lu,"seedTokens");var Gm=/^@\S+/;function uu({fence:e="```"}={}){let t=cu(e),r=N((n,o)=>t(n)?!o:o,"toggleFence");return N(function(n){let o=[[]],a=!1;for(let i of n)Gm.test(i.tokens.description)&&!a?o.push([i]):o[o.length-1].push(i),a=r(i.tokens.description,a);return o},"parseBlock")}N(uu,"getParser");function cu(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}N(cu,"getFencer");function du({startLine:e=0,markers:t=ht}={}){let r=null,n=e;return N(function(o){let a=o,i=lu();if([i.lineEnd,a]=au(a),[i.start,a]=It(a),r===null&&a.startsWith(t.start)&&!a.startsWith(t.nostart)&&(r=[],i.delimiter=a.slice(0,t.start.length),a=a.slice(t.start.length),[i.postDelimiter,a]=It(a)),r===null)return n++,null;let l=a.trimRight().endsWith(t.end);if(i.delimiter===""&&a.startsWith(t.delim)&&!a.startsWith(t.end)&&(i.delimiter=t.delim,a=a.slice(t.delim.length),[i.postDelimiter,a]=It(a)),l){let s=a.trimRight();i.end=a.slice(s.length-t.end.length),a=s.slice(0,-t.end.length)}if(i.description=a,r.push({number:n,source:o,tokens:i}),n++,l){let s=r.slice();return r=null,s}return null},"parseSource")}N(du,"getParser");function pu({tokenizers:e}){return N(function(t){var r;let n=su({source:t});for(let o of e)if(n=o(n),!((r=n.problems[n.problems.length-1])===null||r===void 0)&&r.critical)break;return n},"parseSpec")}N(pu,"getParser");function fu(){return e=>{let{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}N(fu,"tagTokenizer");function hu(e="compact"){let t=mu(e);return r=>{let n=0,o=[];for(let[l,{tokens:s}]of r.source.entries()){let c="";if(l===0&&s.description[0]!=="{")return r;for(let d of s.description)if(d==="{"&&n++,d==="}"&&n--,c+=d,n===0)break;if(o.push([s,c]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let a=[],i=o[0][0].postDelimiter.length;for(let[l,[s,c]]of o.entries())s.type=c,l>0&&(s.type=s.postDelimiter.slice(i)+c,s.postDelimiter=s.postDelimiter.slice(0,i)),[s.postType,s.description]=It(s.description.slice(c.length)),a.push(s.type);return a[0]=a[0].slice(1),a[a.length-1]=a[a.length-1].slice(0,-1),r.type=t(a),r}}N(hu,"typeTokenizer");var Wm=N(e=>e.trim(),"trim");function mu(e){return e==="compact"?t=>t.map(Wm).join(""):e==="preserve"?t=>t.join(` `):e}N(mu,"getJoiner");var Km=N(e=>e&&e.startsWith('"')&&e.endsWith('"'),"isQuoted");function yu(){let e=N((t,{tokens:r},n)=>r.type===""?t:n,"typeEnd");return t=>{let{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),o=n.split('"');if(o.length>1&&o[0]===""&&o.length%2===1)return t.name=o[1],r.name=`"${o[1]}"`,[r.postName,r.description]=It(n.slice(r.name.length)),t;let a=0,i="",l=!1,s;for(let d of n){if(a===0&&ou(d))break;d==="["&&a++,d==="]"&&a--,i+=d}if(a!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let c=i;if(i[0]==="["&&i[i.length-1]==="]"){l=!0,i=i.slice(1,-1);let d=i.split("=");if(i=d[0].trim(),d[1]!==void 0&&(s=d.slice(1).join("=").trim()),i==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(s==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!Km(s)&&/=(?!>)/.test(s))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=l,t.name=i,r.name=c,s!==void 0&&(t.default=s),[r.postName,r.description]=It(n.slice(r.name.length)),t}}N(yu,"nameTokenizer");function gu(e="compact",t=ht){let r=qo(e);return n=>(n.description=r(n.source,t),n)}N(gu,"descriptionTokenizer");function qo(e){return e==="compact"?bu:e==="preserve"?Eu:e}N(qo,"getJoiner");function bu(e,t=ht){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}N(bu,"compactJoiner");var Ym=N((e,{tokens:t},r)=>t.type===""?e:r,"lineNo"),Xm=N(({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description,"getDescription");function Eu(e,t=ht){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let r=e[e.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(Ym,0)),e.map(Xm).join(` `)}N(Eu,"preserveJoiner");function vu({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=ht,tokenizers:o=[fu(),hu(r),yu(),gu(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let a=du({startLine:e,markers:n}),i=uu({fence:t}),l=pu({tokenizers:o}),s=qo(r);return function(c){let d=[];for(let p of iu(c)){let h=a(p);if(h===null)continue;let f=i(h),b=f.slice(1).map(l);d.push({description:s(f[0],n),tags:b,source:h,problems:b.reduce((g,x)=>g.concat(x.problems),[])})}return d}}N(vu,"getParser");function xu(e){return e.start+e.delimiter+e.postDelimiter+e.tag+e.postTag+e.type+e.postType+e.name+e.postName+e.description+e.end+e.lineEnd}N(xu,"join");function Su(){return e=>e.source.map(({tokens:t})=>xu(t)).join(` `)}N(Su,"getStringifier");var Qm={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0},wI=Object.keys(Qm);function wu(e,t={}){return vu(t)(e)}N(wu,"parse");var AI=Su();function Au(e){return e!=null&&e.includes("@")}N(Au,"containsJsDoc");function Tu(e){let t=`/** `+(e??"").split(` `).map(n=>` * ${n}`).join(` `)+` -*/`,r=wu(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}N(Tu,"parse");var Zm={tags:["param","arg","argument","returns","ignore","deprecated"]},ey=N((e,t=Zm)=>{if(!Au(e))return{includesJsDoc:!1,ignore:!1};let r=Tu(e),n=Cu(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}},"parseJsDoc");function Cu(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{let o=Iu(n);o!=null&&(r.params==null&&(r.params=[]),r.params.push(o));break}case"deprecated":{let o=Ou(n);o!=null&&(r.deprecated=o);break}case"returns":{let o=Du(n);o!=null&&(r.returns=o);break}default:break}return r}N(Cu,"extractJsDocTags");function ku(e){return e.replace(/[\.-]$/,"")}N(ku,"normaliseParamName");function Iu(e){if(!e.name||e.name==="-")return null;let t=zo(e.type);return{name:e.name,type:t,description:Jo(e.description),getPrettyName:N(()=>ku(e.name),"getPrettyName"),getTypeName:N(()=>t?Ho(t):null,"getTypeName")}}N(Iu,"extractParam");function Ou(e){return e.name?Vo(e.name,e.description):null}N(Ou,"extractDeprecated");function Vo(e,t){let r=e===""?t:`${e} ${t}`;return Jo(r)}N(Vo,"joinNameAndDescription");function Jo(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}N(Jo,"normaliseDescription");function Du(e){let t=zo(e.type);return t?{type:t,description:Vo(e.name,e.description),getTypeName:N(()=>Ho(t),"getTypeName")}:null}N(Du,"extractReturns");var mt=(0,Gt.stringifyRules)(),ty=mt.JsdocTypeObject;mt.JsdocTypeAny=()=>"any";mt.JsdocTypeObject=(e,t)=>`(${ty(e,t)})`;mt.JsdocTypeOptional=(e,t)=>t(e.element);mt.JsdocTypeNullable=(e,t)=>t(e.element);mt.JsdocTypeNotNullable=(e,t)=>t(e.element);mt.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function zo(e){try{return(0,Gt.parse)(e,"typescript")}catch{return null}}N(zo,"extractType");function Ho(e){return(0,Gt.transform)(mt,e)}N(Ho,"extractTypeName");function Go(e){return e.length>90}N(Go,"isTooLongForTypeSummary");function Ru(e){return e.length>50}N(Ru,"isTooLongForDefaultValueSummary");function fe(e,t){return e===t?{summary:e}:{summary:e,detail:t}}N(fe,"createSummaryValue");var TI=N(e=>e.replace(/\\r\\n/g,"\\n"),"normalizeNewlines");function _u(e,t){if(e!=null){let{value:r}=e;if(!nn(r))return Ru(r)?fe(t?.name,r):fe(r)}return null}N(_u,"createDefaultValue");function Wo({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(Wo).join(" | "):n??e)}N(Wo,"generateUnionElement");function Pu({name:e,raw:t,elements:r}){return r!=null?fe(r.map(Wo).join(" | ")):t!=null?fe(t.replace(/^\|\s*/,"")):fe(e)}N(Pu,"generateUnion");function Fu({type:e,raw:t}){return t!=null?fe(t):fe(e)}N(Fu,"generateFuncSignature");function Nu({type:e,raw:t}){return t!=null?Go(t)?fe(e,t):fe(t):fe(e)}N(Nu,"generateObjectSignature");function Bu(e){let{type:t}=e;return t==="object"?Nu(e):Fu(e)}N(Bu,"generateSignature");function ju({name:e,raw:t}){return t!=null?Go(t)?fe(e,t):fe(t):fe(e)}N(ju,"generateDefault");function Lu(e){if(e==null)return null;switch(e.name){case"union":return Pu(e);case"signature":return Bu(e);default:return ju(e)}}N(Lu,"createType");var ry=N((e,t)=>{let{flowType:r,description:n,required:o,defaultValue:a}=t;return{name:e,type:Lu(r),required:o,description:n,defaultValue:_u(a??null,r??null)}},"createFlowPropDef");function Mu({defaultValue:e}){if(e!=null){let{value:t}=e;if(!nn(t))return fe(t)}return null}N(Mu,"createDefaultValue");function Uu({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),fe(["Array","Record","signature"].includes(e.name)?e.raw:r)}N(Uu,"createType");var ny=N((e,t)=>{let{description:r,required:n}=t;return{name:e,type:Uu(t),required:n,description:r,defaultValue:Mu(t)}},"createTsPropDef");function $u(e){return e!=null?fe(e.name):null}N($u,"createType");function qu(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}N(qu,"isReactDocgenTypescript");function Vu(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}N(Vu,"isStringValued");function Ju(e,t){if(e!=null){let{value:r}=e;if(!nn(r))return qu(e)&&Vu(t)?fe(JSON.stringify(r)):fe(r)}return null}N(Ju,"createDefaultValue");function Ko(e,t,r){let{description:n,required:o,defaultValue:a}=r;return{name:e,type:$u(t),required:o,description:n,defaultValue:Ju(a,t)}}N(Ko,"createBasicPropDef");function br(e,t){if(t?.includesJsDoc){let{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);let o={...n,params:n?.params?.map(a=>({name:a.getPrettyName(),description:a.description}))};Object.values(o).filter(Boolean).length>0&&(e.jsDocTags=o)}return e}N(br,"applyJsDocResult");var oy=N((e,t,r)=>{let n=Ko(e,t.type,t);return n.sbType=Uo(t),br(n,r)},"javaScriptFactory"),ay=N((e,t,r)=>{let n=ny(e,t);return n.sbType=Uo(t),br(n,r)},"tsFactory"),iy=N((e,t,r)=>{let n=ry(e,t);return n.sbType=Uo(t),br(n,r)},"flowFactory"),sy=N((e,t,r)=>{let n=Ko(e,{name:"unknown"},t);return br(n,r)},"unknownFactory"),zu=N(e=>{switch(e){case"JavaScript":return oy;case"TypeScript":return ay;case"Flow":return iy;default:return sy}},"getPropDefFactory"),Hu=N(e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown","getTypeSystem"),ly=N(e=>{let t=Hu(e[0]),r=zu(t);return e.map(n=>{let o=n;return n.type?.elements&&(o={...n,type:{...n.type,value:n.type.elements}}),Yo(o.name,o,t,r)})},"extractComponentSectionArray"),uy=N(e=>{let t=Object.keys(e),r=Hu(e[t[0]]),n=zu(r);return t.map(o=>{let a=e[o];return a!=null?Yo(o,a,r,n):null}).filter(Boolean)},"extractComponentSectionObject"),CI=N((e,t)=>{let r=ru(e,t);return tu(r)?Array.isArray(r)?ly(r):uy(r):[]},"extractComponentProps");function Yo(e,t,r,n){let o=ey(t.description);return o.includesJsDoc&&o.ignore?null:{propDef:n(e,t,o),jsDocTags:o.extractedTags,docgenInfo:t,typeSystem:r}}N(Yo,"extractProp");function cy(e){return e!=null?nu(e):""}N(cy,"extractComponentDescription");var II=N(e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:o}=n,a=o&&t?o(t):{};return a?et(a,r):r},"enhanceArgTypes"),Gu="storybook/docs",OI=`${Gu}/panel`;var DI=`${Gu}/snippet-rendered`,dy=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(dy||{}),py=/(addons\/|addon-|addon-essentials\/)(docs|controls)/,RI=N(e=>e.presetsList?.some(t=>py.test(t.name)),"hasDocsOrControls");V();J();z();V();J();z();var zI=__STORYBOOK_CHANNELS__,{Channel:HI,PostMessageTransport:GI,WebsocketTransport:WI,createBrowserChannel:KI}=__STORYBOOK_CHANNELS__;V();J();z();var Wu=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();var Zy=Object.create,zc=Object.defineProperty,eg=Object.getOwnPropertyDescriptor,tg=Object.getOwnPropertyNames,rg=Object.getPrototypeOf,ng=Object.prototype.hasOwnProperty,og=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ag=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of tg(t))!ng.call(e,o)&&o!==r&&zc(e,o,{get:()=>t[o],enumerable:!(n=eg(t,o))||n.enumerable});return e},ig=(e,t,r)=>(r=e!=null?Zy(rg(e)):{},ag(t||!e||!e.__esModule?zc(r,"default",{value:e,enumerable:!0}):r,e)),sg=og(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(l,s,c){var d,p,h,f=t.call(l),b=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(c.indexOf(l)>-1&&c.indexOf(s)>-1)return!0;if(c.push(l,s),f!=b||(d=n(l),p=n(s),d.length!=p.length||d.some(function(g){return!i(l[g],s[g],c)})))return!1;switch(f.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":d=l.entries(),p=s.entries();do if(!i((h=d.next()).value,p.next().value,c))return!1;while(!h.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(h=0;he.map(t=>typeof t<"u").filter(Boolean).length,lg=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(Hc([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,mc.isEqual)(t,n);if(typeof o<"u")return!(0,mc.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},ug=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(Hc([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return lg(e.if,a)},Gc=je({"../../node_modules/memoizerific/memoizerific.js"(e,t){(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"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,o,a){function i(c,d){if(!o[c]){if(!n[c]){var p=typeof sr=="function"&&sr;if(!d&&p)return p(c,!0);if(l)return l(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var f=o[c]={exports:{}};n[c][0].call(f.exports,function(b){var g=n[c][1][b];return i(g||b)},f,f.exports,r,n,o,a)}return o[c].exports}for(var l=typeof sr=="function"&&sr,s=0;s=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s0&&(A[S]={cacheItem:b,arg:arguments[S]},k?i(p,A):p.push(A),p.length>c&&l(p.shift())),f.wasMemoized=k,f.numArgs=S+1,x};return f.limit=c,f.wasMemoized=!1,f.cache=d,f.lru=p,f}};function i(c,d){var p=c.length,h=d.length,f,b,g;for(b=0;b=0&&(p=c[f],h=p.cacheItem.get(p.arg),!h||!h.size);f--)p.cacheItem.delete(p.arg)}function s(c,d){return c===d||c!==c&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}}),cg=je({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),dg=je({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,o=[].some,a=document.body,i,l=!0,s=" ";function c(T,I){var D=I.appendChild(p(T));if(T.children.length){var F=h(T.isCollapsed);T.children.forEach(function(P){c(P,F)}),D.appendChild(F)}}function d(T,I){var D=!1,F=h(D);if(I.forEach(function(P){c(P,F)}),i=T||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),I.length===0?i:i.appendChild(F)}function p(T){var I=document.createElement("li"),D=document.createElement("a");return r.listItemClass&&I.setAttribute("class",r.listItemClass),r.onClick&&(D.onclick=r.onClick),r.includeTitleTags&&D.setAttribute("title",T.textContent),r.includeHtml&&T.childNodes.length?n.call(T.childNodes,function(F){D.appendChild(F.cloneNode(!0))}):D.textContent=T.textContent,D.setAttribute("href",r.basePath+"#"+T.id),D.setAttribute("class",r.linkClass+s+"node-name--"+T.nodeName+s+r.extraLinkClasses),I.appendChild(D),I}function h(T){var I=r.orderedList?"ol":"ul",D=document.createElement(I),F=r.listClass+s+r.extraListClasses;return T&&(F=F+s+r.collapsibleClass,F=F+s+r.isCollapsedClass),D.setAttribute("class",F),D}function f(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var T;T=document.querySelector(r.scrollContainer).scrollTop}else T=document.documentElement.scrollTop||a.scrollTop;var I=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),T>r.fixedSidebarOffset?I.className.indexOf(r.positionFixedClass)===-1&&(I.className+=s+r.positionFixedClass):I.className=I.className.replace(s+r.positionFixedClass,"")}function b(T){var I=0;return T!==null&&(I=T.offsetTop,r.hasInnerContainers&&(I+=b(T.offsetParent))),I}function g(T,I){return T&&T.className!==I&&(T.className=I),T}function x(T){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var I;I=document.querySelector(r.scrollContainer).scrollTop}else I=document.documentElement.scrollTop||a.scrollTop;r.positionFixedSelector&&f();var D=T,F;if(l&&i!==null&&D.length>0){o.call(D,function(w,C){if(b(w)>I+r.headingsOffset+10){var _=C===0?C:C-1;return F=D[_],!0}else if(C===D.length-1)return F=D[D.length-1],!0});var P=i.querySelector("."+r.activeLinkClass),L=i.querySelector("."+r.linkClass+".node-name--"+F.nodeName+'[href="'+r.basePath+"#"+F.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(P===L)return;var B=i.querySelectorAll("."+r.linkClass);n.call(B,function(w){g(w,w.className.replace(s+r.activeLinkClass,""))});var G=i.querySelectorAll("."+r.listItemClass);n.call(G,function(w){g(w,w.className.replace(s+r.activeListItemClass,""))}),L&&L.className.indexOf(r.activeLinkClass)===-1&&(L.className+=s+r.activeLinkClass);var $=L&&L.parentNode;$&&$.className.indexOf(r.activeListItemClass)===-1&&($.className+=s+r.activeListItemClass);var H=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(H,function(w){w.className.indexOf(r.isCollapsedClass)===-1&&(w.className+=s+r.isCollapsedClass)}),L&&L.nextSibling&&L.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(L.nextSibling,L.nextSibling.className.replace(s+r.isCollapsedClass,"")),S(L&&L.parentNode.parentNode)}}function S(T){return T&&T.className.indexOf(r.collapsibleClass)!==-1&&T.className.indexOf(r.isCollapsedClass)!==-1?(g(T,T.className.replace(s+r.isCollapsedClass,"")),S(T.parentNode.parentNode)):T}function A(T){var I=T.target||T.srcElement;typeof I.className!="string"||I.className.indexOf(r.linkClass)===-1||(l=!1)}function k(){l=!0}return{enableTocAnimation:k,disableTocAnimation:A,render:d,updateToc:x}}}}),pg=je({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function o(p){return p[p.length-1]}function a(p){return+p.nodeName.toUpperCase().replace("H","")}function i(p){try{return p instanceof window.HTMLElement||p instanceof window.parent.HTMLElement}catch{return p instanceof window.HTMLElement}}function l(p){if(!i(p))return p;if(r.ignoreHiddenElements&&(!p.offsetHeight||!p.offsetParent))return null;let h=p.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(p.innerText)):(p.innerText||p.textContent).trim());var f={id:p.id,children:[],nodeName:p.nodeName,headingLevel:a(p),textContent:h};return r.includeHtml&&(f.childNodes=p.childNodes),r.headingObjectCallback?r.headingObjectCallback(f,p):f}function s(p,h){for(var f=l(p),b=f.headingLevel,g=h,x=o(g),S=x?x.headingLevel:0,A=b-S;A>0&&(x=o(g),!(x&&b===x.headingLevel));)x&&x.children!==void 0&&(g=x.children),A--;return b>=r.collapseDepth&&(f.isCollapsed=!0),g.push(f),g}function c(p,h){var f=h;r.ignoreSelector&&(f=h.split(",").map(function(b){return b.trim()+":not("+r.ignoreSelector+")"}));try{return p.querySelectorAll(f)}catch{return console.warn("Headers not found with selector: "+f),null}}function d(p){return n.call(p,function(h,f){var b=l(f);return b&&s(b,h.nest),h},{nest:[]})}return{nestHeadingsArray:d,selectHeadings:c}}}}),fg=je({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var o=n.querySelector("."+r.activeListItemClass);o&&(n.scrollTop=o.offsetTop-r.tocScrollOffset)}}}}),hg=je({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var o=n.duration,a=n.offset,i=location.hash?c(location.href):location.href;l();function l(){document.body.addEventListener("click",p,!1);function p(h){!s(h.target)||h.target.className.indexOf("no-smooth-scroll")>-1||h.target.href.charAt(h.target.href.length-2)==="#"&&h.target.href.charAt(h.target.href.length-1)==="!"||h.target.className.indexOf(n.linkClass)===-1||r(h.target.hash,{duration:o,offset:a,callback:function(){d(h.target.hash)}})}}function s(p){return p.tagName.toLowerCase()==="a"&&(p.hash.length>0||p.href.charAt(p.href.length-1)==="#")&&(c(p.href)===i||c(p.href)+"#"===i)}function c(p){return p.slice(0,p.lastIndexOf("#"))}function d(p){var h=document.getElementById(p.substring(1));h&&(/^(?:a|select|input|button|textarea)$/i.test(h.tagName)||(h.tabIndex=-1),h.focus())}}function r(n,o){var a=window.pageYOffset,i={duration:o.duration,offset:o.offset||0,callback:o.callback,easing:o.easing||b},l=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),s=typeof n=="string"?i.offset+(n?l&&l.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,c=typeof i.duration=="function"?i.duration(s):i.duration,d,p;requestAnimationFrame(function(g){d=g,h(g)});function h(g){p=g-d,window.scrollTo(0,i.easing(p,a,s,c)),p"u"&&!p)return;var h,f=Object.prototype.hasOwnProperty;function b(){for(var A={},k=0;k{if(!Au(e))return{includesJsDoc:!1,ignore:!1};let r=Tu(e),n=Cu(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}},"parseJsDoc");function Cu(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{let o=Iu(n);o!=null&&(r.params==null&&(r.params=[]),r.params.push(o));break}case"deprecated":{let o=Ou(n);o!=null&&(r.deprecated=o);break}case"returns":{let o=Du(n);o!=null&&(r.returns=o);break}default:break}return r}N(Cu,"extractJsDocTags");function ku(e){return e.replace(/[\.-]$/,"")}N(ku,"normaliseParamName");function Iu(e){if(!e.name||e.name==="-")return null;let t=zo(e.type);return{name:e.name,type:t,description:Jo(e.description),getPrettyName:N(()=>ku(e.name),"getPrettyName"),getTypeName:N(()=>t?Ho(t):null,"getTypeName")}}N(Iu,"extractParam");function Ou(e){return e.name?Vo(e.name,e.description):null}N(Ou,"extractDeprecated");function Vo(e,t){let r=e===""?t:`${e} ${t}`;return Jo(r)}N(Vo,"joinNameAndDescription");function Jo(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}N(Jo,"normaliseDescription");function Du(e){let t=zo(e.type);return t?{type:t,description:Vo(e.name,e.description),getTypeName:N(()=>Ho(t),"getTypeName")}:null}N(Du,"extractReturns");var mt=(0,Gt.stringifyRules)(),ty=mt.JsdocTypeObject;mt.JsdocTypeAny=()=>"any";mt.JsdocTypeObject=(e,t)=>`(${ty(e,t)})`;mt.JsdocTypeOptional=(e,t)=>t(e.element);mt.JsdocTypeNullable=(e,t)=>t(e.element);mt.JsdocTypeNotNullable=(e,t)=>t(e.element);mt.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function zo(e){try{return(0,Gt.parse)(e,"typescript")}catch{return null}}N(zo,"extractType");function Ho(e){return(0,Gt.transform)(mt,e)}N(Ho,"extractTypeName");function Go(e){return e.length>90}N(Go,"isTooLongForTypeSummary");function Ru(e){return e.length>50}N(Ru,"isTooLongForDefaultValueSummary");function fe(e,t){return e===t?{summary:e}:{summary:e,detail:t}}N(fe,"createSummaryValue");var TI=N(e=>e.replace(/\\r\\n/g,"\\n"),"normalizeNewlines");function _u(e,t){if(e!=null){let{value:r}=e;if(!nn(r))return Ru(r)?fe(t?.name,r):fe(r)}return null}N(_u,"createDefaultValue");function Wo({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(Wo).join(" | "):n??e)}N(Wo,"generateUnionElement");function Pu({name:e,raw:t,elements:r}){return r!=null?fe(r.map(Wo).join(" | ")):t!=null?fe(t.replace(/^\|\s*/,"")):fe(e)}N(Pu,"generateUnion");function Fu({type:e,raw:t}){return t!=null?fe(t):fe(e)}N(Fu,"generateFuncSignature");function Nu({type:e,raw:t}){return t!=null?Go(t)?fe(e,t):fe(t):fe(e)}N(Nu,"generateObjectSignature");function Bu(e){let{type:t}=e;return t==="object"?Nu(e):Fu(e)}N(Bu,"generateSignature");function ju({name:e,raw:t}){return t!=null?Go(t)?fe(e,t):fe(t):fe(e)}N(ju,"generateDefault");function Lu(e){if(e==null)return null;switch(e.name){case"union":return Pu(e);case"signature":return Bu(e);default:return ju(e)}}N(Lu,"createType");var ry=N((e,t)=>{let{flowType:r,description:n,required:o,defaultValue:a}=t;return{name:e,type:Lu(r),required:o,description:n,defaultValue:_u(a??null,r??null)}},"createFlowPropDef");function Mu({defaultValue:e}){if(e!=null){let{value:t}=e;if(!nn(t))return fe(t)}return null}N(Mu,"createDefaultValue");function Uu({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),fe(["Array","Record","signature"].includes(e.name)?e.raw:r)}N(Uu,"createType");var ny=N((e,t)=>{let{description:r,required:n}=t;return{name:e,type:Uu(t),required:n,description:r,defaultValue:Mu(t)}},"createTsPropDef");function $u(e){return e!=null?fe(e.name):null}N($u,"createType");function qu(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}N(qu,"isReactDocgenTypescript");function Vu(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}N(Vu,"isStringValued");function Ju(e,t){if(e!=null){let{value:r}=e;if(!nn(r))return qu(e)&&Vu(t)?fe(JSON.stringify(r)):fe(r)}return null}N(Ju,"createDefaultValue");function Ko(e,t,r){let{description:n,required:o,defaultValue:a}=r;return{name:e,type:$u(t),required:o,description:n,defaultValue:Ju(a,t)}}N(Ko,"createBasicPropDef");function Er(e,t){if(t?.includesJsDoc){let{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);let o={...n,params:n?.params?.map(a=>({name:a.getPrettyName(),description:a.description}))};Object.values(o).filter(Boolean).length>0&&(e.jsDocTags=o)}return e}N(Er,"applyJsDocResult");var oy=N((e,t,r)=>{let n=Ko(e,t.type,t);return n.sbType=Uo(t),Er(n,r)},"javaScriptFactory"),ay=N((e,t,r)=>{let n=ny(e,t);return n.sbType=Uo(t),Er(n,r)},"tsFactory"),iy=N((e,t,r)=>{let n=ry(e,t);return n.sbType=Uo(t),Er(n,r)},"flowFactory"),sy=N((e,t,r)=>{let n=Ko(e,{name:"unknown"},t);return Er(n,r)},"unknownFactory"),zu=N(e=>{switch(e){case"JavaScript":return oy;case"TypeScript":return ay;case"Flow":return iy;default:return sy}},"getPropDefFactory"),Hu=N(e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown","getTypeSystem"),ly=N(e=>{let t=Hu(e[0]),r=zu(t);return e.map(n=>{let o=n;return n.type?.elements&&(o={...n,type:{...n.type,value:n.type.elements}}),Yo(o.name,o,t,r)})},"extractComponentSectionArray"),uy=N(e=>{let t=Object.keys(e),r=Hu(e[t[0]]),n=zu(r);return t.map(o=>{let a=e[o];return a!=null?Yo(o,a,r,n):null}).filter(Boolean)},"extractComponentSectionObject"),CI=N((e,t)=>{let r=ru(e,t);return tu(r)?Array.isArray(r)?ly(r):uy(r):[]},"extractComponentProps");function Yo(e,t,r,n){let o=ey(t.description);return o.includesJsDoc&&o.ignore?null:{propDef:n(e,t,o),jsDocTags:o.extractedTags,docgenInfo:t,typeSystem:r}}N(Yo,"extractProp");function cy(e){return e!=null?nu(e):""}N(cy,"extractComponentDescription");var II=N(e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:o}=n,a=o&&t?o(t):{};return a?et(a,r):r},"enhanceArgTypes"),Gu="storybook/docs",OI=`${Gu}/panel`;var DI=`${Gu}/snippet-rendered`,dy=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(dy||{}),py=/(addons\/|addon-|addon-essentials\/)(docs|controls)/,RI=N(e=>e.presetsList?.some(t=>py.test(t.name)),"hasDocsOrControls");V();J();z();V();J();z();var zI=__STORYBOOK_CHANNELS__,{Channel:HI,PostMessageTransport:GI,WebsocketTransport:WI,createBrowserChannel:KI}=__STORYBOOK_CHANNELS__;V();J();z();var Wu=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();var Zy=Object.create,zc=Object.defineProperty,eg=Object.getOwnPropertyDescriptor,tg=Object.getOwnPropertyNames,rg=Object.getPrototypeOf,ng=Object.prototype.hasOwnProperty,og=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ag=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of tg(t))!ng.call(e,o)&&o!==r&&zc(e,o,{get:()=>t[o],enumerable:!(n=eg(t,o))||n.enumerable});return e},ig=(e,t,r)=>(r=e!=null?Zy(rg(e)):{},ag(t||!e||!e.__esModule?zc(r,"default",{value:e,enumerable:!0}):r,e)),sg=og(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(l,s,c){var d,p,h,f=t.call(l),b=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(c.indexOf(l)>-1&&c.indexOf(s)>-1)return!0;if(c.push(l,s),f!=b||(d=n(l),p=n(s),d.length!=p.length||d.some(function(g){return!i(l[g],s[g],c)})))return!1;switch(f.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":d=l.entries(),p=s.entries();do if(!i((h=d.next()).value,p.next().value,c))return!1;while(!h.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=s.length)return!1;for(h=0;he.map(t=>typeof t<"u").filter(Boolean).length,lg=(e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(Hc([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,mc.isEqual)(t,n);if(typeof o<"u")return!(0,mc.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},ug=(e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(Hc([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return lg(e.if,a)},Gc=je({"../../node_modules/memoizerific/memoizerific.js"(e,t){(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"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,o,a){function i(c,d){if(!o[c]){if(!n[c]){var p=typeof sr=="function"&&sr;if(!d&&p)return p(c,!0);if(l)return l(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var f=o[c]={exports:{}};n[c][0].call(f.exports,function(b){var g=n[c][1][b];return i(g||b)},f,f.exports,r,n,o,a)}return o[c].exports}for(var l=typeof sr=="function"&&sr,s=0;s=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s0&&(A[S]={cacheItem:b,arg:arguments[S]},k?i(p,A):p.push(A),p.length>c&&l(p.shift())),f.wasMemoized=k,f.numArgs=S+1,x};return f.limit=c,f.wasMemoized=!1,f.cache=d,f.lru=p,f}};function i(c,d){var p=c.length,h=d.length,f,b,g;for(b=0;b=0&&(p=c[f],h=p.cacheItem.get(p.arg),!h||!h.size);f--)p.cacheItem.delete(p.arg)}function s(c,d){return c===d||c!==c&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}}),cg=je({"../../node_modules/tocbot/src/js/default-options.js"(e,t){t.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(r){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(r){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollOffset:0}}}),dg=je({"../../node_modules/tocbot/src/js/build-html.js"(e,t){t.exports=function(r){var n=[].forEach,o=[].some,a=document.body,i,l=!0,s=" ";function c(T,I){var D=I.appendChild(p(T));if(T.children.length){var F=h(T.isCollapsed);T.children.forEach(function(P){c(P,F)}),D.appendChild(F)}}function d(T,I){var D=!1,F=h(D);if(I.forEach(function(P){c(P,F)}),i=T||i,i!==null)return i.firstChild&&i.removeChild(i.firstChild),I.length===0?i:i.appendChild(F)}function p(T){var I=document.createElement("li"),D=document.createElement("a");return r.listItemClass&&I.setAttribute("class",r.listItemClass),r.onClick&&(D.onclick=r.onClick),r.includeTitleTags&&D.setAttribute("title",T.textContent),r.includeHtml&&T.childNodes.length?n.call(T.childNodes,function(F){D.appendChild(F.cloneNode(!0))}):D.textContent=T.textContent,D.setAttribute("href",r.basePath+"#"+T.id),D.setAttribute("class",r.linkClass+s+"node-name--"+T.nodeName+s+r.extraLinkClasses),I.appendChild(D),I}function h(T){var I=r.orderedList?"ol":"ul",D=document.createElement(I),F=r.listClass+s+r.extraListClasses;return T&&(F=F+s+r.collapsibleClass,F=F+s+r.isCollapsedClass),D.setAttribute("class",F),D}function f(){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var T;T=document.querySelector(r.scrollContainer).scrollTop}else T=document.documentElement.scrollTop||a.scrollTop;var I=document.querySelector(r.positionFixedSelector);r.fixedSidebarOffset==="auto"&&(r.fixedSidebarOffset=i.offsetTop),T>r.fixedSidebarOffset?I.className.indexOf(r.positionFixedClass)===-1&&(I.className+=s+r.positionFixedClass):I.className=I.className.replace(s+r.positionFixedClass,"")}function b(T){var I=0;return T!==null&&(I=T.offsetTop,r.hasInnerContainers&&(I+=b(T.offsetParent))),I}function g(T,I){return T&&T.className!==I&&(T.className=I),T}function x(T){if(r.scrollContainer&&document.querySelector(r.scrollContainer)){var I;I=document.querySelector(r.scrollContainer).scrollTop}else I=document.documentElement.scrollTop||a.scrollTop;r.positionFixedSelector&&f();var D=T,F;if(l&&i!==null&&D.length>0){o.call(D,function(w,C){if(b(w)>I+r.headingsOffset+10){var _=C===0?C:C-1;return F=D[_],!0}else if(C===D.length-1)return F=D[D.length-1],!0});var P=i.querySelector("."+r.activeLinkClass),L=i.querySelector("."+r.linkClass+".node-name--"+F.nodeName+'[href="'+r.basePath+"#"+F.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1")+'"]');if(P===L)return;var B=i.querySelectorAll("."+r.linkClass);n.call(B,function(w){g(w,w.className.replace(s+r.activeLinkClass,""))});var G=i.querySelectorAll("."+r.listItemClass);n.call(G,function(w){g(w,w.className.replace(s+r.activeListItemClass,""))}),L&&L.className.indexOf(r.activeLinkClass)===-1&&(L.className+=s+r.activeLinkClass);var $=L&&L.parentNode;$&&$.className.indexOf(r.activeListItemClass)===-1&&($.className+=s+r.activeListItemClass);var H=i.querySelectorAll("."+r.listClass+"."+r.collapsibleClass);n.call(H,function(w){w.className.indexOf(r.isCollapsedClass)===-1&&(w.className+=s+r.isCollapsedClass)}),L&&L.nextSibling&&L.nextSibling.className.indexOf(r.isCollapsedClass)!==-1&&g(L.nextSibling,L.nextSibling.className.replace(s+r.isCollapsedClass,"")),S(L&&L.parentNode.parentNode)}}function S(T){return T&&T.className.indexOf(r.collapsibleClass)!==-1&&T.className.indexOf(r.isCollapsedClass)!==-1?(g(T,T.className.replace(s+r.isCollapsedClass,"")),S(T.parentNode.parentNode)):T}function A(T){var I=T.target||T.srcElement;typeof I.className!="string"||I.className.indexOf(r.linkClass)===-1||(l=!1)}function k(){l=!0}return{enableTocAnimation:k,disableTocAnimation:A,render:d,updateToc:x}}}}),pg=je({"../../node_modules/tocbot/src/js/parse-content.js"(e,t){t.exports=function(r){var n=[].reduce;function o(p){return p[p.length-1]}function a(p){return+p.nodeName.toUpperCase().replace("H","")}function i(p){try{return p instanceof window.HTMLElement||p instanceof window.parent.HTMLElement}catch{return p instanceof window.HTMLElement}}function l(p){if(!i(p))return p;if(r.ignoreHiddenElements&&(!p.offsetHeight||!p.offsetParent))return null;let h=p.getAttribute("data-heading-label")||(r.headingLabelCallback?String(r.headingLabelCallback(p.innerText)):(p.innerText||p.textContent).trim());var f={id:p.id,children:[],nodeName:p.nodeName,headingLevel:a(p),textContent:h};return r.includeHtml&&(f.childNodes=p.childNodes),r.headingObjectCallback?r.headingObjectCallback(f,p):f}function s(p,h){for(var f=l(p),b=f.headingLevel,g=h,x=o(g),S=x?x.headingLevel:0,A=b-S;A>0&&(x=o(g),!(x&&b===x.headingLevel));)x&&x.children!==void 0&&(g=x.children),A--;return b>=r.collapseDepth&&(f.isCollapsed=!0),g.push(f),g}function c(p,h){var f=h;r.ignoreSelector&&(f=h.split(",").map(function(b){return b.trim()+":not("+r.ignoreSelector+")"}));try{return p.querySelectorAll(f)}catch{return console.warn("Headers not found with selector: "+f),null}}function d(p){return n.call(p,function(h,f){var b=l(f);return b&&s(b,h.nest),h},{nest:[]})}return{nestHeadingsArray:d,selectHeadings:c}}}}),fg=je({"../../node_modules/tocbot/src/js/update-toc-scroll.js"(e,t){t.exports=function(r){var n=r.tocElement||document.querySelector(r.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var o=n.querySelector("."+r.activeListItemClass);o&&(n.scrollTop=o.offsetTop-r.tocScrollOffset)}}}}),hg=je({"../../node_modules/tocbot/src/js/scroll-smooth/index.js"(e){e.initSmoothScrolling=t;function t(n){var o=n.duration,a=n.offset,i=location.hash?c(location.href):location.href;l();function l(){document.body.addEventListener("click",p,!1);function p(h){!s(h.target)||h.target.className.indexOf("no-smooth-scroll")>-1||h.target.href.charAt(h.target.href.length-2)==="#"&&h.target.href.charAt(h.target.href.length-1)==="!"||h.target.className.indexOf(n.linkClass)===-1||r(h.target.hash,{duration:o,offset:a,callback:function(){d(h.target.hash)}})}}function s(p){return p.tagName.toLowerCase()==="a"&&(p.hash.length>0||p.href.charAt(p.href.length-1)==="#")&&(c(p.href)===i||c(p.href)+"#"===i)}function c(p){return p.slice(0,p.lastIndexOf("#"))}function d(p){var h=document.getElementById(p.substring(1));h&&(/^(?:a|select|input|button|textarea)$/i.test(h.tagName)||(h.tabIndex=-1),h.focus())}}function r(n,o){var a=window.pageYOffset,i={duration:o.duration,offset:o.offset||0,callback:o.callback,easing:o.easing||b},l=document.querySelector('[id="'+decodeURI(n).split("#").join("")+'"]')||document.querySelector('[id="'+n.split("#").join("")+'"]'),s=typeof n=="string"?i.offset+(n?l&&l.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):n,c=typeof i.duration=="function"?i.duration(s):i.duration,d,p;requestAnimationFrame(function(g){d=g,h(g)});function h(g){p=g-d,window.scrollTo(0,i.easing(p,a,s,c)),p"u"&&!p)return;var h,f=Object.prototype.hasOwnProperty;function b(){for(var A={},k=0;k1?o-1:0),i=1;i=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,c=i):o>=3&&o<4?(s=i,c=a):o>=4&&o<5?(l=i,c=a):o>=5&&o<6&&(l=a,c=i);var d=r-a/2,p=l+d,h=s+d,f=c+d;return n(p,h,f)}var yc={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 wg(e){if(typeof e!="string")return e;var t=e.toLowerCase();return yc[t]?"#"+yc[t]:e}var Ag=/^#[a-fA-F0-9]{6}$/,Tg=/^#[a-fA-F0-9]{8}$/,Cg=/^#[a-fA-F0-9]{3}$/,kg=/^#[a-fA-F0-9]{4}$/,ia=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Ig=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Og=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Dg=/^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 yn(e){if(typeof e!="string")throw new Ke(3);var t=wg(e);if(t.match(Ag))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(Tg)){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(Cg))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(kg)){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 o=ia.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=Ig.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=Og.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,c=parseInt(""+i[3],10)/100,d="rgb("+Ar(l,s,c)+")",p=ia.exec(d);if(!p)throw new Ke(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var h=Dg.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),b=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,x="rgb("+Ar(f,b,g)+")",S=ia.exec(x);if(!S)throw new Ke(4,t,x);return{red:parseInt(""+S[1],10),green:parseInt(""+S[2],10),blue:parseInt(""+S[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Ke(5)}function Rg(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,c=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r=1?mn(e,t,r):"rgba("+Ar(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?mn(e.hue,e.saturation,e.lightness):"rgba("+Ar(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ke(2)}function va(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Ea("#"+Dt(e)+Dt(t)+Dt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Ea("#"+Dt(e.red)+Dt(e.green)+Dt(e.blue));throw new Ke(6)}function rt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=yn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?va(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?va(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ke(7)}var Bg=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},jg=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},Lg=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Mg=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Yc(e){if(typeof e!="object")throw new Ke(8);if(jg(e))return rt(e);if(Bg(e))return va(e);if(Mg(e))return Ng(e);if(Lg(e))return Fg(e);throw new Ke(8)}function Xc(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Xc(e,t,n)}}function gn(e){return Xc(e,e.length,[])}function bn(e,t,r){return Math.max(e,Math.min(t,r))}function Ug(e,t){if(t==="transparent")return t;var r=Kc(t);return Yc(Qt({},r,{lightness:bn(0,1,r.lightness-parseFloat(e))}))}var $g=gn(Ug),We=$g;function qg(e,t){if(t==="transparent")return t;var r=Kc(t);return Yc(Qt({},r,{lightness:bn(0,1,r.lightness+parseFloat(e))}))}var Vg=gn(qg),Rt=Vg;function Jg(e,t){if(t==="transparent")return t;var r=yn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Qt({},r,{alpha:bn(0,1,(n*100+parseFloat(e)*100)/100)});return rt(o)}var zg=gn(Jg),cn=zg;function Hg(e,t){if(t==="transparent")return t;var r=yn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Qt({},r,{alpha:bn(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return rt(o)}var Gg=gn(Hg),se=Gg,Wg=R.div(Ut,({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:se(.3,e.color.defaultText),fontSize:e.typography.size.s2})),Qc=e=>m.createElement(Wg,{...e,className:"docblock-emptyblock sb-unstyled"}),Kg=R(Rr)(({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"}})),Yg=R.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"})),dn=R.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Oi}`]:{margin:0}})),Xg=()=>m.createElement(Yg,null,m.createElement(dn,null),m.createElement(dn,{style:{width:"80%"}}),m.createElement(dn,{style:{width:"30%"}}),m.createElement(dn,{style:{width:"80%"}})),Qg=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!1,...i})=>{let{typography:l}=Xn();if(e)return m.createElement(Xg,null);if(t)return m.createElement(Qc,null,t);let s=m.createElement(Kg,{bordered:!0,copyable:!0,format:a,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;let c=o?Yn.dark:Yn.light;return m.createElement(ki,{theme:Ii({...c,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)},he=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Ca=600;R.h1(Ut,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Ca}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}));R.h2(Ut,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Ca}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:se(.25,e.color.defaultText)}));R.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"?se(.1,e.color.defaultText):se(.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"}}});R.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Ca}px)`]:{}}));var En=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}`}),Zg=ur({scale:1});R.strong(({theme:e})=>({color:e.color.orange}));var e0=R(Nn)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),t0=R.div({display:"flex",alignItems:"center",gap:4}),r0=R.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`})),n0=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>m.createElement(e0,{...a},m.createElement(t0,{key:"left"},e?[1,2,3].map(i=>m.createElement(r0,{key:i})):m.createElement(m.Fragment,null,m.createElement(ze,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},m.createElement(qi,null)),m.createElement(ze,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},m.createElement(Vi,null)),m.createElement(ze,{key:"zoomreset",onClick:i=>{i.preventDefault(),o()},title:"Reset zoom"},m.createElement(Ji,null))))),o0=R.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)`}}:{}),gc=R(Qg)(({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)":We(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":We(.05,e.background.content)}})),a0=R.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...En(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),i0=(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:m.createElement(gc,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:m.createElement(gc,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function s0(e){if(Ya.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var l0=R(n0)({position:"absolute",top:0,left:0,right:0,height:40}),u0=R.div({overflow:"hidden",position:"relative"}),c0=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:c="padded",...d})=>{let[p,h]=X(i),{source:f,actionItem:b}=i0(o,p,h),[g,x]=X(1),S=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),A=o?[b]:[],[k,T]=X(l?[...l]:[]),I=[...A,...k],{window:D}=globalThis,F=xe(async L=>{let{createCopyToClipboardFunction:B}=await Promise.resolve().then(()=>(_r(),ti));B()},[]),P=L=>{let B=D.getSelection();B&&B.type==="Range"||(L.preventDefault(),k.filter(G=>G.title==="Copied").length===0&&F(f.props.code).then(()=>{T([...k,{title:"Copied",onClick:()=>{}}]),D.setTimeout(()=>T(k.filter(G=>G.title!=="Copied")),1500)}))};return m.createElement(a0,{withSource:o,withToolbar:a,...d,className:S.join(" ")},a&&m.createElement(l0,{isLoading:e,border:!0,zoom:L=>x(g*L),resetZoom:()=>x(1),storyId:s0(n),baseUrl:"./iframe.html"}),m.createElement(Zg.Provider,{value:{scale:g}},m.createElement(u0,{className:"docs-story",onCopyCapture:o&&P},m.createElement(o0,{isColumn:t||!Array.isArray(n),columns:r,layout:c},m.createElement(Un.Element,{scale:g},Array.isArray(n)?n.map((L,B)=>m.createElement("div",{key:B},L)):m.createElement("div",null,n))),m.createElement(Dn,{actionItems:I}))),o&&p&&f)};R(c0)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),xc={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xA0",quot:"\u201C"},p0=["style","script"],f0=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,h0=/mailto:/i,m0=/\n{2,}$/,Zc=/^(\s*>[\s\S]*?)(?=\n{2,})/,y0=/^ *> ?/gm,g0=/^ {2,}\n/,b0=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ed=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,td=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,E0=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,v0=/^(?:\n *)*\n/,x0=/\r\n?/g,S0=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,w0=/^\[\^([^\]]+)]/,A0=/\f/g,T0=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,C0=/^\s*?\[(x|\s)\]/,rd=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,nd=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,od=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,xa=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,k0=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,ad=/^)/,I0=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Sa=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,O0=/^\{.*\}$/,D0=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,R0=/^<([^ >]+@[^ >]+)>/,_0=/^<([^ >]+:\/[^ >]+)>/,P0=/-([a-z])?/gi,id=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,F0=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,N0=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,B0=/^\[([^\]]*)\] ?\[([^\]]*)\]/,j0=/(\[|\])/g,L0=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,M0=/\t/g,U0=/^ *\| */,$0=/(^ *\||\| *$)/g,q0=/ *$/,V0=/^ *:-+: *$/,J0=/^ *:-+ *$/,z0=/^ *-+: *$/,vn="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",H0=new RegExp(`^([*_])\\1${vn}\\1\\1(?!\\1)`),G0=new RegExp(`^([*_])${vn}\\1(?!\\1|\\w)`),W0=new RegExp(`^==${vn}==`),K0=new RegExp(`^~~${vn}~~`),Y0=/^\\([^0-9A-Za-z\s])/,X0=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Q0=/^\n+/,Z0=/^([ \t]*)/,e2=/\\([^\\])/g,Sc=/ *\n+$/,t2=/(?:^|\n)( *)$/,ka="(?:\\d+\\.)",Ia="(?:[*+-])";function sd(e){return"( *)("+(e===1?ka:Ia)+") +"}var ld=sd(1),ud=sd(2);function cd(e){return new RegExp("^"+(e===1?ld:ud))}var r2=cd(1),n2=cd(2);function dd(e){return new RegExp("^"+(e===1?ld:ud)+"[^\\n]*(?:\\n(?!\\1"+(e===1?ka:Ia)+" )[^\\n]*)*(\\n|$)","gm")}var pd=dd(1),fd=dd(2);function hd(e){let t=e===1?ka:Ia;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var md=hd(1),yd=hd(2);function wc(e,t){let r=t===1,n=r?md:yd,o=r?pd:fd,a=r?r2:n2;return{match(i,l,s){let c=t2.exec(s);return c&&(l.list||!l.inline&&!l.simple)?n.exec(i=c[1]+i):null},order:1,parse(i,l,s){let c=r?+i[2]:void 0,d=i[0].replace(m0,` +`};function xg(){for(var e=arguments.length,t=new Array(e),r=0;r1?o-1:0),i=1;i=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,c=i):o>=3&&o<4?(s=i,c=a):o>=4&&o<5?(l=i,c=a):o>=5&&o<6&&(l=a,c=i);var d=r-a/2,p=l+d,h=s+d,f=c+d;return n(p,h,f)}var yc={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 wg(e){if(typeof e!="string")return e;var t=e.toLowerCase();return yc[t]?"#"+yc[t]:e}var Ag=/^#[a-fA-F0-9]{6}$/,Tg=/^#[a-fA-F0-9]{8}$/,Cg=/^#[a-fA-F0-9]{3}$/,kg=/^#[a-fA-F0-9]{4}$/,ia=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Ig=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Og=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Dg=/^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 yn(e){if(typeof e!="string")throw new Ke(3);var t=wg(e);if(t.match(Ag))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(Tg)){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(Cg))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(kg)){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 o=ia.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=Ig.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=Og.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,c=parseInt(""+i[3],10)/100,d="rgb("+Tr(l,s,c)+")",p=ia.exec(d);if(!p)throw new Ke(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var h=Dg.exec(t.substring(0,50));if(h){var f=parseInt(""+h[1],10),b=parseInt(""+h[2],10)/100,g=parseInt(""+h[3],10)/100,x="rgb("+Tr(f,b,g)+")",S=ia.exec(x);if(!S)throw new Ke(4,t,x);return{red:parseInt(""+S[1],10),green:parseInt(""+S[2],10),blue:parseInt(""+S[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new Ke(5)}function Rg(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,c=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r=1?mn(e,t,r):"rgba("+Tr(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?mn(e.hue,e.saturation,e.lightness):"rgba("+Tr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ke(2)}function va(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Ea("#"+Dt(e)+Dt(t)+Dt(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Ea("#"+Dt(e.red)+Dt(e.green)+Dt(e.blue));throw new Ke(6)}function rt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=yn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?va(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?va(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ke(7)}var Bg=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},jg=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},Lg=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Mg=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Yc(e){if(typeof e!="object")throw new Ke(8);if(jg(e))return rt(e);if(Bg(e))return va(e);if(Mg(e))return Ng(e);if(Lg(e))return Fg(e);throw new Ke(8)}function Xc(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Xc(e,t,n)}}function gn(e){return Xc(e,e.length,[])}function bn(e,t,r){return Math.max(e,Math.min(t,r))}function Ug(e,t){if(t==="transparent")return t;var r=Kc(t);return Yc(Qt({},r,{lightness:bn(0,1,r.lightness-parseFloat(e))}))}var $g=gn(Ug),We=$g;function qg(e,t){if(t==="transparent")return t;var r=Kc(t);return Yc(Qt({},r,{lightness:bn(0,1,r.lightness+parseFloat(e))}))}var Vg=gn(qg),Rt=Vg;function Jg(e,t){if(t==="transparent")return t;var r=yn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Qt({},r,{alpha:bn(0,1,(n*100+parseFloat(e)*100)/100)});return rt(o)}var zg=gn(Jg),cn=zg;function Hg(e,t){if(t==="transparent")return t;var r=yn(t),n=typeof r.alpha=="number"?r.alpha:1,o=Qt({},r,{alpha:bn(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return rt(o)}var Gg=gn(Hg),se=Gg,Wg=R.div(Ut,({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:se(.3,e.color.defaultText),fontSize:e.typography.size.s2})),Qc=e=>m.createElement(Wg,{...e,className:"docblock-emptyblock sb-unstyled"}),Kg=R(_r)(({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"}})),Yg=R.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"})),dn=R.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Oi}`]:{margin:0}})),Xg=()=>m.createElement(Yg,null,m.createElement(dn,null),m.createElement(dn,{style:{width:"80%"}}),m.createElement(dn,{style:{width:"30%"}}),m.createElement(dn,{style:{width:"80%"}})),Qg=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!1,...i})=>{let{typography:l}=Xn();if(e)return m.createElement(Xg,null);if(t)return m.createElement(Qc,null,t);let s=m.createElement(Kg,{bordered:!0,copyable:!0,format:a,language:r,className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;let c=o?Yn.dark:Yn.light;return m.createElement(ki,{theme:Ii({...c,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)},he=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,Ca=600;R.h1(Ut,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Ca}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}));R.h2(Ut,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Ca}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:se(.25,e.color.defaultText)}));R.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"?se(.1,e.color.defaultText):se(.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"}}});R.div(({theme:e})=>({background:e.background.content,display:"flex",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Ca}px)`]:{}}));var En=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}`}),Zg=ur({scale:1});R.strong(({theme:e})=>({color:e.color.orange}));var e0=R(Nn)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),t0=R.div({display:"flex",alignItems:"center",gap:4}),r0=R.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`})),n0=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>m.createElement(e0,{...a},m.createElement(t0,{key:"left"},e?[1,2,3].map(i=>m.createElement(r0,{key:i})):m.createElement(m.Fragment,null,m.createElement(ze,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},m.createElement(qi,null)),m.createElement(ze,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},m.createElement(Vi,null)),m.createElement(ze,{key:"zoomreset",onClick:i=>{i.preventDefault(),o()},title:"Reset zoom"},m.createElement(Ji,null))))),o0=R.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)`}}:{}),gc=R(Qg)(({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)":We(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":We(.05,e.background.content)}})),a0=R.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...En(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),i0=(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:m.createElement(gc,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:m.createElement(gc,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function s0(e){if(Ya.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var l0=R(n0)({position:"absolute",top:0,left:0,right:0,height:40}),u0=R.div({overflow:"hidden",position:"relative"}),c0=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:c="padded",...d})=>{let[p,h]=X(i),{source:f,actionItem:b}=i0(o,p,h),[g,x]=X(1),S=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),A=o?[b]:[],[k,T]=X(l?[...l]:[]),I=[...A,...k],{window:D}=globalThis,F=xe(async L=>{let{createCopyToClipboardFunction:B}=await Promise.resolve().then(()=>(Pr(),ti));B()},[]),P=L=>{let B=D.getSelection();B&&B.type==="Range"||(L.preventDefault(),k.filter(G=>G.title==="Copied").length===0&&F(f.props.code).then(()=>{T([...k,{title:"Copied",onClick:()=>{}}]),D.setTimeout(()=>T(k.filter(G=>G.title!=="Copied")),1500)}))};return m.createElement(a0,{withSource:o,withToolbar:a,...d,className:S.join(" ")},a&&m.createElement(l0,{isLoading:e,border:!0,zoom:L=>x(g*L),resetZoom:()=>x(1),storyId:s0(n),baseUrl:"./iframe.html"}),m.createElement(Zg.Provider,{value:{scale:g}},m.createElement(u0,{className:"docs-story",onCopyCapture:o&&P},m.createElement(o0,{isColumn:t||!Array.isArray(n),columns:r,layout:c},m.createElement(Un.Element,{scale:g},Array.isArray(n)?n.map((L,B)=>m.createElement("div",{key:B},L)):m.createElement("div",null,n))),m.createElement(Dn,{actionItems:I}))),o&&p&&f)};R(c0)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));function _t(){return _t=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),xc={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xA0",quot:"\u201C"},p0=["style","script"],f0=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,h0=/mailto:/i,m0=/\n{2,}$/,Zc=/^(\s*>[\s\S]*?)(?=\n{2,})/,y0=/^ *> ?/gm,g0=/^ {2,}\n/,b0=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,ed=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,td=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,E0=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,v0=/^(?:\n *)*\n/,x0=/\r\n?/g,S0=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,w0=/^\[\^([^\]]+)]/,A0=/\f/g,T0=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,C0=/^\s*?\[(x|\s)\]/,rd=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,nd=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,od=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,xa=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,k0=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,ad=/^)/,I0=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Sa=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,O0=/^\{.*\}$/,D0=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,R0=/^<([^ >]+@[^ >]+)>/,_0=/^<([^ >]+:\/[^ >]+)>/,P0=/-([a-z])?/gi,id=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,F0=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,N0=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,B0=/^\[([^\]]*)\] ?\[([^\]]*)\]/,j0=/(\[|\])/g,L0=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,M0=/\t/g,U0=/^ *\| */,$0=/(^ *\||\| *$)/g,q0=/ *$/,V0=/^ *:-+: *$/,J0=/^ *:-+ *$/,z0=/^ *-+: *$/,vn="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",H0=new RegExp(`^([*_])\\1${vn}\\1\\1(?!\\1)`),G0=new RegExp(`^([*_])${vn}\\1(?!\\1|\\w)`),W0=new RegExp(`^==${vn}==`),K0=new RegExp(`^~~${vn}~~`),Y0=/^\\([^0-9A-Za-z\s])/,X0=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Q0=/^\n+/,Z0=/^([ \t]*)/,e2=/\\([^\\])/g,Sc=/ *\n+$/,t2=/(?:^|\n)( *)$/,ka="(?:\\d+\\.)",Ia="(?:[*+-])";function sd(e){return"( *)("+(e===1?ka:Ia)+") +"}var ld=sd(1),ud=sd(2);function cd(e){return new RegExp("^"+(e===1?ld:ud))}var r2=cd(1),n2=cd(2);function dd(e){return new RegExp("^"+(e===1?ld:ud)+"[^\\n]*(?:\\n(?!\\1"+(e===1?ka:Ia)+" )[^\\n]*)*(\\n|$)","gm")}var pd=dd(1),fd=dd(2);function hd(e){let t=e===1?ka:Ia;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var md=hd(1),yd=hd(2);function wc(e,t){let r=t===1,n=r?md:yd,o=r?pd:fd,a=r?r2:n2;return{match(i,l,s){let c=t2.exec(s);return c&&(l.list||!l.inline&&!l.simple)?n.exec(i=c[1]+i):null},order:1,parse(i,l,s){let c=r?+i[2]:void 0,d=i[0].replace(m0,` `).match(o),p=!1;return{items:d.map(function(h,f){let b=a.exec(h)[0].length,g=new RegExp("^ {1,"+b+"}","gm"),x=h.replace(g,"").replace(a,""),S=f===d.length-1,A=x.indexOf(` `)!==-1||S&&p;p=A;let k=s.inline,T=s.list,I;s.list=!0,A?(s.inline=!1,I=x.replace(Sc,` `)):(s.inline=!0,I=x.replace(Sc,""));let D=l(I,s);return s.inline=k,s.list=T,D}),ordered:r,start:c}},render:(i,l,s)=>e(i.ordered?"ol":"ul",{key:s.key,start:i.type==="20"?i.start:void 0},i.items.map(function(c,d){return e("li",{key:d},l(c,s))}))}}var o2=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),a2=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,gd=[Zc,ed,td,rd,od,nd,ad,id,pd,md,fd,yd],i2=[...gd,/^[^\n]+(?: \n|\n{2,})/,xa,Sa];function s2(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function l2(e){return z0.test(e)?"right":V0.test(e)?"center":J0.test(e)?"left":null}function Ac(e,t,r){let n=r.inTable;r.inTable=!0;let o=t(e.trim(),r);r.inTable=n;let a=[[]];return o.forEach(function(i,l){i.type==="26"?l!==0&&l!==o.length-1&&a.push([]):(i.type!=="27"||o[l+1]!=null&&o[l+1].type!=="26"||(i.text=i.text.replace(q0,"")),a[a.length-1].push(i))}),a}function u2(e,t,r){r.inline=!0;let n=Ac(e[1],t,r),o=e[2].replace($0,"").split("|").map(l2),a=function(i,l,s){return i.trim().split(` -`).map(function(c){return Ac(c,l,s)})}(e[3],t,r);return r.inline=!1,{align:o,cells:a,header:n,type:"25"}}function Tc(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function yt(e){return function(t,r){return r.inline?e.exec(t):null}}function gt(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function tt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function xr(e){return function(t){return e.exec(t)}}function c2(e,t,r){if(t.inline||t.simple||r&&!r.endsWith(` +`).map(function(c){return Ac(c,l,s)})}(e[3],t,r);return r.inline=!1,{align:o,cells:a,header:n,type:"25"}}function Tc(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function yt(e){return function(t,r){return r.inline?e.exec(t):null}}function gt(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function tt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Sr(e){return function(t){return e.exec(t)}}function c2(e,t,r){if(t.inline||t.simple||r&&!r.endsWith(` `))return null;let n="";e.split(` `).every(a=>!gd.some(i=>i.test(a))&&(n+=a+` `,a.trim()));let o=n.trimEnd();return o==""?null:[n,o]}function Yt(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function Cc(e){return e.replace(e2,"$1")}function hn(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function d2(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function p2(e,t,r){return r.inline=!1,e(t,r)}var la=(e,t,r)=>({children:hn(t,e[1],r)});function ua(){return{}}function ca(){return null}function f2(...e){return e.filter(Boolean).join(" ")}function da(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function h2(e="",t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||s2,t.namedCodesToUnicode=t.namedCodesToUnicode?_t({},xc,t.namedCodesToUnicode):xc;let r=t.createElement||On;function n(f,b,...g){let x=da(t.overrides,`${f}.props`,{});return r(function(S,A){let k=da(A,S);return k?typeof k=="function"||typeof k=="object"&&"render"in k?k:da(A,`${S}.component`,S):S}(f,t.overrides),_t({},b,x,{className:f2(b?.className,x.className)||void 0}),...g)}function o(f){f=f.replace(T0,"");let b=!1;t.forceInline?b=!0:t.forceBlock||(b=L0.test(f)===!1);let g=d(c(b?f:`${f.trimEnd().replace(Q0,"")} -`,{inline:b}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;let x=t.wrapper||(b?"span":"div"),S;if(g.length>1||t.forceWrapper)S=g;else{if(g.length===1)return S=g[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return On(x,{key:"outer"},S)}function a(f){let b=f.match(f0);return b?b.reduce(function(g,x,S){let A=x.indexOf("=");if(A!==-1){let k=function(F){return F.indexOf("-")!==-1&&F.match(I0)===null&&(F=F.replace(P0,function(P,L){return L.toUpperCase()})),F}(x.slice(0,A)).trim(),T=function(F){let P=F[0];return(P==='"'||P==="'")&&F.length>=2&&F[F.length-1]===P?F.slice(1,-1):F}(x.slice(A+1).trim()),I=vc[k]||k,D=g[I]=function(F,P){return F==="style"?P.split(/;\s?/).reduce(function(L,B){let G=B.slice(0,B.indexOf(":"));return L[G.trim().replace(/(-[a-z])/g,$=>$[1].toUpperCase())]=B.slice(G.length+1).trim(),L},{}):F==="href"||F==="src"?Yt(P):(P.match(O0)&&(P=P.slice(1,P.length-1)),P==="true"||P!=="false"&&P)}(k,T);typeof D=="string"&&(xa.test(D)||Sa.test(D))&&(g[I]=ue(o(D.trim()),{key:S}))}else x!=="style"&&(g[vc[x]||x]=!0);return g},{}):null}let i=[],l={},s={0:{match:tt(Zc),order:1,parse:(f,b,g)=>({children:b(f[0].replace(y0,""),g)}),render:(f,b,g)=>n("blockquote",{key:g.key},b(f.children,g))},1:{match:xr(g0),order:1,parse:ua,render:(f,b,g)=>n("br",{key:g.key})},2:{match:tt(b0),order:1,parse:ua,render:(f,b,g)=>n("hr",{key:g.key})},3:{match:tt(td),order:0,parse:f=>({lang:void 0,text:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(f,b,g)=>n("pre",{key:g.key},n("code",_t({},f.attrs,{className:f.lang?`lang-${f.lang}`:""}),f.text))},4:{match:tt(ed),order:0,parse:f=>({attrs:a(f[3]||""),lang:f[2]||void 0,text:f[4],type:"3"})},5:{match:gt(E0),order:3,parse:f=>({text:f[2]}),render:(f,b,g)=>n("code",{key:g.key},f.text)},6:{match:tt(S0),order:0,parse:f=>(i.push({footnote:f[2],identifier:f[1]}),{}),render:ca},7:{match:yt(w0),order:1,parse:f=>({target:`#${t.slugify(f[1])}`,text:f[1]}),render:(f,b,g)=>n("a",{key:g.key,href:Yt(f.target)},n("sup",{key:g.key},f.text))},8:{match:yt(C0),order:1,parse:f=>({completed:f[1].toLowerCase()==="x"}),render:(f,b,g)=>n("input",{checked:f.completed,key:g.key,readOnly:!0,type:"checkbox"})},9:{match:tt(t.enforceAtxHeadings?nd:rd),order:1,parse:(f,b,g)=>({children:hn(b,f[2],g),id:t.slugify(f[2]),level:f[1].length}),render:(f,b,g)=>n(`h${f.level}`,{id:f.id,key:g.key},b(f.children,g))},10:{match:tt(od),order:0,parse:(f,b,g)=>({children:hn(b,f[1],g),level:f[2]==="="?1:2,type:"9"})},11:{match:xr(xa),order:1,parse(f,b,g){let[,x]=f[3].match(Z0),S=new RegExp(`^${x}`,"gm"),A=f[3].replace(S,""),k=(T=A,i2.some(P=>P.test(T))?p2:hn);var T;let I=f[1].toLowerCase(),D=p0.indexOf(I)!==-1,F={attrs:a(f[2]),noInnerParse:D,tag:(D?I:f[1]).trim()};return g.inAnchor=g.inAnchor||I==="a",D?F.text=f[3]:F.children=k(b,A,g),g.inAnchor=!1,F},render:(f,b,g)=>n(f.tag,_t({key:g.key},f.attrs),f.text||b(f.children,g))},13:{match:xr(Sa),order:1,parse:f=>({attrs:a(f[2]||""),tag:f[1].trim()}),render:(f,b,g)=>n(f.tag,_t({},f.attrs,{key:g.key}))},12:{match:xr(ad),order:1,parse:()=>({}),render:ca},14:{match:gt(a2),order:1,parse:f=>({alt:f[1],target:Cc(f[2]),title:f[3]}),render:(f,b,g)=>n("img",{key:g.key,alt:f.alt||void 0,title:f.title||void 0,src:Yt(f.target)})},15:{match:yt(o2),order:3,parse:(f,b,g)=>({children:d2(b,f[1],g),target:Cc(f[2]),title:f[3]}),render:(f,b,g)=>n("a",{key:g.key,href:Yt(f.target),title:f.title},b(f.children,g))},16:{match:yt(_0),order:0,parse:f=>({children:[{text:f[1],type:"27"}],target:f[1],type:"15"})},17:{match:(f,b)=>b.inAnchor?null:yt(D0)(f,b),order:0,parse:f=>({children:[{text:f[1],type:"27"}],target:f[1],title:void 0,type:"15"})},18:{match:yt(R0),order:0,parse(f){let b=f[1],g=f[1];return h0.test(g)||(g="mailto:"+g),{children:[{text:b.replace("mailto:",""),type:"27"}],target:g,type:"15"}}},20:wc(n,1),33:wc(n,2),19:{match:tt(v0),order:3,parse:ua,render:()=>` -`},21:{match:c2,order:3,parse:la,render:(f,b,g)=>n("p",{key:g.key},b(f.children,g))},22:{match:yt(F0),order:0,parse:f=>(l[f[1]]={target:f[2],title:f[4]},{}),render:ca},23:{match:gt(N0),order:0,parse:f=>({alt:f[1]||void 0,ref:f[2]}),render:(f,b,g)=>l[f.ref]?n("img",{key:g.key,alt:f.alt,src:Yt(l[f.ref].target),title:l[f.ref].title}):null},24:{match:yt(B0),order:0,parse:(f,b,g)=>({children:b(f[1],g),fallbackChildren:b(f[0].replace(j0,"\\$1"),g),ref:f[2]}),render:(f,b,g)=>l[f.ref]?n("a",{key:g.key,href:Yt(l[f.ref].target),title:l[f.ref].title},b(f.children,g)):n("span",{key:g.key},b(f.fallbackChildren,g))},25:{match:tt(id),order:1,parse:u2,render:(f,b,g)=>n("table",{key:g.key},n("thead",null,n("tr",null,f.header.map(function(x,S){return n("th",{key:S,style:Tc(f,S)},b(x,g))}))),n("tbody",null,f.cells.map(function(x,S){return n("tr",{key:S},x.map(function(A,k){return n("td",{key:k,style:Tc(f,k)},b(A,g))}))})))},26:{match:function(f,b){return b.inTable?(b.inline=!0,U0.exec(f)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:xr(X0),order:4,parse:f=>({text:f[0].replace(k0,(b,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:b)}),render:f=>f.text},28:{match:gt(H0),order:2,parse:(f,b,g)=>({children:b(f[2],g)}),render:(f,b,g)=>n("strong",{key:g.key},b(f.children,g))},29:{match:gt(G0),order:3,parse:(f,b,g)=>({children:b(f[2],g)}),render:(f,b,g)=>n("em",{key:g.key},b(f.children,g))},30:{match:gt(Y0),order:1,parse:f=>({text:f[1],type:"27"})},31:{match:gt(W0),order:3,parse:la,render:(f,b,g)=>n("mark",{key:g.key},b(f.children,g))},32:{match:gt(K0),order:3,parse:la,render:(f,b,g)=>n("del",{key:g.key},b(f.children,g))}};t.disableParsingRawHTML===!0&&(delete s[11],delete s[13]);let c=function(f){let b=Object.keys(f);function g(x,S){let A=[],k="";for(;x;){let T=0;for(;TA(g,x,S),g,x,S):A(g,x,S)}}(s,t.renderRule),function f(b,g={}){if(Array.isArray(b)){let x=g.key,S=[],A=!1;for(let k=0;k{let{children:t="",options:r}=e,n=function(o,a){if(o==null)return{};var i,l,s={},c=Object.keys(o);for(l=0;l=0||(s[i]=o[i]);return s}(e,d0);return ue(h2(t,r),n)},y2=R.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:se(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${cn(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${cn(.05,e.appBorderColor)} 0 0 0 2px inset`,color:cn(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${cn(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),g2=e=>e==="true",b2=({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{let i=xe(()=>r(!1),[r]),l=!!a?.table?.readonly;if(t===void 0)return m.createElement(lt,{variant:"outline",size:"medium",id:lr(e),onClick:i,disabled:l},"Set boolean");let s=Fe(e),c=typeof t=="string"?g2(t):t;return m.createElement(y2,{"aria-disabled":l,htmlFor:s,"aria-label":e},m.createElement("input",{id:s,type:"checkbox",onChange:d=>r(d.target.checked),checked:c,role:"switch",disabled:l,name:e,onBlur:n,onFocus:o}),m.createElement("span",{"aria-hidden":"true"},"False"),m.createElement("span",{"aria-hidden":"true"},"True"))},E2=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},v2=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},x2=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},S2=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},kc=R(Ve.Input)(({readOnly:e})=>({opacity:e?.5:1})),w2=R.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),A2=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{let[i,l]=X(!0),s=Re(),c=Re(),d=!!a?.table?.readonly;Se(()=>{i!==!1&&(s&&s.current&&(s.current.value=t?x2(t):""),c&&c.current&&(c.current.value=t?S2(t):""))},[t]);let p=b=>{if(!b.target.value)return r();let g=E2(b.target.value),x=new Date(t);x.setFullYear(g.getFullYear(),g.getMonth(),g.getDate());let S=x.getTime();S&&r(S),l(!!S)},h=b=>{if(!b.target.value)return r();let g=v2(b.target.value),x=new Date(t);x.setHours(g.getHours()),x.setMinutes(g.getMinutes());let S=x.getTime();S&&r(S),l(!!S)},f=Fe(e);return m.createElement(w2,null,m.createElement(kc,{type:"date",max:"9999-12-31",ref:s,id:`${f}-date`,name:`${f}-date`,readOnly:d,onChange:p,onFocus:n,onBlur:o}),m.createElement(kc,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:c,onChange:h,readOnly:d,onFocus:n,onBlur:o}),i?null:m.createElement("div",null,"invalid"))},T2=R.label({display:"flex"}),C2=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},k2=R(Ve.Input)(({readOnly:e})=>({opacity:e?.5:1})),I2=({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:l,argType:s})=>{let[c,d]=X(typeof t=="number"?t:""),[p,h]=X(!1),[f,b]=X(null),g=!!s?.table?.readonly,x=xe(k=>{d(k.target.value);let T=parseFloat(k.target.value);Number.isNaN(T)?b(new Error(`'${k.target.value}' is not a number`)):(r(T),b(null))},[r,b]),S=xe(()=>{d("0"),r(0),h(!0)},[h]),A=Re(null);return Se(()=>{p&&A.current&&A.current.select()},[p]),Se(()=>{c!==(typeof t=="number"?t:"")&&d(t)},[t]),t===void 0?m.createElement(lt,{variant:"outline",size:"medium",id:lr(e),onClick:S,disabled:g},"Set number"):m.createElement(T2,null,m.createElement(k2,{ref:A,id:Fe(e),type:"number",onChange:x,size:"flex",placeholder:"Edit number...",value:c,valid:f?"error":null,autoFocus:p,readOnly:g,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i}))},bd=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},wa=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],Ed=(e,t)=>e&&t&&e.map(r=>t[r]),O2=R.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),D2=R.span({"[aria-readonly=true] &":{opacity:.5}}),R2=R.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Ic=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return qr.warn(`Checkbox with no options: ${e}`),m.createElement(m.Fragment,null,"-");let i=wa(r,t),[l,s]=X(i),c=!!a?.table?.readonly,d=h=>{let f=h.target.value,b=[...l];b.includes(f)?b.splice(b.indexOf(f),1):b.push(f),n(Ed(b,t)),s(b)};Se(()=>{s(wa(r,t))},[r]);let p=Fe(e);return m.createElement(O2,{"aria-readonly":c,isInline:o},Object.keys(t).map((h,f)=>{let b=`${p}-${f}`;return m.createElement(R2,{key:b,htmlFor:b},m.createElement("input",{type:"checkbox",disabled:c,id:b,name:b,value:h,onChange:d,checked:l?.includes(h)}),m.createElement(D2,null,h))}))},_2=R.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),P2=R.span({"[aria-readonly=true] &":{opacity:.5}}),F2=R.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Oc=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return qr.warn(`Radio with no options: ${e}`),m.createElement(m.Fragment,null,"-");let i=bd(r,t),l=Fe(e),s=!!a?.table?.readonly;return m.createElement(_2,{"aria-readonly":s,isInline:o},Object.keys(t).map((c,d)=>{let p=`${l}-${d}`;return m.createElement(F2,{key:p,htmlFor:p},m.createElement("input",{type:"radio",id:p,name:l,disabled:s,value:c,onChange:h=>n(t[h.currentTarget.value]),checked:c===i}),m.createElement(P2,null,c))}))},N2={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},vd=R.select(N2,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),xd=R.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),Dc="Choose option...",B2=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=c=>{n(r[c.currentTarget.value])},i=bd(t,r)||Dc,l=Fe(e),s=!!o?.table?.readonly;return m.createElement(xd,null,m.createElement(eo,null),m.createElement(vd,{disabled:s,id:l,value:i,onChange:a},m.createElement("option",{key:"no-selection",disabled:!0},Dc),Object.keys(r).map(c=>m.createElement("option",{key:c,value:c},c))))},j2=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=c=>{let d=Array.from(c.currentTarget.options).filter(p=>p.selected).map(p=>p.value);n(Ed(d,r))},i=wa(t,r),l=Fe(e),s=!!o?.table?.readonly;return m.createElement(xd,null,m.createElement(vd,{disabled:s,id:l,multiple:!0,value:i,onChange:a},Object.keys(r).map(c=>m.createElement("option",{key:c,value:c},c))))},Rc=e=>{let{name:t,options:r}=e;return r?e.isMulti?m.createElement(j2,{...e}):m.createElement(B2,{...e}):(qr.warn(`Select with no options: ${t}`),m.createElement(m.Fragment,null,"-"))},L2=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,M2={check:Ic,"inline-check":Ic,radio:Oc,"inline-radio":Oc,select:Rc,"multi-select":Rc},Xt=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?L2(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=M2[t];if(a)return m.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},U2="Error",$2="Object",q2="Array",V2="String",J2="Number",z2="Boolean",H2="Date",G2="Null",W2="Undefined",K2="Function",Y2="Symbol",Sd="ADD_DELTA_TYPE",wd="REMOVE_DELTA_TYPE",Ad="UPDATE_DELTA_TYPE",Oa="value",X2="key";function Pt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function Td(e,t){let r=Pt(e),n=Pt(t);return(r==="Function"||n==="Function")&&n!==r}var Da=class extends it{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:a,inputRefValue:i}=this.state,l={};if(!t){if(!a.value)return;l.key=a.value}l.newValue=r(!1,n,o,l.key,i.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:a,deep:i}=this.props,l=ue(r,{onClick:this.onSubmit}),s=ue(n,{onClick:e}),c=o(Oa,a,i),d=ue(c,{placeholder:"Value",ref:this.refInputValue}),p=null;if(!t){let h=o(X2,a,i);p=ue(h,{placeholder:"Key",ref:this.refInputKey})}return m.createElement("span",{className:"rejt-add-value-node"},p,d,s,l)}};Da.defaultProps={onlyValue:!1,addButtonElement:m.createElement("button",null,"+"),cancelButtonElement:m.createElement("button",null,"c")};var Cd=class extends it{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];t(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:wd};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:c}=this.props;s(o[o.length-1],n),c(l)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:o,logger:a}=this.props;o(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],i),s({type:Sd,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(a.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:l}=this.state,s=a[e];o(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:c,onDeltaUpdate:d}=this.props;c(i[i.length-1],a),d({type:Ad,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:a,getStyle:i,dataType:l,minusMenuElement:s}=this.props,{minus:c,collapsed:d}=i(e,t,r,n,l),p=a(e,t,r,n,l),h=ue(s,{onClick:o,className:"rejt-minus-menu",style:c});return m.createElement("span",{className:"rejt-collapsed"},m.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!p&&h)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:c,getStyle:d,dataType:p,addButtonElement:h,cancelButtonElement:f,editButtonElement:b,inputElementGenerator:g,textareaElementGenerator:x,minusMenuElement:S,plusMenuElement:A,beforeRemoveAction:k,beforeAddAction:T,beforeUpdateAction:I,logger:D,onSubmitValueParser:F}=this.props,{minus:P,plus:L,delimiter:B,ul:G,addForm:$}=d(e,t,r,n,p),H=c(e,t,r,n,p),w=ue(A,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:L}),C=ue(S,{onClick:l,className:"rejt-minus-menu",style:P});return m.createElement("span",{className:"rejt-not-collapsed"},m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:B},"["),!o&&w,m.createElement("ul",{className:"rejt-not-collapsed-list",style:G},t.map((_,M)=>m.createElement(xn,{key:M,name:M.toString(),data:_,keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveItem(M),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:c,getStyle:d,addButtonElement:h,cancelButtonElement:f,editButtonElement:b,inputElementGenerator:g,textareaElementGenerator:x,minusMenuElement:S,plusMenuElement:A,beforeRemoveAction:k,beforeAddAction:T,beforeUpdateAction:I,logger:D,onSubmitValueParser:F}))),!H&&o&&m.createElement("div",{className:"rejt-add-form",style:$},m.createElement(Da,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:h,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:F})),m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:B},"]"),!H&&C)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{dataType:a,getStyle:i}=this.props,l=t?this.renderCollapsed():this.renderNotCollapsed(),s=i(e,r,n,o,a);return m.createElement("div",{className:"rejt-array-node"},m.createElement("span",{onClick:this.handleCollapseMode},m.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),l)}};Cd.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var kd=class extends it{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value);e({value:s,key:i}).then(()=>{Td(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:c,editButtonElement:d,cancelButtonElement:p,textareaElementGenerator:h,minusMenuElement:f,keyPath:b}=this.props,g=c(e,i,n,o,s),x=null,S=null,A=l(e,i,n,o,s);if(r&&!A){let k=h(Oa,b,o,e,i,s),T=ue(d,{onClick:this.handleEdit}),I=ue(p,{onClick:this.handleCancelEdit}),D=ue(k,{ref:this.refInput,defaultValue:i});x=m.createElement("span",{className:"rejt-edit-form",style:g.editForm},D," ",I,T),S=null}else{x=m.createElement("span",{className:"rejt-value",style:g.value,onClick:A?null:this.handleEditMode},t);let k=ue(f,{onClick:a,className:"rejt-minus-menu",style:g.minus});S=A?null:k}return m.createElement("li",{className:"rejt-function-value-node",style:g.li},m.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),x,S)}};kd.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:m.createElement("button",null,"e"),cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};var xn=class extends it{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:a,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:c,getStyle:d,addButtonElement:p,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,textareaElementGenerator:g,minusMenuElement:x,plusMenuElement:S,beforeRemoveAction:A,beforeAddAction:k,beforeUpdateAction:T,logger:I,onSubmitValueParser:D}=this.props,F=()=>!0,P=Pt(e);switch(P){case U2:return m.createElement(Aa,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:F,dataType:P,getStyle:d,addButtonElement:p,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,textareaElementGenerator:g,minusMenuElement:x,plusMenuElement:S,beforeRemoveAction:A,beforeAddAction:k,beforeUpdateAction:T,logger:I,onSubmitValueParser:D});case $2:return m.createElement(Aa,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:c,dataType:P,getStyle:d,addButtonElement:p,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,textareaElementGenerator:g,minusMenuElement:x,plusMenuElement:S,beforeRemoveAction:A,beforeAddAction:k,beforeUpdateAction:T,logger:I,onSubmitValueParser:D});case q2:return m.createElement(Cd,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:c,dataType:P,getStyle:d,addButtonElement:p,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,textareaElementGenerator:g,minusMenuElement:x,plusMenuElement:S,beforeRemoveAction:A,beforeAddAction:k,beforeUpdateAction:T,logger:I,onSubmitValueParser:D});case V2:return m.createElement(bt,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case J2:return m.createElement(bt,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case z2:return m.createElement(bt,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case H2:return m.createElement(bt,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:F,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case G2:return m.createElement(bt,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case W2:return m.createElement(bt,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case K2:return m.createElement(kd,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,textareaElementGenerator:g,minusMenuElement:x,logger:I,onSubmitValueParser:D});case Y2:return m.createElement(bt,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:F,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});default:return null}}};xn.defaultProps={keyPath:[],deep:0};var Aa=class extends it{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;a(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:Sd,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];t(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:wd};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:c}=this.props;s(o[o.length-1],n),c(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:l}=this.state,s=a[e];o(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:c,onDeltaUpdate:d}=this.props;c(i[i.length-1],a),d({type:Ad,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:a,dataType:i,getStyle:l,minusMenuElement:s}=this.props,{minus:c,collapsed:d}=l(e,n,t,r,i),p=Object.getOwnPropertyNames(n),h=a(e,n,t,r,i),f=ue(s,{onClick:o,className:"rejt-minus-menu",style:c});return m.createElement("span",{className:"rejt-collapsed"},m.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"{...}"," ",p.length," ",p.length===1?"key":"keys"),!h&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:c,getStyle:d,dataType:p,addButtonElement:h,cancelButtonElement:f,editButtonElement:b,inputElementGenerator:g,textareaElementGenerator:x,minusMenuElement:S,plusMenuElement:A,beforeRemoveAction:k,beforeAddAction:T,beforeUpdateAction:I,logger:D,onSubmitValueParser:F}=this.props,{minus:P,plus:L,addForm:B,ul:G,delimiter:$}=d(e,t,r,n,p),H=Object.getOwnPropertyNames(t),w=c(e,t,r,n,p),C=ue(A,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:L}),_=ue(S,{onClick:l,className:"rejt-minus-menu",style:P}),M=H.map(U=>m.createElement(xn,{key:U,name:U,data:t[U],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(U),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:c,getStyle:d,addButtonElement:h,cancelButtonElement:f,editButtonElement:b,inputElementGenerator:g,textareaElementGenerator:x,minusMenuElement:S,plusMenuElement:A,beforeRemoveAction:k,beforeAddAction:T,beforeUpdateAction:I,logger:D,onSubmitValueParser:F}));return m.createElement("span",{className:"rejt-not-collapsed"},m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"{"),!w&&C,m.createElement("ul",{className:"rejt-not-collapsed-list",style:G},M),!w&&a&&m.createElement("div",{className:"rejt-add-form",style:B},m.createElement(Da,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:h,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:F})),m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"}"),!w&&_)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{getStyle:a,dataType:i}=this.props,l=t?this.renderCollapsed():this.renderNotCollapsed(),s=a(e,r,n,o,i);return m.createElement("div",{className:"rejt-object-node"},m.createElement("span",{onClick:this.handleCollapseMode},m.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),l)}};Aa.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var bt=class extends it{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value);e({value:s,key:i}).then(()=>{Td(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:c,editButtonElement:d,cancelButtonElement:p,inputElementGenerator:h,minusMenuElement:f,keyPath:b}=this.props,g=c(e,i,n,o,s),x=l(e,i,n,o,s),S=r&&!x,A=h(Oa,b,o,e,i,s),k=ue(d,{onClick:this.handleEdit}),T=ue(p,{onClick:this.handleCancelEdit}),I=ue(A,{ref:this.refInput,defaultValue:JSON.stringify(i)}),D=ue(f,{onClick:a,className:"rejt-minus-menu",style:g.minus});return m.createElement("li",{className:"rejt-value-node",style:g.li},m.createElement("span",{className:"rejt-name",style:g.name},e," : "),S?m.createElement("span",{className:"rejt-edit-form",style:g.editForm},I," ",T,k):m.createElement("span",{className:"rejt-value",style:g.value,onClick:x?null:this.handleEditMode},String(t)),!x&&!S&&D)}};bt.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:m.createElement("button",null,"e"),cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};function Q2(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var Z2={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},eb={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},tb={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},Id=class extends it{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:a,addButtonElement:i,cancelButtonElement:l,editButtonElement:s,inputElement:c,textareaElement:d,minusMenuElement:p,plusMenuElement:h,beforeRemoveAction:f,beforeAddAction:b,beforeUpdateAction:g,logger:x,onSubmitValueParser:S,fallback:A=null}=this.props,k=Pt(e),T=o;Pt(o)==="Boolean"&&(T=()=>o);let I=c;c&&Pt(c)!=="Function"&&(I=()=>c);let D=d;return d&&Pt(d)!=="Function"&&(D=()=>d),k==="Object"||k==="Array"?m.createElement("div",{className:"rejt-tree"},m.createElement(xn,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:T,getStyle:a,addButtonElement:i,cancelButtonElement:l,editButtonElement:s,inputElementGenerator:I,textareaElementGenerator:D,minusMenuElement:p,plusMenuElement:h,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:b,beforeUpdateAction:g,logger:x,onSubmitValueParser:S})):A}};Id.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,o)=>{switch(o){case"Object":case"Error":return Z2;case"Array":return eb;default:return tb}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>Q2(o),inputElement:()=>m.createElement("input",null),textareaElement:()=>m.createElement("textarea",null),fallback:null};var{window:rb}=globalThis,nb=R.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),pa=R.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),ob=R(Zn)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),ab=R(Ui)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),_c=R.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),ib=R(ze)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),sb=R(Ve.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),lb={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},ub=e=>{e.currentTarget.dispatchEvent(new rb.KeyboardEvent("keydown",lb))},cb=e=>{e.currentTarget.select()},db=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),Pc=({name:e,value:t,onChange:r,argType:n})=>{let o=Xn(),a=st(()=>t&&Ka(t),[t]),i=a!=null,[l,s]=X(!i),[c,d]=X(null),p=!!n?.table?.readonly,h=xe(k=>{try{k&&r(JSON.parse(k)),d(void 0)}catch(T){d(T)}},[r]),[f,b]=X(!1),g=xe(()=>{r({}),b(!0)},[b]),x=Re(null);if(Se(()=>{f&&x.current&&x.current.select()},[f]),!i)return m.createElement(lt,{disabled:p,id:lr(e),onClick:g},"Set object");let S=m.createElement(sb,{ref:x,id:Fe(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:k=>h(k.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:c?"error":null,readOnly:p}),A=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return m.createElement(nb,{"aria-readonly":p},A&&m.createElement(ib,{onClick:k=>{k.preventDefault(),s(T=>!T)}},l?m.createElement(Bi,null):m.createElement(ji,null),m.createElement("span",null,"RAW")),l?S:m.createElement(Id,{readOnly:p||!A,isCollapsed:A?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:db(o),cancelButtonElement:m.createElement(pa,{type:"button"},"Cancel"),editButtonElement:m.createElement(pa,{type:"submit"},"Save"),addButtonElement:m.createElement(pa,{type:"submit",primary:!0},"Save"),plusMenuElement:m.createElement(ob,null),minusMenuElement:m.createElement(ab,null),inputElement:(k,T,I,D)=>D?m.createElement(_c,{onFocus:cb,onBlur:ub}):m.createElement(_c,null),fallback:S}))},pb=R.input(({theme:e,min:t,max:r,value:n,disabled:o})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, +`,{inline:b}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;let x=t.wrapper||(b?"span":"div"),S;if(g.length>1||t.forceWrapper)S=g;else{if(g.length===1)return S=g[0],typeof S=="string"?n("span",{key:"outer"},S):S;S=null}return On(x,{key:"outer"},S)}function a(f){let b=f.match(f0);return b?b.reduce(function(g,x,S){let A=x.indexOf("=");if(A!==-1){let k=function(F){return F.indexOf("-")!==-1&&F.match(I0)===null&&(F=F.replace(P0,function(P,L){return L.toUpperCase()})),F}(x.slice(0,A)).trim(),T=function(F){let P=F[0];return(P==='"'||P==="'")&&F.length>=2&&F[F.length-1]===P?F.slice(1,-1):F}(x.slice(A+1).trim()),I=vc[k]||k,D=g[I]=function(F,P){return F==="style"?P.split(/;\s?/).reduce(function(L,B){let G=B.slice(0,B.indexOf(":"));return L[G.trim().replace(/(-[a-z])/g,$=>$[1].toUpperCase())]=B.slice(G.length+1).trim(),L},{}):F==="href"||F==="src"?Yt(P):(P.match(O0)&&(P=P.slice(1,P.length-1)),P==="true"||P!=="false"&&P)}(k,T);typeof D=="string"&&(xa.test(D)||Sa.test(D))&&(g[I]=ue(o(D.trim()),{key:S}))}else x!=="style"&&(g[vc[x]||x]=!0);return g},{}):null}let i=[],l={},s={0:{match:tt(Zc),order:1,parse:(f,b,g)=>({children:b(f[0].replace(y0,""),g)}),render:(f,b,g)=>n("blockquote",{key:g.key},b(f.children,g))},1:{match:Sr(g0),order:1,parse:ua,render:(f,b,g)=>n("br",{key:g.key})},2:{match:tt(b0),order:1,parse:ua,render:(f,b,g)=>n("hr",{key:g.key})},3:{match:tt(td),order:0,parse:f=>({lang:void 0,text:f[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(f,b,g)=>n("pre",{key:g.key},n("code",_t({},f.attrs,{className:f.lang?`lang-${f.lang}`:""}),f.text))},4:{match:tt(ed),order:0,parse:f=>({attrs:a(f[3]||""),lang:f[2]||void 0,text:f[4],type:"3"})},5:{match:gt(E0),order:3,parse:f=>({text:f[2]}),render:(f,b,g)=>n("code",{key:g.key},f.text)},6:{match:tt(S0),order:0,parse:f=>(i.push({footnote:f[2],identifier:f[1]}),{}),render:ca},7:{match:yt(w0),order:1,parse:f=>({target:`#${t.slugify(f[1])}`,text:f[1]}),render:(f,b,g)=>n("a",{key:g.key,href:Yt(f.target)},n("sup",{key:g.key},f.text))},8:{match:yt(C0),order:1,parse:f=>({completed:f[1].toLowerCase()==="x"}),render:(f,b,g)=>n("input",{checked:f.completed,key:g.key,readOnly:!0,type:"checkbox"})},9:{match:tt(t.enforceAtxHeadings?nd:rd),order:1,parse:(f,b,g)=>({children:hn(b,f[2],g),id:t.slugify(f[2]),level:f[1].length}),render:(f,b,g)=>n(`h${f.level}`,{id:f.id,key:g.key},b(f.children,g))},10:{match:tt(od),order:0,parse:(f,b,g)=>({children:hn(b,f[1],g),level:f[2]==="="?1:2,type:"9"})},11:{match:Sr(xa),order:1,parse(f,b,g){let[,x]=f[3].match(Z0),S=new RegExp(`^${x}`,"gm"),A=f[3].replace(S,""),k=(T=A,i2.some(P=>P.test(T))?p2:hn);var T;let I=f[1].toLowerCase(),D=p0.indexOf(I)!==-1,F={attrs:a(f[2]),noInnerParse:D,tag:(D?I:f[1]).trim()};return g.inAnchor=g.inAnchor||I==="a",D?F.text=f[3]:F.children=k(b,A,g),g.inAnchor=!1,F},render:(f,b,g)=>n(f.tag,_t({key:g.key},f.attrs),f.text||b(f.children,g))},13:{match:Sr(Sa),order:1,parse:f=>({attrs:a(f[2]||""),tag:f[1].trim()}),render:(f,b,g)=>n(f.tag,_t({},f.attrs,{key:g.key}))},12:{match:Sr(ad),order:1,parse:()=>({}),render:ca},14:{match:gt(a2),order:1,parse:f=>({alt:f[1],target:Cc(f[2]),title:f[3]}),render:(f,b,g)=>n("img",{key:g.key,alt:f.alt||void 0,title:f.title||void 0,src:Yt(f.target)})},15:{match:yt(o2),order:3,parse:(f,b,g)=>({children:d2(b,f[1],g),target:Cc(f[2]),title:f[3]}),render:(f,b,g)=>n("a",{key:g.key,href:Yt(f.target),title:f.title},b(f.children,g))},16:{match:yt(_0),order:0,parse:f=>({children:[{text:f[1],type:"27"}],target:f[1],type:"15"})},17:{match:(f,b)=>b.inAnchor?null:yt(D0)(f,b),order:0,parse:f=>({children:[{text:f[1],type:"27"}],target:f[1],title:void 0,type:"15"})},18:{match:yt(R0),order:0,parse(f){let b=f[1],g=f[1];return h0.test(g)||(g="mailto:"+g),{children:[{text:b.replace("mailto:",""),type:"27"}],target:g,type:"15"}}},20:wc(n,1),33:wc(n,2),19:{match:tt(v0),order:3,parse:ua,render:()=>` +`},21:{match:c2,order:3,parse:la,render:(f,b,g)=>n("p",{key:g.key},b(f.children,g))},22:{match:yt(F0),order:0,parse:f=>(l[f[1]]={target:f[2],title:f[4]},{}),render:ca},23:{match:gt(N0),order:0,parse:f=>({alt:f[1]||void 0,ref:f[2]}),render:(f,b,g)=>l[f.ref]?n("img",{key:g.key,alt:f.alt,src:Yt(l[f.ref].target),title:l[f.ref].title}):null},24:{match:yt(B0),order:0,parse:(f,b,g)=>({children:b(f[1],g),fallbackChildren:b(f[0].replace(j0,"\\$1"),g),ref:f[2]}),render:(f,b,g)=>l[f.ref]?n("a",{key:g.key,href:Yt(l[f.ref].target),title:l[f.ref].title},b(f.children,g)):n("span",{key:g.key},b(f.fallbackChildren,g))},25:{match:tt(id),order:1,parse:u2,render:(f,b,g)=>n("table",{key:g.key},n("thead",null,n("tr",null,f.header.map(function(x,S){return n("th",{key:S,style:Tc(f,S)},b(x,g))}))),n("tbody",null,f.cells.map(function(x,S){return n("tr",{key:S},x.map(function(A,k){return n("td",{key:k,style:Tc(f,k)},b(A,g))}))})))},26:{match:function(f,b){return b.inTable?(b.inline=!0,U0.exec(f)):null},order:1,parse:function(){return{type:"26"}},render:()=>" | "},27:{match:Sr(X0),order:4,parse:f=>({text:f[0].replace(k0,(b,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:b)}),render:f=>f.text},28:{match:gt(H0),order:2,parse:(f,b,g)=>({children:b(f[2],g)}),render:(f,b,g)=>n("strong",{key:g.key},b(f.children,g))},29:{match:gt(G0),order:3,parse:(f,b,g)=>({children:b(f[2],g)}),render:(f,b,g)=>n("em",{key:g.key},b(f.children,g))},30:{match:gt(Y0),order:1,parse:f=>({text:f[1],type:"27"})},31:{match:gt(W0),order:3,parse:la,render:(f,b,g)=>n("mark",{key:g.key},b(f.children,g))},32:{match:gt(K0),order:3,parse:la,render:(f,b,g)=>n("del",{key:g.key},b(f.children,g))}};t.disableParsingRawHTML===!0&&(delete s[11],delete s[13]);let c=function(f){let b=Object.keys(f);function g(x,S){let A=[],k="";for(;x;){let T=0;for(;TA(g,x,S),g,x,S):A(g,x,S)}}(s,t.renderRule),function f(b,g={}){if(Array.isArray(b)){let x=g.key,S=[],A=!1;for(let k=0;k{let{children:t="",options:r}=e,n=function(o,a){if(o==null)return{};var i,l,s={},c=Object.keys(o);for(l=0;l=0||(s[i]=o[i]);return s}(e,d0);return ue(h2(t,r),n)},y2=R.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:se(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${cn(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${cn(.05,e.appBorderColor)} 0 0 0 2px inset`,color:cn(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${cn(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px"}})),g2=e=>e==="true",b2=({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{let i=xe(()=>r(!1),[r]),l=!!a?.table?.readonly;if(t===void 0)return m.createElement(lt,{variant:"outline",size:"medium",id:lr(e),onClick:i,disabled:l},"Set boolean");let s=Fe(e),c=typeof t=="string"?g2(t):t;return m.createElement(y2,{"aria-disabled":l,htmlFor:s,"aria-label":e},m.createElement("input",{id:s,type:"checkbox",onChange:d=>r(d.target.checked),checked:c,role:"switch",disabled:l,name:e,onBlur:n,onFocus:o}),m.createElement("span",{"aria-hidden":"true"},"False"),m.createElement("span",{"aria-hidden":"true"},"True"))},E2=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},v2=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},x2=e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},S2=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},kc=R(Ve.Input)(({readOnly:e})=>({opacity:e?.5:1})),w2=R.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),A2=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{let[i,l]=X(!0),s=Re(),c=Re(),d=!!a?.table?.readonly;Se(()=>{i!==!1&&(s&&s.current&&(s.current.value=t?x2(t):""),c&&c.current&&(c.current.value=t?S2(t):""))},[t]);let p=b=>{if(!b.target.value)return r();let g=E2(b.target.value),x=new Date(t);x.setFullYear(g.getFullYear(),g.getMonth(),g.getDate());let S=x.getTime();S&&r(S),l(!!S)},h=b=>{if(!b.target.value)return r();let g=v2(b.target.value),x=new Date(t);x.setHours(g.getHours()),x.setMinutes(g.getMinutes());let S=x.getTime();S&&r(S),l(!!S)},f=Fe(e);return m.createElement(w2,null,m.createElement(kc,{type:"date",max:"9999-12-31",ref:s,id:`${f}-date`,name:`${f}-date`,readOnly:d,onChange:p,onFocus:n,onBlur:o}),m.createElement(kc,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:c,onChange:h,readOnly:d,onFocus:n,onBlur:o}),i?null:m.createElement("div",null,"invalid"))},T2=R.label({display:"flex"}),C2=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},k2=R(Ve.Input)(({readOnly:e})=>({opacity:e?.5:1})),I2=({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:l,argType:s})=>{let[c,d]=X(typeof t=="number"?t:""),[p,h]=X(!1),[f,b]=X(null),g=!!s?.table?.readonly,x=xe(k=>{d(k.target.value);let T=parseFloat(k.target.value);Number.isNaN(T)?b(new Error(`'${k.target.value}' is not a number`)):(r(T),b(null))},[r,b]),S=xe(()=>{d("0"),r(0),h(!0)},[h]),A=Re(null);return Se(()=>{p&&A.current&&A.current.select()},[p]),Se(()=>{c!==(typeof t=="number"?t:"")&&d(t)},[t]),t===void 0?m.createElement(lt,{variant:"outline",size:"medium",id:lr(e),onClick:S,disabled:g},"Set number"):m.createElement(T2,null,m.createElement(k2,{ref:A,id:Fe(e),type:"number",onChange:x,size:"flex",placeholder:"Edit number...",value:c,valid:f?"error":null,autoFocus:p,readOnly:g,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i}))},bd=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},wa=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],Ed=(e,t)=>e&&t&&e.map(r=>t[r]),O2=R.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),D2=R.span({"[aria-readonly=true] &":{opacity:.5}}),R2=R.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Ic=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return Vr.warn(`Checkbox with no options: ${e}`),m.createElement(m.Fragment,null,"-");let i=wa(r,t),[l,s]=X(i),c=!!a?.table?.readonly,d=h=>{let f=h.target.value,b=[...l];b.includes(f)?b.splice(b.indexOf(f),1):b.push(f),n(Ed(b,t)),s(b)};Se(()=>{s(wa(r,t))},[r]);let p=Fe(e);return m.createElement(O2,{"aria-readonly":c,isInline:o},Object.keys(t).map((h,f)=>{let b=`${p}-${f}`;return m.createElement(R2,{key:b,htmlFor:b},m.createElement("input",{type:"checkbox",disabled:c,id:b,name:b,value:h,onChange:d,checked:l?.includes(h)}),m.createElement(D2,null,h))}))},_2=R.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),P2=R.span({"[aria-readonly=true] &":{opacity:.5}}),F2=R.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Oc=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return Vr.warn(`Radio with no options: ${e}`),m.createElement(m.Fragment,null,"-");let i=bd(r,t),l=Fe(e),s=!!a?.table?.readonly;return m.createElement(_2,{"aria-readonly":s,isInline:o},Object.keys(t).map((c,d)=>{let p=`${l}-${d}`;return m.createElement(F2,{key:p,htmlFor:p},m.createElement("input",{type:"radio",id:p,name:l,disabled:s,value:c,onChange:h=>n(t[h.currentTarget.value]),checked:c===i}),m.createElement(P2,null,c))}))},N2={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},vd=R.select(N2,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),xd=R.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),Dc="Choose option...",B2=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=c=>{n(r[c.currentTarget.value])},i=bd(t,r)||Dc,l=Fe(e),s=!!o?.table?.readonly;return m.createElement(xd,null,m.createElement(eo,null),m.createElement(vd,{disabled:s,id:l,value:i,onChange:a},m.createElement("option",{key:"no-selection",disabled:!0},Dc),Object.keys(r).map(c=>m.createElement("option",{key:c,value:c},c))))},j2=({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=c=>{let d=Array.from(c.currentTarget.options).filter(p=>p.selected).map(p=>p.value);n(Ed(d,r))},i=wa(t,r),l=Fe(e),s=!!o?.table?.readonly;return m.createElement(xd,null,m.createElement(vd,{disabled:s,id:l,multiple:!0,value:i,onChange:a},Object.keys(r).map(c=>m.createElement("option",{key:c,value:c},c))))},Rc=e=>{let{name:t,options:r}=e;return r?e.isMulti?m.createElement(j2,{...e}):m.createElement(B2,{...e}):(Vr.warn(`Select with no options: ${t}`),m.createElement(m.Fragment,null,"-"))},L2=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,M2={check:Ic,"inline-check":Ic,radio:Oc,"inline-radio":Oc,select:Rc,"multi-select":Rc},Xt=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?L2(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=M2[t];if(a)return m.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},U2="Error",$2="Object",q2="Array",V2="String",J2="Number",z2="Boolean",H2="Date",G2="Null",W2="Undefined",K2="Function",Y2="Symbol",Sd="ADD_DELTA_TYPE",wd="REMOVE_DELTA_TYPE",Ad="UPDATE_DELTA_TYPE",Oa="value",X2="key";function Pt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function Td(e,t){let r=Pt(e),n=Pt(t);return(r==="Function"||n==="Function")&&n!==r}var Da=class extends it{constructor(e){super(e),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus(),document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.props.handleCancel()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:a,inputRefValue:i}=this.state,l={};if(!t){if(!a.value)return;l.key=a.value}l.newValue=r(!1,n,o,l.key,i.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:a,deep:i}=this.props,l=ue(r,{onClick:this.onSubmit}),s=ue(n,{onClick:e}),c=o(Oa,a,i),d=ue(c,{placeholder:"Value",ref:this.refInputValue}),p=null;if(!t){let h=o(X2,a,i);p=ue(h,{placeholder:"Key",ref:this.refInputKey})}return m.createElement("span",{className:"rejt-add-value-node"},p,d,s,l)}};Da.defaultProps={onlyValue:!1,addButtonElement:m.createElement("button",null,"+"),cancelButtonElement:m.createElement("button",null,"c")};var Cd=class extends it{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={data:e.data,name:e.name,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];t(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:wd};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:c}=this.props;s(o[o.length-1],n),c(l)}).catch(r.error)}}handleAddValueAdd({newValue:e}){let{data:t,keyPath:r,nextDeep:n}=this.state,{beforeAddAction:o,logger:a}=this.props;o(t.length,r,n,e).then(()=>{let i=[...t,e];this.setState({data:i}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(r[r.length-1],i),s({type:Sd,keyPath:r,deep:n,key:i.length-1,newValue:e})}).catch(a.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:l}=this.state,s=a[e];o(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:c,onDeltaUpdate:d}=this.props;c(i[i.length-1],a),d({type:Ad,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:a,getStyle:i,dataType:l,minusMenuElement:s}=this.props,{minus:c,collapsed:d}=i(e,t,r,n,l),p=a(e,t,r,n,l),h=ue(s,{onClick:o,className:"rejt-minus-menu",style:c});return m.createElement("span",{className:"rejt-collapsed"},m.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"[...] ",t.length," ",t.length===1?"item":"items"),!p&&h)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:c,getStyle:d,dataType:p,addButtonElement:h,cancelButtonElement:f,editButtonElement:b,inputElementGenerator:g,textareaElementGenerator:x,minusMenuElement:S,plusMenuElement:A,beforeRemoveAction:k,beforeAddAction:T,beforeUpdateAction:I,logger:D,onSubmitValueParser:F}=this.props,{minus:P,plus:L,delimiter:B,ul:G,addForm:$}=d(e,t,r,n,p),H=c(e,t,r,n,p),w=ue(A,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:L}),C=ue(S,{onClick:l,className:"rejt-minus-menu",style:P});return m.createElement("span",{className:"rejt-not-collapsed"},m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:B},"["),!o&&w,m.createElement("ul",{className:"rejt-not-collapsed-list",style:G},t.map((_,M)=>m.createElement(xn,{key:M,name:M.toString(),data:_,keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveItem(M),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:c,getStyle:d,addButtonElement:h,cancelButtonElement:f,editButtonElement:b,inputElementGenerator:g,textareaElementGenerator:x,minusMenuElement:S,plusMenuElement:A,beforeRemoveAction:k,beforeAddAction:T,beforeUpdateAction:I,logger:D,onSubmitValueParser:F}))),!H&&o&&m.createElement("div",{className:"rejt-add-form",style:$},m.createElement(Da,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:h,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:F})),m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:B},"]"),!H&&C)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{dataType:a,getStyle:i}=this.props,l=t?this.renderCollapsed():this.renderNotCollapsed(),s=i(e,r,n,o,a);return m.createElement("div",{className:"rejt-array-node"},m.createElement("span",{onClick:this.handleCollapseMode},m.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),l)}};Cd.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var kd=class extends it{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value);e({value:s,key:i}).then(()=>{Td(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:c,editButtonElement:d,cancelButtonElement:p,textareaElementGenerator:h,minusMenuElement:f,keyPath:b}=this.props,g=c(e,i,n,o,s),x=null,S=null,A=l(e,i,n,o,s);if(r&&!A){let k=h(Oa,b,o,e,i,s),T=ue(d,{onClick:this.handleEdit}),I=ue(p,{onClick:this.handleCancelEdit}),D=ue(k,{ref:this.refInput,defaultValue:i});x=m.createElement("span",{className:"rejt-edit-form",style:g.editForm},D," ",I,T),S=null}else{x=m.createElement("span",{className:"rejt-value",style:g.value,onClick:A?null:this.handleEditMode},t);let k=ue(f,{onClick:a,className:"rejt-minus-menu",style:g.minus});S=A?null:k}return m.createElement("li",{className:"rejt-function-value-node",style:g.li},m.createElement("span",{className:"rejt-name",style:g.name},e," :"," "),x,S)}};kd.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},editButtonElement:m.createElement("button",null,"e"),cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};var xn=class extends it{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath,deep:e.deep}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:a,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:c,getStyle:d,addButtonElement:p,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,textareaElementGenerator:g,minusMenuElement:x,plusMenuElement:S,beforeRemoveAction:A,beforeAddAction:k,beforeUpdateAction:T,logger:I,onSubmitValueParser:D}=this.props,F=()=>!0,P=Pt(e);switch(P){case U2:return m.createElement(Aa,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:F,dataType:P,getStyle:d,addButtonElement:p,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,textareaElementGenerator:g,minusMenuElement:x,plusMenuElement:S,beforeRemoveAction:A,beforeAddAction:k,beforeUpdateAction:T,logger:I,onSubmitValueParser:D});case $2:return m.createElement(Aa,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:c,dataType:P,getStyle:d,addButtonElement:p,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,textareaElementGenerator:g,minusMenuElement:x,plusMenuElement:S,beforeRemoveAction:A,beforeAddAction:k,beforeUpdateAction:T,logger:I,onSubmitValueParser:D});case q2:return m.createElement(Cd,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:c,dataType:P,getStyle:d,addButtonElement:p,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,textareaElementGenerator:g,minusMenuElement:x,plusMenuElement:S,beforeRemoveAction:A,beforeAddAction:k,beforeUpdateAction:T,logger:I,onSubmitValueParser:D});case V2:return m.createElement(bt,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case J2:return m.createElement(bt,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case z2:return m.createElement(bt,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case H2:return m.createElement(bt,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:F,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case G2:return m.createElement(bt,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case W2:return m.createElement(bt,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});case K2:return m.createElement(kd,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:c,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,textareaElementGenerator:g,minusMenuElement:x,logger:I,onSubmitValueParser:D});case Y2:return m.createElement(bt,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:F,dataType:P,getStyle:d,cancelButtonElement:h,editButtonElement:f,inputElementGenerator:b,minusMenuElement:x,logger:I,onSubmitValueParser:D});default:return null}}};xn.defaultProps={keyPath:[],deep:0};var Aa=class extends it{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath,e.name];this.state={name:e.name,data:e.data,keyPath:t,deep:e.deep,nextDeep:e.deep+1,collapsed:e.isCollapsed(t,e.deep,e.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n,nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;a(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:Sd,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];t(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:wd};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:c}=this.props;s(o[o.length-1],n),c(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:l}=this.state,s=a[e];o(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:c,onDeltaUpdate:d}=this.props;c(i[i.length-1],a),d({type:Ad,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:a,dataType:i,getStyle:l,minusMenuElement:s}=this.props,{minus:c,collapsed:d}=l(e,n,t,r,i),p=Object.getOwnPropertyNames(n),h=a(e,n,t,r,i),f=ue(s,{onClick:o,className:"rejt-minus-menu",style:c});return m.createElement("span",{className:"rejt-collapsed"},m.createElement("span",{className:"rejt-collapsed-text",style:d,onClick:this.handleCollapseMode},"{...}"," ",p.length," ",p.length===1?"key":"keys"),!h&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:c,getStyle:d,dataType:p,addButtonElement:h,cancelButtonElement:f,editButtonElement:b,inputElementGenerator:g,textareaElementGenerator:x,minusMenuElement:S,plusMenuElement:A,beforeRemoveAction:k,beforeAddAction:T,beforeUpdateAction:I,logger:D,onSubmitValueParser:F}=this.props,{minus:P,plus:L,addForm:B,ul:G,delimiter:$}=d(e,t,r,n,p),H=Object.getOwnPropertyNames(t),w=c(e,t,r,n,p),C=ue(A,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:L}),_=ue(S,{onClick:l,className:"rejt-minus-menu",style:P}),M=H.map(U=>m.createElement(xn,{key:U,name:U,data:t[U],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(U),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:c,getStyle:d,addButtonElement:h,cancelButtonElement:f,editButtonElement:b,inputElementGenerator:g,textareaElementGenerator:x,minusMenuElement:S,plusMenuElement:A,beforeRemoveAction:k,beforeAddAction:T,beforeUpdateAction:I,logger:D,onSubmitValueParser:F}));return m.createElement("span",{className:"rejt-not-collapsed"},m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"{"),!w&&C,m.createElement("ul",{className:"rejt-not-collapsed-list",style:G},M),!w&&a&&m.createElement("div",{className:"rejt-add-form",style:B},m.createElement(Da,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:h,cancelButtonElement:f,inputElementGenerator:g,keyPath:r,deep:n,onSubmitValueParser:F})),m.createElement("span",{className:"rejt-not-collapsed-delimiter",style:$},"}"),!w&&_)}render(){let{name:e,collapsed:t,data:r,keyPath:n,deep:o}=this.state,{getStyle:a,dataType:i}=this.props,l=t?this.renderCollapsed():this.renderNotCollapsed(),s=a(e,r,n,o,i);return m.createElement("div",{className:"rejt-object-node"},m.createElement("span",{onClick:this.handleCollapseMode},m.createElement("span",{className:"rejt-name",style:s.name},e," :"," ")),l)}};Aa.defaultProps={keyPath:[],deep:0,minusMenuElement:m.createElement("span",null," - "),plusMenuElement:m.createElement("span",null," + ")};var bt=class extends it{constructor(e){super(e);let t=[...e.keyPath,e.name];this.state={value:e.value,name:e.name,keyPath:t,deep:e.deep,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}componentDidMount(){document.addEventListener("keydown",this.onKeydown)}componentWillUnmount(){document.removeEventListener("keydown",this.onKeydown)}onKeydown(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value);e({value:s,key:i}).then(()=>{Td(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:c,editButtonElement:d,cancelButtonElement:p,inputElementGenerator:h,minusMenuElement:f,keyPath:b}=this.props,g=c(e,i,n,o,s),x=l(e,i,n,o,s),S=r&&!x,A=h(Oa,b,o,e,i,s),k=ue(d,{onClick:this.handleEdit}),T=ue(p,{onClick:this.handleCancelEdit}),I=ue(A,{ref:this.refInput,defaultValue:JSON.stringify(i)}),D=ue(f,{onClick:a,className:"rejt-minus-menu",style:g.minus});return m.createElement("li",{className:"rejt-value-node",style:g.li},m.createElement("span",{className:"rejt-name",style:g.name},e," : "),S?m.createElement("span",{className:"rejt-edit-form",style:g.editForm},I," ",T,k):m.createElement("span",{className:"rejt-value",style:g.value,onClick:x?null:this.handleEditMode},String(t)),!x&&!S&&D)}};bt.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),editButtonElement:m.createElement("button",null,"e"),cancelButtonElement:m.createElement("button",null,"c"),minusMenuElement:m.createElement("span",null," - ")};function Q2(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var Z2={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},eb={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},tb={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},Id=class extends it{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){this.setState({data:t}),this.props.onFullyUpdate(t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:a,addButtonElement:i,cancelButtonElement:l,editButtonElement:s,inputElement:c,textareaElement:d,minusMenuElement:p,plusMenuElement:h,beforeRemoveAction:f,beforeAddAction:b,beforeUpdateAction:g,logger:x,onSubmitValueParser:S,fallback:A=null}=this.props,k=Pt(e),T=o;Pt(o)==="Boolean"&&(T=()=>o);let I=c;c&&Pt(c)!=="Function"&&(I=()=>c);let D=d;return d&&Pt(d)!=="Function"&&(D=()=>d),k==="Object"||k==="Array"?m.createElement("div",{className:"rejt-tree"},m.createElement(xn,{data:e,name:t,deep:-1,isCollapsed:r,onUpdate:this.onUpdate,onDeltaUpdate:n,readOnly:T,getStyle:a,addButtonElement:i,cancelButtonElement:l,editButtonElement:s,inputElementGenerator:I,textareaElementGenerator:D,minusMenuElement:p,plusMenuElement:h,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:b,beforeUpdateAction:g,logger:x,onSubmitValueParser:S})):A}};Id.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,o)=>{switch(o){case"Object":case"Error":return Z2;case"Array":return eb;default:return tb}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>Q2(o),inputElement:()=>m.createElement("input",null),textareaElement:()=>m.createElement("textarea",null),fallback:null};var{window:rb}=globalThis,nb=R.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px"},".rejt-value-node, .rejt-object-node > .rejt-collapsed, .rejt-array-node > .rejt-collapsed, .rejt-object-node > .rejt-not-collapsed, .rejt-array-node > .rejt-not-collapsed":{"& > svg":{opacity:0,transition:"opacity 0.2s"}},".rejt-value-node:hover, .rejt-object-node:hover > .rejt-collapsed, .rejt-array-node:hover > .rejt-collapsed, .rejt-object-node:hover > .rejt-not-collapsed, .rejt-array-node:hover > .rejt-not-collapsed":{"& > svg":{opacity:1}},".rejt-edit-form button":{display:"none"},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-plus-menu":{marginLeft:5},".rejt-object-node > span > *, .rejt-array-node > span > *":{position:"relative",zIndex:2},".rejt-object-node, .rejt-array-node":{position:"relative"},".rejt-object-node > span:first-of-type::after, .rejt-array-node > span:first-of-type::after, .rejt-collapsed::before, .rejt-not-collapsed::before":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",padding:"0 4px 0 1rem",height:22},".rejt-collapsed::before, .rejt-not-collapsed::before":{zIndex:1,background:"transparent",borderRadius:4,transition:"background 0.2s",pointerEvents:"none",opacity:.1},".rejt-object-node:hover, .rejt-array-node:hover":{"& > .rejt-collapsed::before, & > .rejt-not-collapsed::before":{background:e.color.secondary}},".rejt-collapsed::after, .rejt-not-collapsed::after":{content:'""',position:"absolute",display:"inline-block",pointerEvents:"none",width:0,height:0},".rejt-collapsed::after":{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"},".rejt-not-collapsed::after":{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),pa=R.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer",order:t?"initial":9})),ob=R(Zn)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.ancillary},"svg + &":{marginLeft:0}})),ab=R(Ui)(({theme:e,disabled:t})=>({display:"inline-block",verticalAlign:"middle",width:15,height:15,padding:3,marginLeft:5,cursor:t?"not-allowed":"pointer",color:e.textMutedColor,"&:hover":t?{}:{color:e.color.negative},"svg + &":{marginLeft:0}})),_c=R.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),ib=R(ze)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),sb=R(Ve.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),lb={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},ub=e=>{e.currentTarget.dispatchEvent(new rb.KeyboardEvent("keydown",lb))},cb=e=>{e.currentTarget.select()},db=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),Pc=({name:e,value:t,onChange:r,argType:n})=>{let o=Xn(),a=st(()=>t&&Ka(t),[t]),i=a!=null,[l,s]=X(!i),[c,d]=X(null),p=!!n?.table?.readonly,h=xe(k=>{try{k&&r(JSON.parse(k)),d(void 0)}catch(T){d(T)}},[r]),[f,b]=X(!1),g=xe(()=>{r({}),b(!0)},[b]),x=Re(null);if(Se(()=>{f&&x.current&&x.current.select()},[f]),!i)return m.createElement(lt,{disabled:p,id:lr(e),onClick:g},"Set object");let S=m.createElement(sb,{ref:x,id:Fe(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:k=>h(k.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:c?"error":null,readOnly:p}),A=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return m.createElement(nb,{"aria-readonly":p},A&&m.createElement(ib,{onClick:k=>{k.preventDefault(),s(T=>!T)}},l?m.createElement(Bi,null):m.createElement(ji,null),m.createElement("span",null,"RAW")),l?S:m.createElement(Id,{readOnly:p||!A,isCollapsed:A?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:db(o),cancelButtonElement:m.createElement(pa,{type:"button"},"Cancel"),editButtonElement:m.createElement(pa,{type:"submit"},"Save"),addButtonElement:m.createElement(pa,{type:"submit",primary:!0},"Save"),plusMenuElement:m.createElement(ob,null),minusMenuElement:m.createElement(ab,null),inputElement:(k,T,I,D)=>D?m.createElement(_c,{onFocus:cb,onBlur:ub}):m.createElement(_c,null),fallback:S}))},pb=R.input(({theme:e,min:t,max:r,value:n,disabled:o})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${We(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${We(.02,e.input.background)} 100%)`:`linear-gradient(to right, @@ -384,8 +384,8 @@ To pass a single animation please supply them in simple values, e.g. animation(' ${We(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Rt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, - ${Rt(.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 ${rt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Od=R.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),fb=R(Od)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),hb=R.div({display:"flex",alignItems:"center",width:"100%"});function mb(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 yb=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:l,argType:s})=>{let c=f=>{r(C2(f.target.value))},d=t!==void 0,p=st(()=>mb(a),[a]),h=!!s?.table?.readonly;return m.createElement(hb,{"aria-readonly":h},m.createElement(Od,null,n),m.createElement(pb,{id:Fe(e),type:"range",disabled:h,onChange:c,name:e,value:t,min:n,max:o,step:a,onFocus:l,onBlur:i}),m.createElement(fb,{numberOFDecimalsPlaces:p,max:o},d?t.toFixed(p):"--"," / ",o))},gb=R.label({display:"flex"}),bb=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),Eb=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{let l=f=>{r(f.target.value)},s=!!i?.table?.readonly,[c,d]=X(!1),p=xe(()=>{r(""),d(!0)},[d]);if(t===void 0)return m.createElement(lt,{variant:"outline",size:"medium",disabled:s,id:lr(e),onClick:p},"Set string");let h=typeof t=="string";return m.createElement(gb,null,m.createElement(Ve.Textarea,{id:Fe(e),maxLength:a,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:c,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:o}),a&&m.createElement(bb,{isMaxed:t?.length===a},t?.length??0," / ",a))},vb=R(Ve.Input)({padding:10});function xb(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Sb=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let a=Re(null),i=o?.control?.readOnly;function l(s){if(!s.target.files)return;let c=Array.from(s.target.files).map(d=>URL.createObjectURL(d));e(c),xb(n)}return Se(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),m.createElement(vb,{ref:a,id:Fe(t),type:"file",name:t,multiple:!0,disabled:i,onChange:l,accept:r,size:"flex"})},wb=Qa(()=>Promise.resolve().then(()=>(hc(),fc))),Ab=e=>m.createElement(Xa,{fallback:m.createElement("div",null)},m.createElement(wb,{...e})),Tb={array:Pc,object:Pc,boolean:b2,color:Ab,date:A2,number:I2,check:Xt,"inline-check":Xt,radio:Xt,"inline-radio":Xt,select:Xt,"multi-select":Xt,range:yb,text:Eb,file:Sb},Fc=()=>m.createElement(m.Fragment,null,"-"),Cb=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:a}=e,[i,l]=X(!1),[s,c]=X({value:t});Se(()=>{i||c({value:t})},[i,t]);let d=xe(g=>(c({value:g}),r({[o]:g}),g),[r,o]),p=xe(()=>l(!1),[]),h=xe(()=>l(!0),[]);if(!a||a.disable){let g=a?.disable!==!0&&e?.type?.name!=="function";return n&&g?m.createElement(xt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):m.createElement(Fc,null)}let f={name:o,argType:e,value:s.value,onChange:d,onBlur:p,onFocus:h},b=Tb[a.type]||Fc;return m.createElement(b,{...f,...a,controlType:a.type})},kb=R.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:Mt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),Ib=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:m.createElement(m.Fragment,null,m.createElement(kb,null,m.createElement("tbody",null,n&&m.createElement("tr",{key:"deprecated"},m.createElement("td",{colSpan:2},m.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(a=>m.createElement("tr",{key:a.name},m.createElement("td",null,m.createElement("code",null,a.name)),m.createElement("td",null,a.description))),o&&m.createElement("tr",{key:"returns"},m.createElement("td",null,m.createElement("code",null,"Returns")),m.createElement("td",null,e.returns.description)))))},Ob=Lt(Gc()),Ta=8,Nc=R.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),Db=R.span(Mt,({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}})),Rb=R.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),_b=R.div(Mt,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),Pb=R.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"}})),Fb=R(Ni)({marginLeft:4}),Nb=R(eo)({marginLeft:4}),Bb=()=>m.createElement("span",null,"-"),Dd=({text:e,simple:t})=>m.createElement(Db,{simple:t},e),jb=(0,Ob.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),Lb=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return Ga(t)},Bc=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Ta)),r.map(n=>m.createElement(Dd,{key:n,text:n===""?'""':n}))},Mb=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=X(!1),[i,l]=X(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return m.createElement(Dd,{text:s});let c=Lb(s),d=c.length;return d>Ta?m.createElement(Nc,{isExpanded:i},Bc(c,i),m.createElement(Rb,{onClick:()=>l(!i)},i?"Show less...":`Show ${d-Ta} more...`)):m.createElement(Nc,null,Bc(c))}return m.createElement(Mn,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:c=>{a(c)},tooltip:m.createElement(Pb,{width:jb(n)},m.createElement(Rr,{language:"jsx",format:!1},n))},m.createElement(_b,{className:"sbdocs-expandable"},m.createElement("span",null,s),o?m.createElement(Fb,null):m.createElement(Nb,null)))},fa=({value:e,initialExpandedArgs:t})=>e==null?m.createElement(Bb,null):m.createElement(Mb,{value:e,initialExpandedArgs:t}),Ub=R.span({fontWeight:"bold"}),$b=R.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),qb=R.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Mt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Vb=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?4:0})),Jb=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),zb=R.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Hb=e=>e&&{summary:typeof e=="string"?e:e.name},pn=e=>{let[t,r]=X(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:l}=e,{name:s,description:c}=n,d=n.table||{},p=d.type||Hb(n.type),h=d.defaultValue||n.defaultValue,f=n.type?.required,b=c!=null&&c!=="";return m.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},m.createElement(zb,{expandable:i},m.createElement(Ub,null,s),f?m.createElement($b,{title:"Required"},"*"):null),a?null:m.createElement("td",null,b&&m.createElement(qb,null,m.createElement(m2,null,c)),d.jsDocTags!=null?m.createElement(m.Fragment,null,m.createElement(Jb,{hasDescription:b},m.createElement(fa,{value:p,initialExpandedArgs:l})),m.createElement(Ib,{tags:d.jsDocTags})):m.createElement(Vb,{hasDescription:b},m.createElement(fa,{value:p,initialExpandedArgs:l}))),a?null:m.createElement("td",null,m.createElement(fa,{value:h,initialExpandedArgs:l})),o?m.createElement("td",null,m.createElement(Cb,{...e,isHovered:t})):null)},Gb=R.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"})),Wb=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Kb=R.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Yb=({inAddonPanel:e})=>{let[t,r]=X(!0);return Se(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:m.createElement(Gb,{inAddonPanel:e},m.createElement(Fn,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:m.createElement(m.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:m.createElement(Wb,null,e&&m.createElement(m.Fragment,null,m.createElement(xt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},m.createElement($i,null)," Watch 5m video"),m.createElement(Kb,null),m.createElement(xt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},m.createElement($r,null)," Read docs")),!e&&m.createElement(xt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},m.createElement($r,null)," Learn how to set that up"))}))},Xb=R(Pi)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),Qb=R(Fi)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),Zb=R.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),e1=R.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"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),t1=R.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),r1=R.td(()=>({position:"relative"})),n1=R.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Rt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),jc=R.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"})),ha=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=X(n),l=e==="subsection"?t1:e1,s=r?.length||0,c=e==="subsection"?`${s} item${s!==1?"s":""}`:"",d=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return m.createElement(m.Fragment,null,m.createElement(n1,{title:d},m.createElement(l,{colSpan:1},m.createElement(jc,{onClick:p=>i(!a),tabIndex:0},d),m.createElement(Zb,null,a?m.createElement(Xb,null):m.createElement(Qb,null),t)),m.createElement(r1,{colSpan:o-1},m.createElement(jc,{onClick:p=>i(!a),tabIndex:-1,style:{outline:"none"}},d),a?null:c)),a?r:null)},fn=R.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ie=R.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),me=R.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})),Oe=[2,4,2,2],o1=()=>m.createElement(m.Fragment,null,m.createElement(fn,null,m.createElement(Ie,{numColumn:Oe[0]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[1]},m.createElement(me,{width:"30%"})),m.createElement(Ie,{numColumn:Oe[2]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[3]},m.createElement(me,{width:"60%"}))),m.createElement(fn,null,m.createElement(Ie,{numColumn:Oe[0]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[1]},m.createElement(me,{width:"80%"}),m.createElement(me,{width:"30%"})),m.createElement(Ie,{numColumn:Oe[2]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[3]},m.createElement(me,{width:"60%"}))),m.createElement(fn,null,m.createElement(Ie,{numColumn:Oe[0]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[1]},m.createElement(me,{width:"80%"}),m.createElement(me,{width:"30%"})),m.createElement(Ie,{numColumn:Oe[2]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[3]},m.createElement(me,{width:"60%"}))),m.createElement(fn,null,m.createElement(Ie,{numColumn:Oe[0]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[1]},m.createElement(me,{width:"80%"}),m.createElement(me,{width:"30%"})),m.createElement(Ie,{numColumn:Oe[2]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[3]},m.createElement(me,{width:"60%"})))),a1=R.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"?se(.25,e.color.defaultText):se(.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}}}}})),i1=R(ze)(({theme:e})=>({margin:"-4px -12px -4px 0"})),s1=R.span({display:"flex",justifyContent:"space-between"}),l1={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},u1=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:l,subcategory:s}=i?.table||{};if(l){let c=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)c.ungrouped.push({key:a,...i});else{let d=c.subsections[s]||[];d.push({key:a,...i}),c.subsections[s]=d}r.sections[l]=c}else if(s){let c=r.ungroupedSubsections[s]||[];c.push({key:a,...i}),r.ungroupedSubsections[s]=c}else r.ungrouped.push({key:a,...i})});let n=l1[t],o=a=>n?Object.keys(a).reduce((i,l)=>({...i,[l]:a[l].sort(n)}),{}):a;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:o(r.sections[i].subsections)}}),{})}},c1=(e,t,r)=>{try{return ug(e,t,r)}catch(n){return zi.warn(n.message),!1}},d1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:l}=e;if("error"in e){let{error:A}=e;return m.createElement(Qc,null,A,"\xA0",m.createElement(xt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},m.createElement($r,null)," Read the docs"))}if(l)return m.createElement(o1,null);let{rows:s,args:c,globals:d}="rows"in e&&e,p=u1(Wa(s||{},A=>!A?.table?.disable&&c1(A,c||{},d||{})),i),h=p.ungrouped.length===0,f=Object.entries(p.sections).length===0,b=Object.entries(p.ungroupedSubsections).length===0;if(h&&f&&b)return m.createElement(Yb,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let x=Object.keys(p.sections).length>0,S={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return m.createElement(jn,null,m.createElement(a1,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},m.createElement("thead",{className:"docblock-argstable-head"},m.createElement("tr",null,m.createElement("th",null,m.createElement("span",null,"Name")),n?null:m.createElement("th",null,m.createElement("span",null,"Description")),n?null:m.createElement("th",null,m.createElement("span",null,"Default")),t?m.createElement("th",null,m.createElement(s1,null,"Control"," ",!l&&r&&m.createElement(i1,{onClick:()=>r(),title:"Reset controls"},m.createElement(to,{"aria-hidden":!0})))):null)),m.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map(A=>m.createElement(pn,{key:A.key,row:A,arg:c&&c[A.key],...S})),Object.entries(p.ungroupedSubsections).map(([A,k])=>m.createElement(ha,{key:A,label:A,level:"subsection",colSpan:g},k.map(T=>m.createElement(pn,{key:T.key,row:T,arg:c&&c[T.key],expandable:x,...S})))),Object.entries(p.sections).map(([A,k])=>m.createElement(ha,{key:A,label:A,level:"section",colSpan:g},k.ungrouped.map(T=>m.createElement(pn,{key:T.key,row:T,arg:c&&c[T.key],...S})),Object.entries(k.subsections).map(([T,I])=>m.createElement(ha,{key:T,label:T,level:"subsection",colSpan:g},I.map(D=>m.createElement(pn,{key:D.key,row:D,arg:c&&c[D.key],expandable:x,...S})))))))))};R.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));R.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});R.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});R.div(Ut,({theme:e})=>({...En(e),margin:"25px 0 40px",padding:"30px 20px"}));R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));R.div(({theme:e})=>({color:e.base==="light"?se(.2,e.color.defaultText):se(.6,e.color.defaultText)}));R.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});R.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"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));R.div({display:"flex",flexDirection:"row"});R.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));R.div(({theme:e})=>({...En(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"}));R.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});R.div({flex:1,display:"flex",flexDirection:"row"});R.div({display:"flex",alignItems:"flex-start"});R.div({flex:"0 0 30%"});R.div({flex:1});R.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));R.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));R.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));R.div(({theme:e})=>({...En(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));R.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});R.div({display:"flex",flexFlow:"row wrap"});globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=ur(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var p1=globalThis?globalThis.__DOCS_CONTEXT__:ur(null),f1=Object.create,Rd=Object.defineProperty,h1=Object.getOwnPropertyDescriptor,_d=Object.getOwnPropertyNames,m1=Object.getPrototypeOf,y1=Object.prototype.hasOwnProperty,$e=(e,t)=>function(){return t||(0,e[_d(e)[0]])((t={exports:{}}).exports,t),t.exports},g1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of _d(t))!y1.call(e,o)&&o!==r&&Rd(e,o,{get:()=>t[o],enumerable:!(n=h1(t,o))||n.enumerable});return e},Ra=(e,t,r)=>(r=e!=null?f1(m1(e)):{},g1(t||!e||!e.__esModule?Rd(r,"default",{value:e,enumerable:!0}):r,e)),b1=Lt(Gc(),1),Pd=$e({"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"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;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 l=Object.getOwnPropertyDescriptor(r,n);if(l.value!==a||l.enumerable!==!0)return!1}return!0}}}),Fd=$e({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Pd();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),E1=$e({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";t.exports=function(i){var l=this;if(typeof l!="function"||o.call(l)!==a)throw new TypeError(r+l);for(var s=n.call(arguments,1),c,d=function(){if(this instanceof c){var g=l.apply(this,s.concat(n.call(arguments)));return Object(g)===g?g:this}else return l.apply(i,s.concat(n.call(arguments)))},p=Math.max(0,l.length-s.length),h=[],f=0;f"u"?r:p(Uint8Array),b={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?p([][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%":o,"%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%":d?p(p([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!d?r:p(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"||!d?r:p(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?p(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":a,"%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 $(H){var w;if(H==="%AsyncFunction%")w=i("async function () {}");else if(H==="%GeneratorFunction%")w=i("function* () {}");else if(H==="%AsyncGeneratorFunction%")w=i("async function* () {}");else if(H==="%AsyncGenerator%"){var C=$("%AsyncGeneratorFunction%");C&&(w=C.prototype)}else if(H==="%AsyncIteratorPrototype%"){var _=$("%AsyncGenerator%");_&&(w=p(_.prototype))}return b[H]=w,w},x={"%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"]},S=_a(),A=v1(),k=S.call(Function.call,Array.prototype.concat),T=S.call(Function.apply,Array.prototype.splice),I=S.call(Function.call,String.prototype.replace),D=S.call(Function.call,String.prototype.slice),F=S.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,B=function($){var H=D($,0,1),w=D($,-1);if(H==="%"&&w!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(w==="%"&&H!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var C=[];return I($,P,function(_,M,U,K){C[C.length]=U?I(K,L,"$1"):M||_}),C},G=function($,H){var w=$,C;if(A(x,w)&&(C=x[w],w="%"+C[0]+"%"),A(b,w)){var _=b[w];if(_===h&&(_=g(w)),typeof _>"u"&&!H)throw new a("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:C,name:w,value:_}}throw new n("intrinsic "+$+" does not exist!")};t.exports=function($,H){if(typeof $!="string"||$.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof H!="boolean")throw new a('"allowMissing" argument must be a boolean');if(F(/^%?[^%]*%?$/,$)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var w=B($),C=w.length>0?w[0]:"",_=G("%"+C+"%",H),M=_.name,U=_.value,K=!1,re=_.alias;re&&(C=re[0],T(w,k([0,1],re)));for(var Z=1,Y=!0;Z=w.length){var Ae=l(U,ee);Y=!!Ae,Y&&"get"in Ae&&!("originalValue"in Ae.get)?U=Ae.get:U=U[ee]}else Y=A(U,ee),U=U[ee];Y&&!K&&(b[M]=U)}}return U}}}),x1=$e({"node_modules/call-bind/index.js"(e,t){var r=_a(),n=Nd(),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(a,o),l=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(p){var h=i(r,a,arguments);if(l&&s){var f=l(h,"length");f.configurable&&s(h,"length",{value:1+c(0,p.length-(arguments.length-1))})}return h};var d=function(){return i(r,o,arguments)};s?s(t.exports,"apply",{value:d}):t.exports.apply=d}}),S1=$e({"node_modules/call-bind/callBound.js"(e,t){var r=Nd(),n=x1(),o=n(r("String.prototype.indexOf"));t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n(l):l}}}),w1=$e({"node_modules/has-tostringtag/shams.js"(e,t){var r=Pd();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),A1=$e({"node_modules/is-regex/index.js"(e,t){var r=S1(),n=w1()(),o,a,i,l;n&&(o=r("Object.prototype.hasOwnProperty"),a=r("RegExp.prototype.exec"),i={},s=function(){throw i},l={toString:s,valueOf:s},typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=s));var s,c=r("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor,p="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=d(h,"lastIndex"),b=f&&o(f,"value");if(!b)return!1;try{a(h,l)}catch(g){return g===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:c(h)===p}}}),T1=$e({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),C1=$e({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=Fd()();n?(o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,i=function(l){return typeof l.valueOf()!="symbol"?!1:a.test(o.call(l))},t.exports=function(l){if(typeof l=="symbol")return!0;if(r.call(l)!=="[object Symbol]")return!1;try{return i(l)}catch{return!1}}):t.exports=function(l){return!1};var o,a,i}});Ra(A1());Ra(T1());Ra(C1());var k1=typeof window=="object"&&window&&window.Object===Object&&window,I1=k1,O1=typeof self=="object"&&self&&self.Object===Object&&self,D1=I1||O1||Function("return this")(),Pa=D1,R1=Pa.Symbol,Zt=R1,Bd=Object.prototype,_1=Bd.hasOwnProperty,P1=Bd.toString,Sr=Zt?Zt.toStringTag:void 0;function F1(e){var t=_1.call(e,Sr),r=e[Sr];try{e[Sr]=void 0;var n=!0}catch{}var o=P1.call(e);return n&&(t?e[Sr]=r:delete e[Sr]),o}var N1=F1,B1=Object.prototype,j1=B1.toString;function L1(e){return j1.call(e)}var M1=L1,U1="[object Null]",$1="[object Undefined]",Lc=Zt?Zt.toStringTag:void 0;function q1(e){return e==null?e===void 0?$1:U1:Lc&&Lc in Object(e)?N1(e):M1(e)}var V1=q1,Mc=Zt?Zt.prototype:void 0;Mc&&Mc.toString;function J1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var jd=J1,z1="[object AsyncFunction]",H1="[object Function]",G1="[object GeneratorFunction]",W1="[object Proxy]";function K1(e){if(!jd(e))return!1;var t=V1(e);return t==H1||t==G1||t==z1||t==W1}var Y1=K1,X1=Pa["__core-js_shared__"],ma=X1,Uc=function(){var e=/[^.]+$/.exec(ma&&ma.keys&&ma.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Q1(e){return!!Uc&&Uc in e}var Z1=Q1,eE=Function.prototype,tE=eE.toString;function rE(e){if(e!=null){try{return tE.call(e)}catch{}try{return e+""}catch{}}return""}var nE=rE,oE=/[\\^$.*+?()[\]{}|]/g,aE=/^\[object .+?Constructor\]$/,iE=Function.prototype,sE=Object.prototype,lE=iE.toString,uE=sE.hasOwnProperty,cE=RegExp("^"+lE.call(uE).replace(oE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dE(e){if(!jd(e)||Z1(e))return!1;var t=Y1(e)?cE:aE;return t.test(nE(e))}var pE=dE;function fE(e,t){return e?.[t]}var hE=fE;function mE(e,t){var r=hE(e,t);return pE(r)?r:void 0}var Ld=mE;function yE(e,t){return e===t||e!==e&&t!==t}var gE=yE,bE=Ld(Object,"create"),Tr=bE;function EE(){this.__data__=Tr?Tr(null):{},this.size=0}var vE=EE;function xE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var SE=xE,wE="__lodash_hash_undefined__",AE=Object.prototype,TE=AE.hasOwnProperty;function CE(e){var t=this.__data__;if(Tr){var r=t[e];return r===wE?void 0:r}return TE.call(t,e)?t[e]:void 0}var kE=CE,IE=Object.prototype,OE=IE.hasOwnProperty;function DE(e){var t=this.__data__;return Tr?t[e]!==void 0:OE.call(t,e)}var RE=DE,_E="__lodash_hash_undefined__";function PE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Tr&&t===void 0?_E:t,this}var FE=PE;function er(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var zE=JE;function HE(e,t){var r=this.__data__,n=Sn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var GE=HE;function tr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,o=!1,a="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;i({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),hb=R.div({display:"flex",alignItems:"center",width:"100%"});function mb(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 yb=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:l,argType:s})=>{let c=f=>{r(C2(f.target.value))},d=t!==void 0,p=st(()=>mb(a),[a]),h=!!s?.table?.readonly;return m.createElement(hb,{"aria-readonly":h},m.createElement(Od,null,n),m.createElement(pb,{id:Fe(e),type:"range",disabled:h,onChange:c,name:e,value:t,min:n,max:o,step:a,onFocus:l,onBlur:i}),m.createElement(fb,{numberOFDecimalsPlaces:p,max:o},d?t.toFixed(p):"--"," / ",o))},gb=R.label({display:"flex"}),bb=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),Eb=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{let l=f=>{r(f.target.value)},s=!!i?.table?.readonly,[c,d]=X(!1),p=xe(()=>{r(""),d(!0)},[d]);if(t===void 0)return m.createElement(lt,{variant:"outline",size:"medium",disabled:s,id:lr(e),onClick:p},"Set string");let h=typeof t=="string";return m.createElement(gb,null,m.createElement(Ve.Textarea,{id:Fe(e),maxLength:a,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:c,valid:h?null:"error",name:e,value:h?t:"",onFocus:n,onBlur:o}),a&&m.createElement(bb,{isMaxed:t?.length===a},t?.length??0," / ",a))},vb=R(Ve.Input)({padding:10});function xb(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var Sb=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let a=Re(null),i=o?.control?.readOnly;function l(s){if(!s.target.files)return;let c=Array.from(s.target.files).map(d=>URL.createObjectURL(d));e(c),xb(n)}return Se(()=>{n==null&&a.current&&(a.current.value=null)},[n,t]),m.createElement(vb,{ref:a,id:Fe(t),type:"file",name:t,multiple:!0,disabled:i,onChange:l,accept:r,size:"flex"})},wb=Qa(()=>Promise.resolve().then(()=>(hc(),fc))),Ab=e=>m.createElement(Xa,{fallback:m.createElement("div",null)},m.createElement(wb,{...e})),Tb={array:Pc,object:Pc,boolean:b2,color:Ab,date:A2,number:I2,check:Xt,"inline-check":Xt,radio:Xt,"inline-radio":Xt,select:Xt,"multi-select":Xt,range:yb,text:Eb,file:Sb},Fc=()=>m.createElement(m.Fragment,null,"-"),Cb=({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:a}=e,[i,l]=X(!1),[s,c]=X({value:t});Se(()=>{i||c({value:t})},[i,t]);let d=xe(g=>(c({value:g}),r({[o]:g}),g),[r,o]),p=xe(()=>l(!1),[]),h=xe(()=>l(!0),[]);if(!a||a.disable){let g=a?.disable!==!0&&e?.type?.name!=="function";return n&&g?m.createElement(xt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):m.createElement(Fc,null)}let f={name:o,argType:e,value:s.value,onChange:d,onBlur:p,onFocus:h},b=Tb[a.type]||Fc;return m.createElement(b,{...f,...a,controlType:a.type})},kb=R.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:Mt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),Ib=({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:m.createElement(m.Fragment,null,m.createElement(kb,null,m.createElement("tbody",null,n&&m.createElement("tr",{key:"deprecated"},m.createElement("td",{colSpan:2},m.createElement("strong",null,"Deprecated"),": ",e.deprecated.toString())),r&&t.map(a=>m.createElement("tr",{key:a.name},m.createElement("td",null,m.createElement("code",null,a.name)),m.createElement("td",null,a.description))),o&&m.createElement("tr",{key:"returns"},m.createElement("td",null,m.createElement("code",null,"Returns")),m.createElement("td",null,e.returns.description)))))},Ob=Lt(Gc()),Ta=8,Nc=R.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),Db=R.span(Mt,({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}})),Rb=R.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),_b=R.div(Mt,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),Pb=R.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"}})),Fb=R(Ni)({marginLeft:4}),Nb=R(eo)({marginLeft:4}),Bb=()=>m.createElement("span",null,"-"),Dd=({text:e,simple:t})=>m.createElement(Db,{simple:t},e),jb=(0,Ob.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),Lb=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return Ga(t)},Bc=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,Ta)),r.map(n=>m.createElement(Dd,{key:n,text:n===""?'""':n}))},Mb=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=X(!1),[i,l]=X(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return m.createElement(Dd,{text:s});let c=Lb(s),d=c.length;return d>Ta?m.createElement(Nc,{isExpanded:i},Bc(c,i),m.createElement(Rb,{onClick:()=>l(!i)},i?"Show less...":`Show ${d-Ta} more...`)):m.createElement(Nc,null,Bc(c))}return m.createElement(Mn,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:c=>{a(c)},tooltip:m.createElement(Pb,{width:jb(n)},m.createElement(_r,{language:"jsx",format:!1},n))},m.createElement(_b,{className:"sbdocs-expandable"},m.createElement("span",null,s),o?m.createElement(Fb,null):m.createElement(Nb,null)))},fa=({value:e,initialExpandedArgs:t})=>e==null?m.createElement(Bb,null):m.createElement(Mb,{value:e,initialExpandedArgs:t}),Ub=R.span({fontWeight:"bold"}),$b=R.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),qb=R.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Mt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Vb=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?4:0})),Jb=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?se(.1,e.color.defaultText):se(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),zb=R.td(({theme:e,expandable:t})=>({paddingLeft:t?"40px !important":"20px !important"})),Hb=e=>e&&{summary:typeof e=="string"?e:e.name},pn=e=>{let[t,r]=X(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:l}=e,{name:s,description:c}=n,d=n.table||{},p=d.type||Hb(n.type),h=d.defaultValue||n.defaultValue,f=n.type?.required,b=c!=null&&c!=="";return m.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},m.createElement(zb,{expandable:i},m.createElement(Ub,null,s),f?m.createElement($b,{title:"Required"},"*"):null),a?null:m.createElement("td",null,b&&m.createElement(qb,null,m.createElement(m2,null,c)),d.jsDocTags!=null?m.createElement(m.Fragment,null,m.createElement(Jb,{hasDescription:b},m.createElement(fa,{value:p,initialExpandedArgs:l})),m.createElement(Ib,{tags:d.jsDocTags})):m.createElement(Vb,{hasDescription:b},m.createElement(fa,{value:p,initialExpandedArgs:l}))),a?null:m.createElement("td",null,m.createElement(fa,{value:h,initialExpandedArgs:l})),o?m.createElement("td",null,m.createElement(Cb,{...e,isHovered:t})):null)},Gb=R.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"})),Wb=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Kb=R.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),Yb=({inAddonPanel:e})=>{let[t,r]=X(!0);return Se(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:m.createElement(Gb,{inAddonPanel:e},m.createElement(Fn,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:m.createElement(m.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:m.createElement(Wb,null,e&&m.createElement(m.Fragment,null,m.createElement(xt,{href:"https://youtu.be/0gOfS6K0x0E",target:"_blank",withArrow:!0},m.createElement($i,null)," Watch 5m video"),m.createElement(Kb,null),m.createElement(xt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},m.createElement(qr,null)," Read docs")),!e&&m.createElement(xt,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},m.createElement(qr,null)," Learn how to set that up"))}))},Xb=R(Pi)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),Qb=R(Fi)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?se(.25,e.color.defaultText):se(.3,e.color.defaultText),border:"none",display:"inline-block"})),Zb=R.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),e1=R.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"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),t1=R.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),r1=R.td(()=>({position:"relative"})),n1=R.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Rt(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),jc=R.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"})),ha=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=X(n),l=e==="subsection"?t1:e1,s=r?.length||0,c=e==="subsection"?`${s} item${s!==1?"s":""}`:"",d=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return m.createElement(m.Fragment,null,m.createElement(n1,{title:d},m.createElement(l,{colSpan:1},m.createElement(jc,{onClick:p=>i(!a),tabIndex:0},d),m.createElement(Zb,null,a?m.createElement(Xb,null):m.createElement(Qb,null),t)),m.createElement(r1,{colSpan:o-1},m.createElement(jc,{onClick:p=>i(!a),tabIndex:-1,style:{outline:"none"}},d),a?null:c)),a?r:null)},fn=R.div(({theme:e})=>({display:"flex",gap:16,borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Ie=R.div(({numColumn:e})=>({display:"flex",flexDirection:"column",flex:e||1,gap:5,padding:"12px 20px"})),me=R.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})),Oe=[2,4,2,2],o1=()=>m.createElement(m.Fragment,null,m.createElement(fn,null,m.createElement(Ie,{numColumn:Oe[0]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[1]},m.createElement(me,{width:"30%"})),m.createElement(Ie,{numColumn:Oe[2]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[3]},m.createElement(me,{width:"60%"}))),m.createElement(fn,null,m.createElement(Ie,{numColumn:Oe[0]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[1]},m.createElement(me,{width:"80%"}),m.createElement(me,{width:"30%"})),m.createElement(Ie,{numColumn:Oe[2]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[3]},m.createElement(me,{width:"60%"}))),m.createElement(fn,null,m.createElement(Ie,{numColumn:Oe[0]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[1]},m.createElement(me,{width:"80%"}),m.createElement(me,{width:"30%"})),m.createElement(Ie,{numColumn:Oe[2]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[3]},m.createElement(me,{width:"60%"}))),m.createElement(fn,null,m.createElement(Ie,{numColumn:Oe[0]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[1]},m.createElement(me,{width:"80%"}),m.createElement(me,{width:"30%"})),m.createElement(Ie,{numColumn:Oe[2]},m.createElement(me,{width:"60%"})),m.createElement(Ie,{numColumn:Oe[3]},m.createElement(me,{width:"60%"})))),a1=R.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"?se(.25,e.color.defaultText):se(.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}}}}})),i1=R(ze)(({theme:e})=>({margin:"-4px -12px -4px 0"})),s1=R.span({display:"flex",justifyContent:"space-between"}),l1={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},u1=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:l,subcategory:s}=i?.table||{};if(l){let c=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)c.ungrouped.push({key:a,...i});else{let d=c.subsections[s]||[];d.push({key:a,...i}),c.subsections[s]=d}r.sections[l]=c}else if(s){let c=r.ungroupedSubsections[s]||[];c.push({key:a,...i}),r.ungroupedSubsections[s]=c}else r.ungrouped.push({key:a,...i})});let n=l1[t],o=a=>n?Object.keys(a).reduce((i,l)=>({...i,[l]:a[l].sort(n)}),{}):a;return{ungrouped:r.ungrouped.sort(n),ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:r.sections[i].ungrouped.sort(n),subsections:o(r.sections[i].subsections)}}),{})}},c1=(e,t,r)=>{try{return ug(e,t,r)}catch(n){return zi.warn(n.message),!1}},d1=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:l}=e;if("error"in e){let{error:A}=e;return m.createElement(Qc,null,A,"\xA0",m.createElement(xt,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},m.createElement(qr,null)," Read the docs"))}if(l)return m.createElement(o1,null);let{rows:s,args:c,globals:d}="rows"in e&&e,p=u1(Wa(s||{},A=>!A?.table?.disable&&c1(A,c||{},d||{})),i),h=p.ungrouped.length===0,f=Object.entries(p.sections).length===0,b=Object.entries(p.ungroupedSubsections).length===0;if(h&&f&&b)return m.createElement(Yb,{inAddonPanel:o});let g=1;t&&(g+=1),n||(g+=2);let x=Object.keys(p.sections).length>0,S={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return m.createElement(jn,null,m.createElement(a1,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},m.createElement("thead",{className:"docblock-argstable-head"},m.createElement("tr",null,m.createElement("th",null,m.createElement("span",null,"Name")),n?null:m.createElement("th",null,m.createElement("span",null,"Description")),n?null:m.createElement("th",null,m.createElement("span",null,"Default")),t?m.createElement("th",null,m.createElement(s1,null,"Control"," ",!l&&r&&m.createElement(i1,{onClick:()=>r(),title:"Reset controls"},m.createElement(to,{"aria-hidden":!0})))):null)),m.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map(A=>m.createElement(pn,{key:A.key,row:A,arg:c&&c[A.key],...S})),Object.entries(p.ungroupedSubsections).map(([A,k])=>m.createElement(ha,{key:A,label:A,level:"subsection",colSpan:g},k.map(T=>m.createElement(pn,{key:T.key,row:T,arg:c&&c[T.key],expandable:x,...S})))),Object.entries(p.sections).map(([A,k])=>m.createElement(ha,{key:A,label:A,level:"section",colSpan:g},k.ungrouped.map(T=>m.createElement(pn,{key:T.key,row:T,arg:c&&c[T.key],...S})),Object.entries(k.subsections).map(([T,I])=>m.createElement(ha,{key:T,label:T,level:"subsection",colSpan:g},I.map(D=>m.createElement(pn,{key:D.key,row:D,arg:c&&c[D.key],expandable:x,...S})))))))))};R.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));R.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});R.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});R.div(Ut,({theme:e})=>({...En(e),margin:"25px 0 40px",padding:"30px 20px"}));R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));R.div(({theme:e})=>({color:e.base==="light"?se(.2,e.color.defaultText):se(.6,e.color.defaultText)}));R.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});R.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"?se(.4,e.color.defaultText):se(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));R.div({display:"flex",flexDirection:"row"});R.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));R.div(({theme:e})=>({...En(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"}));R.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});R.div({flex:1,display:"flex",flexDirection:"row"});R.div({display:"flex",alignItems:"flex-start"});R.div({flex:"0 0 30%"});R.div({flex:1});R.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?se(.4,e.color.defaultText):se(.6,e.color.defaultText)}));R.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));R.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,color:e.color.defaultText,marginLeft:10,lineHeight:1.2}));R.div(({theme:e})=>({...En(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));R.div({display:"inline-flex",flexDirection:"row",alignItems:"center",flex:"0 1 calc(20% - 10px)",minWidth:120,margin:"0px 10px 30px 0"});R.div({display:"flex",flexFlow:"row wrap"});globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=ur(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var p1=globalThis?globalThis.__DOCS_CONTEXT__:ur(null),f1=Object.create,Rd=Object.defineProperty,h1=Object.getOwnPropertyDescriptor,_d=Object.getOwnPropertyNames,m1=Object.getPrototypeOf,y1=Object.prototype.hasOwnProperty,$e=(e,t)=>function(){return t||(0,e[_d(e)[0]])((t={exports:{}}).exports,t),t.exports},g1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of _d(t))!y1.call(e,o)&&o!==r&&Rd(e,o,{get:()=>t[o],enumerable:!(n=h1(t,o))||n.enumerable});return e},Ra=(e,t,r)=>(r=e!=null?f1(m1(e)):{},g1(t||!e||!e.__esModule?Rd(r,"default",{value:e,enumerable:!0}):r,e)),b1=Lt(Gc(),1),Pd=$e({"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"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;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 l=Object.getOwnPropertyDescriptor(r,n);if(l.value!==a||l.enumerable!==!0)return!1}return!0}}}),Fd=$e({"node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=Pd();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),E1=$e({"node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";t.exports=function(i){var l=this;if(typeof l!="function"||o.call(l)!==a)throw new TypeError(r+l);for(var s=n.call(arguments,1),c,d=function(){if(this instanceof c){var g=l.apply(this,s.concat(n.call(arguments)));return Object(g)===g?g:this}else return l.apply(i,s.concat(n.call(arguments)))},p=Math.max(0,l.length-s.length),h=[],f=0;f"u"?r:p(Uint8Array),b={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?p([][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%":o,"%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%":d?p(p([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!d?r:p(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"||!d?r:p(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?p(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":f,"%TypeError%":a,"%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 $(H){var w;if(H==="%AsyncFunction%")w=i("async function () {}");else if(H==="%GeneratorFunction%")w=i("function* () {}");else if(H==="%AsyncGeneratorFunction%")w=i("async function* () {}");else if(H==="%AsyncGenerator%"){var C=$("%AsyncGeneratorFunction%");C&&(w=C.prototype)}else if(H==="%AsyncIteratorPrototype%"){var _=$("%AsyncGenerator%");_&&(w=p(_.prototype))}return b[H]=w,w},x={"%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"]},S=_a(),A=v1(),k=S.call(Function.call,Array.prototype.concat),T=S.call(Function.apply,Array.prototype.splice),I=S.call(Function.call,String.prototype.replace),D=S.call(Function.call,String.prototype.slice),F=S.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,L=/\\(\\)?/g,B=function($){var H=D($,0,1),w=D($,-1);if(H==="%"&&w!=="%")throw new n("invalid intrinsic syntax, expected closing `%`");if(w==="%"&&H!=="%")throw new n("invalid intrinsic syntax, expected opening `%`");var C=[];return I($,P,function(_,M,U,K){C[C.length]=U?I(K,L,"$1"):M||_}),C},G=function($,H){var w=$,C;if(A(x,w)&&(C=x[w],w="%"+C[0]+"%"),A(b,w)){var _=b[w];if(_===h&&(_=g(w)),typeof _>"u"&&!H)throw new a("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:C,name:w,value:_}}throw new n("intrinsic "+$+" does not exist!")};t.exports=function($,H){if(typeof $!="string"||$.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof H!="boolean")throw new a('"allowMissing" argument must be a boolean');if(F(/^%?[^%]*%?$/,$)===null)throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var w=B($),C=w.length>0?w[0]:"",_=G("%"+C+"%",H),M=_.name,U=_.value,K=!1,re=_.alias;re&&(C=re[0],T(w,k([0,1],re)));for(var Z=1,Y=!0;Z=w.length){var Ae=l(U,ee);Y=!!Ae,Y&&"get"in Ae&&!("originalValue"in Ae.get)?U=Ae.get:U=U[ee]}else Y=A(U,ee),U=U[ee];Y&&!K&&(b[M]=U)}}return U}}}),x1=$e({"node_modules/call-bind/index.js"(e,t){var r=_a(),n=Nd(),o=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(a,o),l=n("%Object.getOwnPropertyDescriptor%",!0),s=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}t.exports=function(p){var h=i(r,a,arguments);if(l&&s){var f=l(h,"length");f.configurable&&s(h,"length",{value:1+c(0,p.length-(arguments.length-1))})}return h};var d=function(){return i(r,o,arguments)};s?s(t.exports,"apply",{value:d}):t.exports.apply=d}}),S1=$e({"node_modules/call-bind/callBound.js"(e,t){var r=Nd(),n=x1(),o=n(r("String.prototype.indexOf"));t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n(l):l}}}),w1=$e({"node_modules/has-tostringtag/shams.js"(e,t){var r=Pd();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),A1=$e({"node_modules/is-regex/index.js"(e,t){var r=S1(),n=w1()(),o,a,i,l;n&&(o=r("Object.prototype.hasOwnProperty"),a=r("RegExp.prototype.exec"),i={},s=function(){throw i},l={toString:s,valueOf:s},typeof Symbol.toPrimitive=="symbol"&&(l[Symbol.toPrimitive]=s));var s,c=r("Object.prototype.toString"),d=Object.getOwnPropertyDescriptor,p="[object RegExp]";t.exports=n?function(h){if(!h||typeof h!="object")return!1;var f=d(h,"lastIndex"),b=f&&o(f,"value");if(!b)return!1;try{a(h,l)}catch(g){return g===i}}:function(h){return!h||typeof h!="object"&&typeof h!="function"?!1:c(h)===p}}}),T1=$e({"node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),C1=$e({"node_modules/is-symbol/index.js"(e,t){var r=Object.prototype.toString,n=Fd()();n?(o=Symbol.prototype.toString,a=/^Symbol\(.*\)$/,i=function(l){return typeof l.valueOf()!="symbol"?!1:a.test(o.call(l))},t.exports=function(l){if(typeof l=="symbol")return!0;if(r.call(l)!=="[object Symbol]")return!1;try{return i(l)}catch{return!1}}):t.exports=function(l){return!1};var o,a,i}});Ra(A1());Ra(T1());Ra(C1());var k1=typeof window=="object"&&window&&window.Object===Object&&window,I1=k1,O1=typeof self=="object"&&self&&self.Object===Object&&self,D1=I1||O1||Function("return this")(),Pa=D1,R1=Pa.Symbol,Zt=R1,Bd=Object.prototype,_1=Bd.hasOwnProperty,P1=Bd.toString,wr=Zt?Zt.toStringTag:void 0;function F1(e){var t=_1.call(e,wr),r=e[wr];try{e[wr]=void 0;var n=!0}catch{}var o=P1.call(e);return n&&(t?e[wr]=r:delete e[wr]),o}var N1=F1,B1=Object.prototype,j1=B1.toString;function L1(e){return j1.call(e)}var M1=L1,U1="[object Null]",$1="[object Undefined]",Lc=Zt?Zt.toStringTag:void 0;function q1(e){return e==null?e===void 0?$1:U1:Lc&&Lc in Object(e)?N1(e):M1(e)}var V1=q1,Mc=Zt?Zt.prototype:void 0;Mc&&Mc.toString;function J1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var jd=J1,z1="[object AsyncFunction]",H1="[object Function]",G1="[object GeneratorFunction]",W1="[object Proxy]";function K1(e){if(!jd(e))return!1;var t=V1(e);return t==H1||t==G1||t==z1||t==W1}var Y1=K1,X1=Pa["__core-js_shared__"],ma=X1,Uc=function(){var e=/[^.]+$/.exec(ma&&ma.keys&&ma.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Q1(e){return!!Uc&&Uc in e}var Z1=Q1,eE=Function.prototype,tE=eE.toString;function rE(e){if(e!=null){try{return tE.call(e)}catch{}try{return e+""}catch{}}return""}var nE=rE,oE=/[\\^$.*+?()[\]{}|]/g,aE=/^\[object .+?Constructor\]$/,iE=Function.prototype,sE=Object.prototype,lE=iE.toString,uE=sE.hasOwnProperty,cE=RegExp("^"+lE.call(uE).replace(oE,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dE(e){if(!jd(e)||Z1(e))return!1;var t=Y1(e)?cE:aE;return t.test(nE(e))}var pE=dE;function fE(e,t){return e?.[t]}var hE=fE;function mE(e,t){var r=hE(e,t);return pE(r)?r:void 0}var Ld=mE;function yE(e,t){return e===t||e!==e&&t!==t}var gE=yE,bE=Ld(Object,"create"),Cr=bE;function EE(){this.__data__=Cr?Cr(null):{},this.size=0}var vE=EE;function xE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var SE=xE,wE="__lodash_hash_undefined__",AE=Object.prototype,TE=AE.hasOwnProperty;function CE(e){var t=this.__data__;if(Cr){var r=t[e];return r===wE?void 0:r}return TE.call(t,e)?t[e]:void 0}var kE=CE,IE=Object.prototype,OE=IE.hasOwnProperty;function DE(e){var t=this.__data__;return Cr?t[e]!==void 0:OE.call(t,e)}var RE=DE,_E="__lodash_hash_undefined__";function PE(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cr&&t===void 0?_E:t,this}var FE=PE;function er(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var zE=JE;function HE(e,t){var r=this.__data__,n=Sn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var GE=HE;function tr(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{let t=null,r=!1,n=!1,o=!1,a="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let i=0;igv(e).replace(/\n\s*/g,"").trim());ur({sources:{}});var{document:bv}=globalThis;function Ev(e,t){e.channel.emit(ii,t)}$n.a;var Ud=["h1","h2","h3","h4","h5","h6"],vv=Ud.reduce((e,t)=>({...e,[t]:R(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),xv=R.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Sv=({as:e,id:t,children:r,...n})=>{let o=Za(p1),a=vv[e],i=`#${t}`;return m.createElement(a,{id:t,...n},m.createElement(xv,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{bv.getElementById(t)&&Ev(o,i)}},m.createElement(Li,null)),r)},$d=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return m.createElement(Sv,{as:t,id:r,...o},n);let a=t,{as:i,...l}=e;return m.createElement(a,{...qn(l,t)})};Ud.reduce((e,t)=>({...e,[t]:r=>m.createElement($d,{as:t,...r})}),{});var wv=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(wv||{});Lt(mg());R.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}}));R.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}}));R.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10}));var Av=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return m.createElement(Bn,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return m.createElement($d,{as:"h2",id:n,...r},e)};R(Av)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}));var Tv=Kn({from:{transform:"translateY(40px)"},to:{transform:"translateY(0)"}}),Cv=Kn({from:{background:"var(--highlight-bg-color)"},to:{}}),kv=R.div({containerType:"size",position:"sticky",bottom:0,height:39,overflow:"hidden",zIndex:1}),Iv=R(Pn)(({theme:e})=>({"--highlight-bg-color":e.base==="dark"?"#153B5B":"#E0F0FF",display:"flex",flexDirection:"row-reverse",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:6,padding:"6px 10px",animation:`${Tv} 300ms, ${Cv} 2s`,background:e.background.bar,borderTop:`1px solid ${e.appBorderColor}`,fontSize:e.typography.size.s2,"@container (max-width: 799px)":{flexDirection:"row",justifyContent:"flex-end"}})),Ov=R.div({display:"flex",flex:"99 0 auto",alignItems:"center",marginLeft:10,gap:6}),Dv=R.div(({theme:e})=>({display:"flex",flex:"1 0 0",alignItems:"center",gap:2,color:e.color.mediumdark,fontSize:e.typography.size.s2})),ya=R.div({"@container (max-width: 799px)":{lineHeight:0,textIndent:"-9999px","&::after":{content:"attr(data-short-label)",display:"block",lineHeight:"initial",textIndent:"0"}}}),Rv=R(Ve.Input)(({theme:e})=>({"::placeholder":{color:e.color.mediumdark},"&:invalid:not(:placeholder-shown)":{boxShadow:`${e.color.negative} 0 0 0 1px inset`}})),_v=({saveStory:e,createStory:t,resetArgs:r})=>{let n=m.useRef(null),[o,a]=m.useState(!1),[i,l]=m.useState(!1),[s,c]=m.useState(""),[d,p]=m.useState(null),h=async()=>{o||(a(!0),await e().catch(()=>{}),a(!1))},f=()=>{l(!0),c(""),setTimeout(()=>n.current?.focus(),0)},b=g=>{let x=g.target.value.replace(/^[^a-z]/i,"").replace(/[^a-z0-9-_ ]/gi,"").replaceAll(/([-_ ]+[a-z0-9])/gi,S=>S.toUpperCase().replace(/[-_ ]/g,""));c(x.charAt(0).toUpperCase()+x.slice(1))};return m.createElement(kv,{id:"save-from-controls"},m.createElement(Iv,null,m.createElement(Dv,null,m.createElement(ut,{as:"div",hasChrome:!1,trigger:"hover",tooltip:m.createElement(St,{note:"Save changes to story"})},m.createElement(ze,{"aria-label":"Save changes to story",disabled:o,onClick:h},m.createElement(_i,null),m.createElement(ya,{"data-short-label":"Save"},"Update story"))),m.createElement(ut,{as:"div",hasChrome:!1,trigger:"hover",tooltip:m.createElement(St,{note:"Create new story with these settings"})},m.createElement(ze,{"aria-label":"Create new story with these settings",onClick:f},m.createElement(Zn,null),m.createElement(ya,{"data-short-label":"New"},"Create new story"))),m.createElement(ut,{as:"div",hasChrome:!1,trigger:"hover",tooltip:m.createElement(St,{note:"Reset changes"})},m.createElement(ze,{"aria-label":"Reset changes",onClick:()=>r()},m.createElement(to,null),m.createElement("span",null,"Reset")))),m.createElement(Ov,null,m.createElement(ya,{"data-short-label":"Unsaved changes"},"You modified this story. Do you want to save your changes?")),m.createElement(He,{width:350,open:i,onOpenChange:l},m.createElement(Ve,{onSubmit:async g=>{if(g.preventDefault(),!o)try{p(null),a(!0),await t(s.replace(/^[^a-z]/i,"").replaceAll(/[^a-z0-9]/gi,"")),l(!1),a(!1)}catch(x){p(x.message),a(!1)}},id:"create-new-story-form"},m.createElement(He.Content,null,m.createElement(He.Header,null,m.createElement(He.Title,null,"Create new story"),m.createElement(He.Description,null,"This will add a new story to your existing stories file.")),m.createElement(Rv,{onChange:b,placeholder:"Story export name",readOnly:o,ref:n,value:s}),m.createElement(He.Actions,null,m.createElement(lt,{disabled:o||!s,size:"medium",type:"submit",variant:"solid"},"Create"),m.createElement(He.Dialog.Close,{asChild:!0},m.createElement(lt,{disabled:o,size:"medium",type:"reset"},"Cancel"))))),d&&m.createElement(He.Error,null,d))))},qc="addon-controls",qd="controls",Vc=e=>Object.entries(e).reduce((t,[r,n])=>n!==void 0?Object.assign(t,{[r]:n}):t,{}),Pv=R.div({display:"grid",gridTemplateRows:"1fr 39px",height:"100%",maxHeight:"100vh",overflowY:"auto"}),Fv=({saveStory:e,createStory:t})=>{let[r,n]=X(!0),[o,a,i,l]=wi(),[s]=Ai(),c=Wn(),{expanded:d,sort:p,presetColors:h,disableSaveFromUI:f=!1}=Ti(qd,{}),{path:b,previewInitialized:g}=Ci();Se(()=>{g&&n(!1)},[g]);let x=Object.values(c).some(k=>k?.control),S=Object.entries(c).reduce((k,[T,I])=>{let D=I?.control;return typeof D!="object"||D?.type!=="color"||D?.presetColors?k[T]=I:k[T]={...I,control:{...D,presetColors:h}},k},{}),A=st(()=>!!o&&!!l&&!wt(Vc(o),Vc(l)),[o,l]);return m.createElement(Pv,null,m.createElement(d1,{key:b,compact:!d&&x,rows:S,args:o,globals:s,updateArgs:a,resetArgs:i,inAddonPanel:!0,sort:p,isLoading:r}),x&&A&&Wu.CONFIG_TYPE==="DEVELOPMENT"&&f!==!0&&m.createElement(_v,{resetArgs:i,saveStory:e,createStory:t}))};function Nv(){let e=Wn(),t=Object.values(e).filter(r=>r?.control&&!r?.table?.disable).length;return m.createElement("div",null,m.createElement(Ln,{col:1},m.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Controls"),t===0?"":m.createElement(_n,{status:"neutral"},t)))}var Jc=e=>JSON.stringify(e,(t,r)=>typeof r=="function"?"__sb_empty_function_arg__":r);Mr.register(qc,e=>{let t=Mr.getChannel(),r=async()=>{let o=e.getCurrentStoryData();if(o.type!=="story")throw new Error("Not a story");try{let a=await Gn(t,zn,Br,{args:Jc(Object.entries(o.args||{}).reduce((i,[l,s])=>(wt(s,o.initialArgs?.[l])||(i[l]=s),i),{})),csfId:o.id,importPath:o.importPath});e.addNotification({id:"save-story-success",icon:{name:"passed",color:Ur.positive},content:{headline:"Story saved",subHeadline:m.createElement(m.Fragment,null,"Updated story ",m.createElement("b",null,a.sourceStoryName),".")},duration:8e3})}catch(a){throw e.addNotification({id:"save-story-error",icon:{name:"failed",color:Ur.negative},content:{headline:"Failed to save story",subHeadline:a?.message||"Check the Storybook process on the command line for more details."},duration:8e3}),a}},n=async o=>{let a=e.getCurrentStoryData();if(a.type!=="story")throw new Error("Not a story");let i=await Gn(t,zn,Br,{args:a.args&&Jc(a.args),csfId:a.id,importPath:a.importPath,name:o});e.addNotification({id:"save-story-success",icon:{name:"passed",color:Ur.positive},content:{headline:"Story created",subHeadline:m.createElement(m.Fragment,null,"Added story ",m.createElement("b",null,i.newStoryName)," based on ",m.createElement("b",null,i.sourceStoryName),".")},duration:8e3,onClick:({onDismiss:l})=>{l(),e.selectStory(i.newStoryId)}})};Mr.add(qc,{title:Nv,type:Si.PANEL,paramKey:qd,render:({active:o})=>!o||!e.getCurrentStoryData()?null:m.createElement(Rn,{active:o},m.createElement(Fv,{saveStory:r,createStory:n}))}),t.on(Br,o=>{if(!o.success)return;let a=e.getCurrentStoryData();a.type==="story"&&(e.resetStoryArgs(a),o.payload.newStoryId&&e.selectStory(o.payload.newStoryId))})});})(); +`&&(n=!1)),!r&&!n&&(a+=e[i]);else a=e;return a};(0,b1.default)(1e4)(e=>gv(e).replace(/\n\s*/g,"").trim());ur({sources:{}});var{document:bv}=globalThis;function Ev(e,t){e.channel.emit(ii,t)}$n.a;var Ud=["h1","h2","h3","h4","h5","h6"],vv=Ud.reduce((e,t)=>({...e,[t]:R(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),xv=R.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),Sv=({as:e,id:t,children:r,...n})=>{let o=Za(p1),a=vv[e],i=`#${t}`;return m.createElement(a,{id:t,...n},m.createElement(xv,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{bv.getElementById(t)&&Ev(o,i)}},m.createElement(Li,null)),r)},$d=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return m.createElement(Sv,{as:t,id:r,...o},n);let a=t,{as:i,...l}=e;return m.createElement(a,{...qn(l,t)})};Ud.reduce((e,t)=>({...e,[t]:r=>m.createElement($d,{as:t,...r})}),{});var wv=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(wv||{});Lt(mg());R.div(({theme:e})=>({width:"10rem","@media (max-width: 768px)":{display:"none"}}));R.div(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}}));R.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10}));var Av=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return m.createElement(Bn,null,e);let n=e.toLowerCase().replace(/[^a-z0-9]/gi,"-");return m.createElement($d,{as:"h2",id:n,...r},e)};R(Av)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}));var Tv=Kn({from:{transform:"translateY(40px)"},to:{transform:"translateY(0)"}}),Cv=Kn({from:{background:"var(--highlight-bg-color)"},to:{}}),kv=R.div({containerType:"size",position:"sticky",bottom:0,height:39,overflow:"hidden",zIndex:1}),Iv=R(Pn)(({theme:e})=>({"--highlight-bg-color":e.base==="dark"?"#153B5B":"#E0F0FF",display:"flex",flexDirection:"row-reverse",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:6,padding:"6px 10px",animation:`${Tv} 300ms, ${Cv} 2s`,background:e.background.bar,borderTop:`1px solid ${e.appBorderColor}`,fontSize:e.typography.size.s2,"@container (max-width: 799px)":{flexDirection:"row",justifyContent:"flex-end"}})),Ov=R.div({display:"flex",flex:"99 0 auto",alignItems:"center",marginLeft:10,gap:6}),Dv=R.div(({theme:e})=>({display:"flex",flex:"1 0 0",alignItems:"center",gap:2,color:e.color.mediumdark,fontSize:e.typography.size.s2})),ya=R.div({"@container (max-width: 799px)":{lineHeight:0,textIndent:"-9999px","&::after":{content:"attr(data-short-label)",display:"block",lineHeight:"initial",textIndent:"0"}}}),Rv=R(Ve.Input)(({theme:e})=>({"::placeholder":{color:e.color.mediumdark},"&:invalid:not(:placeholder-shown)":{boxShadow:`${e.color.negative} 0 0 0 1px inset`}})),_v=({saveStory:e,createStory:t,resetArgs:r})=>{let n=m.useRef(null),[o,a]=m.useState(!1),[i,l]=m.useState(!1),[s,c]=m.useState(""),[d,p]=m.useState(null),h=async()=>{o||(a(!0),await e().catch(()=>{}),a(!1))},f=()=>{l(!0),c(""),setTimeout(()=>n.current?.focus(),0)},b=g=>{let x=g.target.value.replace(/^[^a-z]/i,"").replace(/[^a-z0-9-_ ]/gi,"").replaceAll(/([-_ ]+[a-z0-9])/gi,S=>S.toUpperCase().replace(/[-_ ]/g,""));c(x.charAt(0).toUpperCase()+x.slice(1))};return m.createElement(kv,{id:"save-from-controls"},m.createElement(Iv,null,m.createElement(Dv,null,m.createElement(ut,{as:"div",hasChrome:!1,trigger:"hover",tooltip:m.createElement(St,{note:"Save changes to story"})},m.createElement(ze,{"aria-label":"Save changes to story",disabled:o,onClick:h},m.createElement(_i,null),m.createElement(ya,{"data-short-label":"Save"},"Update story"))),m.createElement(ut,{as:"div",hasChrome:!1,trigger:"hover",tooltip:m.createElement(St,{note:"Create new story with these settings"})},m.createElement(ze,{"aria-label":"Create new story with these settings",onClick:f},m.createElement(Zn,null),m.createElement(ya,{"data-short-label":"New"},"Create new story"))),m.createElement(ut,{as:"div",hasChrome:!1,trigger:"hover",tooltip:m.createElement(St,{note:"Reset changes"})},m.createElement(ze,{"aria-label":"Reset changes",onClick:()=>r()},m.createElement(to,null),m.createElement("span",null,"Reset")))),m.createElement(Ov,null,m.createElement(ya,{"data-short-label":"Unsaved changes"},"You modified this story. Do you want to save your changes?")),m.createElement(He,{width:350,open:i,onOpenChange:l},m.createElement(Ve,{onSubmit:async g=>{if(g.preventDefault(),!o)try{p(null),a(!0),await t(s.replace(/^[^a-z]/i,"").replaceAll(/[^a-z0-9]/gi,"")),l(!1),a(!1)}catch(x){p(x.message),a(!1)}},id:"create-new-story-form"},m.createElement(He.Content,null,m.createElement(He.Header,null,m.createElement(He.Title,null,"Create new story"),m.createElement(He.Description,null,"This will add a new story to your existing stories file.")),m.createElement(Rv,{onChange:b,placeholder:"Story export name",readOnly:o,ref:n,value:s}),m.createElement(He.Actions,null,m.createElement(lt,{disabled:o||!s,size:"medium",type:"submit",variant:"solid"},"Create"),m.createElement(He.Dialog.Close,{asChild:!0},m.createElement(lt,{disabled:o,size:"medium",type:"reset"},"Cancel"))))),d&&m.createElement(He.Error,null,d))))},qc="addon-controls",qd="controls",Vc=e=>Object.entries(e).reduce((t,[r,n])=>n!==void 0?Object.assign(t,{[r]:n}):t,{}),Pv=R.div({display:"grid",gridTemplateRows:"1fr 39px",height:"100%",maxHeight:"100vh",overflowY:"auto"}),Fv=({saveStory:e,createStory:t})=>{let[r,n]=X(!0),[o,a,i,l]=wi(),[s]=Ai(),c=Wn(),{expanded:d,sort:p,presetColors:h,disableSaveFromUI:f=!1}=Ti(qd,{}),{path:b,previewInitialized:g}=Ci();Se(()=>{g&&n(!1)},[g]);let x=Object.values(c).some(k=>k?.control),S=Object.entries(c).reduce((k,[T,I])=>{let D=I?.control;return typeof D!="object"||D?.type!=="color"||D?.presetColors?k[T]=I:k[T]={...I,control:{...D,presetColors:h}},k},{}),A=st(()=>!!o&&!!l&&!wt(Vc(o),Vc(l)),[o,l]);return m.createElement(Pv,null,m.createElement(d1,{key:b,compact:!d&&x,rows:S,args:o,globals:s,updateArgs:a,resetArgs:i,inAddonPanel:!0,sort:p,isLoading:r}),x&&A&&Wu.CONFIG_TYPE==="DEVELOPMENT"&&f!==!0&&m.createElement(_v,{resetArgs:i,saveStory:e,createStory:t}))};function Nv(){let e=Wn(),t=Object.values(e).filter(r=>r?.control&&!r?.table?.disable).length;return m.createElement("div",null,m.createElement(Ln,{col:1},m.createElement("span",{style:{display:"inline-block",verticalAlign:"middle"}},"Controls"),t===0?"":m.createElement(_n,{status:"neutral"},t)))}var Jc=e=>JSON.stringify(e,(t,r)=>typeof r=="function"?"__sb_empty_function_arg__":r);Ur.register(qc,e=>{let t=Ur.getChannel(),r=async()=>{let o=e.getCurrentStoryData();if(o.type!=="story")throw new Error("Not a story");try{let a=await Gn(t,zn,jr,{args:Jc(Object.entries(o.args||{}).reduce((i,[l,s])=>(wt(s,o.initialArgs?.[l])||(i[l]=s),i),{})),csfId:o.id,importPath:o.importPath});e.addNotification({id:"save-story-success",icon:{name:"passed",color:$r.positive},content:{headline:"Story saved",subHeadline:m.createElement(m.Fragment,null,"Updated story ",m.createElement("b",null,a.sourceStoryName),".")},duration:8e3})}catch(a){throw e.addNotification({id:"save-story-error",icon:{name:"failed",color:$r.negative},content:{headline:"Failed to save story",subHeadline:a?.message||"Check the Storybook process on the command line for more details."},duration:8e3}),a}},n=async o=>{let a=e.getCurrentStoryData();if(a.type!=="story")throw new Error("Not a story");let i=await Gn(t,zn,jr,{args:a.args&&Jc(a.args),csfId:a.id,importPath:a.importPath,name:o});e.addNotification({id:"save-story-success",icon:{name:"passed",color:$r.positive},content:{headline:"Story created",subHeadline:m.createElement(m.Fragment,null,"Added story ",m.createElement("b",null,i.newStoryName)," based on ",m.createElement("b",null,i.sourceStoryName),".")},duration:8e3,onClick:({onDismiss:l})=>{l(),e.selectStory(i.newStoryId)}})};Ur.add(qc,{title:Nv,type:Si.PANEL,paramKey:qd,render:({active:o})=>!o||!e.getCurrentStoryData()?null:m.createElement(Rn,{active:o},m.createElement(Fv,{saveStory:r,createStory:n}))}),t.on(jr,o=>{if(!o.success)return;let a=e.getCurrentStoryData();a.type==="story"&&(e.resetStoryArgs(a),o.payload.newStoryId&&e.selectStory(o.payload.newStoryId))})});})(); }catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } diff --git a/sb-manager/globals-runtime.js b/sb-manager/globals-runtime.js index fa565e1..4e2cf73 100644 --- a/sb-manager/globals-runtime.js +++ b/sb-manager/globals-runtime.js @@ -40267,7 +40267,7 @@ We(); var dM = I(Hn(), 1), on = I(cM(), 1); // src/manager-api/version.ts -var pM = "8.4.5"; +var pM = "8.4.6"; // src/manager-api/modules/versions.ts var { VERSIONCHECK: r0e } = H, fM = (0, dM.default)(1)(() => { diff --git a/sb-preview/runtime.js b/sb-preview/runtime.js index 006ae32..1fd2b3e 100644 --- a/sb-preview/runtime.js +++ b/sb-preview/runtime.js @@ -368,7 +368,7 @@ var _n = B((bt) => { Object.defineProperty(bt, "__esModule", { value: !0 }); bt.getDeepObject = uu; bt.stringifyObject = La; - var De = St(), pu = xn(); + var ke = St(), pu = xn(); function du(r) { return r === "__proto__" || r === "constructor" || r === "prototype"; } @@ -383,9 +383,9 @@ var _n = B((bt) => { s(uu, "getDeepObject"); var fu = 20, yu = "[]", mu = "[", hu = "]", gu = "."; function La(r, e, t = 0, o, n) { - let { nestingSyntax: a = De.defaultOptions.nestingSyntax, arrayRepeat: l = De.defaultOptions.arrayRepeat, arrayRepeatSyntax: c = De.defaultOptions. - arrayRepeatSyntax, nesting: i = De.defaultOptions.nesting, delimiter: p = De.defaultOptions.delimiter, valueSerializer: u = De.defaultOptions. - valueSerializer, shouldSerializeObject: d = De.defaultOptions.shouldSerializeObject } = e, y = typeof p == "number" ? String.fromCharCode( + let { nestingSyntax: a = ke.defaultOptions.nestingSyntax, arrayRepeat: l = ke.defaultOptions.arrayRepeat, arrayRepeatSyntax: c = ke.defaultOptions. + arrayRepeatSyntax, nesting: i = ke.defaultOptions.nesting, delimiter: p = ke.defaultOptions.delimiter, valueSerializer: u = ke.defaultOptions. + valueSerializer, shouldSerializeObject: d = ke.defaultOptions.shouldSerializeObject } = e, y = typeof p == "number" ? String.fromCharCode( p) : p, g = n === !0 && l, m = a === "dot" || a === "js" && !n; if (t > fu) return ""; @@ -848,7 +848,7 @@ var Ha = B((pe) => { Object.defineProperty(pe, "__esModule", { value: !0 }); pe.numberValueDeserializer = pe.numberKeyDeserializer = void 0; pe.parse = Au; - var Tt = _n(), ke = St(), Ba = Eu(Ua()), Ru = /* @__PURE__ */ s((r) => { + var Tt = _n(), Ne = St(), Ba = Eu(Ua()), Ru = /* @__PURE__ */ s((r) => { let e = Number(r); return Number.isNaN(e) ? r : e; }, "numberKeyDeserializer"); @@ -867,9 +867,9 @@ var Ha = B((pe) => { } s(Et, "computeKeySlice"); function Au(r, e) { - let { valueDeserializer: t = ke.defaultOptions.valueDeserializer, keyDeserializer: o = ke.defaultOptions.keyDeserializer, arrayRepeatSyntax: n = ke. - defaultOptions.arrayRepeatSyntax, nesting: a = ke.defaultOptions.nesting, arrayRepeat: l = ke.defaultOptions.arrayRepeat, nestingSyntax: c = ke. - defaultOptions.nestingSyntax, delimiter: i = ke.defaultOptions.delimiter } = e ?? {}, p = typeof i == "string" ? i.charCodeAt(0) : i, u = c === + let { valueDeserializer: t = Ne.defaultOptions.valueDeserializer, keyDeserializer: o = Ne.defaultOptions.keyDeserializer, arrayRepeatSyntax: n = Ne. + defaultOptions.arrayRepeatSyntax, nesting: a = Ne.defaultOptions.nesting, arrayRepeat: l = Ne.defaultOptions.arrayRepeat, nestingSyntax: c = Ne. + defaultOptions.nestingSyntax, delimiter: i = Ne.defaultOptions.delimiter } = e ?? {}, p = typeof i == "string" ? i.charCodeAt(0) : i, u = c === "js", d = new Va(); if (typeof r != "string") return d; @@ -1423,27 +1423,27 @@ var mi = B((v) => { } s(tf, "encode"); v.encode = tf; - var Le = Ln(); + var je = Ln(); Object.defineProperty(v, "encodeXML", { enumerable: !0, get: /* @__PURE__ */ s(function() { - return Le.encodeXML; + return je.encodeXML; }, "get") }); Object.defineProperty(v, "encodeHTML", { enumerable: !0, get: /* @__PURE__ */ s(function() { - return Le.encodeHTML; + return je.encodeHTML; }, "get") }); Object.defineProperty(v, "encodeNonAsciiHTML", { enumerable: !0, get: /* @__PURE__ */ s(function() { - return Le.encodeNonAsciiHTML; + return je.encodeNonAsciiHTML; }, "get") }); Object.defineProperty(v, "escape", { enumerable: !0, get: /* @__PURE__ */ s(function() { - return Le.escape; + return je.escape; }, "get") }); Object.defineProperty(v, "escapeUTF8", { enumerable: !0, get: /* @__PURE__ */ s(function() { - return Le.escapeUTF8; + return je.escapeUTF8; }, "get") }); Object.defineProperty(v, "encodeHTML4", { enumerable: !0, get: /* @__PURE__ */ s(function() { - return Le.encodeHTML; + return je.encodeHTML; }, "get") }); Object.defineProperty(v, "encodeHTML5", { enumerable: !0, get: /* @__PURE__ */ s(function() { - return Le.encodeHTML; + return je.encodeHTML; }, "get") }); var Te = kn(); Object.defineProperty(v, "decodeXML", { enumerable: !0, get: /* @__PURE__ */ s(function() { @@ -2007,7 +2007,7 @@ Re(fe, { STORY_INDEX_INVALIDATED: () => Wt, STORY_MISSING: () => $r, STORY_PREPARED: () => $t, - STORY_RENDERED: () => qe, + STORY_RENDERED: () => Ue, STORY_RENDER_PHASE_CHANGED: () => Ae, STORY_SPECIFIED: () => Yt, STORY_THREW_EXCEPTION: () => Kt, @@ -2086,7 +2086,7 @@ rashReport", x.TESTING_MODULE_PROGRESS_REPORT = "testingModuleProgressReport", x STORY_MISSING: $r, STORY_PREPARED: $t, STORY_RENDER_PHASE_CHANGED: Ae, - STORY_RENDERED: qe, + STORY_RENDERED: Ue, STORY_SPECIFIED: Yt, STORY_THREW_EXCEPTION: Kt, STORY_UNCHANGED: Xt, @@ -2138,8 +2138,8 @@ var eo = { var fr = {}; Re(fr, { Channel: () => ye, - PostMessageTransport: () => ze, - WebsocketTransport: () => We, + PostMessageTransport: () => We, + WebsocketTransport: () => $e, createBrowserChannel: () => gd, default: () => hd }); @@ -2233,24 +2233,24 @@ var { LOGLEVEL: xl } = R, me = { warn: 4, error: 5, silent: 10 -}, Al = xl, Ue = me[Al] || me.info, C = { +}, Al = xl, Be = me[Al] || me.info, C = { trace: /* @__PURE__ */ s((r, ...e) => { - Ue <= me.trace && console.trace(r, ...e); + Be <= me.trace && console.trace(r, ...e); }, "trace"), debug: /* @__PURE__ */ s((r, ...e) => { - Ue <= me.debug && console.debug(r, ...e); + Be <= me.debug && console.debug(r, ...e); }, "debug"), info: /* @__PURE__ */ s((r, ...e) => { - Ue <= me.info && console.info(r, ...e); + Be <= me.info && console.info(r, ...e); }, "info"), warn: /* @__PURE__ */ s((r, ...e) => { - Ue <= me.warn && console.warn(r, ...e); + Be <= me.warn && console.warn(r, ...e); }, "warn"), error: /* @__PURE__ */ s((r, ...e) => { - Ue <= me.error && console.error(r, ...e); + Be <= me.error && console.error(r, ...e); }, "error"), log: /* @__PURE__ */ s((r, ...e) => { - Ue < me.silent && console.log(r, ...e); + Be < me.silent && console.log(r, ...e); }, "log") }, to = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ s((r) => (e, ...t) => { if (!to.has(e)) @@ -2731,8 +2731,8 @@ function Vl(r) { } s(Vl, "isObject"); var Hl = typeof global == "object" && global && global.Object === Object && global, zl = Hl, Wl = typeof self == "object" && self && self.Object === -Object && self, $l = zl || Wl || Function("return this")(), ao = $l, Yl = ao.Symbol, Be = Yl, ns = Object.prototype, Kl = ns.hasOwnProperty, -Xl = ns.toString, pr = Be ? Be.toStringTag : void 0; +Object && self, $l = zl || Wl || Function("return this")(), ao = $l, Yl = ao.Symbol, Ge = Yl, ns = Object.prototype, Kl = ns.hasOwnProperty, +Xl = ns.toString, pr = Ge ? Ge.toStringTag : void 0; function Jl(r) { var e = Kl.call(r, pr), t = r[pr]; try { @@ -2749,7 +2749,7 @@ function rc(r) { return ec.call(r); } s(rc, "objectToString"); -var tc = rc, oc = "[object Null]", nc = "[object Undefined]", Xn = Be ? Be.toStringTag : void 0; +var tc = rc, oc = "[object Null]", nc = "[object Undefined]", Xn = Ge ? Ge.toStringTag : void 0; function sc(r) { return r == null ? r === void 0 ? nc : oc : Xn && Xn in Object(r) ? Ql(r) : tc(r); } @@ -2771,7 +2771,7 @@ function pc(r, e) { return n; } s(pc, "arrayMap"); -var dc = pc, uc = Array.isArray, lo = uc, fc = 1 / 0, Jn = Be ? Be.prototype : void 0, Qn = Jn ? Jn.toString : void 0; +var dc = pc, uc = Array.isArray, lo = uc, fc = 1 / 0, Jn = Ge ? Ge.prototype : void 0, Qn = Jn ? Jn.toString : void 0; function as(r) { if (typeof r == "string") return r; @@ -2890,20 +2890,20 @@ function lp(r, e) { } s(lp, "hashSet"); var cp = lp; -function Ge(r) { +function Ve(r) { var e = -1, t = r == null ? 0 : r.length; for (this.clear(); ++e < t; ) { var o = r[e]; this.set(o[0], o[1]); } } -s(Ge, "Hash"); -Ge.prototype.clear = Kc; -Ge.prototype.delete = Jc; -Ge.prototype.get = tp; -Ge.prototype.has = ap; -Ge.prototype.set = cp; -var es = Ge; +s(Ve, "Hash"); +Ve.prototype.clear = Kc; +Ve.prototype.delete = Jc; +Ve.prototype.get = tp; +Ve.prototype.has = ap; +Ve.prototype.set = cp; +var es = Ve; function pp() { this.__data__ = [], this.size = 0; } @@ -2943,20 +2943,20 @@ function Ep(r, e) { } s(Ep, "listCacheSet"); var Rp = Ep; -function Ve(r) { +function He(r) { var e = -1, t = r == null ? 0 : r.length; for (this.clear(); ++e < t; ) { var o = r[e]; this.set(o[0], o[1]); } } -s(Ve, "ListCache"); -Ve.prototype.clear = dp; -Ve.prototype.delete = hp; -Ve.prototype.get = Sp; -Ve.prototype.has = Tp; -Ve.prototype.set = Rp; -var xp = Ve, Ap = ls(ao, "Map"), _p = Ap; +s(He, "ListCache"); +He.prototype.clear = dp; +He.prototype.delete = hp; +He.prototype.get = Sp; +He.prototype.has = Tp; +He.prototype.set = Rp; +var xp = He, Ap = ls(ao, "Map"), _p = Ap; function wp() { this.size = 0, this.__data__ = { hash: new es(), @@ -3000,20 +3000,20 @@ function jp(r, e) { } s(jp, "mapCacheSet"); var Mp = jp; -function He(r) { +function ze(r) { var e = -1, t = r == null ? 0 : r.length; for (this.clear(); ++e < t; ) { var o = r[e]; this.set(o[0], o[1]); } } -s(He, "MapCache"); -He.prototype.clear = vp; -He.prototype.delete = Fp; -He.prototype.get = kp; -He.prototype.has = Lp; -He.prototype.set = Mp; -var cs = He, qp = "Expected a function"; +s(ze, "MapCache"); +ze.prototype.clear = vp; +ze.prototype.delete = Fp; +ze.prototype.get = kp; +ze.prototype.has = Lp; +ze.prototype.set = Mp; +var cs = ze, qp = "Expected a function"; function co(r, e) { if (typeof r != "function" || e != null && typeof e != "function") throw new TypeError(qp); @@ -3422,7 +3422,7 @@ pan style="color: #FFAE00">${n.type}`; } }; s(yo, "PostMessageTransport"); -var ze = yo; +var We = yo; // src/channels/websocket/index.ts var { WebSocket: yd } = R, mo = class mo { @@ -3463,16 +3463,16 @@ var { WebSocket: yd } = R, mo = class mo { } }; s(mo, "WebsocketTransport"); -var We = mo; +var $e = mo; // src/channels/index.ts var { CONFIG_TYPE: md } = R, hd = ye; function gd({ page: r, extraTransports: e = [] }) { - let t = [new ze({ page: r }), ...e]; + let t = [new We({ page: r }), ...e]; if (md === "DEVELOPMENT") { let o = window.location.protocol === "http:" ? "ws" : "wss", { hostname: n, port: a } = window.location, l = `${o}://${n}:${a}/storybook\ -server-channel`; - t.push(new We({ url: l, onError: /* @__PURE__ */ s(() => { + t.push(new $e({ url: l, onError: /* @__PURE__ */ s(() => { }, "onError"), page: r })); } return new ye({ transports: t }); @@ -3495,17 +3495,17 @@ var qr = {}; Re(qr, { DocsContext: () => ce, HooksContext: () => he, - Preview: () => Ie, + Preview: () => Fe, PreviewWeb: () => jr, - PreviewWithSelection: () => Fe, - StoryStore: () => Ce, - UrlStore: () => Ne, - WebView: () => je, + PreviewWithSelection: () => De, + StoryStore: () => Oe, + UrlStore: () => Le, + WebView: () => Me, addons: () => Z, applyHooks: () => ot, - combineArgs: () => Ke, + combineArgs: () => Xe, combineParameters: () => W, - composeConfigs: () => rr, + composeConfigs: () => Ce, composeStepRunners: () => ht, composeStories: () => xa, composeStory: () => dn, @@ -3513,12 +3513,12 @@ Re(qr, { decorateStory: () => an, defaultDecorateStory: () => ft, filterArgTypes: () => Pr, - inferControls: () => Ze, + inferControls: () => er, makeDecorator: () => Ps, mockChannel: () => tt, - normalizeStory: () => Je, + normalizeStory: () => Qe, prepareMeta: () => yt, - prepareStory: () => Qe, + prepareStory: () => Ze, sanitizeStoryContextUpdate: () => ln, setDefaultProjectAnnotations: () => Ea, setProjectAnnotations: () => Ra, @@ -3526,7 +3526,7 @@ Re(qr, { simulatePageLoad: () => Bn, sortStoriesV7: () => Ia, useArgs: () => ws, - useCallback: () => $e, + useCallback: () => Ye, useChannel: () => As, useEffect: () => Ro, useGlobals: () => vs, @@ -3621,10 +3621,10 @@ var xo = class xo { }), this.prevEffects = this.currentEffects, this.currentEffects = []; } addRenderListeners() { - this.removeRenderListeners(), Z.getChannel().on(qe, this.renderListener); + this.removeRenderListeners(), Z.getChannel().on(Ue, this.renderListener); } removeRenderListeners() { - Z.getChannel().removeListener(qe, this.renderListener); + Z.getChannel().removeListener(Ue, this.renderListener); } }; s(xo, "HooksContext"); @@ -3719,10 +3719,10 @@ function Ss(r, e) { return nt("useMemo", r, e); } s(Ss, "useMemo"); -function $e(r, e) { +function Ye(r, e) { return nt("useCallback", () => r, e); } -s($e, "useCallback"); +s(Ye, "useCallback"); function bs(r, e) { return nt(r, () => ({ current: e }), []); } @@ -3774,7 +3774,7 @@ function As(r, e = []) { Object.entries(r).forEach( ([o, n]) => t.removeListener(o, n) ); - }), [...Object.keys(r), ...e]), $e(t.emit.bind(t), [t]); + }), [...Object.keys(r), ...e]), Ye(t.emit.bind(t), [t]); } s(As, "useChannel"); function mr() { @@ -3791,10 +3791,10 @@ function _s(r, e) { } s(_s, "useParameter"); function ws() { - let r = Z.getChannel(), { id: e, args: t } = mr(), o = $e( + let r = Z.getChannel(), { id: e, args: t } = mr(), o = Ye( (a) => r.emit(lr, { storyId: e, updatedArgs: a }), [r, e] - ), n = $e( + ), n = Ye( (a) => r.emit(ar, { storyId: e, argNames: a }), [r, e] ); @@ -3802,7 +3802,7 @@ function ws() { } s(ws, "useArgs"); function vs() { - let r = Z.getChannel(), { globals: e } = mr(), t = $e( + let r = Z.getChannel(), { globals: e } = mr(), t = Ye( (o) => r.emit(ir, { globals: o }), [r] ); @@ -4469,7 +4469,7 @@ s(le, "areObjectsEqual"); var gt = ue(Xr(), 1); // src/preview-api/modules/store/args.ts -var Ye = Symbol("incompatible"), en = /* @__PURE__ */ s((r, e) => { +var Ke = Symbol("incompatible"), en = /* @__PURE__ */ s((r, e) => { let t = e.type; if (r == null || !t || e.mapping) return r; @@ -4483,29 +4483,29 @@ var Ye = Symbol("incompatible"), en = /* @__PURE__ */ s((r, e) => { case "boolean": return String(r) === "true"; case "array": - return !t.value || !Array.isArray(r) ? Ye : r.reduce((o, n, a) => { + return !t.value || !Array.isArray(r) ? Ke : r.reduce((o, n, a) => { let l = en(n, { type: t.value }); - return l !== Ye && (o[a] = l), o; + return l !== Ke && (o[a] = l), o; }, new Array(r.length)); case "object": - return typeof r == "string" || typeof r == "number" ? r : !t.value || typeof r != "object" ? Ye : Object.entries(r).reduce((o, [n, a]) => { + return typeof r == "string" || typeof r == "number" ? r : !t.value || typeof r != "object" ? Ke : Object.entries(r).reduce((o, [n, a]) => { let l = en(a, { type: t.value[n] }); - return l === Ye ? o : Object.assign(o, { [n]: l }); + return l === Ke ? o : Object.assign(o, { [n]: l }); }, {}); default: - return Ye; + return Ke; } }, "map"), ra = /* @__PURE__ */ s((r, e) => Object.entries(r).reduce((t, [o, n]) => { if (!e[o]) return t; let a = en(n, e[o]); - return a === Ye ? t : Object.assign(t, { [o]: a }); -}, {}), "mapArgsToTypes"), Ke = /* @__PURE__ */ s((r, e) => Array.isArray(r) && Array.isArray(e) ? e.reduce( - (t, o, n) => (t[n] = Ke(r[n], e[n]), t), + return a === Ke ? t : Object.assign(t, { [o]: a }); +}, {}), "mapArgsToTypes"), Xe = /* @__PURE__ */ s((r, e) => Array.isArray(r) && Array.isArray(e) ? e.reduce( + (t, o, n) => (t[n] = Xe(r[n], e[n]), t), [...r] ).filter((t) => t !== void 0) : !z(r) || !z(e) ? e : Object.keys({ ...r, ...e }).reduce((t, o) => { if (o in e) { - let n = Ke(r[o], e[o]); + let n = Xe(r[o], e[o]); n !== void 0 && (t[o] = n); } else t[o] = r[o]; @@ -4533,20 +4533,20 @@ var Ye = Symbol("incompatible"), en = /* @__PURE__ */ s((r, e) => { return a(); let p = l ? `${o}[${c}]` : o, u = n.map((d) => typeof d == "string" ? `'${d}'` : String(d)).join(", "); return L.warn(`Received illegal value for '${p}'. Supported options: ${u}`), t; -}, {}), "validateOptions"), we = Symbol("Deeply equal"), Xe = /* @__PURE__ */ s((r, e) => { +}, {}), "validateOptions"), we = Symbol("Deeply equal"), Je = /* @__PURE__ */ s((r, e) => { if (typeof r != typeof e) return e; if (Zo(r, e)) return we; if (Array.isArray(r) && Array.isArray(e)) { let t = e.reduce((o, n, a) => { - let l = Xe(r[a], n); + let l = Je(r[a], n); return l !== we && (o[a] = l), o; }, new Array(e.length)); return e.length >= r.length ? t : t.concat(new Array(r.length - e.length).fill(void 0)); } return z(r) && z(e) ? Object.keys({ ...r, ...e }).reduce((t, o) => { - let n = Xe(r?.[o], e?.[o]); + let n = Je(r?.[o], e?.[o]); return n === we ? t : Object.assign(t, { [o]: n }); }, {}) : e; }, "deepDiff"), rn = "UNTARGETED"; @@ -4581,13 +4581,13 @@ var tn = class tn { if (!this.initialArgsByStoryId[e.id]) this.initialArgsByStoryId[e.id] = e.initialArgs, this.argsByStoryId[e.id] = e.initialArgs; else if (this.initialArgsByStoryId[e.id] !== e.initialArgs) { - let t = Xe(this.initialArgsByStoryId[e.id], this.argsByStoryId[e.id]); + let t = Je(this.initialArgsByStoryId[e.id], this.argsByStoryId[e.id]); this.initialArgsByStoryId[e.id] = e.initialArgs, this.argsByStoryId[e.id] = e.initialArgs, t !== we && this.updateFromDelta(e, t); } } updateFromDelta(e, t) { let o = ta(t, e.argTypes); - this.argsByStoryId[e.id] = Ke(this.argsByStoryId[e.id], o); + this.argsByStoryId[e.id] = Xe(this.argsByStoryId[e.id], o); } updateFromPersisted(e, t) { let o = ra(t, e.argTypes); @@ -4618,7 +4618,7 @@ var on = class on { this.set({ globals: e, globalTypes: t }); } set({ globals: e = {}, globalTypes: t = {} }) { - let o = this.initialGlobals && Xe(this.initialGlobals, this.globals); + let o = this.initialGlobals && Je(this.initialGlobals, this.globals); this.allowedGlobalNames = /* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)]); let n = lt(t); this.initialGlobals = { ...n, ...e }, this.globals = this.initialGlobals, o && o !== we && this.updateFromPersisted(o); @@ -4803,7 +4803,7 @@ CSF .story annotations deprecated; annotate story functions directly: - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. `; -function Je(r, e, t) { +function Qe(r, e, t) { let o = e, n = typeof e == "function" ? e : null, { story: a } = o; a && (C.debug("deprecated story", a), te(qd)); let l = ua(r), c = typeof o != "function" && o.name || o.storyName || a?.name || l, i = [ @@ -4831,7 +4831,7 @@ function Je(r, e, t) { ...S && { play: S } }; } -s(Je, "normalizeStory"); +s(Qe, "normalizeStory"); // src/preview-api/modules/store/csf/normalizeComponentAnnotations.ts function ut(r, e = r.title, t) { @@ -4875,7 +4875,7 @@ function ma(r, e, t) { let c = { meta: l, stories: {}, moduleExports: r }; return Object.keys(a).forEach((i) => { if (dt(i, l)) { - let p = Je(i, a[i], l); + let p = Qe(i, a[i], l); ya(p.parameters), c.stories[p.id] = p; } }), c; @@ -4964,7 +4964,7 @@ var W = /* @__PURE__ */ s((...r) => { }, "combineParameters"); // src/preview-api/modules/store/csf/prepareStory.ts -function Qe(r, e, t) { +function Ze(r, e, t) { let { moduleExport: o, id: n, name: a } = r || {}, l = Sa( r, e, @@ -5027,7 +5027,7 @@ function Qe(r, e, t) { usesMount: A }; } -s(Qe, "prepareStory"); +s(Ze, "prepareStory"); function yt(r, e, t) { return { ...Sa(void 0, r, e), @@ -5203,7 +5203,7 @@ var Vd = /* @__PURE__ */ s((r, e, t) => { return { control: { type: n ? "select" : "object" } }; } } -}, "inferControl"), Ze = /* @__PURE__ */ s((r) => { +}, "inferControl"), er = /* @__PURE__ */ s((r) => { let { argTypes: e, // eslint-disable-next-line @typescript-eslint/naming-convention @@ -5214,7 +5214,7 @@ var Vd = /* @__PURE__ */ s((r, e, t) => { let l = Pr(e, o, n), c = ee(l, (i, p) => i?.type && Vd(i, p.toString(), a)); return W(c, l); }, "inferControls"); -Ze.secondPass = !0; +er.secondPass = !0; // src/preview-api/modules/store/csf/normalizeProjectAnnotations.ts function Cr({ @@ -5246,7 +5246,7 @@ function Cr({ // and so should be added by a preset there. However, as it seems some code relies on controls // annotations (in particular the angular implementation's `cleanArgsDecorator`), for backwards // compatibility reasons, we will leave this in the store until 7.0 - Ze + er ], initialGlobals: W(c, l), ...i @@ -5294,11 +5294,11 @@ function Or(r, e) { return Object.assign({}, ...Ir(r, e)); } s(Or, "getObjectField"); -function er(r, e) { +function rr(r, e) { return Ir(r, e).pop(); } -s(er, "getSingletonField"); -function rr(r) { +s(rr, "getSingletonField"); +function Ce(r) { let e = Pe(r, "argTypesEnhancers"), t = Ir(r, "runStep"), o = Pe(r, "beforeAll"); return { parameters: W(...Ir(r, "parameters")), @@ -5318,18 +5318,18 @@ function rr(r) { loaders: Pe(r, "loaders"), beforeAll: Ta(o), beforeEach: Pe(r, "beforeEach"), - render: er(r, "render"), - renderToCanvas: er(r, "renderToCanvas"), - renderToDOM: er(r, "renderToDOM"), + render: rr(r, "render"), + renderToCanvas: rr(r, "renderToCanvas"), + renderToDOM: rr(r, "renderToDOM"), // deprecated - applyDecorators: er(r, "applyDecorators"), + applyDecorators: rr(r, "applyDecorators"), runStep: ht(t), tags: Pe(r, "tags"), - mount: er(r, "mount"), - testingLibraryRender: er(r, "testingLibraryRender") + mount: rr(r, "mount"), + testingLibraryRender: rr(r, "testingLibraryRender") }; } -s(rr, "composeConfigs"); +s(Ce, "composeConfigs"); // src/preview-api/modules/store/csf/portable-stories.ts function Ea(r) { @@ -5338,12 +5338,12 @@ function Ea(r) { s(Ea, "setDefaultProjectAnnotations"); var Hd = "ComposedStory", zd = "Unnamed Story"; function Wd(r) { - return r ? "default" in r ? r.default : r : {}; + return r ? Ce([r]) : {}; } s(Wd, "extractAnnotation"); function Ra(r) { let e = Array.isArray(r) ? r : [r]; - return globalThis.globalProjectAnnotations = rr(e.map(Wd)), rr([ + return globalThis.globalProjectAnnotations = Ce(e.map(Wd)), Ce([ globalThis.defaultProjectAnnotations ?? {}, globalThis.globalProjectAnnotations ?? {} ]); @@ -5354,17 +5354,17 @@ function dn(r, e, t, o, n) { if (r === void 0) throw new Error("Expected a story but received undefined."); e.title = e.title ?? Hd; - let a = ut(e), l = n || r.storyName || r.story?.name || r.name || zd, c = Je( + let a = ut(e), l = n || r.storyName || r.story?.name || r.name || zd, c = Qe( l, r, a ), i = Cr( - rr([ + Ce([ o && Object.keys(o).length > 0 ? o : globalThis.defaultProjectAnnotations ?? {}, globalThis.globalProjectAnnotations ?? {}, t ?? {} ]) - ), p = Qe( + ), p = Ze( c, a, i @@ -5551,7 +5551,7 @@ var wa = 1e3, Kd = 1e4, un = class un { this.storyIndex = new pt(e), this.projectAnnotations = Cr(o); let { initialGlobals: n, globalTypes: a } = this.projectAnnotations; this.args = new it(), this.userGlobals = new ct({ globals: n, globalTypes: a }), this.hooks = {}, this.cleanupCallbacks = {}, this.processCSFFileWithCache = - (0, gt.default)(wa)(ma), this.prepareMetaWithCache = (0, gt.default)(wa)(yt), this.prepareStoryWithCache = (0, gt.default)(Kd)(Qe); + (0, gt.default)(wa)(ma), this.prepareMetaWithCache = (0, gt.default)(wa)(yt), this.prepareStoryWithCache = (0, gt.default)(Kd)(Ze); } setProjectAnnotations(e) { this.projectAnnotations = Cr(e); @@ -5736,7 +5736,7 @@ var wa = 1e3, Kd = 1e4, un = class un { } }; s(un, "StoryStore"); -var Ce = un; +var Oe = un; // ../node_modules/slash/index.js function fn(r) { @@ -6001,7 +6001,7 @@ var mn = class mn { await this.runPhase( S, "completed", - async () => this.channel.emit(qe, a) + async () => this.channel.emit(Ue, a) ); } catch (b) { this.phase = "errored", this.callbacks.showException(b); @@ -6045,7 +6045,7 @@ var mn = class mn { } }; s(mn, "StoryRender"); -var Oe = mn; +var Ie = mn; // src/preview-api/modules/preview-web/Preview.tsx var { fetch: Qd } = R, Zd = "./index.json", hn = class hn { @@ -6130,7 +6130,7 @@ var { fetch: Qd } = R, Zd = "./index.json", hn = class hn { initializeWithStoryIndex(e) { if (!this.projectAnnotationsBeforeInitialization) throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve"); - this.storyStoreValue = new Ce( + this.storyStoreValue = new Oe( e, this.importFn, this.projectAnnotationsBeforeInitialization @@ -6271,7 +6271,7 @@ var { fetch: Qd } = R, Zd = "./index.json", hn = class hn { throw new G({ methodName: "renderStoryToElement" }); - let a = new Oe( + let a = new Ie( this.channel, this.storyStoreValue, this.renderToCanvas, @@ -6312,7 +6312,7 @@ var { fetch: Qd } = R, Zd = "./index.json", hn = class hn { } }; s(hn, "Preview"); -var Ie = hn; +var Fe = hn; // src/preview-api/modules/preview-web/docs-context/DocsContext.ts var gn = class gn { @@ -6610,7 +6610,7 @@ function su(r) { return nu(r) && r.subtype === "csf"; } s(su, "isCsfDocsRender"); -var En = class En extends Ie { +var En = class En extends Fe { constructor(t, o, n, a) { super(t, o, void 0, !1); this.importFn = t; @@ -6690,7 +6690,7 @@ var En = class En extends Ie { this.selectionStore.setQueryParams(t); } async onUpdateGlobals({ globals: t }) { - let o = this.currentRender instanceof Oe && this.currentRender.story || void 0; + let o = this.currentRender instanceof Ie && this.currentRender.story || void 0; super.onUpdateGlobals({ globals: t, currentStory: o }), (this.currentRender instanceof Dr || this.currentRender instanceof Fr) && await this. currentRender.rerender?.(); } @@ -6724,7 +6724,7 @@ var En = class En extends Ie { l.type === "story" ? this.view.showPreparingStory({ immediate: i }) : this.view.showPreparingDocs({ immediate: i }), this.currentRender?. isPreparing() && await this.teardownRender(this.currentRender); let p; - l.type === "story" ? p = new Oe( + l.type === "story" ? p = new Ie( this.channel, this.storyStoreValue, o, @@ -6841,7 +6841,7 @@ ored", storyId: t }), this.view.showErrorDisplay({ } }; s(En, "PreviewWithSelection"); -var Fe = En; +var De = En; // src/preview-api/modules/preview-web/UrlStore.ts var Nr = ue(Rt(), 1); @@ -6949,7 +6949,7 @@ string" ? Cn(e.globals) : void 0, n = kr(e.viewMode); } }; s(On, "UrlStore"); -var Ne = On; +var Le = On; // src/preview-api/modules/preview-web/WebView.ts var Ci = ue(wi(), 1), Oi = ue(Rt(), 1); @@ -7056,12 +7056,12 @@ RING_DOCS"), vi); } }; s(qn, "WebView"); -var je = qn; +var Me = qn; // src/preview-api/modules/preview-web/PreviewWeb.tsx -var Un = class Un extends Fe { +var Un = class Un extends De { constructor(t, o) { - super(t, o, new Ne(), new je()); + super(t, o, new Le(), new Me()); this.importFn = t; this.getProjectAnnotations = o; R.__STORYBOOK_PREVIEW__ = this; @@ -7071,7 +7071,7 @@ s(Un, "PreviewWeb"); var jr = Un; // src/preview-api/modules/preview-web/simulate-pageload.ts -var { document: Me } = R, Sf = [ +var { document: qe } = R, Sf = [ "application/javascript", "application/ecmascript", "application/x-ecmascript", @@ -7092,14 +7092,14 @@ var { document: Me } = R, Sf = [ "module" ], bf = "script", Fi = "scripts-root"; function Mr() { - let r = Me.createEvent("Event"); - r.initEvent("DOMContentLoaded", !0, !0), Me.dispatchEvent(r); + let r = qe.createEvent("Event"); + r.initEvent("DOMContentLoaded", !0, !0), qe.dispatchEvent(r); } s(Mr, "simulateDOMContentLoaded"); function Tf(r, e, t) { - let o = Me.createElement("script"); + let o = qe.createElement("script"); o.type = r.type === "module" ? "module" : "text/javascript", r.src ? (o.onload = e, o.onerror = e, o.src = r.src) : o.textContent = r.innerText, - t ? t.appendChild(o) : Me.head.appendChild(o), r.parentNode.removeChild(r), r.src || e(); + t ? t.appendChild(o) : qe.head.appendChild(o), r.parentNode.removeChild(r), r.src || e(); } s(Tf, "insertScript"); function Di(r, e, t = 0) { @@ -7109,8 +7109,8 @@ function Di(r, e, t = 0) { } s(Di, "insertScriptsSequentially"); function Bn(r) { - let e = Me.getElementById(Fi); - e ? e.innerHTML = "" : (e = Me.createElement("div"), e.id = Fi, Me.body.appendChild(e)); + let e = qe.getElementById(Fi); + e ? e.innerHTML = "" : (e = qe.createElement("div"), e.id = Fi, qe.body.appendChild(e)); let t = Array.from(r.querySelectorAll(bf)); if (t.length) { let o = [];