storybook 9.0.0-alpha.2 → 9.0.0-alpha.20

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 (159) hide show
  1. package/README.md +1 -1
  2. package/assets/docs/addon-backgrounds.gif +0 -0
  3. package/assets/docs/addon-controls-args-annotated.png +0 -0
  4. package/assets/docs/addon-controls-args-background-color.png +0 -0
  5. package/assets/docs/addon-controls-args-background-string.png +0 -0
  6. package/assets/docs/addon-controls-args-docs.png +0 -0
  7. package/assets/docs/addon-controls-args-logging.png +0 -0
  8. package/assets/docs/addon-controls-args-no-annotation.png +0 -0
  9. package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
  10. package/assets/docs/addon-controls-args-reflow.png +0 -0
  11. package/assets/docs/addon-controls-args-template.png +0 -0
  12. package/assets/docs/addon-controls-expanded.png +0 -0
  13. package/assets/docs/addon-controls-hero.gif +0 -0
  14. package/assets/docs/addon-controls-install.png +0 -0
  15. package/assets/docs/hero.gif +0 -0
  16. package/assets/docs/highlight.png +0 -0
  17. package/assets/docs/viewport.png +0 -0
  18. package/bin/index.cjs +2 -2
  19. package/dist/actions/decorator.d.ts +6 -0
  20. package/dist/actions/decorator.js +138 -0
  21. package/dist/actions/index.cjs +126 -0
  22. package/dist/actions/index.d.ts +102 -0
  23. package/dist/actions/index.js +111 -0
  24. package/dist/actions/preview.cjs +164 -0
  25. package/dist/actions/preview.d.ts +54 -0
  26. package/dist/actions/preview.js +155 -0
  27. package/dist/backgrounds/index.cjs +148 -0
  28. package/dist/backgrounds/index.d.ts +91 -0
  29. package/dist/backgrounds/index.js +130 -0
  30. package/dist/backgrounds/preview.cjs +143 -0
  31. package/dist/backgrounds/preview.d.ts +54 -0
  32. package/dist/backgrounds/preview.js +127 -0
  33. package/dist/bin/index.cjs +66 -89
  34. package/dist/bin/index.js +62 -85
  35. package/dist/builder-manager/index.cjs +523 -540
  36. package/dist/builder-manager/index.js +544 -561
  37. package/dist/channels/index.cjs +1026 -981
  38. package/dist/channels/index.js +1194 -1165
  39. package/dist/cli/bin/index.cjs +483 -483
  40. package/dist/cli/bin/index.js +495 -495
  41. package/dist/cli/index.cjs +2279 -2295
  42. package/dist/cli/index.d.ts +4 -8
  43. package/dist/cli/index.js +740 -756
  44. package/dist/client-logger/index.cjs +56 -88
  45. package/dist/client-logger/index.js +41 -47
  46. package/dist/common/index.cjs +2496 -2480
  47. package/dist/common/index.d.ts +5 -29
  48. package/dist/common/index.js +2679 -2663
  49. package/dist/component-testing/index.cjs +23 -0
  50. package/dist/component-testing/index.d.ts +3 -0
  51. package/dist/component-testing/index.js +5 -0
  52. package/dist/component-testing/preview.cjs +40 -0
  53. package/dist/component-testing/preview.d.ts +5 -0
  54. package/dist/component-testing/preview.js +25 -0
  55. package/dist/components/index.cjs +11709 -20418
  56. package/dist/components/index.d.ts +94 -346
  57. package/dist/components/index.js +5827 -19157
  58. package/dist/controls/decorator.d.ts +5 -0
  59. package/dist/controls/decorator.js +8 -0
  60. package/dist/controls/index.cjs +26 -0
  61. package/dist/controls/index.d.ts +39 -0
  62. package/dist/controls/index.js +6 -0
  63. package/dist/controls/preview.cjs +26 -0
  64. package/dist/controls/preview.d.ts +54 -0
  65. package/dist/controls/preview.js +9 -0
  66. package/dist/core-events/index.cjs +91 -106
  67. package/dist/core-events/index.d.ts +139 -104
  68. package/dist/core-events/index.js +79 -94
  69. package/dist/core-server/index.cjs +14413 -13924
  70. package/dist/core-server/index.d.ts +270 -3
  71. package/dist/core-server/index.js +14003 -13519
  72. package/dist/core-server/presets/common-manager.css +170 -0
  73. package/dist/core-server/presets/common-manager.js +12099 -17
  74. package/dist/core-server/presets/common-preset.cjs +2760 -2914
  75. package/dist/core-server/presets/common-preset.js +2852 -3007
  76. package/dist/csf/index.cjs +76 -120
  77. package/dist/csf/index.d.ts +2 -6
  78. package/dist/csf/index.js +69 -113
  79. package/dist/csf-tools/index.cjs +412 -403
  80. package/dist/csf-tools/index.d.ts +0 -4
  81. package/dist/csf-tools/index.js +410 -401
  82. package/dist/docs-tools/index.cjs +2569 -575
  83. package/dist/docs-tools/index.d.ts +2 -2
  84. package/dist/docs-tools/index.js +2557 -564
  85. package/dist/highlight/index.cjs +27 -0
  86. package/dist/highlight/index.d.ts +17 -0
  87. package/dist/highlight/index.js +7 -0
  88. package/dist/highlight/preview.cjs +81 -0
  89. package/dist/highlight/preview.d.ts +54 -0
  90. package/dist/highlight/preview.js +67 -0
  91. package/dist/instrumenter/index.cjs +2207 -2342
  92. package/dist/instrumenter/index.d.ts +8 -7
  93. package/dist/instrumenter/index.js +2438 -2620
  94. package/dist/manager/globals-module-info.cjs +290 -151
  95. package/dist/manager/globals-module-info.d.ts +1 -1
  96. package/dist/manager/globals-module-info.js +274 -135
  97. package/dist/manager/globals-runtime.js +60016 -28331
  98. package/dist/manager/globals.cjs +23 -19
  99. package/dist/manager/globals.d.ts +8 -5
  100. package/dist/manager/globals.js +10 -6
  101. package/dist/manager/runtime.js +4645 -3946
  102. package/dist/manager-api/index.cjs +4228 -3833
  103. package/dist/manager-api/index.d.ts +398 -102
  104. package/dist/manager-api/index.js +3676 -3291
  105. package/dist/manager-errors.d.ts +25 -1
  106. package/dist/manager-errors.js +42 -26
  107. package/dist/measure/index.cjs +474 -0
  108. package/dist/measure/index.d.ts +66 -0
  109. package/dist/measure/index.js +462 -0
  110. package/dist/measure/preview.cjs +464 -0
  111. package/dist/measure/preview.d.ts +59 -0
  112. package/dist/measure/preview.js +448 -0
  113. package/dist/outline/index.cjs +528 -0
  114. package/dist/outline/index.d.ts +66 -0
  115. package/dist/outline/index.js +500 -0
  116. package/dist/outline/preview.cjs +518 -0
  117. package/dist/outline/preview.d.ts +59 -0
  118. package/dist/outline/preview.js +486 -0
  119. package/dist/preview/globals.cjs +21 -17
  120. package/dist/preview/globals.d.ts +4 -1
  121. package/dist/preview/globals.js +6 -2
  122. package/dist/preview/runtime.js +45697 -6618
  123. package/dist/preview-api/index.cjs +1363 -1898
  124. package/dist/preview-api/index.d.ts +449 -498
  125. package/dist/preview-api/index.js +1622 -2095
  126. package/dist/preview-errors.cjs +99 -82
  127. package/dist/preview-errors.d.ts +25 -1
  128. package/dist/preview-errors.js +110 -94
  129. package/dist/router/index.cjs +847 -871
  130. package/dist/router/index.js +193 -199
  131. package/dist/server-errors.cjs +156 -125
  132. package/dist/server-errors.d.ts +28 -2
  133. package/dist/server-errors.js +150 -119
  134. package/dist/telemetry/index.cjs +1050 -1977
  135. package/dist/telemetry/index.d.ts +26 -5
  136. package/dist/telemetry/index.js +1085 -2008
  137. package/dist/test/index.cjs +35686 -0
  138. package/dist/test/index.d.ts +186 -0
  139. package/dist/test/index.js +33752 -0
  140. package/dist/test/preview.cjs +15870 -0
  141. package/dist/test/preview.d.ts +54 -0
  142. package/dist/test/preview.js +14441 -0
  143. package/dist/test/spy.cjs +258 -0
  144. package/dist/test/spy.d.ts +66 -0
  145. package/dist/test/spy.js +240 -0
  146. package/dist/theming/create.cjs +79 -2269
  147. package/dist/theming/create.js +67 -841
  148. package/dist/theming/index.cjs +1065 -3232
  149. package/dist/theming/index.js +951 -1719
  150. package/dist/types/index.cjs +11 -12
  151. package/dist/types/index.d.ts +612 -157
  152. package/dist/types/index.js +1 -2
  153. package/dist/viewport/index.cjs +310 -0
  154. package/dist/viewport/index.d.ts +320 -0
  155. package/dist/viewport/index.js +290 -0
  156. package/dist/viewport/preview.cjs +35 -0
  157. package/dist/viewport/preview.d.ts +68 -0
  158. package/dist/viewport/preview.js +19 -0
  159. package/package.json +359 -12
@@ -1,8 +1,8 @@
1
- var $t = Object.create;
1
+ var Ut = Object.create;
2
2
  var ye = Object.defineProperty;
3
- var Ht = Object.getOwnPropertyDescriptor;
4
- var Kt = Object.getOwnPropertyNames;
5
- var Jt = Object.getPrototypeOf, Qt = Object.prototype.hasOwnProperty;
3
+ var $t = Object.getOwnPropertyDescriptor;
4
+ var Ht = Object.getOwnPropertyNames;
5
+ var Kt = Object.getPrototypeOf, Jt = Object.prototype.hasOwnProperty;
6
6
  var a = (e, t) => ye(e, "name", { value: t, configurable: !0 }), K = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
7
7
  "u" ? new Proxy(e, {
8
8
  get: (t, r) => (typeof require < "u" ? require : t)[r]
@@ -11,13 +11,13 @@ var a = (e, t) => ye(e, "name", { value: t, configurable: !0 }), K = /* @__PURE_
11
11
  throw Error('Dynamic require of "' + e + '" is not supported');
12
12
  });
13
13
  var V = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
14
- var Yt = (e, t, r, n) => {
14
+ var Qt = (e, t, r, n) => {
15
15
  if (t && typeof t == "object" || typeof t == "function")
16
- for (let o of Kt(t))
17
- !Qt.call(e, o) && o !== r && ye(e, o, { get: () => t[o], enumerable: !(n = Ht(t, o)) || n.enumerable });
16
+ for (let o of Ht(t))
17
+ !Jt.call(e, o) && o !== r && ye(e, o, { get: () => t[o], enumerable: !(n = $t(t, o)) || n.enumerable });
18
18
  return e;
19
19
  };
20
- var Ie = (e, t, r) => (r = e != null ? $t(Jt(e)) : {}, Yt(
20
+ var Ie = (e, t, r) => (r = e != null ? Ut(Kt(e)) : {}, Qt(
21
21
  // If the importer is in node compatibility mode or this is not an ESM
22
22
  // file that has been converted to a CommonJS file using a Babel-
23
23
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -163,8 +163,8 @@ var ct = V((lt, Ee) => {
163
163
  var Pe = V((Re) => {
164
164
  "use strict";
165
165
  Object.defineProperty(Re, "__esModule", { value: !0 });
166
- Re.encodeString = Gt;
167
- var T = Array.from({ length: 256 }, (e, t) => "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase()), Xt = new Int8Array([
166
+ Re.encodeString = Xt;
167
+ var T = Array.from({ length: 256 }, (e, t) => "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase()), Yt = new Int8Array([
168
168
  0,
169
169
  0,
170
170
  0,
@@ -294,7 +294,7 @@ var Pe = V((Re) => {
294
294
  1,
295
295
  0
296
296
  ]);
297
- function Gt(e) {
297
+ function Xt(e) {
298
298
  let t = e.length;
299
299
  if (t === 0)
300
300
  return "";
@@ -302,7 +302,7 @@ var Pe = V((Re) => {
302
302
  e: for (; o < t; o++) {
303
303
  let i = e.charCodeAt(o);
304
304
  for (; i < 128; ) {
305
- if (Xt[i] !== 1 && (n < o && (r += e.slice(n, o)), n = o + 1, r += T[i]), ++o === t)
305
+ if (Yt[i] !== 1 && (n < o && (r += e.slice(n, o)), n = o + 1, r += T[i]), ++o === t)
306
306
  break e;
307
307
  i = e.charCodeAt(o);
308
308
  }
@@ -321,7 +321,7 @@ var Pe = V((Re) => {
321
321
  }
322
322
  return n === 0 ? e : n < t ? r + e.slice(n) : r;
323
323
  }
324
- a(Gt, "encodeString");
324
+ a(Xt, "encodeString");
325
325
  });
326
326
 
327
327
  // ../node_modules/picoquery/lib/shared.js
@@ -329,23 +329,23 @@ var ae = V((L) => {
329
329
  "use strict";
330
330
  Object.defineProperty(L, "__esModule", { value: !0 });
331
331
  L.defaultOptions = L.defaultShouldSerializeObject = L.defaultValueSerializer = void 0;
332
- var we = Pe(), Zt = /* @__PURE__ */ a((e) => {
332
+ var Ne = Pe(), Gt = /* @__PURE__ */ a((e) => {
333
333
  switch (typeof e) {
334
334
  case "string":
335
- return (0, we.encodeString)(e);
335
+ return (0, Ne.encodeString)(e);
336
336
  case "bigint":
337
337
  case "boolean":
338
338
  return "" + e;
339
339
  case "number":
340
340
  if (Number.isFinite(e))
341
- return e < 1e21 ? "" + e : (0, we.encodeString)("" + e);
341
+ return e < 1e21 ? "" + e : (0, Ne.encodeString)("" + e);
342
342
  break;
343
343
  }
344
- return e instanceof Date ? (0, we.encodeString)(e.toISOString()) : "";
344
+ return e instanceof Date ? (0, Ne.encodeString)(e.toISOString()) : "";
345
345
  }, "defaultValueSerializer");
346
- L.defaultValueSerializer = Zt;
347
- var er = /* @__PURE__ */ a((e) => e instanceof Date, "defaultShouldSerializeObject");
348
- L.defaultShouldSerializeObject = er;
346
+ L.defaultValueSerializer = Gt;
347
+ var Zt = /* @__PURE__ */ a((e) => e instanceof Date, "defaultShouldSerializeObject");
348
+ L.defaultShouldSerializeObject = Zt;
349
349
  var ut = /* @__PURE__ */ a((e) => e, "identityFunc");
350
350
  L.defaultOptions = {
351
351
  nesting: !0,
@@ -361,37 +361,37 @@ var ae = V((L) => {
361
361
  });
362
362
 
363
363
  // ../node_modules/picoquery/lib/object-util.js
364
- var Ne = V((ie) => {
364
+ var we = V((ie) => {
365
365
  "use strict";
366
366
  Object.defineProperty(ie, "__esModule", { value: !0 });
367
- ie.getDeepObject = nr;
367
+ ie.getDeepObject = rr;
368
368
  ie.stringifyObject = ft;
369
- var W = ae(), tr = Pe();
370
- function rr(e) {
369
+ var W = ae(), er = Pe();
370
+ function tr(e) {
371
371
  return e === "__proto__" || e === "constructor" || e === "prototype";
372
372
  }
373
- a(rr, "isPrototypeKey");
374
- function nr(e, t, r, n, o) {
375
- if (rr(t))
373
+ a(tr, "isPrototypeKey");
374
+ function rr(e, t, r, n, o) {
375
+ if (tr(t))
376
376
  return e;
377
377
  let i = e[t];
378
378
  return typeof i == "object" && i !== null ? i : !n && (o || typeof r == "number" || typeof r == "string" && r * 0 === 0 && r.indexOf(".") ===
379
379
  -1) ? e[t] = [] : e[t] = {};
380
380
  }
381
- a(nr, "getDeepObject");
382
- var or = 20, ar = "[]", ir = "[", sr = "]", lr = ".";
381
+ a(rr, "getDeepObject");
382
+ var nr = 20, or = "[]", ar = "[", ir = "]", sr = ".";
383
383
  function ft(e, t, r = 0, n, o) {
384
384
  let { nestingSyntax: i = W.defaultOptions.nestingSyntax, arrayRepeat: c = W.defaultOptions.arrayRepeat, arrayRepeatSyntax: s = W.defaultOptions.
385
385
  arrayRepeatSyntax, nesting: l = W.defaultOptions.nesting, delimiter: f = W.defaultOptions.delimiter, valueSerializer: u = W.defaultOptions.
386
386
  valueSerializer, shouldSerializeObject: p = W.defaultOptions.shouldSerializeObject } = t, h = typeof f == "number" ? String.fromCharCode(
387
387
  f) : f, m = o === !0 && c, g = i === "dot" || i === "js" && !o;
388
- if (r > or)
388
+ if (r > nr)
389
389
  return "";
390
390
  let d = "", v = !0, R = !1;
391
391
  for (let b in e) {
392
392
  let x = e[b], O;
393
- n ? (O = n, m ? s === "bracket" && (O += ar) : g ? (O += lr, O += b) : (O += ir, O += b, O += sr)) : O = b, v || (d += h), typeof x ==
394
- "object" && x !== null && !p(x) ? (R = x.pop !== void 0, (l || c && R) && (d += ft(x, t, r + 1, O, R))) : (d += (0, tr.encodeString)(O),
393
+ n ? (O = n, m ? s === "bracket" && (O += or) : g ? (O += sr, O += b) : (O += ar, O += b, O += ir)) : O = b, v || (d += h), typeof x ==
394
+ "object" && x !== null && !p(x) ? (R = x.pop !== void 0, (l || c && R) && (d += ft(x, t, r + 1, O, R))) : (d += (0, er.encodeString)(O),
395
395
  d += "=", d += u(x, b)), v && (v = !1);
396
396
  }
397
397
  return d;
@@ -400,9 +400,9 @@ var Ne = V((ie) => {
400
400
  });
401
401
 
402
402
  // ../node_modules/fast-decode-uri-component/index.js
403
- var mt = V((wn, dt) => {
403
+ var mt = V((Nn, dt) => {
404
404
  "use strict";
405
- var pt = 12, cr = 0, Se = [
405
+ var pt = 12, lr = 0, Se = [
406
406
  // The first part of the table maps bytes to character to a transition.
407
407
  0,
408
408
  0,
@@ -785,7 +785,7 @@ var mt = V((wn, dt) => {
785
785
  7,
786
786
  7
787
787
  ];
788
- function ur(e) {
788
+ function cr(e) {
789
789
  var t = e.indexOf("%");
790
790
  if (t === -1) return e;
791
791
  for (var r = e.length, n = "", o = 0, i = 0, c = t, s = pt; t > -1 && t < r; ) {
@@ -796,7 +796,7 @@ var mt = V((wn, dt) => {
796
796
  56320 + (i & 1023)
797
797
  ), i = 0, o = t + 3, t = c = e.indexOf("%", o);
798
798
  else {
799
- if (s === cr)
799
+ if (s === lr)
800
800
  return null;
801
801
  if (t += 3, t < r && e.charCodeAt(t) === 37) continue;
802
802
  return null;
@@ -804,8 +804,8 @@ var mt = V((wn, dt) => {
804
804
  }
805
805
  return n + e.slice(o);
806
806
  }
807
- a(ur, "decodeURIComponent");
808
- var fr = {
807
+ a(cr, "decodeURIComponent");
808
+ var ur = {
809
809
  0: 0,
810
810
  1: 1,
811
811
  2: 2,
@@ -830,32 +830,32 @@ var mt = V((wn, dt) => {
830
830
  F: 15
831
831
  };
832
832
  function ht(e, t) {
833
- var r = fr[e];
833
+ var r = ur[e];
834
834
  return r === void 0 ? 255 : r << t;
835
835
  }
836
836
  a(ht, "hexCodeToInt");
837
- dt.exports = ur;
837
+ dt.exports = cr;
838
838
  });
839
839
 
840
840
  // ../node_modules/picoquery/lib/parse.js
841
841
  var xt = V((I) => {
842
842
  "use strict";
843
- var pr = I && I.__importDefault || function(e) {
843
+ var fr = I && I.__importDefault || function(e) {
844
844
  return e && e.__esModule ? e : { default: e };
845
845
  };
846
846
  Object.defineProperty(I, "__esModule", { value: !0 });
847
847
  I.numberValueDeserializer = I.numberKeyDeserializer = void 0;
848
- I.parse = mr;
849
- var se = Ne(), F = ae(), gt = pr(mt()), hr = /* @__PURE__ */ a((e) => {
848
+ I.parse = dr;
849
+ var se = we(), F = ae(), gt = fr(mt()), pr = /* @__PURE__ */ a((e) => {
850
850
  let t = Number(e);
851
851
  return Number.isNaN(t) ? e : t;
852
852
  }, "numberKeyDeserializer");
853
- I.numberKeyDeserializer = hr;
854
- var dr = /* @__PURE__ */ a((e) => {
853
+ I.numberKeyDeserializer = pr;
854
+ var hr = /* @__PURE__ */ a((e) => {
855
855
  let t = Number(e);
856
856
  return Number.isNaN(t) ? e : t;
857
857
  }, "numberValueDeserializer");
858
- I.numberValueDeserializer = dr;
858
+ I.numberValueDeserializer = hr;
859
859
  var yt = /\+/g, vt = /* @__PURE__ */ a(function() {
860
860
  }, "Empty");
861
861
  vt.prototype = /* @__PURE__ */ Object.create(null);
@@ -864,20 +864,20 @@ var xt = V((I) => {
864
864
  return n && (i = i.replace(yt, " ")), o && (i = (0, gt.default)(i) || i), i;
865
865
  }
866
866
  a(le, "computeKeySlice");
867
- function mr(e, t) {
867
+ function dr(e, t) {
868
868
  let { valueDeserializer: r = F.defaultOptions.valueDeserializer, keyDeserializer: n = F.defaultOptions.keyDeserializer, arrayRepeatSyntax: o = F.
869
869
  defaultOptions.arrayRepeatSyntax, nesting: i = F.defaultOptions.nesting, arrayRepeat: c = F.defaultOptions.arrayRepeat, nestingSyntax: s = F.
870
870
  defaultOptions.nestingSyntax, delimiter: l = F.defaultOptions.delimiter } = t ?? {}, f = typeof l == "string" ? l.charCodeAt(0) : l, u = s ===
871
871
  "js", p = new vt();
872
872
  if (typeof e != "string")
873
873
  return p;
874
- let h = e.length, m = "", g = -1, d = -1, v = -1, R = p, b, x = "", O = "", P = !1, q = !1, y = !1, E = !1, w = !1, j = !1, S = !1, _ = 0,
874
+ let h = e.length, m = "", g = -1, d = -1, v = -1, R = p, b, x = "", O = "", P = !1, q = !1, y = !1, E = !1, N = !1, j = !1, S = !1, _ = 0,
875
875
  C = -1, D = -1, ge = -1;
876
- for (let N = 0; N < h + 1; N++) {
877
- if (_ = N !== h ? e.charCodeAt(N) : f, _ === f) {
878
- if (S = d > g, S || (d = N), v !== d - 1 && (O = le(e, v + 1, C > -1 ? C : d, y, P), x = n(O), b !== void 0 && (R = (0, se.getDeepObject)(
879
- R, b, x, u && w, u && j))), S || x !== "") {
880
- S && (m = e.slice(d + 1, N), E && (m = m.replace(yt, " ")), q && (m = (0, gt.default)(m) || m));
876
+ for (let w = 0; w < h + 1; w++) {
877
+ if (_ = w !== h ? e.charCodeAt(w) : f, _ === f) {
878
+ if (S = d > g, S || (d = w), v !== d - 1 && (O = le(e, v + 1, C > -1 ? C : d, y, P), x = n(O), b !== void 0 && (R = (0, se.getDeepObject)(
879
+ R, b, x, u && N, u && j))), S || x !== "") {
880
+ S && (m = e.slice(d + 1, w), E && (m = m.replace(yt, " ")), q && (m = (0, gt.default)(m) || m));
881
881
  let H = r(m, x);
882
882
  if (c) {
883
883
  let ne = R[x];
@@ -885,39 +885,39 @@ var xt = V((I) => {
885
885
  } else
886
886
  R[x] = H;
887
887
  }
888
- m = "", g = N, d = N, P = !1, q = !1, y = !1, E = !1, w = !1, j = !1, C = -1, v = N, R = p, b = void 0, x = "";
889
- } else _ === 93 ? (c && o === "bracket" && ge === 91 && (C = D), i && (s === "index" || u) && d <= g && (v !== D && (O = le(e, v + 1, N,
890
- y, P), x = n(O), b !== void 0 && (R = (0, se.getDeepObject)(R, b, x, void 0, u)), b = x, y = !1, P = !1), v = N, j = !0, w = !1)) : _ ===
891
- 46 ? i && (s === "dot" || u) && d <= g && (v !== D && (O = le(e, v + 1, N, y, P), x = n(O), b !== void 0 && (R = (0, se.getDeepObject)(
892
- R, b, x, u)), b = x, y = !1, P = !1), w = !0, j = !1, v = N) : _ === 91 ? i && (s === "index" || u) && d <= g && (v !== D && (O = le(e,
893
- v + 1, N, y, P), x = n(O), u && b !== void 0 && (R = (0, se.getDeepObject)(R, b, x, u)), b = x, y = !1, P = !1, w = !1, j = !0), v = N) :
894
- _ === 61 ? d <= g ? d = N : q = !0 : _ === 43 ? d > g ? E = !0 : y = !0 : _ === 37 && (d > g ? q = !0 : P = !0);
895
- D = N, ge = _;
888
+ m = "", g = w, d = w, P = !1, q = !1, y = !1, E = !1, N = !1, j = !1, C = -1, v = w, R = p, b = void 0, x = "";
889
+ } else _ === 93 ? (c && o === "bracket" && ge === 91 && (C = D), i && (s === "index" || u) && d <= g && (v !== D && (O = le(e, v + 1, w,
890
+ y, P), x = n(O), b !== void 0 && (R = (0, se.getDeepObject)(R, b, x, void 0, u)), b = x, y = !1, P = !1), v = w, j = !0, N = !1)) : _ ===
891
+ 46 ? i && (s === "dot" || u) && d <= g && (v !== D && (O = le(e, v + 1, w, y, P), x = n(O), b !== void 0 && (R = (0, se.getDeepObject)(
892
+ R, b, x, u)), b = x, y = !1, P = !1), N = !0, j = !1, v = w) : _ === 91 ? i && (s === "index" || u) && d <= g && (v !== D && (O = le(e,
893
+ v + 1, w, y, P), x = n(O), u && b !== void 0 && (R = (0, se.getDeepObject)(R, b, x, u)), b = x, y = !1, P = !1, N = !1, j = !0), v = w) :
894
+ _ === 61 ? d <= g ? d = w : q = !0 : _ === 43 ? d > g ? E = !0 : y = !0 : _ === 37 && (d > g ? q = !0 : P = !0);
895
+ D = w, ge = _;
896
896
  }
897
897
  return p;
898
898
  }
899
- a(mr, "parse");
899
+ a(dr, "parse");
900
900
  });
901
901
 
902
902
  // ../node_modules/picoquery/lib/stringify.js
903
903
  var bt = V((_e) => {
904
904
  "use strict";
905
905
  Object.defineProperty(_e, "__esModule", { value: !0 });
906
- _e.stringify = yr;
907
- var gr = Ne();
908
- function yr(e, t) {
906
+ _e.stringify = gr;
907
+ var mr = we();
908
+ function gr(e, t) {
909
909
  if (e === null || typeof e != "object")
910
910
  return "";
911
911
  let r = t ?? {};
912
- return (0, gr.stringifyObject)(e, r);
912
+ return (0, mr.stringifyObject)(e, r);
913
913
  }
914
- a(yr, "stringify");
914
+ a(gr, "stringify");
915
915
  });
916
916
 
917
917
  // ../node_modules/picoquery/lib/main.js
918
918
  var Ot = V((A) => {
919
919
  "use strict";
920
- var vr = A && A.__createBinding || (Object.create ? function(e, t, r, n) {
920
+ var yr = A && A.__createBinding || (Object.create ? function(e, t, r, n) {
921
921
  n === void 0 && (n = r);
922
922
  var o = Object.getOwnPropertyDescriptor(t, r);
923
923
  (!o || ("get" in o ? !t.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: /* @__PURE__ */ a(function() {
@@ -925,24 +925,24 @@ var Ot = V((A) => {
925
925
  }, "get") }), Object.defineProperty(e, n, o);
926
926
  } : function(e, t, r, n) {
927
927
  n === void 0 && (n = r), e[n] = t[r];
928
- }), xr = A && A.__exportStar || function(e, t) {
929
- for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(t, r) && vr(t, e, r);
928
+ }), vr = A && A.__exportStar || function(e, t) {
929
+ for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(t, r) && yr(t, e, r);
930
930
  };
931
931
  Object.defineProperty(A, "__esModule", { value: !0 });
932
932
  A.stringify = A.parse = void 0;
933
- var br = xt();
933
+ var xr = xt();
934
934
  Object.defineProperty(A, "parse", { enumerable: !0, get: /* @__PURE__ */ a(function() {
935
- return br.parse;
935
+ return xr.parse;
936
936
  }, "get") });
937
- var Or = bt();
937
+ var br = bt();
938
938
  Object.defineProperty(A, "stringify", { enumerable: !0, get: /* @__PURE__ */ a(function() {
939
- return Or.stringify;
939
+ return br.stringify;
940
940
  }, "get") });
941
- xr(ae(), A);
941
+ vr(ae(), A);
942
942
  });
943
943
 
944
944
  // src/router/utils.ts
945
- import { once as Er } from "storybook/internal/client-logger";
945
+ import { once as Or } from "storybook/internal/client-logger";
946
946
 
947
947
  // ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
948
948
  function k(e) {
@@ -1136,14 +1136,14 @@ function Et(e) {
1136
1136
  a(Et, "dedent");
1137
1137
 
1138
1138
  // src/router/utils.ts
1139
- var Rr = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, Pt = (0, ue.default)(1e3)((e) => {
1139
+ var Er = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, Pt = (0, ue.default)(1e3)((e) => {
1140
1140
  let t = {
1141
1141
  viewMode: void 0,
1142
1142
  storyId: void 0,
1143
1143
  refId: void 0
1144
1144
  };
1145
1145
  if (e) {
1146
- let [, r, n, o] = e.toLowerCase().match(Rr) || [];
1146
+ let [, r, n, o] = e.toLowerCase().match(Er) || [];
1147
1147
  r && Object.assign(t, {
1148
1148
  viewMode: r,
1149
1149
  storyId: o,
@@ -1167,15 +1167,15 @@ var Rr = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, Pt = (0, ue.default)(1e3)((e) => {
1167
1167
  let o = je(e?.[n], t?.[n]);
1168
1168
  return o === ce ? r : Object.assign(r, { [n]: o });
1169
1169
  }, {}) : t;
1170
- }, "deepDiff"), Rt = /^[a-zA-Z0-9 _-]*$/, Pr = /^-?[0-9]+(\.[0-9]+)?$/, wt = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, Nt = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,
1170
+ }, "deepDiff"), Rt = /^[a-zA-Z0-9 _-]*$/, Rr = /^-?[0-9]+(\.[0-9]+)?$/, Nt = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, wt = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,
1171
1171
  Ae = /* @__PURE__ */ a((e = "", t) => e === null || e === "" || !Rt.test(e) ? !1 : t == null || t instanceof Date || typeof t == "number" ||
1172
- typeof t == "boolean" ? !0 : typeof t == "string" ? Rt.test(t) || Pr.test(t) || wt.test(t) || Nt.test(t) : Array.isArray(t) ? t.every((r) => Ae(
1172
+ typeof t == "boolean" ? !0 : typeof t == "string" ? Rt.test(t) || Rr.test(t) || Nt.test(t) || wt.test(t) : Array.isArray(t) ? t.every((r) => Ae(
1173
1173
  e, r)) : k(t) ? Object.entries(t).every(([r, n]) => Ae(r, n)) : !1, "validateArgs"), De = /* @__PURE__ */ a((e) => e === void 0 ? "!undefine\
1174
- d" : e === null ? "!null" : typeof e == "string" ? wt.test(e) ? `!hex(${e.slice(1)})` : Nt.test(e) ? `!${e.replace(/[\s%]/g, "")}` : e : typeof e ==
1174
+ d" : e === null ? "!null" : typeof e == "string" ? Nt.test(e) ? `!hex(${e.slice(1)})` : wt.test(e) ? `!${e.replace(/[\s%]/g, "")}` : e : typeof e ==
1175
1175
  "boolean" ? `!${e}` : e instanceof Date ? `!date(${e.toISOString()})` : Array.isArray(e) ? e.map(De) : k(e) ? Object.entries(e).reduce(
1176
1176
  (t, [r, n]) => Object.assign(t, { [r]: De(n) }),
1177
1177
  {}
1178
- ) : e, "encodeSpecialValues"), wr = /* @__PURE__ */ a((e) => {
1178
+ ) : e, "encodeSpecialValues"), Pr = /* @__PURE__ */ a((e) => {
1179
1179
  switch (e) {
1180
1180
  case "%20":
1181
1181
  return "+";
@@ -1193,7 +1193,7 @@ d" : e === null ? "!null" : typeof e == "string" ? wt.test(e) ? `!hex(${e.slice(
1193
1193
  let r = je(e, t);
1194
1194
  if (!r || r === ce)
1195
1195
  return "";
1196
- let n = Object.entries(r).reduce((o, [i, c]) => Ae(i, c) ? Object.assign(o, { [i]: c }) : (Er.warn(Et`
1196
+ let n = Object.entries(r).reduce((o, [i, c]) => Ae(i, c) ? Object.assign(o, { [i]: c }) : (Or.warn(Et`
1197
1197
  Omitted potentially unsafe URL args.
1198
1198
 
1199
1199
  More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
@@ -1204,8 +1204,8 @@ d" : e === null ? "!null" : typeof e == "string" ? wt.test(e) ? `!hex(${e.slice(
1204
1204
  nesting: !0,
1205
1205
  nestingSyntax: "js"
1206
1206
  // encode objects using dot notation: obj.key=val
1207
- }).replace(Nr, wr).split(";").map((o) => o.replace("=", ":")).join(";");
1208
- }, "buildArgsParam"), Sr = (0, ue.default)(1e3)((e) => e !== void 0 ? (0, J.parse)(e) : {}), St = /* @__PURE__ */ a((e) => Sr(e.search ? e.search.
1207
+ }).replace(Nr, Pr).split(";").map((o) => o.replace("=", ":")).join(";");
1208
+ }, "buildArgsParam"), wr = (0, ue.default)(1e3)((e) => e !== void 0 ? (0, J.parse)(e) : {}), St = /* @__PURE__ */ a((e) => wr(e.search ? e.search.
1209
1209
  slice(1) : ""), "queryFromLocation"), Bn = /* @__PURE__ */ a((e) => {
1210
1210
  let t = (0, J.stringify)(e);
1211
1211
  return t ? "?" + t : "";
@@ -1220,17 +1220,11 @@ slice(1) : ""), "queryFromLocation"), Bn = /* @__PURE__ */ a((e) => {
1220
1220
  });
1221
1221
 
1222
1222
  // src/router/router.tsx
1223
- import re, { useCallback as Yr } from "react";
1224
-
1225
- // ../node_modules/@storybook/global/dist/index.mjs
1226
- var jt = (() => {
1227
- let e;
1228
- return typeof window < "u" ? e = window : typeof globalThis < "u" ? e = globalThis : typeof global < "u" ? e = global : typeof self < "u" ?
1229
- e = self : e = {}, e;
1230
- })();
1223
+ import re, { useCallback as Qr } from "react";
1224
+ import { global as Yr } from "@storybook/global";
1231
1225
 
1232
1226
  // ../node_modules/react-router-dom/index.js
1233
- import { useRef as zr, useState as Wr, useLayoutEffect as Fr, createElement as ke, forwardRef as zt, useCallback as qr, useMemo as Eo } from "react";
1227
+ import { useRef as Br, useState as zr, useLayoutEffect as Wr, createElement as ke, forwardRef as Bt, useCallback as Fr, useMemo as Oo } from "react";
1234
1228
 
1235
1229
  // ../node_modules/@babel/runtime/helpers/esm/extends.js
1236
1230
  function Q() {
@@ -1249,10 +1243,10 @@ var B;
1249
1243
  (function(e) {
1250
1244
  e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
1251
1245
  })(B || (B = {}));
1252
- var At = function(e) {
1246
+ var jt = function(e) {
1253
1247
  return Object.freeze(e);
1254
1248
  };
1255
- function _r(e, t) {
1249
+ function Sr(e, t) {
1256
1250
  if (!e) {
1257
1251
  typeof console < "u" && console.warn(t);
1258
1252
  try {
@@ -1261,17 +1255,17 @@ function _r(e, t) {
1261
1255
  }
1262
1256
  }
1263
1257
  }
1264
- a(_r, "warning");
1265
- var Dt = "beforeunload";
1266
- var jr = "popstate";
1267
- function Ct(e) {
1258
+ a(Sr, "warning");
1259
+ var At = "beforeunload";
1260
+ var _r = "popstate";
1261
+ function Lt(e) {
1268
1262
  e === void 0 && (e = {});
1269
1263
  var t = e, r = t.window, n = r === void 0 ? document.defaultView : r, o = n.history;
1270
1264
  function i() {
1271
- var y = n.location, E = y.pathname, w = y.search, j = y.hash, S = o.state || {};
1272
- return [S.idx, At({
1265
+ var y = n.location, E = y.pathname, N = y.search, j = y.hash, S = o.state || {};
1266
+ return [S.idx, jt({
1273
1267
  pathname: E,
1274
- search: w,
1268
+ search: N,
1275
1269
  hash: j,
1276
1270
  state: S.usr || null,
1277
1271
  key: S.key || "default"
@@ -1283,10 +1277,10 @@ function Ct(e) {
1283
1277
  if (c)
1284
1278
  m.call(c), c = null;
1285
1279
  else {
1286
- var y = B.Pop, E = i(), w = E[0], j = E[1];
1280
+ var y = B.Pop, E = i(), N = E[0], j = E[1];
1287
1281
  if (m.length)
1288
- if (w != null) {
1289
- var S = u - w;
1282
+ if (N != null) {
1283
+ var S = u - N;
1290
1284
  S && (c = {
1291
1285
  action: y,
1292
1286
  location: j,
@@ -1295,7 +1289,7 @@ function Ct(e) {
1295
1289
  }, "retry")
1296
1290
  }, P(S));
1297
1291
  } else
1298
- _r(
1292
+ Sr(
1299
1293
  !1,
1300
1294
  // TODO: Write up a doc that explains our blocking strategy in
1301
1295
  // detail and link to it here so people can understand better what
@@ -1308,8 +1302,8 @@ o avoid this situation."
1308
1302
  b(y);
1309
1303
  }
1310
1304
  }
1311
- a(s, "handlePop"), n.addEventListener(jr, s);
1312
- var l = B.Pop, f = i(), u = f[0], p = f[1], h = Lt(), m = Lt();
1305
+ a(s, "handlePop"), n.addEventListener(_r, s);
1306
+ var l = B.Pop, f = i(), u = f[0], p = f[1], h = Tt(), m = Tt();
1313
1307
  u == null && (u = 0, o.replaceState(Q({}, o.state, {
1314
1308
  idx: u
1315
1309
  }), ""));
@@ -1318,13 +1312,13 @@ o avoid this situation."
1318
1312
  }
1319
1313
  a(g, "createHref");
1320
1314
  function d(y, E) {
1321
- return E === void 0 && (E = null), At(Q({
1315
+ return E === void 0 && (E = null), jt(Q({
1322
1316
  pathname: p.pathname,
1323
1317
  hash: "",
1324
1318
  search: ""
1325
1319
  }, typeof y == "string" ? U(y) : y, {
1326
1320
  state: E,
1327
- key: Ar()
1321
+ key: jr()
1328
1322
  }));
1329
1323
  }
1330
1324
  a(d, "getNextLocation");
@@ -1336,11 +1330,11 @@ o avoid this situation."
1336
1330
  }, g(y)];
1337
1331
  }
1338
1332
  a(v, "getHistoryStateAndUrl");
1339
- function R(y, E, w) {
1333
+ function R(y, E, N) {
1340
1334
  return !m.length || (m.call({
1341
1335
  action: y,
1342
1336
  location: E,
1343
- retry: w
1337
+ retry: N
1344
1338
  }), !1);
1345
1339
  }
1346
1340
  a(R, "allowTx");
@@ -1354,29 +1348,29 @@ o avoid this situation."
1354
1348
  }
1355
1349
  a(b, "applyTx");
1356
1350
  function x(y, E) {
1357
- var w = B.Push, j = d(y, E);
1351
+ var N = B.Push, j = d(y, E);
1358
1352
  function S() {
1359
1353
  x(y, E);
1360
1354
  }
1361
- if (a(S, "retry"), R(w, j, S)) {
1355
+ if (a(S, "retry"), R(N, j, S)) {
1362
1356
  var _ = v(j, u + 1), C = _[0], D = _[1];
1363
1357
  try {
1364
1358
  o.pushState(C, "", D);
1365
1359
  } catch {
1366
1360
  n.location.assign(D);
1367
1361
  }
1368
- b(w);
1362
+ b(N);
1369
1363
  }
1370
1364
  }
1371
1365
  a(x, "push");
1372
1366
  function O(y, E) {
1373
- var w = B.Replace, j = d(y, E);
1367
+ var N = B.Replace, j = d(y, E);
1374
1368
  function S() {
1375
1369
  O(y, E);
1376
1370
  }
1377
- if (a(S, "retry"), R(w, j, S)) {
1371
+ if (a(S, "retry"), R(N, j, S)) {
1378
1372
  var _ = v(j, u), C = _[0], D = _[1];
1379
- o.replaceState(C, "", D), b(w);
1373
+ o.replaceState(C, "", D), b(N);
1380
1374
  }
1381
1375
  }
1382
1376
  a(O, "replace");
@@ -1405,20 +1399,20 @@ o avoid this situation."
1405
1399
  return h.push(E);
1406
1400
  }, "listen"),
1407
1401
  block: /* @__PURE__ */ a(function(E) {
1408
- var w = m.push(E);
1409
- return m.length === 1 && n.addEventListener(Dt, Tt), function() {
1410
- w(), m.length || n.removeEventListener(Dt, Tt);
1402
+ var N = m.push(E);
1403
+ return m.length === 1 && n.addEventListener(At, Dt), function() {
1404
+ N(), m.length || n.removeEventListener(At, Dt);
1411
1405
  };
1412
1406
  }, "block")
1413
1407
  };
1414
1408
  return q;
1415
1409
  }
1416
- a(Ct, "createBrowserHistory");
1417
- function Tt(e) {
1410
+ a(Lt, "createBrowserHistory");
1411
+ function Dt(e) {
1418
1412
  e.preventDefault(), e.returnValue = "";
1419
1413
  }
1420
- a(Tt, "promptBeforeUnload");
1421
- function Lt() {
1414
+ a(Dt, "promptBeforeUnload");
1415
+ function Tt() {
1422
1416
  var e = [];
1423
1417
  return {
1424
1418
  get length() {
@@ -1438,11 +1432,11 @@ function Lt() {
1438
1432
  }, "call")
1439
1433
  };
1440
1434
  }
1441
- a(Lt, "createEvents");
1442
- function Ar() {
1435
+ a(Tt, "createEvents");
1436
+ function jr() {
1443
1437
  return Math.random().toString(36).substr(2, 8);
1444
1438
  }
1445
- a(Ar, "createKey");
1439
+ a(jr, "createKey");
1446
1440
  function fe(e) {
1447
1441
  var t = e.pathname, r = t === void 0 ? "/" : t, n = e.search, o = n === void 0 ? "" : n, i = e.hash, c = i === void 0 ? "" : i;
1448
1442
  return o && o !== "?" && (r += o.charAt(0) === "?" ? o : "?" + o), c && c !== "#" && (r += c.charAt(0) === "#" ? c : "#" + c), r;
@@ -1461,13 +1455,13 @@ function U(e) {
1461
1455
  a(U, "parsePath");
1462
1456
 
1463
1457
  // ../node_modules/react-router/index.js
1464
- import { createContext as Le, useRef as Dr, useState as Yn, useLayoutEffect as Xn, createElement as kt, useContext as $, useEffect as Tr, useMemo as Te,
1465
- useCallback as Lr, Children as Gn, isValidElement as Zn, Fragment as eo } from "react";
1458
+ import { createContext as Le, useRef as Ar, useState as Qn, useLayoutEffect as Yn, createElement as Ct, useContext as $, useEffect as Dr, useMemo as Te,
1459
+ useCallback as Tr, Children as Xn, isValidElement as Gn, Fragment as Zn } from "react";
1466
1460
  function pe(e, t) {
1467
1461
  if (!e) throw new Error(t);
1468
1462
  }
1469
1463
  a(pe, "invariant");
1470
- function Mt(e, t) {
1464
+ function kt(e, t) {
1471
1465
  if (!e) {
1472
1466
  typeof console < "u" && console.warn(t);
1473
1467
  try {
@@ -1476,7 +1470,7 @@ function Mt(e, t) {
1476
1470
  }
1477
1471
  }
1478
1472
  }
1479
- a(Mt, "warning");
1473
+ a(kt, "warning");
1480
1474
  var Y = /* @__PURE__ */ Le(null);
1481
1475
  Y.displayName = "Navigation";
1482
1476
  var X = /* @__PURE__ */ Le(null);
@@ -1496,7 +1490,7 @@ function G(e) {
1496
1490
  static: c = !1
1497
1491
  } = e;
1498
1492
  Z() && pe(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
1499
- let s = Ir(t), l = Te(() => ({
1493
+ let s = Mr(t), l = Te(() => ({
1500
1494
  basename: s,
1501
1495
  navigator: i,
1502
1496
  static: c
@@ -1509,7 +1503,7 @@ function G(e) {
1509
1503
  state: h = null,
1510
1504
  key: m = "default"
1511
1505
  } = n, g = Te(() => {
1512
- let d = Mr(f, s);
1506
+ let d = kr(f, s);
1513
1507
  return d == null ? null : {
1514
1508
  pathname: d,
1515
1509
  search: u,
@@ -1518,10 +1512,10 @@ function G(e) {
1518
1512
  key: m
1519
1513
  };
1520
1514
  }, [s, f, u, p, h, m]);
1521
- return Mt(g != null, '<Router basename="' + s + '"> is not able to match the URL ' + ('"' + f + u + p + '" because it does not start with \
1522
- the ') + "basename, so the <Router> won't render anything."), g == null ? null : /* @__PURE__ */ kt(Y.Provider, {
1515
+ return kt(g != null, '<Router basename="' + s + '"> is not able to match the URL ' + ('"' + f + u + p + '" because it does not start with \
1516
+ the ') + "basename, so the <Router> won't render anything."), g == null ? null : /* @__PURE__ */ Ct(Y.Provider, {
1523
1517
  value: l
1524
- }, /* @__PURE__ */ kt(X.Provider, {
1518
+ }, /* @__PURE__ */ Ct(X.Provider, {
1525
1519
  children: r,
1526
1520
  value: {
1527
1521
  location: g,
@@ -1546,8 +1540,8 @@ function Ce(e) {
1546
1540
  search: i
1547
1541
  } = te(e), c = o;
1548
1542
  if (t !== "/") {
1549
- let s = kr(e), l = s != null && s.endsWith("/");
1550
- c = o === "/" ? t + (l ? "/" : "") : Bt([t, o]);
1543
+ let s = Cr(e), l = s != null && s.endsWith("/");
1544
+ c = o === "/" ? t + (l ? "/" : "") : Vt([t, o]);
1551
1545
  }
1552
1546
  return r.createHref({
1553
1547
  pathname: c,
@@ -1583,18 +1577,18 @@ function ee() {
1583
1577
  matches: r
1584
1578
  } = $(he), {
1585
1579
  pathname: n
1586
- } = z(), o = JSON.stringify(r.map((s) => s.pathnameBase)), i = Dr(!1);
1587
- return Tr(() => {
1580
+ } = z(), o = JSON.stringify(r.map((s) => s.pathnameBase)), i = Ar(!1);
1581
+ return Dr(() => {
1588
1582
  i.current = !0;
1589
- }), Lr(function(s, l) {
1590
- if (l === void 0 && (l = {}), Mt(i.current, "You should call navigate() in a React.useEffect(), not when your component is first rendere\
1583
+ }), Tr(function(s, l) {
1584
+ if (l === void 0 && (l = {}), kt(i.current, "You should call navigate() in a React.useEffect(), not when your component is first rendere\
1591
1585
  d."), !i.current) return;
1592
1586
  if (typeof s == "number") {
1593
1587
  t.go(s);
1594
1588
  return;
1595
1589
  }
1596
- let f = Vt(s, JSON.parse(o), n);
1597
- e !== "/" && (f.pathname = Bt([e, f.pathname])), (l.replace ? t.replace : t.push)(f, l.state);
1590
+ let f = It(s, JSON.parse(o), n);
1591
+ e !== "/" && (f.pathname = Vt([e, f.pathname])), (l.replace ? t.replace : t.push)(f, l.state);
1598
1592
  }, [e, t, o, n]);
1599
1593
  }
1600
1594
  a(ee, "useNavigate");
@@ -1604,10 +1598,10 @@ function te(e) {
1604
1598
  } = $(he), {
1605
1599
  pathname: r
1606
1600
  } = z(), n = JSON.stringify(t.map((o) => o.pathnameBase));
1607
- return Te(() => Vt(e, JSON.parse(n), r), [e, n, r]);
1601
+ return Te(() => It(e, JSON.parse(n), r), [e, n, r]);
1608
1602
  }
1609
1603
  a(te, "useResolvedPath");
1610
- function It(e, t) {
1604
+ function Mt(e, t) {
1611
1605
  t === void 0 && (t = "/");
1612
1606
  let {
1613
1607
  pathname: r,
@@ -1615,20 +1609,20 @@ function It(e, t) {
1615
1609
  hash: o = ""
1616
1610
  } = typeof e == "string" ? U(e) : e;
1617
1611
  return {
1618
- pathname: r ? r.startsWith("/") ? r : Cr(r, t) : t,
1619
- search: Vr(n),
1620
- hash: Br(o)
1612
+ pathname: r ? r.startsWith("/") ? r : Lr(r, t) : t,
1613
+ search: Ir(n),
1614
+ hash: Vr(o)
1621
1615
  };
1622
1616
  }
1623
- a(It, "resolvePath");
1624
- function Cr(e, t) {
1617
+ a(Mt, "resolvePath");
1618
+ function Lr(e, t) {
1625
1619
  let r = t.replace(/\/+$/, "").split("/");
1626
1620
  return e.split("/").forEach((o) => {
1627
1621
  o === ".." ? r.length > 1 && r.pop() : o !== "." && r.push(o);
1628
1622
  }), r.length > 1 ? r.join("/") : "/";
1629
1623
  }
1630
- a(Cr, "resolvePathname");
1631
- function Vt(e, t, r) {
1624
+ a(Lr, "resolvePathname");
1625
+ function It(e, t, r) {
1632
1626
  let n = typeof e == "string" ? U(e) : e, o = e === "" || n.pathname === "" ? "/" : n.pathname, i;
1633
1627
  if (o == null)
1634
1628
  i = r;
@@ -1642,25 +1636,25 @@ function Vt(e, t, r) {
1642
1636
  }
1643
1637
  i = s >= 0 ? t[s] : "/";
1644
1638
  }
1645
- let c = It(n, i);
1639
+ let c = Mt(n, i);
1646
1640
  return o && o !== "/" && o.endsWith("/") && !c.pathname.endsWith("/") && (c.pathname += "/"), c;
1647
1641
  }
1648
- a(Vt, "resolveTo");
1649
- function kr(e) {
1642
+ a(It, "resolveTo");
1643
+ function Cr(e) {
1650
1644
  return e === "" || e.pathname === "" ? "/" : typeof e == "string" ? U(e).pathname : e.pathname;
1651
1645
  }
1652
- a(kr, "getToPathname");
1653
- function Mr(e, t) {
1646
+ a(Cr, "getToPathname");
1647
+ function kr(e, t) {
1654
1648
  if (t === "/") return e;
1655
1649
  if (!e.toLowerCase().startsWith(t.toLowerCase()))
1656
1650
  return null;
1657
1651
  let r = e.charAt(t.length);
1658
1652
  return r && r !== "/" ? null : e.slice(t.length) || "/";
1659
1653
  }
1660
- a(Mr, "stripBasename");
1661
- var Bt = /* @__PURE__ */ a((e) => e.join("/").replace(/\/\/+/g, "/"), "joinPaths"), Ir = /* @__PURE__ */ a((e) => e.replace(/\/+$/, "").replace(
1662
- /^\/*/, "/"), "normalizePathname"), Vr = /* @__PURE__ */ a((e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, "normalizeSearch"),
1663
- Br = /* @__PURE__ */ a((e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, "normalizeHash");
1654
+ a(kr, "stripBasename");
1655
+ var Vt = /* @__PURE__ */ a((e) => e.join("/").replace(/\/\/+/g, "/"), "joinPaths"), Mr = /* @__PURE__ */ a((e) => e.replace(/\/+$/, "").replace(
1656
+ /^\/*/, "/"), "normalizePathname"), Ir = /* @__PURE__ */ a((e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, "normalizeSearch"),
1657
+ Vr = /* @__PURE__ */ a((e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, "normalizeHash");
1664
1658
 
1665
1659
  // ../node_modules/react-router-dom/index.js
1666
1660
  function de() {
@@ -1674,30 +1668,30 @@ function de() {
1674
1668
  }, de.apply(this, arguments);
1675
1669
  }
1676
1670
  a(de, "_extends");
1677
- function Wt(e, t) {
1671
+ function zt(e, t) {
1678
1672
  if (e == null) return {};
1679
1673
  var r = {}, n = Object.keys(e), o, i;
1680
1674
  for (i = 0; i < n.length; i++)
1681
1675
  o = n[i], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
1682
1676
  return r;
1683
1677
  }
1684
- a(Wt, "_objectWithoutPropertiesLoose");
1685
- var Ur = ["onClick", "reloadDocument", "replace", "state", "target", "to"], $r = ["aria-current", "caseSensitive", "className", "end", "styl\
1678
+ a(zt, "_objectWithoutPropertiesLoose");
1679
+ var qr = ["onClick", "reloadDocument", "replace", "state", "target", "to"], Ur = ["aria-current", "caseSensitive", "className", "end", "styl\
1686
1680
  e", "to"];
1687
- function Ft(e) {
1681
+ function Wt(e) {
1688
1682
  let {
1689
1683
  basename: t,
1690
1684
  children: r,
1691
1685
  window: n
1692
- } = e, o = zr();
1693
- o.current == null && (o.current = Ct({
1686
+ } = e, o = Br();
1687
+ o.current == null && (o.current = Lt({
1694
1688
  window: n
1695
1689
  }));
1696
- let i = o.current, [c, s] = Wr({
1690
+ let i = o.current, [c, s] = zr({
1697
1691
  action: i.action,
1698
1692
  location: i.location
1699
1693
  });
1700
- return Fr(() => i.listen(s), [i]), /* @__PURE__ */ ke(G, {
1694
+ return Wr(() => i.listen(s), [i]), /* @__PURE__ */ ke(G, {
1701
1695
  basename: t,
1702
1696
  children: r,
1703
1697
  location: c.location,
@@ -1705,12 +1699,12 @@ function Ft(e) {
1705
1699
  navigator: i
1706
1700
  });
1707
1701
  }
1708
- a(Ft, "BrowserRouter");
1709
- function Hr(e) {
1702
+ a(Wt, "BrowserRouter");
1703
+ function $r(e) {
1710
1704
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1711
1705
  }
1712
- a(Hr, "isModifiedEvent");
1713
- var me = /* @__PURE__ */ zt(/* @__PURE__ */ a(function(t, r) {
1706
+ a($r, "isModifiedEvent");
1707
+ var me = /* @__PURE__ */ Bt(/* @__PURE__ */ a(function(t, r) {
1714
1708
  let {
1715
1709
  onClick: n,
1716
1710
  reloadDocument: o,
@@ -1718,7 +1712,7 @@ var me = /* @__PURE__ */ zt(/* @__PURE__ */ a(function(t, r) {
1718
1712
  state: c,
1719
1713
  target: s,
1720
1714
  to: l
1721
- } = t, f = Wt(t, Ur), u = Ce(l), p = Jr(l, {
1715
+ } = t, f = zt(t, qr), u = Ce(l), p = Kr(l, {
1722
1716
  replace: i,
1723
1717
  state: c,
1724
1718
  target: s
@@ -1735,7 +1729,7 @@ var me = /* @__PURE__ */ zt(/* @__PURE__ */ a(function(t, r) {
1735
1729
  }));
1736
1730
  }, "LinkWithRef"));
1737
1731
  me.displayName = "Link";
1738
- var Kr = /* @__PURE__ */ zt(/* @__PURE__ */ a(function(t, r) {
1732
+ var Hr = /* @__PURE__ */ Bt(/* @__PURE__ */ a(function(t, r) {
1739
1733
  let {
1740
1734
  "aria-current": n = "page",
1741
1735
  caseSensitive: o = !1,
@@ -1743,7 +1737,7 @@ var Kr = /* @__PURE__ */ zt(/* @__PURE__ */ a(function(t, r) {
1743
1737
  end: c = !1,
1744
1738
  style: s,
1745
1739
  to: l
1746
- } = t, f = Wt(t, $r), u = z(), p = te(l), h = u.pathname, m = p.pathname;
1740
+ } = t, f = zt(t, Ur), u = z(), p = te(l), h = u.pathname, m = p.pathname;
1747
1741
  o || (h = h.toLowerCase(), m = m.toLowerCase());
1748
1742
  let g = h === m || !c && h.startsWith(m) && h.charAt(m.length) === "/", d = g ? n : void 0, v;
1749
1743
  typeof i == "function" ? v = i({
@@ -1760,17 +1754,17 @@ var Kr = /* @__PURE__ */ zt(/* @__PURE__ */ a(function(t, r) {
1760
1754
  to: l
1761
1755
  }));
1762
1756
  }, "NavLinkWithRef"));
1763
- Kr.displayName = "NavLink";
1764
- function Jr(e, t) {
1757
+ Hr.displayName = "NavLink";
1758
+ function Kr(e, t) {
1765
1759
  let {
1766
1760
  target: r,
1767
1761
  replace: n,
1768
1762
  state: o
1769
1763
  } = t === void 0 ? {} : t, i = ee(), c = z(), s = te(e);
1770
- return qr((l) => {
1764
+ return Fr((l) => {
1771
1765
  if (l.button === 0 && // Ignore everything but left clicks
1772
1766
  (!r || r === "_self") && // Let browser handle "target=_blank" etc.
1773
- !Hr(l)) {
1767
+ !$r(l)) {
1774
1768
  l.preventDefault();
1775
1769
  let f = !!n || fe(c) === fe(s);
1776
1770
  i(e, {
@@ -1780,12 +1774,12 @@ function Jr(e, t) {
1780
1774
  }
1781
1775
  }, [c, i, s, n, o, r, e]);
1782
1776
  }
1783
- a(Jr, "useLinkClickHandler");
1777
+ a(Kr, "useLinkClickHandler");
1784
1778
 
1785
1779
  // src/router/router.tsx
1786
- var { document: Me } = jt, Xr = /* @__PURE__ */ a(() => `${Me.location.pathname}?`, "getBase"), Ao = /* @__PURE__ */ a(() => {
1780
+ var { document: Me } = Yr, Xr = /* @__PURE__ */ a(() => `${Me.location.pathname}?`, "getBase"), jo = /* @__PURE__ */ a(() => {
1787
1781
  let e = ee();
1788
- return Yr((t, { plain: r, ...n } = {}) => {
1782
+ return Qr((t, { plain: r, ...n } = {}) => {
1789
1783
  if (typeof t == "string" && t.startsWith("#")) {
1790
1784
  t === "#" ? e(Me.location.search) : Me.location.hash = t;
1791
1785
  return;
@@ -1800,7 +1794,7 @@ var { document: Me } = jt, Xr = /* @__PURE__ */ a(() => `${Me.location.pathname}
1800
1794
  }, "useNavigate"), Gr = /* @__PURE__ */ a(({ to: e, children: t, ...r }) => /* @__PURE__ */ re.createElement(me, { to: `${Xr()}path=${e}`, ...r },
1801
1795
  t), "Link");
1802
1796
  Gr.displayName = "QueryLink";
1803
- var qt = /* @__PURE__ */ a(({ children: e }) => {
1797
+ var Ft = /* @__PURE__ */ a(({ children: e }) => {
1804
1798
  let t = z(), { path: r, singleStory: n } = St(t), { viewMode: o, storyId: i, refId: c } = Pt(r);
1805
1799
  return /* @__PURE__ */ re.createElement(re.Fragment, null, e({
1806
1800
  path: r || "/",
@@ -1811,33 +1805,33 @@ var qt = /* @__PURE__ */ a(({ children: e }) => {
1811
1805
  singleStory: n === "true"
1812
1806
  }));
1813
1807
  }, "Location");
1814
- qt.displayName = "QueryLocation";
1815
- function Ut({
1808
+ Ft.displayName = "QueryLocation";
1809
+ function qt({
1816
1810
  children: e,
1817
1811
  path: t,
1818
1812
  startsWith: r = !1
1819
1813
  }) {
1820
- return /* @__PURE__ */ re.createElement(qt, null, ({ path: n, ...o }) => e({
1814
+ return /* @__PURE__ */ re.createElement(Ft, null, ({ path: n, ...o }) => e({
1821
1815
  match: _t(n, t, r),
1822
1816
  ...o
1823
1817
  }));
1824
1818
  }
1825
- a(Ut, "Match");
1826
- Ut.displayName = "QueryMatch";
1819
+ a(qt, "Match");
1820
+ qt.displayName = "QueryMatch";
1827
1821
  function Zr(e) {
1828
1822
  let { children: t, ...r } = e;
1829
- return r.startsWith === void 0 && (r.startsWith = !1), /* @__PURE__ */ re.createElement(Ut, { ...r }, ({ match: o }) => o ? t : null);
1823
+ return r.startsWith === void 0 && (r.startsWith = !1), /* @__PURE__ */ re.createElement(qt, { ...r }, ({ match: o }) => o ? t : null);
1830
1824
  }
1831
1825
  a(Zr, "Route");
1832
1826
  Zr.displayName = "Route";
1833
- var Do = /* @__PURE__ */ a((...e) => Ft(...e), "LocationProvider"), To = /* @__PURE__ */ a((...e) => G(...e), "BaseLocationProvider");
1827
+ var Ao = /* @__PURE__ */ a((...e) => Wt(...e), "LocationProvider"), Do = /* @__PURE__ */ a((...e) => G(...e), "BaseLocationProvider");
1834
1828
  export {
1835
- To as BaseLocationProvider,
1829
+ Do as BaseLocationProvider,
1836
1830
  ce as DEEPLY_EQUAL,
1837
1831
  Gr as Link,
1838
- qt as Location,
1839
- Do as LocationProvider,
1840
- Ut as Match,
1832
+ Ft as Location,
1833
+ Ao as LocationProvider,
1834
+ qt as Match,
1841
1835
  Zr as Route,
1842
1836
  Vn as buildArgsParam,
1843
1837
  je as deepDiff,
@@ -1845,5 +1839,5 @@ export {
1845
1839
  Pt as parsePath,
1846
1840
  St as queryFromLocation,
1847
1841
  Bn as stringifyQuery,
1848
- Ao as useNavigate
1842
+ jo as useNavigate
1849
1843
  };