@spectric/ui 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/components/input.d.ts +3 -1
  2. package/dist/components/query_bar/QueryBar.d.ts +2 -3
  3. package/dist/custom-elements.json +2 -2
  4. package/dist/index.es.js +15 -14
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/index.umd.js +16 -16
  7. package/dist/index.umd.js.map +1 -1
  8. package/package.json +2 -2
  9. package/src/components/input.ts +19 -2
  10. package/src/components/query_bar/QueryBar.ts +7 -21
  11. package/src/stories/QueryBar.stories.ts +7 -0
  12. package/src/stories/fixtures/data.ts +3 -0
  13. package/dist/assets/Banner-CZ3qKIQC.js +0 -172
  14. package/dist/assets/Banner.stories-BMf4MBpI.js +0 -19
  15. package/dist/assets/BitDisplay.stories-wztXxpxe.js +0 -18
  16. package/dist/assets/Bits-C_TSTjST.js +0 -1
  17. package/dist/assets/Button.stories-gHxjWwVf.js +0 -142
  18. package/dist/assets/Color-F6OSRLHC-AjFOL-zN.js +0 -1
  19. package/dist/assets/DocsRenderer-CFRXHY34-CvW79YxE.js +0 -761
  20. package/dist/assets/Header.stories-Bc09U6g1.js +0 -25
  21. package/dist/assets/Page.stories-DNJKhAFs.js +0 -114
  22. package/dist/assets/QueryBar.stories-Da5C-SV4.js +0 -17
  23. package/dist/assets/_commonjsHelpers-Cpj98o6Y.js +0 -1
  24. package/dist/assets/chunk-L4EGOTBX-AI5g0G5Z.js +0 -2
  25. package/dist/assets/data-CwENMT7L.js +0 -3
  26. package/dist/assets/dialog-CFHXbUTQ.js +0 -611
  27. package/dist/assets/directive-helpers-IbK5tOA8.js +0 -5
  28. package/dist/assets/entry-preview-Di-j0SPB.js +0 -4
  29. package/dist/assets/entry-preview-docs-CUBRpM7y.js +0 -1
  30. package/dist/assets/iframe-BQFuVTVZ.js +0 -2
  31. package/dist/assets/index-BCiKWbv6.js +0 -1
  32. package/dist/assets/index-BHYIh-Xd.js +0 -8
  33. package/dist/assets/index-DBGhiA-l.js +0 -1
  34. package/dist/assets/index-DrFu-skq.js +0 -6
  35. package/dist/assets/index-oFsFREWh.js +0 -9
  36. package/dist/assets/input.stories-Cgdv-5bN.js +0 -58
  37. package/dist/assets/lit-element-UdLzEcH-.js +0 -19
  38. package/dist/assets/preview-BWzBA1C2.js +0 -396
  39. package/dist/assets/preview-CGiTbRot.js +0 -2
  40. package/dist/assets/preview-D77C14du.js +0 -34
  41. package/dist/assets/preview-DEMzn_yN.js +0 -1
  42. package/dist/assets/preview-DFmD0pui.js +0 -1
  43. package/dist/assets/preview-DGUiP6tS.js +0 -7
  44. package/dist/assets/preview-DQVTHjv1.js +0 -182
  45. package/dist/assets/preview-aVwhiz9X.js +0 -1
  46. package/dist/assets/tiny-invariant-CopsF_GD.js +0 -1
  47. package/dist/components/input.css.d.ts +0 -2
  48. package/dist/favicon.svg +0 -1
  49. package/dist/iframe.html +0 -639
  50. package/dist/index.html +0 -190
  51. package/dist/index.json +0 -1
  52. package/dist/nunito-sans-bold-italic.woff2 +0 -0
  53. package/dist/nunito-sans-bold.woff2 +0 -0
  54. package/dist/nunito-sans-italic.woff2 +0 -0
  55. package/dist/nunito-sans-regular.woff2 +0 -0
  56. package/dist/project.json +0 -1
  57. package/dist/sb-addons/chromatic-com-storybook-8/manager-bundle.js +0 -333
  58. package/dist/sb-addons/chromatic-com-storybook-8/manager-bundle.js.LEGAL.txt +0 -40
  59. package/dist/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
  60. package/dist/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
  61. package/dist/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
  62. package/dist/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
  63. package/dist/sb-addons/essentials-controls-1/manager-bundle.js +0 -391
  64. package/dist/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -0
  65. package/dist/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
  66. package/dist/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
  67. package/dist/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
  68. package/dist/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
  69. package/dist/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
  70. package/dist/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
  71. package/dist/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
  72. package/dist/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
  73. package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
  74. package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
  75. package/dist/sb-common-assets/favicon.svg +0 -1
  76. package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  77. package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  78. package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  79. package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  80. package/dist/sb-manager/globals-module-info.js +0 -1028
  81. package/dist/sb-manager/globals-runtime.js +0 -40861
  82. package/dist/sb-manager/globals.js +0 -48
  83. package/dist/sb-manager/runtime.js +0 -13338
  84. package/dist/sb-preview/globals.js +0 -33
  85. package/dist/sb-preview/runtime.js +0 -7174
@@ -1,182 +0,0 @@
1
- import{r as reactExports,R as React,G as G$3,O as O$2}from"./index-oFsFREWh.js";import{g as getDefaultExportFromCjs}from"./_commonjsHelpers-Cpj98o6Y.js";import{s as setCustomElementsManifest}from"./chunk-L4EGOTBX-AI5g0G5Z.js";import"./entry-preview-Di-j0SPB.js";import"./lit-element-UdLzEcH-.js";import"./directive-helpers-IbK5tOA8.js";import"./index-DrFu-skq.js";var ie=Object.defineProperty,n$1=(e,r)=>ie(e,"name",{value:r,configurable:!0});function v(){return v=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)({}).hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},v.apply(null,arguments)}n$1(v,"_extends");function q$1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n$1(q$1,"_assertThisInitialized");function m(e,r){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},m(e,r)}n$1(m,"_setPrototypeOf");function U$1(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,m(e,r)}n$1(U$1,"_inheritsLoose");function F$1(e){return F$1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},F$1(e)}n$1(F$1,"_getPrototypeOf");function V$1(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}n$1(V$1,"_isNativeFunction");function T$1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T$1=n$1(function(){return!!e},"_isNativeReflectConstruct"))()}n$1(T$1,"_isNativeReflectConstruct");function N(e,r,o){if(T$1())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,r);var u=new(e.bind.apply(e,i));return o&&m(u,o.prototype),u}n$1(N,"_construct");function C(e){var r=typeof Map=="function"?new Map:void 0;return C=n$1(function(o){if(o===null||!V$1(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(o))return r.get(o);r.set(o,i)}function i(){return N(o,arguments,F$1(this).constructor)}return n$1(i,"Wrapper"),i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),m(i,o)},"_wrapNativeSuper"),C(e)}n$1(C,"_wrapNativeSuper");var oe$2={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
2
-
3
- `,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
4
-
5
- `,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
6
-
7
- `,4:`Couldn't generate valid rgb string from %s, it returned %s.
8
-
9
- `,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
10
-
11
- `,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
12
-
13
- `,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
14
-
15
- `,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
16
-
17
- `,9:`Please provide a number of steps to the modularScale helper.
18
-
19
- `,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
20
-
21
- `,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
22
-
23
- `,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
24
-
25
- `,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
26
-
27
- `,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
28
-
29
- `,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
30
-
31
- `,16:`You must provide a template to this method.
32
-
33
- `,17:`You passed an unsupported selector state to this method.
34
-
35
- `,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
36
-
37
- `,19:`fromSize and toSize must be provided as stringified numbers with the same units.
38
-
39
- `,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
40
-
41
- `,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
42
-
43
- `,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
44
-
45
- `,25:`fontFace expects localFonts to be an array.
46
-
47
- `,26:`fontFace expects fileFormats to be an array.
48
-
49
- `,27:`radialGradient requries at least 2 color-stops to properly render.
50
-
51
- `,28:`Please supply a filename to retinaImage() as the first argument.
52
-
53
- `,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
54
-
55
- `,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
56
-
57
- `,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
58
- To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
59
-
60
- `,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
61
-
62
- `,34:`borderRadius expects a radius value as a string or number as the second argument.
63
-
64
- `,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
65
-
66
- `,36:`Property must be a string value.
67
-
68
- `,37:`Syntax Error at %s.
69
-
70
- `,38:`Formula contains a function that needs parentheses at %s.
71
-
72
- `,39:`Formula is missing closing parenthesis at %s.
73
-
74
- `,40:`Formula has too many closing parentheses at %s.
75
-
76
- `,41:`All values in a formula must have the same unit or be unitless.
77
-
78
- `,42:`Please provide a number of steps to the modularScale helper.
79
-
80
- `,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
81
-
82
- `,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
83
-
84
- `,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
85
-
86
- `,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
87
-
88
- `,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
89
-
90
- `,48:`fromSize and toSize must be provided as stringified numbers with the same units.
91
-
92
- `,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
93
-
94
- `,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
95
-
96
- `,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
97
-
98
- `,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
99
-
100
- `,53:`fontFace expects localFonts to be an array.
101
-
102
- `,54:`fontFace expects fileFormats to be an array.
103
-
104
- `,55:`fontFace expects a name of a font-family.
105
-
106
- `,56:`linearGradient requries at least 2 color-stops to properly render.
107
-
108
- `,57:`radialGradient requries at least 2 color-stops to properly render.
109
-
110
- `,58:`Please supply a filename to retinaImage() as the first argument.
111
-
112
- `,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
113
-
114
- `,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
115
-
116
- `,62:`borderRadius expects a radius value as a string or number as the second argument.
117
-
118
- `,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
119
-
120
- `,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
121
-
122
- `,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
123
-
124
- `,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
125
-
126
- `,67:`You must provide a template to this method.
127
-
128
- `,68:`You passed an unsupported selector state to this method.
129
-
130
- `,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
131
-
132
- `,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
133
-
134
- `,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
135
-
136
- `,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
137
-
138
- `,73:`Please provide a valid CSS variable.
139
-
140
- `,74:`CSS variable not found and no default was provided.
141
-
142
- `,75:`important requires a valid style object, got a %s instead.
143
-
144
- `,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
145
-
146
- `,77:`remToPx expects a value in "rem" but you provided it in "%s".
147
-
148
- `,78:`base must be set in "px" or "%" but you set it in "%s".
149
- `};function se(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=r[0],u=[],h;for(h=1;h<r.length;h+=1)u.push(r[h]);return u.forEach(function(l){i=i.replace(/%[a-z]/,l)}),i}n$1(se,"format");var d=function(e){U$1(r,e);function r(o){for(var i,u=arguments.length,h=new Array(u>1?u-1:0),l=1;l<u;l++)h[l-1]=arguments[l];return i=e.call(this,se.apply(void 0,[oe$2[o]].concat(h)))||this,q$1(i)}return n$1(r,"PolishedError"),r}(C(Error));function I(e){return Math.round(e*255)}n$1(I,"colorToInt");function ue$2(e,r,o){return I(e)+","+I(r)+","+I(o)}n$1(ue$2,"convertToInt");function w(e,r,o,i){if(i===void 0&&(i=ue$2),r===0)return i(o,o,o);var u=(e%360+360)%360/60,h=(1-Math.abs(2*o-1))*r,l=h*(1-Math.abs(u%2-1)),c=0,p=0,b=0;u>=0&&u<1?(c=h,p=l):u>=1&&u<2?(c=l,p=h):u>=2&&u<3?(p=h,b=l):u>=3&&u<4?(p=l,b=h):u>=4&&u<5?(c=l,b=h):u>=5&&u<6&&(c=h,b=l);var S=o-h/2,mt=c+S,zr=p+S,yr=b+S;return i(mt,zr,yr)}n$1(w,"hslToRgb");var G$2={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 fe$2(e){if(typeof e!="string")return e;var r=e.toLowerCase();return G$2[r]?"#"+G$2[r]:e}n$1(fe$2,"nameToHex");var pe$2=/^#[a-fA-F0-9]{6}$/,le=/^#[a-fA-F0-9]{8}$/,de$2=/^#[a-fA-F0-9]{3}$/,ce$1=/^#[a-fA-F0-9]{4}$/,R=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,me$2=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,ge$1=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,he$2=/^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 $$1(e){if(typeof e!="string")throw new d(3);var r=fe$2(e);if(r.match(pe$2))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(le)){var o=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:o}}if(r.match(de$2))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(ce$1)){var i=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:i}}var u=R.exec(r);if(u)return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)};var h=me$2.exec(r.substring(0,50));if(h)return{red:parseInt(""+h[1],10),green:parseInt(""+h[2],10),blue:parseInt(""+h[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])};var l=ge$1.exec(r);if(l){var c=parseInt(""+l[1],10),p=parseInt(""+l[2],10)/100,b=parseInt(""+l[3],10)/100,S="rgb("+w(c,p,b)+")",mt=R.exec(S);if(!mt)throw new d(4,r,S);return{red:parseInt(""+mt[1],10),green:parseInt(""+mt[2],10),blue:parseInt(""+mt[3],10)}}var zr=he$2.exec(r.substring(0,50));if(zr){var yr=parseInt(""+zr[1],10),ea=parseInt(""+zr[2],10)/100,Ko=parseInt(""+zr[3],10)/100,ei="rgb("+w(yr,ea,Ko)+")",ri=R.exec(ei);if(!ri)throw new d(4,r,ei);return{red:parseInt(""+ri[1],10),green:parseInt(""+ri[2],10),blue:parseInt(""+ri[3],10),alpha:parseFloat(""+zr[4])>1?parseFloat(""+zr[4])/100:parseFloat(""+zr[4])}}throw new d(5)}n$1($$1,"parseToRgb");function be$2(e){var r=e.red/255,o=e.green/255,i=e.blue/255,u=Math.max(r,o,i),h=Math.min(r,o,i),l=(u+h)/2;if(u===h)return e.alpha!==void 0?{hue:0,saturation:0,lightness:l,alpha:e.alpha}:{hue:0,saturation:0,lightness:l};var c,p=u-h,b=l>.5?p/(2-u-h):p/(u+h);switch(u){case r:c=(o-i)/p+(o<i?6:0);break;case o:c=(i-r)/p+2;break;default:c=(r-o)/p+4;break}return c*=60,e.alpha!==void 0?{hue:c,saturation:b,lightness:l,alpha:e.alpha}:{hue:c,saturation:b,lightness:l}}n$1(be$2,"rgbToHsl");function Q$1(e){return be$2($$1(e))}n$1(Q$1,"parseToHsl");var ve$1=n$1(function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},"reduceHexValue"),O$1=ve$1;function g(e){var r=e.toString(16);return r.length===1?"0"+r:r}n$1(g,"numberToHex");function j$1(e){return g(Math.round(e*255))}n$1(j$1,"colorToHex");function ye$2(e,r,o){return O$1("#"+j$1(e)+j$1(r)+j$1(o))}n$1(ye$2,"convertToHex");function z$2(e,r,o){return w(e,r,o,ye$2)}n$1(z$2,"hslToHex");function we$1(e,r,o){if(typeof e=="number"&&typeof r=="number"&&typeof o=="number")return z$2(e,r,o);if(typeof e=="object"&&r===void 0&&o===void 0)return z$2(e.hue,e.saturation,e.lightness);throw new d(1)}n$1(we$1,"hsl");function xe$1(e,r,o,i){if(typeof e=="number"&&typeof r=="number"&&typeof o=="number"&&typeof i=="number")return i>=1?z$2(e,r,o):"rgba("+w(e,r,o)+","+i+")";if(typeof e=="object"&&r===void 0&&o===void 0&&i===void 0)return e.alpha>=1?z$2(e.hue,e.saturation,e.lightness):"rgba("+w(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new d(2)}n$1(xe$1,"hsla");function k$1(e,r,o){if(typeof e=="number"&&typeof r=="number"&&typeof o=="number")return O$1("#"+g(e)+g(r)+g(o));if(typeof e=="object"&&r===void 0&&o===void 0)return O$1("#"+g(e.red)+g(e.green)+g(e.blue));throw new d(6)}n$1(k$1,"rgb");function x(e,r,o,i){if(typeof e=="string"&&typeof r=="number"){var u=$$1(e);return"rgba("+u.red+","+u.green+","+u.blue+","+r+")"}else{if(typeof e=="number"&&typeof r=="number"&&typeof o=="number"&&typeof i=="number")return i>=1?k$1(e,r,o):"rgba("+e+","+r+","+o+","+i+")";if(typeof e=="object"&&r===void 0&&o===void 0&&i===void 0)return e.alpha>=1?k$1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new d(7)}n$1(x,"rgba");var Se=n$1(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isRgb"),Fe$2=n$1(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},"isRgba"),Ce$2=n$1(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isHsl"),ze$2=n$1(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"},"isHsla");function Y$2(e){if(typeof e!="object")throw new d(8);if(Fe$2(e))return x(e);if(Se(e))return k$1(e);if(ze$2(e))return xe$1(e);if(Ce$2(e))return we$1(e);throw new d(8)}n$1(Y$2,"toColorString");function J$2(e,r,o){return n$1(function(){var i=o.concat(Array.prototype.slice.call(arguments));return i.length>=r?e.apply(this,i):J$2(e,r,i)},"fn")}n$1(J$2,"curried");function B$2(e){return J$2(e,e.length,[])}n$1(B$2,"curry");function M$1(e,r,o){return Math.max(e,Math.min(r,o))}n$1(M$1,"guard");function Ae$2(e,r){if(r==="transparent")return r;var o=Q$1(r);return Y$2(v({},o,{lightness:M$1(0,1,o.lightness-parseFloat(e))}))}n$1(Ae$2,"darken");var Te=B$2(Ae$2),Z$2=Te;function Ie$1(e,r){if(r==="transparent")return r;var o=Q$1(r);return Y$2(v({},o,{lightness:M$1(0,1,o.lightness+parseFloat(e))}))}n$1(Ie$1,"lighten");var Re=B$2(Ie$1),X$2=Re;function je$1(e,r){if(r==="transparent")return r;var o=$$1(r),i=typeof o.alpha=="number"?o.alpha:1,u=v({},o,{alpha:M$1(0,1,+(i*100-parseFloat(e)*100).toFixed(2)/100)});return x(u)}n$1(je$1,"transparentize");var Oe$2=B$2(je$1),K$2=Oe$2,s={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"},P={app:"#F6F9FC",bar:s.lightest,content:s.lightest,preview:s.lightest,gridCellSize:10,hoverable:K$2(.9,s.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},y={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}},ke$1={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:s.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:y.fonts.base,fontCode:y.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:s.mediumdark,barHoverColor:s.secondary,barSelectedColor:s.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:s.lightest,inputBorderRadius:4},_=ke$1,$e$1={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:P.app,appContentBg:s.lightest,appPreviewBg:s.lightest,appBorderColor:s.border,appBorderRadius:4,fontBase:y.fonts.base,fontCode:y.fonts.mono,textColor:s.darkest,textInverseColor:s.lightest,textMutedColor:s.dark,barTextColor:s.mediumdark,barHoverColor:s.secondary,barSelectedColor:s.secondary,barBg:s.lightest,buttonBg:P.app,buttonBorder:s.medium,booleanBg:s.mediumlight,booleanSelectedBg:s.lightest,inputBg:s.lightest,inputBorder:s.border,inputTextColor:s.darkest,inputBorderRadius:4},E=$e$1,ee$2=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();const{logger:Be$1}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var{window:H}=ee$2,Me$2=n$1(e=>typeof e!="string"?(Be$1.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,"isColorString"),Pe$2=n$1(e=>!/(gradient|var|calc)/.test(e),"isValidColorForPolished"),Ee=n$1((e,r)=>e==="darken"?x(`${Z$2(1,r)}`,.95):e==="lighten"?x(`${X$2(1,r)}`,.95):r,"applyPolished"),re$4=n$1(e=>r=>{if(!Me$2(r)||!Pe$2(r))return r;try{return Ee(e,r)}catch{return r}},"colorFactory");re$4("lighten");re$4("darken");var te$2=n$1(()=>!H||!H.matchMedia?"light":H.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light","getPreferredColorScheme"),L$1={light:E,dark:_,normal:E},D$1=te$2(),Er$1=n$1((e={base:D$1},r)=>{let o={...L$1[D$1],...L$1[e.base]||{},...e,base:L$1[e.base]?e.base:D$1};return{...r,...o,barSelectedColor:e.barSelectedColor||o.colorSecondary}},"create"),$t$1=Object.create,ye$1=Object.defineProperty,Ht$1=Object.getOwnPropertyDescriptor,Kt$1=Object.getOwnPropertyNames,Jt$1=Object.getPrototypeOf,Qt$1=Object.prototype.hasOwnProperty,a=(e,r)=>ye$1(e,"name",{value:r,configurable:!0}),K$1=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),V=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Yt$1=(e,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of Kt$1(r))!Qt$1.call(e,u)&&u!==o&&ye$1(e,u,{get:()=>r[u],enumerable:!(i=Ht$1(r,u))||i.enumerable});return e},Me$1=(e,r,o)=>(o=e!=null?$t$1(Jt$1(e)):{},Yt$1(ye$1(o,"default",{value:e,enumerable:!0}),e)),lt$5=V((e,r)=>{(function(o){if(typeof e=="object"&&typeof r<"u")r.exports=o();else if(typeof define=="function"&&define.amd)define([],o);else{var i;typeof window<"u"?i=window:typeof global<"u"?i=global:typeof self<"u"?i=self:i=this,i.memoizerific=o()}})(function(){return a(function o(i,u,h){function l(b,S){if(!u[b]){if(!i[b]){var mt=typeof K$1=="function"&&K$1;if(!S&&mt)return mt(b,!0);if(c)return c(b,!0);var zr=new Error("Cannot find module '"+b+"'");throw zr.code="MODULE_NOT_FOUND",zr}var yr=u[b]={exports:{}};i[b][0].call(yr.exports,function(ea){var Ko=i[b][1][ea];return l(Ko||ea)},yr,yr.exports,o,i,u,h)}return u[b].exports}a(l,"s");for(var c=typeof K$1=="function"&&K$1,p=0;p<h.length;p++)l(h[p]);return l},"e")({1:[function(o,i,u){i.exports=function(h){if(typeof Map!="function"||h){var l=o("./similar");return new l}else return new Map}},{"./similar":2}],2:[function(o,i,u){function h(){return this.list=[],this.lastItem=void 0,this.size=0,this}a(h,"Similar"),h.prototype.get=function(l){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,l))return this.lastItem.val;if(c=this.indexOf(l),c>=0)return this.lastItem=this.list[c],this.list[c].val},h.prototype.set=function(l,c){var p;return this.lastItem&&this.isEqual(this.lastItem.key,l)?(this.lastItem.val=c,this):(p=this.indexOf(l),p>=0?(this.lastItem=this.list[p],this.list[p].val=c,this):(this.lastItem={key:l,val:c},this.list.push(this.lastItem),this.size++,this))},h.prototype.delete=function(l){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,l)&&(this.lastItem=void 0),c=this.indexOf(l),c>=0)return this.size--,this.list.splice(c,1)[0]},h.prototype.has=function(l){var c;return this.lastItem&&this.isEqual(this.lastItem.key,l)?!0:(c=this.indexOf(l),c>=0?(this.lastItem=this.list[c],!0):!1)},h.prototype.forEach=function(l,c){var p;for(p=0;p<this.size;p++)l.call(c||this,this.list[p].val,this.list[p].key,this)},h.prototype.indexOf=function(l){var c;for(c=0;c<this.size;c++)if(this.isEqual(this.list[c].key,l))return c;return-1},h.prototype.isEqual=function(l,c){return l===c||l!==l&&c!==c},i.exports=h},{}],3:[function(o,i,u){var h=o("map-or-similar");i.exports=function(b){var S=new h(!1),mt=[];return function(zr){var yr=a(function(){var ea=S,Ko,ei,ri=arguments.length-1,pi=Array(ri+1),li=!0,hi;if((yr.numArgs||yr.numArgs===0)&&yr.numArgs!==ri+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(hi=0;hi<ri;hi++){if(pi[hi]={cacheItem:ea,arg:arguments[hi]},ea.has(arguments[hi])){ea=ea.get(arguments[hi]);continue}li=!1,Ko=new h(!1),ea.set(arguments[hi],Ko),ea=Ko}return li&&(ea.has(arguments[ri])?ei=ea.get(arguments[ri]):li=!1),li||(ei=zr.apply(null,arguments),ea.set(arguments[ri],ei)),b>0&&(pi[ri]={cacheItem:ea,arg:arguments[ri]},li?l(mt,pi):mt.push(pi),mt.length>b&&c(mt.shift())),yr.wasMemoized=li,yr.numArgs=ri+1,ei},"memoizerific");return yr.limit=b,yr.wasMemoized=!1,yr.cache=S,yr.lru=mt,yr}};function l(b,S){var mt=b.length,zr=S.length,yr,ea,Ko;for(ea=0;ea<mt;ea++){for(yr=!0,Ko=0;Ko<zr;Ko++)if(!p(b[ea][Ko].arg,S[Ko].arg)){yr=!1;break}if(yr)break}b.push(b.splice(ea,1)[0])}a(l,"moveToMostRecentLru");function c(b){var S=b.length,mt=b[S-1],zr,yr;for(mt.cacheItem.delete(mt.arg),yr=S-2;yr>=0&&(mt=b[yr],zr=mt.cacheItem.get(mt.arg),!zr||!zr.size);yr--)mt.cacheItem.delete(mt.arg)}a(c,"removeCachedResult");function p(b,S){return b===S||b!==b&&S!==S}a(p,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),Pe$1=V(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=i;var r=Array.from({length:256},(u,h)=>"%"+((h<16?"0":"")+h.toString(16)).toUpperCase()),o=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 i(u){let h=u.length;if(h===0)return"";let l="",c=0,p=0;e:for(;p<h;p++){let b=u.charCodeAt(p);for(;b<128;){if(o[b]!==1&&(c<p&&(l+=u.slice(c,p)),c=p+1,l+=r[b]),++p===h)break e;b=u.charCodeAt(p)}if(c<p&&(l+=u.slice(c,p)),b<2048){c=p+1,l+=r[192|b>>6]+r[128|b&63];continue}if(b<55296||b>=57344){c=p+1,l+=r[224|b>>12]+r[128|b>>6&63]+r[128|b&63];continue}if(++p,p>=h)throw new Error("URI malformed");let S=u.charCodeAt(p)&1023;c=p+1,b=65536+((b&1023)<<10|S),l+=r[240|b>>18]+r[128|b>>12&63]+r[128|b>>6&63]+r[128|b&63]}return c===0?u:c<h?l+u.slice(c):l}a(i,"encodeString")}),ae$1=V(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var r=Pe$1(),o=a(h=>{switch(typeof h){case"string":return(0,r.encodeString)(h);case"bigint":case"boolean":return""+h;case"number":if(Number.isFinite(h))return h<1e21?""+h:(0,r.encodeString)(""+h);break}return h instanceof Date?(0,r.encodeString)(h.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=o;var i=a(h=>h instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=i;var u=a(h=>h,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:u,valueSerializer:e.defaultValueSerializer,keyDeserializer:u,shouldSerializeObject:e.defaultShouldSerializeObject}}),Ne$1=V(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=u,e.stringifyObject=S;var r=ae$1(),o=Pe$1();function i(mt){return mt==="__proto__"||mt==="constructor"||mt==="prototype"}a(i,"isPrototypeKey");function u(mt,zr,yr,ea,Ko){if(i(zr))return mt;let ei=mt[zr];return typeof ei=="object"&&ei!==null?ei:!ea&&(Ko||typeof yr=="number"||typeof yr=="string"&&yr*0===0&&yr.indexOf(".")===-1)?mt[zr]=[]:mt[zr]={}}a(u,"getDeepObject");var h=20,l="[]",c="[",p="]",b=".";function S(mt,zr,yr=0,ea,Ko){let{nestingSyntax:ei=r.defaultOptions.nestingSyntax,arrayRepeat:ri=r.defaultOptions.arrayRepeat,arrayRepeatSyntax:pi=r.defaultOptions.arrayRepeatSyntax,nesting:li=r.defaultOptions.nesting,delimiter:hi=r.defaultOptions.delimiter,valueSerializer:bi=r.defaultOptions.valueSerializer,shouldSerializeObject:ca=r.defaultOptions.shouldSerializeObject}=zr,ia=typeof hi=="number"?String.fromCharCode(hi):hi,Da=Ko===!0&&ri,ni=ei==="dot"||ei==="js"&&!Ko;if(yr>h)return"";let ti="",ii=!0,oi=!1;for(let ci in mt){let Ya=mt[ci],qo;ea?(qo=ea,Da?pi==="bracket"&&(qo+=l):ni?(qo+=b,qo+=ci):(qo+=c,qo+=ci,qo+=p)):qo=ci,ii||(ti+=ia),typeof Ya=="object"&&Ya!==null&&!ca(Ya)?(oi=Ya.pop!==void 0,(li||ri&&oi)&&(ti+=S(Ya,zr,yr+1,qo,oi))):(ti+=(0,o.encodeString)(qo),ti+="=",ti+=bi(Ya,ci)),ii&&(ii=!1)}return ti}a(S,"stringifyObject")}),dt$1=V((e,r)=>{var o=12,i=0,u=[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 h(p){var b=p.indexOf("%");if(b===-1)return p;for(var S=p.length,mt="",zr=0,yr=0,ea=b,Ko=o;b>-1&&b<S;){var ei=c(p[b+1],4),ri=c(p[b+2],0),pi=ei|ri,li=u[pi];if(Ko=u[256+Ko+li],yr=yr<<6|pi&u[364+li],Ko===o)mt+=p.slice(zr,ea),mt+=yr<=65535?String.fromCharCode(yr):String.fromCharCode(55232+(yr>>10),56320+(yr&1023)),yr=0,zr=b+3,b=ea=p.indexOf("%",zr);else{if(Ko===i)return null;if(b+=3,b<S&&p.charCodeAt(b)===37)continue;return null}}return mt+p.slice(zr)}a(h,"decodeURIComponent");var l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function c(p,b){var S=l[p];return S===void 0?255:S<<b}a(c,"hexCodeToInt"),r.exports=h}),vt=V(e=>{var r=e&&e.__importDefault||function(mt){return mt&&mt.__esModule?mt:{default:mt}};Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=S;var o=Ne$1(),i=ae$1(),u=r(dt$1()),h=a(mt=>{let zr=Number(mt);return Number.isNaN(zr)?mt:zr},"numberKeyDeserializer");e.numberKeyDeserializer=h;var l=a(mt=>{let zr=Number(mt);return Number.isNaN(zr)?mt:zr},"numberValueDeserializer");e.numberValueDeserializer=l;var c=/\+/g,p=a(function(){},"Empty");p.prototype=Object.create(null);function b(mt,zr,yr,ea,Ko){let ei=mt.substring(zr,yr);return ea&&(ei=ei.replace(c," ")),Ko&&(ei=(0,u.default)(ei)||ei),ei}a(b,"computeKeySlice");function S(mt,zr){let{valueDeserializer:yr=i.defaultOptions.valueDeserializer,keyDeserializer:ea=i.defaultOptions.keyDeserializer,arrayRepeatSyntax:Ko=i.defaultOptions.arrayRepeatSyntax,nesting:ei=i.defaultOptions.nesting,arrayRepeat:ri=i.defaultOptions.arrayRepeat,nestingSyntax:pi=i.defaultOptions.nestingSyntax,delimiter:li=i.defaultOptions.delimiter}=zr??{},hi=typeof li=="string"?li.charCodeAt(0):li,bi=pi==="js",ca=new p;if(typeof mt!="string")return ca;let ia=mt.length,Da="",ni=-1,ti=-1,ii=-1,oi=ca,ci,Ya="",qo="",ai=!1,ui=!1,si=!1,fi=!1,di=!1,yi=!1,gi=!1,mi=0,$i=-1,vi=-1,Ei=-1;for(let Si=0;Si<ia+1;Si++){if(mi=Si!==ia?mt.charCodeAt(Si):hi,mi===hi){if(gi=ti>ni,gi||(ti=Si),ii!==ti-1&&(qo=b(mt,ii+1,$i>-1?$i:ti,si,ai),Ya=ea(qo),ci!==void 0&&(oi=(0,o.getDeepObject)(oi,ci,Ya,bi&&di,bi&&yi))),gi||Ya!==""){gi&&(Da=mt.slice(ti+1,Si),fi&&(Da=Da.replace(c," ")),ui&&(Da=(0,u.default)(Da)||Da));let Oi=yr(Da,Ya);if(ri){let _i=oi[Ya];_i===void 0?$i>-1?oi[Ya]=[Oi]:oi[Ya]=Oi:_i.pop?_i.push(Oi):oi[Ya]=[_i,Oi]}else oi[Ya]=Oi}Da="",ni=Si,ti=Si,ai=!1,ui=!1,si=!1,fi=!1,di=!1,yi=!1,$i=-1,ii=Si,oi=ca,ci=void 0,Ya=""}else mi===93?(ri&&Ko==="bracket"&&Ei===91&&($i=vi),ei&&(pi==="index"||bi)&&ti<=ni&&(ii!==vi&&(qo=b(mt,ii+1,Si,si,ai),Ya=ea(qo),ci!==void 0&&(oi=(0,o.getDeepObject)(oi,ci,Ya,void 0,bi)),ci=Ya,si=!1,ai=!1),ii=Si,yi=!0,di=!1)):mi===46?ei&&(pi==="dot"||bi)&&ti<=ni&&(ii!==vi&&(qo=b(mt,ii+1,Si,si,ai),Ya=ea(qo),ci!==void 0&&(oi=(0,o.getDeepObject)(oi,ci,Ya,bi)),ci=Ya,si=!1,ai=!1),di=!0,yi=!1,ii=Si):mi===91?ei&&(pi==="index"||bi)&&ti<=ni&&(ii!==vi&&(qo=b(mt,ii+1,Si,si,ai),Ya=ea(qo),bi&&ci!==void 0&&(oi=(0,o.getDeepObject)(oi,ci,Ya,bi)),ci=Ya,si=!1,ai=!1,di=!1,yi=!0),ii=Si):mi===61?ti<=ni?ti=Si:ui=!0:mi===43?ti>ni?fi=!0:si=!0:mi===37&&(ti>ni?ui=!0:ai=!0);vi=Si,Ei=mi}return ca}a(S,"parse")}),xt$1=V(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=o;var r=Ne$1();function o(i,u){if(i===null||typeof i!="object")return"";let h=u??{};return(0,r.stringifyObject)(i,h)}a(o,"stringify")}),bt$1=V(e=>{var r=e&&e.__createBinding||(Object.create?function(h,l,c,p){p===void 0&&(p=c);var b=Object.getOwnPropertyDescriptor(l,c);(!b||("get"in b?!l.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:a(function(){return l[c]},"get")}),Object.defineProperty(h,p,b)}:function(h,l,c,p){p===void 0&&(p=c),h[p]=l[c]}),o=e&&e.__exportStar||function(h,l){for(var c in h)c!=="default"&&!Object.prototype.hasOwnProperty.call(l,c)&&r(l,h,c)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var i=vt();Object.defineProperty(e,"parse",{enumerable:!0,get:a(function(){return i.parse},"get")});var u=xt$1();Object.defineProperty(e,"stringify",{enumerable:!0,get:a(function(){return u.stringify},"get")}),o(ae$1(),e)});const{once:Er}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function k(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]")return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}a(k,"isPlainObject");var Ie="[object RegExp]",Ve="[object String]",Be="[object Number]",ze$1="[object Boolean]",ve="[object Arguments]",We$1="[object Symbol]",Fe$1="[object Date]",qe$1="[object Map]",Ue$1="[object Set]",$e="[object Array]",He$1="[object Function]",Ke$1="[object ArrayBuffer]",oe$1="[object Object]",Je$1="[object Error]",Qe$1="[object DataView]",Ye$1="[object Uint8Array]",Xe$1="[object Uint8ClampedArray]",Ge$1="[object Uint16Array]",Ze$1="[object Uint32Array]",et$1="[object BigUint64Array]",tt$1="[object Int8Array]",rt$1="[object Int16Array]",nt$1="[object Int32Array]",ot="[object BigInt64Array]",at$1="[object Float32Array]",it$1="[object Float64Array]";function xe(e){return Object.getOwnPropertySymbols(e).filter(r=>Object.prototype.propertyIsEnumerable.call(e,r))}a(xe,"getSymbols");function be$1(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}a(be$1,"getTag");function Oe$1(e,r){if(typeof e==typeof r)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===r;case"number":return e===r||Object.is(e,r);case"function":return e===r;case"object":return M(e,r)}return M(e,r)}a(Oe$1,"isEqual");function M(e,r,o){if(Object.is(e,r))return!0;let i=be$1(e),u=be$1(r);if(i===ve&&(i=oe$1),u===ve&&(u=oe$1),i!==u)return!1;switch(i){case Ve:return e.toString()===r.toString();case Be:{let c=e.valueOf(),p=r.valueOf();return c===p||Number.isNaN(c)&&Number.isNaN(p)}case ze$1:case Fe$1:case We$1:return Object.is(e.valueOf(),r.valueOf());case Ie:return e.source===r.source&&e.flags===r.flags;case He$1:return e===r}o=o??new Map;let h=o.get(e),l=o.get(r);if(h!=null&&l!=null)return h===r;o.set(e,r),o.set(r,e);try{switch(i){case qe$1:{if(e.size!==r.size)return!1;for(let[c,p]of e.entries())if(!r.has(c)||!M(p,r.get(c),o))return!1;return!0}case Ue$1:{if(e.size!==r.size)return!1;let c=Array.from(e.values()),p=Array.from(r.values());for(let b=0;b<c.length;b++){let S=c[b],mt=p.findIndex(zr=>M(S,zr,o));if(mt===-1)return!1;p.splice(mt,1)}return!0}case $e:case Ye$1:case Xe$1:case Ge$1:case Ze$1:case et$1:case tt$1:case rt$1:case nt$1:case ot:case at$1:case it$1:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(r)||e.length!==r.length)return!1;for(let c=0;c<e.length;c++)if(!M(e[c],r[c],o))return!1;return!0}case Ke$1:return e.byteLength!==r.byteLength?!1:M(new Uint8Array(e),new Uint8Array(r),o);case Qe$1:return e.byteLength!==r.byteLength||e.byteOffset!==r.byteOffset?!1:M(e.buffer,r.buffer,o);case Je$1:return e.name===r.name&&e.message===r.message;case oe$1:{if(!(M(e.constructor,r.constructor,o)||k(e)&&k(r)))return!1;let c=[...Object.keys(e),...xe(e)],p=[...Object.keys(r),...xe(r)];if(c.length!==p.length)return!1;for(let b=0;b<c.length;b++){let S=c[b],mt=e[S];if(!Object.prototype.hasOwnProperty.call(r,S))return!1;let zr=r[S];if(!M(mt,zr,o))return!1}return!0}default:return!1}}finally{o.delete(e),o.delete(r)}}a(M,"areObjectsEqual");var ue$1=Me$1(lt$5()),J$1=Me$1(bt$1());function Ot$1(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var u=i.reduce(function(c,p){var b=p.match(/\n([\t ]+|(?!\s).)/g);return b?c.concat(b.map(function(S){var mt,zr;return(zr=(mt=S.match(/[\t ]/g))===null||mt===void 0?void 0:mt.length)!==null&&zr!==void 0?zr:0})):c},[]);if(u.length){var h=new RegExp(`
150
- [ ]{`+Math.min.apply(Math,u)+"}","g");i=i.map(function(c){return c.replace(h,`
151
- `)})}i[0]=i[0].replace(/^\r?\n/,"");var l=i[0];return r.forEach(function(c,p){var b=l.match(/(?:^|\n)( *)$/),S=b?b[1]:"",mt=c;typeof c=="string"&&c.includes(`
152
- `)&&(mt=String(c).split(`
153
- `).map(function(zr,yr){return yr===0?zr:""+S+zr}).join(`
154
- `)),l+=mt+i[p+1]}),l}a(Ot$1,"dedent");var Rr$1=/\/([^/]+)\/(?:(.*)_)?([^/]+)?/,Rt$1=(0,ue$1.default)(1e3)(e=>{let r={viewMode:void 0,storyId:void 0,refId:void 0};if(e){let[,o,i,u]=e.toLowerCase().match(Rr$1)||[];o&&Object.assign(r,{viewMode:o,storyId:u,refId:i})}return r}),ce=Symbol("Deeply equal"),je=a((e,r)=>{if(typeof e!=typeof r)return r;if(Oe$1(e,r))return ce;if(Array.isArray(e)&&Array.isArray(r)){let o=r.reduce((i,u,h)=>{let l=je(e[h],u);return l!==ce&&(i[h]=l),i},new Array(r.length));return r.length>=e.length?o:o.concat(new Array(e.length-r.length).fill(void 0))}return k(e)&&k(r)?Object.keys({...e,...r}).reduce((o,i)=>{let u=je(e==null?void 0:e[i],r==null?void 0:r[i]);return u===ce?o:Object.assign(o,{[i]:u})},{}):r},"deepDiff"),Et$1=/^[a-zA-Z0-9 _-]*$/,Pr$1=/^-?[0-9]+(\.[0-9]+)?$/,Pt$1=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,wt$1=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Ae$1=a((e="",r)=>e===null||e===""||!Et$1.test(e)?!1:r==null||r instanceof Date||typeof r=="number"||typeof r=="boolean"?!0:typeof r=="string"?Et$1.test(r)||Pr$1.test(r)||Pt$1.test(r)||wt$1.test(r):Array.isArray(r)?r.every(o=>Ae$1(e,o)):k(r)?Object.entries(r).every(([o,i])=>Ae$1(o,i)):!1,"validateArgs"),De$1=a(e=>e===void 0?"!undefined":e===null?"!null":typeof e=="string"?Pt$1.test(e)?`!hex(${e.slice(1)})`:wt$1.test(e)?`!${e.replace(/[\s%]/g,"")}`:e:typeof e=="boolean"?`!${e}`:e instanceof Date?`!date(${e.toISOString()})`:Array.isArray(e)?e.map(De$1):k(e)?Object.entries(e).reduce((r,[o,i])=>Object.assign(r,{[o]:De$1(i)}),{}):e,"encodeSpecialValues"),wr=a(e=>{switch(e){case"%20":return"+";case"%5B":return"[";case"%5D":return"]";case"%2C":return",";case"%3A":return":"}return e},"decodeKnownQueryChar"),Nr$1=/%[0-9A-F]{2}/g,Vn$1=a((e,r)=>{let o=je(e,r);if(!o||o===ce)return"";let i=Object.entries(o).reduce((u,[h,l])=>Ae$1(h,l)?Object.assign(u,{[h]:l}):(Er.warn(Ot$1`
155
- Omitted potentially unsafe URL args.
156
-
157
- More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
158
- `),u),{});return(0,J$1.stringify)(De$1(i),{delimiter:";",nesting:!0,nestingSyntax:"js"}).replace(Nr$1,wr).split(";").map(u=>u.replace("=",":")).join(";")},"buildArgsParam"),Sr=(0,ue$1.default)(1e3)(e=>e!==void 0?(0,J$1.parse)(e):{}),Nt=a(e=>Sr(e.search?e.search.slice(1):""),"queryFromLocation"),St$1=(0,ue$1.default)(1e3)((e,r,o=!0)=>{if(o){if(typeof r!="string")throw new Error("startsWith only works with string targets");return e&&e.startsWith(r)?{path:e}:null}let i=typeof r=="string"&&e===r,u=e&&r&&e.match(r);return i||u?{path:e}:null}),_t$1=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)({}).hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},Q.apply(null,arguments)}a(Q,"_extends");var B$1;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(B$1||(B$1={}));var jt$1=function(e){return Object.freeze(e)};function _r$1(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}a(_r$1,"warning");var At$1="beforeunload",jr$1="popstate";function Lt$1(e){e===void 0&&(e={});var r=e,o=r.window,i=o===void 0?document.defaultView:o,u=i.history;function h(){var ia=i.location,Da=ia.pathname,ni=ia.search,ti=ia.hash,ii=u.state||{};return[ii.idx,jt$1({pathname:Da,search:ni,hash:ti,state:ii.usr||null,key:ii.key||"default"})]}a(h,"getIndexAndLocation");var l=null;function c(){if(l)yr.call(l),l=null;else{var ia=B$1.Pop,Da=h(),ni=Da[0],ti=Da[1];if(yr.length)if(ni!=null){var ii=S-ni;ii&&(l={action:ia,location:ti,retry:a(function(){bi(ii*-1)},"retry")},bi(ii))}else _r$1(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else pi(ia)}}a(c,"handlePop"),i.addEventListener(jr$1,c);var p=B$1.Pop,b=h(),S=b[0],mt=b[1],zr=Tt$1(),yr=Tt$1();S==null&&(S=0,u.replaceState(Q({},u.state,{idx:S}),""));function ea(ia){return typeof ia=="string"?ia:fe$1(ia)}a(ea,"createHref");function Ko(ia,Da){return Da===void 0&&(Da=null),jt$1(Q({pathname:mt.pathname,hash:"",search:""},typeof ia=="string"?U(ia):ia,{state:Da,key:Ar$1()}))}a(Ko,"getNextLocation");function ei(ia,Da){return[{usr:ia.state,key:ia.key,idx:Da},ea(ia)]}a(ei,"getHistoryStateAndUrl");function ri(ia,Da,ni){return!yr.length||(yr.call({action:ia,location:Da,retry:ni}),!1)}a(ri,"allowTx");function pi(ia){p=ia;var Da=h();S=Da[0],mt=Da[1],zr.call({action:p,location:mt})}a(pi,"applyTx");function li(ia,Da){var ni=B$1.Push,ti=Ko(ia,Da);function ii(){li(ia,Da)}if(a(ii,"retry"),ri(ni,ti,ii)){var oi=ei(ti,S+1),ci=oi[0],Ya=oi[1];try{u.pushState(ci,"",Ya)}catch{i.location.assign(Ya)}pi(ni)}}a(li,"push");function hi(ia,Da){var ni=B$1.Replace,ti=Ko(ia,Da);function ii(){hi(ia,Da)}if(a(ii,"retry"),ri(ni,ti,ii)){var oi=ei(ti,S),ci=oi[0],Ya=oi[1];u.replaceState(ci,"",Ya),pi(ni)}}a(hi,"replace");function bi(ia){u.go(ia)}a(bi,"go");var ca={get action(){return p},get location(){return mt},createHref:ea,push:li,replace:hi,go:bi,back:a(function(){bi(-1)},"back"),forward:a(function(){bi(1)},"forward"),listen:a(function(ia){return zr.push(ia)},"listen"),block:a(function(ia){var Da=yr.push(ia);return yr.length===1&&i.addEventListener(At$1,Dt$1),function(){Da(),yr.length||i.removeEventListener(At$1,Dt$1)}},"block")};return ca}a(Lt$1,"createBrowserHistory");function Dt$1(e){e.preventDefault(),e.returnValue=""}a(Dt$1,"promptBeforeUnload");function Tt$1(){var e=[];return{get length(){return e.length},push:a(function(r){return e.push(r),function(){e=e.filter(function(o){return o!==r})}},"push"),call:a(function(r){e.forEach(function(o){return o&&o(r)})},"call")}}a(Tt$1,"createEvents");function Ar$1(){return Math.random().toString(36).substr(2,8)}a(Ar$1,"createKey");function fe$1(e){var r=e.pathname,o=r===void 0?"/":r,i=e.search,u=i===void 0?"":i,h=e.hash,l=h===void 0?"":h;return u&&u!=="?"&&(o+=u.charAt(0)==="?"?u:"?"+u),l&&l!=="#"&&(o+=l.charAt(0)==="#"?l:"#"+l),o}a(fe$1,"createPath");function U(e){var r={};if(e){var o=e.indexOf("#");o>=0&&(r.hash=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");i>=0&&(r.search=e.substr(i),e=e.substr(0,i)),e&&(r.pathname=e)}return r}a(U,"parsePath");function pe$1(e,r){if(!e)throw new Error(r)}a(pe$1,"invariant");function kt$1(e,r){if(!e){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}a(kt$1,"warning");var Y$1=reactExports.createContext(null);Y$1.displayName="Navigation";var X$1=reactExports.createContext(null);X$1.displayName="Location";var he$1=reactExports.createContext({outlet:null,matches:[]});he$1.displayName="Route";function G$1(e){let{basename:r="/",children:o=null,location:i,navigationType:u=B$1.Pop,navigator:h,static:l=!1}=e;Z$1()&&pe$1(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=Ir(r),p=reactExports.useMemo(()=>({basename:c,navigator:h,static:l}),[c,h,l]);typeof i=="string"&&(i=U(i));let{pathname:b="/",search:S="",hash:mt="",state:zr=null,key:yr="default"}=i,ea=reactExports.useMemo(()=>{let Ko=Mr$1(b,c);return Ko==null?null:{pathname:Ko,search:S,hash:mt,state:zr,key:yr}},[c,b,S,mt,zr,yr]);return kt$1(ea!=null,'<Router basename="'+c+'"> is not able to match the URL '+('"'+b+S+mt+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),ea==null?null:reactExports.createElement(Y$1.Provider,{value:p},reactExports.createElement(X$1.Provider,{children:o,value:{location:ea,navigationType:u}}))}a(G$1,"Router");function Ce$1(e){Z$1()||pe$1(!1,"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=reactExports.useContext(Y$1),{hash:i,pathname:u,search:h}=te$1(e),l=u;if(r!=="/"){let c=kr(e),p=c!=null&&c.endsWith("/");l=u==="/"?r+(p?"/":""):Vt$1([r,u])}return o.createHref({pathname:l,search:h,hash:i})}a(Ce$1,"useHref");function Z$1(){return reactExports.useContext(X$1)!=null}a(Z$1,"useInRouterContext");function z$1(){return Z$1()||pe$1(!1,"useLocation() may be used only in the context of a <Router> component."),reactExports.useContext(X$1).location}a(z$1,"useLocation");function ee$1(){Z$1()||pe$1(!1,"useNavigate() may be used only in the context of a <Router> component.");let{basename:e,navigator:r}=reactExports.useContext(Y$1),{matches:o}=reactExports.useContext(he$1),{pathname:i}=z$1(),u=JSON.stringify(o.map(l=>l.pathnameBase)),h=reactExports.useRef(!1);return reactExports.useEffect(()=>{h.current=!0}),reactExports.useCallback(function(l,c){if(c===void 0&&(c={}),kt$1(h.current,"You should call navigate() in a React.useEffect(), not when your component is first rendered."),!h.current)return;if(typeof l=="number"){r.go(l);return}let p=It$1(l,JSON.parse(u),i);e!=="/"&&(p.pathname=Vt$1([e,p.pathname])),(c.replace?r.replace:r.push)(p,c.state)},[e,r,u,i])}a(ee$1,"useNavigate");function te$1(e){let{matches:r}=reactExports.useContext(he$1),{pathname:o}=z$1(),i=JSON.stringify(r.map(u=>u.pathnameBase));return reactExports.useMemo(()=>It$1(e,JSON.parse(i),o),[e,i,o])}a(te$1,"useResolvedPath");function Mt$1(e,r){r===void 0&&(r="/");let{pathname:o,search:i="",hash:u=""}=typeof e=="string"?U(e):e;return{pathname:o?o.startsWith("/")?o:Cr$1(o,r):r,search:Vr$1(i),hash:Br$1(u)}}a(Mt$1,"resolvePath");function Cr$1(e,r){let o=r.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?o.length>1&&o.pop():i!=="."&&o.push(i)}),o.length>1?o.join("/"):"/"}a(Cr$1,"resolvePathname");function It$1(e,r,o){let i=typeof e=="string"?U(e):e,u=e===""||i.pathname===""?"/":i.pathname,h;if(u==null)h=o;else{let c=r.length-1;if(u.startsWith("..")){let p=u.split("/");for(;p[0]==="..";)p.shift(),c-=1;i.pathname=p.join("/")}h=c>=0?r[c]:"/"}let l=Mt$1(i,h);return u&&u!=="/"&&u.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}a(It$1,"resolveTo");function kr(e){return e===""||e.pathname===""?"/":typeof e=="string"?U(e).pathname:e.pathname}a(kr,"getToPathname");function Mr$1(e,r){if(r==="/")return e;if(!e.toLowerCase().startsWith(r.toLowerCase()))return null;let o=e.charAt(r.length);return o&&o!=="/"?null:e.slice(r.length)||"/"}a(Mr$1,"stripBasename");var Vt$1=a(e=>e.join("/").replace(/\/\/+/g,"/"),"joinPaths"),Ir=a(e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),"normalizePathname"),Vr$1=a(e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,"normalizeSearch"),Br$1=a(e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,"normalizeHash");function de$1(){return de$1=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e},de$1.apply(this,arguments)}a(de$1,"_extends");function zt$1(e,r){if(e==null)return{};var o={},i=Object.keys(e),u,h;for(h=0;h<i.length;h++)u=i[h],!(r.indexOf(u)>=0)&&(o[u]=e[u]);return o}a(zt$1,"_objectWithoutPropertiesLoose");var Ur$1=["onClick","reloadDocument","replace","state","target","to"],$r$1=["aria-current","caseSensitive","className","end","style","to"];function Wt$1(e){let{basename:r,children:o,window:i}=e,u=reactExports.useRef();u.current==null&&(u.current=Lt$1({window:i}));let h=u.current,[l,c]=reactExports.useState({action:h.action,location:h.location});return reactExports.useLayoutEffect(()=>h.listen(c),[h]),reactExports.createElement(G$1,{basename:r,children:o,location:l.location,navigationType:l.action,navigator:h})}a(Wt$1,"BrowserRouter");function Hr$1(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}a(Hr$1,"isModifiedEvent");var me$1=reactExports.forwardRef(a(function(e,r){let{onClick:o,reloadDocument:i,replace:u=!1,state:h,target:l,to:c}=e,p=zt$1(e,Ur$1),b=Ce$1(c),S=Jr$1(c,{replace:u,state:h,target:l});function mt(zr){o&&o(zr),!zr.defaultPrevented&&!i&&S(zr)}return a(mt,"handleClick"),reactExports.createElement("a",de$1({},p,{href:b,onClick:mt,ref:r,target:l}))},"LinkWithRef"));me$1.displayName="Link";var Kr$1=reactExports.forwardRef(a(function(e,r){let{"aria-current":o="page",caseSensitive:i=!1,className:u="",end:h=!1,style:l,to:c}=e,p=zt$1(e,$r$1),b=z$1(),S=te$1(c),mt=b.pathname,zr=S.pathname;i||(mt=mt.toLowerCase(),zr=zr.toLowerCase());let yr=mt===zr||!h&&mt.startsWith(zr)&&mt.charAt(zr.length)==="/",ea=yr?o:void 0,Ko;typeof u=="function"?Ko=u({isActive:yr}):Ko=[u,yr?"active":null].filter(Boolean).join(" ");let ei=typeof l=="function"?l({isActive:yr}):l;return reactExports.createElement(me$1,de$1({},p,{"aria-current":ea,className:Ko,ref:r,style:ei,to:c}))},"NavLinkWithRef"));Kr$1.displayName="NavLink";function Jr$1(e,r){let{target:o,replace:i,state:u}=r===void 0?{}:r,h=ee$1(),l=z$1(),c=te$1(e);return reactExports.useCallback(p=>{if(p.button===0&&(!o||o==="_self")&&!Hr$1(p)){p.preventDefault();let b=!!i||fe$1(l)===fe$1(c);h(e,{replace:b,state:u})}},[l,h,c,i,u,o,e])}a(Jr$1,"useLinkClickHandler");var{document:Ft}=_t$1,Xr$1=a(()=>`${Ft.location.pathname}?`,"getBase"),Gr$1=a(({to:e,children:r,...o})=>React.createElement(me$1,{to:`${Xr$1()}path=${e}`,...o},r),"Link");Gr$1.displayName="QueryLink";var qt$1=a(({children:e})=>{let r=z$1(),{path:o,singleStory:i}=Nt(r),{viewMode:u,storyId:h,refId:l}=Rt$1(o);return React.createElement(React.Fragment,null,e({path:o||"/",location:r,viewMode:u,storyId:h,refId:l,singleStory:i==="true"}))},"Location");qt$1.displayName="QueryLocation";function Ut$1({children:e,path:r,startsWith:o=!1}){return React.createElement(qt$1,null,({path:i,...u})=>e({match:St$1(i,r,o),...u}))}a(Ut$1,"Match");Ut$1.displayName="QueryMatch";function Zr$1(e){let{children:r,...o}=e;return o.startsWith===void 0&&(o.startsWith=!1),React.createElement(Ut$1,{...o},({match:i})=>i?r:null)}a(Zr$1,"Route");Zr$1.displayName="Route";var re$3={exports:{}};const SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$1=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var constants$1={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},define_process_env_default={};const debug$1=typeof process=="object"&&define_process_env_default&&define_process_env_default.NODE_DEBUG&&/\bsemver\b/i.test(define_process_env_default.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};var debug_1=debug$1;(function(e,r){const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:u}=constants$1,h=debug_1;r=e.exports={};const l=r.re=[],c=r.safeRe=[],p=r.src=[],b=r.t={};let S=0;const mt="[a-zA-Z0-9-]",zr=[["\\s",1],["\\d",u],[mt,i]],yr=Ko=>{for(const[ei,ri]of zr)Ko=Ko.split(`${ei}*`).join(`${ei}{0,${ri}}`).split(`${ei}+`).join(`${ei}{1,${ri}}`);return Ko},ea=(Ko,ei,ri)=>{const pi=yr(ei),li=S++;h(Ko,li,ei),b[Ko]=li,p[li]=ei,l[li]=new RegExp(ei,ri?"g":void 0),c[li]=new RegExp(pi,ri?"g":void 0)};ea("NUMERICIDENTIFIER","0|[1-9]\\d*"),ea("NUMERICIDENTIFIERLOOSE","\\d+"),ea("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${mt}*`),ea("MAINVERSION",`(${p[b.NUMERICIDENTIFIER]})\\.(${p[b.NUMERICIDENTIFIER]})\\.(${p[b.NUMERICIDENTIFIER]})`),ea("MAINVERSIONLOOSE",`(${p[b.NUMERICIDENTIFIERLOOSE]})\\.(${p[b.NUMERICIDENTIFIERLOOSE]})\\.(${p[b.NUMERICIDENTIFIERLOOSE]})`),ea("PRERELEASEIDENTIFIER",`(?:${p[b.NUMERICIDENTIFIER]}|${p[b.NONNUMERICIDENTIFIER]})`),ea("PRERELEASEIDENTIFIERLOOSE",`(?:${p[b.NUMERICIDENTIFIERLOOSE]}|${p[b.NONNUMERICIDENTIFIER]})`),ea("PRERELEASE",`(?:-(${p[b.PRERELEASEIDENTIFIER]}(?:\\.${p[b.PRERELEASEIDENTIFIER]})*))`),ea("PRERELEASELOOSE",`(?:-?(${p[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[b.PRERELEASEIDENTIFIERLOOSE]})*))`),ea("BUILDIDENTIFIER",`${mt}+`),ea("BUILD",`(?:\\+(${p[b.BUILDIDENTIFIER]}(?:\\.${p[b.BUILDIDENTIFIER]})*))`),ea("FULLPLAIN",`v?${p[b.MAINVERSION]}${p[b.PRERELEASE]}?${p[b.BUILD]}?`),ea("FULL",`^${p[b.FULLPLAIN]}$`),ea("LOOSEPLAIN",`[v=\\s]*${p[b.MAINVERSIONLOOSE]}${p[b.PRERELEASELOOSE]}?${p[b.BUILD]}?`),ea("LOOSE",`^${p[b.LOOSEPLAIN]}$`),ea("GTLT","((?:<|>)?=?)"),ea("XRANGEIDENTIFIERLOOSE",`${p[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),ea("XRANGEIDENTIFIER",`${p[b.NUMERICIDENTIFIER]}|x|X|\\*`),ea("XRANGEPLAIN",`[v=\\s]*(${p[b.XRANGEIDENTIFIER]})(?:\\.(${p[b.XRANGEIDENTIFIER]})(?:\\.(${p[b.XRANGEIDENTIFIER]})(?:${p[b.PRERELEASE]})?${p[b.BUILD]}?)?)?`),ea("XRANGEPLAINLOOSE",`[v=\\s]*(${p[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[b.XRANGEIDENTIFIERLOOSE]})(?:${p[b.PRERELEASELOOSE]})?${p[b.BUILD]}?)?)?`),ea("XRANGE",`^${p[b.GTLT]}\\s*${p[b.XRANGEPLAIN]}$`),ea("XRANGELOOSE",`^${p[b.GTLT]}\\s*${p[b.XRANGEPLAINLOOSE]}$`),ea("COERCEPLAIN",`(^|[^\\d])(\\d{1,${o}})(?:\\.(\\d{1,${o}}))?(?:\\.(\\d{1,${o}}))?`),ea("COERCE",`${p[b.COERCEPLAIN]}(?:$|[^\\d])`),ea("COERCEFULL",p[b.COERCEPLAIN]+`(?:${p[b.PRERELEASE]})?(?:${p[b.BUILD]})?(?:$|[^\\d])`),ea("COERCERTL",p[b.COERCE],!0),ea("COERCERTLFULL",p[b.COERCEFULL],!0),ea("LONETILDE","(?:~>?)"),ea("TILDETRIM",`(\\s*)${p[b.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",ea("TILDE",`^${p[b.LONETILDE]}${p[b.XRANGEPLAIN]}$`),ea("TILDELOOSE",`^${p[b.LONETILDE]}${p[b.XRANGEPLAINLOOSE]}$`),ea("LONECARET","(?:\\^)"),ea("CARETTRIM",`(\\s*)${p[b.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",ea("CARET",`^${p[b.LONECARET]}${p[b.XRANGEPLAIN]}$`),ea("CARETLOOSE",`^${p[b.LONECARET]}${p[b.XRANGEPLAINLOOSE]}$`),ea("COMPARATORLOOSE",`^${p[b.GTLT]}\\s*(${p[b.LOOSEPLAIN]})$|^$`),ea("COMPARATOR",`^${p[b.GTLT]}\\s*(${p[b.FULLPLAIN]})$|^$`),ea("COMPARATORTRIM",`(\\s*)${p[b.GTLT]}\\s*(${p[b.LOOSEPLAIN]}|${p[b.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",ea("HYPHENRANGE",`^\\s*(${p[b.XRANGEPLAIN]})\\s+-\\s+(${p[b.XRANGEPLAIN]})\\s*$`),ea("HYPHENRANGELOOSE",`^\\s*(${p[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[b.XRANGEPLAINLOOSE]})\\s*$`),ea("STAR","(<|>)?=?\\s*\\*"),ea("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),ea("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$3,re$3.exports);var reExports=re$3.exports;const looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=e=>e?typeof e!="object"?looseOption:e:emptyOpts;var parseOptions_1=parseOptions$1;const numeric=/^[0-9]+$/,compareIdentifiers$1=(e,r)=>{const o=numeric.test(e),i=numeric.test(r);return o&&i&&(e=+e,r=+r),e===r?0:o&&!i?-1:i&&!o?1:e<r?-1:1},rcompareIdentifiers=(e,r)=>compareIdentifiers$1(r,e);var identifiers$1={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers};const debug=debug_1,{MAX_LENGTH,MAX_SAFE_INTEGER}=constants$1,{safeRe:re$2,t:t$1}=reExports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers$1;let SemVer$d=class wi{constructor(r,o){if(o=parseOptions(o),r instanceof wi){if(r.loose===!!o.loose&&r.includePrerelease===!!o.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",r,o),this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease;const i=r.trim().match(o.loose?re$2[t$1.LOOSE]:re$2[t$1.FULL]);if(!i)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(u=>{if(/^[0-9]+$/.test(u)){const h=+u;if(h>=0&&h<MAX_SAFE_INTEGER)return h}return u}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(debug("SemVer.compare",this.version,this.options,r),!(r instanceof wi)){if(typeof r=="string"&&r===this.version)return 0;r=new wi(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof wi||(r=new wi(r,this.options)),compareIdentifiers(this.major,r.major)||compareIdentifiers(this.minor,r.minor)||compareIdentifiers(this.patch,r.patch)}comparePre(r){if(r instanceof wi||(r=new wi(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let o=0;do{const i=this.prerelease[o],u=r.prerelease[o];if(debug("prerelease compare",o,i,u),i===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(i===void 0)return-1;if(i===u)continue;return compareIdentifiers(i,u)}while(++o)}compareBuild(r){r instanceof wi||(r=new wi(r,this.options));let o=0;do{const i=this.build[o],u=r.build[o];if(debug("build compare",o,i,u),i===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(i===void 0)return-1;if(i===u)continue;return compareIdentifiers(i,u)}while(++o)}inc(r,o,i){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",o,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",o,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",o,i),this.inc("pre",o,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",o,i),this.inc("pre",o,i);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const u=Number(i)?1:0;if(!o&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[u];else{let h=this.prerelease.length;for(;--h>=0;)typeof this.prerelease[h]=="number"&&(this.prerelease[h]++,h=-2);if(h===-1){if(o===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(u)}}if(o){let h=[o,u];i===!1&&(h=[o]),compareIdentifiers(this.prerelease[0],o)===0?isNaN(this.prerelease[1])&&(this.prerelease=h):this.prerelease=h}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var semver$1=SemVer$d;const SemVer$c=semver$1,parse$6=(e,r,o=!1)=>{if(e instanceof SemVer$c)return e;try{return new SemVer$c(e,r)}catch(i){if(!o)return null;throw i}};var parse_1=parse$6;const parse$5=parse_1,valid$2=(e,r)=>{const o=parse$5(e,r);return o?o.version:null};var valid_1=valid$2;const parse$4=parse_1,clean$1=(e,r)=>{const o=parse$4(e.trim().replace(/^[=v]+/,""),r);return o?o.version:null};var clean_1=clean$1;const SemVer$b=semver$1,inc$1=(e,r,o,i,u)=>{typeof o=="string"&&(u=i,i=o,o=void 0);try{return new SemVer$b(e instanceof SemVer$b?e.version:e,o).inc(r,i,u).version}catch{return null}};var inc_1=inc$1;const parse$3=parse_1,diff$1=(e,r)=>{const o=parse$3(e,null,!0),i=parse$3(r,null,!0),u=o.compare(i);if(u===0)return null;const h=u>0,l=h?o:i,c=h?i:o,p=!!l.prerelease.length;if(!!c.prerelease.length&&!p)return!c.patch&&!c.minor?"major":l.patch?"patch":l.minor?"minor":"major";const S=p?"pre":"";return o.major!==i.major?S+"major":o.minor!==i.minor?S+"minor":o.patch!==i.patch?S+"patch":"prerelease"};var diff_1=diff$1;const SemVer$a=semver$1,major$1=(e,r)=>new SemVer$a(e,r).major;var major_1=major$1;const SemVer$9=semver$1,minor$1=(e,r)=>new SemVer$9(e,r).minor;var minor_1=minor$1;const SemVer$8=semver$1,patch$1=(e,r)=>new SemVer$8(e,r).patch;var patch_1=patch$1;const parse$2=parse_1,prerelease$1=(e,r)=>{const o=parse$2(e,r);return o&&o.prerelease.length?o.prerelease:null};var prerelease_1=prerelease$1;const SemVer$7=semver$1,compare$b=(e,r,o)=>new SemVer$7(e,o).compare(new SemVer$7(r,o));var compare_1=compare$b;const compare$a=compare_1,rcompare$1=(e,r,o)=>compare$a(r,e,o);var rcompare_1=rcompare$1;const compare$9=compare_1,compareLoose$1=(e,r)=>compare$9(e,r,!0);var compareLoose_1=compareLoose$1;const SemVer$6=semver$1,compareBuild$3=(e,r,o)=>{const i=new SemVer$6(e,o),u=new SemVer$6(r,o);return i.compare(u)||i.compareBuild(u)};var compareBuild_1=compareBuild$3;const compareBuild$2=compareBuild_1,sort$1=(e,r)=>e.sort((o,i)=>compareBuild$2(o,i,r));var sort_1=sort$1;const compareBuild$1=compareBuild_1,rsort$1=(e,r)=>e.sort((o,i)=>compareBuild$1(i,o,r));var rsort_1=rsort$1;const compare$8=compare_1,gt$5=(e,r,o)=>compare$8(e,r,o)>0;var gt_1=gt$5;const compare$7=compare_1,lt$4=(e,r,o)=>compare$7(e,r,o)<0;var lt_1=lt$4;const compare$6=compare_1,eq$2=(e,r,o)=>compare$6(e,r,o)===0;var eq_1=eq$2;const compare$5=compare_1,neq$2=(e,r,o)=>compare$5(e,r,o)!==0;var neq_1=neq$2;const compare$4=compare_1,gte$3=(e,r,o)=>compare$4(e,r,o)>=0;var gte_1=gte$3;const compare$3=compare_1,lte$3=(e,r,o)=>compare$3(e,r,o)<=0;var lte_1=lte$3;const eq$1=eq_1,neq$1=neq_1,gt$4=gt_1,gte$2=gte_1,lt$3=lt_1,lte$2=lte_1,cmp$1=(e,r,o,i)=>{switch(r){case"===":return typeof e=="object"&&(e=e.version),typeof o=="object"&&(o=o.version),e===o;case"!==":return typeof e=="object"&&(e=e.version),typeof o=="object"&&(o=o.version),e!==o;case"":case"=":case"==":return eq$1(e,o,i);case"!=":return neq$1(e,o,i);case">":return gt$4(e,o,i);case">=":return gte$2(e,o,i);case"<":return lt$3(e,o,i);case"<=":return lte$2(e,o,i);default:throw new TypeError(`Invalid operator: ${r}`)}};var cmp_1=cmp$1;const SemVer$5=semver$1,parse$1=parse_1,{safeRe:re$1,t}=reExports,coerce$1=(e,r)=>{if(e instanceof SemVer$5)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;r=r||{};let o=null;if(!r.rtl)o=e.match(r.includePrerelease?re$1[t.COERCEFULL]:re$1[t.COERCE]);else{const p=r.includePrerelease?re$1[t.COERCERTLFULL]:re$1[t.COERCERTL];let b;for(;(b=p.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||b.index+b[0].length!==o.index+o[0].length)&&(o=b),p.lastIndex=b.index+b[1].length+b[2].length;p.lastIndex=-1}if(o===null)return null;const i=o[2],u=o[3]||"0",h=o[4]||"0",l=r.includePrerelease&&o[5]?`-${o[5]}`:"",c=r.includePrerelease&&o[6]?`+${o[6]}`:"";return parse$1(`${i}.${u}.${h}${l}${c}`,r)};var coerce_1=coerce$1;class LRUCache{constructor(){this.max=1e3,this.map=new Map}get(r){const o=this.map.get(r);if(o!==void 0)return this.map.delete(r),this.map.set(r,o),o}delete(r){return this.map.delete(r)}set(r,o){if(!this.delete(r)&&o!==void 0){if(this.map.size>=this.max){const u=this.map.keys().next().value;this.delete(u)}this.map.set(r,o)}return this}}var lrucache=LRUCache,range,hasRequiredRange;function requireRange(){if(hasRequiredRange)return range;hasRequiredRange=1;const e=/\s+/g;class r{constructor(qo,ai){if(ai=u(ai),qo instanceof r)return qo.loose===!!ai.loose&&qo.includePrerelease===!!ai.includePrerelease?qo:new r(qo.raw,ai);if(qo instanceof h)return this.raw=qo.value,this.set=[[qo]],this.formatted=void 0,this;if(this.options=ai,this.loose=!!ai.loose,this.includePrerelease=!!ai.includePrerelease,this.raw=qo.trim().replace(e," "),this.set=this.raw.split("||").map(ui=>this.parseRange(ui.trim())).filter(ui=>ui.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const ui=this.set[0];if(this.set=this.set.filter(si=>!Ko(si[0])),this.set.length===0)this.set=[ui];else if(this.set.length>1){for(const si of this.set)if(si.length===1&&ei(si[0])){this.set=[si];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let qo=0;qo<this.set.length;qo++){qo>0&&(this.formatted+="||");const ai=this.set[qo];for(let ui=0;ui<ai.length;ui++)ui>0&&(this.formatted+=" "),this.formatted+=ai[ui].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(qo){const ui=((this.options.includePrerelease&&yr)|(this.options.loose&&ea))+":"+qo,si=i.get(ui);if(si)return si;const fi=this.options.loose,di=fi?p[b.HYPHENRANGELOOSE]:p[b.HYPHENRANGE];qo=qo.replace(di,oi(this.options.includePrerelease)),l("hyphen replace",qo),qo=qo.replace(p[b.COMPARATORTRIM],S),l("comparator trim",qo),qo=qo.replace(p[b.TILDETRIM],mt),l("tilde trim",qo),qo=qo.replace(p[b.CARETTRIM],zr),l("caret trim",qo);let yi=qo.split(" ").map(vi=>pi(vi,this.options)).join(" ").split(/\s+/).map(vi=>ii(vi,this.options));fi&&(yi=yi.filter(vi=>(l("loose invalid filter",vi,this.options),!!vi.match(p[b.COMPARATORLOOSE])))),l("range list",yi);const gi=new Map,mi=yi.map(vi=>new h(vi,this.options));for(const vi of mi){if(Ko(vi))return[vi];gi.set(vi.value,vi)}gi.size>1&&gi.has("")&&gi.delete("");const $i=[...gi.values()];return i.set(ui,$i),$i}intersects(qo,ai){if(!(qo instanceof r))throw new TypeError("a Range is required");return this.set.some(ui=>ri(ui,ai)&&qo.set.some(si=>ri(si,ai)&&ui.every(fi=>si.every(di=>fi.intersects(di,ai)))))}test(qo){if(!qo)return!1;if(typeof qo=="string")try{qo=new c(qo,this.options)}catch{return!1}for(let ai=0;ai<this.set.length;ai++)if(ci(this.set[ai],qo,this.options))return!0;return!1}}range=r;const o=lrucache,i=new o,u=parseOptions_1,h=requireComparator(),l=debug_1,c=semver$1,{safeRe:p,t:b,comparatorTrimReplace:S,tildeTrimReplace:mt,caretTrimReplace:zr}=reExports,{FLAG_INCLUDE_PRERELEASE:yr,FLAG_LOOSE:ea}=constants$1,Ko=Ya=>Ya.value==="<0.0.0-0",ei=Ya=>Ya.value==="",ri=(Ya,qo)=>{let ai=!0;const ui=Ya.slice();let si=ui.pop();for(;ai&&ui.length;)ai=ui.every(fi=>si.intersects(fi,qo)),si=ui.pop();return ai},pi=(Ya,qo)=>(l("comp",Ya,qo),Ya=ca(Ya,qo),l("caret",Ya),Ya=hi(Ya,qo),l("tildes",Ya),Ya=Da(Ya,qo),l("xrange",Ya),Ya=ti(Ya,qo),l("stars",Ya),Ya),li=Ya=>!Ya||Ya.toLowerCase()==="x"||Ya==="*",hi=(Ya,qo)=>Ya.trim().split(/\s+/).map(ai=>bi(ai,qo)).join(" "),bi=(Ya,qo)=>{const ai=qo.loose?p[b.TILDELOOSE]:p[b.TILDE];return Ya.replace(ai,(ui,si,fi,di,yi)=>{l("tilde",Ya,ui,si,fi,di,yi);let gi;return li(si)?gi="":li(fi)?gi=`>=${si}.0.0 <${+si+1}.0.0-0`:li(di)?gi=`>=${si}.${fi}.0 <${si}.${+fi+1}.0-0`:yi?(l("replaceTilde pr",yi),gi=`>=${si}.${fi}.${di}-${yi} <${si}.${+fi+1}.0-0`):gi=`>=${si}.${fi}.${di} <${si}.${+fi+1}.0-0`,l("tilde return",gi),gi})},ca=(Ya,qo)=>Ya.trim().split(/\s+/).map(ai=>ia(ai,qo)).join(" "),ia=(Ya,qo)=>{l("caret",Ya,qo);const ai=qo.loose?p[b.CARETLOOSE]:p[b.CARET],ui=qo.includePrerelease?"-0":"";return Ya.replace(ai,(si,fi,di,yi,gi)=>{l("caret",Ya,si,fi,di,yi,gi);let mi;return li(fi)?mi="":li(di)?mi=`>=${fi}.0.0${ui} <${+fi+1}.0.0-0`:li(yi)?fi==="0"?mi=`>=${fi}.${di}.0${ui} <${fi}.${+di+1}.0-0`:mi=`>=${fi}.${di}.0${ui} <${+fi+1}.0.0-0`:gi?(l("replaceCaret pr",gi),fi==="0"?di==="0"?mi=`>=${fi}.${di}.${yi}-${gi} <${fi}.${di}.${+yi+1}-0`:mi=`>=${fi}.${di}.${yi}-${gi} <${fi}.${+di+1}.0-0`:mi=`>=${fi}.${di}.${yi}-${gi} <${+fi+1}.0.0-0`):(l("no pr"),fi==="0"?di==="0"?mi=`>=${fi}.${di}.${yi}${ui} <${fi}.${di}.${+yi+1}-0`:mi=`>=${fi}.${di}.${yi}${ui} <${fi}.${+di+1}.0-0`:mi=`>=${fi}.${di}.${yi} <${+fi+1}.0.0-0`),l("caret return",mi),mi})},Da=(Ya,qo)=>(l("replaceXRanges",Ya,qo),Ya.split(/\s+/).map(ai=>ni(ai,qo)).join(" ")),ni=(Ya,qo)=>{Ya=Ya.trim();const ai=qo.loose?p[b.XRANGELOOSE]:p[b.XRANGE];return Ya.replace(ai,(ui,si,fi,di,yi,gi)=>{l("xRange",Ya,ui,si,fi,di,yi,gi);const mi=li(fi),$i=mi||li(di),vi=$i||li(yi),Ei=vi;return si==="="&&Ei&&(si=""),gi=qo.includePrerelease?"-0":"",mi?si===">"||si==="<"?ui="<0.0.0-0":ui="*":si&&Ei?($i&&(di=0),yi=0,si===">"?(si=">=",$i?(fi=+fi+1,di=0,yi=0):(di=+di+1,yi=0)):si==="<="&&(si="<",$i?fi=+fi+1:di=+di+1),si==="<"&&(gi="-0"),ui=`${si+fi}.${di}.${yi}${gi}`):$i?ui=`>=${fi}.0.0${gi} <${+fi+1}.0.0-0`:vi&&(ui=`>=${fi}.${di}.0${gi} <${fi}.${+di+1}.0-0`),l("xRange return",ui),ui})},ti=(Ya,qo)=>(l("replaceStars",Ya,qo),Ya.trim().replace(p[b.STAR],"")),ii=(Ya,qo)=>(l("replaceGTE0",Ya,qo),Ya.trim().replace(p[qo.includePrerelease?b.GTE0PRE:b.GTE0],"")),oi=Ya=>(qo,ai,ui,si,fi,di,yi,gi,mi,$i,vi,Ei)=>(li(ui)?ai="":li(si)?ai=`>=${ui}.0.0${Ya?"-0":""}`:li(fi)?ai=`>=${ui}.${si}.0${Ya?"-0":""}`:di?ai=`>=${ai}`:ai=`>=${ai}${Ya?"-0":""}`,li(mi)?gi="":li($i)?gi=`<${+mi+1}.0.0-0`:li(vi)?gi=`<${mi}.${+$i+1}.0-0`:Ei?gi=`<=${mi}.${$i}.${vi}-${Ei}`:Ya?gi=`<${mi}.${$i}.${+vi+1}-0`:gi=`<=${gi}`,`${ai} ${gi}`.trim()),ci=(Ya,qo,ai)=>{for(let ui=0;ui<Ya.length;ui++)if(!Ya[ui].test(qo))return!1;if(qo.prerelease.length&&!ai.includePrerelease){for(let ui=0;ui<Ya.length;ui++)if(l(Ya[ui].semver),Ya[ui].semver!==h.ANY&&Ya[ui].semver.prerelease.length>0){const si=Ya[ui].semver;if(si.major===qo.major&&si.minor===qo.minor&&si.patch===qo.patch)return!0}return!1}return!0};return range}var comparator,hasRequiredComparator;function requireComparator(){if(hasRequiredComparator)return comparator;hasRequiredComparator=1;const e=Symbol("SemVer ANY");class r{static get ANY(){return e}constructor(S,mt){if(mt=o(mt),S instanceof r){if(S.loose===!!mt.loose)return S;S=S.value}S=S.trim().split(/\s+/).join(" "),l("comparator",S,mt),this.options=mt,this.loose=!!mt.loose,this.parse(S),this.semver===e?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(S){const mt=this.options.loose?i[u.COMPARATORLOOSE]:i[u.COMPARATOR],zr=S.match(mt);if(!zr)throw new TypeError(`Invalid comparator: ${S}`);this.operator=zr[1]!==void 0?zr[1]:"",this.operator==="="&&(this.operator=""),zr[2]?this.semver=new c(zr[2],this.options.loose):this.semver=e}toString(){return this.value}test(S){if(l("Comparator.test",S,this.options.loose),this.semver===e||S===e)return!0;if(typeof S=="string")try{S=new c(S,this.options)}catch{return!1}return h(S,this.operator,this.semver,this.options)}intersects(S,mt){if(!(S instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new p(S.value,mt).test(this.value):S.operator===""?S.value===""?!0:new p(this.value,mt).test(S.semver):(mt=o(mt),mt.includePrerelease&&(this.value==="<0.0.0-0"||S.value==="<0.0.0-0")||!mt.includePrerelease&&(this.value.startsWith("<0.0.0")||S.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&S.operator.startsWith(">")||this.operator.startsWith("<")&&S.operator.startsWith("<")||this.semver.version===S.semver.version&&this.operator.includes("=")&&S.operator.includes("=")||h(this.semver,"<",S.semver,mt)&&this.operator.startsWith(">")&&S.operator.startsWith("<")||h(this.semver,">",S.semver,mt)&&this.operator.startsWith("<")&&S.operator.startsWith(">")))}}comparator=r;const o=parseOptions_1,{safeRe:i,t:u}=reExports,h=cmp_1,l=debug_1,c=semver$1,p=requireRange();return comparator}const Range$9=requireRange(),satisfies$4=(e,r,o)=>{try{r=new Range$9(r,o)}catch{return!1}return r.test(e)};var satisfies_1=satisfies$4;const Range$8=requireRange(),toComparators$1=(e,r)=>new Range$8(e,r).set.map(o=>o.map(i=>i.value).join(" ").trim().split(" "));var toComparators_1=toComparators$1;const SemVer$4=semver$1,Range$7=requireRange(),maxSatisfying$1=(e,r,o)=>{let i=null,u=null,h=null;try{h=new Range$7(r,o)}catch{return null}return e.forEach(l=>{h.test(l)&&(!i||u.compare(l)===-1)&&(i=l,u=new SemVer$4(i,o))}),i};var maxSatisfying_1=maxSatisfying$1;const SemVer$3=semver$1,Range$6=requireRange(),minSatisfying$1=(e,r,o)=>{let i=null,u=null,h=null;try{h=new Range$6(r,o)}catch{return null}return e.forEach(l=>{h.test(l)&&(!i||u.compare(l)===1)&&(i=l,u=new SemVer$3(i,o))}),i};var minSatisfying_1=minSatisfying$1;const SemVer$2=semver$1,Range$5=requireRange(),gt$3=gt_1,minVersion$1=(e,r)=>{e=new Range$5(e,r);let o=new SemVer$2("0.0.0");if(e.test(o)||(o=new SemVer$2("0.0.0-0"),e.test(o)))return o;o=null;for(let i=0;i<e.set.length;++i){const u=e.set[i];let h=null;u.forEach(l=>{const c=new SemVer$2(l.semver.version);switch(l.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!h||gt$3(c,h))&&(h=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),h&&(!o||gt$3(o,h))&&(o=h)}return o&&e.test(o)?o:null};var minVersion_1=minVersion$1;const Range$4=requireRange(),validRange$1=(e,r)=>{try{return new Range$4(e,r).range||"*"}catch{return null}};var valid$1=validRange$1;const SemVer$1=semver$1,Comparator$2=requireComparator(),{ANY:ANY$1}=Comparator$2,Range$3=requireRange(),satisfies$3=satisfies_1,gt$2=gt_1,lt$2=lt_1,lte$1=lte_1,gte$1=gte_1,outside$3=(e,r,o,i)=>{e=new SemVer$1(e,i),r=new Range$3(r,i);let u,h,l,c,p;switch(o){case">":u=gt$2,h=lte$1,l=lt$2,c=">",p=">=";break;case"<":u=lt$2,h=gte$1,l=gt$2,c="<",p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies$3(e,r,i))return!1;for(let b=0;b<r.set.length;++b){const S=r.set[b];let mt=null,zr=null;if(S.forEach(yr=>{yr.semver===ANY$1&&(yr=new Comparator$2(">=0.0.0")),mt=mt||yr,zr=zr||yr,u(yr.semver,mt.semver,i)?mt=yr:l(yr.semver,zr.semver,i)&&(zr=yr)}),mt.operator===c||mt.operator===p||(!zr.operator||zr.operator===c)&&h(e,zr.semver))return!1;if(zr.operator===p&&l(e,zr.semver))return!1}return!0};var outside_1=outside$3;const outside$2=outside_1,gtr$1=(e,r,o)=>outside$2(e,r,">",o);var gtr_1=gtr$1;const outside$1=outside_1,ltr$1=(e,r,o)=>outside$1(e,r,"<",o);var ltr_1=ltr$1;const Range$2=requireRange(),intersects$1=(e,r,o)=>(e=new Range$2(e,o),r=new Range$2(r,o),e.intersects(r,o));var intersects_1=intersects$1;const satisfies$2=satisfies_1,compare$2=compare_1;var simplify=(e,r,o)=>{const i=[];let u=null,h=null;const l=e.sort((S,mt)=>compare$2(S,mt,o));for(const S of l)satisfies$2(S,r,o)?(h=S,u||(u=S)):(h&&i.push([u,h]),h=null,u=null);u&&i.push([u,null]);const c=[];for(const[S,mt]of i)S===mt?c.push(S):!mt&&S===l[0]?c.push("*"):mt?S===l[0]?c.push(`<=${mt}`):c.push(`${S} - ${mt}`):c.push(`>=${S}`);const p=c.join(" || "),b=typeof r.raw=="string"?r.raw:String(r);return p.length<b.length?p:r};const Range$1=requireRange(),Comparator$1=requireComparator(),{ANY}=Comparator$1,satisfies$1=satisfies_1,compare$1=compare_1,subset$1=(e,r,o={})=>{if(e===r)return!0;e=new Range$1(e,o),r=new Range$1(r,o);let i=!1;e:for(const u of e.set){for(const h of r.set){const l=simpleSubset(u,h,o);if(i=i||l!==null,l)continue e}if(i)return!1}return!0},minimumVersionWithPreRelease=[new Comparator$1(">=0.0.0-0")],minimumVersion=[new Comparator$1(">=0.0.0")],simpleSubset=(e,r,o)=>{if(e===r)return!0;if(e.length===1&&e[0].semver===ANY){if(r.length===1&&r[0].semver===ANY)return!0;o.includePrerelease?e=minimumVersionWithPreRelease:e=minimumVersion}if(r.length===1&&r[0].semver===ANY){if(o.includePrerelease)return!0;r=minimumVersion}const i=new Set;let u,h;for(const yr of e)yr.operator===">"||yr.operator===">="?u=higherGT(u,yr,o):yr.operator==="<"||yr.operator==="<="?h=lowerLT(h,yr,o):i.add(yr.semver);if(i.size>1)return null;let l;if(u&&h){if(l=compare$1(u.semver,h.semver,o),l>0)return null;if(l===0&&(u.operator!==">="||h.operator!=="<="))return null}for(const yr of i){if(u&&!satisfies$1(yr,String(u),o)||h&&!satisfies$1(yr,String(h),o))return null;for(const ea of r)if(!satisfies$1(yr,String(ea),o))return!1;return!0}let c,p,b,S,mt=h&&!o.includePrerelease&&h.semver.prerelease.length?h.semver:!1,zr=u&&!o.includePrerelease&&u.semver.prerelease.length?u.semver:!1;mt&&mt.prerelease.length===1&&h.operator==="<"&&mt.prerelease[0]===0&&(mt=!1);for(const yr of r){if(S=S||yr.operator===">"||yr.operator===">=",b=b||yr.operator==="<"||yr.operator==="<=",u){if(zr&&yr.semver.prerelease&&yr.semver.prerelease.length&&yr.semver.major===zr.major&&yr.semver.minor===zr.minor&&yr.semver.patch===zr.patch&&(zr=!1),yr.operator===">"||yr.operator===">="){if(c=higherGT(u,yr,o),c===yr&&c!==u)return!1}else if(u.operator===">="&&!satisfies$1(u.semver,String(yr),o))return!1}if(h){if(mt&&yr.semver.prerelease&&yr.semver.prerelease.length&&yr.semver.major===mt.major&&yr.semver.minor===mt.minor&&yr.semver.patch===mt.patch&&(mt=!1),yr.operator==="<"||yr.operator==="<="){if(p=lowerLT(h,yr,o),p===yr&&p!==h)return!1}else if(h.operator==="<="&&!satisfies$1(h.semver,String(yr),o))return!1}if(!yr.operator&&(h||u)&&l!==0)return!1}return!(u&&b&&!h&&l!==0||h&&S&&!u&&l!==0||zr||mt)},higherGT=(e,r,o)=>{if(!e)return r;const i=compare$1(e.semver,r.semver,o);return i>0?e:i<0||r.operator===">"&&e.operator===">="?r:e},lowerLT=(e,r,o)=>{if(!e)return r;const i=compare$1(e.semver,r.semver,o);return i<0?e:i>0||r.operator==="<"&&e.operator==="<="?r:e};var subset_1=subset$1;const internalRe=reExports,constants=constants$1,SemVer=semver$1,identifiers=identifiers$1,parse=parse_1,valid=valid_1,clean=clean_1,inc=inc_1,diff=diff_1,major=major_1,minor=minor_1,patch=patch_1,prerelease=prerelease_1,compare=compare_1,rcompare=rcompare_1,compareLoose=compareLoose_1,compareBuild=compareBuild_1,sort=sort_1,rsort=rsort_1,gt$1=gt_1,lt$1=lt_1,eq=eq_1,neq=neq_1,gte=gte_1,lte=lte_1,cmp=cmp_1,coerce=coerce_1,Comparator=requireComparator(),Range=requireRange(),satisfies=satisfies_1,toComparators=toComparators_1,maxSatisfying=maxSatisfying_1,minSatisfying=minSatisfying_1,minVersion=minVersion_1,validRange=valid$1,outside=outside_1,gtr=gtr_1,ltr=ltr_1,intersects=intersects_1,simplifyRange=simplify,subset=subset_1;var semver={parse,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt:gt$1,lt:lt$1,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers};const D=getDefaultExportFromCjs(semver);var Ar=Object.create,Ae=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,_r=Object.getOwnPropertyNames,br=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty,n=(e,r)=>Ae(e,"name",{value:r,configurable:!0}),fe=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,o)=>(typeof require<"u"?require:r)[o]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),jt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),L=(e,r)=>{for(var o in r)Ae(e,o,{get:r[o],enumerable:!0})},Cr=(e,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of _r(r))!Mr.call(e,u)&&u!==o&&Ae(e,u,{get:()=>r[u],enumerable:!(i=Pr(r,u))||i.enumerable});return e},Pe=(e,r,o)=>(o=e!=null?Ar(br(e)):{},Cr(Ae(o,"default",{value:e,enumerable:!0}),e)),ze=jt((e,r)=>{(function(o){if(typeof e=="object"&&typeof r<"u")r.exports=o();else if(typeof define=="function"&&define.amd)define([],o);else{var i;typeof window<"u"?i=window:typeof global<"u"?i=global:typeof self<"u"?i=self:i=this,i.memoizerific=o()}})(function(){return n(function o(i,u,h){function l(b,S){if(!u[b]){if(!i[b]){var mt=typeof fe=="function"&&fe;if(!S&&mt)return mt(b,!0);if(c)return c(b,!0);var zr=new Error("Cannot find module '"+b+"'");throw zr.code="MODULE_NOT_FOUND",zr}var yr=u[b]={exports:{}};i[b][0].call(yr.exports,function(ea){var Ko=i[b][1][ea];return l(Ko||ea)},yr,yr.exports,o,i,u,h)}return u[b].exports}n(l,"s");for(var c=typeof fe=="function"&&fe,p=0;p<h.length;p++)l(h[p]);return l},"e")({1:[function(o,i,u){i.exports=function(h){if(typeof Map!="function"||h){var l=o("./similar");return new l}else return new Map}},{"./similar":2}],2:[function(o,i,u){function h(){return this.list=[],this.lastItem=void 0,this.size=0,this}n(h,"Similar"),h.prototype.get=function(l){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,l))return this.lastItem.val;if(c=this.indexOf(l),c>=0)return this.lastItem=this.list[c],this.list[c].val},h.prototype.set=function(l,c){var p;return this.lastItem&&this.isEqual(this.lastItem.key,l)?(this.lastItem.val=c,this):(p=this.indexOf(l),p>=0?(this.lastItem=this.list[p],this.list[p].val=c,this):(this.lastItem={key:l,val:c},this.list.push(this.lastItem),this.size++,this))},h.prototype.delete=function(l){var c;if(this.lastItem&&this.isEqual(this.lastItem.key,l)&&(this.lastItem=void 0),c=this.indexOf(l),c>=0)return this.size--,this.list.splice(c,1)[0]},h.prototype.has=function(l){var c;return this.lastItem&&this.isEqual(this.lastItem.key,l)?!0:(c=this.indexOf(l),c>=0?(this.lastItem=this.list[c],!0):!1)},h.prototype.forEach=function(l,c){var p;for(p=0;p<this.size;p++)l.call(c||this,this.list[p].val,this.list[p].key,this)},h.prototype.indexOf=function(l){var c;for(c=0;c<this.size;c++)if(this.isEqual(this.list[c].key,l))return c;return-1},h.prototype.isEqual=function(l,c){return l===c||l!==l&&c!==c},i.exports=h},{}],3:[function(o,i,u){var h=o("map-or-similar");i.exports=function(b){var S=new h(!1),mt=[];return function(zr){var yr=n(function(){var ea=S,Ko,ei,ri=arguments.length-1,pi=Array(ri+1),li=!0,hi;if((yr.numArgs||yr.numArgs===0)&&yr.numArgs!==ri+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(hi=0;hi<ri;hi++){if(pi[hi]={cacheItem:ea,arg:arguments[hi]},ea.has(arguments[hi])){ea=ea.get(arguments[hi]);continue}li=!1,Ko=new h(!1),ea.set(arguments[hi],Ko),ea=Ko}return li&&(ea.has(arguments[ri])?ei=ea.get(arguments[ri]):li=!1),li||(ei=zr.apply(null,arguments),ea.set(arguments[ri],ei)),b>0&&(pi[ri]={cacheItem:ea,arg:arguments[ri]},li?l(mt,pi):mt.push(pi),mt.length>b&&c(mt.shift())),yr.wasMemoized=li,yr.numArgs=ri+1,ei},"memoizerific");return yr.limit=b,yr.wasMemoized=!1,yr.cache=S,yr.lru=mt,yr}};function l(b,S){var mt=b.length,zr=S.length,yr,ea,Ko;for(ea=0;ea<mt;ea++){for(yr=!0,Ko=0;Ko<zr;Ko++)if(!p(b[ea][Ko].arg,S[Ko].arg)){yr=!1;break}if(yr)break}b.push(b.splice(ea,1)[0])}n(l,"moveToMostRecentLru");function c(b){var S=b.length,mt=b[S-1],zr,yr;for(mt.cacheItem.delete(mt.arg),yr=S-2;yr>=0&&(mt=b[yr],zr=mt.cacheItem.get(mt.arg),!zr||!zr.size);yr--)mt.cacheItem.delete(mt.arg)}n(c,"removeCachedResult");function p(b,S){return b===S||b!==b&&S!==S}n(p,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),K0=jt((e,r)=>{(function(o,i){var u={version:"2.14.2",areas:{},apis:{},nsdelim:".",inherit:n(function(l,c){for(var p in l)c.hasOwnProperty(p)||Object.defineProperty(c,p,Object.getOwnPropertyDescriptor(l,p));return c},"inherit"),stringify:n(function(l,c){return l===void 0||typeof l=="function"?l+"":JSON.stringify(l,c||u.replace)},"stringify"),parse:n(function(l,c){try{return JSON.parse(l,c||u.revive)}catch{return l}},"parse"),fn:n(function(l,c){u.storeAPI[l]=c;for(var p in u.apis)u.apis[p][l]=c},"fn"),get:n(function(l,c){return l.getItem(c)},"get"),set:n(function(l,c,p){l.setItem(c,p)},"set"),remove:n(function(l,c){l.removeItem(c)},"remove"),key:n(function(l,c){return l.key(c)},"key"),length:n(function(l){return l.length},"length"),clear:n(function(l){l.clear()},"clear"),Store:n(function(l,c,p){var b=u.inherit(u.storeAPI,function(mt,zr,yr){return arguments.length===0?b.getAll():typeof zr=="function"?b.transact(mt,zr,yr):zr!==void 0?b.set(mt,zr,yr):typeof mt=="string"||typeof mt=="number"?b.get(mt):typeof mt=="function"?b.each(mt):mt?b.setAll(mt,zr):b.clear()});b._id=l;try{var S="__store2_test";c.setItem(S,"ok"),b._area=c,c.removeItem(S)}catch{b._area=u.storage("fake")}return b._ns=p||"",u.areas[l]||(u.areas[l]=b._area),u.apis[b._ns+b._id]||(u.apis[b._ns+b._id]=b),b},"Store"),storeAPI:{area:n(function(l,c){var p=this[l];return(!p||!p.area)&&(p=u.Store(l,c,this._ns),this[l]||(this[l]=p)),p},"area"),namespace:n(function(l,c,p){if(p=p||this._delim||u.nsdelim,!l)return this._ns?this._ns.substring(0,this._ns.length-p.length):"";var b=l,S=this[b];if((!S||!S.namespace)&&(S=u.Store(this._id,this._area,this._ns+b+p),S._delim=p,this[b]||(this[b]=S),!c))for(var mt in u.areas)S.area(mt,u.areas[mt]);return S},"namespace"),isFake:n(function(l){return l?(this._real=this._area,this._area=u.storage("fake")):l===!1&&(this._area=this._real||this._area),this._area.name==="fake"},"isFake"),toString:n(function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},"toString"),has:n(function(l){return this._area.has?this._area.has(this._in(l)):this._in(l)in this._area},"has"),size:n(function(){return this.keys().length},"size"),each:n(function(l,c){for(var p=0,b=u.length(this._area);p<b;p++){var S=this._out(u.key(this._area,p));if(S!==void 0&&l.call(this,S,this.get(S),c)===!1)break;b>u.length(this._area)&&(b--,p--)}return c||this},"each"),keys:n(function(l){return this.each(function(c,p,b){b.push(c)},l||[])},"keys"),get:n(function(l,c){var p=u.get(this._area,this._in(l)),b;return typeof c=="function"&&(b=c,c=null),p!==null?u.parse(p,b):c??p},"get"),getAll:n(function(l){return this.each(function(c,p,b){b[c]=p},l||{})},"getAll"),transact:n(function(l,c,p){var b=this.get(l,p),S=c(b);return this.set(l,S===void 0?b:S),this},"transact"),set:n(function(l,c,p){var b=this.get(l),S;return b!=null&&p===!1?c:(typeof p=="function"&&(S=p,p=void 0),u.set(this._area,this._in(l),u.stringify(c,S),p)||b)},"set"),setAll:n(function(l,c){var p,b;for(var S in l)b=l[S],this.set(S,b,c)!==b&&(p=!0);return p},"setAll"),add:n(function(l,c,p){var b=this.get(l);if(b instanceof Array)c=b.concat(c);else if(b!==null){var S=typeof b;if(S===typeof c&&S==="object"){for(var mt in c)b[mt]=c[mt];c=b}else c=b+c}return u.set(this._area,this._in(l),u.stringify(c,p)),c},"add"),remove:n(function(l,c){var p=this.get(l,c);return u.remove(this._area,this._in(l)),p},"remove"),clear:n(function(){return this._ns?this.each(function(l){u.remove(this._area,this._in(l))},1):u.clear(this._area),this},"clear"),clearAll:n(function(){var l=this._area;for(var c in u.areas)u.areas.hasOwnProperty(c)&&(this._area=u.areas[c],this.clear());return this._area=l,this},"clearAll"),_in:n(function(l){return typeof l!="string"&&(l=u.stringify(l)),this._ns?this._ns+l:l},"_in"),_out:n(function(l){return this._ns?l&&l.indexOf(this._ns)===0?l.substring(this._ns.length):void 0:l},"_out")},storage:n(function(l){return u.inherit(u.storageAPI,{items:{},name:l})},"storage"),storageAPI:{length:0,has:n(function(l){return this.items.hasOwnProperty(l)},"has"),key:n(function(l){var c=0;for(var p in this.items)if(this.has(p)&&l===c++)return p},"key"),setItem:n(function(l,c){this.has(l)||this.length++,this.items[l]=c},"setItem"),removeItem:n(function(l){this.has(l)&&(delete this.items[l],this.length--)},"removeItem"),getItem:n(function(l){return this.has(l)?this.items[l]:null},"getItem"),clear:n(function(){for(var l in this.items)this.removeItem(l)},"clear")}},h=u.Store("local",function(){try{return localStorage}catch{}}());h.local=h,h._=u,h.area("session",function(){try{return sessionStorage}catch{}}()),h.area("page",u.storage("page")),typeof i=="function"&&i.amd!==void 0?i("store2",[],function(){return h}):typeof r<"u"&&r.exports?r.exports=h:(o.store&&(u.conflict=o.store),o.store=h)})(e,e&&e.define)});const{deprecate:kt}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_STORIES:Yo,SHARED_STATE_CHANGED:Rr,SHARED_STATE_SET:ye,STORY_CHANGED:Qo}=__STORYBOOK_MODULE_CORE_EVENTS__;var Ut=n(({api:e,state:r})=>reactExports.createContext({api:e,state:r}),"createContext");const{logger:g0}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function We(e,r){let o={};for(let i=0;i<e.length;i++){let u=e[i],h=r(u);o[h]=(o[h]??0)+1}return o}n(We,"countBy");function _e(e,r){let o=[],i=[];for(let u=0;u<e.length;u++){let h=e[u];r(h)?o.push(h):i.push(h)}return[o,i]}n(_e,"partition");function q(e,r){let o={};for(let i=0;i<r.length;i++){let u=r[i];Object.prototype.hasOwnProperty.call(e,u)&&(o[u]=e[u])}return o}n(q,"pick");function Gt(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n(Gt,"isTypedArray");function $t(e){return e==null||typeof e!="object"&&typeof e!="function"}n($t,"isPrimitive");function Ke(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(e.toString()!=="[object Object]")return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}n(Ke,"isPlainObject");function qe(e,r){let o={},i=Object.keys(e);for(let u=0;u<i.length;u++){let h=i[u],l=e[h];o[h]=r(l,h,e)}return o}n(qe,"mapValues");function Wt(e){return J(e)}n(Wt,"cloneDeep");function J(e,r=new Map){if($t(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let o=new Array(e.length);r.set(e,o);for(let i=0;i<e.length;i++)o[i]=J(e[i],r);return Object.prototype.hasOwnProperty.call(e,"index")&&(o.index=e.index),Object.prototype.hasOwnProperty.call(e,"input")&&(o.input=e.input),o}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let o=new RegExp(e.source,e.flags);return o.lastIndex=e.lastIndex,o}if(e instanceof Map){let o=new Map;r.set(e,o);for(let[i,u]of e.entries())o.set(i,J(u,r));return o}if(e instanceof Set){let o=new Set;r.set(e,o);for(let i of e.values())o.add(J(i,r));return o}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(Gt(e)){let o=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,o);for(let i=0;i<e.length;i++)o[i]=J(e[i],r);return o}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let o=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,o),de(o,e,r),o}if(typeof File<"u"&&e instanceof File){let o=new File([e],e.name,{type:e.type});return r.set(e,o),de(o,e,r),o}if(e instanceof Blob){let o=new Blob([e],{type:e.type});return r.set(e,o),de(o,e,r),o}if(e instanceof Error){let o=new e.constructor;return r.set(e,o),o.message=e.message,o.name=e.name,o.stack=e.stack,o.cause=e.cause,de(o,e,r),o}if(typeof e=="object"&&e!==null){let o={};return r.set(e,o),de(o,e,r),o}return e}n(J,"cloneDeepImpl");function de(e,r,o){let i=Object.keys(r);for(let u=0;u<i.length;u++){let h=i[u],l=Object.getOwnPropertyDescriptor(r,h);(l!=null&&l.writable||l!=null&&l.set)&&(e[h]=J(r[h],o))}}n(de,"copyProperties");function Z(e){return typeof e=="object"&&e!==null}n(Z,"isObjectLike");function be(e,r){let o=Object.keys(r);for(let i=0;i<o.length;i++){let u=o[i],h=r[u],l=e[u];Array.isArray(h)?e[u]=be(l??[],h):Z(l)&&Z(h)?e[u]=be(l??{},h):(l===void 0||h!==void 0)&&(e[u]=h)}return e}n(be,"merge");function he(e,r){return be(Wt(e),r)}n(he,"toMerged");function W(e,r,o){let i=Object.keys(r);for(let u=0;u<i.length;u++){let h=i[u],l=r[h],c=e[h],p=o(c,l,h,e,r);p!=null?e[h]=p:Array.isArray(l)?e[h]=W(c??[],l,o):Z(c)&&Z(l)?e[h]=W(c??{},l,o):(c===void 0||l!==void 0)&&(e[h]=l)}return e}n(W,"mergeWith");var Kt="[object RegExp]",qt="[object String]",Yt="[object Number]",Qt="[object Boolean]",Ye="[object Arguments]",Jt="[object Symbol]",Zt="[object Date]",Xt="[object Map]",e0="[object Set]",t0="[object Array]",r0="[object Function]",a0="[object ArrayBuffer]",Me="[object Object]",n0="[object Error]",o0="[object DataView]",l0="[object Uint8Array]",i0="[object Uint8ClampedArray]",c0="[object Uint16Array]",s0="[object Uint32Array]",f0="[object BigUint64Array]",d0="[object Int8Array]",h0="[object Int16Array]",u0="[object Int32Array]",p0="[object BigInt64Array]",v0="[object Float32Array]",m0="[object Float64Array]";function Qe(e){return Object.getOwnPropertySymbols(e).filter(r=>Object.prototype.propertyIsEnumerable.call(e,r))}n(Qe,"getSymbols");function Je(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}n(Je,"getTag");function $(e,r){if(typeof e==typeof r)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===r;case"number":return e===r||Object.is(e,r);case"function":return e===r;case"object":return G(e,r)}return G(e,r)}n($,"isEqual");function G(e,r,o){if(Object.is(e,r))return!0;let i=Je(e),u=Je(r);if(i===Ye&&(i=Me),u===Ye&&(u=Me),i!==u)return!1;switch(i){case qt:return e.toString()===r.toString();case Yt:{let c=e.valueOf(),p=r.valueOf();return c===p||Number.isNaN(c)&&Number.isNaN(p)}case Qt:case Zt:case Jt:return Object.is(e.valueOf(),r.valueOf());case Kt:return e.source===r.source&&e.flags===r.flags;case r0:return e===r}o=o??new Map;let h=o.get(e),l=o.get(r);if(h!=null&&l!=null)return h===r;o.set(e,r),o.set(r,e);try{switch(i){case Xt:{if(e.size!==r.size)return!1;for(let[c,p]of e.entries())if(!r.has(c)||!G(p,r.get(c),o))return!1;return!0}case e0:{if(e.size!==r.size)return!1;let c=Array.from(e.values()),p=Array.from(r.values());for(let b=0;b<c.length;b++){let S=c[b],mt=p.findIndex(zr=>G(S,zr,o));if(mt===-1)return!1;p.splice(mt,1)}return!0}case t0:case l0:case i0:case c0:case s0:case f0:case d0:case h0:case u0:case p0:case v0:case m0:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(r)||e.length!==r.length)return!1;for(let c=0;c<e.length;c++)if(!G(e[c],r[c],o))return!1;return!0}case a0:return e.byteLength!==r.byteLength?!1:G(new Uint8Array(e),new Uint8Array(r),o);case o0:return e.byteLength!==r.byteLength||e.byteOffset!==r.byteOffset?!1:G(e.buffer,r.buffer,o);case n0:return e.name===r.name&&e.message===r.message;case Me:{if(!(G(e.constructor,r.constructor,o)||Ke(e)&&Ke(r)))return!1;let c=[...Object.keys(e),...Qe(e)],p=[...Object.keys(r),...Qe(r)];if(c.length!==p.length)return!1;for(let b=0;b<c.length;b++){let S=c[b],mt=e[S];if(!Object.prototype.hasOwnProperty.call(r,S))return!1;let zr=r[S];if(!G(mt,zr,o))return!1}return!0}default:return!1}}finally{o.delete(e),o.delete(r)}}n(G,"areObjectsEqual");var F=n((e,...r)=>{let o={};o=W({},e,(i,u)=>{if(Array.isArray(u)&&Array.isArray(i))return u.forEach(h=>{i.find(l=>l===h||$(l,h))||i.push(h)}),i;if(Array.isArray(i))return g0.log(["the types mismatch, picking",i]),i});for(let i of r)o=W(o,i,(u,h)=>{if(Array.isArray(h)&&Array.isArray(u))return h.forEach(l=>{u.find(c=>c===l||$(c,l))||u.push(l)}),u;if(Array.isArray(u))return g0.log(["the types mismatch, picking",u]),u});return o},"default"),w0=n((e,...r)=>{let o={};o=W({},e,(i,u)=>{if(Array.isArray(u))return u});for(let i of r)o=W(o,i,(u,h)=>{if(Array.isArray(h))return h});return o},"noArrayMerge"),Hr=n((...e)=>e.reduce((r,o)=>F(r,o),{}),"main"),Ce=Hr;__STORYBOOK_MODULE_TYPES__;var A=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})();const{logger:Or}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{SET_CONFIG:y0}=__STORYBOOK_MODULE_CORE_EVENTS__,{Channel:Lr}=__STORYBOOK_MODULE_CHANNELS__;function Ze(){let e={setHandler:n(()=>{},"setHandler"),send:n(()=>{},"send")};return new Lr({transport:e})}n(Ze,"mockChannel");var tt=class{constructor(){this.loaders={},this.elements={},this.config={},this.getChannel=n(()=>(this.channel||this.setChannel(Ze()),this.channel),"getChannel"),this.ready=n(()=>this.promise,"ready"),this.hasChannel=n(()=>!!this.channel,"hasChannel"),this.setChannel=n(r=>{this.channel=r,this.resolve()},"setChannel"),this.setConfig=n(r=>{Object.assign(this.config,r),this.hasChannel()?this.getChannel().emit(y0,this.config):this.ready().then(o=>{o.emit(y0,this.config)})},"setConfig"),this.getConfig=n(()=>this.config,"getConfig"),this.register=n((r,o)=>{this.loaders[r]&&Or.warn(`${r} was loaded twice, this could have bad side-effects`),this.loaders[r]=o},"register"),this.loadAddons=n(r=>{Object.values(this.loaders).forEach(o=>o(r))},"loadAddons"),this.promise=new Promise(r=>{this.resolve=()=>r(this.getChannel())})}getElements(r){return this.elements[r]||(this.elements[r]={}),this.elements[r]}add(r,o){let{type:i}=o,u=this.getElements(i);u[r]={...o,id:r}}};n(tt,"AddonStore");var et=tt,Xe="__STORYBOOK_ADDONS_MANAGER";function Tr(){return A[Xe]||(A[Xe]=new et),A[Xe]}n(Tr,"getAddonsStore");var Br=Tr(),at={};L(at,{ensurePanel:()=>rt,init:()=>Vr});const{Addon_TypesEnum:S0}=__STORYBOOK_MODULE_TYPES__;function rt(e,r,o){let i=Object.keys(e);return i.indexOf(r)>=0?r:i.length?i[0]:o}n(rt,"ensurePanel");var Vr=n(({provider:e,store:r,fullAPI:o})=>{let i={getElements:n(u=>e.getElements(u),"getElements"),getSelectedPanel:n(()=>{let{selectedPanel:u}=r.getState();return rt(i.getElements(S0.PANEL),u,u)},"getSelectedPanel"),setSelectedPanel:n(u=>{r.setState({selectedPanel:u},{persistence:"session"})},"setSelectedPanel"),setAddonState(u,h,l){let c=typeof h=="function"?h:()=>h;return r.setState(p=>({...p,addons:{...p.addons,[u]:c(p.addons[u])}}),l).then(()=>i.getAddonState(u))},getAddonState:n(u=>r.getState().addons[u]||(globalThis==null?void 0:globalThis.STORYBOOK_ADDON_STATE[u]),"getAddonState")};return{api:i,state:{selectedPanel:rt(i.getElements(S0.PANEL),r.getState().selectedPanel),addons:{}}}},"init"),nt={};L(nt,{init:()=>Dr});var Dr=n(({provider:e})=>({api:{getChannel:n(()=>e.channel,"getChannel"),on:n((r,o)=>{var i;return(i=e.channel)==null||i.on(r,o),()=>{var u;return(u=e.channel)==null?void 0:u.off(r,o)}},"on"),off:n((r,o)=>{var i;return(i=e.channel)==null?void 0:i.off(r,o)},"off"),once:n((r,o)=>{var i;return(i=e.channel)==null?void 0:i.once(r,o)},"once"),emit:n((r,o,...i)=>{var u,h;(u=o==null?void 0:o.options)!=null&&u.target&&o.options.target!=="storybook-preview-iframe"&&!o.options.target.startsWith("storybook-ref-")&&(o.options.target=o.options.target!=="storybook_internal"?`storybook-ref-${o.options.target}`:"storybook-preview-iframe"),(h=e.channel)==null||h.emit(r,o,...i)},"emit")},state:{}}),"init"),st={};L(st,{init:()=>Xr});const{logger:T0}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{GLOBALS_UPDATED:Qr,SET_GLOBALS:Jr,UPDATE_GLOBALS:Zr}=__STORYBOOK_MODULE_CORE_EVENTS__;var I0=Object.prototype.hasOwnProperty;function x0(e,r,o){for(o of e.keys())if(B(o,r))return o}n(x0,"find");function B(e,r){var o,i,u;if(e===r)return!0;if(e&&r&&(o=e.constructor)===r.constructor){if(o===Date)return e.getTime()===r.getTime();if(o===RegExp)return e.toString()===r.toString();if(o===Array){if((i=e.length)===r.length)for(;i--&&B(e[i],r[i]););return i===-1}if(o===Set){if(e.size!==r.size)return!1;for(i of e)if(u=i,u&&typeof u=="object"&&(u=x0(r,u),!u)||!r.has(u))return!1;return!0}if(o===Map){if(e.size!==r.size)return!1;for(i of e)if(u=i[0],u&&typeof u=="object"&&(u=x0(r,u),!u)||!B(i[1],r.get(u)))return!1;return!0}if(o===ArrayBuffer)e=new Uint8Array(e),r=new Uint8Array(r);else if(o===DataView){if((i=e.byteLength)===r.byteLength)for(;i--&&e.getInt8(i)===r.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===r.byteLength)for(;i--&&e[i]===r[i];);return i===-1}if(!o||typeof e=="object"){i=0;for(o in e)if(I0.call(e,o)&&++i&&!I0.call(r,o)||!(o in r)||!B(e[o],r[o]))return!1;return Object.keys(r).length===i}}return e!==e&&r!==r}n(B,"dequal");const{logger:Yr}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ct={};L(ct,{defaultStoryMapper:()=>O0,getSourceType:()=>it,init:()=>qr});function ue(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var u=i.reduce(function(c,p){var b=p.match(/\n([\t ]+|(?!\s).)/g);return b?c.concat(b.map(function(S){var mt,zr;return(zr=(mt=S.match(/[\t ]/g))===null||mt===void 0?void 0:mt.length)!==null&&zr!==void 0?zr:0})):c},[]);if(u.length){var h=new RegExp(`
159
- [ ]{`+Math.min.apply(Math,u)+"}","g");i=i.map(function(c){return c.replace(h,`
160
- `)})}i[0]=i[0].replace(/^\r?\n/,"");var l=i[0];return r.forEach(function(c,p){var b=l.match(/(?:^|\n)( *)$/),S=b?b[1]:"",mt=c;typeof c=="string"&&c.includes(`
161
- `)&&(mt=String(c).split(`
162
- `).map(function(zr,yr){return yr===0?zr:""+S+zr}).join(`
163
- `)),l+=mt+i[p+1]}),l}n(ue,"dedent");var lt=Pe(ze()),A0=n((e,r)=>!e||!r?[]:e.reduce((o,i)=>(r.includes(i)&&o.push(i),o),[]),"default"),Nr=/\s*\/\s*/,P0=n(({globalParameters:e,kindParameters:r,stories:o})=>qe(o,i=>({...i,parameters:z0(e,r[i.kind],i.parameters)})),"denormalizeStoryParameters"),_0=n(e=>({v:5,entries:Object.entries(e).reduce((r,[o,i])=>{if(!i)return r;let{docsOnly:u,fileName:h,...l}=i.parameters,c={title:i.kind,id:o,name:i.name,importPath:h};if(u)r[o]={type:"docs",tags:["stories-mdx"],storiesImports:[],...c};else{let{argTypes:p,args:b,initialArgs:S}=i;r[o]={type:"story",...c,parameters:l,argTypes:p,args:b,initialArgs:S}}return r},{})}),"transformSetStoriesStoryDataToPreparedStoryIndex"),Fr=n(e=>({v:3,stories:Object.values(e.stories).reduce((r,o)=>(r[o.id]={...o,title:o.kind,name:o.name||o.story,importPath:o.parameters.fileName||""},r),{})}),"transformStoryIndexV2toV3"),jr=n(e=>{let r=We(Object.values(e.stories),o=>o.title);return{v:4,entries:Object.values(e.stories).reduce((o,i)=>{var h;let u="story";return((h=i.parameters)!=null&&h.docsOnly||i.name==="Page"&&r[i.title]===1)&&(u="docs"),o[i.id]={type:u,...u==="docs"&&{tags:["stories-mdx"],storiesImports:[]},...i},delete o[i.id].story,delete o[i.id].kind,o},{})}},"transformStoryIndexV3toV4"),Ur=n(e=>({v:5,entries:Object.values(e.entries).reduce((r,o)=>(r[o.id]={...o,tags:o.tags?["dev","test",...o.tags]:["dev"]},r),{})}),"transformStoryIndexV4toV5"),He=n((e,{provider:r,docsOptions:o,filters:i,status:u})=>{if(!e.v)throw new Error("Composition: Missing stories.json version");let h=e;h=h.v===2?Fr(h):h,h=h.v===3?jr(h):h,h=h.v===4?Ur(h):h,h=h;let l=Object.values(h.entries).filter(Ko=>{let ei=!0;return Object.values(i).forEach(ri=>{ei!==!1&&(ei=ri({...Ko,status:u[Ko.id]}))}),ei}),{sidebar:c={}}=r.getConfig(),{showRoots:p,collapsedRoots:b=[],renderLabel:S}=c,mt=typeof p<"u",zr=l.reduce((Ko,ei)=>{if(o.docsMode&&ei.type!=="docs")return Ko;let{title:ri}=ei,pi=ri.trim().split(Nr),li=(!mt||p)&&pi.length>1?[pi.shift()]:[],hi=[...li,...pi],bi=hi.reduce((ca,ia,Da)=>{let ni=Da>0&&ca[Da-1],ti=O$2(ni?`${ni}-${ia}`:ia);if(ia.trim()==="")throw new Error(ue`Invalid title ${ri} ending in slash.`);if(ni===ti)throw new Error(ue`
164
- Invalid part '${ia}', leading to id === parentId ('${ti}'), inside title '${ri}'
165
-
166
- Did you create a path that uses the separator char accidentally, such as 'Vue <docs/>' where '/' is a separator char? See https://github.com/storybookjs/storybook/issues/6128
167
- `);return ca.push(ti),ca},[]);return bi.forEach((ca,ia)=>{var ni;let Da=bi[ia+1]||ei.id;li.length&&ia===0?Ko[ca]=F(Ko[ca]||{},{type:"root",id:ca,name:hi[ia],depth:ia,renderLabel:S,startCollapsed:b.includes(ca),children:[Da]}):(!Ko[ca]||Ko[ca].type==="component")&&ia===bi.length-1?(Ko[ca]=F(Ko[ca]||{},{type:"component",id:ca,name:hi[ia],parent:bi[ia-1],depth:ia,renderLabel:S,...Da&&{children:[Da]}}),Ko[ca].tags=A0(((ni=Ko[ca])==null?void 0:ni.tags)??ei.tags,ei.tags)):Ko[ca]=F(Ko[ca]||{},{type:"group",id:ca,name:hi[ia],parent:bi[ia-1],depth:ia,renderLabel:S,...Da&&{children:[Da]}})}),Ko[ei.id]={type:"story",...ei,depth:bi.length,parent:bi[bi.length-1],renderLabel:S,prepared:!!ei.parameters},Ko},{});function yr(Ko,ei){return Ko[ei.id]||(Ko[ei.id]=ei,(ei.type==="root"||ei.type==="group"||ei.type==="component")&&ei.children.forEach(ri=>yr(Ko,zr[ri]))),Ko}n(yr,"addItem");let ea=Object.values(zr).filter(Ko=>Ko.type!=="root"&&!Ko.parent).reduce(yr,{});return Object.values(zr).filter(Ko=>Ko.type==="root").reduce(yr,ea)},"transformStoryIndexToStoriesHash"),b0=n((e,r)=>r?Object.fromEntries(Object.entries(e).map(([o,i])=>{let u=r[o];return i.type==="story"&&(u==null?void 0:u.type)==="story"&&u.prepared?[o,{...u,...i,prepared:!0}]:[o,i]})):e,"addPreparedStories"),M0=(0,lt.default)(1)(e=>Object.entries(e).reduce((r,o)=>{let i=o[1];return i.type==="component"&&r.push([...i.children]),r},[])),C0=(0,lt.default)(1)(e=>Object.keys(e).filter(r=>["story","docs"].includes(e[r].type))),{location:Gr,fetch:H0}=A,it=n((e,r)=>{let{origin:o,pathname:i}=Gr,{origin:u,pathname:h}=new URL(e),l=`${o+i}`.replace("/iframe.html","").replace(/\/$/,""),c=`${u+h}`.replace("/iframe.html","").replace(/\/$/,"");return l===c?["local",c]:r||e?["external",c]:[null,null]},"getSourceType"),O0=n((e,r)=>({...r,kind:r.kind.replace("|","/")}),"defaultStoryMapper"),$r=n((e,r)=>Object.entries(e).reduce((o,[i,u])=>({...o,[i]:{...u,refId:r.id}}),{}),"addRefIds");async function L0(e){if(!e)return{};try{let r=await e;if(r===!1||r===!0)throw new Error("Unexpected boolean response");if(!r.ok)throw new Error(`Unexpected response not OK: ${r.statusText}`);let o=await r.json();return o.entries||o.stories?{storyIndex:o}:o}catch(r){return{indexError:r}}}n(L0,"handleRequest");var Wr=n(e=>{let r=/https?:\/\/(.+:.+)@/,o=e,i,[,u]=e.match(r)||[];return u&&(o=e.replace(`${u}@`,""),i=btoa(`${u}`)),{url:o,authorization:i}},"parseUrl"),Kr=n((e,r,o)=>{let{storyMapper:i}=o;return i?Object.entries(e).reduce((u,[h,l])=>({...u,[h]:i(r,l)}),{}):e},"map"),qr=n(({store:e,provider:r,singleStory:o,docsOptions:i={}},{runCheck:u=!0}={})=>{let h={findRef:n(p=>{let b=h.getRefs();return Object.values(b).find(({url:S})=>S.match(p))},"findRef"),changeRefVersion:n(async(p,b)=>{let{versions:S,title:mt}=h.getRefs()[p],zr={id:p,url:b,versions:S,title:mt,index:{},expanded:!0};await h.setRef(p,{...zr,type:"unknown"},!1),await h.checkRef(zr)},"changeRefVersion"),changeRefState:n((p,b)=>{let{[p]:S,...mt}=h.getRefs();mt[p]={...S,previewInitialized:b},e.setState({refs:mt})},"changeRefState"),checkRef:n(async p=>{let{id:b,url:S,version:mt,type:zr}=p,yr=zr==="server-checked",ea={},Ko=mt?`?version=${mt}`:"",ei=yr?"omit":"include",ri=Wr(S),pi={Accept:"application/json"};ri.authorization&&Object.assign(pi,{Authorization:`Basic ${ri.authorization}`});let[li,hi]=await Promise.all(["index.json","stories.json"].map(async ca=>L0(H0(`${ri.url}/${ca}${Ko}`,{headers:pi,credentials:ei}))));if(!li.indexError||!hi.indexError){let ca=await L0(H0(`${ri.url}/metadata.json${Ko}`,{headers:pi,credentials:ei,cache:"no-cache"}).catch(()=>!1));Object.assign(ea,{...li.indexError?hi:li,...!ca.indexError&&ca})}else yr||(ea.indexError={message:ue`
168
- Error: Loading of ref failed
169
- at fetch (lib/api/src/modules/refs.ts)
170
-
171
- URL: ${ri.url}
172
-
173
- We weren't able to load the above URL,
174
- it's possible a CORS error happened.
175
-
176
- Please check your dev-tools network tab.
177
- `});let bi=p.versions&&Object.keys(p.versions).length?p.versions:ea.versions;await h.setRef(b,{id:b,url:ri.url,...ea,...bi?{versions:bi}:{},type:ea.storyIndex?"lazy":"auto-inject"})},"checkRef"),getRefs:n(()=>{let{refs:p={}}=e.getState();return p},"getRefs"),setRef:n(async(p,{storyIndex:b,setStoriesData:S,...mt},zr=!1)=>{if(o)return;let yr,ea,{filters:Ko}=e.getState(),{storyMapper:ei=O0}=r.getConfig(),ri=h.getRefs()[p];(b||S)&&(yr=S?_0(Kr(S,ri,{storyMapper:ei})):b,ea=He(b,{provider:r,docsOptions:i,filters:Ko,status:{}})),ea&&(ea=$r(ea,ri)),await h.updateRef(p,{...ri,...mt,index:ea,internal_index:yr})},"setRef"),updateRef:n(async(p,b)=>{let{[p]:S,...mt}=h.getRefs();mt[p]={...S,...b};let zr=Object.keys(c).reduce((yr,ea)=>(yr[ea]=mt[ea],yr),{});await e.setState({refs:zr})},"updateRef")},l=!o&&A.REFS||{},c=l;return u&&new Promise(async p=>{for(let b of Object.values(l))await h.checkRef({...b,stories:{}});p(void 0)}),{api:h,state:{refs:c}}},"init"),z=n((e,r)=>{let{source:o,refId:i,type:u}=e,[h,l]=it(o,i),c;(i||h==="external")&&(c=i&&r.getRefs()[i]?r.getRefs()[i]:r.findRef(l));let p={source:o,sourceType:h,sourceLocation:l,refId:i,ref:c,type:u};switch(!0){case typeof i=="string":case h==="local":case h==="external":return p;default:return Yr.warn(`Received a ${u} frame that was not configured as a ref`),null}},"getEventMetadata"),Xr=n(({store:e,fullAPI:r,provider:o})=>{var l,c;let i={getGlobals(){return e.getState().globals},getUserGlobals(){return e.getState().userGlobals},getStoryGlobals(){return e.getState().storyGlobals},getGlobalTypes(){return e.getState().globalTypes},updateGlobals(p){var b;(b=o.channel)==null||b.emit(Zr,{globals:p,options:{target:"storybook-preview-iframe"}})}},u={globals:{},userGlobals:{},storyGlobals:{},globalTypes:{}},h=n(({globals:p,storyGlobals:b,userGlobals:S})=>{let{globals:mt,userGlobals:zr,storyGlobals:yr}=e.getState();B(p,mt)||e.setState({globals:p}),B(S,zr)||e.setState({userGlobals:S}),B(b,yr)||e.setState({storyGlobals:b})},"updateGlobals");return(l=o.channel)==null||l.on(Qr,n(function({globals:p,storyGlobals:b,userGlobals:S}){let{ref:mt}=z(this,r);mt?T0.warn("received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."):h({globals:p,storyGlobals:b,userGlobals:S})},"handleGlobalsUpdated")),(c=o.channel)==null||c.on(Jr,n(function({globals:p,globalTypes:b}){var zr;let{ref:S}=z(this,r),mt=(zr=e.getState())==null?void 0:zr.globals;S?Object.keys(p).length>0&&T0.warn("received globals from a non-local ref. This is not currently supported."):e.setState({globals:p,userGlobals:p,globalTypes:b}),mt&&Object.keys(mt).length!==0&&!B(p,mt)&&i.updateGlobals(mt)},"handleSetGlobals")),{api:i,state:u}},"init"),Oe={};L(Oe,{ActiveTabs:()=>V0,defaultLayoutState:()=>O,focusableUIElements:()=>pe,init:()=>aa});const{SET_CONFIG:ta}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:ra}=A,V0={SIDEBAR:"sidebar",CANVAS:"canvas",ADDONS:"addons"},O={ui:{enableShortcuts:!0},layout:{initialActive:V0.CANVAS,showToolbar:!0,navSize:300,bottomPanelHeight:300,rightPanelWidth:400,recentVisibleSizes:{navSize:300,bottomPanelHeight:300,rightPanelWidth:400},panelPosition:"bottom",showTabs:!0},selectedPanel:void 0,theme:Er$1()},pe={storySearchField:"storybook-explorer-searchfield",storyListMenu:"storybook-explorer-menu",storyPanelRoot:"storybook-panel-root"},ft=n(e=>e.layout.navSize>0,"getIsNavShown"),dt=n(e=>{let{bottomPanelHeight:r,rightPanelWidth:o,panelPosition:i}=e.layout;return i==="bottom"&&r>0||i==="right"&&o>0},"getIsPanelShown"),B0=n(e=>!ft(e)&&!dt(e),"getIsFullscreen"),Le=n(e=>({navSize:e.navSize>0?e.navSize:e.recentVisibleSizes.navSize,bottomPanelHeight:e.bottomPanelHeight>0?e.bottomPanelHeight:e.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:e.rightPanelWidth>0?e.rightPanelWidth:e.recentVisibleSizes.rightPanelWidth}),"getRecentVisibleSizes"),aa=n(({store:e,provider:r,singleStory:o})=>{var h;let i={toggleFullscreen(l){return e.setState(c=>{let p=B0(c),b=typeof l=="boolean"?l:!p;return b===p?{layout:c.layout}:b?{layout:{...c.layout,navSize:0,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Le(c.layout)}}:{layout:{...c.layout,navSize:c.singleStory?0:c.layout.recentVisibleSizes.navSize,bottomPanelHeight:c.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:c.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"session"})},togglePanel(l){return e.setState(c=>{let p=dt(c),b=typeof l=="boolean"?l:!p;return b===p?{layout:c.layout}:b?{layout:{...c.layout,bottomPanelHeight:c.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:c.layout.recentVisibleSizes.rightPanelWidth}}:{layout:{...c.layout,bottomPanelHeight:0,rightPanelWidth:0,recentVisibleSizes:Le(c.layout)}}},{persistence:"session"})},togglePanelPosition(l){return e.setState(c=>{let p=l||(c.layout.panelPosition==="right"?"bottom":"right");return{layout:{...c.layout,panelPosition:p,bottomPanelHeight:c.layout.recentVisibleSizes.bottomPanelHeight,rightPanelWidth:c.layout.recentVisibleSizes.rightPanelWidth}}},{persistence:"permanent"})},toggleNav(l){return e.setState(c=>{if(c.singleStory)return{layout:c.layout};let p=ft(c),b=typeof l=="boolean"?l:!p;return b===p?{layout:c.layout}:b?{layout:{...c.layout,navSize:c.layout.recentVisibleSizes.navSize}}:{layout:{...c.layout,navSize:0,recentVisibleSizes:Le(c.layout)}}},{persistence:"session"})},toggleToolbar(l){return e.setState(c=>{let p=typeof l<"u"?l:!c.layout.showToolbar;return{layout:{...c.layout,showToolbar:p}}},{persistence:"session"})},setSizes({navSize:l,bottomPanelHeight:c,rightPanelWidth:p}){return e.setState(b=>{let S={...b.layout,navSize:l??b.layout.navSize,bottomPanelHeight:c??b.layout.bottomPanelHeight,rightPanelWidth:p??b.layout.rightPanelWidth};return{layout:{...S,recentVisibleSizes:Le(S)}}},{persistence:"session"})},focusOnUIElement(l,c){if(!l)return;let p=ra.getElementById(l);p&&(p.focus(),c&&p.select())},getInitialOptions(){let{theme:l,selectedPanel:c,...p}=r.getConfig();return{...O,layout:{...he(O.layout,q(p,Object.keys(O.layout))),...o&&{navSize:0}},ui:he(O.ui,q(p,Object.keys(O.ui))),selectedPanel:c||O.selectedPanel,theme:l||O.theme}},getIsFullscreen(){return B0(e.getState())},getIsPanelShown(){return dt(e.getState())},getIsNavShown(){return ft(e.getState())},setOptions:n(l=>{let{layout:c,ui:p,selectedPanel:b,theme:S}=e.getState();if(!l)return;let mt={...c,...l.layout||{},...q(l,Object.keys(c)),...o&&{navSize:0}},zr={...p,...l.ui,...he(l.ui||{},q(l,Object.keys(p)))},yr={...S,...l.theme},ea={};$(p,zr)||(ea.ui=zr),$(c,mt)||(ea.layout=mt),l.selectedPanel&&!$(b,l.selectedPanel)&&(ea.selectedPanel=l.selectedPanel),Object.keys(ea).length&&e.setState(ea,{persistence:"permanent"}),$(S,yr)||e.setState({theme:yr})},"setOptions")},u=q(e.getState(),["layout","selectedPanel"]);return(h=r.channel)==null||h.on(ta,()=>{i.setOptions(F(i.getInitialOptions(),u))}),{api:i,state:F(i.getInitialOptions(),u)}},"init"),ht={};L(ht,{init:()=>na});var na=n(({store:e})=>({api:{addNotification:n(r=>{e.setState(({notifications:o})=>{let[i,u]=_e(o,h=>h.id===r.id);return i.forEach(h=>{h.onClear&&h.onClear({dismissed:!1,timeout:!1})}),{notifications:[...u,r]}})},"addNotification"),clearNotification:n(r=>{e.setState(({notifications:o})=>{let[i,u]=_e(o,h=>h.id===r);return i.forEach(h=>{h.onClear&&h.onClear({dismissed:!1,timeout:!1})}),{notifications:u}})},"clearNotification")},state:{notifications:[]}}),"init"),ut={};L(ut,{init:()=>oa});var oa=n(({provider:e,fullAPI:r})=>({api:e.renderPreview?{renderPreview:e.renderPreview}:{},state:{},init:n(()=>{e.handleAPI(r)},"init")}),"init"),pt={};L(pt,{init:()=>la});var la=n(({store:e,navigate:r,fullAPI:o})=>({state:{settings:{lastTrackedStoryId:null}},api:{closeSettings:n(()=>{let{settings:{lastTrackedStoryId:i}}=e.getState();i?o.selectStory(i):o.selectFirstStory()},"closeSettings"),changeSettingsTab:n(i=>{r(`/settings/${i}`)},"changeSettingsTab"),isSettingsScreenActive:n(()=>{let{path:i}=o.getUrlState();return!!(i||"").match(/^\/settings/)},"isSettingsScreenActive"),retrieveSelection(){let{settings:i}=e.getState();return i.lastTrackedStoryId},storeSelection:n(async()=>{let{storyId:i,settings:u}=e.getState();await e.setState({settings:{...u,lastTrackedStoryId:i}})},"storeSelection")}}),"init"),It={};L(It,{controlOrMetaKey:()=>X,defaultShortcuts:()=>ee,init:()=>pa,isMacLike:()=>k0,keys:()=>St});const{FORCE_REMOUNT:sa,PREVIEW_KEYDOWN:fa,STORIES_COLLAPSE_ALL:da,STORIES_EXPAND_ALL:ha}=__STORYBOOK_MODULE_CORE_EVENTS__;var gt=n(e=>{var o;if(["Meta","Alt","Control","Shift"].includes(e.key))return null;let r=[];if(e.altKey&&r.push("alt"),e.ctrlKey&&r.push("control"),e.metaKey&&r.push("meta"),e.shiftKey&&r.push("shift"),e.key&&e.key.length===1&&e.key!==" "){let i=e.key.toUpperCase(),u=(o=e.code)==null?void 0:o.toUpperCase().replace("KEY","").replace("DIGIT","");u&&u.length===1&&u!==i?r.push([i,u]):r.push(i)}return e.key===" "&&r.push("space"),e.key==="Escape"&&r.push("escape"),e.key==="ArrowRight"&&r.push("ArrowRight"),e.key==="ArrowDown"&&r.push("ArrowDown"),e.key==="ArrowUp"&&r.push("ArrowUp"),e.key==="ArrowLeft"&&r.push("ArrowLeft"),r.length>0?r:null},"eventToShortcut"),wt=n((e,r)=>!e||!r||(e.join("").startsWith("shift/")&&e.shift(),e.length!==r.length)?!1:!e.find((o,i)=>Array.isArray(o)?!o.includes(r[i]):o!==r[i]),"shortcutMatchesShortcut"),{navigator:yt,document:D0}=A,k0=n(()=>yt&&yt.platform?!!yt.platform.match(/(Mac|iPhone|iPod|iPad)/i):!1,"isMacLike"),X=n(()=>k0()?"meta":"control","controlOrMetaKey");function St(e){return Object.keys(e)}n(St,"keys");var ee=Object.freeze({fullScreen:["alt","F"],togglePanel:["alt","A"],panelPosition:["alt","D"],toggleNav:["alt","S"],toolbar:["alt","T"],search:[X(),"K"],focusNav:["1"],focusIframe:["2"],focusPanel:["3"],prevComponent:["alt","ArrowUp"],nextComponent:["alt","ArrowDown"],prevStory:["alt","ArrowLeft"],nextStory:["alt","ArrowRight"],shortcutsPage:[X(),"shift",","],aboutPage:[X(),","],escape:["escape"],collapseAll:[X(),"shift","ArrowUp"],expandAll:[X(),"shift","ArrowDown"],remount:["alt","R"]}),Rt={};function ua(e){let r=e.target;return/input|textarea/i.test(r.tagName)||r.getAttribute("contenteditable")!==null}n(ua,"focusInInput");var pa=n(({store:e,fullAPI:r,provider:o})=>{let i={getShortcutKeys(){return e.getState().shortcuts},getDefaultShortcuts(){return{...ee,...i.getAddonsShortcutDefaults()}},getAddonsShortcuts(){return Rt},getAddonsShortcutLabels(){let l={};return Object.entries(i.getAddonsShortcuts()).forEach(([c,{label:p}])=>{l[c]=p}),l},getAddonsShortcutDefaults(){let l={};return Object.entries(i.getAddonsShortcuts()).forEach(([c,{defaultShortcut:p}])=>{l[c]=p}),l},async setShortcuts(l){return await e.setState({shortcuts:l},{persistence:"permanent"}),l},async restoreAllDefaultShortcuts(){return i.setShortcuts(i.getDefaultShortcuts())},async setShortcut(l,c){let p=i.getShortcutKeys();return await i.setShortcuts({...p,[l]:c}),c},async setAddonShortcut(l,c){let p=i.getShortcutKeys();return await i.setShortcuts({...p,[`${l}-${c.actionName}`]:c.defaultShortcut}),Rt[`${l}-${c.actionName}`]=c,c},async restoreDefaultShortcut(l){let c=i.getDefaultShortcuts()[l];return i.setShortcut(l,c)},handleKeydownEvent(l){let c=gt(l),p=i.getShortcutKeys(),b=St(p).find(S=>wt(c,p[S]));b&&i.handleShortcutFeature(b,l)},handleShortcutFeature(l,c){let{ui:{enableShortcuts:p},storyId:b}=e.getState();if(p)switch(c!=null&&c.preventDefault&&c.preventDefault(),l){case"escape":{r.getIsFullscreen()?r.toggleFullscreen(!1):r.getIsNavShown()&&r.toggleNav(!0);break}case"focusNav":{r.getIsFullscreen()&&r.toggleFullscreen(!1),r.getIsNavShown()||r.toggleNav(!0),r.focusOnUIElement(pe.storyListMenu);break}case"search":{r.getIsFullscreen()&&r.toggleFullscreen(!1),r.getIsNavShown()||r.toggleNav(!0),setTimeout(()=>{r.focusOnUIElement(pe.storySearchField,!0)},0);break}case"focusIframe":{let S=D0.getElementById("storybook-preview-iframe");if(S)try{S.contentWindow.focus()}catch{}break}case"focusPanel":{r.getIsFullscreen()&&r.toggleFullscreen(!1),r.getIsPanelShown()||r.togglePanel(!0),r.focusOnUIElement(pe.storyPanelRoot);break}case"nextStory":{r.jumpToStory(1);break}case"prevStory":{r.jumpToStory(-1);break}case"nextComponent":{r.jumpToComponent(1);break}case"prevComponent":{r.jumpToComponent(-1);break}case"fullScreen":{r.toggleFullscreen();break}case"togglePanel":{r.togglePanel();break}case"toggleNav":{r.toggleNav();break}case"toolbar":{r.toggleToolbar();break}case"panelPosition":{r.getIsFullscreen()&&r.toggleFullscreen(!1),r.getIsPanelShown()||r.togglePanel(!0),r.togglePanelPosition();break}case"aboutPage":{r.navigate("/settings/about");break}case"shortcutsPage":{r.navigate("/settings/shortcuts");break}case"collapseAll":{r.emit(da);break}case"expandAll":{r.emit(ha);break}case"remount":{r.emit(sa,{storyId:b});break}default:Rt[l].action();break}}},{shortcuts:u=ee}=e.getState(),h={shortcuts:St(ee).reduce((l,c)=>({...l,[c]:u[c]||ee[c]}),ee)};return{api:i,state:h,init:n(()=>{var l;D0.addEventListener("keydown",c=>{ua(c)||i.handleKeydownEvent(c)}),(l=o.channel)==null||l.on(fa,c=>{i.handleKeydownEvent(c.event)})},"initModule")}},"init"),Et={};L(Et,{init:()=>Va});const{logger:va}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CONFIG_ERROR:ma,CURRENT_STORY_WAS_SET:ga,DOCS_PREPARED:wa,PRELOAD_ENTRIES:ya,RESET_STORY_ARGS:Ra,SELECT_STORY:Sa,SET_CONFIG:Ia,SET_CURRENT_STORY:xa,SET_FILTER:Ea,SET_INDEX:Aa,SET_STORIES:Pa,STORY_ARGS_UPDATED:_a,STORY_CHANGED:ba,STORY_INDEX_INVALIDATED:Ma,STORY_MISSING:Ca,STORY_PREPARED:za,STORY_SPECIFIED:Ha,UPDATE_STORY_ARGS:La}=__STORYBOOK_MODULE_CORE_EVENTS__;var{fetch:Oa}=A,Ta="./index.json",Ba=["enableShortcuts","theme","showRoots"];function xt(e){if(!e||typeof e=="string")return e;let r={...e};return Ba.forEach(o=>{o in r&&delete r[o]}),r}n(xt,"removeRemovedOptions");var Va=n(({fullAPI:e,store:r,navigate:o,provider:i,storyId:u,viewMode:h,docsOptions:l={}})=>{var b,S,mt,zr,yr,ea,Ko,ei,ri,pi,li,hi,bi;let c={storyId:G$3,getData:n((ca,ia)=>{let Da=c.resolveStory(ca,ia);if((Da==null?void 0:Da.type)==="story"||(Da==null?void 0:Da.type)==="docs")return Da},"getData"),isPrepared:n((ca,ia)=>{let Da=c.getData(ca,ia);return Da?Da.type==="story"?Da.prepared:!0:!1},"isPrepared"),resolveStory:n((ca,ia)=>{let{refs:Da,index:ni}=r.getState();if(!(ia&&!Da[ia]))return ia?Da[ia].index?Da[ia].index[ca]:void 0:ni?ni[ca]:void 0},"resolveStory"),getCurrentStoryData:n(()=>{let{storyId:ca,refId:ia}=r.getState();return c.getData(ca,ia)},"getCurrentStoryData"),getParameters:n((ca,ia)=>{let{storyId:Da,refId:ni}=typeof ca=="string"?{storyId:ca,refId:void 0}:ca,ti=c.getData(Da,ni);if(["story","docs"].includes(ti==null?void 0:ti.type)){let{parameters:ii}=ti;if(ii)return ia?ii[ia]:ii}return null},"getParameters"),getCurrentParameter:n(ca=>{let{storyId:ia,refId:Da}=r.getState();return c.getParameters({storyId:ia,refId:Da},ca)||void 0},"getCurrentParameter"),jumpToComponent:n(ca=>{let{index:ia,storyId:Da,refs:ni,refId:ti}=r.getState();if(!c.getData(Da,ti))return;let ii=ti?ni[ti].index||{}:ia;if(!ii)return;let oi=c.findSiblingStoryId(Da,ii,ca,!0);oi&&c.selectStory(oi,void 0,{ref:ti})},"jumpToComponent"),jumpToStory:n(ca=>{let{index:ia,storyId:Da,refs:ni,refId:ti}=r.getState(),ii=c.getData(Da,ti);if(!ii)return;let oi=ii.refId?ni[ii.refId].index:ia;if(!oi)return;let ci=c.findSiblingStoryId(Da,oi,ca,!1);ci&&c.selectStory(ci,void 0,{ref:ti})},"jumpToStory"),selectFirstStory:n(()=>{let{index:ca}=r.getState();if(!ca)return;let ia=Object.keys(ca).find(Da=>ca[Da].type==="story");if(ia){c.selectStory(ia);return}o("/")},"selectFirstStory"),selectStory:n((ca=void 0,ia=void 0,Da={})=>{let{ref:ni}=Da,{storyId:ti,index:ii,refs:oi}=r.getState(),ci=ni?oi[ni].index:ii,Ya=ti==null?void 0:ti.split("--",2)[0];if(ci)if(ia)if(ca){let qo=ni?`${ni}_${G$3(ca,ia)}`:G$3(ca,ia);if(ci[qo])c.selectStory(qo,void 0,Da);else{let ai=ci[O$2(ca)];if((ai==null?void 0:ai.type)==="component"){let ui=ai.children.find(si=>ci[si].name===ia);ui&&c.selectStory(ui,void 0,Da)}}}else{let qo=G$3(Ya,ia);c.selectStory(qo,void 0,Da)}else{let qo=ca?ci[ca]||ci[O$2(ca)]:ci[Ya];if(!qo)throw new Error(`Unknown id or title: '${ca}'`);r.setState({settings:{...r.getState().settings,lastTrackedStoryId:qo.id}});let ai=c.findLeafEntry(ci,qo.id),ui=ai.refId?`${ai.refId}_${ai.id}`:ai.id;o(`/${ai.type}/${ui}`)}},"selectStory"),findLeafEntry(ca,ia){let Da=ca[ia];if(Da.type==="docs"||Da.type==="story")return Da;let ni=Da.children[0];return c.findLeafEntry(ca,ni)},findLeafStoryId(ca,ia){var Da;return(Da=c.findLeafEntry(ca,ia))==null?void 0:Da.id},findSiblingStoryId(ca,ia,Da,ni){if(ni){let oi=M0(ia),ci=oi.findIndex(Ya=>Ya.includes(ca));return ci===oi.length-1&&Da>0||ci===0&&Da<0?void 0:oi[ci+Da]?oi[ci+Da][0]:void 0}let ti=C0(ia),ii=ti.indexOf(ca);if(!(ii===ti.length-1&&Da>0)&&!(ii===0&&Da<0))return ti[ii+Da]},updateStoryArgs:n((ca,ia)=>{var ti;let{id:Da,refId:ni}=ca;(ti=i.channel)==null||ti.emit(La,{storyId:Da,updatedArgs:ia,options:{target:ni}})},"updateStoryArgs"),resetStoryArgs:n((ca,ia)=>{var ti;let{id:Da,refId:ni}=ca;(ti=i.channel)==null||ti.emit(Ra,{storyId:Da,argNames:ia,options:{target:ni}})},"resetStoryArgs"),fetchIndex:n(async()=>{try{let ca=await Oa(Ta);if(ca.status!==200)throw new Error(await ca.text());let ia=await ca.json();if(ia.v<3){va.warn(`Skipping story index with version v${ia.v}, awaiting SET_STORIES.`);return}await c.setIndex(ia)}catch(ca){await r.setState({indexError:ca})}},"fetchIndex"),setIndex:n(async ca=>{let{index:ia,status:Da,filters:ni}=r.getState(),ti=He(ca,{provider:i,docsOptions:l,status:Da,filters:ni}),ii=b0(ti,ia);await r.setState({internal_index:ca,index:ii,indexError:void 0})},"setIndex"),updateStory:n(async(ca,ia,Da)=>{if(Da){let{id:ni,index:ti}=Da;ti[ca]={...ti[ca],...ia},await e.updateRef(ni,{index:ti})}else{let{index:ni}=r.getState();if(!ni)return;ni[ca]={...ni[ca],...ia},await r.setState({index:ni})}},"updateStory"),updateDocs:n(async(ca,ia,Da)=>{if(Da){let{id:ni,index:ti}=Da;ti[ca]={...ti[ca],...ia},await e.updateRef(ni,{index:ti})}else{let{index:ni}=r.getState();if(!ni)return;ni[ca]={...ni[ca],...ia},await r.setState({index:ni})}},"updateDocs"),setPreviewInitialized:n(async ca=>{ca?e.updateRef(ca.id,{previewInitialized:!0}):r.setState({previewInitialized:!0})},"setPreviewInitialized"),experimental_updateStatus:n(async(ca,ia)=>{let{status:Da,internal_index:ni}=r.getState(),ti={...Da},ii=typeof ia=="function"?ia(Da):ia;if(!(!ca||Object.keys(ii).length===0)&&(Object.entries(ii).forEach(([oi,ci])=>{!oi||typeof ci!="object"||(ti[oi]={...ti[oi]||{}},ci===null?delete ti[oi][ca]:ti[oi][ca]=ci,Object.keys(ti[oi]).length===0&&delete ti[oi])}),await r.setState({status:ti},{persistence:"session"}),ni)){await c.setIndex(ni);let oi=await e.getRefs();Object.entries(oi).forEach(([ci,{internal_index:Ya,...qo}])=>{e.setRef(ci,{...qo,storyIndex:Ya},!0)})}},"experimental_updateStatus"),experimental_setFilter:n(async(ca,ia)=>{var ti;await r.setState({filters:{...r.getState().filters,[ca]:ia}});let{internal_index:Da}=r.getState();if(!Da)return;await c.setIndex(Da);let ni=await e.getRefs();Object.entries(ni).forEach(([ii,{internal_index:oi,...ci}])=>{e.setRef(ii,{...ci,storyIndex:oi},!0)}),(ti=i.channel)==null||ti.emit(Ea,{id:ca})},"experimental_setFilter")};(b=i.channel)==null||b.on(Ha,n(function({storyId:ca,viewMode:ia}){var ni,ti;let{sourceType:Da}=z(this,e);if(Da==="local"){let ii=r.getState(),oi=ii.path==="/"||ii.viewMode==="story"||ii.viewMode==="docs",ci=ii.viewMode&&ii.storyId,Ya=ii.viewMode!==ia||ii.storyId!==ca,{type:qo}=((ni=ii.index)==null?void 0:ni[ii.storyId])||{};oi&&(ci&&Ya&&!(qo==="root"||qo==="component"||qo==="group")?(ti=i.channel)==null||ti.emit(xa,{storyId:ii.storyId,viewMode:ii.viewMode}):Ya&&o(`/${ia}/${ca}`))}},"handler")),(S=i.channel)==null||S.on(ga,n(function(){let{ref:ca}=z(this,e);c.setPreviewInitialized(ca)},"handler")),(mt=i.channel)==null||mt.on(ba,n(function(){let{sourceType:ca}=z(this,e);if(ca==="local"){let ia=c.getCurrentParameter("options");ia&&e.setOptions(xt(ia))}},"handler")),(zr=i.channel)==null||zr.on(za,n(function({id:ca,...ia}){var ti;let{ref:Da,sourceType:ni}=z(this,e);if(c.updateStory(ca,{...ia,prepared:!0},Da),!Da&&!r.getState().hasCalledSetOptions){let{options:ii}=ia.parameters;e.setOptions(xt(ii)),r.setState({hasCalledSetOptions:!0})}if(ni==="local"){let{storyId:ii,index:oi,refId:ci}=r.getState();if(!oi)return;let Ya=Array.from(new Set([c.findSiblingStoryId(ii,oi,1,!0),c.findSiblingStoryId(ii,oi,-1,!0)])).filter(Boolean);(ti=i.channel)==null||ti.emit(ya,{ids:Ya,options:{target:ci}})}},"handler")),(yr=i.channel)==null||yr.on(wa,n(function({id:ca,...ia}){let{ref:Da}=z(this,e);c.updateStory(ca,{...ia,prepared:!0},Da)},"handler")),(ea=i.channel)==null||ea.on(Aa,n(function(ca){let{ref:ia}=z(this,e);if(ia)e.setRef(ia.id,{...ia,storyIndex:ca},!0);else{c.setIndex(ca);let Da=c.getCurrentParameter("options");e.setOptions(xt(Da))}},"handler")),(Ko=i.channel)==null||Ko.on(Pa,n(function(ca){let{ref:ia}=z(this,e),Da=ca.v?P0(ca):ca.stories;if(ia)e.setRef(ia.id,{...ia,setStoriesData:Da},!0);else throw new Error("Cannot call SET_STORIES for local frame")},"handler")),(ei=i.channel)==null||ei.on(Sa,n(function({kind:ca,title:ia=ca,story:Da,name:ni=Da,storyId:ti,...ii}){let{ref:oi}=z(this,e);oi?e.selectStory(ti||ia,ni,{...ii,ref:oi.id}):e.selectStory(ti||ia,ni,ii)},"handler")),(ri=i.channel)==null||ri.on(_a,n(function({storyId:ca,args:ia}){let{ref:Da}=z(this,e);c.updateStory(ca,{args:ia},Da)},"handleStoryArgsUpdated")),(pi=i.channel)==null||pi.on(ma,n(function(ca){let{ref:ia}=z(this,e);c.setPreviewInitialized(ia)},"handleConfigError")),(li=i.channel)==null||li.on(Ca,n(function(ca){let{ref:ia}=z(this,e);c.setPreviewInitialized(ia)},"handleConfigError")),(hi=i.channel)==null||hi.on(Ia,()=>{var ia,Da;let ca=i.getConfig();(ia=ca==null?void 0:ca.sidebar)!=null&&ia.filters&&r.setState({filters:{...r.getState().filters,...(Da=ca==null?void 0:ca.sidebar)==null?void 0:Da.filters}})});let p=i.getConfig();return{api:c,state:{storyId:u,viewMode:h,hasCalledSetOptions:!1,previewInitialized:!1,status:{},filters:((bi=p==null?void 0:p.sidebar)==null?void 0:bi.filters)||{}},init:n(async()=>{var ca;(ca=i.channel)==null||ca.on(Ma,()=>c.fetchIndex()),await c.fetchIndex()},"init")}},"init"),_t={};L(_t,{init:()=>$a});const{GLOBALS_UPDATED:ka,NAVIGATE_URL:Na,SET_CURRENT_STORY:Fa,STORY_ARGS_UPDATED:ja,UPDATE_QUERY_PARAMS:Ua}=__STORYBOOK_MODULE_CORE_EVENTS__;var{window:At}=A,Y=n(e=>{if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1},"parseBoolean"),Pt,Ga=n(({state:{location:e,path:r,viewMode:o,storyId:i},singleStory:u})=>{let{full:h,panel:l,nav:c,shortcuts:p,addonPanel:b,tabs:S,path:mt,...zr}=Nt(e),yr,ea,Ko;Y(h)===!0?(yr=0,ea=0,Ko=0):Y(h)===!1&&(yr=O.layout.navSize,ea=O.layout.bottomPanelHeight,Ko=O.layout.rightPanelWidth),u||(Y(c)===!0&&(yr=O.layout.navSize),Y(c)===!1&&(yr=0)),Y(l)===!1&&(ea=0,Ko=0);let ei={navSize:yr,bottomPanelHeight:ea,rightPanelWidth:Ko,panelPosition:["right","bottom"].includes(l)?l:void 0,showTabs:Y(S)},ri={enableShortcuts:Y(p)},pi=b||void 0,li=i,hi=B(Pt,zr)?Pt:zr;return Pt=hi,{viewMode:o,layout:ei,ui:ri,selectedPanel:pi,location:e,path:r,customQueryParams:hi,storyId:li}},"initialUrlSupport"),$a=n(e=>{var b,S,mt,zr;let{store:r,navigate:o,provider:i,fullAPI:u}=e,h=n((yr,ea={},Ko={})=>{let ei=Object.entries(ea).filter(([,pi])=>pi).sort(([pi],[li])=>pi<li?-1:1).map(([pi,li])=>`${pi}=${li}`),ri=[yr,...ei].join("&");return o(ri,Ko)},"navigateTo"),l={getQueryParam(yr){let{customQueryParams:ea}=r.getState();return ea?ea[yr]:void 0},getUrlState(){let{path:yr,customQueryParams:ea,storyId:Ko,url:ei,viewMode:ri}=r.getState();return{path:yr,queryParams:ea,storyId:Ko,url:ei,viewMode:ri}},setQueryParams(yr){var ri;let{customQueryParams:ea}=r.getState(),Ko={},ei={...ea,...Object.entries(yr).reduce((pi,[li,hi])=>(hi!==null&&(pi[li]=hi),pi),Ko)};B(ea,ei)||(r.setState({customQueryParams:ei}),(ri=i.channel)==null||ri.emit(Ua,ei))},applyQueryParams(yr,ea){let{path:Ko,queryParams:ei}=l.getUrlState();h(Ko,{...ei,...yr},ea),l.setQueryParams(yr)},navigateUrl(yr,ea){o(yr,{plain:!0,...ea})}},c=n(()=>{let{path:yr,queryParams:ea,viewMode:Ko}=l.getUrlState();if(Ko!=="story")return;let ei=u.getCurrentStoryData();if((ei==null?void 0:ei.type)!=="story")return;let{args:ri,initialArgs:pi}=ei,li=Vn$1(pi,ri);h(yr,{...ea,args:li},{replace:!0}),l.setQueryParams({args:li})},"updateArgsParam");(b=i.channel)==null||b.on(Fa,()=>c());let p;return(S=i.channel)==null||S.on(ja,()=>{"requestIdleCallback"in At?(p&&At.cancelIdleCallback(p),p=At.requestIdleCallback(c,{timeout:1e3})):(p&&clearTimeout(p),setTimeout(c,100))}),(mt=i.channel)==null||mt.on(ka,({userGlobals:yr,initialGlobals:ea})=>{let{path:Ko,queryParams:ei}=l.getUrlState(),ri=Vn$1(ea,yr);h(Ko,{...ei,globals:ri},{replace:!0}),l.setQueryParams({globals:ri})}),(zr=i.channel)==null||zr.on(Na,(yr,ea)=>{l.navigateUrl(yr,ea)}),{api:l,state:Ga(e)}},"init"),bt={};L(bt,{init:()=>qa});var G0=Pe(ze()),j0="8.4.6",{VERSIONCHECK:Wa}=A,U0=(0,G0.default)(1)(()=>{try{return{...JSON.parse(Wa).data||{}}}catch{return{}}}),Ka=n(e=>e.includes("vue")?"vue":e,"normalizeRendererName"),qa=n(({store:e})=>{let{dismissedVersionNotification:r}=e.getState(),o={versions:{current:{version:j0},...U0()},dismissedVersionNotification:r},i={getCurrentVersion:n(()=>{let{versions:{current:u}}=e.getState();return u},"getCurrentVersion"),getLatestVersion:n(()=>{let{versions:{latest:u,next:h,current:l}}=e.getState();return l&&D.prerelease(l.version)&&h?u&&D.gt(u.version,h.version)?u:h:u},"getLatestVersion"),getDocsUrl:n(({subpath:u,versioned:h,renderer:l})=>{let{versions:{latest:c,current:p}}=e.getState(),b="https://storybook.js.org/docs/";if(h&&(p!=null&&p.version)&&(c!=null&&c.version)){let zr=D.diff(c.version,p.version);zr==="patch"||zr===null||(b+=`${D.major(p.version)}.${D.minor(p.version)}/`)}let[S,mt]=(u==null?void 0:u.split("#"))||[];if(S&&(b+=`${S}/`),l&&typeof A.STORYBOOK_RENDERER<"u"){let zr=A.STORYBOOK_RENDERER;zr&&(b+=`?renderer=${Ka(zr)}`)}return mt&&(b+=`#${mt}`),b},"getDocsUrl"),versionUpdateAvailable:n(()=>{let u=i.getLatestVersion(),h=i.getCurrentVersion();if(u){if(!u.version||!h.version)return!0;let l=D.prerelease(h.version)?`${D.major(h.version)}.${D.minor(h.version)}.${D.patch(h.version)}`:h.version,c=D.diff(l,u.version);return D.gt(u.version,l)&&c!=="patch"&&!c.includes("pre")}return!1},"versionUpdateAvailable")};return{init:n(async()=>{let{versions:u={}}=e.getState(),{latest:h,next:l}=U0();await e.setState({versions:{...u,latest:h,next:l}})},"initModule"),state:o,api:i}},"init"),Mt={};L(Mt,{init:()=>e1});var $0=reactExports.forwardRef(({color:e="currentColor",size:r=14,...o},i)=>reactExports.createElement("svg",{width:r,height:r,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,...o},reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.042.616a.704.704 0 00-.66.729L1.816 12.9c.014.367.306.66.672.677l9.395.422h.032a.704.704 0 00.704-.703V.704c0-.015 0-.03-.002-.044a.704.704 0 00-.746-.659l-.773.049.057 1.615a.105.105 0 01-.17.086l-.52-.41-.617.468a.105.105 0 01-.168-.088L9.746.134 2.042.616zm8.003 4.747c-.247.192-2.092.324-2.092.05.04-1.045-.429-1.091-.689-1.091-.247 0-.662.075-.662.634 0 .57.607.893 1.32 1.27 1.014.538 2.24 1.188 2.24 2.823 0 1.568-1.273 2.433-2.898 2.433-1.676 0-3.141-.678-2.976-3.03.065-.275 2.197-.21 2.197 0-.026.971.195 1.256.753 1.256.43 0 .624-.236.624-.634 0-.602-.633-.958-1.361-1.367-.987-.554-2.148-1.205-2.148-2.7 0-1.494 1.027-2.489 2.86-2.489 1.832 0 2.832.98 2.832 2.845z",fill:e})));const{REQUEST_WHATS_NEW_DATA:Qa,RESULT_WHATS_NEW_DATA:Ja,SET_WHATS_NEW_CACHE:Za,TOGGLE_WHATS_NEW_NOTIFICATIONS:Xa}=__STORYBOOK_MODULE_CORE_EVENTS__;var W0="whats-new",e1=n(({fullAPI:e,store:r,provider:o})=>{let i={whatsNewData:void 0};function u(p){r.setState({whatsNewData:p}),i.whatsNewData=p}n(u,"setWhatsNewState");let h={isWhatsNewUnread(){var p;return((p=i.whatsNewData)==null?void 0:p.status)==="SUCCESS"&&!i.whatsNewData.postIsRead},whatsNewHasBeenRead(){var p;((p=i.whatsNewData)==null?void 0:p.status)==="SUCCESS"&&(c({lastReadPost:i.whatsNewData.url}),u({...i.whatsNewData,postIsRead:!0}),e.clearNotification(W0))},toggleWhatsNewNotifications(){var p,b;((p=i.whatsNewData)==null?void 0:p.status)==="SUCCESS"&&(u({...i.whatsNewData,disableWhatsNewNotifications:!i.whatsNewData.disableWhatsNewNotifications}),(b=o.channel)==null||b.emit(Xa,{disableWhatsNewNotifications:i.whatsNewData.disableWhatsNewNotifications}))}};function l(){var p;return(p=o.channel)==null||p.emit(Qa),new Promise(b=>{var S;return(S=o.channel)==null?void 0:S.once(Ja,({data:mt})=>b(mt))})}n(l,"getLatestWhatsNewPost");function c(p){var b;(b=o.channel)==null||b.emit(Za,p)}return n(c,"setWhatsNewCache"),{init:n(async()=>{var S;if(A.CONFIG_TYPE!=="DEVELOPMENT")return;let p=await l();u(p);let b=e.getUrlState();!((b==null?void 0:b.path)==="/onboarding"||((S=b.queryParams)==null?void 0:S.onboarding)==="true")&&p.status==="SUCCESS"&&!p.disableWhatsNewNotifications&&p.showNotification&&e.addNotification({id:W0,link:"/settings/whats-new",content:{headline:p.title,subHeadline:"Learn what's new in Storybook"},icon:React.createElement($0,null),onClear({dismissed:mt}){mt&&c({lastDismissedPost:p.url})}})},"initModule"),state:i,api:h}},"init"),oe=Pe(K0()),t1=Object.create,q0=Object.defineProperty,r1=Object.getOwnPropertyDescriptor,Y0=Object.getOwnPropertyNames,a1=Object.getPrototypeOf,n1=Object.prototype.hasOwnProperty,T=n((e,r)=>n(function(){return r||(0,e[Y0(e)[0]])((r={exports:{}}).exports,r),r.exports},"__require"),"__commonJS"),o1=n((e,r,o,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of Y0(r))!n1.call(e,u)&&u!==o&&q0(e,u,{get:n(()=>r[u],"get"),enumerable:!(i=r1(r,u))||i.enumerable});return e},"__copyProps"),De=n((e,r,o)=>(o=e!=null?t1(a1(e)):{},o1(r||!e||!e.__esModule?q0(o,"default",{value:e,enumerable:!0}):o,e)),"__toESM"),l1=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],i1=["detail"];function Q0(e){let r=l1.filter(o=>e[o]!==void 0).reduce((o,i)=>({...o,[i]:e[i]}),{});return e instanceof CustomEvent&&i1.filter(o=>e[o]!==void 0).forEach(o=>{r[o]=e[o]}),r}n(Q0,"extractEventHiddenProperties");var dr=Pe(ze()),rr=T({"node_modules/has-symbols/shams.js"(e,r){r.exports=n(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},i=Symbol("test"),u=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(u)!=="[object Symbol]")return!1;var h=42;o[i]=h;for(i in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var l=Object.getOwnPropertySymbols(o);if(l.length!==1||l[0]!==i||!Object.prototype.propertyIsEnumerable.call(o,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(o,i);if(c.value!==h||c.enumerable!==!0)return!1}return!0},"hasSymbols")}}),ar=T({"node_modules/has-symbols/index.js"(e,r){var o=typeof Symbol<"u"&&Symbol,i=rr();r.exports=n(function(){return typeof o!="function"||typeof Symbol!="function"||typeof o("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i()},"hasNativeSymbols")}}),c1=T({"node_modules/function-bind/implementation.js"(e,r){var o="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,u=Object.prototype.toString,h="[object Function]";r.exports=n(function(l){var c=this;if(typeof c!="function"||u.call(c)!==h)throw new TypeError(o+c);for(var p=i.call(arguments,1),b,S=n(function(){if(this instanceof b){var Ko=c.apply(this,p.concat(i.call(arguments)));return Object(Ko)===Ko?Ko:this}else return c.apply(l,p.concat(i.call(arguments)))},"binder"),mt=Math.max(0,c.length-p.length),zr=[],yr=0;yr<mt;yr++)zr.push("$"+yr);if(b=Function("binder","return function ("+zr.join(",")+"){ return binder.apply(this,arguments); }")(S),c.prototype){var ea=n(function(){},"Empty2");ea.prototype=c.prototype,b.prototype=new ea,ea.prototype=null}return b},"bind")}}),zt=T({"node_modules/function-bind/index.js"(e,r){var o=c1();r.exports=Function.prototype.bind||o}}),s1=T({"node_modules/has/src/index.js"(e,r){var o=zt();r.exports=o.call(Function.call,Object.prototype.hasOwnProperty)}}),nr=T({"node_modules/get-intrinsic/index.js"(e,r){var o,i=SyntaxError,u=Function,h=TypeError,l=n(function(oi){try{return u('"use strict"; return ('+oi+").constructor;")()}catch{}},"getEvalledConstructor"),c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch{c=null}var p=n(function(){throw new h},"throwTypeError"),b=c?function(){try{return arguments.callee,p}catch{try{return c(arguments,"callee").get}catch{return p}}}():p,S=ar()(),mt=Object.getPrototypeOf||function(oi){return oi.__proto__},zr={},yr=typeof Uint8Array>"u"?o:mt(Uint8Array),ea={"%AggregateError%":typeof AggregateError>"u"?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?o:ArrayBuffer,"%ArrayIteratorPrototype%":S?mt([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":zr,"%AsyncGenerator%":zr,"%AsyncGeneratorFunction%":zr,"%AsyncIteratorPrototype%":zr,"%Atomics%":typeof Atomics>"u"?o:Atomics,"%BigInt%":typeof BigInt>"u"?o:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?o:Float32Array,"%Float64Array%":typeof Float64Array>"u"?o:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?o:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":zr,"%Int8Array%":typeof Int8Array>"u"?o:Int8Array,"%Int16Array%":typeof Int16Array>"u"?o:Int16Array,"%Int32Array%":typeof Int32Array>"u"?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":S?mt(mt([][Symbol.iterator]())):o,"%JSON%":typeof JSON=="object"?JSON:o,"%Map%":typeof Map>"u"?o:Map,"%MapIteratorPrototype%":typeof Map>"u"||!S?o:mt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?o:Promise,"%Proxy%":typeof Proxy>"u"?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?o:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?o:Set,"%SetIteratorPrototype%":typeof Set>"u"||!S?o:mt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":S?mt(""[Symbol.iterator]()):o,"%Symbol%":S?Symbol:o,"%SyntaxError%":i,"%ThrowTypeError%":b,"%TypedArray%":yr,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?o:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?o:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?o:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?o:WeakMap,"%WeakRef%":typeof WeakRef>"u"?o:WeakRef,"%WeakSet%":typeof WeakSet>"u"?o:WeakSet},Ko=n(function oi(ci){var Ya;if(ci==="%AsyncFunction%")Ya=l("async function () {}");else if(ci==="%GeneratorFunction%")Ya=l("function* () {}");else if(ci==="%AsyncGeneratorFunction%")Ya=l("async function* () {}");else if(ci==="%AsyncGenerator%"){var qo=oi("%AsyncGeneratorFunction%");qo&&(Ya=qo.prototype)}else if(ci==="%AsyncIteratorPrototype%"){var ai=oi("%AsyncGenerator%");ai&&(Ya=mt(ai.prototype))}return ea[ci]=Ya,Ya},"doEval2"),ei={"%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"]},ri=zt(),pi=s1(),li=ri.call(Function.call,Array.prototype.concat),hi=ri.call(Function.apply,Array.prototype.splice),bi=ri.call(Function.call,String.prototype.replace),ca=ri.call(Function.call,String.prototype.slice),ia=ri.call(Function.call,RegExp.prototype.exec),Da=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ni=/\\(\\)?/g,ti=n(function(oi){var ci=ca(oi,0,1),Ya=ca(oi,-1);if(ci==="%"&&Ya!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(Ya==="%"&&ci!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var qo=[];return bi(oi,Da,function(ai,ui,si,fi){qo[qo.length]=si?bi(fi,ni,"$1"):ui||ai}),qo},"stringToPath3"),ii=n(function(oi,ci){var Ya=oi,qo;if(pi(ei,Ya)&&(qo=ei[Ya],Ya="%"+qo[0]+"%"),pi(ea,Ya)){var ai=ea[Ya];if(ai===zr&&(ai=Ko(Ya)),typeof ai>"u"&&!ci)throw new h("intrinsic "+oi+" exists, but is not available. Please file an issue!");return{alias:qo,name:Ya,value:ai}}throw new i("intrinsic "+oi+" does not exist!")},"getBaseIntrinsic2");r.exports=n(function(oi,ci){if(typeof oi!="string"||oi.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ci!="boolean")throw new h('"allowMissing" argument must be a boolean');if(ia(/^%?[^%]*%?$/,oi)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ya=ti(oi),qo=Ya.length>0?Ya[0]:"",ai=ii("%"+qo+"%",ci),ui=ai.name,si=ai.value,fi=!1,di=ai.alias;di&&(qo=di[0],hi(Ya,li([0,1],di)));for(var yi=1,gi=!0;yi<Ya.length;yi+=1){var mi=Ya[yi],$i=ca(mi,0,1),vi=ca(mi,-1);if(($i==='"'||$i==="'"||$i==="`"||vi==='"'||vi==="'"||vi==="`")&&$i!==vi)throw new i("property names with quotes must have matching quotes");if((mi==="constructor"||!gi)&&(fi=!0),qo+="."+mi,ui="%"+qo+"%",pi(ea,ui))si=ea[ui];else if(si!=null){if(!(mi in si)){if(!ci)throw new h("base intrinsic for "+oi+" exists, but the property is not available.");return}if(c&&yi+1>=Ya.length){var Ei=c(si,mi);gi=!!Ei,gi&&"get"in Ei&&!("originalValue"in Ei.get)?si=Ei.get:si=si[mi]}else gi=pi(si,mi),si=si[mi];gi&&!fi&&(ea[ui]=si)}}return si},"GetIntrinsic")}}),f1=T({"node_modules/call-bind/index.js"(e,r){var o=zt(),i=nr(),u=i("%Function.prototype.apply%"),h=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||o.call(h,u),c=i("%Object.getOwnPropertyDescriptor%",!0),p=i("%Object.defineProperty%",!0),b=i("%Math.max%");if(p)try{p({},"a",{value:1})}catch{p=null}r.exports=n(function(mt){var zr=l(o,h,arguments);if(c&&p){var yr=c(zr,"length");yr.configurable&&p(zr,"length",{value:1+b(0,mt.length-(arguments.length-1))})}return zr},"callBind");var S=n(function(){return l(o,u,arguments)},"applyBind2");p?p(r.exports,"apply",{value:S}):r.exports.apply=S}}),d1=T({"node_modules/call-bind/callBound.js"(e,r){var o=nr(),i=f1(),u=i(o("String.prototype.indexOf"));r.exports=n(function(h,l){var c=o(h,!!l);return typeof c=="function"&&u(h,".prototype.")>-1?i(c):c},"callBoundIntrinsic")}}),h1=T({"node_modules/has-tostringtag/shams.js"(e,r){var o=rr();r.exports=n(function(){return o()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),u1=T({"node_modules/is-regex/index.js"(e,r){var o=d1(),i=h1()(),u,h,l,c;i&&(u=o("Object.prototype.hasOwnProperty"),h=o("RegExp.prototype.exec"),l={},p=n(function(){throw l},"throwRegexMarker"),c={toString:p,valueOf:p},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=p));var p,b=o("Object.prototype.toString"),S=Object.getOwnPropertyDescriptor,mt="[object RegExp]";r.exports=n(i?function(zr){if(!zr||typeof zr!="object")return!1;var yr=S(zr,"lastIndex"),ea=yr&&u(yr,"value");if(!ea)return!1;try{h(zr,c)}catch(Ko){return Ko===l}}:function(zr){return!zr||typeof zr!="object"&&typeof zr!="function"?!1:b(zr)===mt},"isRegex")}}),p1=T({"node_modules/is-function/index.js"(e,r){r.exports=i;var o=Object.prototype.toString;function i(u){if(!u)return!1;var h=o.call(u);return h==="[object Function]"||typeof u=="function"&&h!=="[object RegExp]"||typeof window<"u"&&(u===window.setTimeout||u===window.alert||u===window.confirm||u===window.prompt)}n(i,"isFunction3")}}),v1=T({"node_modules/is-symbol/index.js"(e,r){var o=Object.prototype.toString,i=ar()();i?(u=Symbol.prototype.toString,h=/^Symbol\(.*\)$/,l=n(function(c){return typeof c.valueOf()!="symbol"?!1:h.test(u.call(c))},"isRealSymbolObject"),r.exports=n(function(c){if(typeof c=="symbol")return!0;if(o.call(c)!=="[object Symbol]")return!1;try{return l(c)}catch{return!1}},"isSymbol3")):r.exports=n(function(c){return!1},"isSymbol3");var u,h,l}}),m1=De(u1()),g1=De(p1()),w1=De(v1());function y1(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}n(y1,"isObject");var R1=typeof global=="object"&&global&&global.Object===Object&&global,S1=R1,I1=typeof self=="object"&&self&&self.Object===Object&&self,x1=S1||I1||Function("return this")(),Ht=x1,E1=Ht.Symbol,te=E1,or=Object.prototype,A1=or.hasOwnProperty,P1=or.toString,me=te?te.toStringTag:void 0;function _1(e){var r=A1.call(e,me),o=e[me];try{e[me]=void 0;var i=!0}catch{}var u=P1.call(e);return i&&(r?e[me]=o:delete e[me]),u}n(_1,"getRawTag");var b1=_1,M1=Object.prototype,C1=M1.toString;function z1(e){return C1.call(e)}n(z1,"objectToString");var H1=z1,L1="[object Null]",O1="[object Undefined]",J0=te?te.toStringTag:void 0;function T1(e){return e==null?e===void 0?O1:L1:J0&&J0 in Object(e)?b1(e):H1(e)}n(T1,"baseGetTag");var lr=T1;function B1(e){return e!=null&&typeof e=="object"}n(B1,"isObjectLike");var V1=B1,D1="[object Symbol]";function k1(e){return typeof e=="symbol"||V1(e)&&lr(e)==D1}n(k1,"isSymbol");var Lt=k1;function N1(e,r){for(var o=-1,i=e==null?0:e.length,u=Array(i);++o<i;)u[o]=r(e[o],o,e);return u}n(N1,"arrayMap");var F1=N1,j1=Array.isArray,Ot=j1,U1=1/0,Z0=te?te.prototype:void 0,X0=Z0?Z0.toString:void 0;function ir(e){if(typeof e=="string")return e;if(Ot(e))return F1(e,ir)+"";if(Lt(e))return X0?X0.call(e):"";var r=e+"";return r=="0"&&1/e==-U1?"-0":r}n(ir,"baseToString");var G1=ir;function $1(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}n($1,"isObject2");var cr=$1,W1="[object AsyncFunction]",K1="[object Function]",q1="[object GeneratorFunction]",Y1="[object Proxy]";function Q1(e){if(!cr(e))return!1;var r=lr(e);return r==K1||r==q1||r==W1||r==Y1}n(Q1,"isFunction");var J1=Q1,Z1=Ht["__core-js_shared__"],Ct=Z1,er=function(){var e=/[^.]+$/.exec(Ct&&Ct.keys&&Ct.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function X1(e){return!!er&&er in e}n(X1,"isMasked");var en=X1,tn=Function.prototype,rn=tn.toString;function an(e){if(e!=null){try{return rn.call(e)}catch{}try{return e+""}catch{}}return""}n(an,"toSource");var nn=an,on=/[\\^$.*+?()[\]{}|]/g,ln=/^\[object .+?Constructor\]$/,cn=Function.prototype,sn=Object.prototype,fn=cn.toString,dn=sn.hasOwnProperty,hn=RegExp("^"+fn.call(dn).replace(on,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function un(e){if(!cr(e)||en(e))return!1;var r=J1(e)?hn:ln;return r.test(nn(e))}n(un,"baseIsNative");var pn=un;function vn(e,r){return e==null?void 0:e[r]}n(vn,"getValue");var mn=vn;function gn(e,r){var o=mn(e,r);return pn(o)?o:void 0}n(gn,"getNative");var sr=gn;function wn(e,r){return e===r||e!==e&&r!==r}n(wn,"eq");var yn=wn,Rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sn=/^\w*$/;function In(e,r){if(Ot(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Lt(e)?!0:Sn.test(e)||!Rn.test(e)||r!=null&&e in Object(r)}n(In,"isKey");var xn=In,En=sr(Object,"create"),ge=En;function An(){this.__data__=ge?ge(null):{},this.size=0}n(An,"hashClear");var Pn=An;function _n(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}n(_n,"hashDelete");var bn=_n,Mn="__lodash_hash_undefined__",Cn=Object.prototype,zn=Cn.hasOwnProperty;function Hn(e){var r=this.__data__;if(ge){var o=r[e];return o===Mn?void 0:o}return zn.call(r,e)?r[e]:void 0}n(Hn,"hashGet");var Ln=Hn,On=Object.prototype,Tn=On.hasOwnProperty;function Bn(e){var r=this.__data__;return ge?r[e]!==void 0:Tn.call(r,e)}n(Bn,"hashHas");var Vn=Bn,Dn="__lodash_hash_undefined__";function kn(e,r){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=ge&&r===void 0?Dn:r,this}n(kn,"hashSet");var Nn=kn;function re(e){var r=-1,o=e==null?0:e.length;for(this.clear();++r<o;){var i=e[r];this.set(i[0],i[1])}}n(re,"Hash");re.prototype.clear=Pn;re.prototype.delete=bn;re.prototype.get=Ln;re.prototype.has=Vn;re.prototype.set=Nn;var tr=re;function Fn(){this.__data__=[],this.size=0}n(Fn,"listCacheClear");var jn=Fn;function Un(e,r){for(var o=e.length;o--;)if(yn(e[o][0],r))return o;return-1}n(Un,"assocIndexOf");var Ne=Un,Gn=Array.prototype,$n=Gn.splice;function Wn(e){var r=this.__data__,o=Ne(r,e);if(o<0)return!1;var i=r.length-1;return o==i?r.pop():$n.call(r,o,1),--this.size,!0}n(Wn,"listCacheDelete");var Kn=Wn;function qn(e){var r=this.__data__,o=Ne(r,e);return o<0?void 0:r[o][1]}n(qn,"listCacheGet");var Yn=qn;function Qn(e){return Ne(this.__data__,e)>-1}n(Qn,"listCacheHas");var Jn=Qn;function Zn(e,r){var o=this.__data__,i=Ne(o,e);return i<0?(++this.size,o.push([e,r])):o[i][1]=r,this}n(Zn,"listCacheSet");var Xn=Zn;function ae(e){var r=-1,o=e==null?0:e.length;for(this.clear();++r<o;){var i=e[r];this.set(i[0],i[1])}}n(ae,"ListCache");ae.prototype.clear=jn;ae.prototype.delete=Kn;ae.prototype.get=Yn;ae.prototype.has=Jn;ae.prototype.set=Xn;var eo=ae,to=sr(Ht,"Map"),ro=to;function ao(){this.size=0,this.__data__={hash:new tr,map:new(ro||eo),string:new tr}}n(ao,"mapCacheClear");var no=ao;function oo(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}n(oo,"isKeyable");var lo=oo;function io(e,r){var o=e.__data__;return lo(r)?o[typeof r=="string"?"string":"hash"]:o.map}n(io,"getMapData");var Fe=io;function co(e){var r=Fe(this,e).delete(e);return this.size-=r?1:0,r}n(co,"mapCacheDelete");var so=co;function fo(e){return Fe(this,e).get(e)}n(fo,"mapCacheGet");var ho=fo;function uo(e){return Fe(this,e).has(e)}n(uo,"mapCacheHas");var po=uo;function vo(e,r){var o=Fe(this,e),i=o.size;return o.set(e,r),this.size+=o.size==i?0:1,this}n(vo,"mapCacheSet");var mo=vo;function ne(e){var r=-1,o=e==null?0:e.length;for(this.clear();++r<o;){var i=e[r];this.set(i[0],i[1])}}n(ne,"MapCache");ne.prototype.clear=no;ne.prototype.delete=so;ne.prototype.get=ho;ne.prototype.has=po;ne.prototype.set=mo;var fr=ne,go="Expected a function";function Tt(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(go);var o=n(function(){var i=arguments,u=r?r.apply(this,i):i[0],h=o.cache;if(h.has(u))return h.get(u);var l=e.apply(this,i);return o.cache=h.set(u,l)||h,l},"memoized");return o.cache=new(Tt.Cache||fr),o}n(Tt,"memoize");Tt.Cache=fr;var wo=Tt,yo=500;function Ro(e){var r=wo(e,function(i){return o.size===yo&&o.clear(),i}),o=r.cache;return r}n(Ro,"memoizeCapped");var So=Ro,Io=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xo=/\\(\\)?/g,Eo=So(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Io,function(o,i,u,h){r.push(u?h.replace(xo,"$1"):i||o)}),r}),Ao=Eo;function Po(e){return e==null?"":G1(e)}n(Po,"toString");var _o=Po;function bo(e,r){return Ot(e)?e:xn(e,r)?[e]:Ao(_o(e))}n(bo,"castPath");var Mo=bo,Co=1/0;function zo(e){if(typeof e=="string"||Lt(e))return e;var r=e+"";return r=="0"&&1/e==-Co?"-0":r}n(zo,"toKey");var Ho=zo;function Lo(e,r){r=Mo(r,e);for(var o=0,i=r.length;e!=null&&o<i;)e=e[Ho(r[o++])];return o&&o==i?e:void 0}n(Lo,"baseGet");var Oo=Lo;function To(e,r,o){var i=e==null?void 0:Oo(e,r);return i===void 0?o:i}n(To,"get");var Bo=To,ke=y1,Vo=n(e=>{let r=null,o=!1,i=!1,u=!1,h="";if(e.indexOf("//")>=0||e.indexOf("/*")>=0)for(let l=0;l<e.length;l+=1)!r&&!o&&!i&&!u?e[l]==='"'||e[l]==="'"||e[l]==="`"?r=e[l]:e[l]==="/"&&e[l+1]==="*"?o=!0:e[l]==="/"&&e[l+1]==="/"?i=!0:e[l]==="/"&&e[l+1]!=="/"&&(u=!0):(r&&(e[l]===r&&e[l-1]!=="\\"||e[l]===`
178
- `&&r!=="`")&&(r=null),u&&(e[l]==="/"&&e[l-1]!=="\\"||e[l]===`
179
- `)&&(u=!1),o&&e[l-1]==="/"&&e[l-2]==="*"&&(o=!1),i&&e[l]===`
180
- `&&(i=!1)),!o&&!i&&(h+=e[l]);else h=e;return h},"removeCodeComments"),Do=(0,dr.default)(1e4)(e=>Vo(e).replace(/\n\s*/g,"").trim()),ko=n(function(e,r){let o=r.slice(0,r.indexOf("{")),i=r.slice(r.indexOf("{"));if(o.includes("=>")||o.includes("function"))return r;let u=o;return u=u.replace(e,"function"),u+i},"convertShorthandMethods2"),No=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Fo=n(e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),"isJSON");function hr(e){if(!ke(e))return e;let r=e,o=!1;return typeof Event<"u"&&e instanceof Event&&(r=Q0(r),o=!0),r=Object.keys(r).reduce((i,u)=>{try{r[u]&&r[u].toJSON,i[u]=r[u]}catch{o=!0}return i},{}),o?r:e}n(hr,"convertUnconventionalData");var jo=n(function(e){let r,o,i,u;return n(function(h,l){try{if(h==="")return u=[],r=new Map([[l,"[]"]]),o=new Map,i=[],l;let c=o.get(this)||this;for(;i.length&&c!==i[0];)i.shift(),u.pop();if(typeof l=="boolean")return l;if(l===void 0)return e.allowUndefined?"_undefined_":void 0;if(l===null)return null;if(typeof l=="number")return l===-1/0?"_-Infinity_":l===1/0?"_Infinity_":Number.isNaN(l)?"_NaN_":l;if(typeof l=="bigint")return`_bigint_${l.toString()}`;if(typeof l=="string")return No.test(l)?e.allowDate?`_date_${l}`:void 0:l;if((0,m1.default)(l))return e.allowRegExp?`_regexp_${l.flags}|${l.source}`:void 0;if((0,g1.default)(l)){if(!e.allowFunction)return;let{name:b}=l,S=l.toString();return S.match(/(\[native code\]|WEBPACK_IMPORTED_MODULE|__webpack_exports__|__webpack_require__)/)?`_function_${b}|${(()=>{}).toString()}`:`_function_${b}|${Do(ko(h,S))}`}if((0,w1.default)(l)){if(!e.allowSymbol)return;let b=Symbol.keyFor(l);return b!==void 0?`_gsymbol_${b}`:`_symbol_${l.toString().slice(7,-1)}`}if(i.length>=e.maxDepth)return Array.isArray(l)?`[Array(${l.length})]`:"[Object]";if(l===this)return`_duplicate_${JSON.stringify(u)}`;if(l instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...l.cause?{cause:l.cause}:{},...l,name:l.name,message:l.message,stack:l.stack,"_constructor-name_":l.constructor.name}};if(l.constructor&&l.constructor.name&&l.constructor.name!=="Object"&&!Array.isArray(l)&&!e.allowClass)return;let p=r.get(l);if(!p){let b=Array.isArray(l)?l:hr(l);if(l.constructor&&l.constructor.name&&l.constructor.name!=="Object"&&!Array.isArray(l)&&e.allowClass)try{Object.assign(b,{"_constructor-name_":l.constructor.name})}catch{}return u.push(h),i.unshift(b),r.set(l,JSON.stringify(u)),l!==b&&o.set(l,b),b}return`_duplicate_${p}`}catch{return}},"replace")},"replacer2"),Uo=n(function reviver(options){let refs=[],root;return n(function revive(key,value){if(key===""&&(root=value,refs.forEach(({target:e,container:r,replacement:o})=>{let i=Fo(o)?JSON.parse(o):o.split(".");i.length===0?r[e]=root:r[e]=Bo(root,i)})),key==="_constructor-name_")return value;if(ke(value)&&value.__isConvertedError__){let{message:e,...r}=value.errorProperties,o=new Error(e);return Object.assign(o,r),o}if(ke(value)&&value["_constructor-name_"]&&options.allowFunction){let e=value["_constructor-name_"];if(e!=="Object"){let r=new Function(`return function ${e.replace(/[^a-zA-Z0-9$_]+/g,"")}(){}`)();Object.setPrototypeOf(value,new r)}return delete value["_constructor-name_"],value}if(typeof value=="string"&&value.startsWith("_function_")&&options.allowFunction){let[,name,source]=value.match(/_function_([^|]*)\|(.*)/)||[],sourceSanitized=source.replace(/[(\(\))|\\| |\]|`]*$/,"");if(!options.lazyEval)return eval(`(${sourceSanitized})`);let result=n((...args)=>{let f=eval(`(${sourceSanitized})`);return f(...args)},"result");return Object.defineProperty(result,"toString",{value:n(()=>sourceSanitized,"value")}),Object.defineProperty(result,"name",{value:name}),result}if(typeof value=="string"&&value.startsWith("_regexp_")&&options.allowRegExp){let[,e,r]=value.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(r,e)}return typeof value=="string"&&value.startsWith("_date_")&&options.allowDate?new Date(value.replace("_date_","")):typeof value=="string"&&value.startsWith("_duplicate_")?(refs.push({target:key,container:this,replacement:value.replace(/^_duplicate_/,"")}),null):typeof value=="string"&&value.startsWith("_symbol_")&&options.allowSymbol?Symbol(value.replace("_symbol_","")):typeof value=="string"&&value.startsWith("_gsymbol_")&&options.allowSymbol?Symbol.for(value.replace("_gsymbol_","")):typeof value=="string"&&value==="_-Infinity_"?-1/0:typeof value=="string"&&value==="_Infinity_"?1/0:typeof value=="string"&&value==="_NaN_"?NaN:typeof value=="string"&&value.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(value.replace("_bigint_","")):value},"revive")},"reviver"),ur={maxDepth:10,space:void 0,allowFunction:!0,allowRegExp:!0,allowDate:!0,allowClass:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0,lazyEval:!0},pr=n((e,r={})=>{let o={...ur,...r};return JSON.stringify(hr(e),jo(o),r.space)},"stringify"),Go=n(()=>{let e=new Map;return n(function r(o){ke(o)&&Object.entries(o).forEach(([i,u])=>{u==="_undefined_"?o[i]=void 0:e.get(u)||(e.set(u,!0),r(u))}),Array.isArray(o)&&o.forEach((i,u)=>{i==="_undefined_"?(e.set(i,!0),o[u]=void 0):e.get(i)||(e.set(i,!0),r(i))})},"mutateUndefined")},"mutator"),vr=n((e,r={})=>{let o={...ur,...r},i=JSON.parse(e,Uo(o));return Go()(i),i},"parse"),mr=n(e=>{e.fn("set",function(r,o){return e.set(this._area,this._in(r),pr(o,{maxDepth:50}))}),e.fn("get",function(r,o){let i=e.get(this._area,this._in(r));return i!==null?vr(i):o||i})},"default");mr(oe.default._);var gr="@storybook/manager/store";function Bt(e){return e.get(gr)||{}}n(Bt,"get");function $o(e,r){return e.set(gr,r)}n($o,"set");function Wo(e,r){let o=Bt(e);return $o(e,{...o,...r})}n(Wo,"update");var Vt=class{constructor({setState:r,getState:o}){this.upstreamSetState=r,this.upstreamGetState=o}getInitialState(r){return{...r,...Bt(oe.default.local),...Bt(oe.default.session)}}getState(){return this.upstreamGetState()}async setState(r,o,i){let u,h;typeof o=="function"?(u=o,h=i):h=o;let{persistence:l="none"}=h||{},c={},p={};typeof r=="function"?c=n(S=>(p=r(S),p),"patch"):(c=r,p=c);let b=await new Promise(S=>{this.upstreamSetState(c,()=>{S(this.getState())})});if(l!=="none"){let S=l==="session"?oe.default.session:oe.default.local;await Wo(S,p)}return u&&u(b),b}};n(Vt,"Store");var we=Vt,Dt=class extends Error{constructor(r,o){super(r),this.payload=void 0,this.payload=o}};n(Dt,"RequestResponseError");var Ge=Ut({api:void 0,state:Ce({})}),z0=n((...e)=>w0({},...e),"combineParameters"),Ue=class extends reactExports.Component{constructor(r){super(r),this.api={},this.initModules=n(()=>{this.modules.forEach(ei=>{"init"in ei&&ei.init()})},"initModules");let{location:o,path:i,refId:u,viewMode:h=r.docsOptions.docsMode?"docs":r.viewMode,singleStory:l,storyId:c,docsOptions:p,navigate:b}=r,S=new we({getState:n(()=>this.state,"getState"),setState:n((ei,ri)=>(this.setState(ei,()=>ri(this.state)),this.state),"setState")}),mt={location:o,path:i,viewMode:h,singleStory:l,storyId:c,refId:u},zr={docsOptions:p};this.state=S.getInitialState(Ce({...mt,...zr}));let yr={navigate:b,store:S,provider:r.provider};this.modules=[ut,nt,at,Oe,ht,pt,It,Et,ct,st,_t,bt,Mt].map(ei=>ei.init({...mt,...zr,...yr,state:this.state,fullAPI:this.api}));let ea=Ce(this.state,...this.modules.map(ei=>ei.state)),Ko=Object.assign(this.api,{navigate:b},...this.modules.map(ei=>ei.api));this.state=ea,this.api=Ko}static getDerivedStateFromProps(r,o){return o.path!==r.path?{...o,location:r.location,path:r.path,refId:r.refId,viewMode:r.viewMode,storyId:r.storyId}:null}shouldComponentUpdate(r,o){let i=this.state,u=this.props;return i!==o||u.path!==r.path}render(){let{children:r}=this.props,o={state:this.state,api:this.api};return React.createElement(Jo,{effect:this.initModules},React.createElement(Ge.Provider,{value:o},React.createElement(Xo,null,r)))}};n(Ue,"ManagerProvider"),Ue.displayName="Manager";var Jo=n(({children:e,effect:r})=>(React.useEffect(r,[]),e),"EffectOnMount"),Zo=n(e=>e,"defaultFilter");function Xo({filter:e=Zo,children:r}){let o=reactExports.useContext(Ge),i=reactExports.useRef(r),u=reactExports.useRef(e);if(typeof i.current!="function")return React.createElement(reactExports.Fragment,null,i.current);let h=u.current(o),l=reactExports.useMemo(()=>[...Object.entries(h).reduce((c,p)=>c.concat(p),[])],[o.state]);return reactExports.useMemo(()=>{let c=i.current;return React.createElement(c,{...h})},l)}n(Xo,"ManagerConsumer");function mc(){let{state:e}=reactExports.useContext(Ge);return{...e,get storiesHash(){return kt("state.storiesHash is deprecated, please use state.index"),this.index||{}},get storiesConfigured(){return kt("state.storiesConfigured is deprecated, please use state.previewInitialized"),this.previewInitialized},get storiesFailed(){return kt("state.storiesFailed is deprecated, please use state.indexError"),this.indexError}}}n(mc,"useStorybookState");function K(){let{api:e}=reactExports.useContext(Ge);return e}n(K,"useStorybookApi");function xr(e,r){return typeof e>"u"?r:e}n(xr,"orDefault");var e5=n((e,r=[])=>{let o=K();return reactExports.useEffect(()=>(Object.entries(e).forEach(([i,u])=>o.on(i,u)),()=>{Object.entries(e).forEach(([i,u])=>o.off(i,u))}),r),o.emit},"useChannel");function gc(e){return K().isPrepared(e)}n(gc,"useStoryPrepared");function wc(e,r){let o=K().getCurrentParameter(e);return xr(o,r)}n(wc,"useParameter");globalThis.STORYBOOK_ADDON_STATE={};var{STORYBOOK_ADDON_STATE:j}=globalThis;function t5(e,r){let o=K(),i=o.getAddonState(e)||j[e],u=xr(i,j[e]?j[e]:r),h=!1;u===r&&r!==void 0&&(j[e]=r,h=!0),reactExports.useEffect(()=>{h&&o.setAddonState(e,r)},[h]);let l=n(async(b,S)=>{await o.setAddonState(e,b,S);let mt=o.getAddonState(e);return j[e]=mt,mt},"setState"),c=reactExports.useMemo(()=>{let b={[`${Rr}-client-${e}`]:l,[`${ye}-client-${e}`]:l},S={[Yo]:async()=>{let mt=o.getAddonState(e);mt?(j[e]=mt,o.emit(`${ye}-manager-${e}`,mt)):j[e]?(await l(j[e]),o.emit(`${ye}-manager-${e}`,j[e])):r!==void 0&&(await l(r),j[e]=r,o.emit(`${ye}-manager-${e}`,r))},[Qo]:()=>{let mt=o.getAddonState(e);mt!==void 0&&o.emit(`${ye}-manager-${e}`,mt)}};return{...b,...S}},[e]),p=e5(c);return[u,async(b,S)=>{await l(b,S);let mt=o.getAddonState(e);p(`${Rr}-manager-${e}`,mt)}]}n(t5,"useSharedState");function yc(e,r){return t5(e,r)}n(yc,"useAddonState");function Rc(){let{getCurrentStoryData:e,updateStoryArgs:r,resetStoryArgs:o}=K(),i=e(),u=(i==null?void 0:i.type)==="story"?i.args:{},h=(i==null?void 0:i.type)==="story"?i.initialArgs:{},l=reactExports.useCallback(p=>r(i,p),[i,r]),c=reactExports.useCallback(p=>o(i,p),[i,o]);return[u,l,c,h]}n(Rc,"useArgs");function Sc(){let e=K();return[e.getGlobals(),e.updateGlobals,e.getStoryGlobals(),e.getUserGlobals()]}n(Sc,"useGlobals");function Ic(){return K().getGlobalTypes()}n(Ic,"useGlobalTypes");function r5(){let{getCurrentStoryData:e}=K();return e()}n(r5,"useCurrentStory");function xc(){let e=r5();return(e==null?void 0:e.type)==="story"&&e.argTypes||{}}n(xc,"useArgTypes");const version$1="experimental",tags=[{name:"spectric-banner",path:"./../../src/components/Banner.ts",attributes:[{name:"bannerId",description:"What is returned in the event details when a banner is dismissed",type:"string | undefined",default:'""'},{name:"text",description:"Banner Text to display",type:"string | undefined",default:'""'},{name:"headerStyle",description:"What background color to use",type:"StyleInfo | undefined",default:"{}"},{name:"dismissable",description:"Can be dismissed",type:"boolean",default:"false"}],properties:[{name:"bannerId",attribute:"bannerId",description:"What is returned in the event details when a banner is dismissed",type:"string | undefined",default:'""'},{name:"text",attribute:"text",description:"Banner Text to display",type:"string | undefined",default:'""'},{name:"headerStyle",attribute:"headerStyle",description:"What background color to use",type:"StyleInfo | undefined",default:"{}"},{name:"dismissable",attribute:"dismissable",description:"Can be dismissed",type:"boolean",default:"false"}],events:[{name:"bannerDismissed"}],slots:[{name:"text",description:"Banner Text content"}]},{name:"spectric-bit-display",path:"./../../src/components/Bitdisplay.ts",attributes:[{name:"frameWidth",description:"Bits per line",type:"number",default:"100"},{name:"scale",description:"How many pixels per bit",type:"number",default:"1"},{name:"width",description:"Width of the display canvas",type:"number",default:"200"},{name:"height",description:"Height of the display canvas",type:"number",default:"200"}],properties:[{name:"styles",type:"CSSResult",default:'"css`\\n :host{\\n position: relative;\\n --border-radius: var(--spectric-border-radius,4em);\\n --scroll-color: var(--spectric-background-inverse,#393939);\\n --background-color: var(--spectric-background, #ffffff);\\n }\\n #viewport{\\n overflow: scroll;\\n position: absolute;\\n }\\n #fakescrolldiv {\\n position: relative;\\n overflow-x: hidden;\\n overflow-y: hidden;\\n }\\n canvas{\\n position: absolute;\\n left:0;\\n top:0;\\n background-color:var(--background-color);\\n }\\n ::-webkit-scrollbar {\\n height: ${SCROLLBAR_SIZE.height}px;\\n width: ${SCROLLBAR_SIZE.width}px;\\n\\n}\\n\\n/* Webkit psudo elements don\'t pick up variables defined by the host */\\n::-webkit-scrollbar-thumb {\\n background: var(--spectric-background-inverse,#393939);\\n border-radius: var(--spectric-border-radius,4em);\\n -webkit-border-radius: var(--spectric-border-radius,4em);\\n padding-top: 1px;\\n padding-bottom: 1px;\\n}\\n::-webkit-scrollbar-thumb:hover {\\n background: var(--spectric-background-inverse-hover,#474747);\\n\\n}\\n::-webkit-scrollbar-corner {\\n background: var(--spectric-background, #ffffff);\\n}\\n/* Buttons */\\n\\n::-webkit-scrollbar-button:single-button {\\n background-color: transparent;\\n display: block;\\n border-style: solid;\\n}\\n/* Up */\\n::-webkit-scrollbar-button:single-button:vertical:decrement {\\n border-width: 0 5px 5px 5px;\\n border-color: var(--spectric-background, #ffffff) var(--spectric-background, #ffffff) var(--spectric-background-inverse,#393939) var(--spectric-background, #ffffff);\\n}\\n::-webkit-scrollbar-button:single-button:vertical:decrement:hover {\\n border-color: var(--spectric-background, #ffffff) var(--spectric-background, #ffffff) var(--spectric-background-inverse-hover,#474747) var(--spectric-background, #ffffff);\\n}\\n/* Down */\\n::-webkit-scrollbar-button:single-button:vertical:increment {\\n border-width: 5px 5px 0 5px;\\n border-color: var(--spectric-background-inverse,#393939) var(--spectric-background, #ffffff) transparent var(--spectric-background, #ffffff);\\n}\\n\\n::-webkit-scrollbar-button:vertical:single-button:increment:hover {\\n border-color: var(--spectric-background-inverse-hover,#474747) var(--spectric-background, #ffffff) transparent var(--spectric-background, #ffffff);\\n}\\n\\n/* Left */\\n::-webkit-scrollbar-button:single-button:horizontal:decrement {\\n border-width: 5px 5px 5px 0;\\n border-color:var(--spectric-background, #ffffff) var(--spectric-background-inverse,#393939) var(--spectric-background, #ffffff) var(--spectric-background, #ffffff);\\n\\n}\\n\\n::-webkit-scrollbar-button:single-button:horizontal:decrement:hover {\\n border-width: 5px 5px 5px 0;\\n border-color:var(--spectric-background, #ffffff) var(--spectric-background-inverse-hover,#474747) var(--spectric-background, #ffffff) var(--spectric-background, #ffffff);\\n\\n}\\n\\n\\n\\n/* Right */\\n::-webkit-scrollbar-button:single-button:horizontal:increment {\\n border-width: 5px 0 5px 5px;\\n border-color:var(--spectric-background, #ffffff) var(--spectric-background, #ffffff) var(--spectric-background, #ffffff) var(--spectric-background-inverse,#393939);\\n\\n}\\n\\n::-webkit-scrollbar-button:single-button:horizontal:increment:hover {\\n border-width: 5px 0 5px 5px;\\n border-color:var(--spectric-background, #ffffff) var(--spectric-background, #ffffff) var(--spectric-background, #ffffff) var(--spectric-background-inverse-hover,#474747);\\n\\n}\\n\\n\\n `"'},{name:"color",type:"string",default:'"#000000"'},{name:"arrayBuffer",description:"Array buffer to display",type:"ArrayBuffer",default:'"new ArrayBuffer(0)"'},{name:"frameWidth",attribute:"frameWidth",description:"Bits per line",type:"number",default:"100"},{name:"scale",attribute:"scale",description:"How many pixels per bit",type:"number",default:"1"},{name:"width",attribute:"width",description:"Width of the display canvas",type:"number",default:"200"},{name:"height",attribute:"height",description:"Height of the display canvas",type:"number",default:"200"}]},{name:"spectric-button",path:"./../../src/components/Button.ts",attributes:[{name:"variant",description:"Is this the principal call to action on the page?",type:'"primary" | "secondary" | "text"',default:'"primary"'},{name:"backgroundColor",description:"What background color to use",type:"string | undefined"},{name:"size",description:"How large should the button be?",type:'"small" | "medium" | "large"',default:'"large"'},{name:"label",type:"string | undefined",default:'""'},{name:"disabled",type:"boolean",default:"false"},{name:"danger",type:"boolean",default:"false"}],properties:[{name:"styles",type:"CSSResultGroup | undefined",default:'"style"'},{name:"variant",attribute:"variant",description:"Is this the principal call to action on the page?",type:'"primary" | "secondary" | "text"',default:'"primary"'},{name:"backgroundColor",attribute:"backgroundColor",description:"What background color to use",type:"string | undefined"},{name:"size",attribute:"size",description:"How large should the button be?",type:'"small" | "medium" | "large"',default:'"large"'},{name:"label",attribute:"label",type:"string | undefined",default:'""'},{name:"disabled",attribute:"disabled",type:"boolean",default:"false"},{name:"danger",attribute:"danger",type:"boolean",default:"false"}],events:[{name:"click"}]},{name:"spectric-header",path:"./../../src/components/Header.ts",attributes:[{name:"username",type:"string",default:'""'},{name:"showLoginButton",description:"Shows the login Button",type:"boolean",default:"false"},{name:"showCreateAccount",description:"Shows the create account Button when not logged in",type:"boolean",default:"false"}],properties:[{name:"styles",type:"CSSResult",default:'"styles"'},{name:"onLogout",type:"() => void",default:`"() => {\\n const options = {\\n bubbles: true,\\n composed: true,\\n };\\n this.dispatchEvent(new CustomEvent('logout', options));\\n\\n }"`},{name:"onLogin",type:"() => void",default:`"() => {\\n const options = {\\n bubbles: true,\\n composed: true,\\n };\\n this.dispatchEvent(new CustomEvent('login', options));\\n }"`},{name:"onCreateAccount",type:"() => void",default:`"() => {\\n const options = {\\n bubbles: true,\\n composed: true,\\n };\\n this.dispatchEvent(new CustomEvent('createAccount', options));\\n }"`},{name:"username",attribute:"username",type:"string",default:'""'},{name:"showLoginButton",attribute:"showLoginButton",description:"Shows the login Button",type:"boolean",default:"false"},{name:"showCreateAccount",attribute:"showCreateAccount",description:"Shows the create account Button when not logged in",type:"boolean",default:"false"}],events:[{name:"logout"},{name:"login"},{name:"createAccount"}],slots:[{name:"name",description:"Main name of the application"},{name:"branding",description:"Slot to the left of the title typically used for app icons, and/or dropdown navigation menus."},{name:"center",description:"Slot in the center of the header."},{name:"end",description:"slot right of login/out buttons"}]},{name:"spectric-page",path:"./../../src/components/Page.ts",description:`Spectric page is a basic component that will put all content into an area that expands to fill the whole screen. It calculates the size of the banners and headers for you.
181
-
182
- It exposes css properties to style all the spectric compenents contained within`,attributes:[{name:"theme",description:"If a theme other than light is provided that will be used ad css properties will be ignored",type:'"undefined" | "light" | "dark" | "spectric" | "spectricFlat" | undefined'},{name:"showHeader",type:"boolean",default:"true"},{name:"headerSticky",description:"Will control if the top navbar will stay at the top or scroll with the main content",type:"boolean",default:"true"},{name:"classificationLevel",type:'"none" | "us.cui" | "us.classified" | "us.unclassified" | "us.confidential" | "us.secret" | "us.topsecret" | "us.topsecret.si" | "uk.notset" | "uk.official" | "uk.secret" | ... 13 more ... | undefined',default:'"none"'},{name:"classificationText",description:"Overrides the default classification banner text",type:"string",default:'""'},{name:"notifications",type:"BannerProps[]",default:"[]"},{name:"username",type:"string",default:'""'},{name:"showLoginButton",description:"Shows the login Button",type:"boolean",default:"true"},{name:"showCreateAccount",description:"Shows the create account Button when not logged in",type:"boolean",default:"false"}],properties:[{name:"styles",type:"CSSResultGroup | undefined",default:'"styles"'},{name:"theme",attribute:"theme",description:"If a theme other than light is provided that will be used ad css properties will be ignored",type:'"undefined" | "light" | "dark" | "spectric" | "spectricFlat" | undefined'},{name:"showHeader",attribute:"showHeader",type:"boolean",default:"true"},{name:"headerSticky",attribute:"headerSticky",description:"Will control if the top navbar will stay at the top or scroll with the main content",type:"boolean",default:"true"},{name:"classificationLevel",attribute:"classificationLevel",type:'"none" | "us.cui" | "us.classified" | "us.unclassified" | "us.confidential" | "us.secret" | "us.topsecret" | "us.topsecret.si" | "uk.notset" | "uk.official" | "uk.secret" | ... 13 more ... | undefined',default:'"none"'},{name:"classificationText",attribute:"classificationText",description:"Overrides the default classification banner text",type:"string",default:'""'},{name:"notifications",attribute:"notifications",type:"BannerProps[]",default:"[]"},{name:"username",attribute:"username",type:"string",default:'""'},{name:"showLoginButton",attribute:"showLoginButton",description:"Shows the login Button",type:"boolean",default:"true"},{name:"showCreateAccount",attribute:"showCreateAccount",description:"Shows the create account Button when not logged in",type:"boolean",default:"false"}],slots:[{name:"",description:"Main content"},{name:"content",description:"Main content"},{name:"name",description:"Main name of the application"},{name:"branding",description:"Slot to the left of the title typically used for app icons, and/or dropdown navigation menus."},{name:"center",description:"Slot in the center of the header."},{name:"end",description:"slot right of login/out buttons"}],cssProperties:[{name:"--primary",description:"primary color",default:'"#1ea7fd"'},{name:"--secondary",description:"secondary color",default:'"#1ea7fd"'},{name:"--tertiary",description:"tertiary color",default:'"#1ea7fd"'},{name:"--disabled",description:"disabled color",default:'"#1ea7fd"'},{name:"--text-primary",description:"text colors",default:'"#1ea7fd"'},{name:"--text-secondary",description:"text colors",default:'"#1ea7fd"'},{name:"--text-on-color",description:"color of text on color",default:'"#ffffff"'},{name:"--background",description:"background color",default:'"#1ea7fd"'},{name:"--background-inverse",description:"Even Panel colors",default:'"#f4f4f4"'},{name:"--border-radius",description:"sets global border radius",default:'"0.4em"'}]},{name:"spectric-panel",path:"./../../src/components/Panel.ts",description:"Spectric Panel visually seperates content areas and automatically adjusts the component colors that are nested inside.",attributes:[{name:"level",description:"Specify the layer level and override any existing levels based on hierarchy",type:"number",default:"0"}],properties:[{name:"styles",type:"CSSResultGroup | undefined",default:'"styles"'},{name:"level",attribute:"level",description:"Specify the layer level and override any existing levels based on hierarchy",type:"number",default:"0"},{name:"layers",type:"NodeListOf<SpectricPanel> | undefined"}],events:[{name:"use-layer"}]},{name:"spectric-theme",path:"./../../src/components/ThemeProvider.ts",attributes:[{name:"theme",type:'"undefined" | "light" | "dark" | "spectric" | "spectricFlat"',default:'"undefined"'}],properties:[{name:"styles",type:"CSSResultGroup | undefined",default:'"css`:host{\\n display:contents;\\n}`"'},{name:"theme",attribute:"theme",type:'"undefined" | "light" | "dark" | "spectric" | "spectricFlat"',default:'"undefined"'}],events:[{name:"theme-change"}]},{name:"spectric-dialog",path:"./../../src/components/dialog/dialog.ts",description:"Dialog Element",attributes:[{name:"open",type:"boolean",default:"false"},{name:"dismissable",type:"boolean",default:"true"},{name:"hideBackdrop",type:"boolean",default:"false"},{name:"title",type:"string",default:'""'},{name:"closeOnEscape",type:"boolean",default:"true"},{name:"closeOnOutsideClick",type:"boolean",default:"true"}],properties:[{name:"styles",type:"CSSResultGroup",default:'"style"'},{name:"dialogElement",type:"Promise<HTMLDialogElement>"},{name:"open",attribute:"open",type:"boolean",default:"false"},{name:"dismissable",attribute:"dismissable",type:"boolean",default:"true"},{name:"hideBackdrop",attribute:"hideBackdrop",type:"boolean",default:"false"},{name:"title",attribute:"title",type:"string",default:'""'},{name:"closeOnEscape",attribute:"closeOnEscape",type:"boolean",default:"true"},{name:"closeOnOutsideClick",attribute:"closeOnOutsideClick",type:"boolean",default:"true"}],events:[{name:"close"}],slots:[{name:"title",description:"sets the title of the dialog attribute/property can also be use for setting the title to a string"}]},{name:"spectric-dialog",path:"./../../src/components/dialog/dialog.ts"},{name:"spectric-input",path:"./../../src/components/input.ts",attributes:[{name:"hidePasswordLabel",description:'"Hide password" tooltip text on password visibility toggle',type:"string",default:'"Hide"'},{name:"showPasswordLabel",description:'"Show password" tooltip text on password visibility toggle',type:"string",default:'"Show"'},{name:"value",description:"The value of the input.",type:"string | number | boolean"},{name:"variant",description:"Input type",type:'"number" | "text" | "text-area" | "color" | "date" | "datetime-local" | "email" | "file" | "hidden" | "password"',default:'"text"'},{name:"label",description:"Label to display above the input",type:"string",default:'""'},{name:"placeholder",description:"placeholder text to display",type:"string",default:'""'},{name:"disabled",type:"boolean",default:"false"},{name:"readonly",type:"boolean",default:"false"},{name:"helperText",description:"The helper text.",type:"string",default:'""'},{name:"invalid",description:"Specify if the currently value is invalid.",type:"boolean",default:"false"},{name:"invalidText",description:"Message which is displayed if the value is invalid.",type:"string | TemplateResult<1>",default:'""'},{name:"maxCount",description:"Max character count allowed for input. This is needed in order for enableCounter to display",type:"number",default:"0"},{name:"required",description:"Boolean property to set the required status",type:"boolean",default:"false"},{name:"showPasswordVisibilityToggle",description:"Boolean property to render password visibility toggle",type:"boolean",default:"true"},{name:"name",description:"Name for the input used for form data events //TODO make sure this works",type:"string",default:'""'},{name:"pattern",description:"Pattern to validate the input against for HTML validity checking",type:"string",default:'""'},{name:"autocomplete",description:"The sets the autocomplete for the input.",type:"AutoFill",default:'""'}],properties:[{name:"styles",type:"CSSResultGroup | undefined",default:'"style"'},{name:"hidePasswordLabel",attribute:"hidePasswordLabel",description:'"Hide password" tooltip text on password visibility toggle',type:"string",default:'"Hide"'},{name:"showPasswordLabel",attribute:"showPasswordLabel",description:'"Show password" tooltip text on password visibility toggle',type:"string",default:'"Show"'},{name:"selectionStart",type:"number | null"},{name:"value",attribute:"value",description:"The value of the input.",type:"string | number | boolean"},{name:"variant",attribute:"variant",description:"Input type",type:'"number" | "text" | "text-area" | "color" | "date" | "datetime-local" | "email" | "file" | "hidden" | "password"',default:'"text"'},{name:"label",attribute:"label",description:"Label to display above the input",type:"string",default:'""'},{name:"placeholder",attribute:"placeholder",description:"placeholder text to display",type:"string",default:'""'},{name:"disabled",attribute:"disabled",type:"boolean",default:"false"},{name:"readonly",attribute:"readonly",type:"boolean",default:"false"},{name:"helperText",attribute:"helperText",description:"The helper text.",type:"string",default:'""'},{name:"invalid",attribute:"invalid",description:"Specify if the currently value is invalid.",type:"boolean",default:"false"},{name:"invalidText",attribute:"invalidText",description:"Message which is displayed if the value is invalid.",type:"string | TemplateResult<1>",default:'""'},{name:"maxCount",attribute:"maxCount",description:"Max character count allowed for input. This is needed in order for enableCounter to display",type:"number",default:"0"},{name:"required",attribute:"required",description:"Boolean property to set the required status",type:"boolean",default:"false"},{name:"showPasswordVisibilityToggle",attribute:"showPasswordVisibilityToggle",description:"Boolean property to render password visibility toggle",type:"boolean",default:"true"},{name:"name",attribute:"name",description:"Name for the input used for form data events //TODO make sure this works",type:"string",default:'""'},{name:"pattern",attribute:"pattern",description:"Pattern to validate the input against for HTML validity checking",type:"string",default:'""'},{name:"autocomplete",attribute:"autocomplete",description:"The sets the autocomplete for the input.",type:"AutoFill",default:'""'}],events:[{name:"change"}]},{name:"spectric-query",path:"./../../src/components/query_bar/QueryBar.ts",description:"The Query component will take Opensearch Dashboard Query language and transform it into various outputs",attributes:[{name:"outputLanguage",description:"The output of the query in a specific format",type:'"toMongo" | "toCql" | "toDSL" | "AST"',default:'"AST"'},{name:"value",description:"The value of the input.",type:"string"},{name:"fields",description:"Fields that are used for the auto complete",type:"FieldTypes[]",default:"[]"}],properties:[{name:"styles",type:"CSSResult",default:'"css`\\n :host{\\n font-family:monospace\\n }\\n spectric-input{\\n anchor-name: --anchor-el;\\n }\\n .autocomplete{\\n color: var(--spectric-text-primary,#161616);\\n border-radius: .0em 0em var(--spectric-border-radius,.4em) var(--spectric-border-radius,.4em);\\n background-color: var(--spectric-background, #ffffff);\\n border: 1px solid var(--spectric-background-hover, rgba(141, 141, 141, 0.12));\\n max-height:300px;\\n border-top:0px;\\n margin:0px;\\n margin-top:-18px; //Input helper text is 18px we can cover that with the popover\\n position:fixed;\\n position-anchor: --anchor-el;\\n top: anchor(bottom);\\n justify-self: anchor-center;\\n text-align:center;\\n }\\n .autocomplete .optiontype{\\n float:left;\\n max-width:10px; //todo should we display an icon instead of text?\\n }\\n .autocomplete .label{\\n position:absolute;\\n right:0; \\n }\\n .autocomplete .option.active, .autocomplete .option:hover {\\n background-color: var(--spectric-background-hover, rgba(141, 141, 141, 0.12));\\n border-bottom: 1px solid var(--primary,#1ea7fd);\\n }\\n .autocomplete .option {\\n border-bottom: 1px solid transparent;\\n padding:8px;\\n }\\n `"'},{name:"outputLanguage",attribute:"outputLanguage",description:"The output of the query in a specific format",type:'"toMongo" | "toCql" | "toDSL" | "AST"',default:'"AST"'},{name:"value",attribute:"value",description:"The value of the input.",type:"string"},{name:"fields",attribute:"fields",description:"Fields that are used for the auto complete",type:"FieldTypes[]",default:"[]"},{name:"getValuesForField",description:"Callback that will provide values for specific fields",type:"(field: string, text: string) => Promise<string[]>",default:`"async (field: string, text: string): Promise<string[]> => {\\n console.log(\\"getValuesForField isn't set no values returned\\", field, text)\\n return []\\n }"`}],events:[{name:"change"}]},{name:"spectric-storybook-example-content",path:"./../../src/stories/fixtures/ExampleContent.ts",attributes:[{name:"frameWidth",type:"number",default:"10"}],properties:[{name:"frameWidth",attribute:"frameWidth",type:"number",default:"10"},{name:"dialogOpen",type:"boolean",default:"false"}]}],customElements={version:version$1,tags},version="0.0.1";customElements.tags.forEach(e=>{if(e.properties){let r=e.properties.findIndex(o=>o.name=="styles");r!=-1&&e.properties.splice(r,1)}});setCustomElementsManifest(customElements);const theme=Er$1({base:"light",fontBase:"'Helvetica Neue', Arial, sans-serif",fontCode:"Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace",brandTitle:`Spectric UI ${version}`,brandImage:"https://static.wixstatic.com/media/bb8de2_d075320863814eeb9c954fcc57ce2822%7Emv2.png/v1/fill/w_192%2Ch_192%2Clg_1%2Cusm_0.66_1.00_0.01/bb8de2_d075320863814eeb9c954fcc57ce2822%7Emv2.png",brandUrl:"https://gitlab.spectric.com/web/spectric-ui"});Br.setConfig({theme});const preview={parameters:{docs:{canvas:{layout:"padded"},theme},controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}}}};export{preview as default};