storybook 9.0.0-rc.3 → 9.0.0-rc.4

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.
@@ -1,8 +1,8 @@
1
- var wn = Object.create;
1
+ var On = Object.create;
2
2
  var We = Object.defineProperty;
3
- var On = Object.getOwnPropertyDescriptor;
4
- var Cn = Object.getOwnPropertyNames;
5
- var Nn = Object.getPrototypeOf, kn = Object.prototype.hasOwnProperty;
3
+ var Cn = Object.getOwnPropertyDescriptor;
4
+ var Nn = Object.getOwnPropertyNames;
5
+ var kn = Object.getPrototypeOf, jn = Object.prototype.hasOwnProperty;
6
6
  var n = (e, t) => We(e, "name", { value: t, configurable: !0 }), Pe = /* @__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]
@@ -10,16 +10,16 @@ var n = (e, t) => We(e, "name", { value: t, configurable: !0 }), Pe = /* @__PURE
10
10
  if (typeof require < "u") return require.apply(this, arguments);
11
11
  throw Error('Dynamic require of "' + e + '" is not supported');
12
12
  });
13
- var Wr = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), L = (e, t) => {
13
+ var $r = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), L = (e, t) => {
14
14
  for (var r in t)
15
15
  We(e, r, { get: t[r], enumerable: !0 });
16
- }, jn = (e, t, r, o) => {
16
+ }, Dn = (e, t, r, o) => {
17
17
  if (t && typeof t == "object" || typeof t == "function")
18
- for (let s of Cn(t))
19
- !kn.call(e, s) && s !== r && We(e, s, { get: () => t[s], enumerable: !(o = On(t, s)) || o.enumerable });
18
+ for (let s of Nn(t))
19
+ !jn.call(e, s) && s !== r && We(e, s, { get: () => t[s], enumerable: !(o = Cn(t, s)) || o.enumerable });
20
20
  return e;
21
21
  };
22
- var Ot = (e, t, r) => (r = e != null ? wn(Nn(e)) : {}, jn(
22
+ var Ot = (e, t, r) => (r = e != null ? On(kn(e)) : {}, Dn(
23
23
  // If the importer is in node compatibility mode or this is not an ESM
24
24
  // file that has been converted to a CommonJS file using a Babel-
25
25
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -29,9 +29,9 @@ var Ot = (e, t, r) => (r = e != null ? wn(Nn(e)) : {}, jn(
29
29
  ));
30
30
 
31
31
  // ../node_modules/memoizerific/memoizerific.js
32
- var Bt = Wr((io, $t) => {
32
+ var Bt = $r((co, $t) => {
33
33
  (function(e) {
34
- if (typeof io == "object" && typeof $t < "u")
34
+ if (typeof co == "object" && typeof $t < "u")
35
35
  $t.exports = e();
36
36
  else if (typeof define == "function" && define.amd)
37
37
  define([], e);
@@ -162,7 +162,7 @@ var Bt = Wr((io, $t) => {
162
162
  });
163
163
 
164
164
  // ../node_modules/store2/dist/store2.js
165
- var Do = Wr((St, bt) => {
165
+ var Mo = $r((St, bt) => {
166
166
  (function(e, t) {
167
167
  var r = {
168
168
  version: "2.14.4",
@@ -387,14 +387,14 @@ import me, {
387
387
  Component as Eu,
388
388
  Fragment as vu,
389
389
  useCallback as It,
390
- useContext as Dr,
391
- useEffect as mn,
392
- useMemo as jr,
393
- useRef as dn
390
+ useContext as Mr,
391
+ useEffect as hn,
392
+ useMemo as Dr,
393
+ useRef as fn
394
394
  } from "react";
395
395
  import {
396
396
  SET_STORIES as _u,
397
- SHARED_STATE_CHANGED as fn,
397
+ SHARED_STATE_CHANGED as yn,
398
398
  SHARED_STATE_SET as ke,
399
399
  STORY_CHANGED as Iu
400
400
  } from "storybook/internal/core-events";
@@ -422,21 +422,21 @@ function $e(e, t) {
422
422
  n($e, "partition");
423
423
 
424
424
  // ../node_modules/es-toolkit/dist/function/noop.mjs
425
- function $r() {
425
+ function Br() {
426
426
  }
427
- n($r, "noop");
427
+ n(Br, "noop");
428
428
 
429
429
  // ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
430
- function Br(e) {
430
+ function Vr(e) {
431
431
  return e == null || typeof e != "object" && typeof e != "function";
432
432
  }
433
- n(Br, "isPrimitive");
433
+ n(Vr, "isPrimitive");
434
434
 
435
435
  // ../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
436
- function Vr(e) {
436
+ function Kr(e) {
437
437
  return ArrayBuffer.isView(e) && !(e instanceof DataView);
438
438
  }
439
- n(Vr, "isTypedArray");
439
+ n(Kr, "isTypedArray");
440
440
 
441
441
  // ../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
442
442
  function Ae(e) {
@@ -452,17 +452,17 @@ n(Ee, "getTag");
452
452
 
453
453
  // ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
454
454
  var Be = "[object RegExp]", Ve = "[object String]", Ke = "[object Number]", ze = "[object Boolean]", ve = "[object Arguments]", He = "[objec\
455
- t Symbol]", qe = "[object Date]", Ye = "[object Map]", Je = "[object Set]", Xe = "[object Array]", Kr = "[object Function]", Qe = "[object A\
456
- rrayBuffer]", ne = "[object Object]", zr = "[object Error]", Ze = "[object DataView]", et = "[object Uint8Array]", tt = "[object Uint8Clampe\
457
- dArray]", rt = "[object Uint16Array]", ot = "[object Uint32Array]", Hr = "[object BigUint64Array]", nt = "[object Int8Array]", st = "[object\
458
- Int16Array]", at = "[object Int32Array]", qr = "[object BigInt64Array]", it = "[object Float32Array]", ct = "[object Float64Array]";
455
+ t Symbol]", qe = "[object Date]", Ye = "[object Map]", Je = "[object Set]", Xe = "[object Array]", zr = "[object Function]", Qe = "[object A\
456
+ rrayBuffer]", ne = "[object Object]", Hr = "[object Error]", Ze = "[object DataView]", et = "[object Uint8Array]", tt = "[object Uint8Clampe\
457
+ dArray]", rt = "[object Uint16Array]", ot = "[object Uint32Array]", qr = "[object BigUint64Array]", nt = "[object Int8Array]", st = "[object\
458
+ Int16Array]", at = "[object Int32Array]", Yr = "[object BigInt64Array]", it = "[object Float32Array]", ct = "[object Float64Array]";
459
459
 
460
460
  // ../node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
461
461
  function Q(e, t, r, o = /* @__PURE__ */ new Map(), s = void 0) {
462
462
  let i = s?.(e, t, r, o);
463
463
  if (i != null)
464
464
  return i;
465
- if (Br(e))
465
+ if (Vr(e))
466
466
  return e;
467
467
  if (o.has(e))
468
468
  return o.get(e);
@@ -495,7 +495,7 @@ function Q(e, t, r, o = /* @__PURE__ */ new Map(), s = void 0) {
495
495
  }
496
496
  if (typeof Buffer < "u" && Buffer.isBuffer(e))
497
497
  return e.subarray();
498
- if (Vr(e)) {
498
+ if (Kr(e)) {
499
499
  let a = new (Object.getPrototypeOf(e)).constructor(e.length);
500
500
  o.set(e, a);
501
501
  for (let c = 0; c < e.length; c++)
@@ -522,7 +522,7 @@ function Q(e, t, r, o = /* @__PURE__ */ new Map(), s = void 0) {
522
522
  let a = new e.constructor();
523
523
  return o.set(e, a), a.message = e.message, a.name = e.name, a.stack = e.stack, a.cause = e.cause, _e(a, e, r, o, s), a;
524
524
  }
525
- if (typeof e == "object" && Dn(e)) {
525
+ if (typeof e == "object" && Mn(e)) {
526
526
  let a = Object.create(Object.getPrototypeOf(e));
527
527
  return o.set(e, a), _e(a, e, r, o, s), a;
528
528
  }
@@ -537,7 +537,7 @@ function _e(e, t, r = e, o, s) {
537
537
  }
538
538
  }
539
539
  n(_e, "copyProperties");
540
- function Dn(e) {
540
+ function Mn(e) {
541
541
  switch (Ee(e)) {
542
542
  case ve:
543
543
  case Xe:
@@ -566,13 +566,13 @@ function Dn(e) {
566
566
  return !1;
567
567
  }
568
568
  }
569
- n(Dn, "isCloneableObject");
569
+ n(Mn, "isCloneableObject");
570
570
 
571
571
  // ../node_modules/es-toolkit/dist/object/cloneDeep.mjs
572
- function Yr(e) {
572
+ function Jr(e) {
573
573
  return Q(e, void 0, e, /* @__PURE__ */ new Map(), void 0);
574
574
  }
575
- n(Yr, "cloneDeep");
575
+ n(Jr, "cloneDeep");
576
576
 
577
577
  // ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
578
578
  function se(e) {
@@ -638,21 +638,21 @@ n(Z, "pick");
638
638
 
639
639
  // ../node_modules/es-toolkit/dist/object/toMerged.mjs
640
640
  function Ie(e, t) {
641
- return ae(Yr(e), t);
641
+ return ae(Jr(e), t);
642
642
  }
643
643
  n(Ie, "toMerged");
644
644
 
645
645
  // ../node_modules/es-toolkit/dist/compat/util/eq.mjs
646
- function Jr(e, t) {
646
+ function Xr(e, t) {
647
647
  return e === t || Number.isNaN(e) && Number.isNaN(t);
648
648
  }
649
- n(Jr, "eq");
649
+ n(Xr, "eq");
650
650
 
651
651
  // ../node_modules/es-toolkit/dist/predicate/isEqualWith.mjs
652
- function Xr(e, t, r) {
652
+ function Qr(e, t, r) {
653
653
  return xe(e, t, void 0, void 0, void 0, void 0, r);
654
654
  }
655
- n(Xr, "isEqualWith");
655
+ n(Qr, "isEqualWith");
656
656
  function xe(e, t, r, o, s, i, a) {
657
657
  let c = a(e, t, r, o, s, i);
658
658
  if (c !== void 0)
@@ -686,7 +686,7 @@ function Te(e, t, r, o) {
686
686
  return e.toString() === t.toString();
687
687
  case Ke: {
688
688
  let u = e.valueOf(), l = t.valueOf();
689
- return Jr(u, l);
689
+ return Xr(u, l);
690
690
  }
691
691
  case ze:
692
692
  case qe:
@@ -694,7 +694,7 @@ function Te(e, t, r, o) {
694
694
  return Object.is(e.valueOf(), t.valueOf());
695
695
  case Be:
696
696
  return e.source === t.source && e.flags === t.flags;
697
- case Kr:
697
+ case zr:
698
698
  return e === t;
699
699
  }
700
700
  r = r ?? /* @__PURE__ */ new Map();
@@ -729,11 +729,11 @@ function Te(e, t, r, o) {
729
729
  case tt:
730
730
  case rt:
731
731
  case ot:
732
- case Hr:
732
+ case qr:
733
733
  case nt:
734
734
  case st:
735
735
  case at:
736
- case qr:
736
+ case Yr:
737
737
  case it:
738
738
  case ct: {
739
739
  if (typeof Buffer < "u" && Buffer.isBuffer(e) !== Buffer.isBuffer(t) || e.length !== t.length)
@@ -747,7 +747,7 @@ function Te(e, t, r, o) {
747
747
  return e.byteLength !== t.byteLength ? !1 : Te(new Uint8Array(e), new Uint8Array(t), r, o);
748
748
  case Ze:
749
749
  return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : Te(new Uint8Array(e), new Uint8Array(t), r, o);
750
- case zr:
750
+ case Hr:
751
751
  return e.name === t.name && e.message === t.message;
752
752
  case ne: {
753
753
  if (!(Te(e.constructor, t.constructor, r, o) || se(e) && se(t)))
@@ -776,16 +776,16 @@ n(Te, "areObjectsEqual");
776
776
 
777
777
  // ../node_modules/es-toolkit/dist/predicate/isEqual.mjs
778
778
  function M(e, t) {
779
- return Xr(e, t, $r);
779
+ return Qr(e, t, Br);
780
780
  }
781
781
  n(M, "isEqual");
782
782
 
783
783
  // src/manager-api/context.ts
784
- import { createContext as Mn } from "react";
785
- var Qr = /* @__PURE__ */ n(({ api: e, state: t }) => Mn({ api: e, state: t }), "createContext");
784
+ import { createContext as Un } from "react";
785
+ var Zr = /* @__PURE__ */ n(({ api: e, state: t }) => Un({ api: e, state: t }), "createContext");
786
786
 
787
787
  // src/manager-api/lib/merge.ts
788
- import { logger as Zr } from "storybook/internal/client-logger";
788
+ import { logger as eo } from "storybook/internal/client-logger";
789
789
  var K = /* @__PURE__ */ n((e, ...t) => {
790
790
  let r = {};
791
791
  r = q(
@@ -797,7 +797,7 @@ var K = /* @__PURE__ */ n((e, ...t) => {
797
797
  o.find((c) => c === i || M(c, i)) || o.push(i);
798
798
  }), o;
799
799
  if (Array.isArray(o))
800
- return Zr.log(["the types mismatch, picking", o]), o;
800
+ return eo.log(["the types mismatch, picking", o]), o;
801
801
  }
802
802
  );
803
803
  for (let o of t)
@@ -807,10 +807,10 @@ var K = /* @__PURE__ */ n((e, ...t) => {
807
807
  s.find((u) => u === a || M(u, a)) || s.push(a);
808
808
  }), s;
809
809
  if (Array.isArray(s))
810
- return Zr.log(["the types mismatch, picking", s]), s;
810
+ return eo.log(["the types mismatch, picking", s]), s;
811
811
  });
812
812
  return r;
813
- }, "default"), eo = /* @__PURE__ */ n((e, ...t) => {
813
+ }, "default"), to = /* @__PURE__ */ n((e, ...t) => {
814
814
  let r = {};
815
815
  r = q(
816
816
  {},
@@ -829,16 +829,16 @@ var K = /* @__PURE__ */ n((e, ...t) => {
829
829
  }, "noArrayMerge");
830
830
 
831
831
  // src/manager-api/initial-state.ts
832
- var Un = /* @__PURE__ */ n((...e) => e.reduce((t, r) => K(t, r), {}), "main"), ut = Un;
832
+ var Ln = /* @__PURE__ */ n((...e) => e.reduce((t, r) => K(t, r), {}), "main"), ut = Ln;
833
833
 
834
834
  // src/manager-api/lib/addons.ts
835
- import { logger as Fn } from "storybook/internal/client-logger";
836
- import { SET_CONFIG as to } from "storybook/internal/core-events";
837
- import { Addon_TypesEnum as ro } from "storybook/internal/types";
835
+ import { logger as Gn } from "storybook/internal/client-logger";
836
+ import { SET_CONFIG as ro } from "storybook/internal/core-events";
837
+ import { Addon_TypesEnum as oo } from "storybook/internal/types";
838
838
  import { global as Dt } from "@storybook/global";
839
839
 
840
840
  // src/manager-api/lib/storybook-channel-mock.ts
841
- import { Channel as Ln } from "storybook/internal/channels";
841
+ import { Channel as Fn } from "storybook/internal/channels";
842
842
  function jt() {
843
843
  let e = {
844
844
  setHandler: /* @__PURE__ */ n(() => {
@@ -846,7 +846,7 @@ function jt() {
846
846
  send: /* @__PURE__ */ n(() => {
847
847
  }, "send")
848
848
  };
849
- return new Ln({ transport: e });
849
+ return new Fn({ transport: e });
850
850
  }
851
851
  n(jt, "mockChannel");
852
852
 
@@ -863,8 +863,8 @@ var Lt = class Lt {
863
863
  this.channel = t, this.resolve();
864
864
  }, "setChannel");
865
865
  this.setConfig = /* @__PURE__ */ n((t) => {
866
- Object.assign(this.config, t), this.hasChannel() ? this.getChannel().emit(to, this.config) : this.ready().then((r) => {
867
- r.emit(to, this.config);
866
+ Object.assign(this.config, t), this.hasChannel() ? this.getChannel().emit(ro, this.config) : this.ready().then((r) => {
867
+ r.emit(ro, this.config);
868
868
  });
869
869
  }, "setConfig");
870
870
  this.getConfig = /* @__PURE__ */ n(() => this.config, "getConfig");
@@ -876,7 +876,7 @@ var Lt = class Lt {
876
876
  * @returns {void}
877
877
  */
878
878
  this.register = /* @__PURE__ */ n((t, r) => {
879
- this.loaders[t] && Fn.warn(`${t} was loaded twice, this could have bad side-effects`), this.loaders[t] = r;
879
+ this.loaders[t] && Gn.warn(`${t} was loaded twice, this could have bad side-effects`), this.loaders[t] = r;
880
880
  }, "register");
881
881
  this.loadAddons = /* @__PURE__ */ n((t) => {
882
882
  Object.values(this.loaders).forEach((r) => r(t));
@@ -905,30 +905,30 @@ var Lt = class Lt {
905
905
  };
906
906
  n(Lt, "AddonStore");
907
907
  var Ut = Lt, Mt = "__STORYBOOK_ADDONS_MANAGER";
908
- function Gn() {
908
+ function Wn() {
909
909
  return Dt[Mt] || (Dt[Mt] = new Ut()), Dt[Mt];
910
910
  }
911
- n(Gn, "getAddonsStore");
912
- var Wn = Gn();
911
+ n(Wn, "getAddonsStore");
912
+ var $n = Wn();
913
913
 
914
914
  // src/manager-api/modules/addons.ts
915
915
  var Gt = {};
916
916
  L(Gt, {
917
917
  ensurePanel: () => Ft,
918
- init: () => $n
918
+ init: () => Bn
919
919
  });
920
- import { Addon_TypesEnum as oo } from "storybook/internal/types";
920
+ import { Addon_TypesEnum as no } from "storybook/internal/types";
921
921
  function Ft(e, t, r) {
922
922
  let o = Object.keys(e);
923
923
  return o.indexOf(t) >= 0 ? t : o.length ? o[0] : r;
924
924
  }
925
925
  n(Ft, "ensurePanel");
926
- var $n = /* @__PURE__ */ n(({ provider: e, store: t, fullAPI: r }) => {
926
+ var Bn = /* @__PURE__ */ n(({ provider: e, store: t, fullAPI: r }) => {
927
927
  let o = {
928
928
  getElements: /* @__PURE__ */ n((s) => e.getElements(s), "getElements"),
929
929
  getSelectedPanel: /* @__PURE__ */ n(() => {
930
930
  let { selectedPanel: s } = t.getState();
931
- return Ft(o.getElements(oo.PANEL), s, s);
931
+ return Ft(o.getElements(no.PANEL), s, s);
932
932
  }, "getSelectedPanel"),
933
933
  setSelectedPanel: /* @__PURE__ */ n((s) => {
934
934
  t.setState({ selectedPanel: s }, { persistence: "session" });
@@ -946,7 +946,7 @@ var $n = /* @__PURE__ */ n(({ provider: e, store: t, fullAPI: r }) => {
946
946
  api: o,
947
947
  state: {
948
948
  selectedPanel: Ft(
949
- o.getElements(oo.PANEL),
949
+ o.getElements(no.PANEL),
950
950
  t.getState().selectedPanel
951
951
  ),
952
952
  addons: {}
@@ -957,9 +957,9 @@ var $n = /* @__PURE__ */ n(({ provider: e, store: t, fullAPI: r }) => {
957
957
  // src/manager-api/modules/channel.ts
958
958
  var Wt = {};
959
959
  L(Wt, {
960
- init: () => Bn
960
+ init: () => Vn
961
961
  });
962
- var Bn = /* @__PURE__ */ n(({ provider: e }) => ({ api: {
962
+ var Vn = /* @__PURE__ */ n(({ provider: e }) => ({ api: {
963
963
  getChannel: /* @__PURE__ */ n(() => e.channel, "getChannel"),
964
964
  on: /* @__PURE__ */ n((r, o) => (e.channel?.on(r, o), () => e.channel?.off(r, o)), "on"),
965
965
  off: /* @__PURE__ */ n((r, o) => e.channel?.off(r, o), "off"),
@@ -973,18 +973,18 @@ var Bn = /* @__PURE__ */ n(({ provider: e }) => ({ api: {
973
973
  // src/manager-api/modules/globals.ts
974
974
  var qt = {};
975
975
  L(qt, {
976
- init: () => os
976
+ init: () => ns
977
977
  });
978
- import { logger as Po } from "storybook/internal/client-logger";
979
- import { GLOBALS_UPDATED as es, SET_GLOBALS as ts, UPDATE_GLOBALS as rs } from "storybook/internal/core-events";
978
+ import { logger as Ao } from "storybook/internal/client-logger";
979
+ import { GLOBALS_UPDATED as ts, SET_GLOBALS as rs, UPDATE_GLOBALS as os } from "storybook/internal/core-events";
980
980
 
981
981
  // ../node_modules/dequal/dist/index.mjs
982
- var no = Object.prototype.hasOwnProperty;
983
- function so(e, t, r) {
982
+ var so = Object.prototype.hasOwnProperty;
983
+ function ao(e, t, r) {
984
984
  for (r of e.keys())
985
985
  if (F(r, t)) return r;
986
986
  }
987
- n(so, "find");
987
+ n(ao, "find");
988
988
  function F(e, t) {
989
989
  var r, o, s;
990
990
  if (e === t) return !0;
@@ -1000,14 +1000,14 @@ function F(e, t) {
1000
1000
  if (e.size !== t.size)
1001
1001
  return !1;
1002
1002
  for (o of e)
1003
- if (s = o, s && typeof s == "object" && (s = so(t, s), !s) || !t.has(s)) return !1;
1003
+ if (s = o, s && typeof s == "object" && (s = ao(t, s), !s) || !t.has(s)) return !1;
1004
1004
  return !0;
1005
1005
  }
1006
1006
  if (r === Map) {
1007
1007
  if (e.size !== t.size)
1008
1008
  return !1;
1009
1009
  for (o of e)
1010
- if (s = o[0], s && typeof s == "object" && (s = so(t, s), !s) || !F(o[1], t.get(s)))
1010
+ if (s = o[0], s && typeof s == "object" && (s = ao(t, s), !s) || !F(o[1], t.get(s)))
1011
1011
  return !1;
1012
1012
  return !0;
1013
1013
  }
@@ -1026,7 +1026,7 @@ function F(e, t) {
1026
1026
  if (!r || typeof e == "object") {
1027
1027
  o = 0;
1028
1028
  for (r in e)
1029
- if (no.call(e, r) && ++o && !no.call(t, r) || !(r in t) || !F(e[r], t[r])) return !1;
1029
+ if (so.call(e, r) && ++o && !so.call(t, r) || !(r in t) || !F(e[r], t[r])) return !1;
1030
1030
  return Object.keys(t).length === o;
1031
1031
  }
1032
1032
  }
@@ -1035,16 +1035,16 @@ function F(e, t) {
1035
1035
  n(F, "dequal");
1036
1036
 
1037
1037
  // src/manager-api/lib/events.ts
1038
- import { logger as Zn } from "storybook/internal/client-logger";
1038
+ import { logger as es } from "storybook/internal/client-logger";
1039
1039
 
1040
1040
  // src/manager-api/modules/refs.ts
1041
1041
  var Ht = {};
1042
1042
  L(Ht, {
1043
- defaultStoryMapper: () => bo,
1043
+ defaultStoryMapper: () => Po,
1044
1044
  getSourceType: () => zt,
1045
- init: () => Qn
1045
+ init: () => Zn
1046
1046
  });
1047
- import { global as So } from "@storybook/global";
1047
+ import { global as bo } from "@storybook/global";
1048
1048
 
1049
1049
  // ../node_modules/ts-dedent/esm/index.js
1050
1050
  function k(e) {
@@ -1080,29 +1080,29 @@ function k(e) {
1080
1080
  }), a;
1081
1081
  }
1082
1082
  n(k, "dedent");
1083
- var ao = k;
1083
+ var io = k;
1084
1084
 
1085
1085
  // src/manager-api/lib/stories.ts
1086
- import { sanitize as Vn } from "storybook/internal/csf";
1086
+ import { sanitize as Kn } from "storybook/internal/csf";
1087
1087
  var Vt = Ot(Bt(), 1);
1088
1088
 
1089
1089
  // src/manager-api/lib/intersect.ts
1090
- var co = /* @__PURE__ */ n((e, t) => !Array.isArray(e) || !Array.isArray(t) || !e.length || !t.length ? [] : e.reduce((r, o) => (t.includes(
1090
+ var uo = /* @__PURE__ */ n((e, t) => !Array.isArray(e) || !Array.isArray(t) || !e.length || !t.length ? [] : e.reduce((r, o) => (t.includes(
1091
1091
  o) && r.push(o), r), []), "default");
1092
1092
 
1093
1093
  // src/manager-api/lib/stories.ts
1094
- var Kn = /\s*\/\s*/, uo = /* @__PURE__ */ n(({
1094
+ var zn = /\s*\/\s*/, lo = /* @__PURE__ */ n(({
1095
1095
  globalParameters: e,
1096
1096
  kindParameters: t,
1097
1097
  stories: r
1098
1098
  }) => Nt(r, (o) => ({
1099
1099
  ...o,
1100
- parameters: yo(
1100
+ parameters: mo(
1101
1101
  e,
1102
1102
  t[o.kind],
1103
1103
  o.parameters
1104
1104
  )
1105
- })), "denormalizeStoryParameters"), lo = /* @__PURE__ */ n((e) => ({ v: 5, entries: Object.entries(e).reduce(
1105
+ })), "denormalizeStoryParameters"), po = /* @__PURE__ */ n((e) => ({ v: 5, entries: Object.entries(e).reduce(
1106
1106
  (r, [o, s]) => {
1107
1107
  if (!s)
1108
1108
  return r;
@@ -1133,7 +1133,7 @@ var Kn = /\s*\/\s*/, uo = /* @__PURE__ */ n(({
1133
1133
  return r;
1134
1134
  },
1135
1135
  {}
1136
- ) }), "transformSetStoriesStoryDataToPreparedStoryIndex"), zn = /* @__PURE__ */ n((e) => ({
1136
+ ) }), "transformSetStoriesStoryDataToPreparedStoryIndex"), Hn = /* @__PURE__ */ n((e) => ({
1137
1137
  v: 3,
1138
1138
  stories: Object.values(e.stories).reduce(
1139
1139
  (t, r) => (t[r.id] = {
@@ -1144,7 +1144,7 @@ var Kn = /\s*\/\s*/, uo = /* @__PURE__ */ n(({
1144
1144
  }, t),
1145
1145
  {}
1146
1146
  )
1147
- }), "transformStoryIndexV2toV3"), Hn = /* @__PURE__ */ n((e) => {
1147
+ }), "transformStoryIndexV2toV3"), qn = /* @__PURE__ */ n((e) => {
1148
1148
  let t = Ct(Object.values(e.stories), (r) => r.title);
1149
1149
  return {
1150
1150
  v: 4,
@@ -1160,7 +1160,7 @@ var Kn = /\s*\/\s*/, uo = /* @__PURE__ */ n(({
1160
1160
  {}
1161
1161
  )
1162
1162
  };
1163
- }, "transformStoryIndexV3toV4"), qn = /* @__PURE__ */ n((e) => ({
1163
+ }, "transformStoryIndexV3toV4"), Yn = /* @__PURE__ */ n((e) => ({
1164
1164
  v: 5,
1165
1165
  entries: Object.values(e.entries).reduce(
1166
1166
  (t, r) => (t[r.id] = {
@@ -1173,7 +1173,7 @@ var Kn = /\s*\/\s*/, uo = /* @__PURE__ */ n(({
1173
1173
  if (!e.v)
1174
1174
  throw new Error("Composition: Missing stories.json version");
1175
1175
  let i = e;
1176
- i = i.v === 2 ? zn(i) : i, i = i.v === 3 ? Hn(i) : i, i = i.v === 4 ? qn(i) : i, i = i;
1176
+ i = i.v === 2 ? Hn(i) : i, i = i.v === 3 ? qn(i) : i, i = i.v === 4 ? Yn(i) : i, i = i;
1177
1177
  let a = Object.values(i.entries).filter((h) => {
1178
1178
  let g = !0, S = s[h.id] ?? {};
1179
1179
  return Object.values(S).some(({ value: P }) => P === "status-value:error") || Object.values(o).forEach((P) => {
@@ -1182,8 +1182,8 @@ var Kn = /\s*\/\s*/, uo = /* @__PURE__ */ n(({
1182
1182
  }), { sidebar: c = {} } = t.getConfig(), { showRoots: u, collapsedRoots: l = [], renderLabel: p } = c, d = typeof u < "u", f = a.reduce((h, g) => {
1183
1183
  if (r.docsMode && g.type !== "docs")
1184
1184
  return h;
1185
- let { title: S } = g, P = S.trim().split(Kn), E = (!d || u) && P.length > 1 ? [P.shift()] : [], v = [...E, ...P], I = v.reduce((_, w, C) => {
1186
- let x = C > 0 && _[C - 1], he = Vn(x ? `${x}-${w}` : w);
1185
+ let { title: S } = g, P = S.trim().split(zn), E = (!d || u) && P.length > 1 ? [P.shift()] : [], v = [...E, ...P], I = v.reduce((_, w, C) => {
1186
+ let x = C > 0 && _[C - 1], he = Kn(x ? `${x}-${w}` : w);
1187
1187
  if (w.trim() === "")
1188
1188
  throw new Error(k`Invalid title ${S} ending in slash.`);
1189
1189
  if (x === he)
@@ -1245,7 +1245,7 @@ var Kn = /\s*\/\s*/, uo = /* @__PURE__ */ n(({
1245
1245
  return h[g.id] || (h[g.id] = g, (g.type === "root" || g.type === "group" || g.type === "component") && (g.children.forEach((S) => y(h, f[S])),
1246
1246
  g.tags = g.children.reduce((S, P) => {
1247
1247
  let E = h[P];
1248
- return S === null ? E.tags : co(S, E.tags);
1248
+ return S === null ? E.tags : uo(S, E.tags);
1249
1249
  }, null))), h;
1250
1250
  }
1251
1251
  n(y, "addItem");
@@ -1256,19 +1256,19 @@ var Kn = /\s*\/\s*/, uo = /* @__PURE__ */ n(({
1256
1256
  let s = t[r];
1257
1257
  return o.type === "story" && s?.type === "story" && s.prepared ? [r, { ...s, ...o, prepared: !0 }] : [r, o];
1258
1258
  })
1259
- ) : e, "addPreparedStories"), po = (0, Vt.default)(1)((e) => Object.entries(e).reduce((t, r) => {
1259
+ ) : e, "addPreparedStories"), fo = (0, Vt.default)(1)((e) => Object.entries(e).reduce((t, r) => {
1260
1260
  let o = r[1];
1261
1261
  return o.type === "component" && t.push([...o.children]), t;
1262
- }, [])), fo = (0, Vt.default)(1)((e) => Object.keys(e).filter((t) => ["story", "docs"].includes(e[t].type)));
1262
+ }, [])), yo = (0, Vt.default)(1)((e) => Object.keys(e).filter((t) => ["story", "docs"].includes(e[t].type)));
1263
1263
 
1264
1264
  // src/manager-api/modules/refs.ts
1265
- var { location: Yn, fetch: mo } = So, zt = /* @__PURE__ */ n((e, t) => {
1266
- let { origin: r, pathname: o } = Yn, { origin: s, pathname: i } = new URL(e), a = `${r + o}`.replace("/iframe.html", "").replace(/\/$/, ""),
1265
+ var { location: Jn, fetch: ho } = bo, zt = /* @__PURE__ */ n((e, t) => {
1266
+ let { origin: r, pathname: o } = Jn, { origin: s, pathname: i } = new URL(e), a = `${r + o}`.replace("/iframe.html", "").replace(/\/$/, ""),
1267
1267
  c = `${s + i}`.replace("/iframe.html", "").replace(/\/$/, "");
1268
1268
  return a === c ? ["local", c] : t || e ? ["external", c] : [null, null];
1269
- }, "getSourceType"), bo = /* @__PURE__ */ n((e, t) => ({ ...t, kind: t.kind.replace("|", "/") }), "defaultStoryMapper"), ho = /* @__PURE__ */ n(
1269
+ }, "getSourceType"), Po = /* @__PURE__ */ n((e, t) => ({ ...t, kind: t.kind.replace("|", "/") }), "defaultStoryMapper"), go = /* @__PURE__ */ n(
1270
1270
  (e, t) => Object.entries(e).reduce((r, [o, s]) => ({ ...r, [o]: { ...s, refId: t.id } }), {}), "addRefIds");
1271
- async function go(e) {
1271
+ async function So(e) {
1272
1272
  if (!e)
1273
1273
  return {};
1274
1274
  try {
@@ -1283,17 +1283,17 @@ async function go(e) {
1283
1283
  return { indexError: t };
1284
1284
  }
1285
1285
  }
1286
- n(go, "handleRequest");
1287
- var Jn = /* @__PURE__ */ n((e) => {
1286
+ n(So, "handleRequest");
1287
+ var Xn = /* @__PURE__ */ n((e) => {
1288
1288
  let t = /https?:\/\/(.+:.+)@/, r = e, o, [, s] = e.match(t) || [];
1289
1289
  return s && (r = e.replace(`${s}@`, ""), o = btoa(`${s}`)), {
1290
1290
  url: r,
1291
1291
  authorization: o
1292
1292
  };
1293
- }, "parseUrl"), Xn = /* @__PURE__ */ n((e, t, r) => {
1293
+ }, "parseUrl"), Qn = /* @__PURE__ */ n((e, t, r) => {
1294
1294
  let { storyMapper: o } = r;
1295
1295
  return o ? Object.entries(e).reduce((s, [i, a]) => ({ ...s, [i]: o(t, a) }), {}) : e;
1296
- }, "map"), Qn = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r, docsOptions: o = {} }, { runCheck: s = !0 } = {}) => {
1296
+ }, "map"), Zn = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r, docsOptions: o = {} }, { runCheck: s = !0 } = {}) => {
1297
1297
  let i = {
1298
1298
  findRef: /* @__PURE__ */ n((u) => {
1299
1299
  let l = i.getRefs();
@@ -1319,7 +1319,7 @@ var Jn = /* @__PURE__ */ n((e) => {
1319
1319
  }, "changeRefState"),
1320
1320
  checkRef: /* @__PURE__ */ n(async (u) => {
1321
1321
  let { id: l, url: p, version: d, type: f } = u, y = f === "server-checked", m = {}, h = d ? `?version=${d}` : "", g = y ? "omit" : "in\
1322
- clude", S = Jn(p), P = {
1322
+ clude", S = Xn(p), P = {
1323
1323
  Accept: "application/json"
1324
1324
  };
1325
1325
  S.authorization && Object.assign(P, {
@@ -1327,8 +1327,8 @@ clude", S = Jn(p), P = {
1327
1327
  });
1328
1328
  let [E, v] = await Promise.all(
1329
1329
  ["index.json", "stories.json"].map(
1330
- async (_) => go(
1331
- mo(`${S.url}/${_}${h}`, {
1330
+ async (_) => So(
1331
+ ho(`${S.url}/${_}${h}`, {
1332
1332
  headers: P,
1333
1333
  credentials: g
1334
1334
  })
@@ -1336,8 +1336,8 @@ clude", S = Jn(p), P = {
1336
1336
  )
1337
1337
  );
1338
1338
  if (!E.indexError || !v.indexError) {
1339
- let _ = await go(
1340
- mo(`${S.url}/metadata.json${h}`, {
1339
+ let _ = await So(
1340
+ ho(`${S.url}/metadata.json${h}`, {
1341
1341
  headers: P,
1342
1342
  credentials: g,
1343
1343
  cache: "no-cache"
@@ -1376,9 +1376,9 @@ clude", S = Jn(p), P = {
1376
1376
  setRef: /* @__PURE__ */ n(async (u, { storyIndex: l, setStoriesData: p, ...d }, f = !1) => {
1377
1377
  if (r)
1378
1378
  return;
1379
- let y, m, h, { filters: g } = e.getState(), { storyMapper: S = bo } = t.getConfig(), P = i.getRefs()[u];
1380
- (l || p) && (y = p ? lo(
1381
- Xn(p, P, { storyMapper: S })
1379
+ let y, m, h, { filters: g } = e.getState(), { storyMapper: S = Po } = t.getConfig(), P = i.getRefs()[u];
1380
+ (l || p) && (y = p ? po(
1381
+ Qn(p, P, { storyMapper: S })
1382
1382
  ) : l, h = ie(l, {
1383
1383
  provider: t,
1384
1384
  docsOptions: o,
@@ -1389,7 +1389,7 @@ clude", S = Jn(p), P = {
1389
1389
  docsOptions: o,
1390
1390
  filters: {},
1391
1391
  allStatuses: {}
1392
- })), m && (m = ho(m, P)), h && (h = ho(h, P)), await i.updateRef(u, { ...P, ...d, index: m, filteredIndex: h, internal_index: y });
1392
+ })), m && (m = go(m, P)), h && (h = go(h, P)), await i.updateRef(u, { ...P, ...d, index: m, filteredIndex: h, internal_index: y });
1393
1393
  }, "setRef"),
1394
1394
  updateRef: /* @__PURE__ */ n(async (u, l) => {
1395
1395
  let { [u]: p, ...d } = i.getRefs();
@@ -1399,7 +1399,7 @@ clude", S = Jn(p), P = {
1399
1399
  refs: f
1400
1400
  });
1401
1401
  }, "updateRef")
1402
- }, a = !r && So.REFS || {}, c = a;
1402
+ }, a = !r && bo.REFS || {}, c = a;
1403
1403
  return s && new Promise(async (u) => {
1404
1404
  for (let l of Object.values(a))
1405
1405
  await i.checkRef({ ...l, stories: {} });
@@ -1431,12 +1431,12 @@ var j = /* @__PURE__ */ n((e, t) => {
1431
1431
  return u;
1432
1432
  // if we couldn't find the source, something risky happened, we ignore the input, and log a warning
1433
1433
  default:
1434
- return Zn.warn(`Received a ${s} frame that was not configured as a ref`), null;
1434
+ return es.warn(`Received a ${s} frame that was not configured as a ref`), null;
1435
1435
  }
1436
1436
  }, "getEventMetadata");
1437
1437
 
1438
1438
  // src/manager-api/modules/globals.ts
1439
- var os = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1439
+ var ns = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1440
1440
  let o = {
1441
1441
  getGlobals() {
1442
1442
  return e.getState().globals;
@@ -1451,7 +1451,7 @@ var os = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1451
1451
  return e.getState().globalTypes;
1452
1452
  },
1453
1453
  updateGlobals(a) {
1454
- r.channel?.emit(rs, {
1454
+ r.channel?.emit(os, {
1455
1455
  globals: a,
1456
1456
  options: {
1457
1457
  target: "storybook-preview-iframe"
@@ -1476,18 +1476,18 @@ var os = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1476
1476
  F(a, l) || e.setState({ globals: a }), F(u, p) || e.setState({ userGlobals: u }), F(c, d) || e.setState({ storyGlobals: c });
1477
1477
  }, "updateGlobals");
1478
1478
  return r.channel?.on(
1479
- es,
1479
+ ts,
1480
1480
  /* @__PURE__ */ n(function({ globals: c, storyGlobals: u, userGlobals: l }) {
1481
1481
  let { ref: p } = j(this, t);
1482
- p ? Po.warn(
1482
+ p ? Ao.warn(
1483
1483
  "received a GLOBALS_UPDATED from a non-local ref. This is not currently supported."
1484
1484
  ) : i({ globals: c, storyGlobals: u, userGlobals: l });
1485
1485
  }, "handleGlobalsUpdated")
1486
1486
  ), r.channel?.on(
1487
- ts,
1487
+ rs,
1488
1488
  /* @__PURE__ */ n(function({ globals: c, globalTypes: u }) {
1489
1489
  let { ref: l } = j(this, t), p = e.getState()?.globals;
1490
- l ? Object.keys(c).length > 0 && Po.warn("received globals from a non-local ref. This is not currently supported.") : e.setState({ globals: c,
1490
+ l ? Object.keys(c).length > 0 && Ao.warn("received globals from a non-local ref. This is not currently supported.") : e.setState({ globals: c,
1491
1491
  userGlobals: c, globalTypes: u }), p && Object.keys(p).length !== 0 && !F(c, p) && o.updateGlobals(p);
1492
1492
  }, "handleSetGlobals")
1493
1493
  ), {
@@ -1499,15 +1499,15 @@ var os = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1499
1499
  // src/manager-api/modules/layout.ts
1500
1500
  var pt = {};
1501
1501
  L(pt, {
1502
- ActiveTabs: () => vo,
1502
+ ActiveTabs: () => _o,
1503
1503
  defaultLayoutState: () => U,
1504
1504
  focusableUIElements: () => Re,
1505
- init: () => cs
1505
+ init: () => us
1506
1506
  });
1507
- import { SET_CONFIG as ns } from "storybook/internal/core-events";
1508
- import { global as ss } from "@storybook/global";
1509
- import { create as as } from "storybook/theming/create";
1510
- var { document: is } = ss, Ao = /* @__PURE__ */ n((e) => typeof e == "function", "isFunction"), vo = {
1507
+ import { SET_CONFIG as ss } from "storybook/internal/core-events";
1508
+ import { global as as } from "@storybook/global";
1509
+ import { create as is } from "storybook/theming/create";
1510
+ var { document: cs } = as, Eo = /* @__PURE__ */ n((e) => typeof e == "function", "isFunction"), _o = {
1511
1511
  SIDEBAR: "sidebar",
1512
1512
  CANVAS: "canvas",
1513
1513
  ADDONS: "addons"
@@ -1516,7 +1516,7 @@ var { document: is } = ss, Ao = /* @__PURE__ */ n((e) => typeof e == "function",
1516
1516
  enableShortcuts: !0
1517
1517
  },
1518
1518
  layout: {
1519
- initialActive: vo.CANVAS,
1519
+ initialActive: _o.CANVAS,
1520
1520
  showToolbar: !0,
1521
1521
  navSize: 300,
1522
1522
  bottomPanelHeight: 300,
@@ -1534,7 +1534,7 @@ var { document: is } = ss, Ao = /* @__PURE__ */ n((e) => typeof e == "function",
1534
1534
  showToolbar: void 0
1535
1535
  },
1536
1536
  selectedPanel: void 0,
1537
- theme: as()
1537
+ theme: is()
1538
1538
  }, Re = {
1539
1539
  storySearchField: "storybook-explorer-searchfield",
1540
1540
  storyListMenu: "storybook-explorer-menu",
@@ -1542,16 +1542,16 @@ var { document: is } = ss, Ao = /* @__PURE__ */ n((e) => typeof e == "function",
1542
1542
  }, Yt = /* @__PURE__ */ n((e) => e.layout.navSize > 0, "getIsNavShown"), Jt = /* @__PURE__ */ n((e) => {
1543
1543
  let { bottomPanelHeight: t, rightPanelWidth: r, panelPosition: o } = e.layout;
1544
1544
  return o === "bottom" && t > 0 || o === "right" && r > 0;
1545
- }, "getIsPanelShown"), Eo = /* @__PURE__ */ n((e) => !Yt(e) && !Jt(e), "getIsFullscreen"), lt = /* @__PURE__ */ n((e) => ({
1545
+ }, "getIsPanelShown"), vo = /* @__PURE__ */ n((e) => !Yt(e) && !Jt(e), "getIsFullscreen"), lt = /* @__PURE__ */ n((e) => ({
1546
1546
  navSize: e.navSize > 0 ? e.navSize : e.recentVisibleSizes.navSize,
1547
1547
  bottomPanelHeight: e.bottomPanelHeight > 0 ? e.bottomPanelHeight : e.recentVisibleSizes.bottomPanelHeight,
1548
1548
  rightPanelWidth: e.rightPanelWidth > 0 ? e.rightPanelWidth : e.recentVisibleSizes.rightPanelWidth
1549
- }), "getRecentVisibleSizes"), cs = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r }) => {
1549
+ }), "getRecentVisibleSizes"), us = /* @__PURE__ */ n(({ store: e, provider: t, singleStory: r }) => {
1550
1550
  let o = {
1551
1551
  toggleFullscreen(i) {
1552
1552
  return e.setState(
1553
1553
  (a) => {
1554
- let c = Eo(a), u = typeof i == "boolean" ? i : !c;
1554
+ let c = vo(a), u = typeof i == "boolean" ? i : !c;
1555
1555
  return u === c ? { layout: a.layout } : u ? {
1556
1556
  layout: {
1557
1557
  ...a.layout,
@@ -1672,7 +1672,7 @@ var { document: is } = ss, Ao = /* @__PURE__ */ n((e) => typeof e == "function",
1672
1672
  focusOnUIElement(i, a) {
1673
1673
  if (!i)
1674
1674
  return;
1675
- let c = is.getElementById(i);
1675
+ let c = cs.getElementById(i);
1676
1676
  c && (c.focus(), a && c.select());
1677
1677
  },
1678
1678
  getInitialOptions() {
@@ -1696,7 +1696,7 @@ var { document: is } = ss, Ao = /* @__PURE__ */ n((e) => typeof e == "function",
1696
1696
  };
1697
1697
  },
1698
1698
  getIsFullscreen() {
1699
- return Eo(e.getState());
1699
+ return vo(e.getState());
1700
1700
  },
1701
1701
  getIsPanelShown() {
1702
1702
  return Jt(e.getState());
@@ -1706,11 +1706,11 @@ var { document: is } = ss, Ao = /* @__PURE__ */ n((e) => typeof e == "function",
1706
1706
  },
1707
1707
  getShowToolbarWithCustomisations(i) {
1708
1708
  let a = e.getState();
1709
- return Ao(a.layoutCustomisations.showToolbar) ? a.layoutCustomisations.showToolbar(a, i) ?? i : i;
1709
+ return Eo(a.layoutCustomisations.showToolbar) ? a.layoutCustomisations.showToolbar(a, i) ?? i : i;
1710
1710
  },
1711
1711
  getNavSizeWithCustomisations(i) {
1712
1712
  let a = e.getState();
1713
- if (Ao(a.layoutCustomisations.showSidebar)) {
1713
+ if (Eo(a.layoutCustomisations.showSidebar)) {
1714
1714
  let c = a.layoutCustomisations.showSidebar(a, i !== 0);
1715
1715
  if (i === 0 && c === !0)
1716
1716
  return a.layout.recentVisibleSizes.navSize;
@@ -1740,7 +1740,7 @@ var { document: is } = ss, Ao = /* @__PURE__ */ n((e) => typeof e == "function",
1740
1740
  keys(y).length && e.setState(y, { persistence: "permanent" }), M(l, f) || e.setState({ theme: f });
1741
1741
  }, "setOptions")
1742
1742
  }, s = Z(e.getState(), ["layout", "selectedPanel"]);
1743
- return t.channel?.on(ns, () => {
1743
+ return t.channel?.on(ss, () => {
1744
1744
  o.setOptions(K(o.getInitialOptions(), s));
1745
1745
  }), {
1746
1746
  api: o,
@@ -1751,9 +1751,9 @@ var { document: is } = ss, Ao = /* @__PURE__ */ n((e) => typeof e == "function",
1751
1751
  // src/manager-api/modules/notifications.ts
1752
1752
  var Xt = {};
1753
1753
  L(Xt, {
1754
- init: () => us
1754
+ init: () => ls
1755
1755
  });
1756
- var us = /* @__PURE__ */ n(({ store: e }) => ({ api: {
1756
+ var ls = /* @__PURE__ */ n(({ store: e }) => ({ api: {
1757
1757
  addNotification: /* @__PURE__ */ n((o) => {
1758
1758
  e.setState(({ notifications: s }) => {
1759
1759
  let [i, a] = $e(s, (c) => c.id === o.id);
@@ -1775,9 +1775,9 @@ var us = /* @__PURE__ */ n(({ store: e }) => ({ api: {
1775
1775
  // src/manager-api/modules/provider.ts
1776
1776
  var Qt = {};
1777
1777
  L(Qt, {
1778
- init: () => ls
1778
+ init: () => ps
1779
1779
  });
1780
- var ls = /* @__PURE__ */ n(({ provider: e, fullAPI: t }) => ({
1780
+ var ps = /* @__PURE__ */ n(({ provider: e, fullAPI: t }) => ({
1781
1781
  api: e.renderPreview ? { renderPreview: e.renderPreview } : {},
1782
1782
  state: {},
1783
1783
  init: /* @__PURE__ */ n(() => {
@@ -1788,9 +1788,9 @@ var ls = /* @__PURE__ */ n(({ provider: e, fullAPI: t }) => ({
1788
1788
  // src/manager-api/modules/settings.ts
1789
1789
  var Zt = {};
1790
1790
  L(Zt, {
1791
- init: () => ps
1791
+ init: () => ds
1792
1792
  });
1793
- var ps = /* @__PURE__ */ n(({ store: e, navigate: t, fullAPI: r }) => ({
1793
+ var ds = /* @__PURE__ */ n(({ store: e, navigate: t, fullAPI: r }) => ({
1794
1794
  state: { settings: { lastTrackedStoryId: null } },
1795
1795
  api: {
1796
1796
  closeSettings: /* @__PURE__ */ n(() => {
@@ -1824,23 +1824,23 @@ var ir = {};
1824
1824
  L(ir, {
1825
1825
  controlOrMetaKey: () => ce,
1826
1826
  defaultShortcuts: () => ue,
1827
- init: () => As,
1828
- isMacLike: () => Io,
1827
+ init: () => Es,
1828
+ isMacLike: () => xo,
1829
1829
  keys: () => ar
1830
1830
  });
1831
1831
  import {
1832
- FORCE_REMOUNT as ms,
1833
- PREVIEW_KEYDOWN as hs,
1834
- STORIES_COLLAPSE_ALL as gs,
1835
- STORIES_EXPAND_ALL as Ss
1832
+ FORCE_REMOUNT as hs,
1833
+ PREVIEW_KEYDOWN as gs,
1834
+ STORIES_COLLAPSE_ALL as Ss,
1835
+ STORIES_EXPAND_ALL as bs
1836
1836
  } from "storybook/internal/core-events";
1837
- import { global as bs } from "@storybook/global";
1837
+ import { global as Ps } from "@storybook/global";
1838
1838
 
1839
1839
  // src/manager-api/lib/shortcut.ts
1840
- import { global as ds } from "@storybook/global";
1841
- var { navigator: er } = ds, tr = /* @__PURE__ */ n(() => er && er.platform ? !!er.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, "isMacLike"),
1840
+ import { global as fs } from "@storybook/global";
1841
+ var { navigator: er } = fs, tr = /* @__PURE__ */ n(() => er && er.platform ? !!er.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1, "isMacLike"),
1842
1842
  sd = /* @__PURE__ */ n(() => tr() ? "\u2318" : "ctrl", "controlOrMetaSymbol"), ad = /* @__PURE__ */ n(() => tr() ? "meta" : "control", "cont\
1843
- rolOrMetaKey"), fs = /* @__PURE__ */ n(() => tr() ? "\u2325" : "alt", "optionOrAltSymbol"), id = /* @__PURE__ */ n((e, t) => JSON.stringify(
1843
+ rolOrMetaKey"), ys = /* @__PURE__ */ n(() => tr() ? "\u2325" : "alt", "optionOrAltSymbol"), id = /* @__PURE__ */ n((e, t) => JSON.stringify(
1844
1844
  e) === JSON.stringify(t), "isShortcutTaken"), rr = /* @__PURE__ */ n((e) => {
1845
1845
  if (["Meta", "Alt", "Control", "Shift"].includes(e.key))
1846
1846
  return null;
@@ -1856,14 +1856,14 @@ e) === JSON.stringify(t), "isShortcutTaken"), rr = /* @__PURE__ */ n((e) => {
1856
1856
  }, "eventToShortcut"), or = /* @__PURE__ */ n((e, t) => !e || !t || (e.join("").startsWith("shift/") && e.shift(), e.length !== t.length) ? !1 :
1857
1857
  !e.find(
1858
1858
  (r, o) => Array.isArray(r) ? !r.includes(t[o]) : r !== t[o]
1859
- ), "shortcutMatchesShortcut"), cd = /* @__PURE__ */ n((e, t) => or(rr(e), t), "eventMatchesShortcut"), ys = /* @__PURE__ */ n((e) => e === "\
1860
- alt" ? fs() : e === "control" ? "\u2303" : e === "meta" ? "\u2318" : e === "shift" ? "\u21E7\u200B" : e === "Enter" || e === "Backspace" || e ===
1859
+ ), "shortcutMatchesShortcut"), cd = /* @__PURE__ */ n((e, t) => or(rr(e), t), "eventMatchesShortcut"), ms = /* @__PURE__ */ n((e) => e === "\
1860
+ alt" ? ys() : e === "control" ? "\u2303" : e === "meta" ? "\u2318" : e === "shift" ? "\u21E7\u200B" : e === "Enter" || e === "Backspace" || e ===
1861
1861
  "Esc" || e === "escape" ? "" : e === " " ? "SPACE" : e === "ArrowUp" ? "\u2191" : e === "ArrowDown" ? "\u2193" : e === "ArrowLeft" ? "\u2190" :
1862
- e === "ArrowRight" ? "\u2192" : e.toUpperCase(), "keyToSymbol"), ud = /* @__PURE__ */ n((e) => e.map(ys).join(" "), "shortcutToHumanString");
1862
+ e === "ArrowRight" ? "\u2192" : e.toUpperCase(), "keyToSymbol"), ud = /* @__PURE__ */ n((e) => e.map(ms).join(" "), "shortcutToHumanString");
1863
1863
 
1864
1864
  // src/manager-api/modules/shortcuts.ts
1865
- var { navigator: nr, document: _o } = bs, Io = /* @__PURE__ */ n(() => nr && nr.platform ? !!nr.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1,
1866
- "isMacLike"), ce = /* @__PURE__ */ n(() => Io() ? "meta" : "control", "controlOrMetaKey");
1865
+ var { navigator: nr, document: Io } = Ps, xo = /* @__PURE__ */ n(() => nr && nr.platform ? !!nr.platform.match(/(Mac|iPhone|iPod|iPad)/i) : !1,
1866
+ "isMacLike"), ce = /* @__PURE__ */ n(() => xo() ? "meta" : "control", "controlOrMetaKey");
1867
1867
  function ar(e) {
1868
1868
  return Object.keys(e);
1869
1869
  }
@@ -1890,12 +1890,12 @@ var ue = Object.freeze({
1890
1890
  expandAll: [ce(), "shift", "ArrowDown"],
1891
1891
  remount: ["alt", "R"]
1892
1892
  }), sr = {};
1893
- function Ps(e) {
1893
+ function As(e) {
1894
1894
  let t = e.target;
1895
1895
  return /input|textarea/i.test(t.tagName) || t.getAttribute("contenteditable") !== null;
1896
1896
  }
1897
- n(Ps, "focusInInput");
1898
- var As = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1897
+ n(As, "focusInInput");
1898
+ var Es = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1899
1899
  let o = {
1900
1900
  // Getting and setting shortcuts
1901
1901
  getShortcutKeys() {
@@ -1973,7 +1973,7 @@ var As = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
1973
1973
  break;
1974
1974
  }
1975
1975
  case "focusIframe": {
1976
- let d = _o.getElementById("storybook-preview-iframe");
1976
+ let d = Io.getElementById("storybook-preview-iframe");
1977
1977
  if (d)
1978
1978
  try {
1979
1979
  d.contentWindow.focus();
@@ -2030,15 +2030,15 @@ var As = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
2030
2030
  break;
2031
2031
  }
2032
2032
  case "collapseAll": {
2033
- t.emit(gs);
2033
+ t.emit(Ss);
2034
2034
  break;
2035
2035
  }
2036
2036
  case "expandAll": {
2037
- t.emit(Ss);
2037
+ t.emit(bs);
2038
2038
  break;
2039
2039
  }
2040
2040
  case "remount": {
2041
- t.emit(ms, { storyId: p });
2041
+ t.emit(hs, { storyId: p });
2042
2042
  break;
2043
2043
  }
2044
2044
  default:
@@ -2054,9 +2054,9 @@ var As = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
2054
2054
  )
2055
2055
  };
2056
2056
  return { api: o, state: i, init: /* @__PURE__ */ n(() => {
2057
- _o.addEventListener("keydown", (c) => {
2058
- Ps(c) || o.handleKeydownEvent(c);
2059
- }), r.channel?.on(hs, (c) => {
2057
+ Io.addEventListener("keydown", (c) => {
2058
+ As(c) || o.handleKeydownEvent(c);
2059
+ }), r.channel?.on(gs, (c) => {
2060
2060
  o.handleKeydownEvent(c.event);
2061
2061
  });
2062
2062
  }, "initModule") };
@@ -2065,41 +2065,41 @@ var As = /* @__PURE__ */ n(({ store: e, fullAPI: t, provider: r }) => {
2065
2065
  // src/manager-api/modules/stories.ts
2066
2066
  var yr = {};
2067
2067
  L(yr, {
2068
- init: () => Js
2068
+ init: () => Xs
2069
2069
  });
2070
- import { logger as Ts } from "storybook/internal/client-logger";
2070
+ import { logger as Rs } from "storybook/internal/client-logger";
2071
2071
  import {
2072
- CONFIG_ERROR as Rs,
2073
- CURRENT_STORY_WAS_SET as ws,
2074
- DOCS_PREPARED as Os,
2075
- PRELOAD_ENTRIES as Cs,
2076
- RESET_STORY_ARGS as Ns,
2077
- SELECT_STORY as ks,
2078
- SET_CONFIG as js,
2079
- SET_CURRENT_STORY as Ds,
2080
- SET_FILTER as Ms,
2081
- SET_INDEX as Us,
2082
- SET_STORIES as Ls,
2083
- STORY_ARGS_UPDATED as Fs,
2084
- STORY_CHANGED as Gs,
2085
- STORY_INDEX_INVALIDATED as Ws,
2086
- STORY_MISSING as $s,
2087
- STORY_PREPARED as Bs,
2088
- STORY_SPECIFIED as Vs,
2089
- UPDATE_STORY_ARGS as Ks
2072
+ CONFIG_ERROR as ws,
2073
+ CURRENT_STORY_WAS_SET as Os,
2074
+ DOCS_PREPARED as Cs,
2075
+ PRELOAD_ENTRIES as Ns,
2076
+ RESET_STORY_ARGS as ks,
2077
+ SELECT_STORY as js,
2078
+ SET_CONFIG as Ds,
2079
+ SET_CURRENT_STORY as Ms,
2080
+ SET_FILTER as Us,
2081
+ SET_INDEX as Ls,
2082
+ SET_STORIES as Fs,
2083
+ STORY_ARGS_UPDATED as Gs,
2084
+ STORY_CHANGED as Ws,
2085
+ STORY_INDEX_INVALIDATED as $s,
2086
+ STORY_MISSING as Bs,
2087
+ STORY_PREPARED as Vs,
2088
+ STORY_SPECIFIED as Ks,
2089
+ UPDATE_STORY_ARGS as zs
2090
2090
  } from "storybook/internal/core-events";
2091
- import { sanitize as wo, toId as gt } from "storybook/internal/csf";
2092
- import { global as zs } from "@storybook/global";
2091
+ import { sanitize as Oo, toId as gt } from "storybook/internal/csf";
2092
+ import { global as Hs } from "@storybook/global";
2093
2093
 
2094
2094
  // src/storybook-error.ts
2095
- function xo({
2095
+ function To({
2096
2096
  code: e,
2097
2097
  category: t
2098
2098
  }) {
2099
2099
  let r = String(e).padStart(4, "0");
2100
2100
  return `SB_${t}_${r}`;
2101
2101
  }
2102
- n(xo, "parseErrorCode");
2102
+ n(To, "parseErrorCode");
2103
2103
  var dt = class dt extends Error {
2104
2104
  constructor(r) {
2105
2105
  super(dt.getFullMessage(r));
@@ -2113,7 +2113,7 @@ var dt = class dt extends Error {
2113
2113
  this.category = r.category, this.documentation = r.documentation ?? !1, this.code = r.code;
2114
2114
  }
2115
2115
  get fullErrorCode() {
2116
- return xo({ code: this.code, category: this.category });
2116
+ return To({ code: this.code, category: this.category });
2117
2117
  }
2118
2118
  /** Overrides the default `Error.name` property in the format: SB_<CATEGORY>_<CODE>. */
2119
2119
  get name() {
@@ -2128,7 +2128,7 @@ var dt = class dt extends Error {
2128
2128
  message: i
2129
2129
  }) {
2130
2130
  let a;
2131
- return r === !0 ? a = `https://storybook.js.org/error/${xo({ code: o, category: s })}` : typeof r == "string" ? a = r : Array.isArray(r) &&
2131
+ return r === !0 ? a = `https://storybook.js.org/error/${To({ code: o, category: s })}` : typeof r == "string" ? a = r : Array.isArray(r) &&
2132
2132
  (a = `
2133
2133
  ${r.map((c) => ` - ${c}`).join(`
2134
2134
  `)}`), `${i}${a != null ? `
@@ -2195,14 +2195,14 @@ n(lr, "StatusTypeIdMismatchError");
2195
2195
  var mt = lr;
2196
2196
 
2197
2197
  // src/shared/status-store/index.ts
2198
- var To = {
2198
+ var Ro = {
2199
2199
  id: "storybook/status",
2200
2200
  leader: !0,
2201
2201
  initialState: {}
2202
2202
  }, pr = {
2203
2203
  SELECT: "select"
2204
2204
  };
2205
- function Ro({
2205
+ function wo({
2206
2206
  universalStatusStore: e,
2207
2207
  useUniversalStore: t,
2208
2208
  environment: r
@@ -2304,13 +2304,13 @@ function Ro({
2304
2304
  useStatusStore: /* @__PURE__ */ n((i) => t(e, i)[0], "useStatusStore")
2305
2305
  } : { getStatusStoreByTypeId: s, fullStatusStore: o, universalStatusStore: e };
2306
2306
  }
2307
- n(Ro, "createStatusStore");
2307
+ n(wo, "createStatusStore");
2308
2308
 
2309
2309
  // src/shared/universal-store/instances.ts
2310
2310
  var dr = /* @__PURE__ */ new Map();
2311
2311
 
2312
2312
  // src/shared/universal-store/index.ts
2313
- var Es = "UNIVERSAL_STORE:", G = {
2313
+ var vs = "UNIVERSAL_STORE:", G = {
2314
2314
  PENDING: "PENDING",
2315
2315
  RESOLVED: "RESOLVED",
2316
2316
  REJECTED: "REJECTED"
@@ -2362,7 +2362,7 @@ var Es = "UNIVERSAL_STORE:", G = {
2362
2362
  "UniversalStore is not constructable - use UniversalStore.create() instead"
2363
2363
  );
2364
2364
  if (b.isInternalConstructing = !1, this.id = t.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.
2365
- actorType = t.leader ? b.ActorType.LEADER : b.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${Es}${this.id}`,
2365
+ actorType = t.leader ? b.ActorType.LEADER : b.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${vs}${this.id}`,
2366
2366
  this.debug("constructor", {
2367
2367
  options: t,
2368
2368
  environmentOverrides: r,
@@ -2706,27 +2706,27 @@ var we = /* @__PURE__ */ n((e, t) => {
2706
2706
  }, "useUniversalStore");
2707
2707
 
2708
2708
  // src/manager-api/stores/status.ts
2709
- var vs = Ro({
2709
+ var _s = wo({
2710
2710
  universalStatusStore: W.create({
2711
- ...To,
2711
+ ...Ro,
2712
2712
  leader: globalThis.CONFIG_TYPE === "PRODUCTION"
2713
2713
  }),
2714
2714
  useUniversalStore: we,
2715
2715
  environment: "manager"
2716
- }), { fullStatusStore: ht, getStatusStoreByTypeId: _s, useStatusStore: Is, universalStatusStore: xs } = vs;
2716
+ }), { fullStatusStore: ht, getStatusStoreByTypeId: Is, useStatusStore: xs, universalStatusStore: Ts } = _s;
2717
2717
 
2718
2718
  // src/manager-api/modules/stories.ts
2719
- var { fetch: Hs } = zs, qs = "./index.json", Ys = ["enableShortcuts", "theme", "showRoots"];
2719
+ var { fetch: qs } = Hs, Ys = "./index.json", Js = ["enableShortcuts", "theme", "showRoots"];
2720
2720
  function fr(e) {
2721
2721
  if (!e || typeof e == "string")
2722
2722
  return e;
2723
2723
  let t = { ...e };
2724
- return Ys.forEach((r) => {
2724
+ return Js.forEach((r) => {
2725
2725
  r in t && delete t[r];
2726
2726
  }), t;
2727
2727
  }
2728
2728
  n(fr, "removeRemovedOptions");
2729
- var Js = /* @__PURE__ */ n(({
2729
+ var Xs = /* @__PURE__ */ n(({
2730
2730
  fullAPI: e,
2731
2731
  store: t,
2732
2732
  navigate: r,
@@ -2808,7 +2808,7 @@ var Js = /* @__PURE__ */ n(({
2808
2808
  if (g[P])
2809
2809
  c.selectStory(P, void 0, d);
2810
2810
  else {
2811
- let E = g[wo(l)];
2811
+ let E = g[Oo(l)];
2812
2812
  if (E?.type === "component") {
2813
2813
  let v = E.children.find((I) => g[I].name === p);
2814
2814
  v && c.selectStory(v, void 0, d);
@@ -2819,7 +2819,7 @@ var Js = /* @__PURE__ */ n(({
2819
2819
  c.selectStory(P, void 0, d);
2820
2820
  }
2821
2821
  else {
2822
- let P = l ? g[l] || g[wo(l)] : g[S];
2822
+ let P = l ? g[l] || g[Oo(l)] : g[S];
2823
2823
  if (!P)
2824
2824
  throw new Error(`Unknown id or title: '${l}'`);
2825
2825
  t.setState({
@@ -2851,16 +2851,16 @@ var Js = /* @__PURE__ */ n(({
2851
2851
  },
2852
2852
  findSiblingStoryId(l, p, d, f) {
2853
2853
  if (f) {
2854
- let h = po(p), g = h.findIndex((S) => S.includes(l));
2854
+ let h = fo(p), g = h.findIndex((S) => S.includes(l));
2855
2855
  return g === h.length - 1 && d > 0 || g === 0 && d < 0 ? void 0 : h[g + d] ? h[g + d][0] : void 0;
2856
2856
  }
2857
- let y = fo(p), m = y.indexOf(l);
2857
+ let y = yo(p), m = y.indexOf(l);
2858
2858
  if (!(m === y.length - 1 && d > 0) && !(m === 0 && d < 0))
2859
2859
  return y[m + d];
2860
2860
  },
2861
2861
  updateStoryArgs: /* @__PURE__ */ n((l, p) => {
2862
2862
  let { id: d, refId: f } = l;
2863
- o.channel?.emit(Ks, {
2863
+ o.channel?.emit(zs, {
2864
2864
  storyId: d,
2865
2865
  updatedArgs: p,
2866
2866
  options: { target: f }
@@ -2868,7 +2868,7 @@ var Js = /* @__PURE__ */ n(({
2868
2868
  }, "updateStoryArgs"),
2869
2869
  resetStoryArgs: /* @__PURE__ */ n((l, p) => {
2870
2870
  let { id: d, refId: f } = l;
2871
- o.channel?.emit(Ns, {
2871
+ o.channel?.emit(ks, {
2872
2872
  storyId: d,
2873
2873
  argNames: p,
2874
2874
  options: { target: f }
@@ -2876,12 +2876,12 @@ var Js = /* @__PURE__ */ n(({
2876
2876
  }, "resetStoryArgs"),
2877
2877
  fetchIndex: /* @__PURE__ */ n(async () => {
2878
2878
  try {
2879
- let l = await Hs(qs);
2879
+ let l = await qs(Ys);
2880
2880
  if (l.status !== 200)
2881
2881
  throw new Error(await l.text());
2882
2882
  let p = await l.json();
2883
2883
  if (p.v < 3) {
2884
- Ts.warn(`Skipping story index with version v${p.v}, awaiting SET_STORIES.`);
2884
+ Rs.warn(`Skipping story index with version v${p.v}, awaiting SET_STORIES.`);
2885
2885
  return;
2886
2886
  }
2887
2887
  await c.setIndex(p);
@@ -2966,11 +2966,11 @@ var Js = /* @__PURE__ */ n(({
2966
2966
  let f = await e.getRefs();
2967
2967
  Object.entries(f).forEach(([y, { internal_index: m, ...h }]) => {
2968
2968
  e.setRef(y, { ...h, storyIndex: m }, !0);
2969
- }), o.channel?.emit(Ms, { id: l });
2969
+ }), o.channel?.emit(Us, { id: l });
2970
2970
  }, "experimental_setFilter")
2971
2971
  };
2972
2972
  o.channel?.on(
2973
- Vs,
2973
+ Ks,
2974
2974
  /* @__PURE__ */ n(function({
2975
2975
  storyId: p,
2976
2976
  viewMode: d
@@ -2979,23 +2979,23 @@ var Js = /* @__PURE__ */ n(({
2979
2979
  if (f === "local") {
2980
2980
  let y = t.getState(), m = y.path === "/" || y.viewMode === "story" || y.viewMode === "docs", h = y.viewMode && y.storyId, g = y.viewMode !==
2981
2981
  d || y.storyId !== p, { type: S } = y.index?.[y.storyId] || {};
2982
- m && (h && g && !(S === "root" || S === "component" || S === "group") ? o.channel?.emit(Ds, {
2982
+ m && (h && g && !(S === "root" || S === "component" || S === "group") ? o.channel?.emit(Ms, {
2983
2983
  storyId: y.storyId,
2984
2984
  viewMode: y.viewMode
2985
2985
  }) : g && r(`/${d}/${p}`));
2986
2986
  }
2987
2987
  }, "handler")
2988
- ), o.channel?.on(ws, /* @__PURE__ */ n(function() {
2988
+ ), o.channel?.on(Os, /* @__PURE__ */ n(function() {
2989
2989
  let { ref: p } = j(this, e);
2990
2990
  c.setPreviewInitialized(p);
2991
- }, "handler")), o.channel?.on(Gs, /* @__PURE__ */ n(function() {
2991
+ }, "handler")), o.channel?.on(Ws, /* @__PURE__ */ n(function() {
2992
2992
  let { sourceType: p } = j(this, e);
2993
2993
  if (p === "local") {
2994
2994
  let d = c.getCurrentParameter("options");
2995
2995
  d && e.setOptions(fr(d));
2996
2996
  }
2997
2997
  }, "handler")), o.channel?.on(
2998
- Bs,
2998
+ Vs,
2999
2999
  /* @__PURE__ */ n(function({ id: p, ...d }) {
3000
3000
  let { ref: f, sourceType: y } = j(this, e);
3001
3001
  if (c.updateStory(p, { ...d, prepared: !0 }, f), !f && !t.getState().hasCalledSetOptions) {
@@ -3012,19 +3012,19 @@ var Js = /* @__PURE__ */ n(({
3012
3012
  c.findSiblingStoryId(m, h, -1, !0)
3013
3013
  ])
3014
3014
  ).filter(Boolean);
3015
- o.channel?.emit(Cs, {
3015
+ o.channel?.emit(Ns, {
3016
3016
  ids: S,
3017
3017
  options: { target: g }
3018
3018
  });
3019
3019
  }
3020
3020
  }, "handler")
3021
3021
  ), o.channel?.on(
3022
- Os,
3022
+ Cs,
3023
3023
  /* @__PURE__ */ n(function({ id: p, ...d }) {
3024
3024
  let { ref: f } = j(this, e);
3025
3025
  c.updateStory(p, { ...d, prepared: !0 }, f);
3026
3026
  }, "handler")
3027
- ), o.channel?.on(Us, /* @__PURE__ */ n(function(p) {
3027
+ ), o.channel?.on(Ls, /* @__PURE__ */ n(function(p) {
3028
3028
  let { ref: d } = j(this, e);
3029
3029
  if (d)
3030
3030
  e.setRef(d.id, { ...d, storyIndex: p }, !0);
@@ -3033,14 +3033,14 @@ var Js = /* @__PURE__ */ n(({
3033
3033
  let f = c.getCurrentParameter("options");
3034
3034
  e.setOptions(fr(f));
3035
3035
  }
3036
- }, "handler")), o.channel?.on(Ls, /* @__PURE__ */ n(function(p) {
3037
- let { ref: d } = j(this, e), f = p.v ? uo(p) : p.stories;
3036
+ }, "handler")), o.channel?.on(Fs, /* @__PURE__ */ n(function(p) {
3037
+ let { ref: d } = j(this, e), f = p.v ? lo(p) : p.stories;
3038
3038
  if (d)
3039
3039
  e.setRef(d.id, { ...d, setStoriesData: f }, !0);
3040
3040
  else
3041
3041
  throw new Error("Cannot call SET_STORIES for local frame");
3042
3042
  }, "handler")), o.channel?.on(
3043
- ks,
3043
+ js,
3044
3044
  /* @__PURE__ */ n(function({
3045
3045
  kind: p,
3046
3046
  title: d = p,
@@ -3053,18 +3053,18 @@ var Js = /* @__PURE__ */ n(({
3053
3053
  g ? e.selectStory(m || d, y, { ...h, ref: g.id }) : e.selectStory(m || d, y, h);
3054
3054
  }, "handler")
3055
3055
  ), o.channel?.on(
3056
- Fs,
3056
+ Gs,
3057
3057
  /* @__PURE__ */ n(function({ storyId: p, args: d }) {
3058
3058
  let { ref: f } = j(this, e);
3059
3059
  c.updateStory(p, { args: d }, f);
3060
3060
  }, "handleStoryArgsUpdated")
3061
- ), o.channel?.on(Rs, /* @__PURE__ */ n(function(p) {
3061
+ ), o.channel?.on(ws, /* @__PURE__ */ n(function(p) {
3062
3062
  let { ref: d } = j(this, e);
3063
3063
  c.setPreviewInitialized(d);
3064
- }, "handleConfigError")), o.channel?.on($s, /* @__PURE__ */ n(function(p) {
3064
+ }, "handleConfigError")), o.channel?.on(Bs, /* @__PURE__ */ n(function(p) {
3065
3065
  let { ref: d } = j(this, e);
3066
3066
  c.setPreviewInitialized(d);
3067
- }, "handleConfigError")), o.channel?.on(js, () => {
3067
+ }, "handleConfigError")), o.channel?.on(Ds, () => {
3068
3068
  let l = o.getConfig();
3069
3069
  l?.sidebar?.filters && t.setState({
3070
3070
  filters: {
@@ -3093,7 +3093,7 @@ var Js = /* @__PURE__ */ n(({
3093
3093
  filters: u?.sidebar?.filters || {}
3094
3094
  },
3095
3095
  init: /* @__PURE__ */ n(async () => {
3096
- o.channel?.on(Ws, () => c.fetchIndex()), await c.fetchIndex();
3096
+ o.channel?.on($s, () => c.fetchIndex()), await c.fetchIndex();
3097
3097
  }, "init")
3098
3098
  };
3099
3099
  }, "init");
@@ -3101,23 +3101,23 @@ var Js = /* @__PURE__ */ n(({
3101
3101
  // src/manager-api/modules/url.ts
3102
3102
  var gr = {};
3103
3103
  L(gr, {
3104
- init: () => sa
3104
+ init: () => aa
3105
3105
  });
3106
3106
  import {
3107
- GLOBALS_UPDATED as Xs,
3108
- NAVIGATE_URL as Qs,
3109
- SET_CURRENT_STORY as Zs,
3110
- STORY_ARGS_UPDATED as ea,
3111
- UPDATE_QUERY_PARAMS as ta
3107
+ GLOBALS_UPDATED as Qs,
3108
+ NAVIGATE_URL as Zs,
3109
+ SET_CURRENT_STORY as ea,
3110
+ STORY_ARGS_UPDATED as ta,
3111
+ UPDATE_QUERY_PARAMS as ra
3112
3112
  } from "storybook/internal/core-events";
3113
- import { buildArgsParam as Oo, queryFromLocation as ra } from "storybook/internal/router";
3114
- import { global as oa } from "@storybook/global";
3115
- var { window: mr } = oa, te = /* @__PURE__ */ n((e) => {
3113
+ import { buildArgsParam as Co, queryFromLocation as oa } from "storybook/internal/router";
3114
+ import { global as na } from "@storybook/global";
3115
+ var { window: mr } = na, te = /* @__PURE__ */ n((e) => {
3116
3116
  if (e === "true" || e === "1")
3117
3117
  return !0;
3118
3118
  if (e === "false" || e === "0")
3119
3119
  return !1;
3120
- }, "parseBoolean"), hr, na = /* @__PURE__ */ n(({
3120
+ }, "parseBoolean"), hr, sa = /* @__PURE__ */ n(({
3121
3121
  state: { location: e, path: t, viewMode: r, storyId: o },
3122
3122
  singleStory: s
3123
3123
  }) => {
@@ -3131,7 +3131,7 @@ var { window: mr } = oa, te = /* @__PURE__ */ n((e) => {
3131
3131
  path: d,
3132
3132
  ...f
3133
3133
  // the rest gets passed to the iframe
3134
- } = ra(e), y, m, h;
3134
+ } = oa(e), y, m, h;
3135
3135
  te(i) === !0 ? (y = 0, m = 0, h = 0) : te(i) === !1 && (y = U.layout.navSize, m = U.layout.bottomPanelHeight, h = U.layout.rightPanelWidth),
3136
3136
  s || (te(c) === !0 && (y = U.layout.navSize), te(c) === !1 && (y = 0)), te(a) === !1 && (m = 0, h = 0);
3137
3137
  let g = {
@@ -3144,7 +3144,7 @@ var { window: mr } = oa, te = /* @__PURE__ */ n((e) => {
3144
3144
  enableShortcuts: te(u)
3145
3145
  }, P = l || void 0, E = o, v = F(hr, f) ? hr : f;
3146
3146
  return hr = v, { viewMode: r, layout: g, ui: S, selectedPanel: P, location: e, path: t, customQueryParams: v, storyId: E };
3147
- }, "initialUrlSupport"), sa = /* @__PURE__ */ n((e) => {
3147
+ }, "initialUrlSupport"), aa = /* @__PURE__ */ n((e) => {
3148
3148
  let { store: t, navigate: r, provider: o, fullAPI: s } = e, i = /* @__PURE__ */ n((l, p = {}, d = {}) => {
3149
3149
  let f = Object.entries(p).filter(([, m]) => m).sort(([m], [h]) => m < h ? -1 : 1).map(([m, h]) => `${m}=${h}`), y = [l, ...f].join("&");
3150
3150
  return r(y, d);
@@ -3169,7 +3169,7 @@ var { window: mr } = oa, te = /* @__PURE__ */ n((e) => {
3169
3169
  ...p,
3170
3170
  ...Object.entries(l).reduce((y, [m, h]) => (h !== null && (y[m] = h), y), d)
3171
3171
  };
3172
- F(p, f) || (t.setState({ customQueryParams: f }), o.channel?.emit(ta, f));
3172
+ F(p, f) || (t.setState({ customQueryParams: f }), o.channel?.emit(ra, f));
3173
3173
  },
3174
3174
  applyQueryParams(l, p) {
3175
3175
  let { path: d, hash: f = "", queryParams: y } = a.getUrlState();
@@ -3185,51 +3185,51 @@ var { window: mr } = oa, te = /* @__PURE__ */ n((e) => {
3185
3185
  let y = s.getCurrentStoryData();
3186
3186
  if (y?.type !== "story")
3187
3187
  return;
3188
- let { args: m, initialArgs: h } = y, g = Oo(h, m);
3188
+ let { args: m, initialArgs: h } = y, g = Co(h, m);
3189
3189
  i(`${l}${p}`, { ...d, args: g }, { replace: !0 }), a.setQueryParams({ args: g });
3190
3190
  }, "updateArgsParam");
3191
- o.channel?.on(Zs, () => c());
3191
+ o.channel?.on(ea, () => c());
3192
3192
  let u;
3193
- return o.channel?.on(ea, () => {
3193
+ return o.channel?.on(ta, () => {
3194
3194
  "requestIdleCallback" in mr ? (u && mr.cancelIdleCallback(u), u = mr.requestIdleCallback(c, { timeout: 1e3 })) : (u && clearTimeout(u), setTimeout(
3195
3195
  c, 100));
3196
- }), o.channel?.on(Xs, ({ userGlobals: l, initialGlobals: p }) => {
3197
- let { path: d, hash: f = "", queryParams: y } = a.getUrlState(), m = Oo(p, l);
3196
+ }), o.channel?.on(Qs, ({ userGlobals: l, initialGlobals: p }) => {
3197
+ let { path: d, hash: f = "", queryParams: y } = a.getUrlState(), m = Co(p, l);
3198
3198
  i(`${d}${f}`, { ...y, globals: m }, { replace: !0 }), a.setQueryParams({ globals: m });
3199
- }), o.channel?.on(Qs, (l, p) => {
3199
+ }), o.channel?.on(Zs, (l, p) => {
3200
3200
  a.navigateUrl(l, p);
3201
3201
  }), {
3202
3202
  api: a,
3203
- state: na(e)
3203
+ state: sa(e)
3204
3204
  };
3205
3205
  }, "init");
3206
3206
 
3207
3207
  // src/manager-api/modules/versions.ts
3208
3208
  var br = {};
3209
3209
  L(br, {
3210
- init: () => ca
3210
+ init: () => ua
3211
3211
  });
3212
- var ko = Ot(Bt(), 1);
3212
+ var jo = Ot(Bt(), 1);
3213
3213
  import { global as Sr } from "@storybook/global";
3214
3214
  import $ from "semver";
3215
3215
 
3216
3216
  // src/manager-api/version.ts
3217
- var Co = "9.0.0-rc.3";
3217
+ var No = "9.0.0-rc.4";
3218
3218
 
3219
3219
  // src/manager-api/modules/versions.ts
3220
- var { VERSIONCHECK: aa } = Sr, No = (0, ko.default)(1)(() => {
3220
+ var { VERSIONCHECK: ia } = Sr, ko = (0, jo.default)(1)(() => {
3221
3221
  try {
3222
- return { ...JSON.parse(aa).data || {} };
3222
+ return { ...JSON.parse(ia).data || {} };
3223
3223
  } catch {
3224
3224
  return {};
3225
3225
  }
3226
- }), ia = /* @__PURE__ */ n((e) => e.includes("vue") ? "vue" : e, "normalizeRendererName"), ca = /* @__PURE__ */ n(({ store: e }) => {
3226
+ }), ca = /* @__PURE__ */ n((e) => e.includes("vue") ? "vue" : e, "normalizeRendererName"), ua = /* @__PURE__ */ n(({ store: e }) => {
3227
3227
  let { dismissedVersionNotification: t } = e.getState(), r = {
3228
3228
  versions: {
3229
3229
  current: {
3230
- version: Co
3230
+ version: No
3231
3231
  },
3232
- ...No()
3232
+ ...ko()
3233
3233
  },
3234
3234
  dismissedVersionNotification: t
3235
3235
  }, o = {
@@ -3258,7 +3258,7 @@ var { VERSIONCHECK: aa } = Sr, No = (0, ko.default)(1)(() => {
3258
3258
  let [d, f] = i?.split("#") || [];
3259
3259
  if (d && (p += `${d}/`), c && typeof Sr.STORYBOOK_RENDERER < "u") {
3260
3260
  let y = Sr.STORYBOOK_RENDERER;
3261
- y && (p += `?renderer=${ia(y)}`);
3261
+ y && (p += `?renderer=${ca(y)}`);
3262
3262
  }
3263
3263
  return f && (p += `#${f}`), p;
3264
3264
  }, "getDocsUrl"),
@@ -3276,7 +3276,7 @@ var { VERSIONCHECK: aa } = Sr, No = (0, ko.default)(1)(() => {
3276
3276
  }, "versionUpdateAvailable")
3277
3277
  };
3278
3278
  return { init: /* @__PURE__ */ n(async () => {
3279
- let { versions: i = {} } = e.getState(), { latest: a, next: c } = No();
3279
+ let { versions: i = {} } = e.getState(), { latest: a, next: c } = ko();
3280
3280
  await e.setState({
3281
3281
  versions: { ...i, latest: a, next: c }
3282
3282
  });
@@ -3284,11 +3284,11 @@ var { VERSIONCHECK: aa } = Sr, No = (0, ko.default)(1)(() => {
3284
3284
  }, "init");
3285
3285
 
3286
3286
  // src/manager-api/modules/whatsnew.tsx
3287
- var Pr = {};
3288
- L(Pr, {
3287
+ var Ar = {};
3288
+ L(Ar, {
3289
3289
  init: () => ha
3290
3290
  });
3291
- import ua from "react";
3291
+ import Pr from "react";
3292
3292
  import {
3293
3293
  REQUEST_WHATS_NEW_DATA as la,
3294
3294
  RESULT_WHATS_NEW_DATA as pa,
@@ -3296,8 +3296,29 @@ import {
3296
3296
  TOGGLE_WHATS_NEW_NOTIFICATIONS as fa
3297
3297
  } from "storybook/internal/core-events";
3298
3298
  import { global as ya } from "@storybook/global";
3299
- import { StorybookIcon as ma } from "@storybook/icons";
3300
- var jo = "whats-new", ha = /* @__PURE__ */ n(({ fullAPI: e, store: t, provider: r }) => {
3299
+ var Do = "whats-new", ma = /* @__PURE__ */ n(({ color: e = "currentColor", size: t = 14 }) => /* @__PURE__ */ Pr.createElement(
3300
+ "svg",
3301
+ {
3302
+ width: t,
3303
+ height: t,
3304
+ viewBox: "0 0 14 14",
3305
+ fill: "none",
3306
+ xmlns: "http://www.w3.org/2000/svg"
3307
+ },
3308
+ /* @__PURE__ */ Pr.createElement(
3309
+ "path",
3310
+ {
3311
+ fillRule: "evenodd",
3312
+ clipRule: "evenodd",
3313
+ 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-.\
3314
+ 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\
3315
+ .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 \
3316
+ 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.6\
3317
+ 24-.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",
3318
+ fill: e
3319
+ }
3320
+ )
3321
+ ), "StorybookIcon"), ha = /* @__PURE__ */ n(({ fullAPI: e, store: t, provider: r }) => {
3301
3322
  let o = {
3302
3323
  whatsNewData: void 0
3303
3324
  };
@@ -3311,7 +3332,7 @@ var jo = "whats-new", ha = /* @__PURE__ */ n(({ fullAPI: e, store: t, provider:
3311
3332
  },
3312
3333
  whatsNewHasBeenRead() {
3313
3334
  o.whatsNewData?.status === "SUCCESS" && (c({ lastReadPost: o.whatsNewData.url }), s({ ...o.whatsNewData, postIsRead: !0 }), e.clearNotification(
3314
- jo));
3335
+ Do));
3315
3336
  },
3316
3337
  toggleWhatsNewNotifications() {
3317
3338
  o.whatsNewData?.status === "SUCCESS" && (s({
@@ -3342,13 +3363,13 @@ var jo = "whats-new", ha = /* @__PURE__ */ n(({ fullAPI: e, store: t, provider:
3342
3363
  let p = e.getUrlState();
3343
3364
  !(p?.path === "/onboarding" || p.queryParams?.onboarding === "true") && l.status === "SUCCESS" && !l.disableWhatsNewNotifications && l.showNotification &&
3344
3365
  e.addNotification({
3345
- id: jo,
3366
+ id: Do,
3346
3367
  link: "/settings/whats-new",
3347
3368
  content: {
3348
3369
  headline: l.title,
3349
3370
  subHeadline: "Learn what's new in Storybook"
3350
3371
  },
3351
- icon: /* @__PURE__ */ ua.createElement(ma, null),
3372
+ icon: /* @__PURE__ */ Pr.createElement(ma, null),
3352
3373
  onClear({ dismissed: f }) {
3353
3374
  f && c({ lastDismissedPost: l.url });
3354
3375
  }
@@ -3357,23 +3378,23 @@ var jo = "whats-new", ha = /* @__PURE__ */ n(({ fullAPI: e, store: t, provider:
3357
3378
  }, "init");
3358
3379
 
3359
3380
  // src/manager-api/store.ts
3360
- var ye = Ot(Do(), 1);
3381
+ var ye = Ot(Mo(), 1);
3361
3382
 
3362
3383
  // ../node_modules/telejson/dist/chunk-EAFQLD22.mjs
3363
- var ga = Object.create, Mo = Object.defineProperty, Sa = Object.getOwnPropertyDescriptor, Uo = Object.getOwnPropertyNames, ba = Object.getPrototypeOf,
3384
+ var ga = Object.create, Uo = Object.defineProperty, Sa = Object.getOwnPropertyDescriptor, Lo = Object.getOwnPropertyNames, ba = Object.getPrototypeOf,
3364
3385
  Pa = Object.prototype.hasOwnProperty, A = /* @__PURE__ */ n((e, t) => /* @__PURE__ */ n(function() {
3365
- return t || (0, e[Uo(e)[0]])((t = { exports: {} }).exports, t), t.exports;
3386
+ return t || (0, e[Lo(e)[0]])((t = { exports: {} }).exports, t), t.exports;
3366
3387
  }, "__require"), "__commonJS"), Aa = /* @__PURE__ */ n((e, t, r, o) => {
3367
3388
  if (t && typeof t == "object" || typeof t == "function")
3368
- for (let s of Uo(t))
3369
- !Pa.call(e, s) && s !== r && Mo(e, s, { get: /* @__PURE__ */ n(() => t[s], "get"), enumerable: !(o = Sa(t, s)) || o.enumerable });
3389
+ for (let s of Lo(t))
3390
+ !Pa.call(e, s) && s !== r && Uo(e, s, { get: /* @__PURE__ */ n(() => t[s], "get"), enumerable: !(o = Sa(t, s)) || o.enumerable });
3370
3391
  return e;
3371
3392
  }, "__copyProps"), Pt = /* @__PURE__ */ n((e, t, r) => (r = e != null ? ga(ba(e)) : {}, Aa(
3372
3393
  // If the importer is in node compatibility mode or this is not an ESM
3373
3394
  // file that has been converted to a CommonJS file using a Babel-
3374
3395
  // compatible transform (i.e. "__esModule" has not been set), then set
3375
3396
  // "default" to the CommonJS "module.exports" for node compatibility.
3376
- t || !e || !e.__esModule ? Mo(r, "default", { value: e, enumerable: !0 }) : r,
3397
+ t || !e || !e.__esModule ? Uo(r, "default", { value: e, enumerable: !0 }) : r,
3377
3398
  e
3378
3399
  )), "__toESM"), Ea = [
3379
3400
  "bubbles",
@@ -3390,7 +3411,7 @@ Pa = Object.prototype.hasOwnProperty, A = /* @__PURE__ */ n((e, t) => /* @__PURE
3390
3411
  "timeStamp",
3391
3412
  "type"
3392
3413
  ], va = ["detail"];
3393
- function Lo(e) {
3414
+ function Fo(e) {
3394
3415
  let t = Ea.filter((r) => e[r] !== void 0).reduce((r, o) => (r[o] = e[o], r), {});
3395
3416
  if (e instanceof CustomEvent)
3396
3417
  for (let r of va.filter(
@@ -3399,10 +3420,10 @@ function Lo(e) {
3399
3420
  t[r] = e[r];
3400
3421
  return t;
3401
3422
  }
3402
- n(Lo, "extractEventHiddenProperties");
3423
+ n(Fo, "extractEventHiddenProperties");
3403
3424
 
3404
3425
  // ../node_modules/telejson/dist/index.mjs
3405
- var Vo = A({
3426
+ var Ko = A({
3406
3427
  "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e, t) {
3407
3428
  "use strict";
3408
3429
  t.exports = Object;
@@ -3432,7 +3453,7 @@ var Vo = A({
3432
3453
  "use strict";
3433
3454
  t.exports = SyntaxError;
3434
3455
  }
3435
- }), Er = A({
3456
+ }), vr = A({
3436
3457
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e, t) {
3437
3458
  "use strict";
3438
3459
  t.exports = TypeError;
@@ -3492,7 +3513,7 @@ var Vo = A({
3492
3513
  "use strict";
3493
3514
  t.exports = Object.getOwnPropertyDescriptor;
3494
3515
  }
3495
- }), vr = A({
3516
+ }), _r = A({
3496
3517
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e, t) {
3497
3518
  "use strict";
3498
3519
  var r = La();
@@ -3516,7 +3537,7 @@ var Vo = A({
3516
3537
  }
3517
3538
  t.exports = r;
3518
3539
  }
3519
- }), Ko = A({
3540
+ }), zo = A({
3520
3541
  "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e, t) {
3521
3542
  "use strict";
3522
3543
  t.exports = /* @__PURE__ */ n(function() {
@@ -3549,24 +3570,24 @@ Symbol]")
3549
3570
  return !0;
3550
3571
  }, "hasSymbols");
3551
3572
  }
3552
- }), zo = A({
3573
+ }), Ho = A({
3553
3574
  "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e, t) {
3554
3575
  "use strict";
3555
- var r = typeof Symbol < "u" && Symbol, o = Ko();
3576
+ var r = typeof Symbol < "u" && Symbol, o = zo();
3556
3577
  t.exports = /* @__PURE__ */ n(function() {
3557
3578
  return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
3558
3579
  o();
3559
3580
  }, "hasNativeSymbols");
3560
3581
  }
3561
- }), Ho = A({
3582
+ }), qo = A({
3562
3583
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e, t) {
3563
3584
  "use strict";
3564
3585
  t.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
3565
3586
  }
3566
- }), qo = A({
3587
+ }), Yo = A({
3567
3588
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e, t) {
3568
3589
  "use strict";
3569
- var r = Vo();
3590
+ var r = Ko();
3570
3591
  t.exports = r.getPrototypeOf || null;
3571
3592
  }
3572
3593
  }), Ga = A({
@@ -3620,12 +3641,12 @@ Symbol]")
3620
3641
  var r = Ga();
3621
3642
  t.exports = Function.prototype.bind || r;
3622
3643
  }
3623
- }), _r = A({
3644
+ }), Ir = A({
3624
3645
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e, t) {
3625
3646
  "use strict";
3626
3647
  t.exports = Function.prototype.call;
3627
3648
  }
3628
- }), Yo = A({
3649
+ }), Jo = A({
3629
3650
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e, t) {
3630
3651
  "use strict";
3631
3652
  t.exports = Function.prototype.apply;
@@ -3638,13 +3659,13 @@ Symbol]")
3638
3659
  }), $a = A({
3639
3660
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e, t) {
3640
3661
  "use strict";
3641
- var r = At(), o = Yo(), s = _r(), i = Wa();
3662
+ var r = At(), o = Jo(), s = Ir(), i = Wa();
3642
3663
  t.exports = i || r.call(s, o);
3643
3664
  }
3644
- }), Jo = A({
3665
+ }), Xo = A({
3645
3666
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e, t) {
3646
3667
  "use strict";
3647
- var r = At(), o = Er(), s = _r(), i = $a();
3668
+ var r = At(), o = vr(), s = Ir(), i = $a();
3648
3669
  t.exports = /* @__PURE__ */ n(function(c) {
3649
3670
  if (c.length < 1 || typeof c[0] != "function")
3650
3671
  throw new o("a function is required");
@@ -3654,7 +3675,7 @@ Symbol]")
3654
3675
  }), Ba = A({
3655
3676
  "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e, t) {
3656
3677
  "use strict";
3657
- var r = Jo(), o = vr(), s;
3678
+ var r = Xo(), o = _r(), s;
3658
3679
  try {
3659
3680
  s = /** @type {{ __proto__?: typeof Array.prototype }} */
3660
3681
  [].__proto__ === Array.prototype;
@@ -3677,7 +3698,7 @@ Symbol]")
3677
3698
  }), Va = A({
3678
3699
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e, t) {
3679
3700
  "use strict";
3680
- var r = Ho(), o = qo(), s = Ba();
3701
+ var r = qo(), o = Yo(), s = Ba();
3681
3702
  t.exports = r ? /* @__PURE__ */ n(function(a) {
3682
3703
  return r(a);
3683
3704
  }, "getProto") : o ? /* @__PURE__ */ n(function(a) {
@@ -3688,7 +3709,7 @@ Symbol]")
3688
3709
  return s(a);
3689
3710
  }, "getProto") : null;
3690
3711
  }
3691
- }), Xo = A({
3712
+ }), Qo = A({
3692
3713
  "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e, t) {
3693
3714
  "use strict";
3694
3715
  var r = Function.prototype.call, o = Object.prototype.hasOwnProperty, s = At();
@@ -3697,13 +3718,13 @@ Symbol]")
3697
3718
  }), Ka = A({
3698
3719
  "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e, t) {
3699
3720
  "use strict";
3700
- var r, o = Vo(), s = _a(), i = Ia(), a = xa(), c = Ta(), u = Ra(), l = Er(), p = wa(), d = Oa(), f = Ca(), y = Na(), m = ka(), h = ja(),
3721
+ var r, o = Ko(), s = _a(), i = Ia(), a = xa(), c = Ta(), u = Ra(), l = vr(), p = wa(), d = Oa(), f = Ca(), y = Na(), m = ka(), h = ja(),
3701
3722
  g = Da(), S = Ua(), P = Function, E = /* @__PURE__ */ n(function(B) {
3702
3723
  try {
3703
3724
  return P('"use strict"; return (' + B + ").constructor;")();
3704
3725
  } catch {
3705
3726
  }
3706
- }, "getEvalledConstructor"), v = vr(), I = Fa(), _ = /* @__PURE__ */ n(function() {
3727
+ }, "getEvalledConstructor"), v = _r(), I = Fa(), _ = /* @__PURE__ */ n(function() {
3707
3728
  throw new l();
3708
3729
  }, "throwTypeError"), w = v ? function() {
3709
3730
  try {
@@ -3715,7 +3736,7 @@ Symbol]")
3715
3736
  return _;
3716
3737
  }
3717
3738
  }
3718
- }() : _, C = zo()(), x = Va(), he = qo(), bn = Ho(), Ur = Yo(), ge = _r(), re = {}, Pn = typeof Uint8Array > "u" || !x ? r : x(Uint8Array),
3739
+ }() : _, C = Ho()(), x = Va(), he = Yo(), Pn = qo(), Lr = Jo(), ge = Ir(), re = {}, An = typeof Uint8Array > "u" || !x ? r : x(Uint8Array),
3719
3740
  X = {
3720
3741
  __proto__: null,
3721
3742
  "%AggregateError%": typeof AggregateError > "u" ? r : AggregateError,
@@ -3777,7 +3798,7 @@ Symbol]")
3777
3798
  "%Symbol%": C ? Symbol : r,
3778
3799
  "%SyntaxError%": u,
3779
3800
  "%ThrowTypeError%": w,
3780
- "%TypedArray%": Pn,
3801
+ "%TypedArray%": An,
3781
3802
  "%TypeError%": l,
3782
3803
  "%Uint8Array%": typeof Uint8Array > "u" ? r : Uint8Array,
3783
3804
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? r : Uint8ClampedArray,
@@ -3788,7 +3809,7 @@ Symbol]")
3788
3809
  "%WeakRef%": typeof WeakRef > "u" ? r : WeakRef,
3789
3810
  "%WeakSet%": typeof WeakSet > "u" ? r : WeakSet,
3790
3811
  "%Function.prototype.call%": ge,
3791
- "%Function.prototype.apply%": Ur,
3812
+ "%Function.prototype.apply%": Lr,
3792
3813
  "%Object.defineProperty%": I,
3793
3814
  "%Object.getPrototypeOf%": he,
3794
3815
  "%Math.abs%": d,
@@ -3798,15 +3819,15 @@ Symbol]")
3798
3819
  "%Math.pow%": h,
3799
3820
  "%Math.round%": g,
3800
3821
  "%Math.sign%": S,
3801
- "%Reflect.getPrototypeOf%": bn
3822
+ "%Reflect.getPrototypeOf%": Pn
3802
3823
  };
3803
3824
  if (x)
3804
3825
  try {
3805
3826
  null.error;
3806
3827
  } catch (B) {
3807
- Lr = x(x(B)), X["%Error.prototype%"] = Lr;
3828
+ Fr = x(x(B)), X["%Error.prototype%"] = Fr;
3808
3829
  }
3809
- var Lr, An = /* @__PURE__ */ n(function B(T) {
3830
+ var Fr, En = /* @__PURE__ */ n(function B(T) {
3810
3831
  var O;
3811
3832
  if (T === "%AsyncFunction%")
3812
3833
  O = E("async function () {}");
@@ -3822,7 +3843,7 @@ Symbol]")
3822
3843
  N && x && (O = x(N.prototype));
3823
3844
  }
3824
3845
  return X[T] = O, O;
3825
- }, "doEval2"), Fr = {
3846
+ }, "doEval2"), Gr = {
3826
3847
  __proto__: null,
3827
3848
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
3828
3849
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -3875,23 +3896,23 @@ Symbol]")
3875
3896
  "%URIErrorPrototype%": ["URIError", "prototype"],
3876
3897
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
3877
3898
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
3878
- }, Se = At(), je = Xo(), En = Se.call(ge, Array.prototype.concat), vn = Se.call(Ur, Array.prototype.splice), Gr = Se.call(ge, String.prototype.
3879
- replace), De = Se.call(ge, String.prototype.slice), _n = Se.call(ge, RegExp.prototype.exec), In = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
3880
- xn = /\\(\\)?/g, Tn = /* @__PURE__ */ n(function(T) {
3899
+ }, Se = At(), je = Qo(), vn = Se.call(ge, Array.prototype.concat), _n = Se.call(Lr, Array.prototype.splice), Wr = Se.call(ge, String.prototype.
3900
+ replace), De = Se.call(ge, String.prototype.slice), In = Se.call(ge, RegExp.prototype.exec), xn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
3901
+ Tn = /\\(\\)?/g, Rn = /* @__PURE__ */ n(function(T) {
3881
3902
  var O = De(T, 0, 1), R = De(T, -1);
3882
3903
  if (O === "%" && R !== "%")
3883
3904
  throw new u("invalid intrinsic syntax, expected closing `%`");
3884
3905
  if (R === "%" && O !== "%")
3885
3906
  throw new u("invalid intrinsic syntax, expected opening `%`");
3886
3907
  var N = [];
3887
- return Gr(T, In, function(V, oe, D, Me) {
3888
- N[N.length] = D ? Gr(Me, xn, "$1") : oe || V;
3908
+ return Wr(T, xn, function(V, oe, D, Me) {
3909
+ N[N.length] = D ? Wr(Me, Tn, "$1") : oe || V;
3889
3910
  }), N;
3890
- }, "stringToPath3"), Rn = /* @__PURE__ */ n(function(T, O) {
3911
+ }, "stringToPath3"), wn = /* @__PURE__ */ n(function(T, O) {
3891
3912
  var R = T, N;
3892
- if (je(Fr, R) && (N = Fr[R], R = "%" + N[0] + "%"), je(X, R)) {
3913
+ if (je(Gr, R) && (N = Gr[R], R = "%" + N[0] + "%"), je(X, R)) {
3893
3914
  var V = X[R];
3894
- if (V === re && (V = An(R)), typeof V > "u" && !O)
3915
+ if (V === re && (V = En(R)), typeof V > "u" && !O)
3895
3916
  throw new l("intrinsic " + T + " exists, but is not available. Please file an issue!");
3896
3917
  return {
3897
3918
  alias: N,
@@ -3906,10 +3927,10 @@ Symbol]")
3906
3927
  throw new l("intrinsic name must be a non-empty string");
3907
3928
  if (arguments.length > 1 && typeof O != "boolean")
3908
3929
  throw new l('"allowMissing" argument must be a boolean');
3909
- if (_n(/^%?[^%]*%?$/, T) === null)
3930
+ if (In(/^%?[^%]*%?$/, T) === null)
3910
3931
  throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3911
- var R = Tn(T), N = R.length > 0 ? R[0] : "", V = Rn("%" + N + "%", O), oe = V.name, D = V.value, Me = !1, wt = V.alias;
3912
- wt && (N = wt[0], vn(R, En([0, 1], wt)));
3932
+ var R = Rn(T), N = R.length > 0 ? R[0] : "", V = wn("%" + N + "%", O), oe = V.name, D = V.value, Me = !1, wt = V.alias;
3933
+ wt && (N = wt[0], _n(R, vn([0, 1], wt)));
3913
3934
  for (var Ue = 1, be = !0; Ue < R.length; Ue += 1) {
3914
3935
  var H = R[Ue], Le = De(H, 0, 1), Fe = De(H, -1);
3915
3936
  if ((Le === '"' || Le === "'" || Le === "`" || Fe === '"' || Fe === "'" || Fe === "`") && Le !== Fe)
@@ -3933,10 +3954,10 @@ Symbol]")
3933
3954
  return D;
3934
3955
  }, "GetIntrinsic");
3935
3956
  }
3936
- }), Ir = A({
3957
+ }), xr = A({
3937
3958
  "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e, t) {
3938
3959
  "use strict";
3939
- var r = Ka(), o = Jo(), s = o([r("%String.prototype.indexOf%")]);
3960
+ var r = Ka(), o = Xo(), s = o([r("%String.prototype.indexOf%")]);
3940
3961
  t.exports = /* @__PURE__ */ n(function(a, c) {
3941
3962
  var u = (
3942
3963
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
@@ -3951,15 +3972,15 @@ Symbol]")
3951
3972
  }), za = A({
3952
3973
  "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e, t) {
3953
3974
  "use strict";
3954
- var r = Ko();
3975
+ var r = zo();
3955
3976
  t.exports = /* @__PURE__ */ n(function() {
3956
3977
  return r() && !!Symbol.toStringTag;
3957
3978
  }, "hasToStringTagShams");
3958
3979
  }
3959
- }), Qo = A({
3980
+ }), Zo = A({
3960
3981
  "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e, t) {
3961
3982
  "use strict";
3962
- var r = Ir(), o = za()(), s = Xo(), i = vr(), a;
3983
+ var r = xr(), o = za()(), s = Qo(), i = _r(), a;
3963
3984
  o ? (c = r("RegExp.prototype.exec"), u = {}, l = /* @__PURE__ */ n(function() {
3964
3985
  throw u;
3965
3986
  }, "throwRegexMarker"), p = {
@@ -4010,7 +4031,7 @@ Symbol]")
4010
4031
  }), qa = A({
4011
4032
  "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e, t) {
4012
4033
  "use strict";
4013
- var r = Ir(), o = Qo(), s = r("RegExp.prototype.exec"), i = Er();
4034
+ var r = xr(), o = Zo(), s = r("RegExp.prototype.exec"), i = vr();
4014
4035
  t.exports = /* @__PURE__ */ n(function(c) {
4015
4036
  if (!o(c))
4016
4037
  throw new i("`regex` must be a RegExp");
@@ -4022,7 +4043,7 @@ Symbol]")
4022
4043
  }), Ya = A({
4023
4044
  "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e, t) {
4024
4045
  "use strict";
4025
- var r = Ir(), o = r("Object.prototype.toString"), s = zo()(), i = qa();
4046
+ var r = xr(), o = r("Object.prototype.toString"), s = Ho()(), i = qa();
4026
4047
  s ? (a = r("Symbol.prototype.toString"), c = i(/^Symbol\(.*\)$/), u = /* @__PURE__ */ n(function(p) {
4027
4048
  return typeof p.valueOf() != "symbol" ? !1 : c(a(p));
4028
4049
  }, "isRealSymbolObject"), t.exports = /* @__PURE__ */ n(function(p) {
@@ -4040,14 +4061,14 @@ Symbol]")
4040
4061
  }, "isSymbol3");
4041
4062
  var a, c, u;
4042
4063
  }
4043
- }), Ja = Pt(Qo()), Xa = Pt(Ha()), Qa = Pt(Ya());
4064
+ }), Ja = Pt(Zo()), Xa = Pt(Ha()), Qa = Pt(Ya());
4044
4065
  function Za(e) {
4045
4066
  return e != null && typeof e == "object" && Array.isArray(e) === !1;
4046
4067
  }
4047
4068
  n(Za, "isObject");
4048
4069
  var ei = typeof global == "object" && global && global.Object === Object && global, ti = ei, ri = typeof self == "object" && self && self.Object ===
4049
- Object && self, oi = ti || ri || Function("return this")(), xr = oi, ni = xr.Symbol, le = ni, Zo = Object.prototype, si = Zo.hasOwnProperty,
4050
- ai = Zo.toString, Oe = le ? le.toStringTag : void 0;
4070
+ Object && self, oi = ti || ri || Function("return this")(), Tr = oi, ni = Tr.Symbol, le = ni, en = Object.prototype, si = en.hasOwnProperty,
4071
+ ai = en.toString, Oe = le ? le.toStringTag : void 0;
4051
4072
  function ii(e) {
4052
4073
  var t = si.call(e, Oe), r = e[Oe];
4053
4074
  try {
@@ -4064,60 +4085,60 @@ function pi(e) {
4064
4085
  return li.call(e);
4065
4086
  }
4066
4087
  n(pi, "objectToString");
4067
- var di = pi, fi = "[object Null]", yi = "[object Undefined]", Fo = le ? le.toStringTag : void 0;
4088
+ var di = pi, fi = "[object Null]", yi = "[object Undefined]", Go = le ? le.toStringTag : void 0;
4068
4089
  function mi(e) {
4069
- return e == null ? e === void 0 ? yi : fi : Fo && Fo in Object(e) ? ci(e) : di(e);
4090
+ return e == null ? e === void 0 ? yi : fi : Go && Go in Object(e) ? ci(e) : di(e);
4070
4091
  }
4071
4092
  n(mi, "baseGetTag");
4072
- var en = mi;
4093
+ var tn = mi;
4073
4094
  function hi(e) {
4074
4095
  return e != null && typeof e == "object";
4075
4096
  }
4076
4097
  n(hi, "isObjectLike");
4077
4098
  var gi = hi, Si = "[object Symbol]";
4078
4099
  function bi(e) {
4079
- return typeof e == "symbol" || gi(e) && en(e) == Si;
4100
+ return typeof e == "symbol" || gi(e) && tn(e) == Si;
4080
4101
  }
4081
4102
  n(bi, "isSymbol");
4082
- var Tr = bi;
4103
+ var Rr = bi;
4083
4104
  function Pi(e, t) {
4084
4105
  for (var r = -1, o = e == null ? 0 : e.length, s = Array(o); ++r < o; )
4085
4106
  s[r] = t(e[r], r, e);
4086
4107
  return s;
4087
4108
  }
4088
4109
  n(Pi, "arrayMap");
4089
- var Ai = Pi, Ei = Array.isArray, Rr = Ei, vi = 1 / 0, Go = le ? le.prototype : void 0, Wo = Go ? Go.toString : void 0;
4090
- function tn(e) {
4110
+ var Ai = Pi, Ei = Array.isArray, wr = Ei, vi = 1 / 0, Wo = le ? le.prototype : void 0, $o = Wo ? Wo.toString : void 0;
4111
+ function rn(e) {
4091
4112
  if (typeof e == "string")
4092
4113
  return e;
4114
+ if (wr(e))
4115
+ return Ai(e, rn) + "";
4093
4116
  if (Rr(e))
4094
- return Ai(e, tn) + "";
4095
- if (Tr(e))
4096
- return Wo ? Wo.call(e) : "";
4117
+ return $o ? $o.call(e) : "";
4097
4118
  var t = e + "";
4098
4119
  return t == "0" && 1 / e == -vi ? "-0" : t;
4099
4120
  }
4100
- n(tn, "baseToString");
4101
- var _i = tn;
4121
+ n(rn, "baseToString");
4122
+ var _i = rn;
4102
4123
  function Ii(e) {
4103
4124
  var t = typeof e;
4104
4125
  return e != null && (t == "object" || t == "function");
4105
4126
  }
4106
4127
  n(Ii, "isObject2");
4107
- var rn = Ii, xi = "[object AsyncFunction]", Ti = "[object Function]", Ri = "[object GeneratorFunction]", wi = "[object Proxy]";
4128
+ var on = Ii, xi = "[object AsyncFunction]", Ti = "[object Function]", Ri = "[object GeneratorFunction]", wi = "[object Proxy]";
4108
4129
  function Oi(e) {
4109
- if (!rn(e))
4130
+ if (!on(e))
4110
4131
  return !1;
4111
- var t = en(e);
4132
+ var t = tn(e);
4112
4133
  return t == Ti || t == Ri || t == xi || t == wi;
4113
4134
  }
4114
4135
  n(Oi, "isFunction");
4115
- var Ci = Oi, Ni = xr["__core-js_shared__"], Ar = Ni, $o = function() {
4116
- var e = /[^.]+$/.exec(Ar && Ar.keys && Ar.keys.IE_PROTO || "");
4136
+ var Ci = Oi, Ni = Tr["__core-js_shared__"], Er = Ni, Bo = function() {
4137
+ var e = /[^.]+$/.exec(Er && Er.keys && Er.keys.IE_PROTO || "");
4117
4138
  return e ? "Symbol(src)_1." + e : "";
4118
4139
  }();
4119
4140
  function ki(e) {
4120
- return !!$o && $o in e;
4141
+ return !!Bo && Bo in e;
4121
4142
  }
4122
4143
  n(ki, "isMasked");
4123
4144
  var ji = ki, Di = Function.prototype, Mi = Di.toString;
@@ -4140,7 +4161,7 @@ Vi = $i.hasOwnProperty, Ki = RegExp(
4140
4161
  "^" + Bi.call(Vi).replace(Fi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
4141
4162
  );
4142
4163
  function zi(e) {
4143
- if (!rn(e) || ji(e))
4164
+ if (!on(e) || ji(e))
4144
4165
  return !1;
4145
4166
  var t = Ci(e) ? Ki : Gi;
4146
4167
  return t.test(Li(e));
@@ -4157,21 +4178,21 @@ function Ji(e, t) {
4157
4178
  return Hi(r) ? r : void 0;
4158
4179
  }
4159
4180
  n(Ji, "getNative");
4160
- var on = Ji;
4181
+ var nn = Ji;
4161
4182
  function Xi(e, t) {
4162
4183
  return e === t || e !== e && t !== t;
4163
4184
  }
4164
4185
  n(Xi, "eq");
4165
4186
  var Qi = Xi, Zi = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ec = /^\w*$/;
4166
4187
  function tc(e, t) {
4167
- if (Rr(e))
4188
+ if (wr(e))
4168
4189
  return !1;
4169
4190
  var r = typeof e;
4170
- return r == "number" || r == "symbol" || r == "boolean" || e == null || Tr(e) ? !0 : ec.test(e) || !Zi.test(e) || t != null && e in Object(
4191
+ return r == "number" || r == "symbol" || r == "boolean" || e == null || Rr(e) ? !0 : ec.test(e) || !Zi.test(e) || t != null && e in Object(
4171
4192
  t);
4172
4193
  }
4173
4194
  n(tc, "isKey");
4174
- var rc = tc, oc = on(Object, "create"), Ce = oc;
4195
+ var rc = tc, oc = nn(Object, "create"), Ce = oc;
4175
4196
  function nc() {
4176
4197
  this.__data__ = Ce ? Ce(null) : {}, this.size = 0;
4177
4198
  }
@@ -4218,7 +4239,7 @@ pe.prototype.delete = ic;
4218
4239
  pe.prototype.get = dc;
4219
4240
  pe.prototype.has = hc;
4220
4241
  pe.prototype.set = bc;
4221
- var Bo = pe;
4242
+ var Vo = pe;
4222
4243
  function Pc() {
4223
4244
  this.__data__ = [], this.size = 0;
4224
4245
  }
@@ -4271,12 +4292,12 @@ de.prototype.delete = xc;
4271
4292
  de.prototype.get = Rc;
4272
4293
  de.prototype.has = Oc;
4273
4294
  de.prototype.set = Nc;
4274
- var kc = de, jc = on(xr, "Map"), Dc = jc;
4295
+ var kc = de, jc = nn(Tr, "Map"), Dc = jc;
4275
4296
  function Mc() {
4276
4297
  this.size = 0, this.__data__ = {
4277
- hash: new Bo(),
4298
+ hash: new Vo(),
4278
4299
  map: new (Dc || kc)(),
4279
- string: new Bo()
4300
+ string: new Vo()
4280
4301
  };
4281
4302
  }
4282
4303
  n(Mc, "mapCacheClear");
@@ -4328,8 +4349,8 @@ fe.prototype.delete = $c;
4328
4349
  fe.prototype.get = Vc;
4329
4350
  fe.prototype.has = zc;
4330
4351
  fe.prototype.set = qc;
4331
- var nn = fe, Yc = "Expected a function";
4332
- function wr(e, t) {
4352
+ var sn = fe, Yc = "Expected a function";
4353
+ function Or(e, t) {
4333
4354
  if (typeof e != "function" || t != null && typeof t != "function")
4334
4355
  throw new TypeError(Yc);
4335
4356
  var r = /* @__PURE__ */ n(function() {
@@ -4339,11 +4360,11 @@ function wr(e, t) {
4339
4360
  var a = e.apply(this, o);
4340
4361
  return r.cache = i.set(s, a) || i, a;
4341
4362
  }, "memoized");
4342
- return r.cache = new (wr.Cache || nn)(), r;
4363
+ return r.cache = new (Or.Cache || sn)(), r;
4343
4364
  }
4344
- n(wr, "memoize");
4345
- wr.Cache = nn;
4346
- var Jc = wr, Xc = 500;
4365
+ n(Or, "memoize");
4366
+ Or.Cache = sn;
4367
+ var Jc = Or, Xc = 500;
4347
4368
  function Qc(e) {
4348
4369
  var t = Jc(e, function(o) {
4349
4370
  return r.size === Xc && r.clear(), o;
@@ -4364,12 +4385,12 @@ function nu(e) {
4364
4385
  n(nu, "toString");
4365
4386
  var su = nu;
4366
4387
  function au(e, t) {
4367
- return Rr(e) ? e : rc(e, t) ? [e] : ou(su(e));
4388
+ return wr(e) ? e : rc(e, t) ? [e] : ou(su(e));
4368
4389
  }
4369
4390
  n(au, "castPath");
4370
4391
  var iu = au, cu = 1 / 0;
4371
4392
  function uu(e) {
4372
- if (typeof e == "string" || Tr(e))
4393
+ if (typeof e == "string" || Rr(e))
4373
4394
  return e;
4374
4395
  var t = e + "";
4375
4396
  return t == "0" && 1 / e == -cu ? "-0" : t;
@@ -4389,13 +4410,13 @@ function fu(e, t, r) {
4389
4410
  return o === void 0 ? r : o;
4390
4411
  }
4391
4412
  n(fu, "get");
4392
- var yu = fu, Or = Za, mu = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, hu = /* @__PURE__ */ n((e) => e.match(/^[\[\{\"\}].*[\]\}\"]$/),
4413
+ var yu = fu, Cr = Za, mu = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/, hu = /* @__PURE__ */ n((e) => e.match(/^[\[\{\"\}].*[\]\}\"]$/),
4393
4414
  "isJSON");
4394
- function sn(e) {
4395
- if (!Or(e))
4415
+ function an(e) {
4416
+ if (!Cr(e))
4396
4417
  return e;
4397
4418
  let t = e, r = !1;
4398
- return typeof Event < "u" && e instanceof Event && (t = Lo(t), r = !0), t = Object.keys(t).reduce((o, s) => {
4419
+ return typeof Event < "u" && e instanceof Event && (t = Fo(t), r = !0), t = Object.keys(t).reduce((o, s) => {
4399
4420
  try {
4400
4421
  t[s] && t[s].toJSON, o[s] = t[s];
4401
4422
  } catch {
@@ -4404,7 +4425,7 @@ function sn(e) {
4404
4425
  return o;
4405
4426
  }, {}), r ? t : e;
4406
4427
  }
4407
- n(sn, "convertUnconventionalData");
4428
+ n(an, "convertUnconventionalData");
4408
4429
  var gu = /* @__PURE__ */ n(function(t) {
4409
4430
  let r, o, s, i;
4410
4431
  return /* @__PURE__ */ n(function(c, u) {
@@ -4476,7 +4497,7 @@ var gu = /* @__PURE__ */ n(function(t) {
4476
4497
  }
4477
4498
  let p = r.get(u);
4478
4499
  if (!p) {
4479
- let d = Array.isArray(u) ? u : sn(u);
4500
+ let d = Array.isArray(u) ? u : an(u);
4480
4501
  return i.push(c), s.unshift(d), r.set(u, JSON.stringify(i)), u !== d && o.set(u, d), d;
4481
4502
  }
4482
4503
  return `_duplicate_${p}`;
@@ -4492,7 +4513,7 @@ var gu = /* @__PURE__ */ n(function(t) {
4492
4513
  p.length === 0 ? u[c] = o : u[c] = yu(o, p);
4493
4514
  })), i === "_constructor-name_")
4494
4515
  return a;
4495
- if (Or(a) && a.__isConvertedError__) {
4516
+ if (Cr(a) && a.__isConvertedError__) {
4496
4517
  let { message: c, ...u } = a.errorProperties, l = new Error(c);
4497
4518
  return Object.assign(l, u), l;
4498
4519
  }
@@ -4507,7 +4528,7 @@ var gu = /* @__PURE__ */ n(function(t) {
4507
4528
  a === "_Infinity_" ? Number.POSITIVE_INFINITY : typeof a == "string" && a === "_NaN_" ? Number.NaN : typeof a == "string" && a.startsWith(
4508
4529
  "_bigint_") && typeof BigInt == "function" ? BigInt(a.replace("_bigint_", "")) : a;
4509
4530
  }, "revive");
4510
- }, "reviver2"), an = {
4531
+ }, "reviver2"), cn = {
4511
4532
  maxDepth: 10,
4512
4533
  space: void 0,
4513
4534
  allowRegExp: !0,
@@ -4515,63 +4536,63 @@ var gu = /* @__PURE__ */ n(function(t) {
4515
4536
  allowError: !0,
4516
4537
  allowUndefined: !0,
4517
4538
  allowSymbol: !0
4518
- }, cn = /* @__PURE__ */ n((e, t = {}) => {
4519
- let r = { ...an, ...t };
4520
- return JSON.stringify(sn(e), gu(r), t.space);
4539
+ }, un = /* @__PURE__ */ n((e, t = {}) => {
4540
+ let r = { ...cn, ...t };
4541
+ return JSON.stringify(an(e), gu(r), t.space);
4521
4542
  }, "stringify"), bu = /* @__PURE__ */ n(() => {
4522
4543
  let e = /* @__PURE__ */ new Map();
4523
4544
  return /* @__PURE__ */ n(function t(r) {
4524
- Or(r) && Object.entries(r).forEach(([o, s]) => {
4545
+ Cr(r) && Object.entries(r).forEach(([o, s]) => {
4525
4546
  s === "_undefined_" ? r[o] = void 0 : e.get(s) || (e.set(s, !0), t(s));
4526
4547
  }), Array.isArray(r) && r.forEach((o, s) => {
4527
4548
  o === "_undefined_" ? (e.set(o, !0), r[s] = void 0) : e.get(o) || (e.set(o, !0), t(o));
4528
4549
  });
4529
4550
  }, "mutateUndefined");
4530
- }, "mutator"), un = /* @__PURE__ */ n((e, t = {}) => {
4531
- let r = { ...an, ...t }, o = JSON.parse(e, Su(r));
4551
+ }, "mutator"), ln = /* @__PURE__ */ n((e, t = {}) => {
4552
+ let r = { ...cn, ...t }, o = JSON.parse(e, Su(r));
4532
4553
  return bu()(o), o;
4533
4554
  }, "parse");
4534
4555
 
4535
4556
  // src/manager-api/lib/store-setup.ts
4536
- var ln = /* @__PURE__ */ n((e) => {
4557
+ var pn = /* @__PURE__ */ n((e) => {
4537
4558
  e.fn("set", function(t, r) {
4538
4559
  return e.set(
4539
4560
  // @ts-expect-error('this' implicitly has type 'any')
4540
4561
  this._area,
4541
4562
  // @ts-expect-error('this' implicitly has type 'any')
4542
4563
  this._in(t),
4543
- cn(r, { maxDepth: 50 })
4564
+ un(r, { maxDepth: 50 })
4544
4565
  );
4545
4566
  }), e.fn("get", function(t, r) {
4546
4567
  let o = e.get(this._area, this._in(t));
4547
- return o !== null ? un(o) : r || o;
4568
+ return o !== null ? ln(o) : r || o;
4548
4569
  });
4549
4570
  }, "default");
4550
4571
 
4551
4572
  // src/manager-api/store.ts
4552
- ln(ye.default._);
4553
- var pn = "@storybook/manager/store";
4554
- function Cr(e) {
4555
- return e.get(pn) || {};
4573
+ pn(ye.default._);
4574
+ var dn = "@storybook/manager/store";
4575
+ function Nr(e) {
4576
+ return e.get(dn) || {};
4556
4577
  }
4557
- n(Cr, "get");
4578
+ n(Nr, "get");
4558
4579
  function Pu(e, t) {
4559
- return e.set(pn, t);
4580
+ return e.set(dn, t);
4560
4581
  }
4561
4582
  n(Pu, "set");
4562
4583
  function Au(e, t) {
4563
- let r = Cr(e);
4584
+ let r = Nr(e);
4564
4585
  return Pu(e, { ...r, ...t });
4565
4586
  }
4566
4587
  n(Au, "update");
4567
- var Nr = class Nr {
4588
+ var kr = class kr {
4568
4589
  constructor({ setState: t, getState: r }) {
4569
4590
  this.upstreamSetState = t, this.upstreamGetState = r;
4570
4591
  }
4571
4592
  // The assumption is that this will be called once, to initialize the React state
4572
4593
  // when the module is instantiated
4573
4594
  getInitialState(t) {
4574
- return { ...t, ...Cr(ye.default.local), ...Cr(ye.default.session) };
4595
+ return { ...t, ...Nr(ye.default.local), ...Nr(ye.default.session) };
4575
4596
  }
4576
4597
  getState() {
4577
4598
  return this.upstreamGetState();
@@ -4593,19 +4614,19 @@ var Nr = class Nr {
4593
4614
  return s && s(l), l;
4594
4615
  }
4595
4616
  };
4596
- n(Nr, "Store");
4597
- var Ne = Nr;
4617
+ n(kr, "Store");
4618
+ var Ne = kr;
4598
4619
 
4599
4620
  // src/manager-api/lib/request-response.ts
4600
- var kr = class kr extends Error {
4621
+ var jr = class jr extends Error {
4601
4622
  constructor(r, o) {
4602
4623
  super(r);
4603
4624
  this.payload = void 0;
4604
4625
  this.payload = o;
4605
4626
  }
4606
4627
  };
4607
- n(kr, "RequestResponseError");
4608
- var _t = kr, Cf = /* @__PURE__ */ n((e, t, r, o, s = 5e3) => {
4628
+ n(jr, "RequestResponseError");
4629
+ var _t = jr, Of = /* @__PURE__ */ n((e, t, r, o, s = 5e3) => {
4609
4630
  let i;
4610
4631
  return new Promise((a, c) => {
4611
4632
  let u = {
@@ -4621,8 +4642,8 @@ var _t = kr, Cf = /* @__PURE__ */ n((e, t, r, o, s = 5e3) => {
4621
4642
  }, "experimental_requestResponse");
4622
4643
 
4623
4644
  // src/manager-api/root.tsx
4624
- var { ActiveTabs: $f } = pt;
4625
- var Tt = Qr({ api: void 0, state: ut({}) }), yo = /* @__PURE__ */ n((...e) => eo({}, ...e), "combineParameters"), xt = class xt extends Eu {
4645
+ var { ActiveTabs: Wf } = pt;
4646
+ var Tt = Zr({ api: void 0, state: ut({}) }), mo = /* @__PURE__ */ n((...e) => to({}, ...e), "combineParameters"), xt = class xt extends Eu {
4626
4647
  constructor(r) {
4627
4648
  super(r);
4628
4649
  this.api = {};
@@ -4663,7 +4684,7 @@ var Tt = Qr({ api: void 0, state: ut({}) }), yo = /* @__PURE__ */ n((...e) => eo
4663
4684
  qt,
4664
4685
  gr,
4665
4686
  br,
4666
- Pr
4687
+ Ar
4667
4688
  ].map(
4668
4689
  (S) => S.init({ ...f, ...y, ...m, state: this.state, fullAPI: this.api })
4669
4690
  );
@@ -4694,60 +4715,60 @@ var Tt = Qr({ api: void 0, state: ut({}) }), yo = /* @__PURE__ */ n((...e) => eo
4694
4715
  }
4695
4716
  };
4696
4717
  n(xt, "ManagerProvider"), xt.displayName = "Manager";
4697
- var yn = xt, xu = /* @__PURE__ */ n(({ children: e, effect: t }) => (me.useEffect(t, []), e), "EffectOnMount"), Tu = /* @__PURE__ */ n((e) => e,
4718
+ var mn = xt, xu = /* @__PURE__ */ n(({ children: e, effect: t }) => (me.useEffect(t, []), e), "EffectOnMount"), Tu = /* @__PURE__ */ n((e) => e,
4698
4719
  "defaultFilter");
4699
4720
  function Ru({
4700
4721
  // @ts-expect-error (Converted from ts-ignore)
4701
4722
  filter: e = Tu,
4702
4723
  children: t
4703
4724
  }) {
4704
- let r = Dr(Tt), o = dn(t), s = dn(e);
4725
+ let r = Mr(Tt), o = fn(t), s = fn(e);
4705
4726
  if (typeof o.current != "function")
4706
4727
  return /* @__PURE__ */ me.createElement(vu, null, o.current);
4707
- let i = s.current(r), a = jr(() => [...Object.entries(i).reduce((c, u) => c.concat(u), [])], [r.state]);
4708
- return jr(() => {
4728
+ let i = s.current(r), a = Dr(() => [...Object.entries(i).reduce((c, u) => c.concat(u), [])], [r.state]);
4729
+ return Dr(() => {
4709
4730
  let c = o.current;
4710
4731
  return /* @__PURE__ */ me.createElement(c, { ...i });
4711
4732
  }, a);
4712
4733
  }
4713
4734
  n(Ru, "ManagerConsumer");
4714
- function Bf() {
4715
- let { state: e } = Dr(Tt);
4735
+ function $f() {
4736
+ let { state: e } = Mr(Tt);
4716
4737
  return e;
4717
4738
  }
4718
- n(Bf, "useStorybookState");
4739
+ n($f, "useStorybookState");
4719
4740
  function J() {
4720
- let { api: e } = Dr(Tt);
4741
+ let { api: e } = Mr(Tt);
4721
4742
  return e;
4722
4743
  }
4723
4744
  n(J, "useStorybookApi");
4724
- function hn(e, t) {
4745
+ function gn(e, t) {
4725
4746
  return typeof e > "u" ? t : e;
4726
4747
  }
4727
- n(hn, "orDefault");
4748
+ n(gn, "orDefault");
4728
4749
  var wu = /* @__PURE__ */ n((e, t = []) => {
4729
4750
  let r = J();
4730
- return mn(() => (Object.entries(e).forEach(([o, s]) => r.on(o, s)), () => {
4751
+ return hn(() => (Object.entries(e).forEach(([o, s]) => r.on(o, s)), () => {
4731
4752
  Object.entries(e).forEach(([o, s]) => r.off(o, s));
4732
4753
  }), t), r.emit;
4733
4754
  }, "useChannel");
4734
- function Vf(e) {
4755
+ function Bf(e) {
4735
4756
  return J().isPrepared(e);
4736
4757
  }
4737
- n(Vf, "useStoryPrepared");
4738
- function Kf(e, t) {
4758
+ n(Bf, "useStoryPrepared");
4759
+ function Vf(e, t) {
4739
4760
  let o = J().getCurrentParameter(e);
4740
- return hn(o, t);
4761
+ return gn(o, t);
4741
4762
  }
4742
- n(Kf, "useParameter");
4763
+ n(Vf, "useParameter");
4743
4764
  globalThis.STORYBOOK_ADDON_STATE = {};
4744
4765
  var { STORYBOOK_ADDON_STATE: z } = globalThis;
4745
4766
  function Ou(e, t) {
4746
- let r = J(), o = r.getAddonState(e) || z[e], s = hn(
4767
+ let r = J(), o = r.getAddonState(e) || z[e], s = gn(
4747
4768
  o,
4748
4769
  z[e] ? z[e] : t
4749
4770
  ), i = !1;
4750
- s === t && t !== void 0 && (z[e] = t, i = !0), mn(() => {
4771
+ s === t && t !== void 0 && (z[e] = t, i = !0), hn(() => {
4751
4772
  i && r.setAddonState(e, t);
4752
4773
  }, [i]);
4753
4774
  let a = It(
@@ -4757,9 +4778,9 @@ function Ou(e, t) {
4757
4778
  return z[e] = f, f;
4758
4779
  },
4759
4780
  [r, e]
4760
- ), c = jr(() => {
4781
+ ), c = Dr(() => {
4761
4782
  let p = {
4762
- [`${fn}-client-${e}`]: a,
4783
+ [`${yn}-client-${e}`]: a,
4763
4784
  [`${ke}-client-${e}`]: a
4764
4785
  }, d = {
4765
4786
  [_u]: async () => {
@@ -4780,18 +4801,18 @@ function Ou(e, t) {
4780
4801
  async (p, d) => {
4781
4802
  await a(p, d);
4782
4803
  let f = r.getAddonState(e);
4783
- u(`${fn}-manager-${e}`, f);
4804
+ u(`${yn}-manager-${e}`, f);
4784
4805
  },
4785
4806
  [r, u, a, e]
4786
4807
  );
4787
4808
  return [s, l];
4788
4809
  }
4789
4810
  n(Ou, "useSharedState");
4790
- function zf(e, t) {
4811
+ function Kf(e, t) {
4791
4812
  return Ou(e, t);
4792
4813
  }
4793
- n(zf, "useAddonState");
4794
- function Hf() {
4814
+ n(Kf, "useAddonState");
4815
+ function zf() {
4795
4816
  let { getCurrentStoryData: e, updateStoryArgs: t, resetStoryArgs: r } = J(), o = e(), s = o?.type === "story" ? o.args : {}, i = o?.type ===
4796
4817
  "story" ? o.initialArgs : {}, a = It(
4797
4818
  (u) => t(o, u),
@@ -4802,27 +4823,27 @@ function Hf() {
4802
4823
  );
4803
4824
  return [s, a, c, i];
4804
4825
  }
4805
- n(Hf, "useArgs");
4806
- function qf() {
4826
+ n(zf, "useArgs");
4827
+ function Hf() {
4807
4828
  let e = J();
4808
4829
  return [e.getGlobals(), e.updateGlobals, e.getStoryGlobals(), e.getUserGlobals()];
4809
4830
  }
4810
- n(qf, "useGlobals");
4811
- function Yf() {
4831
+ n(Hf, "useGlobals");
4832
+ function qf() {
4812
4833
  return J().getGlobalTypes();
4813
4834
  }
4814
- n(Yf, "useGlobalTypes");
4835
+ n(qf, "useGlobalTypes");
4815
4836
  function Cu() {
4816
4837
  let { getCurrentStoryData: e } = J();
4817
4838
  return e();
4818
4839
  }
4819
4840
  n(Cu, "useCurrentStory");
4820
- function Jf() {
4841
+ function Yf() {
4821
4842
  let e = Cu();
4822
4843
  return e?.type === "story" && e.argTypes || {};
4823
4844
  }
4824
- n(Jf, "useArgTypes");
4825
- var Xf = ro;
4845
+ n(Yf, "useArgTypes");
4846
+ var Jf = oo;
4826
4847
 
4827
4848
  // src/shared/universal-store/mock.ts
4828
4849
  import { Channel as Nu } from "storybook/internal/channels";
@@ -4841,7 +4862,7 @@ var Rt = class Rt extends W {
4841
4862
  unsubscribeAll() {
4842
4863
  if (!this.testUtils)
4843
4864
  throw new Error(
4844
- ao`Cannot call unsubscribeAll on a store that does not have testUtils.
4865
+ io`Cannot call unsubscribeAll on a store that does not have testUtils.
4845
4866
  Please provide testUtils as the second argument when creating the store.`
4846
4867
  );
4847
4868
  let t = /* @__PURE__ */ n((r) => {
@@ -4854,15 +4875,15 @@ var Rt = class Rt extends W {
4854
4875
  }
4855
4876
  };
4856
4877
  n(Rt, "MockUniversalStore");
4857
- var Mr = Rt;
4878
+ var Ur = Rt;
4858
4879
 
4859
4880
  // src/shared/test-provider-store/index.ts
4860
- var gn = {
4881
+ var Sn = {
4861
4882
  id: "storybook/test-provider",
4862
4883
  leader: !0,
4863
4884
  initialState: {}
4864
4885
  };
4865
- function Sn({
4886
+ function bn({
4866
4887
  universalTestProviderStore: e,
4867
4888
  useUniversalStore: t
4868
4889
  }) {
@@ -4920,12 +4941,12 @@ function Sn({
4920
4941
  universalTestProviderStore: e
4921
4942
  };
4922
4943
  }
4923
- n(Sn, "createTestProviderStore");
4944
+ n(bn, "createTestProviderStore");
4924
4945
 
4925
4946
  // src/manager-api/stores/test-provider.ts
4926
- var ku = Sn({
4947
+ var ku = bn({
4927
4948
  universalTestProviderStore: W.create({
4928
- ...gn,
4949
+ ...Sn,
4929
4950
  leader: globalThis.CONFIG_TYPE === "PRODUCTION"
4930
4951
  }),
4931
4952
  useUniversalStore: we
@@ -4936,47 +4957,47 @@ var ku = Sn({
4936
4957
  universalTestProviderStore: Uu
4937
4958
  } = ku;
4938
4959
  export {
4939
- $f as ActiveTabs,
4960
+ Wf as ActiveTabs,
4940
4961
  Ru as Consumer,
4941
4962
  Tt as ManagerContext,
4942
- yn as Provider,
4963
+ mn as Provider,
4943
4964
  _t as RequestResponseError,
4944
- Wn as addons,
4945
- yo as combineParameters,
4965
+ $n as addons,
4966
+ mo as combineParameters,
4946
4967
  ad as controlOrMetaKey,
4947
4968
  sd as controlOrMetaSymbol,
4948
4969
  cd as eventMatchesShortcut,
4949
4970
  rr as eventToShortcut,
4950
- Mr as experimental_MockUniversalStore,
4971
+ Ur as experimental_MockUniversalStore,
4951
4972
  W as experimental_UniversalStore,
4952
- _s as experimental_getStatusStore,
4973
+ Is as experimental_getStatusStore,
4953
4974
  Du as experimental_getTestProviderStore,
4954
- Cf as experimental_requestResponse,
4955
- Is as experimental_useStatusStore,
4975
+ Of as experimental_requestResponse,
4976
+ xs as experimental_useStatusStore,
4956
4977
  Mu as experimental_useTestProviderStore,
4957
4978
  we as experimental_useUniversalStore,
4958
4979
  ht as internal_fullStatusStore,
4959
4980
  ju as internal_fullTestProviderStore,
4960
- xs as internal_universalStatusStore,
4981
+ Ts as internal_universalStatusStore,
4961
4982
  Uu as internal_universalTestProviderStore,
4962
4983
  tr as isMacLike,
4963
4984
  id as isShortcutTaken,
4964
- ys as keyToSymbol,
4985
+ ms as keyToSymbol,
4965
4986
  K as merge,
4966
4987
  jt as mockChannel,
4967
- fs as optionOrAltSymbol,
4988
+ ys as optionOrAltSymbol,
4968
4989
  or as shortcutMatchesShortcut,
4969
4990
  ud as shortcutToHumanString,
4970
- Xf as types,
4971
- zf as useAddonState,
4972
- Jf as useArgTypes,
4973
- Hf as useArgs,
4991
+ Jf as types,
4992
+ Kf as useAddonState,
4993
+ Yf as useArgTypes,
4994
+ zf as useArgs,
4974
4995
  wu as useChannel,
4975
- Yf as useGlobalTypes,
4976
- qf as useGlobals,
4977
- Kf as useParameter,
4996
+ qf as useGlobalTypes,
4997
+ Hf as useGlobals,
4998
+ Vf as useParameter,
4978
4999
  Ou as useSharedState,
4979
- Vf as useStoryPrepared,
5000
+ Bf as useStoryPrepared,
4980
5001
  J as useStorybookApi,
4981
- Bf as useStorybookState
5002
+ $f as useStorybookState
4982
5003
  };