storybook 9.0.0-alpha.0 → 9.0.0-alpha.2
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.
- package/README.md +31 -29
- package/assets/browser/favicon.svg +1 -0
- package/assets/browser/nunito-sans-bold-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-bold.woff2 +0 -0
- package/assets/browser/nunito-sans-italic.woff2 +0 -0
- package/assets/browser/nunito-sans-regular.woff2 +0 -0
- package/assets/docs/message-reference.png +0 -0
- package/assets/server/addon.tsconfig.json +6 -0
- package/assets/server/base-preview-body.html +119 -0
- package/assets/server/base-preview-head.html +451 -0
- package/assets/server/template.ejs +87 -0
- package/bin/index.cjs +1 -1
- package/dist/babel/index.cjs +54034 -0
- package/dist/babel/index.d.ts +7488 -0
- package/dist/babel/index.js +54044 -0
- package/dist/bin/index.cjs +124 -0
- package/dist/bin/index.js +118 -0
- package/dist/builder-manager/index.cjs +2167 -0
- package/dist/builder-manager/index.d.ts +19 -0
- package/dist/builder-manager/index.js +2189 -0
- package/dist/channels/index.cjs +1938 -0
- package/dist/channels/index.d.ts +108 -0
- package/dist/channels/index.js +1885 -0
- package/dist/cli/bin/index.cjs +2687 -0
- package/dist/cli/bin/index.d.ts +2 -0
- package/dist/cli/bin/index.js +2707 -0
- package/dist/cli/index.cjs +17327 -0
- package/dist/cli/index.d.ts +209 -0
- package/dist/cli/index.js +17349 -0
- package/dist/client-logger/index.cjs +112 -0
- package/dist/client-logger/index.d.ts +29 -0
- package/dist/client-logger/index.js +70 -0
- package/dist/common/index.cjs +20558 -0
- package/dist/common/index.d.ts +955 -0
- package/dist/common/index.js +20643 -0
- package/dist/components/index.cjs +30056 -0
- package/dist/components/index.d.ts +1423 -0
- package/dist/components/index.js +25416 -0
- package/dist/core-events/index.cjs +167 -0
- package/dist/core-events/index.d.ts +313 -0
- package/dist/core-events/index.js +149 -0
- package/dist/core-server/index.cjs +37872 -0
- package/dist/core-server/index.d.ts +462 -0
- package/dist/core-server/index.js +37966 -0
- package/dist/core-server/presets/common-manager.js +28 -0
- package/dist/core-server/presets/common-override-preset.cjs +4824 -0
- package/dist/core-server/presets/common-override-preset.js +4829 -0
- package/dist/core-server/presets/common-preset.cjs +10228 -0
- package/dist/core-server/presets/common-preset.js +10306 -0
- package/dist/csf/index.cjs +223 -0
- package/dist/csf/index.d.ts +752 -0
- package/dist/csf/index.js +216 -0
- package/dist/csf-tools/index.cjs +1422 -0
- package/dist/csf-tools/index.d.ts +250 -0
- package/dist/csf-tools/index.js +1439 -0
- package/dist/docs-tools/index.cjs +923 -0
- package/dist/docs-tools/index.d.ts +162 -0
- package/dist/docs-tools/index.js +909 -0
- package/dist/index.cjs +17 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -7
- package/dist/instrumenter/index.cjs +3273 -0
- package/dist/instrumenter/index.d.ts +104 -0
- package/dist/instrumenter/index.js +4800 -0
- package/dist/manager/globals-module-info.cjs +666 -0
- package/dist/manager/globals-module-info.d.ts +36 -0
- package/dist/manager/globals-module-info.js +653 -0
- package/dist/manager/globals-runtime.js +41567 -0
- package/dist/manager/globals.cjs +43 -0
- package/dist/manager/globals.d.ts +21 -0
- package/dist/manager/globals.js +30 -0
- package/dist/manager/runtime.js +12043 -0
- package/dist/manager-api/index.cjs +10772 -0
- package/dist/manager-api/index.d.ts +1211 -0
- package/dist/manager-api/index.js +4547 -0
- package/dist/manager-errors.d.ts +65 -0
- package/dist/manager-errors.js +83 -0
- package/dist/node-logger/index.cjs +1642 -0
- package/dist/node-logger/index.d.ts +117 -0
- package/dist/node-logger/index.js +1652 -0
- package/dist/preview/globals.cjs +34 -0
- package/dist/preview/globals.d.ts +12 -0
- package/dist/preview/globals.js +21 -0
- package/dist/preview/runtime.js +7723 -0
- package/dist/preview-api/index.cjs +5658 -0
- package/dist/preview-api/index.d.ts +1356 -0
- package/dist/preview-api/index.js +5665 -0
- package/dist/preview-errors.cjs +486 -0
- package/dist/preview-errors.d.ts +188 -0
- package/dist/preview-errors.js +433 -0
- package/dist/router/index.cjs +3320 -0
- package/dist/router/index.d.ts +385 -0
- package/dist/router/index.js +1849 -0
- package/dist/server-errors.cjs +710 -0
- package/dist/server-errors.d.ts +272 -0
- package/dist/server-errors.js +711 -0
- package/dist/telemetry/index.cjs +3683 -0
- package/dist/telemetry/index.d.ts +112 -0
- package/dist/telemetry/index.js +3720 -0
- package/dist/theming/create.cjs +2422 -0
- package/dist/theming/create.d.ts +50 -0
- package/dist/theming/create.js +990 -0
- package/dist/theming/index.cjs +4832 -0
- package/dist/theming/index.d.ts +11939 -0
- package/dist/theming/index.js +3253 -0
- package/dist/types/index.cjs +27 -0
- package/dist/types/index.d.ts +2541 -0
- package/dist/types/index.js +7 -0
- package/package.json +308 -212
- package/.eslintrc.cjs +0 -31
- package/__mocks__/@aw-web-design/x-default-browser.js +0 -2
- package/core/babel/index.cjs +0 -1
- package/core/babel/index.d.ts +0 -2
- package/core/babel/index.js +0 -1
- package/core/builder-manager/index.cjs +0 -1
- package/core/builder-manager/index.d.ts +0 -2
- package/core/builder-manager/index.js +0 -1
- package/core/channels/index.cjs +0 -1
- package/core/channels/index.d.ts +0 -2
- package/core/channels/index.js +0 -1
- package/core/cli/bin/index.cjs +0 -1
- package/core/cli/bin/index.d.ts +0 -2
- package/core/cli/bin/index.js +0 -1
- package/core/cli/index.cjs +0 -1
- package/core/cli/index.d.ts +0 -2
- package/core/cli/index.js +0 -1
- package/core/client-logger/index.cjs +0 -1
- package/core/client-logger/index.d.ts +0 -2
- package/core/client-logger/index.js +0 -1
- package/core/common/index.cjs +0 -1
- package/core/common/index.d.ts +0 -2
- package/core/common/index.js +0 -1
- package/core/components/index.cjs +0 -1
- package/core/components/index.d.ts +0 -2
- package/core/components/index.js +0 -1
- package/core/core-events/index.cjs +0 -1
- package/core/core-events/index.d.ts +0 -2
- package/core/core-events/index.js +0 -1
- package/core/core-server/index.cjs +0 -1
- package/core/core-server/index.d.ts +0 -2
- package/core/core-server/index.js +0 -1
- package/core/core-server/presets/common-manager.js +0 -1
- package/core/core-server/presets/common-override-preset.cjs +0 -1
- package/core/core-server/presets/common-override-preset.js +0 -1
- package/core/core-server/presets/common-preset.cjs +0 -1
- package/core/core-server/presets/common-preset.js +0 -1
- package/core/csf/index.cjs +0 -1
- package/core/csf/index.d.ts +0 -2
- package/core/csf/index.js +0 -1
- package/core/csf-tools/index.cjs +0 -1
- package/core/csf-tools/index.d.ts +0 -2
- package/core/csf-tools/index.js +0 -1
- package/core/docs-tools/index.cjs +0 -1
- package/core/docs-tools/index.d.ts +0 -2
- package/core/docs-tools/index.js +0 -1
- package/core/index.cjs +0 -1
- package/core/index.d.ts +0 -2
- package/core/index.js +0 -1
- package/core/manager/globals-module-info.cjs +0 -1
- package/core/manager/globals-module-info.d.ts +0 -2
- package/core/manager/globals-module-info.js +0 -1
- package/core/manager/globals-runtime.js +0 -1
- package/core/manager/globals.cjs +0 -1
- package/core/manager/globals.d.ts +0 -2
- package/core/manager/globals.js +0 -1
- package/core/manager-api/index.cjs +0 -1
- package/core/manager-api/index.d.ts +0 -2
- package/core/manager-api/index.js +0 -1
- package/core/manager-errors.d.ts +0 -2
- package/core/manager-errors.js +0 -1
- package/core/node-logger/index.cjs +0 -1
- package/core/node-logger/index.d.ts +0 -2
- package/core/node-logger/index.js +0 -1
- package/core/preview/globals.cjs +0 -1
- package/core/preview/globals.d.ts +0 -2
- package/core/preview/globals.js +0 -1
- package/core/preview/runtime.js +0 -1
- package/core/preview-api/index.cjs +0 -1
- package/core/preview-api/index.d.ts +0 -2
- package/core/preview-api/index.js +0 -1
- package/core/preview-errors.cjs +0 -1
- package/core/preview-errors.d.ts +0 -2
- package/core/preview-errors.js +0 -1
- package/core/router/index.cjs +0 -1
- package/core/router/index.d.ts +0 -2
- package/core/router/index.js +0 -1
- package/core/server-errors.cjs +0 -1
- package/core/server-errors.d.ts +0 -2
- package/core/server-errors.js +0 -1
- package/core/telemetry/index.cjs +0 -1
- package/core/telemetry/index.d.ts +0 -2
- package/core/telemetry/index.js +0 -1
- package/core/theming/create.cjs +0 -1
- package/core/theming/create.d.ts +0 -2
- package/core/theming/create.js +0 -1
- package/core/theming/index.cjs +0 -1
- package/core/theming/index.d.ts +0 -2
- package/core/theming/index.js +0 -1
- package/core/types/index.cjs +0 -1
- package/core/types/index.d.ts +0 -2
- package/core/types/index.js +0 -1
- package/core.cjs +0 -0
- package/core.d.ts +0 -0
- package/core.js +0 -1
- package/dist/chunk-OWLSIX54.js +0 -8
- package/dist/core-path.cjs +0 -1
- package/dist/core-path.d.ts +0 -3
- package/dist/core-path.js +0 -9
- package/dist/proxy.cjs +0 -1
- package/dist/proxy.d.ts +0 -2
- package/dist/proxy.js +0 -9
|
@@ -0,0 +1,1849 @@
|
|
|
1
|
+
var $t = Object.create;
|
|
2
|
+
var ye = Object.defineProperty;
|
|
3
|
+
var Ht = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var Kt = Object.getOwnPropertyNames;
|
|
5
|
+
var Jt = Object.getPrototypeOf, Qt = Object.prototype.hasOwnProperty;
|
|
6
|
+
var a = (e, t) => ye(e, "name", { value: t, configurable: !0 }), K = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy <
|
|
7
|
+
"u" ? new Proxy(e, {
|
|
8
|
+
get: (t, r) => (typeof require < "u" ? require : t)[r]
|
|
9
|
+
}) : e)(function(e) {
|
|
10
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + e + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var V = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
14
|
+
var Yt = (e, t, r, n) => {
|
|
15
|
+
if (t && typeof t == "object" || typeof t == "function")
|
|
16
|
+
for (let o of Kt(t))
|
|
17
|
+
!Qt.call(e, o) && o !== r && ye(e, o, { get: () => t[o], enumerable: !(n = Ht(t, o)) || n.enumerable });
|
|
18
|
+
return e;
|
|
19
|
+
};
|
|
20
|
+
var Ie = (e, t, r) => (r = e != null ? $t(Jt(e)) : {}, Yt(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
t || !e || !e.__esModule ? ye(r, "default", { value: e, enumerable: !0 }) : r,
|
|
26
|
+
e
|
|
27
|
+
));
|
|
28
|
+
|
|
29
|
+
// ../node_modules/memoizerific/memoizerific.js
|
|
30
|
+
var ct = V((lt, Ee) => {
|
|
31
|
+
(function(e) {
|
|
32
|
+
if (typeof lt == "object" && typeof Ee < "u")
|
|
33
|
+
Ee.exports = e();
|
|
34
|
+
else if (typeof define == "function" && define.amd)
|
|
35
|
+
define([], e);
|
|
36
|
+
else {
|
|
37
|
+
var t;
|
|
38
|
+
typeof window < "u" ? t = window : typeof global < "u" ? t = global : typeof self < "u" ? t = self : t = this, t.memoizerific = e();
|
|
39
|
+
}
|
|
40
|
+
})(function() {
|
|
41
|
+
var e, t, r;
|
|
42
|
+
return (/* @__PURE__ */ a(function n(o, i, c) {
|
|
43
|
+
function s(u, p) {
|
|
44
|
+
if (!i[u]) {
|
|
45
|
+
if (!o[u]) {
|
|
46
|
+
var h = typeof K == "function" && K;
|
|
47
|
+
if (!p && h) return h(u, !0);
|
|
48
|
+
if (l) return l(u, !0);
|
|
49
|
+
var m = new Error("Cannot find module '" + u + "'");
|
|
50
|
+
throw m.code = "MODULE_NOT_FOUND", m;
|
|
51
|
+
}
|
|
52
|
+
var g = i[u] = { exports: {} };
|
|
53
|
+
o[u][0].call(g.exports, function(d) {
|
|
54
|
+
var v = o[u][1][d];
|
|
55
|
+
return s(v || d);
|
|
56
|
+
}, g, g.exports, n, o, i, c);
|
|
57
|
+
}
|
|
58
|
+
return i[u].exports;
|
|
59
|
+
}
|
|
60
|
+
a(s, "s");
|
|
61
|
+
for (var l = typeof K == "function" && K, f = 0; f < c.length; f++) s(c[f]);
|
|
62
|
+
return s;
|
|
63
|
+
}, "e"))({ 1: [function(n, o, i) {
|
|
64
|
+
o.exports = function(c) {
|
|
65
|
+
if (typeof Map != "function" || c) {
|
|
66
|
+
var s = n("./similar");
|
|
67
|
+
return new s();
|
|
68
|
+
} else
|
|
69
|
+
return /* @__PURE__ */ new Map();
|
|
70
|
+
};
|
|
71
|
+
}, { "./similar": 2 }], 2: [function(n, o, i) {
|
|
72
|
+
function c() {
|
|
73
|
+
return this.list = [], this.lastItem = void 0, this.size = 0, this;
|
|
74
|
+
}
|
|
75
|
+
a(c, "Similar"), c.prototype.get = function(s) {
|
|
76
|
+
var l;
|
|
77
|
+
if (this.lastItem && this.isEqual(this.lastItem.key, s))
|
|
78
|
+
return this.lastItem.val;
|
|
79
|
+
if (l = this.indexOf(s), l >= 0)
|
|
80
|
+
return this.lastItem = this.list[l], this.list[l].val;
|
|
81
|
+
}, c.prototype.set = function(s, l) {
|
|
82
|
+
var f;
|
|
83
|
+
return this.lastItem && this.isEqual(this.lastItem.key, s) ? (this.lastItem.val = l, this) : (f = this.indexOf(s), f >= 0 ? (this.lastItem =
|
|
84
|
+
this.list[f], this.list[f].val = l, this) : (this.lastItem = { key: s, val: l }, this.list.push(this.lastItem), this.size++, this));
|
|
85
|
+
}, c.prototype.delete = function(s) {
|
|
86
|
+
var l;
|
|
87
|
+
if (this.lastItem && this.isEqual(this.lastItem.key, s) && (this.lastItem = void 0), l = this.indexOf(s), l >= 0)
|
|
88
|
+
return this.size--, this.list.splice(l, 1)[0];
|
|
89
|
+
}, c.prototype.has = function(s) {
|
|
90
|
+
var l;
|
|
91
|
+
return this.lastItem && this.isEqual(this.lastItem.key, s) ? !0 : (l = this.indexOf(s), l >= 0 ? (this.lastItem = this.list[l], !0) :
|
|
92
|
+
!1);
|
|
93
|
+
}, c.prototype.forEach = function(s, l) {
|
|
94
|
+
var f;
|
|
95
|
+
for (f = 0; f < this.size; f++)
|
|
96
|
+
s.call(l || this, this.list[f].val, this.list[f].key, this);
|
|
97
|
+
}, c.prototype.indexOf = function(s) {
|
|
98
|
+
var l;
|
|
99
|
+
for (l = 0; l < this.size; l++)
|
|
100
|
+
if (this.isEqual(this.list[l].key, s))
|
|
101
|
+
return l;
|
|
102
|
+
return -1;
|
|
103
|
+
}, c.prototype.isEqual = function(s, l) {
|
|
104
|
+
return s === l || s !== s && l !== l;
|
|
105
|
+
}, o.exports = c;
|
|
106
|
+
}, {}], 3: [function(n, o, i) {
|
|
107
|
+
var c = n("map-or-similar");
|
|
108
|
+
o.exports = function(u) {
|
|
109
|
+
var p = new c(!1), h = [];
|
|
110
|
+
return function(m) {
|
|
111
|
+
var g = /* @__PURE__ */ a(function() {
|
|
112
|
+
var d = p, v, R, b = arguments.length - 1, x = Array(b + 1), O = !0, P;
|
|
113
|
+
if ((g.numArgs || g.numArgs === 0) && g.numArgs !== b + 1)
|
|
114
|
+
throw new Error("Memoizerific functions should always be called with the same number of arguments");
|
|
115
|
+
for (P = 0; P < b; P++) {
|
|
116
|
+
if (x[P] = {
|
|
117
|
+
cacheItem: d,
|
|
118
|
+
arg: arguments[P]
|
|
119
|
+
}, d.has(arguments[P])) {
|
|
120
|
+
d = d.get(arguments[P]);
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
O = !1, v = new c(!1), d.set(arguments[P], v), d = v;
|
|
124
|
+
}
|
|
125
|
+
return O && (d.has(arguments[b]) ? R = d.get(arguments[b]) : O = !1), O || (R = m.apply(null, arguments), d.set(arguments[b], R)),
|
|
126
|
+
u > 0 && (x[b] = {
|
|
127
|
+
cacheItem: d,
|
|
128
|
+
arg: arguments[b]
|
|
129
|
+
}, O ? s(h, x) : h.push(x), h.length > u && l(h.shift())), g.wasMemoized = O, g.numArgs = b + 1, R;
|
|
130
|
+
}, "memoizerific");
|
|
131
|
+
return g.limit = u, g.wasMemoized = !1, g.cache = p, g.lru = h, g;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
function s(u, p) {
|
|
135
|
+
var h = u.length, m = p.length, g, d, v;
|
|
136
|
+
for (d = 0; d < h; d++) {
|
|
137
|
+
for (g = !0, v = 0; v < m; v++)
|
|
138
|
+
if (!f(u[d][v].arg, p[v].arg)) {
|
|
139
|
+
g = !1;
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
if (g)
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
u.push(u.splice(d, 1)[0]);
|
|
146
|
+
}
|
|
147
|
+
a(s, "moveToMostRecentLru");
|
|
148
|
+
function l(u) {
|
|
149
|
+
var p = u.length, h = u[p - 1], m, g;
|
|
150
|
+
for (h.cacheItem.delete(h.arg), g = p - 2; g >= 0 && (h = u[g], m = h.cacheItem.get(h.arg), !m || !m.size); g--)
|
|
151
|
+
h.cacheItem.delete(h.arg);
|
|
152
|
+
}
|
|
153
|
+
a(l, "removeCachedResult");
|
|
154
|
+
function f(u, p) {
|
|
155
|
+
return u === p || u !== u && p !== p;
|
|
156
|
+
}
|
|
157
|
+
a(f, "isEqual");
|
|
158
|
+
}, { "map-or-similar": 1 }] }, {}, [3])(3);
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
// ../node_modules/picoquery/lib/string-util.js
|
|
163
|
+
var Pe = V((Re) => {
|
|
164
|
+
"use strict";
|
|
165
|
+
Object.defineProperty(Re, "__esModule", { value: !0 });
|
|
166
|
+
Re.encodeString = Gt;
|
|
167
|
+
var T = Array.from({ length: 256 }, (e, t) => "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase()), Xt = new Int8Array([
|
|
168
|
+
0,
|
|
169
|
+
0,
|
|
170
|
+
0,
|
|
171
|
+
0,
|
|
172
|
+
0,
|
|
173
|
+
0,
|
|
174
|
+
0,
|
|
175
|
+
0,
|
|
176
|
+
0,
|
|
177
|
+
0,
|
|
178
|
+
0,
|
|
179
|
+
0,
|
|
180
|
+
0,
|
|
181
|
+
0,
|
|
182
|
+
0,
|
|
183
|
+
0,
|
|
184
|
+
0,
|
|
185
|
+
0,
|
|
186
|
+
0,
|
|
187
|
+
0,
|
|
188
|
+
0,
|
|
189
|
+
0,
|
|
190
|
+
0,
|
|
191
|
+
0,
|
|
192
|
+
0,
|
|
193
|
+
0,
|
|
194
|
+
0,
|
|
195
|
+
0,
|
|
196
|
+
0,
|
|
197
|
+
0,
|
|
198
|
+
0,
|
|
199
|
+
0,
|
|
200
|
+
0,
|
|
201
|
+
1,
|
|
202
|
+
0,
|
|
203
|
+
0,
|
|
204
|
+
0,
|
|
205
|
+
0,
|
|
206
|
+
0,
|
|
207
|
+
1,
|
|
208
|
+
1,
|
|
209
|
+
1,
|
|
210
|
+
1,
|
|
211
|
+
0,
|
|
212
|
+
0,
|
|
213
|
+
1,
|
|
214
|
+
1,
|
|
215
|
+
0,
|
|
216
|
+
1,
|
|
217
|
+
1,
|
|
218
|
+
1,
|
|
219
|
+
1,
|
|
220
|
+
1,
|
|
221
|
+
1,
|
|
222
|
+
1,
|
|
223
|
+
1,
|
|
224
|
+
1,
|
|
225
|
+
1,
|
|
226
|
+
0,
|
|
227
|
+
0,
|
|
228
|
+
0,
|
|
229
|
+
0,
|
|
230
|
+
0,
|
|
231
|
+
0,
|
|
232
|
+
0,
|
|
233
|
+
1,
|
|
234
|
+
1,
|
|
235
|
+
1,
|
|
236
|
+
1,
|
|
237
|
+
1,
|
|
238
|
+
1,
|
|
239
|
+
1,
|
|
240
|
+
1,
|
|
241
|
+
1,
|
|
242
|
+
1,
|
|
243
|
+
1,
|
|
244
|
+
1,
|
|
245
|
+
1,
|
|
246
|
+
1,
|
|
247
|
+
1,
|
|
248
|
+
1,
|
|
249
|
+
1,
|
|
250
|
+
1,
|
|
251
|
+
1,
|
|
252
|
+
1,
|
|
253
|
+
1,
|
|
254
|
+
1,
|
|
255
|
+
1,
|
|
256
|
+
1,
|
|
257
|
+
1,
|
|
258
|
+
1,
|
|
259
|
+
0,
|
|
260
|
+
0,
|
|
261
|
+
0,
|
|
262
|
+
0,
|
|
263
|
+
1,
|
|
264
|
+
0,
|
|
265
|
+
1,
|
|
266
|
+
1,
|
|
267
|
+
1,
|
|
268
|
+
1,
|
|
269
|
+
1,
|
|
270
|
+
1,
|
|
271
|
+
1,
|
|
272
|
+
1,
|
|
273
|
+
1,
|
|
274
|
+
1,
|
|
275
|
+
1,
|
|
276
|
+
1,
|
|
277
|
+
1,
|
|
278
|
+
1,
|
|
279
|
+
1,
|
|
280
|
+
1,
|
|
281
|
+
1,
|
|
282
|
+
1,
|
|
283
|
+
1,
|
|
284
|
+
1,
|
|
285
|
+
1,
|
|
286
|
+
1,
|
|
287
|
+
1,
|
|
288
|
+
1,
|
|
289
|
+
1,
|
|
290
|
+
1,
|
|
291
|
+
0,
|
|
292
|
+
0,
|
|
293
|
+
0,
|
|
294
|
+
1,
|
|
295
|
+
0
|
|
296
|
+
]);
|
|
297
|
+
function Gt(e) {
|
|
298
|
+
let t = e.length;
|
|
299
|
+
if (t === 0)
|
|
300
|
+
return "";
|
|
301
|
+
let r = "", n = 0, o = 0;
|
|
302
|
+
e: for (; o < t; o++) {
|
|
303
|
+
let i = e.charCodeAt(o);
|
|
304
|
+
for (; i < 128; ) {
|
|
305
|
+
if (Xt[i] !== 1 && (n < o && (r += e.slice(n, o)), n = o + 1, r += T[i]), ++o === t)
|
|
306
|
+
break e;
|
|
307
|
+
i = e.charCodeAt(o);
|
|
308
|
+
}
|
|
309
|
+
if (n < o && (r += e.slice(n, o)), i < 2048) {
|
|
310
|
+
n = o + 1, r += T[192 | i >> 6] + T[128 | i & 63];
|
|
311
|
+
continue;
|
|
312
|
+
}
|
|
313
|
+
if (i < 55296 || i >= 57344) {
|
|
314
|
+
n = o + 1, r += T[224 | i >> 12] + T[128 | i >> 6 & 63] + T[128 | i & 63];
|
|
315
|
+
continue;
|
|
316
|
+
}
|
|
317
|
+
if (++o, o >= t)
|
|
318
|
+
throw new Error("URI malformed");
|
|
319
|
+
let c = e.charCodeAt(o) & 1023;
|
|
320
|
+
n = o + 1, i = 65536 + ((i & 1023) << 10 | c), r += T[240 | i >> 18] + T[128 | i >> 12 & 63] + T[128 | i >> 6 & 63] + T[128 | i & 63];
|
|
321
|
+
}
|
|
322
|
+
return n === 0 ? e : n < t ? r + e.slice(n) : r;
|
|
323
|
+
}
|
|
324
|
+
a(Gt, "encodeString");
|
|
325
|
+
});
|
|
326
|
+
|
|
327
|
+
// ../node_modules/picoquery/lib/shared.js
|
|
328
|
+
var ae = V((L) => {
|
|
329
|
+
"use strict";
|
|
330
|
+
Object.defineProperty(L, "__esModule", { value: !0 });
|
|
331
|
+
L.defaultOptions = L.defaultShouldSerializeObject = L.defaultValueSerializer = void 0;
|
|
332
|
+
var we = Pe(), Zt = /* @__PURE__ */ a((e) => {
|
|
333
|
+
switch (typeof e) {
|
|
334
|
+
case "string":
|
|
335
|
+
return (0, we.encodeString)(e);
|
|
336
|
+
case "bigint":
|
|
337
|
+
case "boolean":
|
|
338
|
+
return "" + e;
|
|
339
|
+
case "number":
|
|
340
|
+
if (Number.isFinite(e))
|
|
341
|
+
return e < 1e21 ? "" + e : (0, we.encodeString)("" + e);
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
return e instanceof Date ? (0, we.encodeString)(e.toISOString()) : "";
|
|
345
|
+
}, "defaultValueSerializer");
|
|
346
|
+
L.defaultValueSerializer = Zt;
|
|
347
|
+
var er = /* @__PURE__ */ a((e) => e instanceof Date, "defaultShouldSerializeObject");
|
|
348
|
+
L.defaultShouldSerializeObject = er;
|
|
349
|
+
var ut = /* @__PURE__ */ a((e) => e, "identityFunc");
|
|
350
|
+
L.defaultOptions = {
|
|
351
|
+
nesting: !0,
|
|
352
|
+
nestingSyntax: "dot",
|
|
353
|
+
arrayRepeat: !1,
|
|
354
|
+
arrayRepeatSyntax: "repeat",
|
|
355
|
+
delimiter: 38,
|
|
356
|
+
valueDeserializer: ut,
|
|
357
|
+
valueSerializer: L.defaultValueSerializer,
|
|
358
|
+
keyDeserializer: ut,
|
|
359
|
+
shouldSerializeObject: L.defaultShouldSerializeObject
|
|
360
|
+
};
|
|
361
|
+
});
|
|
362
|
+
|
|
363
|
+
// ../node_modules/picoquery/lib/object-util.js
|
|
364
|
+
var Ne = V((ie) => {
|
|
365
|
+
"use strict";
|
|
366
|
+
Object.defineProperty(ie, "__esModule", { value: !0 });
|
|
367
|
+
ie.getDeepObject = nr;
|
|
368
|
+
ie.stringifyObject = ft;
|
|
369
|
+
var W = ae(), tr = Pe();
|
|
370
|
+
function rr(e) {
|
|
371
|
+
return e === "__proto__" || e === "constructor" || e === "prototype";
|
|
372
|
+
}
|
|
373
|
+
a(rr, "isPrototypeKey");
|
|
374
|
+
function nr(e, t, r, n, o) {
|
|
375
|
+
if (rr(t))
|
|
376
|
+
return e;
|
|
377
|
+
let i = e[t];
|
|
378
|
+
return typeof i == "object" && i !== null ? i : !n && (o || typeof r == "number" || typeof r == "string" && r * 0 === 0 && r.indexOf(".") ===
|
|
379
|
+
-1) ? e[t] = [] : e[t] = {};
|
|
380
|
+
}
|
|
381
|
+
a(nr, "getDeepObject");
|
|
382
|
+
var or = 20, ar = "[]", ir = "[", sr = "]", lr = ".";
|
|
383
|
+
function ft(e, t, r = 0, n, o) {
|
|
384
|
+
let { nestingSyntax: i = W.defaultOptions.nestingSyntax, arrayRepeat: c = W.defaultOptions.arrayRepeat, arrayRepeatSyntax: s = W.defaultOptions.
|
|
385
|
+
arrayRepeatSyntax, nesting: l = W.defaultOptions.nesting, delimiter: f = W.defaultOptions.delimiter, valueSerializer: u = W.defaultOptions.
|
|
386
|
+
valueSerializer, shouldSerializeObject: p = W.defaultOptions.shouldSerializeObject } = t, h = typeof f == "number" ? String.fromCharCode(
|
|
387
|
+
f) : f, m = o === !0 && c, g = i === "dot" || i === "js" && !o;
|
|
388
|
+
if (r > or)
|
|
389
|
+
return "";
|
|
390
|
+
let d = "", v = !0, R = !1;
|
|
391
|
+
for (let b in e) {
|
|
392
|
+
let x = e[b], O;
|
|
393
|
+
n ? (O = n, m ? s === "bracket" && (O += ar) : g ? (O += lr, O += b) : (O += ir, O += b, O += sr)) : O = b, v || (d += h), typeof x ==
|
|
394
|
+
"object" && x !== null && !p(x) ? (R = x.pop !== void 0, (l || c && R) && (d += ft(x, t, r + 1, O, R))) : (d += (0, tr.encodeString)(O),
|
|
395
|
+
d += "=", d += u(x, b)), v && (v = !1);
|
|
396
|
+
}
|
|
397
|
+
return d;
|
|
398
|
+
}
|
|
399
|
+
a(ft, "stringifyObject");
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
// ../node_modules/fast-decode-uri-component/index.js
|
|
403
|
+
var mt = V((wn, dt) => {
|
|
404
|
+
"use strict";
|
|
405
|
+
var pt = 12, cr = 0, Se = [
|
|
406
|
+
// The first part of the table maps bytes to character to a transition.
|
|
407
|
+
0,
|
|
408
|
+
0,
|
|
409
|
+
0,
|
|
410
|
+
0,
|
|
411
|
+
0,
|
|
412
|
+
0,
|
|
413
|
+
0,
|
|
414
|
+
0,
|
|
415
|
+
0,
|
|
416
|
+
0,
|
|
417
|
+
0,
|
|
418
|
+
0,
|
|
419
|
+
0,
|
|
420
|
+
0,
|
|
421
|
+
0,
|
|
422
|
+
0,
|
|
423
|
+
0,
|
|
424
|
+
0,
|
|
425
|
+
0,
|
|
426
|
+
0,
|
|
427
|
+
0,
|
|
428
|
+
0,
|
|
429
|
+
0,
|
|
430
|
+
0,
|
|
431
|
+
0,
|
|
432
|
+
0,
|
|
433
|
+
0,
|
|
434
|
+
0,
|
|
435
|
+
0,
|
|
436
|
+
0,
|
|
437
|
+
0,
|
|
438
|
+
0,
|
|
439
|
+
0,
|
|
440
|
+
0,
|
|
441
|
+
0,
|
|
442
|
+
0,
|
|
443
|
+
0,
|
|
444
|
+
0,
|
|
445
|
+
0,
|
|
446
|
+
0,
|
|
447
|
+
0,
|
|
448
|
+
0,
|
|
449
|
+
0,
|
|
450
|
+
0,
|
|
451
|
+
0,
|
|
452
|
+
0,
|
|
453
|
+
0,
|
|
454
|
+
0,
|
|
455
|
+
0,
|
|
456
|
+
0,
|
|
457
|
+
0,
|
|
458
|
+
0,
|
|
459
|
+
0,
|
|
460
|
+
0,
|
|
461
|
+
0,
|
|
462
|
+
0,
|
|
463
|
+
0,
|
|
464
|
+
0,
|
|
465
|
+
0,
|
|
466
|
+
0,
|
|
467
|
+
0,
|
|
468
|
+
0,
|
|
469
|
+
0,
|
|
470
|
+
0,
|
|
471
|
+
0,
|
|
472
|
+
0,
|
|
473
|
+
0,
|
|
474
|
+
0,
|
|
475
|
+
0,
|
|
476
|
+
0,
|
|
477
|
+
0,
|
|
478
|
+
0,
|
|
479
|
+
0,
|
|
480
|
+
0,
|
|
481
|
+
0,
|
|
482
|
+
0,
|
|
483
|
+
0,
|
|
484
|
+
0,
|
|
485
|
+
0,
|
|
486
|
+
0,
|
|
487
|
+
0,
|
|
488
|
+
0,
|
|
489
|
+
0,
|
|
490
|
+
0,
|
|
491
|
+
0,
|
|
492
|
+
0,
|
|
493
|
+
0,
|
|
494
|
+
0,
|
|
495
|
+
0,
|
|
496
|
+
0,
|
|
497
|
+
0,
|
|
498
|
+
0,
|
|
499
|
+
0,
|
|
500
|
+
0,
|
|
501
|
+
0,
|
|
502
|
+
0,
|
|
503
|
+
0,
|
|
504
|
+
0,
|
|
505
|
+
0,
|
|
506
|
+
0,
|
|
507
|
+
0,
|
|
508
|
+
0,
|
|
509
|
+
0,
|
|
510
|
+
0,
|
|
511
|
+
0,
|
|
512
|
+
0,
|
|
513
|
+
0,
|
|
514
|
+
0,
|
|
515
|
+
0,
|
|
516
|
+
0,
|
|
517
|
+
0,
|
|
518
|
+
0,
|
|
519
|
+
0,
|
|
520
|
+
0,
|
|
521
|
+
0,
|
|
522
|
+
0,
|
|
523
|
+
0,
|
|
524
|
+
0,
|
|
525
|
+
0,
|
|
526
|
+
0,
|
|
527
|
+
0,
|
|
528
|
+
0,
|
|
529
|
+
0,
|
|
530
|
+
0,
|
|
531
|
+
0,
|
|
532
|
+
0,
|
|
533
|
+
0,
|
|
534
|
+
0,
|
|
535
|
+
1,
|
|
536
|
+
1,
|
|
537
|
+
1,
|
|
538
|
+
1,
|
|
539
|
+
1,
|
|
540
|
+
1,
|
|
541
|
+
1,
|
|
542
|
+
1,
|
|
543
|
+
1,
|
|
544
|
+
1,
|
|
545
|
+
1,
|
|
546
|
+
1,
|
|
547
|
+
1,
|
|
548
|
+
1,
|
|
549
|
+
1,
|
|
550
|
+
1,
|
|
551
|
+
2,
|
|
552
|
+
2,
|
|
553
|
+
2,
|
|
554
|
+
2,
|
|
555
|
+
2,
|
|
556
|
+
2,
|
|
557
|
+
2,
|
|
558
|
+
2,
|
|
559
|
+
2,
|
|
560
|
+
2,
|
|
561
|
+
2,
|
|
562
|
+
2,
|
|
563
|
+
2,
|
|
564
|
+
2,
|
|
565
|
+
2,
|
|
566
|
+
2,
|
|
567
|
+
3,
|
|
568
|
+
3,
|
|
569
|
+
3,
|
|
570
|
+
3,
|
|
571
|
+
3,
|
|
572
|
+
3,
|
|
573
|
+
3,
|
|
574
|
+
3,
|
|
575
|
+
3,
|
|
576
|
+
3,
|
|
577
|
+
3,
|
|
578
|
+
3,
|
|
579
|
+
3,
|
|
580
|
+
3,
|
|
581
|
+
3,
|
|
582
|
+
3,
|
|
583
|
+
3,
|
|
584
|
+
3,
|
|
585
|
+
3,
|
|
586
|
+
3,
|
|
587
|
+
3,
|
|
588
|
+
3,
|
|
589
|
+
3,
|
|
590
|
+
3,
|
|
591
|
+
3,
|
|
592
|
+
3,
|
|
593
|
+
3,
|
|
594
|
+
3,
|
|
595
|
+
3,
|
|
596
|
+
3,
|
|
597
|
+
3,
|
|
598
|
+
3,
|
|
599
|
+
4,
|
|
600
|
+
4,
|
|
601
|
+
5,
|
|
602
|
+
5,
|
|
603
|
+
5,
|
|
604
|
+
5,
|
|
605
|
+
5,
|
|
606
|
+
5,
|
|
607
|
+
5,
|
|
608
|
+
5,
|
|
609
|
+
5,
|
|
610
|
+
5,
|
|
611
|
+
5,
|
|
612
|
+
5,
|
|
613
|
+
5,
|
|
614
|
+
5,
|
|
615
|
+
5,
|
|
616
|
+
5,
|
|
617
|
+
5,
|
|
618
|
+
5,
|
|
619
|
+
5,
|
|
620
|
+
5,
|
|
621
|
+
5,
|
|
622
|
+
5,
|
|
623
|
+
5,
|
|
624
|
+
5,
|
|
625
|
+
5,
|
|
626
|
+
5,
|
|
627
|
+
5,
|
|
628
|
+
5,
|
|
629
|
+
5,
|
|
630
|
+
5,
|
|
631
|
+
6,
|
|
632
|
+
7,
|
|
633
|
+
7,
|
|
634
|
+
7,
|
|
635
|
+
7,
|
|
636
|
+
7,
|
|
637
|
+
7,
|
|
638
|
+
7,
|
|
639
|
+
7,
|
|
640
|
+
7,
|
|
641
|
+
7,
|
|
642
|
+
7,
|
|
643
|
+
7,
|
|
644
|
+
8,
|
|
645
|
+
7,
|
|
646
|
+
7,
|
|
647
|
+
10,
|
|
648
|
+
9,
|
|
649
|
+
9,
|
|
650
|
+
9,
|
|
651
|
+
11,
|
|
652
|
+
4,
|
|
653
|
+
4,
|
|
654
|
+
4,
|
|
655
|
+
4,
|
|
656
|
+
4,
|
|
657
|
+
4,
|
|
658
|
+
4,
|
|
659
|
+
4,
|
|
660
|
+
4,
|
|
661
|
+
4,
|
|
662
|
+
4,
|
|
663
|
+
// The second part of the table maps a state to a new state when adding a
|
|
664
|
+
// transition.
|
|
665
|
+
0,
|
|
666
|
+
0,
|
|
667
|
+
0,
|
|
668
|
+
0,
|
|
669
|
+
0,
|
|
670
|
+
0,
|
|
671
|
+
0,
|
|
672
|
+
0,
|
|
673
|
+
0,
|
|
674
|
+
0,
|
|
675
|
+
0,
|
|
676
|
+
0,
|
|
677
|
+
12,
|
|
678
|
+
0,
|
|
679
|
+
0,
|
|
680
|
+
0,
|
|
681
|
+
0,
|
|
682
|
+
24,
|
|
683
|
+
36,
|
|
684
|
+
48,
|
|
685
|
+
60,
|
|
686
|
+
72,
|
|
687
|
+
84,
|
|
688
|
+
96,
|
|
689
|
+
0,
|
|
690
|
+
12,
|
|
691
|
+
12,
|
|
692
|
+
12,
|
|
693
|
+
0,
|
|
694
|
+
0,
|
|
695
|
+
0,
|
|
696
|
+
0,
|
|
697
|
+
0,
|
|
698
|
+
0,
|
|
699
|
+
0,
|
|
700
|
+
0,
|
|
701
|
+
0,
|
|
702
|
+
0,
|
|
703
|
+
0,
|
|
704
|
+
24,
|
|
705
|
+
0,
|
|
706
|
+
0,
|
|
707
|
+
0,
|
|
708
|
+
0,
|
|
709
|
+
0,
|
|
710
|
+
0,
|
|
711
|
+
0,
|
|
712
|
+
0,
|
|
713
|
+
0,
|
|
714
|
+
24,
|
|
715
|
+
24,
|
|
716
|
+
24,
|
|
717
|
+
0,
|
|
718
|
+
0,
|
|
719
|
+
0,
|
|
720
|
+
0,
|
|
721
|
+
0,
|
|
722
|
+
0,
|
|
723
|
+
0,
|
|
724
|
+
0,
|
|
725
|
+
0,
|
|
726
|
+
24,
|
|
727
|
+
24,
|
|
728
|
+
0,
|
|
729
|
+
0,
|
|
730
|
+
0,
|
|
731
|
+
0,
|
|
732
|
+
0,
|
|
733
|
+
0,
|
|
734
|
+
0,
|
|
735
|
+
0,
|
|
736
|
+
0,
|
|
737
|
+
0,
|
|
738
|
+
48,
|
|
739
|
+
48,
|
|
740
|
+
48,
|
|
741
|
+
0,
|
|
742
|
+
0,
|
|
743
|
+
0,
|
|
744
|
+
0,
|
|
745
|
+
0,
|
|
746
|
+
0,
|
|
747
|
+
0,
|
|
748
|
+
0,
|
|
749
|
+
0,
|
|
750
|
+
0,
|
|
751
|
+
48,
|
|
752
|
+
48,
|
|
753
|
+
0,
|
|
754
|
+
0,
|
|
755
|
+
0,
|
|
756
|
+
0,
|
|
757
|
+
0,
|
|
758
|
+
0,
|
|
759
|
+
0,
|
|
760
|
+
0,
|
|
761
|
+
0,
|
|
762
|
+
48,
|
|
763
|
+
0,
|
|
764
|
+
0,
|
|
765
|
+
0,
|
|
766
|
+
0,
|
|
767
|
+
0,
|
|
768
|
+
0,
|
|
769
|
+
0,
|
|
770
|
+
0,
|
|
771
|
+
0,
|
|
772
|
+
0,
|
|
773
|
+
// The third part maps the current transition to a mask that needs to apply
|
|
774
|
+
// to the byte.
|
|
775
|
+
127,
|
|
776
|
+
63,
|
|
777
|
+
63,
|
|
778
|
+
63,
|
|
779
|
+
0,
|
|
780
|
+
31,
|
|
781
|
+
15,
|
|
782
|
+
15,
|
|
783
|
+
15,
|
|
784
|
+
7,
|
|
785
|
+
7,
|
|
786
|
+
7
|
|
787
|
+
];
|
|
788
|
+
function ur(e) {
|
|
789
|
+
var t = e.indexOf("%");
|
|
790
|
+
if (t === -1) return e;
|
|
791
|
+
for (var r = e.length, n = "", o = 0, i = 0, c = t, s = pt; t > -1 && t < r; ) {
|
|
792
|
+
var l = ht(e[t + 1], 4), f = ht(e[t + 2], 0), u = l | f, p = Se[u];
|
|
793
|
+
if (s = Se[256 + s + p], i = i << 6 | u & Se[364 + p], s === pt)
|
|
794
|
+
n += e.slice(o, c), n += i <= 65535 ? String.fromCharCode(i) : String.fromCharCode(
|
|
795
|
+
55232 + (i >> 10),
|
|
796
|
+
56320 + (i & 1023)
|
|
797
|
+
), i = 0, o = t + 3, t = c = e.indexOf("%", o);
|
|
798
|
+
else {
|
|
799
|
+
if (s === cr)
|
|
800
|
+
return null;
|
|
801
|
+
if (t += 3, t < r && e.charCodeAt(t) === 37) continue;
|
|
802
|
+
return null;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
return n + e.slice(o);
|
|
806
|
+
}
|
|
807
|
+
a(ur, "decodeURIComponent");
|
|
808
|
+
var fr = {
|
|
809
|
+
0: 0,
|
|
810
|
+
1: 1,
|
|
811
|
+
2: 2,
|
|
812
|
+
3: 3,
|
|
813
|
+
4: 4,
|
|
814
|
+
5: 5,
|
|
815
|
+
6: 6,
|
|
816
|
+
7: 7,
|
|
817
|
+
8: 8,
|
|
818
|
+
9: 9,
|
|
819
|
+
a: 10,
|
|
820
|
+
A: 10,
|
|
821
|
+
b: 11,
|
|
822
|
+
B: 11,
|
|
823
|
+
c: 12,
|
|
824
|
+
C: 12,
|
|
825
|
+
d: 13,
|
|
826
|
+
D: 13,
|
|
827
|
+
e: 14,
|
|
828
|
+
E: 14,
|
|
829
|
+
f: 15,
|
|
830
|
+
F: 15
|
|
831
|
+
};
|
|
832
|
+
function ht(e, t) {
|
|
833
|
+
var r = fr[e];
|
|
834
|
+
return r === void 0 ? 255 : r << t;
|
|
835
|
+
}
|
|
836
|
+
a(ht, "hexCodeToInt");
|
|
837
|
+
dt.exports = ur;
|
|
838
|
+
});
|
|
839
|
+
|
|
840
|
+
// ../node_modules/picoquery/lib/parse.js
|
|
841
|
+
var xt = V((I) => {
|
|
842
|
+
"use strict";
|
|
843
|
+
var pr = I && I.__importDefault || function(e) {
|
|
844
|
+
return e && e.__esModule ? e : { default: e };
|
|
845
|
+
};
|
|
846
|
+
Object.defineProperty(I, "__esModule", { value: !0 });
|
|
847
|
+
I.numberValueDeserializer = I.numberKeyDeserializer = void 0;
|
|
848
|
+
I.parse = mr;
|
|
849
|
+
var se = Ne(), F = ae(), gt = pr(mt()), hr = /* @__PURE__ */ a((e) => {
|
|
850
|
+
let t = Number(e);
|
|
851
|
+
return Number.isNaN(t) ? e : t;
|
|
852
|
+
}, "numberKeyDeserializer");
|
|
853
|
+
I.numberKeyDeserializer = hr;
|
|
854
|
+
var dr = /* @__PURE__ */ a((e) => {
|
|
855
|
+
let t = Number(e);
|
|
856
|
+
return Number.isNaN(t) ? e : t;
|
|
857
|
+
}, "numberValueDeserializer");
|
|
858
|
+
I.numberValueDeserializer = dr;
|
|
859
|
+
var yt = /\+/g, vt = /* @__PURE__ */ a(function() {
|
|
860
|
+
}, "Empty");
|
|
861
|
+
vt.prototype = /* @__PURE__ */ Object.create(null);
|
|
862
|
+
function le(e, t, r, n, o) {
|
|
863
|
+
let i = e.substring(t, r);
|
|
864
|
+
return n && (i = i.replace(yt, " ")), o && (i = (0, gt.default)(i) || i), i;
|
|
865
|
+
}
|
|
866
|
+
a(le, "computeKeySlice");
|
|
867
|
+
function mr(e, t) {
|
|
868
|
+
let { valueDeserializer: r = F.defaultOptions.valueDeserializer, keyDeserializer: n = F.defaultOptions.keyDeserializer, arrayRepeatSyntax: o = F.
|
|
869
|
+
defaultOptions.arrayRepeatSyntax, nesting: i = F.defaultOptions.nesting, arrayRepeat: c = F.defaultOptions.arrayRepeat, nestingSyntax: s = F.
|
|
870
|
+
defaultOptions.nestingSyntax, delimiter: l = F.defaultOptions.delimiter } = t ?? {}, f = typeof l == "string" ? l.charCodeAt(0) : l, u = s ===
|
|
871
|
+
"js", p = new vt();
|
|
872
|
+
if (typeof e != "string")
|
|
873
|
+
return p;
|
|
874
|
+
let h = e.length, m = "", g = -1, d = -1, v = -1, R = p, b, x = "", O = "", P = !1, q = !1, y = !1, E = !1, w = !1, j = !1, S = !1, _ = 0,
|
|
875
|
+
C = -1, D = -1, ge = -1;
|
|
876
|
+
for (let N = 0; N < h + 1; N++) {
|
|
877
|
+
if (_ = N !== h ? e.charCodeAt(N) : f, _ === f) {
|
|
878
|
+
if (S = d > g, S || (d = N), v !== d - 1 && (O = le(e, v + 1, C > -1 ? C : d, y, P), x = n(O), b !== void 0 && (R = (0, se.getDeepObject)(
|
|
879
|
+
R, b, x, u && w, u && j))), S || x !== "") {
|
|
880
|
+
S && (m = e.slice(d + 1, N), E && (m = m.replace(yt, " ")), q && (m = (0, gt.default)(m) || m));
|
|
881
|
+
let H = r(m, x);
|
|
882
|
+
if (c) {
|
|
883
|
+
let ne = R[x];
|
|
884
|
+
ne === void 0 ? C > -1 ? R[x] = [H] : R[x] = H : ne.pop ? ne.push(H) : R[x] = [ne, H];
|
|
885
|
+
} else
|
|
886
|
+
R[x] = H;
|
|
887
|
+
}
|
|
888
|
+
m = "", g = N, d = N, P = !1, q = !1, y = !1, E = !1, w = !1, j = !1, C = -1, v = N, R = p, b = void 0, x = "";
|
|
889
|
+
} else _ === 93 ? (c && o === "bracket" && ge === 91 && (C = D), i && (s === "index" || u) && d <= g && (v !== D && (O = le(e, v + 1, N,
|
|
890
|
+
y, P), x = n(O), b !== void 0 && (R = (0, se.getDeepObject)(R, b, x, void 0, u)), b = x, y = !1, P = !1), v = N, j = !0, w = !1)) : _ ===
|
|
891
|
+
46 ? i && (s === "dot" || u) && d <= g && (v !== D && (O = le(e, v + 1, N, y, P), x = n(O), b !== void 0 && (R = (0, se.getDeepObject)(
|
|
892
|
+
R, b, x, u)), b = x, y = !1, P = !1), w = !0, j = !1, v = N) : _ === 91 ? i && (s === "index" || u) && d <= g && (v !== D && (O = le(e,
|
|
893
|
+
v + 1, N, y, P), x = n(O), u && b !== void 0 && (R = (0, se.getDeepObject)(R, b, x, u)), b = x, y = !1, P = !1, w = !1, j = !0), v = N) :
|
|
894
|
+
_ === 61 ? d <= g ? d = N : q = !0 : _ === 43 ? d > g ? E = !0 : y = !0 : _ === 37 && (d > g ? q = !0 : P = !0);
|
|
895
|
+
D = N, ge = _;
|
|
896
|
+
}
|
|
897
|
+
return p;
|
|
898
|
+
}
|
|
899
|
+
a(mr, "parse");
|
|
900
|
+
});
|
|
901
|
+
|
|
902
|
+
// ../node_modules/picoquery/lib/stringify.js
|
|
903
|
+
var bt = V((_e) => {
|
|
904
|
+
"use strict";
|
|
905
|
+
Object.defineProperty(_e, "__esModule", { value: !0 });
|
|
906
|
+
_e.stringify = yr;
|
|
907
|
+
var gr = Ne();
|
|
908
|
+
function yr(e, t) {
|
|
909
|
+
if (e === null || typeof e != "object")
|
|
910
|
+
return "";
|
|
911
|
+
let r = t ?? {};
|
|
912
|
+
return (0, gr.stringifyObject)(e, r);
|
|
913
|
+
}
|
|
914
|
+
a(yr, "stringify");
|
|
915
|
+
});
|
|
916
|
+
|
|
917
|
+
// ../node_modules/picoquery/lib/main.js
|
|
918
|
+
var Ot = V((A) => {
|
|
919
|
+
"use strict";
|
|
920
|
+
var vr = A && A.__createBinding || (Object.create ? function(e, t, r, n) {
|
|
921
|
+
n === void 0 && (n = r);
|
|
922
|
+
var o = Object.getOwnPropertyDescriptor(t, r);
|
|
923
|
+
(!o || ("get" in o ? !t.__esModule : o.writable || o.configurable)) && (o = { enumerable: !0, get: /* @__PURE__ */ a(function() {
|
|
924
|
+
return t[r];
|
|
925
|
+
}, "get") }), Object.defineProperty(e, n, o);
|
|
926
|
+
} : function(e, t, r, n) {
|
|
927
|
+
n === void 0 && (n = r), e[n] = t[r];
|
|
928
|
+
}), xr = A && A.__exportStar || function(e, t) {
|
|
929
|
+
for (var r in e) r !== "default" && !Object.prototype.hasOwnProperty.call(t, r) && vr(t, e, r);
|
|
930
|
+
};
|
|
931
|
+
Object.defineProperty(A, "__esModule", { value: !0 });
|
|
932
|
+
A.stringify = A.parse = void 0;
|
|
933
|
+
var br = xt();
|
|
934
|
+
Object.defineProperty(A, "parse", { enumerable: !0, get: /* @__PURE__ */ a(function() {
|
|
935
|
+
return br.parse;
|
|
936
|
+
}, "get") });
|
|
937
|
+
var Or = bt();
|
|
938
|
+
Object.defineProperty(A, "stringify", { enumerable: !0, get: /* @__PURE__ */ a(function() {
|
|
939
|
+
return Or.stringify;
|
|
940
|
+
}, "get") });
|
|
941
|
+
xr(ae(), A);
|
|
942
|
+
});
|
|
943
|
+
|
|
944
|
+
// src/router/utils.ts
|
|
945
|
+
import { once as Er } from "storybook/internal/client-logger";
|
|
946
|
+
|
|
947
|
+
// ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
948
|
+
function k(e) {
|
|
949
|
+
if (typeof e != "object" || e == null)
|
|
950
|
+
return !1;
|
|
951
|
+
if (Object.getPrototypeOf(e) === null)
|
|
952
|
+
return !0;
|
|
953
|
+
if (e.toString() !== "[object Object]")
|
|
954
|
+
return !1;
|
|
955
|
+
let t = e;
|
|
956
|
+
for (; Object.getPrototypeOf(t) !== null; )
|
|
957
|
+
t = Object.getPrototypeOf(t);
|
|
958
|
+
return Object.getPrototypeOf(e) === t;
|
|
959
|
+
}
|
|
960
|
+
a(k, "isPlainObject");
|
|
961
|
+
|
|
962
|
+
// ../node_modules/es-toolkit/dist/compat/_internal/tags.mjs
|
|
963
|
+
var Ve = "[object RegExp]", Be = "[object String]", ze = "[object Number]", We = "[object Boolean]", ve = "[object Arguments]", Fe = "[objec\
|
|
964
|
+
t Symbol]", qe = "[object Date]", Ue = "[object Map]", $e = "[object Set]", He = "[object Array]", Ke = "[object Function]", Je = "[object A\
|
|
965
|
+
rrayBuffer]", oe = "[object Object]", Qe = "[object Error]", Ye = "[object DataView]", Xe = "[object Uint8Array]", Ge = "[object Uint8Clampe\
|
|
966
|
+
dArray]", Ze = "[object Uint16Array]", et = "[object Uint32Array]", tt = "[object BigUint64Array]", rt = "[object Int8Array]", nt = "[object\
|
|
967
|
+
Int16Array]", ot = "[object Int32Array]", at = "[object BigInt64Array]", it = "[object Float32Array]", st = "[object Float64Array]";
|
|
968
|
+
|
|
969
|
+
// ../node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
|
|
970
|
+
function xe(e) {
|
|
971
|
+
return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
|
|
972
|
+
}
|
|
973
|
+
a(xe, "getSymbols");
|
|
974
|
+
|
|
975
|
+
// ../node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
|
|
976
|
+
function be(e) {
|
|
977
|
+
return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
|
|
978
|
+
}
|
|
979
|
+
a(be, "getTag");
|
|
980
|
+
|
|
981
|
+
// ../node_modules/es-toolkit/dist/predicate/isEqual.mjs
|
|
982
|
+
function Oe(e, t) {
|
|
983
|
+
if (typeof e == typeof t)
|
|
984
|
+
switch (typeof e) {
|
|
985
|
+
case "bigint":
|
|
986
|
+
case "string":
|
|
987
|
+
case "boolean":
|
|
988
|
+
case "symbol":
|
|
989
|
+
case "undefined":
|
|
990
|
+
return e === t;
|
|
991
|
+
case "number":
|
|
992
|
+
return e === t || Object.is(e, t);
|
|
993
|
+
case "function":
|
|
994
|
+
return e === t;
|
|
995
|
+
case "object":
|
|
996
|
+
return M(e, t);
|
|
997
|
+
}
|
|
998
|
+
return M(e, t);
|
|
999
|
+
}
|
|
1000
|
+
a(Oe, "isEqual");
|
|
1001
|
+
function M(e, t, r) {
|
|
1002
|
+
if (Object.is(e, t))
|
|
1003
|
+
return !0;
|
|
1004
|
+
let n = be(e), o = be(t);
|
|
1005
|
+
if (n === ve && (n = oe), o === ve && (o = oe), n !== o)
|
|
1006
|
+
return !1;
|
|
1007
|
+
switch (n) {
|
|
1008
|
+
case Be:
|
|
1009
|
+
return e.toString() === t.toString();
|
|
1010
|
+
case ze: {
|
|
1011
|
+
let s = e.valueOf(), l = t.valueOf();
|
|
1012
|
+
return s === l || Number.isNaN(s) && Number.isNaN(l);
|
|
1013
|
+
}
|
|
1014
|
+
case We:
|
|
1015
|
+
case qe:
|
|
1016
|
+
case Fe:
|
|
1017
|
+
return Object.is(e.valueOf(), t.valueOf());
|
|
1018
|
+
case Ve:
|
|
1019
|
+
return e.source === t.source && e.flags === t.flags;
|
|
1020
|
+
case Ke:
|
|
1021
|
+
return e === t;
|
|
1022
|
+
}
|
|
1023
|
+
r = r ?? /* @__PURE__ */ new Map();
|
|
1024
|
+
let i = r.get(e), c = r.get(t);
|
|
1025
|
+
if (i != null && c != null)
|
|
1026
|
+
return i === t;
|
|
1027
|
+
r.set(e, t), r.set(t, e);
|
|
1028
|
+
try {
|
|
1029
|
+
switch (n) {
|
|
1030
|
+
case Ue: {
|
|
1031
|
+
if (e.size !== t.size)
|
|
1032
|
+
return !1;
|
|
1033
|
+
for (let [s, l] of e.entries())
|
|
1034
|
+
if (!t.has(s) || !M(l, t.get(s), r))
|
|
1035
|
+
return !1;
|
|
1036
|
+
return !0;
|
|
1037
|
+
}
|
|
1038
|
+
case $e: {
|
|
1039
|
+
if (e.size !== t.size)
|
|
1040
|
+
return !1;
|
|
1041
|
+
let s = Array.from(e.values()), l = Array.from(t.values());
|
|
1042
|
+
for (let f = 0; f < s.length; f++) {
|
|
1043
|
+
let u = s[f], p = l.findIndex((h) => M(u, h, r));
|
|
1044
|
+
if (p === -1)
|
|
1045
|
+
return !1;
|
|
1046
|
+
l.splice(p, 1);
|
|
1047
|
+
}
|
|
1048
|
+
return !0;
|
|
1049
|
+
}
|
|
1050
|
+
case He:
|
|
1051
|
+
case Xe:
|
|
1052
|
+
case Ge:
|
|
1053
|
+
case Ze:
|
|
1054
|
+
case et:
|
|
1055
|
+
case tt:
|
|
1056
|
+
case rt:
|
|
1057
|
+
case nt:
|
|
1058
|
+
case ot:
|
|
1059
|
+
case at:
|
|
1060
|
+
case it:
|
|
1061
|
+
case st: {
|
|
1062
|
+
if (typeof Buffer < "u" && Buffer.isBuffer(e) !== Buffer.isBuffer(t) || e.length !== t.length)
|
|
1063
|
+
return !1;
|
|
1064
|
+
for (let s = 0; s < e.length; s++)
|
|
1065
|
+
if (!M(e[s], t[s], r))
|
|
1066
|
+
return !1;
|
|
1067
|
+
return !0;
|
|
1068
|
+
}
|
|
1069
|
+
case Je:
|
|
1070
|
+
return e.byteLength !== t.byteLength ? !1 : M(new Uint8Array(e), new Uint8Array(t), r);
|
|
1071
|
+
case Ye:
|
|
1072
|
+
return e.byteLength !== t.byteLength || e.byteOffset !== t.byteOffset ? !1 : M(e.buffer, t.buffer, r);
|
|
1073
|
+
case Qe:
|
|
1074
|
+
return e.name === t.name && e.message === t.message;
|
|
1075
|
+
case oe: {
|
|
1076
|
+
if (!(M(e.constructor, t.constructor, r) || k(e) && k(t)))
|
|
1077
|
+
return !1;
|
|
1078
|
+
let l = [...Object.keys(e), ...xe(e)], f = [...Object.keys(t), ...xe(t)];
|
|
1079
|
+
if (l.length !== f.length)
|
|
1080
|
+
return !1;
|
|
1081
|
+
for (let u = 0; u < l.length; u++) {
|
|
1082
|
+
let p = l[u], h = e[p];
|
|
1083
|
+
if (!Object.prototype.hasOwnProperty.call(t, p))
|
|
1084
|
+
return !1;
|
|
1085
|
+
let m = t[p];
|
|
1086
|
+
if (!M(h, m, r))
|
|
1087
|
+
return !1;
|
|
1088
|
+
}
|
|
1089
|
+
return !0;
|
|
1090
|
+
}
|
|
1091
|
+
default:
|
|
1092
|
+
return !1;
|
|
1093
|
+
}
|
|
1094
|
+
} finally {
|
|
1095
|
+
r.delete(e), r.delete(t);
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
a(M, "areObjectsEqual");
|
|
1099
|
+
|
|
1100
|
+
// src/router/utils.ts
|
|
1101
|
+
var ue = Ie(ct(), 1), J = Ie(Ot(), 1);
|
|
1102
|
+
|
|
1103
|
+
// ../node_modules/ts-dedent/esm/index.js
|
|
1104
|
+
function Et(e) {
|
|
1105
|
+
for (var t = [], r = 1; r < arguments.length; r++)
|
|
1106
|
+
t[r - 1] = arguments[r];
|
|
1107
|
+
var n = Array.from(typeof e == "string" ? [e] : e);
|
|
1108
|
+
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
1109
|
+
var o = n.reduce(function(s, l) {
|
|
1110
|
+
var f = l.match(/\n([\t ]+|(?!\s).)/g);
|
|
1111
|
+
return f ? s.concat(f.map(function(u) {
|
|
1112
|
+
var p, h;
|
|
1113
|
+
return (h = (p = u.match(/[\t ]/g)) === null || p === void 0 ? void 0 : p.length) !== null && h !== void 0 ? h : 0;
|
|
1114
|
+
})) : s;
|
|
1115
|
+
}, []);
|
|
1116
|
+
if (o.length) {
|
|
1117
|
+
var i = new RegExp(`
|
|
1118
|
+
[ ]{` + Math.min.apply(Math, o) + "}", "g");
|
|
1119
|
+
n = n.map(function(s) {
|
|
1120
|
+
return s.replace(i, `
|
|
1121
|
+
`);
|
|
1122
|
+
});
|
|
1123
|
+
}
|
|
1124
|
+
n[0] = n[0].replace(/^\r?\n/, "");
|
|
1125
|
+
var c = n[0];
|
|
1126
|
+
return t.forEach(function(s, l) {
|
|
1127
|
+
var f = c.match(/(?:^|\n)( *)$/), u = f ? f[1] : "", p = s;
|
|
1128
|
+
typeof s == "string" && s.includes(`
|
|
1129
|
+
`) && (p = String(s).split(`
|
|
1130
|
+
`).map(function(h, m) {
|
|
1131
|
+
return m === 0 ? h : "" + u + h;
|
|
1132
|
+
}).join(`
|
|
1133
|
+
`)), c += p + n[l + 1];
|
|
1134
|
+
}), c;
|
|
1135
|
+
}
|
|
1136
|
+
a(Et, "dedent");
|
|
1137
|
+
|
|
1138
|
+
// src/router/utils.ts
|
|
1139
|
+
var Rr = /\/([^/]+)\/(?:(.*)_)?([^/]+)?/, Pt = (0, ue.default)(1e3)((e) => {
|
|
1140
|
+
let t = {
|
|
1141
|
+
viewMode: void 0,
|
|
1142
|
+
storyId: void 0,
|
|
1143
|
+
refId: void 0
|
|
1144
|
+
};
|
|
1145
|
+
if (e) {
|
|
1146
|
+
let [, r, n, o] = e.toLowerCase().match(Rr) || [];
|
|
1147
|
+
r && Object.assign(t, {
|
|
1148
|
+
viewMode: r,
|
|
1149
|
+
storyId: o,
|
|
1150
|
+
refId: n
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1153
|
+
return t;
|
|
1154
|
+
}), ce = Symbol("Deeply equal"), je = /* @__PURE__ */ a((e, t) => {
|
|
1155
|
+
if (typeof e != typeof t)
|
|
1156
|
+
return t;
|
|
1157
|
+
if (Oe(e, t))
|
|
1158
|
+
return ce;
|
|
1159
|
+
if (Array.isArray(e) && Array.isArray(t)) {
|
|
1160
|
+
let r = t.reduce((n, o, i) => {
|
|
1161
|
+
let c = je(e[i], o);
|
|
1162
|
+
return c !== ce && (n[i] = c), n;
|
|
1163
|
+
}, new Array(t.length));
|
|
1164
|
+
return t.length >= e.length ? r : r.concat(new Array(e.length - t.length).fill(void 0));
|
|
1165
|
+
}
|
|
1166
|
+
return k(e) && k(t) ? Object.keys({ ...e, ...t }).reduce((r, n) => {
|
|
1167
|
+
let o = je(e?.[n], t?.[n]);
|
|
1168
|
+
return o === ce ? r : Object.assign(r, { [n]: o });
|
|
1169
|
+
}, {}) : t;
|
|
1170
|
+
}, "deepDiff"), Rt = /^[a-zA-Z0-9 _-]*$/, Pr = /^-?[0-9]+(\.[0-9]+)?$/, wt = /^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i, Nt = /^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,
|
|
1171
|
+
Ae = /* @__PURE__ */ a((e = "", t) => e === null || e === "" || !Rt.test(e) ? !1 : t == null || t instanceof Date || typeof t == "number" ||
|
|
1172
|
+
typeof t == "boolean" ? !0 : typeof t == "string" ? Rt.test(t) || Pr.test(t) || wt.test(t) || Nt.test(t) : Array.isArray(t) ? t.every((r) => Ae(
|
|
1173
|
+
e, r)) : k(t) ? Object.entries(t).every(([r, n]) => Ae(r, n)) : !1, "validateArgs"), De = /* @__PURE__ */ a((e) => e === void 0 ? "!undefine\
|
|
1174
|
+
d" : e === null ? "!null" : typeof e == "string" ? wt.test(e) ? `!hex(${e.slice(1)})` : Nt.test(e) ? `!${e.replace(/[\s%]/g, "")}` : e : typeof e ==
|
|
1175
|
+
"boolean" ? `!${e}` : e instanceof Date ? `!date(${e.toISOString()})` : Array.isArray(e) ? e.map(De) : k(e) ? Object.entries(e).reduce(
|
|
1176
|
+
(t, [r, n]) => Object.assign(t, { [r]: De(n) }),
|
|
1177
|
+
{}
|
|
1178
|
+
) : e, "encodeSpecialValues"), wr = /* @__PURE__ */ a((e) => {
|
|
1179
|
+
switch (e) {
|
|
1180
|
+
case "%20":
|
|
1181
|
+
return "+";
|
|
1182
|
+
case "%5B":
|
|
1183
|
+
return "[";
|
|
1184
|
+
case "%5D":
|
|
1185
|
+
return "]";
|
|
1186
|
+
case "%2C":
|
|
1187
|
+
return ",";
|
|
1188
|
+
case "%3A":
|
|
1189
|
+
return ":";
|
|
1190
|
+
}
|
|
1191
|
+
return e;
|
|
1192
|
+
}, "decodeKnownQueryChar"), Nr = /%[0-9A-F]{2}/g, Vn = /* @__PURE__ */ a((e, t) => {
|
|
1193
|
+
let r = je(e, t);
|
|
1194
|
+
if (!r || r === ce)
|
|
1195
|
+
return "";
|
|
1196
|
+
let n = Object.entries(r).reduce((o, [i, c]) => Ae(i, c) ? Object.assign(o, { [i]: c }) : (Er.warn(Et`
|
|
1197
|
+
Omitted potentially unsafe URL args.
|
|
1198
|
+
|
|
1199
|
+
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
|
|
1200
|
+
`), o), {});
|
|
1201
|
+
return (0, J.stringify)(De(n), {
|
|
1202
|
+
delimiter: ";",
|
|
1203
|
+
// we don't actually create multiple query params
|
|
1204
|
+
nesting: !0,
|
|
1205
|
+
nestingSyntax: "js"
|
|
1206
|
+
// encode objects using dot notation: obj.key=val
|
|
1207
|
+
}).replace(Nr, wr).split(";").map((o) => o.replace("=", ":")).join(";");
|
|
1208
|
+
}, "buildArgsParam"), Sr = (0, ue.default)(1e3)((e) => e !== void 0 ? (0, J.parse)(e) : {}), St = /* @__PURE__ */ a((e) => Sr(e.search ? e.search.
|
|
1209
|
+
slice(1) : ""), "queryFromLocation"), Bn = /* @__PURE__ */ a((e) => {
|
|
1210
|
+
let t = (0, J.stringify)(e);
|
|
1211
|
+
return t ? "?" + t : "";
|
|
1212
|
+
}, "stringifyQuery"), _t = (0, ue.default)(1e3)((e, t, r = !0) => {
|
|
1213
|
+
if (r) {
|
|
1214
|
+
if (typeof t != "string")
|
|
1215
|
+
throw new Error("startsWith only works with string targets");
|
|
1216
|
+
return e && e.startsWith(t) ? { path: e } : null;
|
|
1217
|
+
}
|
|
1218
|
+
let n = typeof t == "string" && e === t, o = e && t && e.match(t);
|
|
1219
|
+
return n || o ? { path: e } : null;
|
|
1220
|
+
});
|
|
1221
|
+
|
|
1222
|
+
// src/router/router.tsx
|
|
1223
|
+
import re, { useCallback as Yr } from "react";
|
|
1224
|
+
|
|
1225
|
+
// ../node_modules/@storybook/global/dist/index.mjs
|
|
1226
|
+
var jt = (() => {
|
|
1227
|
+
let e;
|
|
1228
|
+
return typeof window < "u" ? e = window : typeof globalThis < "u" ? e = globalThis : typeof global < "u" ? e = global : typeof self < "u" ?
|
|
1229
|
+
e = self : e = {}, e;
|
|
1230
|
+
})();
|
|
1231
|
+
|
|
1232
|
+
// ../node_modules/react-router-dom/index.js
|
|
1233
|
+
import { useRef as zr, useState as Wr, useLayoutEffect as Fr, createElement as ke, forwardRef as zt, useCallback as qr, useMemo as Eo } from "react";
|
|
1234
|
+
|
|
1235
|
+
// ../node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1236
|
+
function Q() {
|
|
1237
|
+
return Q = Object.assign ? Object.assign.bind() : function(e) {
|
|
1238
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1239
|
+
var r = arguments[t];
|
|
1240
|
+
for (var n in r) ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
1241
|
+
}
|
|
1242
|
+
return e;
|
|
1243
|
+
}, Q.apply(null, arguments);
|
|
1244
|
+
}
|
|
1245
|
+
a(Q, "_extends");
|
|
1246
|
+
|
|
1247
|
+
// ../node_modules/history/index.js
|
|
1248
|
+
var B;
|
|
1249
|
+
(function(e) {
|
|
1250
|
+
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
1251
|
+
})(B || (B = {}));
|
|
1252
|
+
var At = function(e) {
|
|
1253
|
+
return Object.freeze(e);
|
|
1254
|
+
};
|
|
1255
|
+
function _r(e, t) {
|
|
1256
|
+
if (!e) {
|
|
1257
|
+
typeof console < "u" && console.warn(t);
|
|
1258
|
+
try {
|
|
1259
|
+
throw new Error(t);
|
|
1260
|
+
} catch {
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
a(_r, "warning");
|
|
1265
|
+
var Dt = "beforeunload";
|
|
1266
|
+
var jr = "popstate";
|
|
1267
|
+
function Ct(e) {
|
|
1268
|
+
e === void 0 && (e = {});
|
|
1269
|
+
var t = e, r = t.window, n = r === void 0 ? document.defaultView : r, o = n.history;
|
|
1270
|
+
function i() {
|
|
1271
|
+
var y = n.location, E = y.pathname, w = y.search, j = y.hash, S = o.state || {};
|
|
1272
|
+
return [S.idx, At({
|
|
1273
|
+
pathname: E,
|
|
1274
|
+
search: w,
|
|
1275
|
+
hash: j,
|
|
1276
|
+
state: S.usr || null,
|
|
1277
|
+
key: S.key || "default"
|
|
1278
|
+
})];
|
|
1279
|
+
}
|
|
1280
|
+
a(i, "getIndexAndLocation");
|
|
1281
|
+
var c = null;
|
|
1282
|
+
function s() {
|
|
1283
|
+
if (c)
|
|
1284
|
+
m.call(c), c = null;
|
|
1285
|
+
else {
|
|
1286
|
+
var y = B.Pop, E = i(), w = E[0], j = E[1];
|
|
1287
|
+
if (m.length)
|
|
1288
|
+
if (w != null) {
|
|
1289
|
+
var S = u - w;
|
|
1290
|
+
S && (c = {
|
|
1291
|
+
action: y,
|
|
1292
|
+
location: j,
|
|
1293
|
+
retry: /* @__PURE__ */ a(function() {
|
|
1294
|
+
P(S * -1);
|
|
1295
|
+
}, "retry")
|
|
1296
|
+
}, P(S));
|
|
1297
|
+
} else
|
|
1298
|
+
_r(
|
|
1299
|
+
!1,
|
|
1300
|
+
// TODO: Write up a doc that explains our blocking strategy in
|
|
1301
|
+
// detail and link to it here so people can understand better what
|
|
1302
|
+
// is going on and how to avoid it.
|
|
1303
|
+
"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silentl\
|
|
1304
|
+
y in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) t\
|
|
1305
|
+
o avoid this situation."
|
|
1306
|
+
);
|
|
1307
|
+
else
|
|
1308
|
+
b(y);
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
a(s, "handlePop"), n.addEventListener(jr, s);
|
|
1312
|
+
var l = B.Pop, f = i(), u = f[0], p = f[1], h = Lt(), m = Lt();
|
|
1313
|
+
u == null && (u = 0, o.replaceState(Q({}, o.state, {
|
|
1314
|
+
idx: u
|
|
1315
|
+
}), ""));
|
|
1316
|
+
function g(y) {
|
|
1317
|
+
return typeof y == "string" ? y : fe(y);
|
|
1318
|
+
}
|
|
1319
|
+
a(g, "createHref");
|
|
1320
|
+
function d(y, E) {
|
|
1321
|
+
return E === void 0 && (E = null), At(Q({
|
|
1322
|
+
pathname: p.pathname,
|
|
1323
|
+
hash: "",
|
|
1324
|
+
search: ""
|
|
1325
|
+
}, typeof y == "string" ? U(y) : y, {
|
|
1326
|
+
state: E,
|
|
1327
|
+
key: Ar()
|
|
1328
|
+
}));
|
|
1329
|
+
}
|
|
1330
|
+
a(d, "getNextLocation");
|
|
1331
|
+
function v(y, E) {
|
|
1332
|
+
return [{
|
|
1333
|
+
usr: y.state,
|
|
1334
|
+
key: y.key,
|
|
1335
|
+
idx: E
|
|
1336
|
+
}, g(y)];
|
|
1337
|
+
}
|
|
1338
|
+
a(v, "getHistoryStateAndUrl");
|
|
1339
|
+
function R(y, E, w) {
|
|
1340
|
+
return !m.length || (m.call({
|
|
1341
|
+
action: y,
|
|
1342
|
+
location: E,
|
|
1343
|
+
retry: w
|
|
1344
|
+
}), !1);
|
|
1345
|
+
}
|
|
1346
|
+
a(R, "allowTx");
|
|
1347
|
+
function b(y) {
|
|
1348
|
+
l = y;
|
|
1349
|
+
var E = i();
|
|
1350
|
+
u = E[0], p = E[1], h.call({
|
|
1351
|
+
action: l,
|
|
1352
|
+
location: p
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
a(b, "applyTx");
|
|
1356
|
+
function x(y, E) {
|
|
1357
|
+
var w = B.Push, j = d(y, E);
|
|
1358
|
+
function S() {
|
|
1359
|
+
x(y, E);
|
|
1360
|
+
}
|
|
1361
|
+
if (a(S, "retry"), R(w, j, S)) {
|
|
1362
|
+
var _ = v(j, u + 1), C = _[0], D = _[1];
|
|
1363
|
+
try {
|
|
1364
|
+
o.pushState(C, "", D);
|
|
1365
|
+
} catch {
|
|
1366
|
+
n.location.assign(D);
|
|
1367
|
+
}
|
|
1368
|
+
b(w);
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
a(x, "push");
|
|
1372
|
+
function O(y, E) {
|
|
1373
|
+
var w = B.Replace, j = d(y, E);
|
|
1374
|
+
function S() {
|
|
1375
|
+
O(y, E);
|
|
1376
|
+
}
|
|
1377
|
+
if (a(S, "retry"), R(w, j, S)) {
|
|
1378
|
+
var _ = v(j, u), C = _[0], D = _[1];
|
|
1379
|
+
o.replaceState(C, "", D), b(w);
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
a(O, "replace");
|
|
1383
|
+
function P(y) {
|
|
1384
|
+
o.go(y);
|
|
1385
|
+
}
|
|
1386
|
+
a(P, "go");
|
|
1387
|
+
var q = {
|
|
1388
|
+
get action() {
|
|
1389
|
+
return l;
|
|
1390
|
+
},
|
|
1391
|
+
get location() {
|
|
1392
|
+
return p;
|
|
1393
|
+
},
|
|
1394
|
+
createHref: g,
|
|
1395
|
+
push: x,
|
|
1396
|
+
replace: O,
|
|
1397
|
+
go: P,
|
|
1398
|
+
back: /* @__PURE__ */ a(function() {
|
|
1399
|
+
P(-1);
|
|
1400
|
+
}, "back"),
|
|
1401
|
+
forward: /* @__PURE__ */ a(function() {
|
|
1402
|
+
P(1);
|
|
1403
|
+
}, "forward"),
|
|
1404
|
+
listen: /* @__PURE__ */ a(function(E) {
|
|
1405
|
+
return h.push(E);
|
|
1406
|
+
}, "listen"),
|
|
1407
|
+
block: /* @__PURE__ */ a(function(E) {
|
|
1408
|
+
var w = m.push(E);
|
|
1409
|
+
return m.length === 1 && n.addEventListener(Dt, Tt), function() {
|
|
1410
|
+
w(), m.length || n.removeEventListener(Dt, Tt);
|
|
1411
|
+
};
|
|
1412
|
+
}, "block")
|
|
1413
|
+
};
|
|
1414
|
+
return q;
|
|
1415
|
+
}
|
|
1416
|
+
a(Ct, "createBrowserHistory");
|
|
1417
|
+
function Tt(e) {
|
|
1418
|
+
e.preventDefault(), e.returnValue = "";
|
|
1419
|
+
}
|
|
1420
|
+
a(Tt, "promptBeforeUnload");
|
|
1421
|
+
function Lt() {
|
|
1422
|
+
var e = [];
|
|
1423
|
+
return {
|
|
1424
|
+
get length() {
|
|
1425
|
+
return e.length;
|
|
1426
|
+
},
|
|
1427
|
+
push: /* @__PURE__ */ a(function(r) {
|
|
1428
|
+
return e.push(r), function() {
|
|
1429
|
+
e = e.filter(function(n) {
|
|
1430
|
+
return n !== r;
|
|
1431
|
+
});
|
|
1432
|
+
};
|
|
1433
|
+
}, "push"),
|
|
1434
|
+
call: /* @__PURE__ */ a(function(r) {
|
|
1435
|
+
e.forEach(function(n) {
|
|
1436
|
+
return n && n(r);
|
|
1437
|
+
});
|
|
1438
|
+
}, "call")
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1441
|
+
a(Lt, "createEvents");
|
|
1442
|
+
function Ar() {
|
|
1443
|
+
return Math.random().toString(36).substr(2, 8);
|
|
1444
|
+
}
|
|
1445
|
+
a(Ar, "createKey");
|
|
1446
|
+
function fe(e) {
|
|
1447
|
+
var t = e.pathname, r = t === void 0 ? "/" : t, n = e.search, o = n === void 0 ? "" : n, i = e.hash, c = i === void 0 ? "" : i;
|
|
1448
|
+
return o && o !== "?" && (r += o.charAt(0) === "?" ? o : "?" + o), c && c !== "#" && (r += c.charAt(0) === "#" ? c : "#" + c), r;
|
|
1449
|
+
}
|
|
1450
|
+
a(fe, "createPath");
|
|
1451
|
+
function U(e) {
|
|
1452
|
+
var t = {};
|
|
1453
|
+
if (e) {
|
|
1454
|
+
var r = e.indexOf("#");
|
|
1455
|
+
r >= 0 && (t.hash = e.substr(r), e = e.substr(0, r));
|
|
1456
|
+
var n = e.indexOf("?");
|
|
1457
|
+
n >= 0 && (t.search = e.substr(n), e = e.substr(0, n)), e && (t.pathname = e);
|
|
1458
|
+
}
|
|
1459
|
+
return t;
|
|
1460
|
+
}
|
|
1461
|
+
a(U, "parsePath");
|
|
1462
|
+
|
|
1463
|
+
// ../node_modules/react-router/index.js
|
|
1464
|
+
import { createContext as Le, useRef as Dr, useState as Yn, useLayoutEffect as Xn, createElement as kt, useContext as $, useEffect as Tr, useMemo as Te,
|
|
1465
|
+
useCallback as Lr, Children as Gn, isValidElement as Zn, Fragment as eo } from "react";
|
|
1466
|
+
function pe(e, t) {
|
|
1467
|
+
if (!e) throw new Error(t);
|
|
1468
|
+
}
|
|
1469
|
+
a(pe, "invariant");
|
|
1470
|
+
function Mt(e, t) {
|
|
1471
|
+
if (!e) {
|
|
1472
|
+
typeof console < "u" && console.warn(t);
|
|
1473
|
+
try {
|
|
1474
|
+
throw new Error(t);
|
|
1475
|
+
} catch {
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
a(Mt, "warning");
|
|
1480
|
+
var Y = /* @__PURE__ */ Le(null);
|
|
1481
|
+
Y.displayName = "Navigation";
|
|
1482
|
+
var X = /* @__PURE__ */ Le(null);
|
|
1483
|
+
X.displayName = "Location";
|
|
1484
|
+
var he = /* @__PURE__ */ Le({
|
|
1485
|
+
outlet: null,
|
|
1486
|
+
matches: []
|
|
1487
|
+
});
|
|
1488
|
+
he.displayName = "Route";
|
|
1489
|
+
function G(e) {
|
|
1490
|
+
let {
|
|
1491
|
+
basename: t = "/",
|
|
1492
|
+
children: r = null,
|
|
1493
|
+
location: n,
|
|
1494
|
+
navigationType: o = B.Pop,
|
|
1495
|
+
navigator: i,
|
|
1496
|
+
static: c = !1
|
|
1497
|
+
} = e;
|
|
1498
|
+
Z() && pe(!1, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");
|
|
1499
|
+
let s = Ir(t), l = Te(() => ({
|
|
1500
|
+
basename: s,
|
|
1501
|
+
navigator: i,
|
|
1502
|
+
static: c
|
|
1503
|
+
}), [s, i, c]);
|
|
1504
|
+
typeof n == "string" && (n = U(n));
|
|
1505
|
+
let {
|
|
1506
|
+
pathname: f = "/",
|
|
1507
|
+
search: u = "",
|
|
1508
|
+
hash: p = "",
|
|
1509
|
+
state: h = null,
|
|
1510
|
+
key: m = "default"
|
|
1511
|
+
} = n, g = Te(() => {
|
|
1512
|
+
let d = Mr(f, s);
|
|
1513
|
+
return d == null ? null : {
|
|
1514
|
+
pathname: d,
|
|
1515
|
+
search: u,
|
|
1516
|
+
hash: p,
|
|
1517
|
+
state: h,
|
|
1518
|
+
key: m
|
|
1519
|
+
};
|
|
1520
|
+
}, [s, f, u, p, h, m]);
|
|
1521
|
+
return Mt(g != null, '<Router basename="' + s + '"> is not able to match the URL ' + ('"' + f + u + p + '" because it does not start with \
|
|
1522
|
+
the ') + "basename, so the <Router> won't render anything."), g == null ? null : /* @__PURE__ */ kt(Y.Provider, {
|
|
1523
|
+
value: l
|
|
1524
|
+
}, /* @__PURE__ */ kt(X.Provider, {
|
|
1525
|
+
children: r,
|
|
1526
|
+
value: {
|
|
1527
|
+
location: g,
|
|
1528
|
+
navigationType: o
|
|
1529
|
+
}
|
|
1530
|
+
}));
|
|
1531
|
+
}
|
|
1532
|
+
a(G, "Router");
|
|
1533
|
+
function Ce(e) {
|
|
1534
|
+
Z() || pe(
|
|
1535
|
+
!1,
|
|
1536
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
1537
|
+
// router loaded. We can help them understand how to avoid that.
|
|
1538
|
+
"useHref() may be used only in the context of a <Router> component."
|
|
1539
|
+
);
|
|
1540
|
+
let {
|
|
1541
|
+
basename: t,
|
|
1542
|
+
navigator: r
|
|
1543
|
+
} = $(Y), {
|
|
1544
|
+
hash: n,
|
|
1545
|
+
pathname: o,
|
|
1546
|
+
search: i
|
|
1547
|
+
} = te(e), c = o;
|
|
1548
|
+
if (t !== "/") {
|
|
1549
|
+
let s = kr(e), l = s != null && s.endsWith("/");
|
|
1550
|
+
c = o === "/" ? t + (l ? "/" : "") : Bt([t, o]);
|
|
1551
|
+
}
|
|
1552
|
+
return r.createHref({
|
|
1553
|
+
pathname: c,
|
|
1554
|
+
search: i,
|
|
1555
|
+
hash: n
|
|
1556
|
+
});
|
|
1557
|
+
}
|
|
1558
|
+
a(Ce, "useHref");
|
|
1559
|
+
function Z() {
|
|
1560
|
+
return $(X) != null;
|
|
1561
|
+
}
|
|
1562
|
+
a(Z, "useInRouterContext");
|
|
1563
|
+
function z() {
|
|
1564
|
+
return Z() || pe(
|
|
1565
|
+
!1,
|
|
1566
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
1567
|
+
// router loaded. We can help them understand how to avoid that.
|
|
1568
|
+
"useLocation() may be used only in the context of a <Router> component."
|
|
1569
|
+
), $(X).location;
|
|
1570
|
+
}
|
|
1571
|
+
a(z, "useLocation");
|
|
1572
|
+
function ee() {
|
|
1573
|
+
Z() || pe(
|
|
1574
|
+
!1,
|
|
1575
|
+
// TODO: This error is probably because they somehow have 2 versions of the
|
|
1576
|
+
// router loaded. We can help them understand how to avoid that.
|
|
1577
|
+
"useNavigate() may be used only in the context of a <Router> component."
|
|
1578
|
+
);
|
|
1579
|
+
let {
|
|
1580
|
+
basename: e,
|
|
1581
|
+
navigator: t
|
|
1582
|
+
} = $(Y), {
|
|
1583
|
+
matches: r
|
|
1584
|
+
} = $(he), {
|
|
1585
|
+
pathname: n
|
|
1586
|
+
} = z(), o = JSON.stringify(r.map((s) => s.pathnameBase)), i = Dr(!1);
|
|
1587
|
+
return Tr(() => {
|
|
1588
|
+
i.current = !0;
|
|
1589
|
+
}), Lr(function(s, l) {
|
|
1590
|
+
if (l === void 0 && (l = {}), Mt(i.current, "You should call navigate() in a React.useEffect(), not when your component is first rendere\
|
|
1591
|
+
d."), !i.current) return;
|
|
1592
|
+
if (typeof s == "number") {
|
|
1593
|
+
t.go(s);
|
|
1594
|
+
return;
|
|
1595
|
+
}
|
|
1596
|
+
let f = Vt(s, JSON.parse(o), n);
|
|
1597
|
+
e !== "/" && (f.pathname = Bt([e, f.pathname])), (l.replace ? t.replace : t.push)(f, l.state);
|
|
1598
|
+
}, [e, t, o, n]);
|
|
1599
|
+
}
|
|
1600
|
+
a(ee, "useNavigate");
|
|
1601
|
+
function te(e) {
|
|
1602
|
+
let {
|
|
1603
|
+
matches: t
|
|
1604
|
+
} = $(he), {
|
|
1605
|
+
pathname: r
|
|
1606
|
+
} = z(), n = JSON.stringify(t.map((o) => o.pathnameBase));
|
|
1607
|
+
return Te(() => Vt(e, JSON.parse(n), r), [e, n, r]);
|
|
1608
|
+
}
|
|
1609
|
+
a(te, "useResolvedPath");
|
|
1610
|
+
function It(e, t) {
|
|
1611
|
+
t === void 0 && (t = "/");
|
|
1612
|
+
let {
|
|
1613
|
+
pathname: r,
|
|
1614
|
+
search: n = "",
|
|
1615
|
+
hash: o = ""
|
|
1616
|
+
} = typeof e == "string" ? U(e) : e;
|
|
1617
|
+
return {
|
|
1618
|
+
pathname: r ? r.startsWith("/") ? r : Cr(r, t) : t,
|
|
1619
|
+
search: Vr(n),
|
|
1620
|
+
hash: Br(o)
|
|
1621
|
+
};
|
|
1622
|
+
}
|
|
1623
|
+
a(It, "resolvePath");
|
|
1624
|
+
function Cr(e, t) {
|
|
1625
|
+
let r = t.replace(/\/+$/, "").split("/");
|
|
1626
|
+
return e.split("/").forEach((o) => {
|
|
1627
|
+
o === ".." ? r.length > 1 && r.pop() : o !== "." && r.push(o);
|
|
1628
|
+
}), r.length > 1 ? r.join("/") : "/";
|
|
1629
|
+
}
|
|
1630
|
+
a(Cr, "resolvePathname");
|
|
1631
|
+
function Vt(e, t, r) {
|
|
1632
|
+
let n = typeof e == "string" ? U(e) : e, o = e === "" || n.pathname === "" ? "/" : n.pathname, i;
|
|
1633
|
+
if (o == null)
|
|
1634
|
+
i = r;
|
|
1635
|
+
else {
|
|
1636
|
+
let s = t.length - 1;
|
|
1637
|
+
if (o.startsWith("..")) {
|
|
1638
|
+
let l = o.split("/");
|
|
1639
|
+
for (; l[0] === ".."; )
|
|
1640
|
+
l.shift(), s -= 1;
|
|
1641
|
+
n.pathname = l.join("/");
|
|
1642
|
+
}
|
|
1643
|
+
i = s >= 0 ? t[s] : "/";
|
|
1644
|
+
}
|
|
1645
|
+
let c = It(n, i);
|
|
1646
|
+
return o && o !== "/" && o.endsWith("/") && !c.pathname.endsWith("/") && (c.pathname += "/"), c;
|
|
1647
|
+
}
|
|
1648
|
+
a(Vt, "resolveTo");
|
|
1649
|
+
function kr(e) {
|
|
1650
|
+
return e === "" || e.pathname === "" ? "/" : typeof e == "string" ? U(e).pathname : e.pathname;
|
|
1651
|
+
}
|
|
1652
|
+
a(kr, "getToPathname");
|
|
1653
|
+
function Mr(e, t) {
|
|
1654
|
+
if (t === "/") return e;
|
|
1655
|
+
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
1656
|
+
return null;
|
|
1657
|
+
let r = e.charAt(t.length);
|
|
1658
|
+
return r && r !== "/" ? null : e.slice(t.length) || "/";
|
|
1659
|
+
}
|
|
1660
|
+
a(Mr, "stripBasename");
|
|
1661
|
+
var Bt = /* @__PURE__ */ a((e) => e.join("/").replace(/\/\/+/g, "/"), "joinPaths"), Ir = /* @__PURE__ */ a((e) => e.replace(/\/+$/, "").replace(
|
|
1662
|
+
/^\/*/, "/"), "normalizePathname"), Vr = /* @__PURE__ */ a((e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, "normalizeSearch"),
|
|
1663
|
+
Br = /* @__PURE__ */ a((e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, "normalizeHash");
|
|
1664
|
+
|
|
1665
|
+
// ../node_modules/react-router-dom/index.js
|
|
1666
|
+
function de() {
|
|
1667
|
+
return de = Object.assign || function(e) {
|
|
1668
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
1669
|
+
var r = arguments[t];
|
|
1670
|
+
for (var n in r)
|
|
1671
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
1672
|
+
}
|
|
1673
|
+
return e;
|
|
1674
|
+
}, de.apply(this, arguments);
|
|
1675
|
+
}
|
|
1676
|
+
a(de, "_extends");
|
|
1677
|
+
function Wt(e, t) {
|
|
1678
|
+
if (e == null) return {};
|
|
1679
|
+
var r = {}, n = Object.keys(e), o, i;
|
|
1680
|
+
for (i = 0; i < n.length; i++)
|
|
1681
|
+
o = n[i], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
|
|
1682
|
+
return r;
|
|
1683
|
+
}
|
|
1684
|
+
a(Wt, "_objectWithoutPropertiesLoose");
|
|
1685
|
+
var Ur = ["onClick", "reloadDocument", "replace", "state", "target", "to"], $r = ["aria-current", "caseSensitive", "className", "end", "styl\
|
|
1686
|
+
e", "to"];
|
|
1687
|
+
function Ft(e) {
|
|
1688
|
+
let {
|
|
1689
|
+
basename: t,
|
|
1690
|
+
children: r,
|
|
1691
|
+
window: n
|
|
1692
|
+
} = e, o = zr();
|
|
1693
|
+
o.current == null && (o.current = Ct({
|
|
1694
|
+
window: n
|
|
1695
|
+
}));
|
|
1696
|
+
let i = o.current, [c, s] = Wr({
|
|
1697
|
+
action: i.action,
|
|
1698
|
+
location: i.location
|
|
1699
|
+
});
|
|
1700
|
+
return Fr(() => i.listen(s), [i]), /* @__PURE__ */ ke(G, {
|
|
1701
|
+
basename: t,
|
|
1702
|
+
children: r,
|
|
1703
|
+
location: c.location,
|
|
1704
|
+
navigationType: c.action,
|
|
1705
|
+
navigator: i
|
|
1706
|
+
});
|
|
1707
|
+
}
|
|
1708
|
+
a(Ft, "BrowserRouter");
|
|
1709
|
+
function Hr(e) {
|
|
1710
|
+
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1711
|
+
}
|
|
1712
|
+
a(Hr, "isModifiedEvent");
|
|
1713
|
+
var me = /* @__PURE__ */ zt(/* @__PURE__ */ a(function(t, r) {
|
|
1714
|
+
let {
|
|
1715
|
+
onClick: n,
|
|
1716
|
+
reloadDocument: o,
|
|
1717
|
+
replace: i = !1,
|
|
1718
|
+
state: c,
|
|
1719
|
+
target: s,
|
|
1720
|
+
to: l
|
|
1721
|
+
} = t, f = Wt(t, Ur), u = Ce(l), p = Jr(l, {
|
|
1722
|
+
replace: i,
|
|
1723
|
+
state: c,
|
|
1724
|
+
target: s
|
|
1725
|
+
});
|
|
1726
|
+
function h(m) {
|
|
1727
|
+
n && n(m), !m.defaultPrevented && !o && p(m);
|
|
1728
|
+
}
|
|
1729
|
+
return a(h, "handleClick"), // eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1730
|
+
/* @__PURE__ */ ke("a", de({}, f, {
|
|
1731
|
+
href: u,
|
|
1732
|
+
onClick: h,
|
|
1733
|
+
ref: r,
|
|
1734
|
+
target: s
|
|
1735
|
+
}));
|
|
1736
|
+
}, "LinkWithRef"));
|
|
1737
|
+
me.displayName = "Link";
|
|
1738
|
+
var Kr = /* @__PURE__ */ zt(/* @__PURE__ */ a(function(t, r) {
|
|
1739
|
+
let {
|
|
1740
|
+
"aria-current": n = "page",
|
|
1741
|
+
caseSensitive: o = !1,
|
|
1742
|
+
className: i = "",
|
|
1743
|
+
end: c = !1,
|
|
1744
|
+
style: s,
|
|
1745
|
+
to: l
|
|
1746
|
+
} = t, f = Wt(t, $r), u = z(), p = te(l), h = u.pathname, m = p.pathname;
|
|
1747
|
+
o || (h = h.toLowerCase(), m = m.toLowerCase());
|
|
1748
|
+
let g = h === m || !c && h.startsWith(m) && h.charAt(m.length) === "/", d = g ? n : void 0, v;
|
|
1749
|
+
typeof i == "function" ? v = i({
|
|
1750
|
+
isActive: g
|
|
1751
|
+
}) : v = [i, g ? "active" : null].filter(Boolean).join(" ");
|
|
1752
|
+
let R = typeof s == "function" ? s({
|
|
1753
|
+
isActive: g
|
|
1754
|
+
}) : s;
|
|
1755
|
+
return /* @__PURE__ */ ke(me, de({}, f, {
|
|
1756
|
+
"aria-current": d,
|
|
1757
|
+
className: v,
|
|
1758
|
+
ref: r,
|
|
1759
|
+
style: R,
|
|
1760
|
+
to: l
|
|
1761
|
+
}));
|
|
1762
|
+
}, "NavLinkWithRef"));
|
|
1763
|
+
Kr.displayName = "NavLink";
|
|
1764
|
+
function Jr(e, t) {
|
|
1765
|
+
let {
|
|
1766
|
+
target: r,
|
|
1767
|
+
replace: n,
|
|
1768
|
+
state: o
|
|
1769
|
+
} = t === void 0 ? {} : t, i = ee(), c = z(), s = te(e);
|
|
1770
|
+
return qr((l) => {
|
|
1771
|
+
if (l.button === 0 && // Ignore everything but left clicks
|
|
1772
|
+
(!r || r === "_self") && // Let browser handle "target=_blank" etc.
|
|
1773
|
+
!Hr(l)) {
|
|
1774
|
+
l.preventDefault();
|
|
1775
|
+
let f = !!n || fe(c) === fe(s);
|
|
1776
|
+
i(e, {
|
|
1777
|
+
replace: f,
|
|
1778
|
+
state: o
|
|
1779
|
+
});
|
|
1780
|
+
}
|
|
1781
|
+
}, [c, i, s, n, o, r, e]);
|
|
1782
|
+
}
|
|
1783
|
+
a(Jr, "useLinkClickHandler");
|
|
1784
|
+
|
|
1785
|
+
// src/router/router.tsx
|
|
1786
|
+
var { document: Me } = jt, Xr = /* @__PURE__ */ a(() => `${Me.location.pathname}?`, "getBase"), Ao = /* @__PURE__ */ a(() => {
|
|
1787
|
+
let e = ee();
|
|
1788
|
+
return Yr((t, { plain: r, ...n } = {}) => {
|
|
1789
|
+
if (typeof t == "string" && t.startsWith("#")) {
|
|
1790
|
+
t === "#" ? e(Me.location.search) : Me.location.hash = t;
|
|
1791
|
+
return;
|
|
1792
|
+
}
|
|
1793
|
+
if (typeof t == "string") {
|
|
1794
|
+
let o = r ? t : `?path=${t}`;
|
|
1795
|
+
return e(o, n);
|
|
1796
|
+
}
|
|
1797
|
+
if (typeof t == "number")
|
|
1798
|
+
return e(t);
|
|
1799
|
+
}, []);
|
|
1800
|
+
}, "useNavigate"), Gr = /* @__PURE__ */ a(({ to: e, children: t, ...r }) => /* @__PURE__ */ re.createElement(me, { to: `${Xr()}path=${e}`, ...r },
|
|
1801
|
+
t), "Link");
|
|
1802
|
+
Gr.displayName = "QueryLink";
|
|
1803
|
+
var qt = /* @__PURE__ */ a(({ children: e }) => {
|
|
1804
|
+
let t = z(), { path: r, singleStory: n } = St(t), { viewMode: o, storyId: i, refId: c } = Pt(r);
|
|
1805
|
+
return /* @__PURE__ */ re.createElement(re.Fragment, null, e({
|
|
1806
|
+
path: r || "/",
|
|
1807
|
+
location: t,
|
|
1808
|
+
viewMode: o,
|
|
1809
|
+
storyId: i,
|
|
1810
|
+
refId: c,
|
|
1811
|
+
singleStory: n === "true"
|
|
1812
|
+
}));
|
|
1813
|
+
}, "Location");
|
|
1814
|
+
qt.displayName = "QueryLocation";
|
|
1815
|
+
function Ut({
|
|
1816
|
+
children: e,
|
|
1817
|
+
path: t,
|
|
1818
|
+
startsWith: r = !1
|
|
1819
|
+
}) {
|
|
1820
|
+
return /* @__PURE__ */ re.createElement(qt, null, ({ path: n, ...o }) => e({
|
|
1821
|
+
match: _t(n, t, r),
|
|
1822
|
+
...o
|
|
1823
|
+
}));
|
|
1824
|
+
}
|
|
1825
|
+
a(Ut, "Match");
|
|
1826
|
+
Ut.displayName = "QueryMatch";
|
|
1827
|
+
function Zr(e) {
|
|
1828
|
+
let { children: t, ...r } = e;
|
|
1829
|
+
return r.startsWith === void 0 && (r.startsWith = !1), /* @__PURE__ */ re.createElement(Ut, { ...r }, ({ match: o }) => o ? t : null);
|
|
1830
|
+
}
|
|
1831
|
+
a(Zr, "Route");
|
|
1832
|
+
Zr.displayName = "Route";
|
|
1833
|
+
var Do = /* @__PURE__ */ a((...e) => Ft(...e), "LocationProvider"), To = /* @__PURE__ */ a((...e) => G(...e), "BaseLocationProvider");
|
|
1834
|
+
export {
|
|
1835
|
+
To as BaseLocationProvider,
|
|
1836
|
+
ce as DEEPLY_EQUAL,
|
|
1837
|
+
Gr as Link,
|
|
1838
|
+
qt as Location,
|
|
1839
|
+
Do as LocationProvider,
|
|
1840
|
+
Ut as Match,
|
|
1841
|
+
Zr as Route,
|
|
1842
|
+
Vn as buildArgsParam,
|
|
1843
|
+
je as deepDiff,
|
|
1844
|
+
_t as getMatch,
|
|
1845
|
+
Pt as parsePath,
|
|
1846
|
+
St as queryFromLocation,
|
|
1847
|
+
Bn as stringifyQuery,
|
|
1848
|
+
Ao as useNavigate
|
|
1849
|
+
};
|