summaryrefslogtreecommitdiff
path: root/out
diff options
context:
space:
mode:
Diffstat (limited to 'out')
-rw-r--r--out/404.html18
-rw-r--r--out/_next/static/chunks/13-03ddeff07567357a392f.js (renamed from out/_next/static/chunks/906-7b9696c9b17c64b94384.js)36881
-rw-r--r--out/_next/static/chunks/4.c9fdfbcb8f8ce1720633.js (renamed from out/_next/static/chunks/4.2dee5d830195ddd06029.js)20
-rw-r--r--out/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js (renamed from out/_next/static/chunks/d25bd147-65fcc4c92edba8b370fb.js)2
-rw-r--r--out/_next/static/chunks/framework-2f612445bd50b211f15a.js (renamed from out/_next/static/chunks/framework-2191d16384373197bc0a.js)46
-rw-r--r--out/_next/static/chunks/main-ae68c11529959c16c50f.js (renamed from out/_next/static/chunks/main-1b0f1fd287f08bad6012.js)822
-rw-r--r--out/_next/static/chunks/pages/_app-3e86b1cac997ecd07336.js (renamed from out/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js)662
-rw-r--r--out/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js (renamed from out/_next/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js)144
-rw-r--r--out/_next/static/chunks/pages/index-2b9ae36e1ad717aff37d.js (renamed from out/_next/static/chunks/pages/index-958f6f947d7cdc797980.js)1622
-rw-r--r--out/_next/static/chunks/polyfills-e7a279300235e161e32a.js (renamed from out/_next/static/chunks/polyfills-a54b4f32bdc1ef890ddd.js)8
-rw-r--r--out/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js (renamed from out/_next/static/chunks/webpack-a1ea085630ce50807058.js)68
-rw-r--r--out/_next/static/faIfNptb0fH0Ziqoouvmn/_buildManifest.js (renamed from out/_next/static/cU0Fhf7qkIuEyMiaSc6bW/_buildManifest.js)8
-rw-r--r--out/_next/static/faIfNptb0fH0Ziqoouvmn/_ssgManifest.js (renamed from out/_next/static/cU0Fhf7qkIuEyMiaSc6bW/_ssgManifest.js)0
-rw-r--r--out/index.html22
14 files changed, 28416 insertions, 11907 deletions
diff --git a/out/404.html b/out/404.html
index 9a912df..6db5702 100644
--- a/out/404.html
+++ b/out/404.html
@@ -11,15 +11,15 @@
<script
defer=""
nomodule=""
- src="/_next/static/chunks/polyfills-a54b4f32bdc1ef890ddd.js"
+ src="/_next/static/chunks/polyfills-e7a279300235e161e32a.js"
></script>
- <script src="/_next/static/chunks/webpack-a1ea085630ce50807058.js" defer=""></script>
- <script src="/_next/static/chunks/framework-2191d16384373197bc0a.js" defer=""></script>
- <script src="/_next/static/chunks/main-1b0f1fd287f08bad6012.js" defer=""></script>
- <script src="/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js" defer=""></script>
- <script src="/_next/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js" defer=""></script>
- <script src="/_next/static/cU0Fhf7qkIuEyMiaSc6bW/_buildManifest.js" defer=""></script>
- <script src="/_next/static/cU0Fhf7qkIuEyMiaSc6bW/_ssgManifest.js" defer=""></script>
+ <script src="/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js" defer=""></script>
+ <script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script>
+ <script src="/_next/static/chunks/main-ae68c11529959c16c50f.js" defer=""></script>
+ <script src="/_next/static/chunks/pages/_app-3e86b1cac997ecd07336.js" defer=""></script>
+ <script src="/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js" defer=""></script>
+ <script src="/_next/static/faIfNptb0fH0Ziqoouvmn/_buildManifest.js" defer=""></script>
+ <script src="/_next/static/faIfNptb0fH0Ziqoouvmn/_ssgManifest.js" defer=""></script>
</head>
<body>
<div id="__next">
@@ -753,7 +753,7 @@
"props": { "pageProps": { "statusCode": 404 } },
"page": "/_error",
"query": {},
- "buildId": "cU0Fhf7qkIuEyMiaSc6bW",
+ "buildId": "faIfNptb0fH0Ziqoouvmn",
"nextExport": true,
"isFallback": false,
"gip": true,
diff --git a/out/_next/static/chunks/906-7b9696c9b17c64b94384.js b/out/_next/static/chunks/13-03ddeff07567357a392f.js
index 9374272..5d11283 100644
--- a/out/_next/static/chunks/906-7b9696c9b17c64b94384.js
+++ b/out/_next/static/chunks/13-03ddeff07567357a392f.js
@@ -1,217 +1,46 @@
;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
- [906],
+ [13],
{
- 676: function (e, t, n) {
- 'use strict'
- function r(e, t) {
- ;(null == t || t > e.length) && (t = e.length)
- for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
- return r
- }
- n.d(t, {
- Z: function () {
- return r
- },
- })
- },
- 2137: function (e, t, n) {
- 'use strict'
- function r(e, t, n, r, i, o, a) {
- try {
- var s = e[o](a),
- u = s.value
- } catch (l) {
- return void n(l)
- }
- s.done ? t(u) : Promise.resolve(u).then(r, i)
- }
- function i(e) {
- return function () {
- var t = this,
- n = arguments
- return new Promise(function (i, o) {
- var a = e.apply(t, n)
- function s(e) {
- r(a, i, o, s, u, 'next', e)
- }
- function u(e) {
- r(a, i, o, s, u, 'throw', e)
- }
- s(void 0)
- })
- }
- }
- n.d(t, {
- Z: function () {
- return i
- },
- })
- },
- 7375: function (e, t, n) {
- 'use strict'
- function r(e, t) {
- if (null == e) return {}
- var n,
- r,
- i = (function (e, t) {
- if (null == e) return {}
- var n,
- r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
- })(e, t)
- if (Object.getOwnPropertySymbols) {
- var o = Object.getOwnPropertySymbols(e)
- for (r = 0; r < o.length; r++)
- (n = o[r]),
- t.indexOf(n) >= 0 ||
- (Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]))
- }
- return i
- }
- n.d(t, {
- Z: function () {
- return r
- },
- })
- },
- 4699: function (e, t, n) {
- 'use strict'
- n.d(t, {
- Z: function () {
- return i
- },
- })
- var r = n(2961)
- function i(e, t) {
- return (
- (function (e) {
- if (Array.isArray(e)) return e
- })(e) ||
- (function (e, t) {
- if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) {
- var n = [],
- r = !0,
- i = !1,
- o = void 0
- try {
- for (
- var a, s = e[Symbol.iterator]();
- !(r = (a = s.next()).done) && (n.push(a.value), !t || n.length !== t);
- r = !0
- );
- } catch (u) {
- ;(i = !0), (o = u)
- } finally {
- try {
- r || null == s.return || s.return()
- } finally {
- if (i) throw o
- }
- }
- return n
- }
- })(e, t) ||
- (0, r.Z)(e, t) ||
- (function () {
- throw new TypeError(
- 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
- )
- })()
- )
- }
- },
- 7329: function (e, t, n) {
- 'use strict'
- n.d(t, {
- Z: function () {
- return o
- },
- })
- var r = n(676)
- var i = n(2961)
- function o(e) {
- return (
- (function (e) {
- if (Array.isArray(e)) return (0, r.Z)(e)
- })(e) ||
- (function (e) {
- if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e)
- })(e) ||
- (0, i.Z)(e) ||
- (function () {
- throw new TypeError(
- 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
- )
- })()
- )
- }
- },
- 2961: function (e, t, n) {
- 'use strict'
- n.d(t, {
- Z: function () {
- return i
- },
- })
- var r = n(676)
- function i(e, t) {
- if (e) {
- if ('string' === typeof e) return (0, r.Z)(e, t)
- var n = Object.prototype.toString.call(e).slice(8, -1)
- return (
- 'Object' === n && e.constructor && (n = e.constructor.name),
- 'Map' === n || 'Set' === n
- ? Array.from(e)
- : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
- ? (0, r.Z)(e, t)
- : void 0
- )
- }
- }
- },
- 6769: function (e, t, n) {
+ 56769: function (e, t, n) {
'use strict'
n.d(t, {
UQ: function () {
- return D
+ return R
},
KF: function () {
return z
},
XE: function () {
- return B
+ return H
},
Qd: function () {
- return I
+ return N
},
Hk: function () {
- return H
+ return B
},
})
- var r = n(58),
- i = n(63),
- o = n(2326),
- a = n(5284),
- s = n(9676),
- u = n(3782),
- l = n(5267),
- c = n(4461),
- d = n(3808),
- f = n(658),
- h = n(8500),
- p = n(7294),
- v = n(1888),
- m = n(7581),
- g = n(1034),
- y = n(4577),
- b = n(2947),
- w = n(7277),
- x = n(7248)
- function E() {
- return (E =
+ var r = n(70058),
+ o = n(90063),
+ i = n(2326),
+ a = n(55284),
+ s = n(29676),
+ u = n(89384),
+ c = n(15267),
+ l = n(84461),
+ d = n(73808),
+ f = n(80658),
+ h = n(28500),
+ p = n(67294),
+ v = n(21888),
+ m = n(77581),
+ g = n(51034),
+ y = n(94577),
+ b = n(72947),
+ w = n(27277),
+ _ = n(47248)
+ function x() {
+ return (x =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -225,14 +54,14 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
}
- var [_, T, O, C] = (0, v.n)()
- function S(e) {
- var { onChange: t, defaultIndex: n, index: r, allowMultiple: i, allowToggle: o } = e,
+ var [E, O, T, C] = (0, v.n)()
+ function M(e) {
+ var { onChange: t, defaultIndex: n, index: r, allowMultiple: o, allowToggle: i } = e,
a = k(e, ['onChange', 'defaultIndex', 'index', 'allowMultiple', 'allowToggle'])
!(function (e) {
var t = e.index || e.defaultIndex,
@@ -252,50 +81,50 @@
"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not",
})
})(e)
- var s = O(),
- [u, l] = (0, p.useState)(-1)
+ var s = T(),
+ [u, c] = (0, p.useState)(-1)
;(0, m.z)(() => {
- l(-1)
+ c(-1)
})
- var [c, h] = (0, g.T)({
+ var [l, h] = (0, g.T)({
value: r,
- defaultValue: () => (i ? (null != n ? n : []) : null != n ? n : -1),
+ defaultValue: () => (o ? (null != n ? n : []) : null != n ? n : -1),
onChange: t,
})
return {
- index: c,
+ index: l,
setIndex: h,
htmlProps: a,
getAccordionItemProps: (e) => {
var t = !1
- null !== e && (t = (0, d.kJ)(c) ? c.includes(e) : c === e)
+ null !== e && (t = (0, d.kJ)(l) ? l.includes(e) : l === e)
return {
isOpen: t,
onChange: (t) => {
if (null !== e)
- if (i && (0, d.kJ)(c)) {
- var n = t ? (0, w.jX)(c, e) : (0, w.cl)(c, e)
+ if (o && (0, d.kJ)(l)) {
+ var n = t ? (0, w.jX)(l, e) : (0, w.cl)(l, e)
h(n)
- } else t ? h(e) : o && h(-1)
+ } else t ? h(e) : i && h(-1)
},
}
},
focusedIndex: u,
- setFocusedIndex: l,
+ setFocusedIndex: c,
descendants: s,
}
}
- var [A, P] = (0, h.k)({
+ var [S, P] = (0, h.k)({
name: 'AccordionContext',
errorMessage:
'useAccordionContext: `context` is undefined. Seems you forgot to wrap the accordion components in `<Accordion />`',
})
- function M(e) {
+ function j(e) {
var { isDisabled: t, isFocusable: n, id: r } = e,
- i = k(e, ['isDisabled', 'isFocusable', 'id']),
- { getAccordionItemProps: o, setFocusedIndex: a } = P(),
+ o = k(e, ['isDisabled', 'isFocusable', 'id']),
+ { getAccordionItemProps: i, setFocusedIndex: a } = P(),
s = (0, p.useRef)(null),
- [u, l] = (0, y.ZS)(r, 'accordion-button', 'accordion-panel')
+ [u, c] = (0, y.ZS)(r, 'accordion-button', 'accordion-panel')
!(function (e) {
;(0, f.ZK)({
condition: !(!e.isFocusable || e.isDisabled),
@@ -304,7 +133,7 @@
})
})(e)
var { register: d, index: h, descendants: v } = C({ disabled: t && !n }),
- { isOpen: m, onChange: g } = o(-1 === h ? null : h)
+ { isOpen: m, onChange: g } = i(-1 === h ? null : h)
!(function (e) {
;(0, f.ZK)({
condition: e.isOpen && !!e.isDisabled,
@@ -314,62 +143,62 @@
var w = (0, p.useCallback)(() => {
null == g || g(!m), a(h)
}, [h, a, m, g]),
- _ = (0, p.useCallback)(
+ E = (0, p.useCallback)(
(e) => {
var t = {
ArrowDown: () => {
var e = v.nextEnabled(h)
- e && (0, x.T)(e.node)
+ e && (0, _.T)(e.node)
},
ArrowUp: () => {
var e = v.prevEnabled(h)
- e && (0, x.T)(e.node)
+ e && (0, _.T)(e.node)
},
Home: () => {
var e = v.firstEnabled()
- e && (0, x.T)(e.node)
+ e && (0, _.T)(e.node)
},
End: () => {
var e = v.lastEnabled()
- e && (0, x.T)(e.node)
+ e && (0, _.T)(e.node)
},
- }[(0, c.uh)(e)]
+ }[(0, l.uh)(e)]
t && (e.preventDefault(), t(e))
},
[v, h],
),
- T = (0, p.useCallback)(() => {
+ O = (0, p.useCallback)(() => {
a(h)
}, [a, h]),
- O = (0, p.useCallback)(
+ T = (0, p.useCallback)(
function (e, n) {
return (
void 0 === e && (e = {}),
void 0 === n && (n = null),
- E({}, e, {
+ x({}, e, {
type: 'button',
ref: (0, b.l)(d, s, n),
id: u,
disabled: !!t,
'aria-expanded': !!m,
- 'aria-controls': l,
+ 'aria-controls': c,
onClick: (0, f.v0)(e.onClick, w),
- onFocus: (0, f.v0)(e.onFocus, T),
- onKeyDown: (0, f.v0)(e.onKeyDown, _),
+ onFocus: (0, f.v0)(e.onFocus, O),
+ onKeyDown: (0, f.v0)(e.onKeyDown, E),
})
)
},
- [u, t, m, w, T, _, l, d],
+ [u, t, m, w, O, E, c, d],
),
- S = (0, p.useCallback)(
+ M = (0, p.useCallback)(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- E({}, e, { ref: t, role: 'region', id: l, 'aria-labelledby': u, hidden: !m })
+ x({}, e, { ref: t, role: 'region', id: c, 'aria-labelledby': u, hidden: !m })
)
},
- [u, m, l],
+ [u, m, c],
)
return {
isOpen: m,
@@ -381,13 +210,13 @@
onClose: () => {
null == g || g(!1)
},
- getButtonProps: O,
- getPanelProps: S,
- htmlProps: i,
+ getButtonProps: T,
+ getPanelProps: M,
+ htmlProps: o,
}
}
- function R() {
- return (R =
+ function I() {
+ return (I =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -397,130 +226,514 @@
return e
}).apply(this, arguments)
}
- function j(e, t) {
+ function A(e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
}
- var D = (0, i.G)((e, t) => {
+ var R = (0, o.G)((e, t) => {
var { children: n, reduceMotion: r } = e,
- i = j(e, ['children', 'reduceMotion']),
- l = (0, o.j)('Accordion', i),
- d = S((0, a.Lr)(i)),
+ o = A(e, ['children', 'reduceMotion']),
+ c = (0, i.j)('Accordion', o),
+ d = M((0, a.Lr)(o)),
{ htmlProps: f, descendants: h } = d,
- v = j(d, ['htmlProps', 'descendants']),
- m = p.useMemo(() => R({}, v, { reduceMotion: !!r }), [v, r])
+ v = A(d, ['htmlProps', 'descendants']),
+ m = p.useMemo(() => I({}, v, { reduceMotion: !!r }), [v, r])
return p.createElement(
- _,
+ E,
{ value: h },
p.createElement(
- A,
+ S,
{ value: m },
p.createElement(
s.Fo,
- { value: l },
+ { value: c },
p.createElement(
u.m$.div,
- R({ ref: t }, f, { className: (0, c.cx)('chakra-accordion', i.className) }),
+ I({ ref: t }, f, { className: (0, l.cx)('chakra-accordion', o.className) }),
n,
),
),
),
)
})
- d.Ts && (D.displayName = 'Accordion')
- var [L, N] = (0, h.k)({
+ d.Ts && (R.displayName = 'Accordion')
+ var [D, L] = (0, h.k)({
name: 'AccordionItemContext',
errorMessage:
'useAccordionItemContext: `context` is undefined. Seems you forgot to wrap the accordion item parts in `<AccordionItem />` ',
}),
- I = (0, i.G)((e, t) => {
+ N = (0, o.G)((e, t) => {
var { children: n, className: r } = e,
- i = M(e),
- { htmlProps: o } = i,
- a = j(i, ['htmlProps']),
- l = R({}, (0, s.yK)().container, { overflowAnchor: 'none' }),
+ o = j(e),
+ { htmlProps: i } = o,
+ a = A(o, ['htmlProps']),
+ c = I({}, (0, s.yK)().container, { overflowAnchor: 'none' }),
d = p.useMemo(() => a, [a])
return p.createElement(
- L,
+ D,
{ value: d },
p.createElement(
u.m$.div,
- R({ ref: t }, o, { className: (0, c.cx)('chakra-accordion__item', r), __css: l }),
+ I({ ref: t }, i, { className: (0, l.cx)('chakra-accordion__item', r), __css: c }),
(0, f.Pu)(n, { isExpanded: !!a.isOpen, isDisabled: !!a.isDisabled }),
),
)
})
- d.Ts && (I.displayName = 'AccordionItem')
- var z = (0, i.G)((e, t) => {
- var { getButtonProps: n } = N(),
+ d.Ts && (N.displayName = 'AccordionItem')
+ var z = (0, o.G)((e, t) => {
+ var { getButtonProps: n } = L(),
r = n(e, t),
- i = R(
+ o = I(
{ display: 'flex', alignItems: 'center', width: '100%', outline: 0 },
(0, s.yK)().button,
)
return p.createElement(
u.m$.button,
- R({}, r, { className: (0, c.cx)('chakra-accordion__button', e.className), __css: i }),
+ I({}, r, { className: (0, l.cx)('chakra-accordion__button', e.className), __css: o }),
)
})
d.Ts && (z.displayName = 'AccordionButton')
- var H = (0, i.G)((e, t) => {
+ var B = (0, o.G)((e, t) => {
var { reduceMotion: n } = P(),
- { getPanelProps: r, isOpen: i } = N(),
- o = r(e, t),
- a = (0, c.cx)('chakra-accordion__panel', e.className),
+ { getPanelProps: r, isOpen: o } = L(),
+ i = r(e, t),
+ a = (0, l.cx)('chakra-accordion__panel', e.className),
d = (0, s.yK)()
- n || delete o.hidden
- var f = p.createElement(u.m$.div, R({}, o, { __css: d.panel, className: a }))
- return n ? f : p.createElement(l.U, { in: i }, f)
- })
- d.Ts && (H.displayName = 'AccordionPanel')
- var B = (e) => {
- var { isOpen: t, isDisabled: n } = N(),
- { reduceMotion: i } = P(),
- o = (0, c.cx)('chakra-accordion__icon', e.className),
- a = R(
+ n || delete i.hidden
+ var f = p.createElement(u.m$.div, I({}, i, { __css: d.panel, className: a }))
+ return n ? f : p.createElement(c.U, { in: o }, f)
+ })
+ d.Ts && (B.displayName = 'AccordionPanel')
+ var H = (e) => {
+ var { isOpen: t, isDisabled: n } = L(),
+ { reduceMotion: o } = P(),
+ i = (0, l.cx)('chakra-accordion__icon', e.className),
+ a = I(
{
opacity: n ? 0.4 : 1,
transform: t ? 'rotate(-180deg)' : void 0,
- transition: i ? void 0 : 'transform 0.2s',
+ transition: o ? void 0 : 'transform 0.2s',
transformOrigin: 'center',
},
(0, s.yK)().icon,
)
return p.createElement(
r.J,
- R({ viewBox: '0 0 24 24', 'aria-hidden': !0, className: o, __css: a }, e),
+ I({ viewBox: '0 0 24 24', 'aria-hidden': !0, className: i, __css: a }, e),
p.createElement('path', {
fill: 'currentColor',
d: 'M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z',
}),
)
}
- d.Ts && (B.displayName = 'AccordionIcon')
+ d.Ts && (H.displayName = 'AccordionIcon')
},
- 155: function (e, t, n) {
+ 40419: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ButtonGroup = t.useButtonGroup = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = n(19277),
+ a = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var c = (0, i.createContext)({ strict: !1, name: 'ButtonGroupContext' }),
+ l = c[0],
+ d = c[1]
+ t.useButtonGroup = d
+ var f = (0, r.forwardRef)(function (e, t) {
+ var n = e.size,
+ i = e.colorScheme,
+ s = e.variant,
+ c = e.className,
+ d = e.spacing,
+ f = void 0 === d ? '0.5rem' : d,
+ h = e.isAttached,
+ p = e.isDisabled,
+ v = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, [
+ 'size',
+ 'colorScheme',
+ 'variant',
+ 'className',
+ 'spacing',
+ 'isAttached',
+ 'isDisabled',
+ ]),
+ m = (0, o.cx)('chakra-button__group', c),
+ g = a.useMemo(
+ function () {
+ return { size: n, colorScheme: i, variant: s, isDisabled: p }
+ },
+ [n, i, s, p],
+ ),
+ y = { display: 'inline-flex' }
+ return (
+ (y = u(
+ {},
+ y,
+ h
+ ? {
+ '> *:first-of-type:not(:last-of-type)': { borderEndRadius: 0 },
+ '> *:not(:first-of-type):not(:last-of-type)': { borderRadius: 0 },
+ '> *:not(:first-of-type):last-of-type': { borderStartRadius: 0 },
+ }
+ : { '& > *:not(style) ~ *:not(style)': { marginStart: f } },
+ )),
+ a.createElement(
+ l,
+ { value: g },
+ a.createElement(r.chakra.div, u({ ref: t, role: 'group', __css: y, className: m }, v)),
+ )
+ )
+ })
+ ;(t.ButtonGroup = f), o.__DEV__ && (f.displayName = 'ButtonGroup')
+ },
+ 24686: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Button = void 0)
+ var r = n(19277),
+ o = n(90716),
+ i = n(48121),
+ a = n(66751),
+ s = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = c()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ u = n(40419)
+ function c() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (c = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function l(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ function d() {
+ return (d =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var f = (0, i.forwardRef)(function (e, t) {
+ var n,
+ o = (0, u.useButtonGroup)(),
+ c = (0, i.useStyleConfig)('Button', d({}, o, e)),
+ f = (0, i.omitThemingProps)(e),
+ v = f.isDisabled,
+ m = void 0 === v ? (null == o ? void 0 : o.isDisabled) : v,
+ g = f.isLoading,
+ y = f.isActive,
+ b = f.isFullWidth,
+ w = f.children,
+ _ = f.leftIcon,
+ x = f.rightIcon,
+ k = f.loadingText,
+ E = f.iconSpacing,
+ O = void 0 === E ? '0.5rem' : E,
+ T = f.type,
+ C = f.spinner,
+ M = f.spinnerPlacement,
+ S = void 0 === M ? 'start' : M,
+ P = f.className,
+ j = f.as,
+ I = l(f, [
+ 'isDisabled',
+ 'isLoading',
+ 'isActive',
+ 'isFullWidth',
+ 'children',
+ 'leftIcon',
+ 'rightIcon',
+ 'loadingText',
+ 'iconSpacing',
+ 'type',
+ 'spinner',
+ 'spinnerPlacement',
+ 'className',
+ 'as',
+ ]),
+ A = (0, a.mergeWith)({}, null != (n = null == c ? void 0 : c._focus) ? n : {}, {
+ zIndex: 1,
+ }),
+ R = d(
+ {
+ display: 'inline-flex',
+ appearance: 'none',
+ alignItems: 'center',
+ justifyContent: 'center',
+ userSelect: 'none',
+ position: 'relative',
+ whiteSpace: 'nowrap',
+ verticalAlign: 'middle',
+ outline: 'none',
+ width: b ? '100%' : 'auto',
+ },
+ c,
+ !!o && { _focus: A },
+ ),
+ D = (function (e) {
+ var t = s.useState(!e),
+ n = t[0],
+ r = t[1],
+ o = s.useCallback(function (e) {
+ e && r('BUTTON' === e.tagName)
+ }, []),
+ i = n ? 'button' : void 0
+ return { ref: o, type: i }
+ })(j),
+ L = D.ref,
+ N = D.type
+ return s.createElement(
+ i.chakra.button,
+ d(
+ {
+ disabled: m || g,
+ ref: (0, r.mergeRefs)(t, L),
+ as: j,
+ type: null != T ? T : N,
+ 'data-active': (0, a.dataAttr)(y),
+ 'data-loading': (0, a.dataAttr)(g),
+ __css: R,
+ className: (0, a.cx)('chakra-button', P),
+ },
+ I,
+ ),
+ _ && !g && s.createElement(h, { marginEnd: O }, _),
+ g &&
+ 'start' === S &&
+ s.createElement(
+ p,
+ { className: 'chakra-button__spinner--start', label: k, placement: 'start' },
+ C,
+ ),
+ g ? k || s.createElement(i.chakra.span, { opacity: 0 }, w) : w,
+ g &&
+ 'end' === S &&
+ s.createElement(
+ p,
+ { className: 'chakra-button__spinner--end', label: k, placement: 'end' },
+ C,
+ ),
+ x && !g && s.createElement(h, { marginStart: O }, x),
+ )
+ })
+ ;(t.Button = f), a.__DEV__ && (f.displayName = 'Button')
+ var h = function (e) {
+ var t = e.children,
+ n = e.className,
+ r = l(e, ['children', 'className']),
+ o = s.isValidElement(t) ? s.cloneElement(t, { 'aria-hidden': !0, focusable: !1 }) : t,
+ u = (0, a.cx)('chakra-button__icon', n)
+ return s.createElement(
+ i.chakra.span,
+ d({ display: 'inline-flex', alignSelf: 'center', flexShrink: 0 }, r, { className: u }),
+ o,
+ )
+ }
+ a.__DEV__ && (h.displayName = 'ButtonIcon')
+ var p = function (e) {
+ var t,
+ n = e.label,
+ r = e.placement,
+ u = (e.spacing, e.children),
+ c =
+ void 0 === u
+ ? s.createElement(o.Spinner, { color: 'currentColor', width: '1em', height: '1em' })
+ : u,
+ f = e.className,
+ h = e.__css,
+ p = l(e, ['label', 'placement', 'spacing', 'children', 'className', '__css']),
+ v = (0, a.cx)('chakra-button__spinner', f),
+ m = d(
+ (((t = {
+ display: 'flex',
+ alignItems: 'center',
+ position: n ? 'relative' : 'absolute',
+ })['start' === r ? 'marginEnd' : 'marginStart'] = n ? '0.5rem' : 0),
+ (t.fontSize = '1em'),
+ (t.lineHeight = 'normal'),
+ t),
+ h,
+ )
+ return s.createElement(i.chakra.div, d({ className: v }, p, { __css: m }), c)
+ }
+ a.__DEV__ && (p.displayName = 'ButtonSpinner')
+ },
+ 84175: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.IconButton = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ a = n(24686)
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var c = (0, r.forwardRef)(function (e, t) {
+ var n = e.icon,
+ r = e.children,
+ o = e.isRound,
+ s = e['aria-label'],
+ c = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, ['icon', 'children', 'isRound', 'aria-label']),
+ l = n || r,
+ d = i.isValidElement(l) ? i.cloneElement(l, { 'aria-hidden': !0, focusable: !1 }) : null
+ return i.createElement(
+ a.Button,
+ u({ padding: '0', borderRadius: o ? 'full' : void 0, ref: t, 'aria-label': s }, c),
+ d,
+ )
+ })
+ ;(t.IconButton = c), o.__DEV__ && (c.displayName = 'IconButton')
+ },
+ 46017: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(24686)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(40419)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(84175)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ },
+ 40155: function (e, t, n) {
'use strict'
n.d(t, {
z: function () {
- return T
+ return O
},
})
- var r = n(2947),
- i = n(917),
- o = n(63),
+ var r = n(72947),
+ o = n(70917),
+ i = n(90063),
a = n(2326),
- s = n(5284),
- u = n(3782),
- l = n(4461),
- c = n(3808),
- d = n(5415),
- f = n(7294)
+ s = n(55284),
+ u = n(89384),
+ c = n(84461),
+ l = n(73808),
+ d = n(65415),
+ f = n(67294)
function h() {
return (h =
Object.assign ||
@@ -532,17 +745,17 @@
return e
}).apply(this, arguments)
}
- var p = (0, i.F4)({
+ var p = (0, o.keyframes)({
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(360deg)' },
}),
- v = (0, o.G)((e, t) => {
+ v = (0, i.G)((e, t) => {
var n = (0, a.m)('Spinner', e),
r = (0, s.Lr)(e),
{
- label: i = 'Loading...',
- thickness: o = '2px',
- speed: c = '0.45s',
+ label: o = 'Loading...',
+ thickness: i = '2px',
+ speed: l = '0.45s',
emptyColor: v = 'transparent',
className: m,
} = r,
@@ -550,35 +763,35 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(r, ['label', 'thickness', 'speed', 'emptyColor', 'className']),
- y = (0, l.cx)('chakra-spinner', m),
+ y = (0, c.cx)('chakra-spinner', m),
b = h(
{
display: 'inline-block',
borderColor: 'currentColor',
borderStyle: 'solid',
borderRadius: '99999px',
- borderWidth: o,
+ borderWidth: i,
borderBottomColor: v,
borderLeftColor: v,
- animation: p + ' ' + c + ' linear infinite',
+ animation: p + ' ' + l + ' linear infinite',
},
n,
)
return f.createElement(
u.m$.div,
h({ ref: t, __css: b, className: y }, g),
- i && f.createElement(d.TX, null, i),
+ o && f.createElement(d.TX, null, o),
)
})
- c.Ts && (v.displayName = 'Spinner')
- var m = n(8554),
+ l.Ts && (v.displayName = 'Spinner')
+ var m = n(38554),
g = n.n(m),
- y = n(8500)
+ y = n(28500)
function b() {
return (b =
Object.assign ||
@@ -590,25 +803,25 @@
return e
}).apply(this, arguments)
}
- var [w, x] = (0, y.k)({ strict: !1, name: 'ButtonGroupContext' }),
- E = (0, o.G)((e, t) => {
+ var [w, _] = (0, y.k)({ strict: !1, name: 'ButtonGroupContext' }),
+ x = (0, i.G)((e, t) => {
var {
size: n,
colorScheme: r,
- variant: i,
- className: o,
+ variant: o,
+ className: i,
spacing: a = '0.5rem',
isAttached: s,
- isDisabled: c,
+ isDisabled: l,
} = e,
d = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, [
'size',
'colorScheme',
@@ -618,10 +831,10 @@
'isAttached',
'isDisabled',
]),
- h = (0, l.cx)('chakra-button__group', o),
+ h = (0, c.cx)('chakra-button__group', i),
p = f.useMemo(
- () => ({ size: n, colorScheme: r, variant: i, isDisabled: c }),
- [n, r, i, c],
+ () => ({ size: n, colorScheme: r, variant: o, isDisabled: l }),
+ [n, r, o, l],
),
v = { display: 'inline-flex' }
return (
@@ -647,13 +860,13 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
}
- function _() {
- return (_ =
+ function E() {
+ return (E =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -663,14 +876,14 @@
return e
}).apply(this, arguments)
}
- c.Ts && (E.displayName = 'ButtonGroup')
- var T = (0, o.G)((e, t) => {
+ l.Ts && (x.displayName = 'ButtonGroup')
+ var O = (0, i.G)((e, t) => {
var n,
- i = x(),
- o = (0, a.m)('Button', _({}, i, e)),
- c = (0, s.Lr)(e),
+ o = _(),
+ i = (0, a.m)('Button', E({}, o, e)),
+ l = (0, s.Lr)(e),
{
- isDisabled: d = null == i ? void 0 : i.isDisabled,
+ isDisabled: d = null == o ? void 0 : o.isDisabled,
isLoading: h,
isActive: p,
isFullWidth: v,
@@ -678,14 +891,14 @@
leftIcon: y,
rightIcon: b,
loadingText: w,
- iconSpacing: E = '0.5rem',
- type: T,
- spinner: S,
- spinnerPlacement: A = 'start',
+ iconSpacing: x = '0.5rem',
+ type: O,
+ spinner: M,
+ spinnerPlacement: S = 'start',
className: P,
- as: M,
- } = c,
- R = k(c, [
+ as: j,
+ } = l,
+ I = k(l, [
'isDisabled',
'isLoading',
'isActive',
@@ -701,8 +914,8 @@
'className',
'as',
]),
- j = g()({}, null != (n = null == o ? void 0 : o._focus) ? n : {}, { zIndex: 1 }),
- D = _(
+ A = g()({}, null != (n = null == i ? void 0 : i._focus) ? n : {}, { zIndex: 1 }),
+ R = E(
{
display: 'inline-flex',
appearance: 'none',
@@ -715,64 +928,64 @@
outline: 'none',
width: v ? '100%' : 'auto',
},
- o,
- !!i && { _focus: j },
+ i,
+ !!o && { _focus: A },
),
- { ref: L, type: N } = (function (e) {
+ { ref: D, type: L } = (function (e) {
var [t, n] = f.useState(!e),
r = f.useCallback((e) => {
e && n('BUTTON' === e.tagName)
}, []),
- i = t ? 'button' : void 0
- return { ref: r, type: i }
- })(M)
+ o = t ? 'button' : void 0
+ return { ref: r, type: o }
+ })(j)
return f.createElement(
u.m$.button,
- _(
+ E(
{
disabled: d || h,
- ref: (0, r.l)(t, L),
- as: M,
- type: null != T ? T : N,
- 'data-active': (0, l.PB)(p),
- 'data-loading': (0, l.PB)(h),
- __css: D,
- className: (0, l.cx)('chakra-button', P),
- },
- R,
+ ref: (0, r.l)(t, D),
+ as: j,
+ type: null != O ? O : L,
+ 'data-active': (0, c.PB)(p),
+ 'data-loading': (0, c.PB)(h),
+ __css: R,
+ className: (0, c.cx)('chakra-button', P),
+ },
+ I,
),
- y && !h && f.createElement(O, { marginEnd: E }, y),
+ y && !h && f.createElement(T, { marginEnd: x }, y),
h &&
- 'start' === A &&
+ 'start' === S &&
f.createElement(
C,
{ className: 'chakra-button__spinner--start', label: w, placement: 'start' },
- S,
+ M,
),
h ? w || f.createElement(u.m$.span, { opacity: 0 }, m) : m,
h &&
- 'end' === A &&
+ 'end' === S &&
f.createElement(
C,
{ className: 'chakra-button__spinner--end', label: w, placement: 'end' },
- S,
+ M,
),
- b && !h && f.createElement(O, { marginStart: E }, b),
+ b && !h && f.createElement(T, { marginStart: x }, b),
)
})
- c.Ts && (T.displayName = 'Button')
- var O = (e) => {
+ l.Ts && (O.displayName = 'Button')
+ var T = (e) => {
var { children: t, className: n } = e,
r = k(e, ['children', 'className']),
- i = f.isValidElement(t) ? f.cloneElement(t, { 'aria-hidden': !0, focusable: !1 }) : t,
- o = (0, l.cx)('chakra-button__icon', n)
+ o = f.isValidElement(t) ? f.cloneElement(t, { 'aria-hidden': !0, focusable: !1 }) : t,
+ i = (0, c.cx)('chakra-button__icon', n)
return f.createElement(
u.m$.span,
- _({ display: 'inline-flex', alignSelf: 'center', flexShrink: 0 }, r, { className: o }),
- i,
+ E({ display: 'inline-flex', alignSelf: 'center', flexShrink: 0 }, r, { className: i }),
+ o,
)
}
- c.Ts && (O.displayName = 'ButtonIcon')
+ l.Ts && (T.displayName = 'ButtonIcon')
var C = (e) => {
var {
label: t,
@@ -782,12 +995,12 @@
width: '1em',
height: '1em',
}),
- className: i,
- __css: o,
+ className: o,
+ __css: i,
} = e,
a = k(e, ['label', 'placement', 'spacing', 'children', 'className', '__css']),
- s = (0, l.cx)('chakra-button__spinner', i),
- c = _(
+ s = (0, c.cx)('chakra-button__spinner', o),
+ l = E(
{
display: 'flex',
alignItems: 'center',
@@ -796,23 +1009,23 @@
fontSize: '1em',
lineHeight: 'normal',
},
- o,
+ i,
)
- return f.createElement(u.m$.div, _({ className: s }, a, { __css: c }), r)
+ return f.createElement(u.m$.div, E({ className: s }, a, { __css: l }), r)
}
- c.Ts && (C.displayName = 'ButtonSpinner')
+ l.Ts && (C.displayName = 'ButtonSpinner')
},
- 8420: function (e, t, n) {
+ 48420: function (e, t, n) {
'use strict'
n.d(t, {
h: function () {
return u
},
})
- var r = n(63),
- i = n(3808),
- o = n(7294),
- a = n(155)
+ var r = n(90063),
+ o = n(73808),
+ i = n(67294),
+ a = n(40155)
function s() {
return (s =
Object.assign ||
@@ -825,31 +1038,333 @@
}).apply(this, arguments)
}
var u = (0, r.G)((e, t) => {
- var { icon: n, children: r, isRound: i, 'aria-label': u } = e,
- l = (function (e, t) {
+ var { icon: n, children: r, isRound: o, 'aria-label': u } = e,
+ c = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, ['icon', 'children', 'isRound', 'aria-label']),
- c = n || r,
- d = o.isValidElement(c) ? o.cloneElement(c, { 'aria-hidden': !0, focusable: !1 }) : null
- return o.createElement(
+ l = n || r,
+ d = i.isValidElement(l) ? i.cloneElement(l, { 'aria-hidden': !0, focusable: !1 }) : null
+ return i.createElement(
a.z,
- s({ padding: '0', borderRadius: i ? 'full' : void 0, ref: t, 'aria-label': u }, l),
+ s({ padding: '0', borderRadius: o ? 'full' : void 0, ref: t, 'aria-label': u }, c),
d,
)
})
- i.Ts && (u.displayName = 'IconButton')
+ o.Ts && (u.displayName = 'IconButton')
+ },
+ 45771: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.ColorModeProvider = d),
+ (t.useColorModeValue = function (e, t) {
+ return 'dark' === l().colorMode ? t : e
+ }),
+ (t.LightMode = t.DarkMode = t.useColorMode = t.ColorModeContext = void 0)
+ var r = n(66751),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ i = n(77570),
+ a = n(68346)
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var c = o.createContext({})
+ ;(t.ColorModeContext = c), r.__DEV__ && (c.displayName = 'ColorModeContext')
+ var l = function () {
+ var e = o.useContext(c)
+ if (void 0 === e) throw new Error('useColorMode must be used within a ColorModeProvider')
+ return e
+ }
+ function d(e) {
+ var t = e.value,
+ n = e.children,
+ s = e.options,
+ u = s.useSystemColorMode,
+ l = s.initialColorMode,
+ d = e.colorModeManager,
+ f = void 0 === d ? a.localStorageManager : d,
+ h = o.useState('cookie' === f.type ? f.get(l) : l),
+ p = h[0],
+ v = h[1]
+ o.useEffect(
+ function () {
+ if (r.isBrowser && 'localStorage' === f.type) {
+ var e = u ? (0, i.getColorScheme)(l) : i.root.get() || f.get()
+ e && v(e)
+ }
+ },
+ [f, u, l],
+ ),
+ o.useEffect(
+ function () {
+ var e = 'dark' === p
+ ;(0, i.syncBodyClassName)(e), i.root.set(e ? 'dark' : 'light')
+ },
+ [p],
+ )
+ var m = o.useCallback(
+ function (e) {
+ f.set(e), v(e)
+ },
+ [f],
+ ),
+ g = o.useCallback(
+ function () {
+ m('light' === p ? 'dark' : 'light')
+ },
+ [p, m],
+ )
+ o.useEffect(
+ function () {
+ var e
+ return (
+ u && (e = (0, i.addListener)(m)),
+ function () {
+ e && u && e()
+ }
+ )
+ },
+ [m, u],
+ )
+ var y = o.useMemo(
+ function () {
+ return {
+ colorMode: null != t ? t : p,
+ toggleColorMode: t ? r.noop : g,
+ setColorMode: t ? r.noop : m,
+ }
+ },
+ [p, m, g, t],
+ )
+ return o.createElement(c.Provider, { value: y }, n)
+ }
+ ;(t.useColorMode = l), r.__DEV__ && (d.displayName = 'ColorModeProvider')
+ var f = function (e) {
+ return o.createElement(
+ c.Provider,
+ u({ value: { colorMode: 'dark', toggleColorMode: r.noop, setColorMode: r.noop } }, e),
+ )
+ }
+ ;(t.DarkMode = f), r.__DEV__ && (f.displayName = 'DarkMode')
+ var h = function (e) {
+ return o.createElement(
+ c.Provider,
+ u({ value: { colorMode: 'light', toggleColorMode: r.noop, setColorMode: r.noop } }, e),
+ )
+ }
+ ;(t.LightMode = h), r.__DEV__ && (h.displayName = 'LightMode')
+ },
+ 79002: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ColorModeScript = void 0)
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function i(e) {
+ var t,
+ n,
+ r = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
+ try {
+ t = localStorage.getItem('chakra-ui-color-mode')
+ } catch (o) {
+ console.log(
+ 'Chakra UI: localStorage is not available. Color mode persistence might not work as expected',
+ )
+ }
+ ;(n = 'string' === typeof t ? t : 'system' === e ? r : e) &&
+ document.documentElement.style.setProperty('--chakra-ui-color-mode', n)
+ }
+ t.ColorModeScript = function (e) {
+ var t = e.initialColorMode,
+ n = void 0 === t ? 'light' : t,
+ o = '(' + String(i) + ")('" + n + "')"
+ return r.createElement('script', { nonce: e.nonce, dangerouslySetInnerHTML: { __html: o } })
+ }
+ },
+ 77570: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.syncBodyClassName = function (e) {
+ var t = r.isBrowser ? document.body : a
+ t.classList.add(e ? i : o), t.classList.remove(e ? o : i)
+ }),
+ (t.getColorScheme = function (e) {
+ var t
+ return (
+ null !=
+ (t = (function (e) {
+ var t = null == window.matchMedia ? void 0 : window.matchMedia(e)
+ if (!t) return
+ return !!t.media === t.matches
+ })(s.dark))
+ ? t
+ : 'dark' === e
+ )
+ ? 'dark'
+ : 'light'
+ }),
+ (t.addListener = function (e) {
+ if (!('matchMedia' in window)) return r.noop
+ var t = window.matchMedia(s.dark),
+ n = function () {
+ e(t.matches ? 'dark' : 'light')
+ }
+ return (
+ n(),
+ t.addListener(n),
+ function () {
+ t.removeListener(n)
+ }
+ )
+ }),
+ (t.root = t.darkQuery = t.lightQuery = t.queries = void 0)
+ var r = n(66751),
+ o = 'chakra-ui-light',
+ i = 'chakra-ui-dark',
+ a = { classList: { add: r.noop, remove: r.noop } }
+ var s = { light: '(prefers-color-scheme: light)', dark: '(prefers-color-scheme: dark)' }
+ t.queries = s
+ var u = s.light
+ t.lightQuery = u
+ var c = s.dark
+ t.darkQuery = c
+ var l = {
+ get: function () {
+ return document.documentElement.style.getPropertyValue('--chakra-ui-color-mode')
+ },
+ set: function (e) {
+ r.isBrowser && document.documentElement.style.setProperty('--chakra-ui-color-mode', e)
+ },
+ }
+ t.root = l
+ },
+ 12094: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(45771)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(68346)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(79002)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
},
- 2300: function (e, t, n) {
+ 68346: function (e, t, n) {
'use strict'
- var r = n(3782),
- i = n(3808),
- o = n(7294)
+ ;(t.__esModule = !0), (t.cookieStorageManager = t.localStorageManager = t.storageKey = void 0)
+ var r = n(66751),
+ o = function () {
+ return 'undefined' !== typeof Storage
+ },
+ i = 'chakra-ui-color-mode'
+ t.storageKey = i
+ var a = {
+ get: function (e) {
+ if (!o()) return e
+ try {
+ var t = localStorage.getItem(i)
+ return null != t ? t : e
+ } catch (n) {
+ return r.__DEV__ && console.log(n), e
+ }
+ },
+ set: function (e) {
+ if (o())
+ try {
+ localStorage.setItem(i, e)
+ } catch (t) {
+ r.__DEV__ && console.log(t)
+ }
+ },
+ type: 'localStorage',
+ }
+ t.localStorageManager = a
+ t.cookieStorageManager = function (e) {
+ return (
+ void 0 === e && (e = ''),
+ {
+ get: function (t) {
+ var n = e.match(new RegExp('(^| )' + i + '=([^;]+)'))
+ return n ? n[2] : t
+ },
+ set: function (e) {
+ document.cookie = i + '=' + e + '; max-age=31536000; path=/'
+ },
+ type: 'cookie',
+ }
+ )
+ }
+ },
+ 62300: function (e, t, n) {
+ 'use strict'
+ var r = n(89384),
+ o = n(73808),
+ i = n(67294)
function a() {
return (a =
Object.assign ||
@@ -865,11 +1380,11 @@
var {
type: t = 'checkbox',
_hover: n,
- _invalid: i,
+ _invalid: o,
_disabled: s,
_focus: u,
- _checked: l,
- _child: c = { opacity: 0 },
+ _checked: c,
+ _child: l = { opacity: 0 },
_checkedAndChild: d = { opacity: 1 },
_checkedAndDisabled: f,
_checkedAndFocus: h,
@@ -880,10 +1395,10 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, [
'type',
'_hover',
@@ -902,12 +1417,12 @@
y = 'input[type=' + t + ']:checked:hover:not(:disabled) + &',
b = 'input[type=' + t + ']:checked:focus + &',
w = 'input[type=' + t + ']:disabled + &',
- x = 'input[type=' + t + ']:focus + &',
- E = 'input[type=' + t + ']:hover:not(:disabled):not(:checked) + &',
+ _ = 'input[type=' + t + ']:focus + &',
+ x = 'input[type=' + t + ']:hover:not(:disabled):not(:checked) + &',
k = 'input[type=' + t + ']:checked + &, input[type=' + t + '][aria-checked=mixed] + &',
- _ = 'input[type=' + t + '][aria-invalid=true] + &',
- T = '& > *'
- return o.createElement(
+ E = 'input[type=' + t + '][aria-invalid=true] + &',
+ O = '& > *'
+ return i.createElement(
r.m$.div,
a({}, m, {
'aria-hidden': !0,
@@ -918,32 +1433,32 @@
transitionProperty: 'common',
transitionDuration: 'fast',
flexShrink: 0,
- [x]: u,
- [E]: n,
+ [_]: u,
+ [x]: n,
[w]: s,
- [_]: i,
+ [E]: o,
[g]: f,
[b]: h,
[y]: p,
- [T]: c,
- [k]: a({}, l, { [T]: d }),
+ [O]: l,
+ [k]: a({}, c, { [O]: d }),
},
}),
v,
)
}
- i.Ts && (s.displayName = 'ControlBox')
+ o.Ts && (s.displayName = 'ControlBox')
},
- 1888: function (e, t, n) {
+ 21888: function (e, t, n) {
'use strict'
n.d(t, {
n: function () {
return v
},
})
- var r = n(8500),
- i = n(2947),
- o = n(7294)
+ var r = n(28500),
+ o = n(72947),
+ i = n(67294)
function a(e) {
return e.sort((e, t) => {
var n = e.compareDocumentPosition(t)
@@ -966,9 +1481,9 @@
var r = e - 1
return n && r < 0 && (r = t), r
}
- var l = 'undefined' !== typeof window ? o.useLayoutEffect : o.useEffect
- function c() {
- return (c =
+ var c = 'undefined' !== typeof window ? i.useLayoutEffect : i.useEffect
+ function l() {
+ return (l =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -1057,8 +1572,8 @@
void 0 === n && (n = !0)
var r = e.item(t)
if (r) {
- var i = s(e.enabledIndexOf(r.node), e.enabledCount(), n)
- return e.enabledItem(i)
+ var o = s(e.enabledIndexOf(r.node), e.enabledCount(), n)
+ return e.enabledItem(o)
}
}),
d(this, 'prev', function (t, n) {
@@ -1070,15 +1585,15 @@
void 0 === n && (n = !0)
var r = e.item(t)
if (r) {
- var i = u(e.enabledIndexOf(r.node), e.enabledCount() - 1, n)
- return e.enabledItem(i)
+ var o = u(e.enabledIndexOf(r.node), e.enabledCount() - 1, n)
+ return e.enabledItem(o)
}
}),
d(this, 'registerNode', (e, t) => {
if (e && !this.descendants.has(e)) {
var n = a(Array.from(this.descendants.keys()).concat(e))
null != t && t.disabled && (t.disabled = !!t.disabled)
- var r = c({ node: e, index: -1 }, t)
+ var r = l({ node: e, index: -1 }, t)
this.descendants.set(e, r), this.assignIndex(n)
}
})
@@ -1094,21 +1609,21 @@
() => p(),
() =>
(function () {
- var [e] = (0, o.useState)(() => new f())
- return l(() => () => e.destroy()), e
+ var [e] = (0, i.useState)(() => new f())
+ return c(() => () => e.destroy()), e
})(),
(e) =>
(function (e) {
var t = p(),
- [n, r] = (0, o.useState)(-1),
- a = (0, o.useRef)(null)
- l(
+ [n, r] = (0, i.useState)(-1),
+ a = (0, i.useRef)(null)
+ c(
() => () => {
a.current && t.unregister(a.current)
},
[],
),
- l(() => {
+ c(() => {
if (a.current) {
var e = Number(a.current.dataset.index)
n == e || Number.isNaN(e) || r(e)
@@ -1119,21 +1634,1960 @@
descendants: t,
index: n,
enabledIndex: t.enabledIndexOf(a.current),
- register: (0, i.l)(s, a),
+ register: (0, o.l)(s, a),
}
})(e),
]
}
},
- 639: function (e, t, n) {
+ 71312: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.FormHelperText = t.FormControl = t.useFormControlContext = void 0)
+ var r = n(81959),
+ o = n(48121),
+ i = n(66751),
+ a = n(19277),
+ s = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = u()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function u() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (u = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function c() {
+ return (c =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function l(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ var d = (0, a.createContext)({ strict: !1, name: 'FormControlContext' }),
+ f = d[0],
+ h = d[1]
+ t.useFormControlContext = h
+ var p = (0, o.forwardRef)(function (e, t) {
+ var n = (0, o.useMultiStyleConfig)('Form', e),
+ u = (function (e) {
+ var t = e.id,
+ n = e.isRequired,
+ o = e.isInvalid,
+ u = e.isDisabled,
+ d = e.isReadOnly,
+ f = l(e, ['id', 'isRequired', 'isInvalid', 'isDisabled', 'isReadOnly']),
+ h = (0, r.useId)(),
+ p = t || 'field-' + h,
+ v = p + '-label',
+ m = p + '-feedback',
+ g = p + '-helptext',
+ y = s.useState(!1),
+ b = y[0],
+ w = y[1],
+ _ = s.useState(!1),
+ x = _[0],
+ k = _[1],
+ E = (0, r.useBoolean)(),
+ O = E[0],
+ T = E[1],
+ C = s.useCallback(
+ function (e, t) {
+ return (
+ void 0 === e && (e = {}),
+ void 0 === t && (t = null),
+ c({ id: g }, e, {
+ ref: (0, a.mergeRefs)(t, function (e) {
+ e && k(!0)
+ }),
+ })
+ )
+ },
+ [g],
+ ),
+ M = s.useCallback(
+ function (e, t) {
+ var n, r
+ return (
+ void 0 === e && (e = {}),
+ void 0 === t && (t = null),
+ c({}, e, {
+ ref: t,
+ 'data-focus': (0, i.dataAttr)(O),
+ 'data-disabled': (0, i.dataAttr)(u),
+ 'data-invalid': (0, i.dataAttr)(o),
+ 'data-readonly': (0, i.dataAttr)(d),
+ id: null != (n = e.id) ? n : v,
+ htmlFor: null != (r = e.htmlFor) ? r : p,
+ })
+ )
+ },
+ [p, u, O, o, d, v],
+ ),
+ S = s.useCallback(
+ function (e, t) {
+ return (
+ void 0 === e && (e = {}),
+ void 0 === t && (t = null),
+ c({ id: m }, e, {
+ ref: (0, a.mergeRefs)(t, function (e) {
+ e && w(!0)
+ }),
+ 'aria-live': 'polite',
+ })
+ )
+ },
+ [m],
+ ),
+ P = s.useCallback(
+ function (e, t) {
+ return (
+ void 0 === e && (e = {}),
+ void 0 === t && (t = null),
+ c({}, e, f, { ref: t, role: 'group' })
+ )
+ },
+ [f],
+ ),
+ j = s.useCallback(function (e, t) {
+ return (
+ void 0 === e && (e = {}),
+ void 0 === t && (t = null),
+ c({}, e, {
+ ref: t,
+ role: 'presentation',
+ 'aria-hidden': !0,
+ children: e.children || '*',
+ })
+ )
+ }, []),
+ I = s.useCallback(
+ function () {
+ ;(0, i.scheduleMicrotask)(T.on)
+ },
+ [T],
+ )
+ return {
+ isRequired: !!n,
+ isInvalid: !!o,
+ isReadOnly: !!d,
+ isDisabled: !!u,
+ isFocused: !!O,
+ onFocus: I,
+ onBlur: T.off,
+ hasFeedbackText: b,
+ setHasFeedbackText: w,
+ hasHelpText: x,
+ setHasHelpText: k,
+ id: p,
+ labelId: v,
+ feedbackId: m,
+ helpTextId: g,
+ htmlProps: f,
+ getHelpTextProps: C,
+ getErrorMessageProps: S,
+ getRootProps: P,
+ getLabelProps: M,
+ getRequiredIndicatorProps: j,
+ }
+ })((0, o.omitThemingProps)(e)),
+ d = u.getRootProps,
+ h = (u.htmlProps, l(u, ['getRootProps', 'htmlProps'])),
+ p = (0, i.cx)('chakra-form-control', e.className),
+ v = s.useMemo(
+ function () {
+ return h
+ },
+ [h],
+ )
+ return s.createElement(
+ f,
+ { value: v },
+ s.createElement(
+ o.StylesProvider,
+ { value: n },
+ s.createElement(
+ o.chakra.div,
+ c({}, d({}, t), { className: p, __css: { width: '100%', position: 'relative' } }),
+ ),
+ ),
+ )
+ })
+ ;(t.FormControl = p), i.__DEV__ && (p.displayName = 'FormControl')
+ var v = (0, o.forwardRef)(function (e, t) {
+ var n = h(),
+ r = (0, o.useStyles)(),
+ a = (0, i.cx)('chakra-form__helper-text', e.className)
+ return s.createElement(
+ o.chakra.div,
+ c({}, null == n ? void 0 : n.getHelpTextProps(e, t), {
+ __css: r.helperText,
+ className: a,
+ }),
+ )
+ })
+ ;(t.FormHelperText = v), i.__DEV__ && (v.displayName = 'FormHelperText')
+ },
+ 7609: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.FormErrorIcon = t.FormErrorMessage = void 0)
+ var r,
+ o = (r = n(29559)) && r.__esModule ? r : { default: r },
+ i = n(48121),
+ a = n(66751),
+ s = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = c()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ u = n(71312)
+ function c() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (c = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function l() {
+ return (l =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var d = (0, i.forwardRef)(function (e, t) {
+ var n = (0, i.useMultiStyleConfig)('FormError', e),
+ r = (0, i.omitThemingProps)(e),
+ o = (0, u.useFormControlContext)()
+ return null != o && o.isInvalid
+ ? s.createElement(
+ i.StylesProvider,
+ { value: n },
+ s.createElement(
+ i.chakra.div,
+ l({}, null == o ? void 0 : o.getErrorMessageProps(r, t), {
+ className: (0, a.cx)('chakra-form__error-message', e.className),
+ __css: l({ display: 'flex', alignItems: 'center' }, n.text),
+ }),
+ ),
+ )
+ : null
+ })
+ ;(t.FormErrorMessage = d), a.__DEV__ && (d.displayName = 'FormErrorMessage')
+ var f = (0, i.forwardRef)(function (e, t) {
+ var n = (0, i.useStyles)(),
+ r = (0, u.useFormControlContext)()
+ if (null == r || !r.isInvalid) return null
+ var c = (0, a.cx)('chakra-form__error-icon', e.className)
+ return s.createElement(
+ o.default,
+ l({ ref: t, 'aria-hidden': !0 }, e, { __css: n.icon, className: c }),
+ s.createElement('path', {
+ fill: 'currentColor',
+ d: 'M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z',
+ }),
+ )
+ })
+ ;(t.FormErrorIcon = f), a.__DEV__ && (f.displayName = 'FormErrorIcon')
+ },
+ 22786: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.RequiredIndicator = t.FormLabel = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ a = n(71312)
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var c = (0, r.forwardRef)(function (e, t) {
+ var n,
+ s = (0, r.useStyleConfig)('FormLabel', e),
+ c = (0, r.omitThemingProps)(e),
+ d = (c.className, c.children),
+ f = c.requiredIndicator,
+ h = void 0 === f ? i.createElement(l, null) : f,
+ p = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(c, ['className', 'children', 'requiredIndicator']),
+ v = (0, a.useFormControlContext)(),
+ m = null != (n = null == v ? void 0 : v.getLabelProps(p, t)) ? n : u({ ref: t }, p)
+ return i.createElement(
+ r.chakra.label,
+ u({}, m, {
+ className: (0, o.cx)('chakra-form__label', c.className),
+ __css: u({ display: 'block', textAlign: 'start' }, s),
+ }),
+ d,
+ null != v && v.isRequired ? h : null,
+ )
+ })
+ ;(t.FormLabel = c), o.__DEV__ && (c.displayName = 'FormLabel')
+ var l = (0, r.forwardRef)(function (e, t) {
+ var n = (0, a.useFormControlContext)(),
+ s = (0, r.useStyles)()
+ if (null == n || !n.isRequired) return null
+ var c = (0, o.cx)('chakra-form__required-indicator', e.className)
+ return i.createElement(
+ r.chakra.span,
+ u({}, null == n ? void 0 : n.getRequiredIndicatorProps(e, t), {
+ __css: s.requiredIndicator,
+ className: c,
+ }),
+ )
+ })
+ ;(t.RequiredIndicator = l), o.__DEV__ && (l.displayName = 'RequiredIndicator')
+ },
+ 88323: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(71312)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(436)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(7609)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ var a = n(22786)
+ Object.keys(a).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === a[e]) || (t[e] = a[e]))
+ })
+ },
+ 436: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useFormControl = function (e) {
+ var t = s(e),
+ n = t.isDisabled,
+ o = t.isInvalid,
+ u = t.isReadOnly,
+ c = t.isRequired
+ return i({}, a(t, ['isDisabled', 'isInvalid', 'isReadOnly', 'isRequired']), {
+ disabled: n,
+ readOnly: u,
+ required: c,
+ 'aria-invalid': (0, r.ariaAttr)(o),
+ 'aria-required': (0, r.ariaAttr)(c),
+ 'aria-readonly': (0, r.ariaAttr)(u),
+ })
+ }),
+ (t.useFormControlProps = s)
+ var r = n(66751),
+ o = n(71312)
+ function i() {
+ return (i =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function a(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ function s(e) {
+ var t,
+ n,
+ s,
+ u = (0, o.useFormControlContext)(),
+ c = e.id,
+ l = e.disabled,
+ d = e.readOnly,
+ f = e.required,
+ h = e.isRequired,
+ p = e.isInvalid,
+ v = e.isReadOnly,
+ m = e.isDisabled,
+ g = e.onFocus,
+ y = e.onBlur,
+ b = a(e, [
+ 'id',
+ 'disabled',
+ 'readOnly',
+ 'required',
+ 'isRequired',
+ 'isInvalid',
+ 'isReadOnly',
+ 'isDisabled',
+ 'onFocus',
+ 'onBlur',
+ ]),
+ w = []
+ return (
+ null != u && u.hasFeedbackText && null != u && u.isInvalid && w.push(u.feedbackId),
+ null != u && u.hasHelpText && w.push(u.helpTextId),
+ i({}, b, {
+ 'aria-describedby': w.join(' ') || void 0,
+ id: null != c ? c : null == u ? void 0 : u.id,
+ isDisabled: null != (t = null != l ? l : m) ? t : null == u ? void 0 : u.isDisabled,
+ isReadOnly: null != (n = null != d ? d : v) ? n : null == u ? void 0 : u.isReadOnly,
+ isRequired: null != (s = null != f ? f : h) ? s : null == u ? void 0 : u.isRequired,
+ isInvalid: null != p ? p : null == u ? void 0 : u.isInvalid,
+ onFocus: (0, r.callAllHandlers)(null == u ? void 0 : u.onFocus, g),
+ onBlur: (0, r.callAllHandlers)(null == u ? void 0 : u.onBlur, y),
+ })
+ )
+ }
+ },
+ 81959: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(59627)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(69038)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(26872)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ var a = n(46903)
+ Object.keys(a).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === a[e]) || (t[e] = a[e]))
+ })
+ var s = n(6993)
+ Object.keys(s).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === s[e]) || (t[e] = s[e]))
+ })
+ var u = n(75624)
+ Object.keys(u).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === u[e]) || (t[e] = u[e]))
+ })
+ var c = n(33243)
+ Object.keys(c).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === c[e]) || (t[e] = c[e]))
+ })
+ var l = n(97649)
+ Object.keys(l).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === l[e]) || (t[e] = l[e]))
+ })
+ var d = n(31948)
+ Object.keys(d).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === d[e]) || (t[e] = d[e]))
+ })
+ var f = n(33131)
+ Object.keys(f).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === f[e]) || (t[e] = f[e]))
+ })
+ var h = n(53498)
+ Object.keys(h).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === h[e]) || (t[e] = h[e]))
+ })
+ var p = n(19867)
+ Object.keys(p).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === p[e]) || (t[e] = p[e]))
+ })
+ var v = n(59457)
+ Object.keys(v).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === v[e]) || (t[e] = v[e]))
+ })
+ var m = n(92695)
+ Object.keys(m).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === m[e]) || (t[e] = m[e]))
+ })
+ var g = n(34281)
+ Object.keys(g).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === g[e]) || (t[e] = g[e]))
+ })
+ var y = n(8042)
+ Object.keys(y).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === y[e]) || (t[e] = y[e]))
+ })
+ var b = n(19679)
+ Object.keys(b).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === b[e]) || (t[e] = b[e]))
+ })
+ var w = n(24754)
+ Object.keys(w).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === w[e]) || (t[e] = w[e]))
+ })
+ var _ = n(12166)
+ Object.keys(_).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === _[e]) || (t[e] = _[e]))
+ })
+ var x = n(89395)
+ Object.keys(x).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === x[e]) || (t[e] = x[e]))
+ })
+ var k = n(3267)
+ Object.keys(k).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === k[e]) || (t[e] = k[e]))
+ })
+ var E = n(26465)
+ Object.keys(E).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === E[e]) || (t[e] = E[e]))
+ })
+ var O = n(30474)
+ Object.keys(O).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === O[e]) || (t[e] = O[e]))
+ })
+ var T = n(129)
+ Object.keys(T).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === T[e]) || (t[e] = T[e]))
+ })
+ var C = n(70709)
+ Object.keys(C).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === C[e]) || (t[e] = C[e]))
+ })
+ var M = n(19197)
+ Object.keys(M).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === M[e]) || (t[e] = M[e]))
+ })
+ var S = n(43670)
+ Object.keys(S).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === S[e]) || (t[e] = S[e]))
+ })
+ var P = n(42093)
+ Object.keys(P).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === P[e]) || (t[e] = P[e]))
+ })
+ var j = n(52594)
+ Object.keys(j).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === j[e]) || (t[e] = j[e]))
+ })
+ var I = n(70005)
+ Object.keys(I).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === I[e]) || (t[e] = I[e]))
+ })
+ },
+ 59627: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useBoolean = function (e) {
+ void 0 === e && (e = !1)
+ var t = (0, r.useState)(e),
+ n = t[0],
+ o = t[1],
+ i = (0, r.useCallback)(function () {
+ o(!0)
+ }, []),
+ a = (0, r.useCallback)(function () {
+ o(!1)
+ }, []),
+ s = (0, r.useCallback)(function () {
+ o(function (e) {
+ return !e
+ })
+ }, [])
+ return [n, { on: i, off: a, toggle: s }]
+ })
+ var r = n(67294)
+ },
+ 69038: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useCallbackRef = function (e, t) {
+ void 0 === t && (t = [])
+ var n = r.useRef(e)
+ return (
+ (0, o.useSafeLayoutEffect)(function () {
+ n.current = e
+ }),
+ r.useCallback(function () {
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
+ t[r] = arguments[r]
+ return null == n.current ? void 0 : n.current.apply(n, t)
+ }, t)
+ )
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ o = n(70709)
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 26872: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useClipboard = function (e, t) {
+ void 0 === t && (t = {})
+ var n = (0, o.useState)(!1),
+ r = n[0],
+ a = n[1],
+ s = 'number' === typeof t ? { timeout: t } : t,
+ u = s.timeout,
+ c = void 0 === u ? 1500 : u,
+ l = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(s, ['timeout']),
+ d = (0, o.useCallback)(
+ function () {
+ var t = (0, i.default)(e, l)
+ a(t)
+ },
+ [e, l],
+ )
+ return (
+ (0, o.useEffect)(
+ function () {
+ var e = null
+ return (
+ r &&
+ (e = window.setTimeout(function () {
+ a(!1)
+ }, c)),
+ function () {
+ e && window.clearTimeout(e)
+ }
+ )
+ },
+ [c, r],
+ ),
+ { value: e, onCopy: d, hasCopied: r }
+ )
+ })
+ var r,
+ o = n(67294),
+ i = (r = n(20640)) && r.__esModule ? r : { default: r }
+ },
+ 46903: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useConst = function (e) {
+ var t = (0, r.useRef)(null)
+ null === t.current && (t.current = 'function' === typeof e ? e() : e)
+ return t.current
+ })
+ var r = n(67294)
+ },
+ 6993: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useControllableProp = function (e, t) {
+ var n = void 0 !== e
+ return [n, n && 'undefined' !== typeof e ? e : t]
+ }),
+ (t.useControllableState = function (e) {
+ var t = e.value,
+ n = e.defaultValue,
+ a = e.onChange,
+ s = e.shouldUpdate,
+ u =
+ void 0 === s
+ ? function (e, t) {
+ return e !== t
+ }
+ : s,
+ c = (0, i.useCallbackRef)(a),
+ l = (0, i.useCallbackRef)(u),
+ d = o.useState(n),
+ f = d[0],
+ h = d[1],
+ p = void 0 !== t,
+ v = p ? t : f,
+ m = o.useCallback(
+ function (e) {
+ var t = (0, r.runIfFn)(e, v)
+ l(v, t) && (p || h(t), c(t))
+ },
+ [p, c, v, l],
+ )
+ return [v, m]
+ })
+ var r = n(66751),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ i = n(69038)
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 75624: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useDimensions = function (e, t) {
+ var n = r.useState(null),
+ a = n[0],
+ s = n[1],
+ u = r.useRef()
+ return (
+ (0, i.useSafeLayoutEffect)(
+ function () {
+ if (e.current) {
+ var n = e.current
+ return (
+ r(),
+ t &&
+ (window.addEventListener('resize', r), window.addEventListener('scroll', r)),
+ function () {
+ t &&
+ (window.removeEventListener('resize', r),
+ window.removeEventListener('scroll', r)),
+ u.current && cancelAnimationFrame(u.current)
+ }
+ )
+ }
+ function r() {
+ u.current = requestAnimationFrame(function () {
+ var e = (0, o.getBox)(n)
+ s(e)
+ })
+ }
+ },
+ [t],
+ ),
+ a
+ )
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ o = n(66751),
+ i = n(70709)
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 33243: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useDisclosure = function (e) {
+ void 0 === e && (e = {})
+ var t = e,
+ n = t.onClose,
+ s = t.onOpen,
+ c = t.isOpen,
+ l = t.id,
+ d = o.useState(e.defaultIsOpen || !1),
+ f = d[0],
+ h = d[1],
+ p = (0, i.useControllableProp)(c, f),
+ v = p[0],
+ m = p[1],
+ g = (0, a.useId)(l, 'disclosure'),
+ y = o.useCallback(
+ function () {
+ v || h(!1), null == n || n()
+ },
+ [v, n],
+ ),
+ b = o.useCallback(
+ function () {
+ v || h(!0), null == s || s()
+ },
+ [v, s],
+ ),
+ w = o.useCallback(
+ function () {
+ ;(m ? y : b)()
+ },
+ [m, b, y],
+ )
+ return {
+ isOpen: !!m,
+ onOpen: b,
+ onClose: y,
+ onToggle: w,
+ isControlled: v,
+ getButtonProps: function (e) {
+ return (
+ void 0 === e && (e = {}),
+ u({}, e, {
+ 'aria-expanded': 'true',
+ 'aria-controls': g,
+ onClick: (0, r.callAllHandlers)(e.onClick, w),
+ })
+ )
+ },
+ getDisclosureProps: function (e) {
+ return void 0 === e && (e = {}), u({}, e, { hidden: !m, id: g })
+ },
+ }
+ })
+ var r = n(66751),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ i = n(6993),
+ a = n(8042)
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ },
+ 97649: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useEventCallback = function (e) {
+ var t = r.useRef(e)
+ return (
+ (0, o.useSafeLayoutEffect)(function () {
+ t.current = e
+ }),
+ r.useCallback(function (e) {
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
+ r[o - 1] = arguments[o]
+ return t.current.apply(t, [e].concat(r))
+ }, [])
+ )
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ o = n(70709)
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 33131: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useEventListenerMap = function () {
+ var e = o.useRef(new Map()),
+ t = e.current,
+ n = o.useCallback(function (t, n, o, i) {
+ var a = (0, r.wrapPointerEventHandler)(o, 'pointerdown' === n)
+ e.current.set(o, {
+ __listener: a,
+ type: (0, r.getPointerEventName)(n),
+ el: t,
+ options: i,
+ }),
+ t.addEventListener(n, a, i)
+ }, []),
+ i = o.useCallback(function (t, n, r, o) {
+ var i = e.current.get(r).__listener
+ t.removeEventListener(n, i, o), e.current.delete(i)
+ }, [])
+ return (
+ o.useEffect(
+ function () {
+ return function () {
+ t.forEach(function (e, t) {
+ i(e.el, e.type, t, e.options)
+ })
+ }
+ },
+ [i, t],
+ ),
+ { add: n, remove: i }
+ )
+ })
+ var r = n(66751),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 31948: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useEventListener = function (e, t, n, a) {
+ var s = (0, i.useCallbackRef)(t)
+ return (
+ o.useEffect(
+ function () {
+ var t,
+ o = null != (t = (0, r.runIfFn)(n)) ? t : document
+ return (
+ o.addEventListener(e, s, a),
+ function () {
+ o.removeEventListener(e, s, a)
+ }
+ )
+ },
+ [e, n, a, s],
+ ),
+ function () {
+ var t
+ ;(null != (t = (0, r.runIfFn)(n)) ? t : document).removeEventListener(e, s, a)
+ }
+ )
+ })
+ var r = n(66751),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ i = n(69038)
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 53498: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useFocusEffect = function (e, t) {
+ var n = t.shouldFocus,
+ i = t.preventScroll
+ ;(0, o.useUpdateEffect)(
+ function () {
+ var t = e.current
+ t &&
+ n &&
+ ((0, r.hasFocusWithin)(t) || (0, r.focus)(t, { preventScroll: i, nextTick: !0 }))
+ },
+ [n, e, i],
+ )
+ })
+ var r = n(66751),
+ o = n(52594)
+ },
+ 19867: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useFocusOnHide = function (e, t) {
+ var n = t.shouldFocus,
+ i = t.visible,
+ a = t.focusRef,
+ s = n && !i
+ ;(0, o.useUpdateEffect)(
+ function () {
+ if (
+ s &&
+ !(function (e) {
+ var t = e.current
+ if (!t) return !1
+ var n = (0, r.getActiveElement)(t)
+ return !!n && !(0, r.contains)(t, n) && !!(0, r.isTabbable)(n)
+ })(e)
+ ) {
+ var t = (null == a ? void 0 : a.current) || e.current
+ t && (0, r.focus)(t, { nextTick: !0 })
+ }
+ },
+ [s, e, a],
+ )
+ })
+ var r = n(66751),
+ o = n(52594)
+ },
+ 59457: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useFocusOnPointerDown = function (e) {
+ var t = e.ref,
+ n = e.elements,
+ i = e.enabled,
+ a = (0, r.detectBrowser)('Safari')
+ ;(0, o.usePointerEvent)(
+ function () {
+ return (0, r.getOwnerDocument)(t.current)
+ },
+ 'pointerdown',
+ function (e) {
+ if (a && i) {
+ var o = e.target,
+ s = (null != n ? n : [t]).some(function (e) {
+ var t = (0, r.isRefObject)(e) ? e.current : e
+ return (0, r.contains)(t, o)
+ })
+ !(0, r.isActiveElement)(o) && s && (e.preventDefault(), (0, r.focus)(o))
+ }
+ },
+ )
+ })
+ var r = n(66751),
+ o = n(30474)
+ },
+ 92695: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useFocusOnShow = function (e, t) {
+ void 0 === t && (t = s)
+ var n = t,
+ u = n.focusRef,
+ c = n.preventScroll,
+ l = n.shouldFocus,
+ d = n.visible,
+ f = (0, r.isRefObject)(e) ? e.current : e,
+ h = l && d,
+ p = (0, o.useCallback)(
+ function () {
+ if (f && h && !(0, r.contains)(f, document.activeElement))
+ if (null != u && u.current)
+ (0, r.focus)(u.current, { preventScroll: c, nextTick: !0 })
+ else {
+ var e = (0, r.getAllFocusable)(f)
+ e.length > 0 && (0, r.focus)(e[0], { preventScroll: c, nextTick: !0 })
+ }
+ },
+ [h, c, f, u],
+ )
+ ;(0, a.useUpdateEffect)(
+ function () {
+ p()
+ },
+ [p],
+ ),
+ (0, i.useEventListener)('transitionend', p, f)
+ })
+ var r = n(66751),
+ o = n(67294),
+ i = n(31948),
+ a = n(52594),
+ s = { preventScroll: !0, shouldFocus: !1 }
+ },
+ 34281: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useForceUpdate = function () {
+ var e = r.useRef(!1),
+ t = r.useState(0),
+ n = t[0],
+ i = t[1]
+ return (
+ (0, o.useUnmountEffect)(function () {
+ e.current = !0
+ }),
+ r.useCallback(
+ function () {
+ e.current || i(n + 1)
+ },
+ [n],
+ )
+ )
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ o = n(42093)
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 8042: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useId = u),
+ (t.useIds = function (e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
+ n[o - 1] = arguments[o]
+ var i = u(e)
+ return r.useMemo(
+ function () {
+ return n.map(function (e) {
+ return e + '-' + i
+ })
+ },
+ [i, n],
+ )
+ }),
+ (t.useOptionalPart = function (e) {
+ var t = r.useState(null),
+ n = t[0],
+ o = t[1]
+ return {
+ ref: r.useCallback(
+ function (t) {
+ o(t ? e : null)
+ },
+ [e],
+ ),
+ id: n,
+ isRendered: Boolean(n),
+ }
+ }),
+ (t.IdProvider = void 0)
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var i = { prefix: Math.round(1e10 * Math.random()), current: 0 },
+ a = r.createContext(i),
+ s = r.memo(function (e) {
+ var t = e.children,
+ n = r.useContext(a),
+ o = n === i,
+ s = r.useMemo(
+ function () {
+ return { prefix: o ? 0 : ++n.prefix, current: 0 }
+ },
+ [o, n],
+ )
+ return r.createElement(a.Provider, { value: s }, t)
+ })
+ function u(e, t) {
+ var n = r.useContext(a)
+ return r.useMemo(
+ function () {
+ return e || [t, n.prefix, ++n.current].filter(Boolean).join('-')
+ },
+ [e, t],
+ )
+ }
+ t.IdProvider = s
+ },
+ 19679: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useInterval = function (e, t) {
+ var n = (0, o.useCallbackRef)(e)
+ r.useEffect(
+ function () {
+ var e = null
+ return (
+ null !== t &&
+ (e = window.setInterval(function () {
+ return n()
+ }, t)),
+ function () {
+ e && window.clearInterval(e)
+ }
+ )
+ },
+ [t, n],
+ )
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ o = n(69038)
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 24754: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useLatestRef = function (e) {
+ var t = r.useRef(null)
+ return (t.current = e), t
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 12166: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.assignRef = i),
+ (t.useMergeRefs = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return r.useMemo(function () {
+ return t.every(function (e) {
+ return null == e
+ })
+ ? null
+ : function (e) {
+ t.forEach(function (t) {
+ t && i(t, e)
+ })
+ }
+ }, t)
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function i(e, t) {
+ if (null != e)
+ if ('function' !== typeof e)
+ try {
+ e.current = t
+ } catch (n) {
+ throw new Error("Cannot assign value '" + t + "' to ref '" + e + "'")
+ }
+ else e(t)
+ }
+ },
+ 89395: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useMouseDownRef = function (e) {
+ void 0 === e && (e = !0)
+ var t = o.default.useRef()
+ return (
+ (0, i.useEventListener)('mousedown', function (n) {
+ e && (t.current = n.target)
+ }),
+ t
+ )
+ })
+ var r,
+ o = (r = n(67294)) && r.__esModule ? r : { default: r },
+ i = n(31948)
+ },
+ 3267: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useOutsideClick = function (e) {
+ var t = e.ref,
+ n = e.handler,
+ s = (0, i.useCallbackRef)(n),
+ u = (0, o.useRef)({ isPointerDown: !1, ignoreEmulatedMouseEvents: !1 }).current
+ ;(0, o.useEffect)(
+ function () {
+ var e = function (e) {
+ a(e, t) && (u.isPointerDown = !0)
+ },
+ o = function (e) {
+ u.ignoreEmulatedMouseEvents
+ ? (u.ignoreEmulatedMouseEvents = !1)
+ : u.isPointerDown && n && a(e, t) && ((u.isPointerDown = !1), s(e))
+ },
+ i = function (e) {
+ ;(u.ignoreEmulatedMouseEvents = !0),
+ n && u.isPointerDown && a(e, t) && ((u.isPointerDown = !1), s(e))
+ },
+ c = (0, r.getOwnerDocument)(t.current)
+ return (
+ c.addEventListener('mousedown', e, !0),
+ c.addEventListener('mouseup', o, !0),
+ c.addEventListener('touchstart', e, !0),
+ c.addEventListener('touchend', i, !0),
+ function () {
+ c.removeEventListener('mousedown', e, !0),
+ c.removeEventListener('mouseup', o, !0),
+ c.removeEventListener('touchstart', e, !0),
+ c.removeEventListener('touchend', i, !0)
+ }
+ )
+ },
+ [n, t, s, u],
+ )
+ })
+ var r = n(66751),
+ o = n(67294),
+ i = n(69038)
+ function a(e, t) {
+ var n,
+ o = e.target
+ if (e.button > 0) return !1
+ if (o && !(0, r.getOwnerDocument)(o).body.contains(o)) return !1
+ return !(null != (n = t.current) && n.contains(o))
+ }
+ },
+ 26465: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.usePanGesture = function (e, t) {
+ var n = t.onPan,
+ s = t.onPanStart,
+ u = t.onPanEnd,
+ c = t.onPanSessionStart,
+ l = t.onPanSessionEnd,
+ d = Boolean(n || s || u || c || l),
+ f = (0, o.useRef)(null),
+ h = {
+ onSessionStart: c,
+ onSessionEnd: l,
+ onStart: s,
+ onMove: n,
+ onEnd: function (e, t) {
+ ;(f.current = null), null == u || u(e, t)
+ },
+ }
+ ;(0, o.useEffect)(function () {
+ var e
+ null == (e = f.current) || e.updateHandlers(h)
+ }),
+ (0, i.usePointerEvent)(
+ function () {
+ return e.current
+ },
+ 'pointerdown',
+ d
+ ? function (e) {
+ f.current = new r.PanSession(e, h)
+ }
+ : r.noop,
+ ),
+ (0, a.useUnmountEffect)(function () {
+ var e
+ null == (e = f.current) || e.end(), (f.current = null)
+ })
+ })
+ var r = n(66751),
+ o = n(67294),
+ i = n(30474),
+ a = n(42093)
+ },
+ 30474: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.usePointerEvent = function (e, t, n, i) {
+ return (0, o.useEventListener)(
+ (0, r.getPointerEventName)(t),
+ (0, r.wrapPointerEventHandler)(n, 'pointerdown' === t),
+ e,
+ i,
+ )
+ })
+ var r = n(66751),
+ o = n(31948)
+ },
+ 129: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.usePrevious = function (e) {
+ var t = (0, r.useRef)()
+ return (
+ (0, r.useEffect)(
+ function () {
+ t.current = e
+ },
+ [e],
+ ),
+ t.current
+ )
+ })
+ var r = n(67294)
+ },
+ 70709: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.useSafeLayoutEffect = void 0)
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var i = n(66751).isBrowser ? r.useLayoutEffect : r.useEffect
+ t.useSafeLayoutEffect = i
+ },
+ 19197: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useShortcut = function (e) {
+ void 0 === e && (e = {})
+ var t = e,
+ n = t.timeout,
+ o = void 0 === n ? 300 : n,
+ i = t.preventDefault,
+ a =
+ void 0 === i
+ ? function () {
+ return !0
+ }
+ : i,
+ s = r.useState([]),
+ u = s[0],
+ c = s[1],
+ l = r.useRef(),
+ d = function () {
+ l.current && (clearTimeout(l.current), (l.current = null))
+ },
+ f = function () {
+ d(),
+ (l.current = setTimeout(function () {
+ c([]), (l.current = null)
+ }, o))
+ }
+ return (
+ r.useEffect(function () {
+ return d
+ }, []),
+ function (e) {
+ return function (t) {
+ if ('Backspace' === t.key) {
+ var n = [].concat(u)
+ return n.pop(), void c(n)
+ }
+ if (
+ (function (e) {
+ var t = e.key
+ return 1 === t.length || (t.length > 1 && /[^a-zA-Z0-9]/.test(t))
+ })(t)
+ ) {
+ var r = u.concat(t.key)
+ a(t) && (t.preventDefault(), t.stopPropagation()), c(r), e(r.join('')), f()
+ }
+ }
+ }
+ )
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 43670: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useTimeout = function (e, t) {
+ var n = (0, o.useCallbackRef)(e)
+ r.useEffect(
+ function () {
+ if (null != t) {
+ var e
+ return (
+ (e = window.setTimeout(function () {
+ n()
+ }, t)),
+ function () {
+ e && window.clearTimeout(e)
+ }
+ )
+ }
+ },
+ [t, n],
+ )
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ o = n(69038)
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 42093: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useUnmountEffect = function (e, t) {
+ void 0 === t && (t = [])
+ return r.useEffect(function () {
+ return function () {
+ return e()
+ }
+ }, t)
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 52594: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.useUpdateEffect = void 0)
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ t.useUpdateEffect = function (e, t) {
+ var n = r.useRef(!1)
+ return (
+ r.useEffect(function () {
+ if (n.current) return e()
+ n.current = !0
+ }, t),
+ n.current
+ )
+ }
+ },
+ 70005: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useWhyDidYouUpdate = function (e, t) {
+ var n = r.useRef()
+ r.useEffect(function () {
+ if (n.current) {
+ var r = Object.keys(i({}, n.current, t)),
+ o = {}
+ r.forEach(function (e) {
+ n.current[e] !== t[e] && (o[e] = { from: n.current[e], to: t[e] })
+ }),
+ Object.keys(o).length && console.log('[why-did-you-update]', e, o)
+ }
+ n.current = t
+ })
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function i() {
+ return (i =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ },
+ 90639: function (e, t, n) {
'use strict'
n.d(t, {
k: function () {
- return i
+ return o
},
})
- var r = n(7294)
- function i(e) {
+ var r = n(67294)
+ function o(e) {
void 0 === e && (e = !1)
var [t, n] = (0, r.useState)(e)
return [
@@ -1152,20 +3606,20 @@
]
}
},
- 762: function (e, t, n) {
+ 10762: function (e, t, n) {
'use strict'
n.d(t, {
W: function () {
- return o
+ return i
},
})
- var r = n(7294),
- i = n(8327)
- function o(e, t) {
+ var r = n(67294),
+ o = n(68327)
+ function i(e, t) {
void 0 === t && (t = [])
var n = r.useRef(e)
return (
- (0, i.G)(() => {
+ (0, o.G)(() => {
n.current = e
}),
r.useCallback(function () {
@@ -1175,7 +3629,7 @@
)
}
},
- 1034: function (e, t, n) {
+ 51034: function (e, t, n) {
'use strict'
n.d(t, {
p: function () {
@@ -1185,41 +3639,41 @@
return s
},
})
- var r = n(658),
- i = n(7294),
- o = n(762)
+ var r = n(80658),
+ o = n(67294),
+ i = n(10762)
function a(e, t) {
var n = void 0 !== e
return [n, n && 'undefined' !== typeof e ? e : t]
}
function s(e) {
var { value: t, defaultValue: n, onChange: a, shouldUpdate: s = (e, t) => e !== t } = e,
- u = (0, o.W)(a),
- l = (0, o.W)(s),
- [c, d] = i.useState(n),
+ u = (0, i.W)(a),
+ c = (0, i.W)(s),
+ [l, d] = o.useState(n),
f = void 0 !== t,
- h = f ? t : c,
- p = i.useCallback(
+ h = f ? t : l,
+ p = o.useCallback(
(e) => {
var t = (0, r.Pu)(e, h)
- l(h, t) && (f || d(t), u(t))
+ c(h, t) && (f || d(t), u(t))
},
- [f, u, h, l],
+ [f, u, h, c],
)
return [h, p]
}
},
- 4860: function (e, t, n) {
+ 74860: function (e, t, n) {
'use strict'
n.d(t, {
q: function () {
return u
},
})
- var r = n(658),
- i = n(7294),
- o = n(1034),
- a = n(4577)
+ var r = n(80658),
+ o = n(67294),
+ i = n(51034),
+ a = n(94577)
function s() {
return (s =
Object.assign ||
@@ -1233,17 +3687,17 @@
}
function u(e) {
void 0 === e && (e = {})
- var { onClose: t, onOpen: n, isOpen: u, id: l } = e,
- [c, d] = i.useState(e.defaultIsOpen || !1),
- [f, h] = (0, o.p)(u, c),
- p = (0, a.Me)(l, 'disclosure'),
- v = i.useCallback(() => {
+ var { onClose: t, onOpen: n, isOpen: u, id: c } = e,
+ [l, d] = o.useState(e.defaultIsOpen || !1),
+ [f, h] = (0, i.p)(u, l),
+ p = (0, a.Me)(c, 'disclosure'),
+ v = o.useCallback(() => {
f || d(!1), null == t || t()
}, [f, t]),
- m = i.useCallback(() => {
+ m = o.useCallback(() => {
f || d(!0), null == n || n()
}, [f, n]),
- g = i.useCallback(() => {
+ g = o.useCallback(() => {
;(h ? v : m)()
}, [h, m, v])
return {
@@ -1268,26 +3722,26 @@
}
}
},
- 4941: function (e, t, n) {
+ 34941: function (e, t, n) {
'use strict'
n.d(t, {
O: function () {
return a
},
})
- var r = n(658),
- i = n(7294),
- o = n(762)
+ var r = n(80658),
+ o = n(67294),
+ i = n(10762)
function a(e, t, n, a) {
- var s = (0, o.W)(t)
+ var s = (0, i.W)(t)
return (
- i.useEffect(() => {
+ o.useEffect(() => {
var t,
- i = null != (t = (0, r.Pu)(n)) ? t : document
+ o = null != (t = (0, r.Pu)(n)) ? t : document
return (
- i.addEventListener(e, s, a),
+ o.addEventListener(e, s, a),
() => {
- i.removeEventListener(e, s, a)
+ o.removeEventListener(e, s, a)
}
)
}, [e, n, a, s]),
@@ -1298,37 +3752,37 @@
)
}
},
- 8327: function (e, t, n) {
+ 68327: function (e, t, n) {
'use strict'
n.d(t, {
G: function () {
- return i
+ return o
},
})
- var r = n(7294),
- i = n(4461).jU ? r.useLayoutEffect : r.useEffect
+ var r = n(67294),
+ o = n(84461).jU ? r.useLayoutEffect : r.useEffect
},
- 7581: function (e, t, n) {
+ 77581: function (e, t, n) {
'use strict'
n.d(t, {
z: function () {
- return i
+ return o
},
})
- var r = n(7294)
- function i(e, t) {
+ var r = n(67294)
+ function o(e, t) {
return void 0 === t && (t = []), r.useEffect(() => () => e(), t)
}
},
- 2653: function (e, t, n) {
+ 22653: function (e, t, n) {
'use strict'
n.d(t, {
r: function () {
- return i
+ return o
},
})
- var r = n(7294),
- i = (e, t) => {
+ var r = n(67294),
+ o = (e, t) => {
var n = r.useRef(!1)
return (
r.useEffect(() => {
@@ -1339,17 +3793,234 @@
)
}
},
- 9867: function (e, t, n) {
+ 87474: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.createIcon = function (e) {
+ var t = e.viewBox,
+ n = void 0 === t ? '0 0 24 24' : t,
+ s = e.d,
+ c = e.path,
+ l = e.displayName,
+ d = e.defaultProps,
+ f = void 0 === d ? {} : d,
+ h = (0, r.forwardRef)(function (e, t) {
+ return i.createElement(
+ a.Icon,
+ u({ ref: t, viewBox: n }, f, e),
+ null != c ? c : i.createElement('path', { fill: 'currentColor', d: s }),
+ )
+ })
+ o.__DEV__ && (h.displayName = l)
+ return h
+ })
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ a = n(41120)
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ },
+ 41120: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.default = t.Icon = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = {
+ path: i.createElement(
+ 'g',
+ { stroke: 'currentColor', strokeWidth: '1.5' },
+ i.createElement('path', {
+ strokeLinecap: 'round',
+ fill: 'none',
+ d: 'M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25',
+ }),
+ i.createElement('path', {
+ fill: 'currentColor',
+ strokeLinecap: 'round',
+ d: 'M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0',
+ }),
+ i.createElement('circle', {
+ fill: 'none',
+ strokeMiterlimit: '10',
+ cx: '12',
+ cy: '12',
+ r: '11.25',
+ }),
+ ),
+ viewBox: '0 0 24 24',
+ },
+ c = (0, r.forwardRef)(function (e, t) {
+ var n = e.as,
+ a = e.viewBox,
+ c = e.color,
+ l = void 0 === c ? 'currentColor' : c,
+ d = e.focusable,
+ f = void 0 !== d && d,
+ h = e.children,
+ p = e.className,
+ v = e.__css,
+ m = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, ['as', 'viewBox', 'color', 'focusable', 'children', 'className', '__css']),
+ g = {
+ ref: t,
+ focusable: f,
+ className: (0, o.cx)('chakra-icon', p),
+ __css: s(
+ {
+ w: '1em',
+ h: '1em',
+ display: 'inline-block',
+ lineHeight: '1em',
+ flexShrink: 0,
+ color: l,
+ },
+ v,
+ ),
+ },
+ y = null != a ? a : u.viewBox
+ if (n && 'string' !== typeof n) return i.createElement(r.chakra.svg, s({ as: n }, g, m))
+ var b = null != h ? h : u.path
+ return i.createElement(r.chakra.svg, s({ verticalAlign: 'middle', viewBox: y }, g, m), b)
+ })
+ ;(t.Icon = c), o.__DEV__ && (c.displayName = 'Icon')
+ var l = c
+ t.default = l
+ },
+ 29559: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = {}
+ t.default = void 0
+ var o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(41120))
+ ;(t.default = o.default),
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) ||
+ (e in t && t[e] === o[e]) ||
+ (t[e] = o[e]))
+ })
+ var i = n(87474)
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ },
+ 89867: function (e, t, n) {
'use strict'
n.d(t, {
I: function () {
return u
},
})
- var r = n(63),
- i = n(3808),
- o = n(7294),
- a = n(58)
+ var r = n(90063),
+ o = n(73808),
+ i = n(67294),
+ a = n(70058)
function s() {
return (s =
Object.assign ||
@@ -1362,29 +4033,29 @@
}).apply(this, arguments)
}
function u(e) {
- var { viewBox: t = '0 0 24 24', d: n, path: u, displayName: l, defaultProps: c = {} } = e,
+ var { viewBox: t = '0 0 24 24', d: n, path: u, displayName: c, defaultProps: l = {} } = e,
d = (0, r.G)((e, r) =>
- o.createElement(
+ i.createElement(
a.J,
- s({ ref: r, viewBox: t }, c, e),
- null != u ? u : o.createElement('path', { fill: 'currentColor', d: n }),
+ s({ ref: r, viewBox: t }, l, e),
+ null != u ? u : i.createElement('path', { fill: 'currentColor', d: n }),
),
)
- return i.Ts && (d.displayName = l), d
+ return o.Ts && (d.displayName = c), d
}
},
- 58: function (e, t, n) {
+ 70058: function (e, t, n) {
'use strict'
n.d(t, {
J: function () {
- return c
+ return l
},
})
- var r = n(63),
- i = n(3782),
- o = n(4461),
- a = n(3808),
- s = n(7294)
+ var r = n(90063),
+ o = n(89384),
+ i = n(84461),
+ a = n(73808),
+ s = n(67294)
function u() {
return (u =
Object.assign ||
@@ -1396,7 +4067,7 @@
return e
}).apply(this, arguments)
}
- var l = {
+ var c = {
path: s.createElement(
'g',
{ stroke: 'currentColor', strokeWidth: '1.5' },
@@ -1420,12 +4091,12 @@
),
viewBox: '0 0 24 24',
},
- c = (0, r.G)((e, t) => {
+ l = (0, r.G)((e, t) => {
var {
as: n,
viewBox: r,
color: a = 'currentColor',
- focusable: c = !1,
+ focusable: l = !1,
children: d,
className: f,
__css: h,
@@ -1434,15 +4105,15 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, ['as', 'viewBox', 'color', 'focusable', 'children', 'className', '__css']),
v = {
ref: t,
- focusable: c,
- className: (0, o.cx)('chakra-icon', f),
+ focusable: l,
+ className: (0, i.cx)('chakra-icon', f),
__css: u(
{
w: '1em',
@@ -1455,31 +4126,1585 @@
h,
),
},
- m = null != r ? r : l.viewBox
- if (n && 'string' !== typeof n) return s.createElement(i.m$.svg, u({ as: n }, v, p))
- var g = null != d ? d : l.path
- return s.createElement(i.m$.svg, u({ verticalAlign: 'middle', viewBox: m }, v, p), g)
+ m = null != r ? r : c.viewBox
+ if (n && 'string' !== typeof n) return s.createElement(o.m$.svg, u({ as: n }, v, p))
+ var g = null != d ? d : c.path
+ return s.createElement(o.m$.svg, u({ verticalAlign: 'middle', viewBox: m }, v, p), g)
})
- a.Ts && (c.displayName = 'Icon')
+ a.Ts && (l.displayName = 'Icon')
+ },
+ 79095: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.AddIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M0,12a1.5,1.5,0,0,0,1.5,1.5h8.75a.25.25,0,0,1,.25.25V22.5a1.5,1.5,0,0,0,3,0V13.75a.25.25,0,0,1,.25-.25H22.5a1.5,1.5,0,0,0,0-3H13.75a.25.25,0,0,1-.25-.25V1.5a1.5,1.5,0,0,0-3,0v8.75a.25.25,0,0,1-.25.25H1.5A1.5,1.5,0,0,0,0,12Z',
+ displayName: 'AddIcon',
+ })
+ t.AddIcon = r
+ },
+ 41725: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ArrowBackIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z',
+ displayName: 'ArrowBackIcon',
+ })
+ t.ArrowBackIcon = r
+ },
+ 16748: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ArrowDownIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z',
+ displayName: 'ArrowDownIcon',
+ })
+ t.ArrowDownIcon = r
+ },
+ 75616: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ArrowForwardIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z',
+ displayName: 'ArrowForwardIcon',
+ })
+ t.ArrowForwardIcon = r
+ },
+ 30820: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ArrowLeftIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'ArrowLeftIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M10.416,12a2.643,2.643,0,0,1,.775-1.875L20.732.584a1.768,1.768,0,0,1,2.5,2.5l-8.739,8.739a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5l-9.541-9.541A2.643,2.643,0,0,1,10.416,12Z',
+ }),
+ o.createElement('path', {
+ d: 'M.25,12a2.643,2.643,0,0,1,.775-1.875L10.566.584a1.768,1.768,0,0,1,2.5,2.5L4.327,11.823a.25.25,0,0,0,0,.354l8.739,8.739a1.768,1.768,0,0,1-2.5,2.5L1.025,13.875A2.643,2.643,0,0,1,.25,12Z',
+ }),
+ ),
+ })
+ t.ArrowLeftIcon = a
+ },
+ 57243: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ArrowRightIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'ArrowRightIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z',
+ }),
+ o.createElement('path', {
+ d: 'M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z',
+ }),
+ ),
+ })
+ t.ArrowRightIcon = a
+ },
+ 38677: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ArrowUpIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z',
+ displayName: 'ArrowUpIcon',
+ })
+ t.ArrowUpIcon = r
+ },
+ 94707: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ArrowUpDownIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ viewBox: '0 0 16 16',
+ d: 'M11.891 9.992a1 1 0 1 1 1.416 1.415l-4.3 4.3a1 1 0 0 1-1.414 0l-4.3-4.3A1 1 0 0 1 4.71 9.992l3.59 3.591 3.591-3.591zm0-3.984L8.3 2.417 4.709 6.008a1 1 0 0 1-1.416-1.415l4.3-4.3a1 1 0 0 1 1.414 0l4.3 4.3a1 1 0 1 1-1.416 1.415z',
+ displayName: 'ArrowUpDownIcon',
+ })
+ t.ArrowUpDownIcon = r
+ },
+ 64551: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.AtSignIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ displayName: 'AtSignIcon',
+ d: 'M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z',
+ })
+ t.AtSignIcon = r
+ },
+ 78281: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.AttachmentIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ displayName: 'AttachmentIcon',
+ d: 'M21.843,3.455a6.961,6.961,0,0,0-9.846,0L1.619,13.832a5.128,5.128,0,0,0,7.252,7.252L17.3,12.653A3.293,3.293,0,1,0,12.646,8L7.457,13.184A1,1,0,1,0,8.871,14.6L14.06,9.409a1.294,1.294,0,0,1,1.829,1.83L7.457,19.67a3.128,3.128,0,0,1-4.424-4.424L13.411,4.869a4.962,4.962,0,1,1,7.018,7.018L12.646,19.67a1,1,0,1,0,1.414,1.414L21.843,13.3a6.96,6.96,0,0,0,0-9.846Z',
+ })
+ t.AttachmentIcon = r
+ },
+ 94688: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.BellIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ displayName: 'BellIcon',
+ d: 'M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z',
+ })
+ t.BellIcon = r
+ },
+ 51713: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.CalendarIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ displayName: 'CalendarIcon',
+ viewBox: '0 0 14 14',
+ d: 'M10.8889,5.5 L3.11111,5.5 L3.11111,7.05556 L10.8889,7.05556 L10.8889,5.5 Z M12.4444,1.05556 L11.6667,1.05556 L11.6667,0 L10.1111,0 L10.1111,1.05556 L3.88889,1.05556 L3.88889,0 L2.33333,0 L2.33333,1.05556 L1.55556,1.05556 C0.692222,1.05556 0.00777777,1.75556 0.00777777,2.61111 L0,12.5 C0,13.3556 0.692222,14 1.55556,14 L12.4444,14 C13.3,14 14,13.3556 14,12.5 L14,2.61111 C14,1.75556 13.3,1.05556 12.4444,1.05556 Z M12.4444,12.5 L1.55556,12.5 L1.55556,3.94444 L12.4444,3.94444 L12.4444,12.5 Z M8.55556,8.61111 L3.11111,8.61111 L3.11111,10.1667 L8.55556,10.1667 L8.55556,8.61111 Z',
+ })
+ t.CalendarIcon = r
+ },
+ 92547: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ChatIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M0.913134,0.920639 C1.49851,0.331726 2.29348,0 3.12342,0 L10.8766,0 C11.7065,0 12.5015,0.331725 13.0869,0.920639 C13.6721,1.50939 14,2.30689 14,3.13746 L14,8.12943 C13.9962,8.51443 13.9059,8.97125 13.7629,9.32852 C13.6128,9.683 13.3552,10.0709 13.0869,10.3462 C12.813,10.6163 12.4265,10.8761 12.0734,11.0274 C11.7172,11.1716 11.2607,11.263 10.8766,11.2669 L10.1234,11.2669 L10.1234,12.5676 L10.1209,12.5676 C10.1204,12.793 10.0633,13.0791 9.97807,13.262 C9.8627,13.466 9.61158,13.7198 9.40818,13.8382 L9.40824,13.8383 C9.4077,13.8386 9.40716,13.8388 9.40661,13.8391 C9.40621,13.8393 9.4058,13.8396 9.40539,13.8398 L9.40535,13.8397 C9.22958,13.9254 8.94505,13.9951 8.75059,14 L8.74789,14 C8.35724,13.9963 7.98473,13.8383 7.71035,13.5617 L5.39553,11.2669 L3.12342,11.2669 C2.29348,11.2669 1.49851,10.9352 0.913134,10.3462 C0.644826,10.0709 0.387187,9.683 0.23711,9.32852 C0.0941235,8.97125 0.00379528,8.51443 0,8.12943 L0,3.13746 C0,2.30689 0.327915,1.50939 0.913134,0.920639 Z M3.12342,1.59494 C2.71959,1.59494 2.33133,1.75628 2.04431,2.04503 C1.75713,2.33395 1.59494,2.72681 1.59494,3.13746 L1.59494,8.12943 C1.59114,8.35901 1.62114,8.51076 1.71193,8.72129 C1.79563,8.9346 1.88065,9.06264 2.04431,9.22185 C2.33133,9.5106 2.71959,9.67195 3.12342,9.67195 L5.72383,9.67195 C5.93413,9.67195 6.13592,9.75502 6.28527,9.90308 L8.52848,12.1269 L8.52848,10.4694 C8.52848,10.029 8.88552,9.67195 9.32595,9.67195 L10.8766,9.67195 C11.1034,9.67583 11.2517,9.64614 11.4599,9.55518 C11.6712,9.47132 11.7976,9.38635 11.9557,9.22185 C12.1193,9.06264 12.2044,8.9346 12.2881,8.72129 C12.3789,8.51076 12.4089,8.35901 12.4051,8.12943 L12.4051,3.13746 C12.4051,2.72681 12.2429,2.33394 11.9557,2.04503 C11.6687,1.75628 11.2804,1.59494 10.8766,1.59494 L3.12342,1.59494 Z',
+ displayName: 'ChatIcon',
+ viewBox: '0 0 14 14',
+ })
+ t.ChatIcon = r
+ },
+ 26324: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.CheckIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ viewBox: '0 0 14 14',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('polygon', {
+ points: '5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039',
+ }),
+ ),
+ })
+ t.CheckIcon = a
+ },
+ 91204: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.CheckCircleIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ displayName: 'CheckCircleIcon',
+ d: 'M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z',
+ })
+ t.CheckCircleIcon = r
+ },
+ 62628: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ChevronDownIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ displayName: 'ChevronDownIcon',
+ d: 'M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z',
+ })
+ t.ChevronDownIcon = r
+ },
+ 65128: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ChevronLeftIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z',
+ displayName: 'ChevronLeftIcon',
+ })
+ t.ChevronLeftIcon = r
+ },
+ 7659: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ChevronRightIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z',
+ displayName: 'ChevronRightIcon',
+ })
+ t.ChevronRightIcon = r
+ },
+ 48959: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ChevronUpIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z',
+ displayName: 'ChevronUpIcon',
+ })
+ t.ChevronUpIcon = r
+ },
+ 34066: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.CloseIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ displayName: 'CloseIcon',
+ d: 'M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z',
+ })
+ t.CloseIcon = r
+ },
+ 68789: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.CopyIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z',
+ displayName: 'CopyIcon',
+ })
+ t.CopyIcon = r
+ },
+ 60915: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.DeleteIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'DeleteIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z',
+ }),
+ ),
+ })
+ t.DeleteIcon = a
+ },
+ 5013: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.DownloadIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z',
+ displayName: 'DownloadIcon',
+ viewBox: '0 0 14 14',
+ })
+ t.DownloadIcon = r
+ },
+ 54411: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.DragHandleIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ viewBox: '0 0 10 10',
+ d: 'M3,2 C2.44771525,2 2,1.55228475 2,1 C2,0.44771525 2.44771525,0 3,0 C3.55228475,0 4,0.44771525 4,1 C4,1.55228475 3.55228475,2 3,2 Z M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 C3.55228475,4 4,4.44771525 4,5 C4,5.55228475 3.55228475,6 3,6 Z M3,10 C2.44771525,10 2,9.55228475 2,9 C2,8.44771525 2.44771525,8 3,8 C3.55228475,8 4,8.44771525 4,9 C4,9.55228475 3.55228475,10 3,10 Z M7,2 C6.44771525,2 6,1.55228475 6,1 C6,0.44771525 6.44771525,0 7,0 C7.55228475,0 8,0.44771525 8,1 C8,1.55228475 7.55228475,2 7,2 Z M7,6 C6.44771525,6 6,5.55228475 6,5 C6,4.44771525 6.44771525,4 7,4 C7.55228475,4 8,4.44771525 8,5 C8,5.55228475 7.55228475,6 7,6 Z M7,10 C6.44771525,10 6,9.55228475 6,9 C6,8.44771525 6.44771525,8 7,8 C7.55228475,8 8,8.44771525 8,9 C8,9.55228475 7.55228475,10 7,10 Z',
+ displayName: 'DragHandleIcon',
+ })
+ t.DragHandleIcon = r
+ },
+ 27915: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.EditIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'EditIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'none', stroke: 'currentColor', strokeLinecap: 'round', strokeWidth: '2' },
+ o.createElement('path', {
+ d: 'M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7',
+ }),
+ o.createElement('path', { d: 'M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z' }),
+ ),
+ })
+ t.EditIcon = a
+ },
+ 9079: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.EmailIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'EmailIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M11.114,14.556a1.252,1.252,0,0,0,1.768,0L22.568,4.87a.5.5,0,0,0-.281-.849A1.966,1.966,0,0,0,22,4H2a1.966,1.966,0,0,0-.289.021.5.5,0,0,0-.281.849Z',
+ }),
+ o.createElement('path', {
+ d: 'M23.888,5.832a.182.182,0,0,0-.2.039l-6.2,6.2a.251.251,0,0,0,0,.354l5.043,5.043a.75.75,0,1,1-1.06,1.061l-5.043-5.043a.25.25,0,0,0-.354,0l-2.129,2.129a2.75,2.75,0,0,1-3.888,0L7.926,13.488a.251.251,0,0,0-.354,0L2.529,18.531a.75.75,0,0,1-1.06-1.061l5.043-5.043a.251.251,0,0,0,0-.354l-6.2-6.2a.18.18,0,0,0-.2-.039A.182.182,0,0,0,0,6V18a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V6A.181.181,0,0,0,23.888,5.832Z',
+ }),
+ ),
+ })
+ t.EmailIcon = a
+ },
+ 59096: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ExternalLinkIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'ExternalLinkIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'none', stroke: 'currentColor', strokeLinecap: 'round', strokeWidth: '2' },
+ o.createElement('path', {
+ d: 'M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6',
+ }),
+ o.createElement('path', { d: 'M15 3h6v6' }),
+ o.createElement('path', { d: 'M10 14L21 3' }),
+ ),
+ })
+ t.ExternalLinkIcon = a
+ },
+ 14122: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.HamburgerIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ displayName: 'HamburgerIcon',
+ viewBox: '0 0 24 24',
+ d: 'M 3 5 A 1.0001 1.0001 0 1 0 3 7 L 21 7 A 1.0001 1.0001 0 1 0 21 5 L 3 5 z M 3 11 A 1.0001 1.0001 0 1 0 3 13 L 21 13 A 1.0001 1.0001 0 1 0 21 11 L 3 11 z M 3 17 A 1.0001 1.0001 0 1 0 3 19 L 21 19 A 1.0001 1.0001 0 1 0 21 17 L 3 17 z',
+ })
+ t.HamburgerIcon = r
+ },
+ 49537: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.InfoIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z',
+ })
+ t.InfoIcon = r
+ },
+ 20883: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.InfoOutlineIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'InfoOutlineIcon',
+ path: o.createElement(
+ 'g',
+ {
+ fill: 'currentColor',
+ stroke: 'currentColor',
+ strokeLinecap: 'square',
+ strokeWidth: '2',
+ },
+ o.createElement('circle', {
+ cx: '12',
+ cy: '12',
+ fill: 'none',
+ r: '11',
+ stroke: 'currentColor',
+ }),
+ o.createElement('line', { fill: 'none', x1: '11.959', x2: '11.959', y1: '11', y2: '17' }),
+ o.createElement('circle', { cx: '11.959', cy: '7', r: '1', stroke: 'none' }),
+ ),
+ })
+ t.InfoOutlineIcon = a
+ },
+ 25929: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.LinkIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'LinkIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M10.458,18.374,7.721,21.11a2.853,2.853,0,0,1-3.942,0l-.892-.891a2.787,2.787,0,0,1,0-3.941l5.8-5.8a2.789,2.789,0,0,1,3.942,0l.893.892A1,1,0,0,0,14.94,9.952l-.893-.892a4.791,4.791,0,0,0-6.771,0l-5.8,5.8a4.787,4.787,0,0,0,0,6.77l.892.891a4.785,4.785,0,0,0,6.771,0l2.736-2.735a1,1,0,1,0-1.414-1.415Z',
+ }),
+ o.createElement('path', {
+ d: 'M22.526,2.363l-.892-.892a4.8,4.8,0,0,0-6.77,0l-2.905,2.9a1,1,0,0,0,1.414,1.414l2.9-2.9a2.79,2.79,0,0,1,3.941,0l.893.893a2.786,2.786,0,0,1,0,3.942l-5.8,5.8a2.769,2.769,0,0,1-1.971.817h0a2.766,2.766,0,0,1-1.969-.816,1,1,0,1,0-1.415,1.412,4.751,4.751,0,0,0,3.384,1.4h0a4.752,4.752,0,0,0,3.385-1.4l5.8-5.8a4.786,4.786,0,0,0,0-6.771Z',
+ }),
+ ),
+ })
+ t.LinkIcon = a
+ },
+ 81971: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.LockIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M19.5,9.5h-.75V6.75a6.75,6.75,0,0,0-13.5,0V9.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5ZM7.75,6.75a4.25,4.25,0,0,1,8.5,0V9a.5.5,0,0,1-.5.5H8.25a.5.5,0,0,1-.5-.5Z',
+ displayName: 'LockIcon',
+ })
+ t.LockIcon = r
+ },
+ 49888: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.MinusIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'MinusIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('rect', { height: '4', width: '20', x: '2', y: '10' }),
+ ),
+ })
+ t.MinusIcon = a
+ },
+ 38054: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.MoonIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z',
+ displayName: 'MoonIcon',
+ })
+ t.MoonIcon = r
+ },
+ 7846: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.NotAllowedIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9z',
+ displayName: 'NotAllowedIcon',
+ })
+ t.NotAllowedIcon = r
+ },
+ 98271: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.PhoneIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M2.20731,0.0127209 C2.1105,-0.0066419 1.99432,-0.00664663 1.91687,0.032079 C0.871279,0.438698 0.212942,1.92964 0.0580392,2.95587 C-0.426031,6.28627 2.20731,9.17133 4.62766,11.0689 C6.77694,12.7534 10.9012,15.5223 13.3409,12.8503 C13.6507,12.5211 14.0186,12.037 13.9993,11.553 C13.9412,10.7397 13.186,10.1588 12.6051,9.71349 C12.1598,9.38432 11.2304,8.47427 10.6495,8.49363 C10.1267,8.51299 9.79754,9.05515 9.46837,9.38432 L8.88748,9.96521 C8.79067,10.062 7.55145,9.24878 7.41591,9.15197 C6.91248,8.8228 6.4284,8.45491 6.00242,8.04829 C5.57644,7.64167 5.18919,7.19632 4.86002,6.73161 C4.7632,6.59607 3.96933,5.41495 4.04678,5.31813 C4.04678,5.31813 4.72448,4.58234 4.91811,4.2919 C5.32473,3.67229 5.63453,3.18822 5.16982,2.45243 C4.99556,2.18135 4.78257,1.96836 4.55021,1.73601 C4.14359,1.34875 3.73698,0.942131 3.27227,0.612963 C3.02055,0.419335 2.59457,0.0708094 2.20731,0.0127209 Z',
+ displayName: 'PhoneIcon',
+ viewBox: '0 0 14 14',
+ })
+ t.PhoneIcon = r
+ },
+ 12779: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.PlusSquareIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'PlusSquareIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'none', stroke: 'currentColor', strokeLinecap: 'round', strokeWidth: '2' },
+ o.createElement('rect', { height: '18', width: '18', rx: '2', ry: '2', x: '3', y: '3' }),
+ o.createElement('path', { d: 'M12 8v8' }),
+ o.createElement('path', { d: 'M8 12h8' }),
+ ),
+ })
+ t.PlusSquareIcon = a
+ },
+ 93942: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.QuestionIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm0,19a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,12,19Zm1.6-6.08a1,1,0,0,0-.6.917,1,1,0,1,1-2,0,3,3,0,0,1,1.8-2.75A2,2,0,1,0,10,9.255a1,1,0,1,1-2,0,4,4,0,1,1,5.6,3.666Z',
+ displayName: 'QuestionIcon',
+ })
+ t.QuestionIcon = r
+ },
+ 43370: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.QuestionOutlineIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'QuestionOutlineIcon',
+ path: o.createElement(
+ 'g',
+ { stroke: 'currentColor', strokeWidth: '1.5' },
+ o.createElement('path', {
+ strokeLinecap: 'round',
+ fill: 'none',
+ d: 'M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25',
+ }),
+ o.createElement('path', {
+ fill: 'none',
+ strokeLinecap: 'round',
+ d: 'M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0',
+ }),
+ o.createElement('circle', {
+ fill: 'none',
+ strokeMiterlimit: '10',
+ cx: '12',
+ cy: '12',
+ r: '11.25',
+ }),
+ ),
+ })
+ t.QuestionOutlineIcon = a
+ },
+ 46889: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.RepeatIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'RepeatIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z',
+ }),
+ o.createElement('path', {
+ d: 'M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z',
+ }),
+ ),
+ })
+ t.RepeatIcon = a
+ },
+ 46364: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.RepeatClockIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'RepeatClockIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z',
+ }),
+ o.createElement('path', {
+ d: 'M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z',
+ }),
+ ),
+ })
+ t.RepeatClockIcon = a
+ },
+ 43761: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.SearchIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z',
+ displayName: 'SearchIcon',
+ })
+ t.SearchIcon = r
+ },
+ 66264: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Search2Icon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z',
+ displayName: 'Search2Icon',
+ })
+ t.Search2Icon = r
+ },
+ 11375: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.SettingsIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ viewBox: '0 0 14 14',
+ d: 'M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z',
+ displayName: 'SettingsIcon',
+ })
+ t.SettingsIcon = r
+ },
+ 23961: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.SmallAddIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'SmallAddIcon',
+ viewBox: '0 0 20 20',
+ path: o.createElement('path', {
+ fill: 'currentColor',
+ d: 'M14 9h-3V6c0-.55-.45-1-1-1s-1 .45-1 1v3H6c-.55 0-1 .45-1 1s.45 1 1 1h3v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1-1s-.45-1-1-1z',
+ fillRule: 'evenodd',
+ }),
+ })
+ t.SmallAddIcon = a
+ },
+ 2746: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.SmallCloseIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'SmallCloseIcon',
+ viewBox: '0 0 16 16',
+ path: o.createElement('path', {
+ d: 'M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z',
+ fillRule: 'evenodd',
+ fill: 'currentColor',
+ }),
+ })
+ t.SmallCloseIcon = a
+ },
+ 28317: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.SpinnerIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'SpinnerIcon',
+ path: o.createElement(
+ o.Fragment,
+ null,
+ o.createElement(
+ 'defs',
+ null,
+ o.createElement(
+ 'linearGradient',
+ { x1: '28.154%', y1: '63.74%', x2: '74.629%', y2: '17.783%', id: 'a' },
+ o.createElement('stop', { stopColor: 'currentColor', offset: '0%' }),
+ o.createElement('stop', { stopColor: '#fff', stopOpacity: '0', offset: '100%' }),
+ ),
+ ),
+ o.createElement(
+ 'g',
+ { transform: 'translate(2)', fill: 'none' },
+ o.createElement('circle', {
+ stroke: 'url(#a)',
+ strokeWidth: '4',
+ cx: '10',
+ cy: '12',
+ r: '10',
+ }),
+ o.createElement('path', {
+ d: 'M10 2C4.477 2 0 6.477 0 12',
+ stroke: 'currentColor',
+ strokeWidth: '4',
+ }),
+ o.createElement('rect', {
+ fill: 'currentColor',
+ x: '8',
+ width: '4',
+ height: '4',
+ rx: '8',
+ }),
+ ),
+ ),
+ })
+ t.SpinnerIcon = a
+ },
+ 82190: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.StarIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M23.555,8.729a1.505,1.505,0,0,0-1.406-.98H16.062a.5.5,0,0,1-.472-.334L13.405,1.222a1.5,1.5,0,0,0-2.81,0l-.005.016L8.41,7.415a.5.5,0,0,1-.471.334H1.85A1.5,1.5,0,0,0,.887,10.4l5.184,4.3a.5.5,0,0,1,.155.543L4.048,21.774a1.5,1.5,0,0,0,2.31,1.684l5.346-3.92a.5.5,0,0,1,.591,0l5.344,3.919a1.5,1.5,0,0,0,2.312-1.683l-2.178-6.535a.5.5,0,0,1,.155-.543l5.194-4.306A1.5,1.5,0,0,0,23.555,8.729Z',
+ displayName: 'StarIcon',
+ })
+ t.StarIcon = r
+ },
+ 71033: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.SunIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'SunIcon',
+ path: o.createElement(
+ 'g',
+ {
+ strokeLinejoin: 'round',
+ strokeLinecap: 'round',
+ strokeWidth: '2',
+ fill: 'none',
+ stroke: 'currentColor',
+ },
+ o.createElement('circle', { cx: '12', cy: '12', r: '5' }),
+ o.createElement('path', { d: 'M12 1v2' }),
+ o.createElement('path', { d: 'M12 21v2' }),
+ o.createElement('path', { d: 'M4.22 4.22l1.42 1.42' }),
+ o.createElement('path', { d: 'M18.36 18.36l1.42 1.42' }),
+ o.createElement('path', { d: 'M1 12h2' }),
+ o.createElement('path', { d: 'M21 12h2' }),
+ o.createElement('path', { d: 'M4.22 19.78l1.42-1.42' }),
+ o.createElement('path', { d: 'M18.36 5.64l1.42-1.42' }),
+ ),
+ })
+ t.SunIcon = a
},
- 3441: function (e, t, n) {
+ 40430: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.TimeIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'TimeIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm0,22A10,10,0,1,1,22,12,10.011,10.011,0,0,1,12,22Z',
+ }),
+ o.createElement('path', {
+ d: 'M17.134,15.81,12.5,11.561V6.5a1,1,0,0,0-2,0V12a1,1,0,0,0,.324.738l4.959,4.545a1.01,1.01,0,0,0,1.413-.061A1,1,0,0,0,17.134,15.81Z',
+ }),
+ ),
+ })
+ t.TimeIcon = a
+ },
+ 33670: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.TriangleDownIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z',
+ displayName: 'TriangleDownIcon',
+ })
+ t.TriangleDownIcon = r
+ },
+ 27258: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.TriangleUpIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M12.8,5.4c-0.377-0.504-1.223-0.504-1.6,0l-9,12c-0.228,0.303-0.264,0.708-0.095,1.047 C2.275,18.786,2.621,19,3,19h18c0.379,0,0.725-0.214,0.895-0.553c0.169-0.339,0.133-0.744-0.095-1.047L12.8,5.4z',
+ displayName: 'TriangleUpIcon',
+ })
+ t.TriangleUpIcon = r
+ },
+ 82125: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.UnlockIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M19.5,9.5h-.75V6.75A6.751,6.751,0,0,0,5.533,4.811a1.25,1.25,0,1,0,2.395.717A4.251,4.251,0,0,1,16.25,6.75V9a.5.5,0,0,1-.5.5H4.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h15a2,2,0,0,0,2-2V11.5A2,2,0,0,0,19.5,9.5Zm-9.5,6a2,2,0,1,1,3,1.723V19.5a1,1,0,0,1-2,0V17.223A1.994,1.994,0,0,1,10,15.5Z',
+ displayName: 'UnlockIcon',
+ })
+ t.UnlockIcon = r
+ },
+ 48690: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.UpDownIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ displayName: 'UpDownIcon',
+ viewBox: '-1 -1 9 11',
+ d: 'M 3.5 0L 3.98809 -0.569442L 3.5 -0.987808L 3.01191 -0.569442L 3.5 0ZM 3.5 9L 3.01191 9.56944L 3.5 9.98781L 3.98809 9.56944L 3.5 9ZM 0.488094 3.56944L 3.98809 0.569442L 3.01191 -0.569442L -0.488094 2.43056L 0.488094 3.56944ZM 3.01191 0.569442L 6.51191 3.56944L 7.48809 2.43056L 3.98809 -0.569442L 3.01191 0.569442ZM -0.488094 6.56944L 3.01191 9.56944L 3.98809 8.43056L 0.488094 5.43056L -0.488094 6.56944ZM 3.98809 9.56944L 7.48809 6.56944L 6.51191 5.43056L 3.01191 8.43056L 3.98809 9.56944Z',
+ })
+ t.UpDownIcon = r
+ },
+ 74624: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ViewIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'ViewIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M23.432,10.524C20.787,7.614,16.4,4.538,12,4.6,7.6,4.537,3.213,7.615.568,10.524a2.211,2.211,0,0,0,0,2.948C3.182,16.351,7.507,19.4,11.839,19.4h.308c4.347,0,8.671-3.049,11.288-5.929A2.21,2.21,0,0,0,23.432,10.524ZM7.4,12A4.6,4.6,0,1,1,12,16.6,4.6,4.6,0,0,1,7.4,12Z',
+ }),
+ o.createElement('circle', { cx: '12', cy: '12', r: '2' }),
+ ),
+ })
+ t.ViewIcon = a
+ },
+ 25766: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ViewOffIcon = void 0)
+ var r = n(29559),
+ o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ var a = (0, r.createIcon)({
+ displayName: 'ViewOffIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M23.2,10.549a20.954,20.954,0,0,0-4.3-3.6l4-3.995a1,1,0,1,0-1.414-1.414l-.018.018a.737.737,0,0,1-.173.291l-19.5,19.5c-.008.007-.018.009-.026.017a1,1,0,0,0,1.631,1.088l4.146-4.146a11.26,11.26,0,0,0,4.31.939h.3c4.256,0,8.489-2.984,11.051-5.8A2.171,2.171,0,0,0,23.2,10.549ZM16.313,13.27a4.581,4.581,0,0,1-3,3.028,4.3,4.3,0,0,1-3.1-.19.253.253,0,0,1-.068-.407l5.56-5.559a.252.252,0,0,1,.407.067A4.3,4.3,0,0,1,16.313,13.27Z',
+ }),
+ o.createElement('path', {
+ d: 'M7.615,13.4a.244.244,0,0,0,.061-.24A4.315,4.315,0,0,1,7.5,12,4.5,4.5,0,0,1,12,7.5a4.276,4.276,0,0,1,1.16.173.244.244,0,0,0,.24-.062l1.941-1.942a.254.254,0,0,0-.1-.421A10.413,10.413,0,0,0,12,4.75C7.7,4.692,3.4,7.7.813,10.549a2.15,2.15,0,0,0-.007,2.9,21.209,21.209,0,0,0,3.438,3.03.256.256,0,0,0,.326-.029Z',
+ }),
+ ),
+ })
+ t.ViewOffIcon = a
+ },
+ 7265: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.WarningIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ d: 'M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z',
+ displayName: 'WarningIcon',
+ })
+ t.WarningIcon = r
+ },
+ 34237: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.WarningTwoIcon = void 0)
+ var r = (0, n(29559).createIcon)({
+ displayName: 'WarningTwoIcon',
+ d: 'M23.119,20,13.772,2.15h0a2,2,0,0,0-3.543,0L.881,20a2,2,0,0,0,1.772,2.928H21.347A2,2,0,0,0,23.119,20ZM11,8.423a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Zm1.05,11.51h-.028a1.528,1.528,0,0,1-1.522-1.47,1.476,1.476,0,0,1,1.448-1.53h.028A1.527,1.527,0,0,1,13.5,18.4,1.475,1.475,0,0,1,12.05,19.933Z',
+ })
+ t.WarningTwoIcon = r
+ },
+ 71018: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(68789)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(43761)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(66264)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ var a = n(38054)
+ Object.keys(a).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === a[e]) || (t[e] = a[e]))
+ })
+ var s = n(71033)
+ Object.keys(s).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === s[e]) || (t[e] = s[e]))
+ })
+ var u = n(79095)
+ Object.keys(u).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === u[e]) || (t[e] = u[e]))
+ })
+ var c = n(23961)
+ Object.keys(c).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === c[e]) || (t[e] = c[e]))
+ })
+ var l = n(11375)
+ Object.keys(l).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === l[e]) || (t[e] = l[e]))
+ })
+ var d = n(91204)
+ Object.keys(d).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === d[e]) || (t[e] = d[e]))
+ })
+ var f = n(81971)
+ Object.keys(f).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === f[e]) || (t[e] = f[e]))
+ })
+ var h = n(82125)
+ Object.keys(h).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === h[e]) || (t[e] = h[e]))
+ })
+ var p = n(74624)
+ Object.keys(p).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === p[e]) || (t[e] = p[e]))
+ })
+ var v = n(25766)
+ Object.keys(v).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === v[e]) || (t[e] = v[e]))
+ })
+ var m = n(5013)
+ Object.keys(m).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === m[e]) || (t[e] = m[e]))
+ })
+ var g = n(60915)
+ Object.keys(g).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === g[e]) || (t[e] = g[e]))
+ })
+ var y = n(46889)
+ Object.keys(y).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === y[e]) || (t[e] = y[e]))
+ })
+ var b = n(46364)
+ Object.keys(b).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === b[e]) || (t[e] = b[e]))
+ })
+ var w = n(27915)
+ Object.keys(w).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === w[e]) || (t[e] = w[e]))
+ })
+ var _ = n(65128)
+ Object.keys(_).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === _[e]) || (t[e] = _[e]))
+ })
+ var x = n(7659)
+ Object.keys(x).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === x[e]) || (t[e] = x[e]))
+ })
+ var k = n(62628)
+ Object.keys(k).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === k[e]) || (t[e] = k[e]))
+ })
+ var E = n(48959)
+ Object.keys(E).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === E[e]) || (t[e] = E[e]))
+ })
+ var O = n(41725)
+ Object.keys(O).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === O[e]) || (t[e] = O[e]))
+ })
+ var T = n(75616)
+ Object.keys(T).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === T[e]) || (t[e] = T[e]))
+ })
+ var C = n(38677)
+ Object.keys(C).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === C[e]) || (t[e] = C[e]))
+ })
+ var M = n(94707)
+ Object.keys(M).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === M[e]) || (t[e] = M[e]))
+ })
+ var S = n(16748)
+ Object.keys(S).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === S[e]) || (t[e] = S[e]))
+ })
+ var P = n(59096)
+ Object.keys(P).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === P[e]) || (t[e] = P[e]))
+ })
+ var j = n(25929)
+ Object.keys(j).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === j[e]) || (t[e] = j[e]))
+ })
+ var I = n(12779)
+ Object.keys(I).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === I[e]) || (t[e] = I[e]))
+ })
+ var A = n(51713)
+ Object.keys(A).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === A[e]) || (t[e] = A[e]))
+ })
+ var R = n(92547)
+ Object.keys(R).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === R[e]) || (t[e] = R[e]))
+ })
+ var D = n(40430)
+ Object.keys(D).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === D[e]) || (t[e] = D[e]))
+ })
+ var L = n(57243)
+ Object.keys(L).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === L[e]) || (t[e] = L[e]))
+ })
+ var N = n(30820)
+ Object.keys(N).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === N[e]) || (t[e] = N[e]))
+ })
+ var z = n(64551)
+ Object.keys(z).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === z[e]) || (t[e] = z[e]))
+ })
+ var B = n(78281)
+ Object.keys(B).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === B[e]) || (t[e] = B[e]))
+ })
+ var H = n(48690)
+ Object.keys(H).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === H[e]) || (t[e] = H[e]))
+ })
+ var F = n(82190)
+ Object.keys(F).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === F[e]) || (t[e] = F[e]))
+ })
+ var V = n(9079)
+ Object.keys(V).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === V[e]) || (t[e] = V[e]))
+ })
+ var W = n(98271)
+ Object.keys(W).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === W[e]) || (t[e] = W[e]))
+ })
+ var U = n(54411)
+ Object.keys(U).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === U[e]) || (t[e] = U[e]))
+ })
+ var G = n(28317)
+ Object.keys(G).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === G[e]) || (t[e] = G[e]))
+ })
+ var q = n(34066)
+ Object.keys(q).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === q[e]) || (t[e] = q[e]))
+ })
+ var K = n(2746)
+ Object.keys(K).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === K[e]) || (t[e] = K[e]))
+ })
+ var Z = n(7846)
+ Object.keys(Z).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === Z[e]) || (t[e] = Z[e]))
+ })
+ var X = n(33670)
+ Object.keys(X).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === X[e]) || (t[e] = X[e]))
+ })
+ var $ = n(27258)
+ Object.keys($).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === $[e]) || (t[e] = $[e]))
+ })
+ var Y = n(20883)
+ Object.keys(Y).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === Y[e]) || (t[e] = Y[e]))
+ })
+ var Q = n(94688)
+ Object.keys(Q).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === Q[e]) || (t[e] = Q[e]))
+ })
+ var J = n(49537)
+ Object.keys(J).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === J[e]) || (t[e] = J[e]))
+ })
+ var ee = n(93942)
+ Object.keys(ee).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === ee[e]) || (t[e] = ee[e]))
+ })
+ var te = n(43370)
+ Object.keys(te).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === te[e]) || (t[e] = te[e]))
+ })
+ var ne = n(7265)
+ Object.keys(ne).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === ne[e]) || (t[e] = ne[e]))
+ })
+ var re = n(34237)
+ Object.keys(re).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === re[e]) || (t[e] = re[e]))
+ })
+ var oe = n(26324)
+ Object.keys(oe).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === oe[e]) || (t[e] = oe[e]))
+ })
+ var ie = n(49888)
+ Object.keys(ie).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === ie[e]) || (t[e] = ie[e]))
+ })
+ var ae = n(14122)
+ Object.keys(ae).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === ae[e]) || (t[e] = ae[e]))
+ })
+ var se = n(29559)
+ Object.keys(se).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === se[e]) || (t[e] = se[e]))
+ })
+ },
+ 93441: function (e, t, n) {
'use strict'
n.d(t, {
L: function () {
- return o
+ return i
},
})
- var r = n(9867),
- i = n(7294),
- o = (0, r.I)({
+ var r = n(89867),
+ o = n(67294),
+ i = (0, r.I)({
displayName: 'ArrowRightIcon',
- path: i.createElement(
+ path: o.createElement(
'g',
{ fill: 'currentColor' },
- i.createElement('path', {
+ o.createElement('path', {
d: 'M13.584,12a2.643,2.643,0,0,1-.775,1.875L3.268,23.416a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L.768,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,13.584,12Z',
}),
- i.createElement('path', {
+ o.createElement('path', {
d: 'M23.75,12a2.643,2.643,0,0,1-.775,1.875l-9.541,9.541a1.768,1.768,0,0,1-2.5-2.5l8.739-8.739a.25.25,0,0,0,0-.354L10.934,3.084a1.768,1.768,0,0,1,2.5-2.5l9.541,9.541A2.643,2.643,0,0,1,23.75,12Z',
}),
),
@@ -1492,35 +5717,55 @@
return r
},
})
- var r = (0, n(9867).I)({
+ var r = (0, n(89867).I)({
displayName: 'ChevronDownIcon',
d: 'M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z',
})
},
- 9641: function (e, t, n) {
+ 48931: function (e, t, n) {
'use strict'
n.d(t, {
T: function () {
return r
},
})
- var r = (0, n(9867).I)({
+ var r = (0, n(89867).I)({
displayName: 'CloseIcon',
d: 'M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z',
})
},
- 4189: function (e, t, n) {
+ 2827: function (e, t, n) {
+ 'use strict'
+ n.d(t, {
+ p: function () {
+ return i
+ },
+ })
+ var r = n(89867),
+ o = n(67294),
+ i = (0, r.I)({
+ displayName: 'DeleteIcon',
+ path: o.createElement(
+ 'g',
+ { fill: 'currentColor' },
+ o.createElement('path', {
+ d: 'M19.452 7.5H4.547a.5.5 0 00-.5.545l1.287 14.136A2 2 0 007.326 24h9.347a2 2 0 001.992-1.819L19.95 8.045a.5.5 0 00-.129-.382.5.5 0 00-.369-.163zm-9.2 13a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zm5 0a.75.75 0 01-1.5 0v-9a.75.75 0 011.5 0zM22 4h-4.75a.25.25 0 01-.25-.25V2.5A2.5 2.5 0 0014.5 0h-5A2.5 2.5 0 007 2.5v1.25a.25.25 0 01-.25.25H2a1 1 0 000 2h20a1 1 0 000-2zM9 3.75V2.5a.5.5 0 01.5-.5h5a.5.5 0 01.5.5v1.25a.25.25 0 01-.25.25h-5.5A.25.25 0 019 3.75z',
+ }),
+ ),
+ })
+ },
+ 24189: function (e, t, n) {
'use strict'
n.d(t, {
h: function () {
- return o
+ return i
},
})
- var r = n(9867),
- i = n(7294),
- o = (0, r.I)({
+ var r = n(89867),
+ o = n(67294),
+ i = (0, r.I)({
displayName: 'InfoOutlineIcon',
- path: i.createElement(
+ path: o.createElement(
'g',
{
fill: 'currentColor',
@@ -1528,94 +5773,2149 @@
strokeLinecap: 'square',
strokeWidth: '2',
},
- i.createElement('circle', {
+ o.createElement('circle', {
cx: '12',
cy: '12',
fill: 'none',
r: '11',
stroke: 'currentColor',
}),
- i.createElement('line', {
+ o.createElement('line', {
fill: 'none',
x1: '11.959',
x2: '11.959',
y1: '11',
y2: '17',
}),
- i.createElement('circle', { cx: '11.959', cy: '7', r: '1', stroke: 'none' }),
+ o.createElement('circle', { cx: '11.959', cy: '7', r: '1', stroke: 'none' }),
),
})
},
- 7546: function (e, t, n) {
+ 67546: function (e, t, n) {
'use strict'
n.d(t, {
n: function () {
- return o
+ return i
},
})
- var r = n(9867),
- i = n(7294),
- o = (0, r.I)({
+ var r = n(89867),
+ o = n(67294),
+ i = (0, r.I)({
displayName: 'RepeatIcon',
- path: i.createElement(
+ path: o.createElement(
'g',
{ fill: 'currentColor' },
- i.createElement('path', {
+ o.createElement('path', {
d: 'M10.319,4.936a7.239,7.239,0,0,1,7.1,2.252,1.25,1.25,0,1,0,1.872-1.657A9.737,9.737,0,0,0,9.743,2.5,10.269,10.269,0,0,0,2.378,9.61a.249.249,0,0,1-.271.178l-1.033-.13A.491.491,0,0,0,.6,9.877a.5.5,0,0,0-.019.526l2.476,4.342a.5.5,0,0,0,.373.248.43.43,0,0,0,.062,0,.5.5,0,0,0,.359-.152l3.477-3.593a.5.5,0,0,0-.3-.844L5.15,10.172a.25.25,0,0,1-.2-.333A7.7,7.7,0,0,1,10.319,4.936Z',
}),
- i.createElement('path', {
+ o.createElement('path', {
d: 'M23.406,14.1a.5.5,0,0,0,.015-.526l-2.5-4.329A.5.5,0,0,0,20.546,9a.489.489,0,0,0-.421.151l-3.456,3.614a.5.5,0,0,0,.3.842l1.848.221a.249.249,0,0,1,.183.117.253.253,0,0,1,.023.216,7.688,7.688,0,0,1-5.369,4.9,7.243,7.243,0,0,1-7.1-2.253,1.25,1.25,0,1,0-1.872,1.656,9.74,9.74,0,0,0,9.549,3.03,10.261,10.261,0,0,0,7.369-7.12.251.251,0,0,1,.27-.179l1.058.127a.422.422,0,0,0,.06,0A.5.5,0,0,0,23.406,14.1Z',
}),
),
})
},
- 3986: function (e, t, n) {
+ 83986: function (e, t, n) {
'use strict'
n.d(t, {
A: function () {
- return o
+ return i
},
})
- var r = n(9867),
- i = n(7294),
- o = (0, r.I)({
+ var r = n(89867),
+ o = n(67294),
+ i = (0, r.I)({
displayName: 'RepeatClockIcon',
- path: i.createElement(
+ path: o.createElement(
'g',
{ fill: 'currentColor' },
- i.createElement('path', {
+ o.createElement('path', {
d: 'M12.965,6a1,1,0,0,0-1,1v5.5a1,1,0,0,0,1,1h5a1,1,0,0,0,0-2h-3.75a.25.25,0,0,1-.25-.25V7A1,1,0,0,0,12.965,6Z',
}),
- i.createElement('path', {
+ o.createElement('path', {
d: 'M12.567,1.258A10.822,10.822,0,0,0,2.818,8.4a.25.25,0,0,1-.271.163L.858,8.309a.514.514,0,0,0-.485.213.5.5,0,0,0-.021.53l2.679,4.7a.5.5,0,0,0,.786.107l3.77-3.746a.5.5,0,0,0-.279-.85L5.593,9.007a.25.25,0,0,1-.192-.35,8.259,8.259,0,1,1,7.866,11.59,1.25,1.25,0,0,0,.045,2.5h.047a10.751,10.751,0,1,0-.792-21.487Z',
}),
),
})
},
- 3924: function (e, t, n) {
+ 93924: function (e, t, n) {
'use strict'
n.d(t, {
e: function () {
return r
},
})
- var r = (0, n(9867).I)({
+ var r = (0, n(89867).I)({
viewBox: '0 0 14 14',
d: 'M14,7.77 L14,6.17 L12.06,5.53 L11.61,4.44 L12.49,2.6 L11.36,1.47 L9.55,2.38 L8.46,1.93 L7.77,0.01 L6.17,0.01 L5.54,1.95 L4.43,2.4 L2.59,1.52 L1.46,2.65 L2.37,4.46 L1.92,5.55 L0,6.23 L0,7.82 L1.94,8.46 L2.39,9.55 L1.51,11.39 L2.64,12.52 L4.45,11.61 L5.54,12.06 L6.23,13.98 L7.82,13.98 L8.45,12.04 L9.56,11.59 L11.4,12.47 L12.53,11.34 L11.61,9.53 L12.08,8.44 L14,7.75 L14,7.77 Z M7,10 C5.34,10 4,8.66 4,7 C4,5.34 5.34,4 7,4 C8.66,4 10,5.34 10,7 C10,8.66 8.66,10 7,10 Z',
displayName: 'SettingsIcon',
})
},
- 8017: function (e, t, n) {
+ 87409: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(35236)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(8471)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(89216)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ var a = n(52832)
+ Object.keys(a).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === a[e]) || (t[e] = a[e]))
+ })
+ },
+ 8471: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.InputRightAddon = t.InputLeftAddon = t.InputAddon = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = {
+ left: { marginEnd: '-1px', borderEndRadius: 0, borderEndColor: 'transparent' },
+ right: { marginStart: '-1px', borderStartRadius: 0, borderStartColor: 'transparent' },
+ },
+ c = (0, r.chakra)('div', {
+ baseStyle: {
+ flex: '0 0 auto',
+ width: 'auto',
+ display: 'flex',
+ alignItems: 'center',
+ whiteSpace: 'nowrap',
+ },
+ }),
+ l = (0, r.forwardRef)(function (e, t) {
+ var n,
+ o = e.placement,
+ a = void 0 === o ? 'left' : o,
+ l = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, ['placement']),
+ d = null != (n = u[a]) ? n : {},
+ f = (0, r.useStyles)()
+ return i.createElement(c, s({ ref: t }, l, { __css: s({}, f.addon, d) }))
+ })
+ ;(t.InputAddon = l), o.__DEV__ && (l.displayName = 'InputAddon')
+ var d = (0, r.forwardRef)(function (e, t) {
+ return i.createElement(
+ l,
+ s({ ref: t, placement: 'left' }, e, {
+ className: (0, o.cx)('chakra-input__left-addon', e.className),
+ }),
+ )
+ })
+ ;(t.InputLeftAddon = d),
+ o.__DEV__ && (d.displayName = 'InputLeftAddon'),
+ (d.id = 'InputLeftAddon')
+ var f = (0, r.forwardRef)(function (e, t) {
+ return i.createElement(
+ l,
+ s({ ref: t, placement: 'right' }, e, {
+ className: (0, o.cx)('chakra-input__right-addon', e.className),
+ }),
+ )
+ })
+ ;(t.InputRightAddon = f),
+ o.__DEV__ && (f.displayName = 'InputRightAddon'),
+ (f.id = 'InputRightAddon')
+ },
+ 52832: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.InputRightElement = t.InputLeftElement = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function u(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ var c = (0, r.chakra)('div', {
+ baseStyle: {
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ position: 'absolute',
+ top: '0',
+ zIndex: 2,
+ },
+ }),
+ l = (0, r.forwardRef)(function (e, t) {
+ var n,
+ o,
+ a,
+ l = e.placement,
+ d = void 0 === l ? 'left' : l,
+ f = u(e, ['placement']),
+ h = (0, r.useStyles)().field,
+ p =
+ (((a = {})['left' === d ? 'insetStart' : 'insetEnd'] = '0'),
+ (a.width =
+ null != (n = null == h ? void 0 : h.height) ? n : null == h ? void 0 : h.h),
+ (a.height =
+ null != (o = null == h ? void 0 : h.height) ? o : null == h ? void 0 : h.h),
+ (a.fontSize = null == h ? void 0 : h.fontSize),
+ a)
+ return i.createElement(c, s({ ref: t, __css: p }, f))
+ })
+ ;(l.id = 'InputElement'), o.__DEV__ && (l.displayName = 'InputElement')
+ var d = (0, r.forwardRef)(function (e, t) {
+ var n = e.className,
+ r = u(e, ['className']),
+ a = (0, o.cx)('chakra-input__left-element', n)
+ return i.createElement(l, s({ ref: t, placement: 'left', className: a }, r))
+ })
+ ;(t.InputLeftElement = d),
+ (d.id = 'InputLeftElement'),
+ o.__DEV__ && (d.displayName = 'InputLeftElement')
+ var f = (0, r.forwardRef)(function (e, t) {
+ var n = e.className,
+ r = u(e, ['className']),
+ a = (0, o.cx)('chakra-input__right-element', n)
+ return i.createElement(l, s({ ref: t, placement: 'right', className: a }, r))
+ })
+ ;(t.InputRightElement = f),
+ (f.id = 'InputRightElement'),
+ o.__DEV__ && (f.displayName = 'InputRightElement')
+ },
+ 89216: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.InputGroup = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = n(19277),
+ a = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var c = (0, r.forwardRef)(function (e, t) {
+ var n = (0, r.useMultiStyleConfig)('Input', e),
+ s = (0, r.omitThemingProps)(e),
+ c = s.children,
+ l = s.className,
+ d = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(s, ['children', 'className']),
+ f = (0, o.cx)('chakra-input__group', l),
+ h = {},
+ p = (0, i.getValidChildren)(c),
+ v = n.field
+ p.forEach(function (e) {
+ if (n) {
+ var t, r
+ if (v && 'InputLeftElement' === e.type.id)
+ h.paddingStart = null != (t = v.height) ? t : v.h
+ if (v && 'InputRightElement' === e.type.id)
+ h.paddingEnd = null != (r = v.height) ? r : v.h
+ 'InputRightAddon' === e.type.id && (h.borderEndRadius = 0),
+ 'InputLeftAddon' === e.type.id && (h.borderStartRadius = 0)
+ }
+ })
+ var m = p.map(function (t) {
+ var n,
+ r,
+ o = {
+ size: (null == (n = t.props) ? void 0 : n.size) || e.size,
+ variant: (null == (r = t.props) ? void 0 : r.variant) || e.variant,
+ }
+ return 'Input' !== t.type.id
+ ? a.cloneElement(t, o)
+ : a.cloneElement(t, Object.assign(o, h, t.props))
+ })
+ return a.createElement(
+ r.chakra.div,
+ u(
+ {
+ className: f,
+ ref: t,
+ __css: { width: '100%', display: 'flex', position: 'relative' },
+ },
+ d,
+ ),
+ a.createElement(r.StylesProvider, { value: n }, m),
+ )
+ })
+ ;(t.InputGroup = c), o.__DEV__ && (c.displayName = 'InputGroup')
+ },
+ 35236: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Input = void 0)
+ var r = n(88323),
+ o = n(48121),
+ i = n(66751),
+ a = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var c = (0, o.forwardRef)(function (e, t) {
+ var n = (0, o.useMultiStyleConfig)('Input', e),
+ s = (0, o.omitThemingProps)(e),
+ c = (0, r.useFormControl)(s),
+ l = (0, i.cx)('chakra-input', e.className)
+ return a.createElement(o.chakra.input, u({}, c, { __css: n.field, ref: t, className: l }))
+ })
+ ;(t.Input = c), i.__DEV__ && (c.displayName = 'Input'), (c.id = 'Input')
+ },
+ 74770: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.AspectRatio = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = (0, r.forwardRef)(function (e, t) {
+ var n = e.ratio,
+ a = void 0 === n ? 4 / 3 : n,
+ u = e.children,
+ c = e.className,
+ l = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, ['ratio', 'children', 'className']),
+ d = i.Children.only(u),
+ f = (0, o.cx)('chakra-aspect-ratio', c)
+ return i.createElement(
+ r.chakra.div,
+ s(
+ {
+ ref: t,
+ position: 'relative',
+ className: f,
+ _before: {
+ height: 0,
+ content: '""',
+ display: 'block',
+ paddingBottom: (0, o.mapResponsive)(a, function (e) {
+ return (1 / e) * 100 + '%'
+ }),
+ },
+ __css: {
+ '& > *:not(style)': {
+ overflow: 'hidden',
+ position: 'absolute',
+ top: '0',
+ right: '0',
+ bottom: '0',
+ left: '0',
+ display: 'flex',
+ justifyContent: 'center',
+ alignItems: 'center',
+ width: '100%',
+ height: '100%',
+ },
+ '& > img, & > video': { objectFit: 'cover' },
+ },
+ },
+ l,
+ ),
+ d,
+ )
+ })
+ ;(t.AspectRatio = u), o.__DEV__ && (u.displayName = 'AspectRatio')
+ },
+ 63061: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Badge = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = (0, r.forwardRef)(function (e, t) {
+ var n = (0, r.useStyleConfig)('Badge', e),
+ a = (0, r.omitThemingProps)(e),
+ u =
+ (a.className,
+ (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(a, ['className']))
+ return i.createElement(
+ r.chakra.span,
+ s({ ref: t, className: (0, o.cx)('chakra-badge', e.className) }, u, {
+ __css: s({ display: 'inline-block', whiteSpace: 'nowrap', verticalAlign: 'middle' }, n),
+ }),
+ )
+ })
+ ;(t.Badge = u), o.__DEV__ && (u.displayName = 'Badge')
+ },
+ 26932: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Circle = t.Square = t.Box = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function u(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ var c = (0, r.chakra)('div')
+ ;(t.Box = c), o.__DEV__ && (c.displayName = 'Box')
+ var l = (0, r.forwardRef)(function (e, t) {
+ var n = e.size,
+ r = e.centerContent,
+ o = void 0 === r || r,
+ a = u(e, ['size', 'centerContent']),
+ l = o ? { display: 'flex', alignItems: 'center', justifyContent: 'center' } : {}
+ return i.createElement(
+ c,
+ s({ ref: t, boxSize: n, __css: s({}, l, { flexShrink: 0, flexGrow: 0 }) }, a),
+ )
+ })
+ ;(t.Square = l), o.__DEV__ && (l.displayName = 'Square')
+ var d = (0, r.forwardRef)(function (e, t) {
+ var n = e.size,
+ r = u(e, ['size'])
+ return i.createElement(l, s({ size: n, ref: t, borderRadius: '9999px' }, r))
+ })
+ ;(t.Circle = d), o.__DEV__ && (d.displayName = 'Circle')
+ },
+ 21184: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.AbsoluteCenter = t.Center = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = (0, r.chakra)('div', {
+ baseStyle: { display: 'flex', alignItems: 'center', justifyContent: 'center' },
+ })
+ ;(t.Center = u), o.__DEV__ && (u.displayName = 'Center')
+ var c = {
+ horizontal: { insetStart: '50%', transform: 'translateX(-50%)' },
+ vertical: { top: '50%', transform: 'translateY(-50%)' },
+ both: { insetStart: '50%', top: '50%', transform: 'translate(-50%, -50%)' },
+ },
+ l = (0, r.forwardRef)(function (e, t) {
+ var n = e.axis,
+ o = void 0 === n ? 'both' : n,
+ a = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, ['axis'])
+ return i.createElement(
+ r.chakra.div,
+ s({ ref: t, __css: c[o] }, a, { position: 'absolute' }),
+ )
+ })
+ t.AbsoluteCenter = l
+ },
+ 9754: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Code = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = (0, r.forwardRef)(function (e, t) {
+ var n = (0, r.useStyleConfig)('Code', e),
+ a = (0, r.omitThemingProps)(e),
+ u =
+ (a.className,
+ (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(a, ['className']))
+ return i.createElement(
+ r.chakra.code,
+ s({ ref: t, className: (0, o.cx)('chakra-code', e.className) }, u, {
+ __css: s({ display: 'inline-block' }, n),
+ }),
+ )
+ })
+ ;(t.Code = u), o.__DEV__ && (u.displayName = 'Code')
+ },
+ 28210: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Container = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = (0, r.forwardRef)(function (e, t) {
+ var n = (0, r.omitThemingProps)(e),
+ a = n.className,
+ u = n.centerContent,
+ c = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(n, ['className', 'centerContent']),
+ l = (0, r.useStyleConfig)('Container', e)
+ return i.createElement(
+ r.chakra.div,
+ s({ ref: t, className: (0, o.cx)('chakra-container', a) }, c, {
+ __css: s(
+ {},
+ l,
+ u && { display: 'flex', flexDirection: 'column', alignItems: 'center' },
+ ),
+ }),
+ )
+ })
+ ;(t.Container = u), o.__DEV__ && (u.displayName = 'Container')
+ },
+ 43698: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Divider = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function u(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ var c = (0, r.forwardRef)(function (e, t) {
+ var n = (0, r.useStyleConfig)('Divider', e),
+ a = n.borderLeftWidth,
+ c = n.borderBottomWidth,
+ l = n.borderTopWidth,
+ d = n.borderRightWidth,
+ f = n.borderWidth,
+ h = n.borderStyle,
+ p = n.borderColor,
+ v = u(n, [
+ 'borderLeftWidth',
+ 'borderBottomWidth',
+ 'borderTopWidth',
+ 'borderRightWidth',
+ 'borderWidth',
+ 'borderStyle',
+ 'borderColor',
+ ]),
+ m = (0, r.omitThemingProps)(e),
+ g = m.className,
+ y = m.orientation,
+ b = void 0 === y ? 'horizontal' : y,
+ w = m.__css,
+ _ = u(m, ['className', 'orientation', '__css']),
+ x = {
+ vertical: { borderLeftWidth: a || d || f || '1px', height: '100%' },
+ horizontal: { borderBottomWidth: c || l || f || '1px', width: '100%' },
+ }
+ return i.createElement(
+ r.chakra.hr,
+ s({ ref: t, 'aria-orientation': b }, _, {
+ __css: s({}, v, { border: '0', borderColor: p, borderStyle: h }, x[b], w),
+ className: (0, o.cx)('chakra-divider', g),
+ }),
+ )
+ })
+ ;(t.Divider = c), o.__DEV__ && (c.displayName = 'Divider')
+ },
+ 87481: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Flex = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = (0, r.forwardRef)(function (e, t) {
+ var n = e.direction,
+ o = e.align,
+ a = e.justify,
+ u = e.wrap,
+ c = e.basis,
+ l = e.grow,
+ d = e.shrink,
+ f = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, ['direction', 'align', 'justify', 'wrap', 'basis', 'grow', 'shrink']),
+ h = {
+ display: 'flex',
+ flexDirection: n,
+ alignItems: o,
+ justifyContent: a,
+ flexWrap: u,
+ flexBasis: c,
+ flexGrow: l,
+ flexShrink: d,
+ }
+ return i.createElement(r.chakra.div, s({ ref: t, __css: h }, f))
+ })
+ ;(t.Flex = u), o.__DEV__ && (u.displayName = 'Flex')
+ },
+ 51870: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.GridItem = t.Grid = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function u(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ var c = (0, r.forwardRef)(function (e, t) {
+ var n = e.area,
+ o = e.templateAreas,
+ a = e.gap,
+ c = e.rowGap,
+ l = e.columnGap,
+ d = e.column,
+ f = e.row,
+ h = e.autoFlow,
+ p = e.autoRows,
+ v = e.templateRows,
+ m = e.autoColumns,
+ g = e.templateColumns,
+ y = u(e, [
+ 'area',
+ 'templateAreas',
+ 'gap',
+ 'rowGap',
+ 'columnGap',
+ 'column',
+ 'row',
+ 'autoFlow',
+ 'autoRows',
+ 'templateRows',
+ 'autoColumns',
+ 'templateColumns',
+ ]),
+ b = {
+ display: 'grid',
+ gridArea: n,
+ gridTemplateAreas: o,
+ gridGap: a,
+ gridRowGap: c,
+ gridColumnGap: l,
+ gridAutoColumns: m,
+ gridColumn: d,
+ gridRow: f,
+ gridAutoFlow: h,
+ gridAutoRows: p,
+ gridTemplateRows: v,
+ gridTemplateColumns: g,
+ }
+ return i.createElement(r.chakra.div, s({ ref: t, __css: b }, y))
+ })
+ function l(e) {
+ return (0, o.mapResponsive)(e, function (e) {
+ return 'auto' === e ? 'auto' : 'span ' + e + '/span ' + e
+ })
+ }
+ ;(t.Grid = c), o.__DEV__ && (c.displayName = 'Grid')
+ var d = (0, r.forwardRef)(function (e, t) {
+ var n = e.colSpan,
+ a = e.colStart,
+ c = e.colEnd,
+ d = e.rowEnd,
+ f = e.rowSpan,
+ h = e.rowStart,
+ p = u(e, ['colSpan', 'colStart', 'colEnd', 'rowEnd', 'rowSpan', 'rowStart']),
+ v = (0, o.filterUndefined)({
+ gridColumn: l(n),
+ gridRow: l(f),
+ gridColumnStart: a,
+ gridColumnEnd: c,
+ gridRowStart: h,
+ gridRowEnd: d,
+ })
+ return i.createElement(r.chakra.div, s({ ref: t, __css: v }, p))
+ })
+ t.GridItem = d
+ },
+ 6813: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Heading = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = (0, r.forwardRef)(function (e, t) {
+ var n = (0, r.useStyleConfig)('Heading', e),
+ a = (0, r.omitThemingProps)(e),
+ u =
+ (a.className,
+ (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(a, ['className']))
+ return i.createElement(
+ r.chakra.h2,
+ s({ ref: t, className: (0, o.cx)('chakra-heading', e.className) }, u, { __css: n }),
+ )
+ })
+ ;(t.Heading = u), o.__DEV__ && (u.displayName = 'Heading')
+ },
+ 11487: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(74770)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(63061)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(26932)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ var a = n(21184)
+ Object.keys(a).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === a[e]) || (t[e] = a[e]))
+ })
+ var s = n(9754)
+ Object.keys(s).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === s[e]) || (t[e] = s[e]))
+ })
+ var u = n(28210)
+ Object.keys(u).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === u[e]) || (t[e] = u[e]))
+ })
+ var c = n(43698)
+ Object.keys(c).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === c[e]) || (t[e] = c[e]))
+ })
+ var l = n(87481)
+ Object.keys(l).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === l[e]) || (t[e] = l[e]))
+ })
+ var d = n(51870)
+ Object.keys(d).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === d[e]) || (t[e] = d[e]))
+ })
+ var f = n(6813)
+ Object.keys(f).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === f[e]) || (t[e] = f[e]))
+ })
+ var h = n(12947)
+ Object.keys(h).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === h[e]) || (t[e] = h[e]))
+ })
+ var p = n(6976)
+ Object.keys(p).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === p[e]) || (t[e] = p[e]))
+ })
+ var v = n(72755)
+ Object.keys(v).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === v[e]) || (t[e] = v[e]))
+ })
+ var m = n(6293)
+ Object.keys(m).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === m[e]) || (t[e] = m[e]))
+ })
+ var g = n(7133)
+ Object.keys(g).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === g[e]) || (t[e] = g[e]))
+ })
+ var y = n(96030)
+ Object.keys(y).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === y[e]) || (t[e] = y[e]))
+ })
+ var b = n(80434)
+ Object.keys(b).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === b[e]) || (t[e] = b[e]))
+ })
+ var w = n(88189)
+ Object.keys(w).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === w[e]) || (t[e] = w[e]))
+ })
+ var _ = n(41525)
+ Object.keys(_).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === _[e]) || (t[e] = _[e]))
+ })
+ },
+ 12947: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Kbd = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = (0, r.forwardRef)(function (e, t) {
+ var n = (0, r.useStyleConfig)('Kbd', e),
+ a = (0, r.omitThemingProps)(e),
+ u = a.className,
+ c = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(a, ['className'])
+ return i.createElement(
+ r.chakra.kbd,
+ s({ ref: t, className: (0, o.cx)('chakra-kbd', u) }, c, {
+ __css: s({ fontFamily: 'mono' }, n),
+ }),
+ )
+ })
+ ;(t.Kbd = u), o.__DEV__ && (u.displayName = 'Kbd')
+ },
+ 41525: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.LinkBox = t.LinkOverlay = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function u(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ var c = (0, r.forwardRef)(function (e, t) {
+ var n = e.isExternal,
+ a = e.target,
+ c = e.rel,
+ l = e.className,
+ d = u(e, ['isExternal', 'target', 'rel', 'className'])
+ return i.createElement(
+ r.chakra.a,
+ s({}, d, {
+ ref: t,
+ className: (0, o.cx)('chakra-linkbox__overlay', l),
+ rel: n ? 'noopener noreferrer' : c,
+ target: n ? '_blank' : a,
+ __css: {
+ position: 'static',
+ '&::before': {
+ content: "''",
+ cursor: 'inherit',
+ display: 'block',
+ position: 'absolute',
+ top: 0,
+ left: 0,
+ zIndex: 0,
+ width: '100%',
+ height: '100%',
+ },
+ },
+ }),
+ )
+ })
+ t.LinkOverlay = c
+ var l = (0, r.forwardRef)(function (e, t) {
+ var n = e.className,
+ a = u(e, ['className'])
+ return i.createElement(
+ r.chakra.div,
+ s({ ref: t, position: 'relative' }, a, {
+ className: (0, o.cx)('chakra-linkbox', n),
+ __css: {
+ 'a[href]:not(.chakra-linkbox__overlay), abbr[title]': {
+ position: 'relative',
+ zIndex: 1,
+ },
+ },
+ }),
+ )
+ })
+ t.LinkBox = l
+ },
+ 6976: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Link = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = (0, r.forwardRef)(function (e, t) {
+ var n = (0, r.useStyleConfig)('Link', e),
+ a = (0, r.omitThemingProps)(e),
+ u = a.className,
+ c = a.isExternal,
+ l = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(a, ['className', 'isExternal'])
+ return i.createElement(
+ r.chakra.a,
+ s(
+ {
+ target: c ? '_blank' : void 0,
+ rel: c ? 'noopener noreferrer' : void 0,
+ ref: t,
+ className: (0, o.cx)('chakra-link', u),
+ },
+ l,
+ { __css: n },
+ ),
+ )
+ })
+ ;(t.Link = u), o.__DEV__ && (u.displayName = 'Link')
+ },
+ 72755: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.ListIcon = t.ListItem = t.UnorderedList = t.OrderedList = t.List = void 0)
+ var r = n(29559),
+ o = n(48121),
+ i = n(66751),
+ a = n(19277),
+ s = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = u()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function u() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (u = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function c() {
+ return (c =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function l(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ var d = (0, o.forwardRef)(function (e, t) {
+ var n,
+ r = (0, o.useMultiStyleConfig)('List', e),
+ i = (0, o.omitThemingProps)(e),
+ u = i.children,
+ d = i.styleType,
+ f = void 0 === d ? 'none' : d,
+ h = i.stylePosition,
+ p = i.spacing,
+ v = l(i, ['children', 'styleType', 'stylePosition', 'spacing']),
+ m = (0, a.getValidChildren)(u),
+ g = p ? (((n = {})['& > *:not(style) ~ *:not(style)'] = { mt: p }), n) : {}
+ return s.createElement(
+ o.StylesProvider,
+ { value: r },
+ s.createElement(
+ o.chakra.ul,
+ c(
+ {
+ ref: t,
+ listStyleType: f,
+ listStylePosition: h,
+ role: 'list',
+ __css: c({}, r.container, g),
+ },
+ v,
+ ),
+ m,
+ ),
+ )
+ })
+ ;(t.List = d), i.__DEV__ && (d.displayName = 'List')
+ var f = (0, o.forwardRef)(function (e, t) {
+ e.as
+ var n = l(e, ['as'])
+ return s.createElement(
+ d,
+ c({ ref: t, as: 'ol', styleType: 'decimal', marginStart: '1em' }, n),
+ )
+ })
+ ;(t.OrderedList = f), i.__DEV__ && (f.displayName = 'OrderedList')
+ var h = (0, o.forwardRef)(function (e, t) {
+ e.as
+ var n = l(e, ['as'])
+ return s.createElement(
+ d,
+ c({ ref: t, as: 'ul', styleType: 'initial', marginStart: '1em' }, n),
+ )
+ })
+ ;(t.UnorderedList = h), i.__DEV__ && (h.displayName = 'UnorderedList')
+ var p = (0, o.forwardRef)(function (e, t) {
+ var n = (0, o.useStyles)()
+ return s.createElement(o.chakra.li, c({ ref: t }, e, { __css: n.item }))
+ })
+ ;(t.ListItem = p), i.__DEV__ && (p.displayName = 'ListItem')
+ var v = (0, o.forwardRef)(function (e, t) {
+ var n = (0, o.useStyles)()
+ return s.createElement(r.Icon, c({ ref: t, role: 'presentation' }, e, { __css: n.icon }))
+ })
+ ;(t.ListIcon = v), i.__DEV__ && (v.displayName = 'ListIcon')
+ },
+ 6293: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.SimpleGrid = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ a = n(51870)
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var c = (0, r.forwardRef)(function (e, t) {
+ var n,
+ r,
+ s = e.columns,
+ c = e.spacingX,
+ l = e.spacingY,
+ d = e.spacing,
+ f = e.minChildWidth,
+ h = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, ['columns', 'spacingX', 'spacingY', 'spacing', 'minChildWidth']),
+ p = f
+ ? ((r = f),
+ (0, o.mapResponsive)(r, function (e) {
+ return (0, o.isNull)(e)
+ ? null
+ : 'repeat(auto-fit, minmax(' +
+ ((t = e), ((0, o.isNumber)(t) ? t + 'px' : t) + ', 1fr))')
+ var t
+ }))
+ : ((n = s),
+ (0, o.mapResponsive)(n, function (e) {
+ return (0, o.isNull)(e) ? null : 'repeat(' + e + ', minmax(0, 1fr))'
+ }))
+ return i.createElement(
+ a.Grid,
+ u({ ref: t, gap: d, columnGap: c, rowGap: l, templateColumns: p }, h),
+ )
+ })
+ ;(t.SimpleGrid = c), o.__DEV__ && (c.displayName = 'SimpleGrid')
+ },
+ 7133: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Spacer = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (0, r.chakra)('div', {
+ baseStyle: { flex: 1, justifySelf: 'stretch', alignSelf: 'stretch' },
+ })
+ ;(t.Spacer = i), o.__DEV__ && (i.displayName = 'Spacer')
+ },
+ 96030: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.VStack = t.HStack = t.Stack = t.StackItem = t.StackDivider = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = n(19277),
+ a = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = u()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294)),
+ s = n(17596)
+ function u() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (u = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function c() {
+ return (c =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ t.StackDivider = function (e) {
+ return a.createElement(
+ r.chakra.div,
+ c({ className: 'chakra-stack__divider' }, e, {
+ __css: c({}, e.__css, {
+ borderWidth: 0,
+ alignSelf: 'stretch',
+ borderColor: 'inherit',
+ width: 'auto',
+ height: 'auto',
+ }),
+ }),
+ )
+ }
+ var l = function (e) {
+ return a.createElement(
+ r.chakra.div,
+ c({ className: 'chakra-stack__item' }, e, {
+ __css: c({ display: 'inline-block', flex: '0 0 auto', minWidth: 0 }, e.__css),
+ }),
+ )
+ }
+ t.StackItem = l
+ var d = (0, r.forwardRef)(function (e, t) {
+ var n,
+ u = e.isInline,
+ d = e.direction,
+ f = e.align,
+ h = e.justify,
+ p = e.spacing,
+ v = void 0 === p ? '0.5rem' : p,
+ m = e.wrap,
+ g = e.children,
+ y = e.divider,
+ b = e.className,
+ w = e.shouldWrapChildren,
+ _ = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, [
+ 'isInline',
+ 'direction',
+ 'align',
+ 'justify',
+ 'spacing',
+ 'wrap',
+ 'children',
+ 'divider',
+ 'className',
+ 'shouldWrapChildren',
+ ]),
+ x = u ? 'row' : null != d ? d : 'column',
+ k = a.useMemo(
+ function () {
+ return (0, s.getStackStyles)({ direction: x, spacing: v })
+ },
+ [x, v],
+ ),
+ E = a.useMemo(
+ function () {
+ return (0, s.getDividerStyles)({ spacing: v, direction: x })
+ },
+ [v, x],
+ ),
+ O = !!y,
+ T = !w && !O,
+ C = (0, i.getValidChildren)(g),
+ M = T
+ ? C
+ : C.map(function (e, t) {
+ var n = t + 1 === C.length,
+ r = w ? a.createElement(l, { key: t }, e) : e
+ if (!O) return r
+ var o = n ? null : a.cloneElement(y, { __css: E })
+ return a.createElement(a.Fragment, { key: t }, r, o)
+ }),
+ S = (0, o.cx)('chakra-stack', b)
+ return a.createElement(
+ r.chakra.div,
+ c(
+ {
+ ref: t,
+ display: 'flex',
+ alignItems: f,
+ justifyContent: h,
+ flexDirection: k.flexDirection,
+ flexWrap: m,
+ className: S,
+ __css: O ? {} : ((n = {}), (n[s.selector] = k[s.selector]), n),
+ },
+ _,
+ ),
+ M,
+ )
+ })
+ ;(t.Stack = d), o.__DEV__ && (d.displayName = 'Stack')
+ var f = (0, r.forwardRef)(function (e, t) {
+ return a.createElement(d, c({ align: 'center' }, e, { direction: 'row', ref: t }))
+ })
+ ;(t.HStack = f), o.__DEV__ && (f.displayName = 'HStack')
+ var h = (0, r.forwardRef)(function (e, t) {
+ return a.createElement(d, c({ align: 'center' }, e, { direction: 'column', ref: t }))
+ })
+ ;(t.VStack = h), o.__DEV__ && (h.displayName = 'VStack')
+ },
+ 17596: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.getStackStyles = function (e) {
+ var t,
+ n = e.spacing,
+ i = e.direction,
+ a = {
+ column: { marginTop: n, marginEnd: 0, marginBottom: 0, marginStart: 0 },
+ row: { marginTop: 0, marginEnd: 0, marginBottom: 0, marginStart: n },
+ 'column-reverse': { marginTop: 0, marginEnd: 0, marginBottom: n, marginStart: 0 },
+ 'row-reverse': { marginTop: 0, marginEnd: n, marginBottom: 0, marginStart: 0 },
+ }
+ return (
+ ((t = { flexDirection: i })[o] = (0, r.mapResponsive)(i, function (e) {
+ return a[e]
+ })),
+ t
+ )
+ }),
+ (t.getDividerStyles = function (e) {
+ var t = e.spacing,
+ n = e.direction,
+ o = {
+ column: { my: t, mx: 0, borderLeftWidth: 0, borderBottomWidth: '1px' },
+ 'column-reverse': { my: t, mx: 0, borderLeftWidth: 0, borderBottomWidth: '1px' },
+ row: { mx: t, my: 0, borderLeftWidth: '1px', borderBottomWidth: 0 },
+ 'row-reverse': { mx: t, my: 0, borderLeftWidth: '1px', borderBottomWidth: 0 },
+ }
+ return {
+ '&': (0, r.mapResponsive)(n, function (e) {
+ return o[e]
+ }),
+ }
+ }),
+ (t.selector = void 0)
+ var r = n(66751),
+ o = '& > *:not(style) ~ *:not(style)'
+ t.selector = o
+ },
+ 80434: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Text = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var u = (0, r.forwardRef)(function (e, t) {
+ var n = (0, r.useStyleConfig)('Text', e),
+ a = (0, r.omitThemingProps)(e),
+ u =
+ (a.className,
+ a.align,
+ a.decoration,
+ a.casing,
+ (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(a, ['className', 'align', 'decoration', 'casing'])),
+ c = (0, o.filterUndefined)({
+ textAlign: e.align,
+ textDecoration: e.decoration,
+ textTransform: e.casing,
+ })
+ return i.createElement(
+ r.chakra.p,
+ s({ ref: t, className: (0, o.cx)('chakra-text', e.className) }, c, u, { __css: n }),
+ )
+ })
+ ;(t.Text = u), o.__DEV__ && (u.displayName = 'Text')
+ },
+ 88189: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.WrapItem = t.Wrap = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function u(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ var c = (0, r.forwardRef)(function (e, t) {
+ var n = e.spacing,
+ a = void 0 === n ? '0.5rem' : n,
+ c = e.children,
+ d = e.justify,
+ f = e.direction,
+ h = e.align,
+ p = e.className,
+ v = e.shouldWrapChildren,
+ m = u(e, [
+ 'spacing',
+ 'children',
+ 'justify',
+ 'direction',
+ 'align',
+ 'className',
+ 'shouldWrapChildren',
+ ]),
+ g = i.useMemo(
+ function () {
+ return {
+ '--chakra-wrap-spacing': function (e) {
+ return (0, o.mapResponsive)(a, function (t) {
+ return (0, r.tokenToCSSVar)('space', t)(e)
+ })
+ },
+ '--wrap-spacing': 'calc(var(--chakra-wrap-spacing) / 2)',
+ display: 'flex',
+ flexWrap: 'wrap',
+ justifyContent: d,
+ alignItems: h,
+ flexDirection: f,
+ listStyleType: 'none',
+ padding: '0',
+ margin: 'calc(var(--wrap-spacing) * -1)',
+ '& > *:not(style)': { margin: 'var(--wrap-spacing)' },
+ }
+ },
+ [a, d, h, f],
+ ),
+ y = v
+ ? i.Children.map(c, function (e, t) {
+ return i.createElement(l, { key: t }, e)
+ })
+ : c
+ return i.createElement(
+ r.chakra.div,
+ s({ ref: t, className: (0, o.cx)('chakra-wrap', p) }, m),
+ i.createElement(r.chakra.ul, { className: 'chakra-wrap__list', __css: g }, y),
+ )
+ })
+ ;(t.Wrap = c), o.__DEV__ && (c.displayName = 'Wrap')
+ var l = (0, r.forwardRef)(function (e, t) {
+ var n = e.className,
+ a = u(e, ['className'])
+ return i.createElement(
+ r.chakra.li,
+ s(
+ {
+ ref: t,
+ __css: { display: 'flex', alignItems: 'flex-start' },
+ className: (0, o.cx)('chakra-wrap__listitem', n),
+ },
+ a,
+ ),
+ )
+ })
+ ;(t.WrapItem = l), o.__DEV__ && (l.displayName = 'WrapItem')
+ },
+ 48017: function (e, t, n) {
'use strict'
n.d(t, {
xu: function () {
- return l
+ return c
},
})
- var r = n(3782),
- i = n(63),
- o = n(3808),
- a = n(7294)
+ var r = n(89384),
+ o = n(90063),
+ i = n(73808),
+ a = n(67294)
function s() {
return (s =
Object.assign ||
@@ -1631,41 +7931,41 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
}
- var l = (0, r.m$)('div')
- o.Ts && (l.displayName = 'Box')
- var c = (0, i.G)((e, t) => {
+ var c = (0, r.m$)('div')
+ i.Ts && (c.displayName = 'Box')
+ var l = (0, o.G)((e, t) => {
var { size: n, centerContent: r = !0 } = e,
- i = u(e, ['size', 'centerContent']),
- o = r ? { display: 'flex', alignItems: 'center', justifyContent: 'center' } : {}
+ o = u(e, ['size', 'centerContent']),
+ i = r ? { display: 'flex', alignItems: 'center', justifyContent: 'center' } : {}
return a.createElement(
- l,
- s({ ref: t, boxSize: n, __css: s({}, o, { flexShrink: 0, flexGrow: 0 }) }, i),
+ c,
+ s({ ref: t, boxSize: n, __css: s({}, i, { flexShrink: 0, flexGrow: 0 }) }, o),
)
})
- o.Ts && (c.displayName = 'Square')
- var d = (0, i.G)((e, t) => {
+ i.Ts && (l.displayName = 'Square')
+ var d = (0, o.G)((e, t) => {
var { size: n } = e,
r = u(e, ['size'])
- return a.createElement(c, s({ size: n, ref: t, borderRadius: '9999px' }, r))
+ return a.createElement(l, s({ size: n, ref: t, borderRadius: '9999px' }, r))
})
- o.Ts && (d.displayName = 'Circle')
+ i.Ts && (d.displayName = 'Circle')
},
- 4096: function (e, t, n) {
+ 94096: function (e, t, n) {
'use strict'
n.d(t, {
k: function () {
return u
},
})
- var r = n(63),
- i = n(3782),
- o = n(3808),
- a = n(7294)
+ var r = n(90063),
+ o = n(89384),
+ i = n(73808),
+ a = n(67294)
function s() {
return (s =
Object.assign ||
@@ -1678,29 +7978,29 @@
}).apply(this, arguments)
}
var u = (0, r.G)((e, t) => {
- var { direction: n, align: r, justify: o, wrap: u, basis: l, grow: c, shrink: d } = e,
+ var { direction: n, align: r, justify: i, wrap: u, basis: c, grow: l, shrink: d } = e,
f = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, ['direction', 'align', 'justify', 'wrap', 'basis', 'grow', 'shrink']),
h = {
display: 'flex',
flexDirection: n,
alignItems: r,
- justifyContent: o,
+ justifyContent: i,
flexWrap: u,
- flexBasis: l,
- flexGrow: c,
+ flexBasis: c,
+ flexGrow: l,
flexShrink: d,
}
- return a.createElement(i.m$.div, s({ ref: t, __css: h }, f))
+ return a.createElement(o.m$.div, s({ ref: t, __css: h }, f))
})
- o.Ts && (u.displayName = 'Flex')
+ i.Ts && (u.displayName = 'Flex')
},
336: function (e, t, n) {
'use strict'
@@ -1709,15 +8009,15 @@
return d
},
})
- var r = n(63),
- i = n(2326),
- o = n(5284),
- a = n(3782),
- s = n(4461),
- u = n(3808),
- l = n(7294)
- function c() {
- return (c =
+ var r = n(90063),
+ o = n(2326),
+ i = n(55284),
+ a = n(89384),
+ s = n(84461),
+ u = n(73808),
+ c = n(67294)
+ function l() {
+ return (l =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -1728,24 +8028,24 @@
}).apply(this, arguments)
}
var d = (0, r.G)((e, t) => {
- var n = (0, i.m)('Heading', e),
+ var n = (0, o.m)('Heading', e),
r = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
- })((0, o.Lr)(e), ['className'])
- return l.createElement(
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })((0, i.Lr)(e), ['className'])
+ return c.createElement(
a.m$.h2,
- c({ ref: t, className: (0, s.cx)('chakra-heading', e.className) }, r, { __css: n }),
+ l({ ref: t, className: (0, s.cx)('chakra-heading', e.className) }, r, { __css: n }),
)
})
u.Ts && (d.displayName = 'Heading')
},
- 2026: function (e, t, n) {
+ 72026: function (e, t, n) {
'use strict'
n.d(t, {
cX: function () {
@@ -1755,19 +8055,19 @@
return g
},
})
- var r = n(3782),
- i = n(63),
- o = n(4461),
- a = n(3808),
- s = n(4255),
- u = n(7294),
- l = n(5505)
+ var r = n(89384),
+ o = n(90063),
+ i = n(84461),
+ a = n(73808),
+ s = n(24255),
+ u = n(67294),
+ c = n(4651)
Object.freeze(['base', 'sm', 'md', 'lg', 'xl', '2xl'])
- function c(e, t) {
+ function l(e, t) {
return (0, a.kJ)(e)
? e.map((e) => (null === e ? null : t(e)))
: (0, a.Kn)(e)
- ? (0, l.Yd)(e).reduce((n, r) => ((n[r] = t(e[r])), n), {})
+ ? (0, c.Yd)(e).reduce((n, r) => ((n[r] = t(e[r])), n), {})
: null != e
? t(e)
: null
@@ -1804,12 +8104,12 @@
__css: f({ display: 'inline-block', flex: '0 0 auto', minWidth: 0 }, e.__css),
}),
),
- v = (0, i.G)((e, t) => {
+ v = (0, o.G)((e, t) => {
var {
isInline: n,
- direction: i,
+ direction: o,
align: a,
- justify: l,
+ justify: c,
spacing: h = '0.5rem',
wrap: v,
children: m,
@@ -1821,10 +8121,10 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, [
'isInline',
'direction',
@@ -1837,8 +8137,8 @@
'className',
'shouldWrapChildren',
]),
- x = n ? 'row' : null != i ? i : 'column',
- E = u.useMemo(
+ _ = n ? 'row' : null != o ? o : 'column',
+ x = u.useMemo(
() =>
(function (e) {
var { spacing: t, direction: n } = e,
@@ -1858,9 +8158,9 @@
marginStart: 0,
},
}
- return { flexDirection: n, [d]: c(n, (e) => r[e]) }
- })({ direction: x, spacing: h }),
- [x, h],
+ return { flexDirection: n, [d]: l(n, (e) => r[e]) }
+ })({ direction: _, spacing: h }),
+ [_, h],
),
k = u.useMemo(
() =>
@@ -1877,23 +8177,23 @@
row: { mx: t, my: 0, borderLeftWidth: '1px', borderBottomWidth: 0 },
'row-reverse': { mx: t, my: 0, borderLeftWidth: '1px', borderBottomWidth: 0 },
}
- return { '&': c(n, (e) => r[e]) }
- })({ spacing: h, direction: x }),
- [h, x],
+ return { '&': l(n, (e) => r[e]) }
+ })({ spacing: h, direction: _ }),
+ [h, _],
),
- _ = !!g,
- T = !b && !_,
- O = (0, s.W)(m),
- C = T
- ? O
- : O.map((e, t) => {
- var n = t + 1 === O.length,
+ E = !!g,
+ O = !b && !E,
+ T = (0, s.W)(m),
+ C = O
+ ? T
+ : T.map((e, t) => {
+ var n = t + 1 === T.length,
r = b ? u.createElement(p, { key: t }, e) : e
- if (!_) return r
- var i = n ? null : u.cloneElement(g, { __css: k })
- return u.createElement(u.Fragment, { key: t }, r, i)
+ if (!E) return r
+ var o = n ? null : u.cloneElement(g, { __css: k })
+ return u.createElement(u.Fragment, { key: t }, r, o)
}),
- S = (0, o.cx)('chakra-stack', y)
+ M = (0, i.cx)('chakra-stack', y)
return u.createElement(
r.m$.div,
f(
@@ -1901,11 +8201,11 @@
ref: t,
display: 'flex',
alignItems: a,
- justifyContent: l,
- flexDirection: E.flexDirection,
+ justifyContent: c,
+ flexDirection: x.flexDirection,
flexWrap: v,
- className: S,
- __css: _ ? {} : { [d]: E[d] },
+ className: M,
+ __css: E ? {} : { [d]: x[d] },
},
w,
),
@@ -1913,30 +8213,30 @@
)
})
a.Ts && (v.displayName = 'Stack')
- var m = (0, i.G)((e, t) =>
+ var m = (0, o.G)((e, t) =>
u.createElement(v, f({ align: 'center' }, e, { direction: 'row', ref: t })),
)
a.Ts && (m.displayName = 'HStack')
- var g = (0, i.G)((e, t) =>
+ var g = (0, o.G)((e, t) =>
u.createElement(v, f({ align: 'center' }, e, { direction: 'column', ref: t })),
)
a.Ts && (g.displayName = 'VStack')
},
- 4115: function (e, t, n) {
+ 64115: function (e, t, n) {
'use strict'
n.d(t, {
x: function () {
return f
},
})
- var r = n(63),
- i = n(2326),
- o = n(5284),
- a = n(3782),
- s = n(5505),
- u = n(4461),
- l = n(3808),
- c = n(7294)
+ var r = n(90063),
+ o = n(2326),
+ i = n(55284),
+ a = n(89384),
+ s = n(4651),
+ u = n(84461),
+ c = n(73808),
+ l = n(67294)
function d() {
return (d =
Object.assign ||
@@ -1949,33 +8249,33 @@
}).apply(this, arguments)
}
var f = (0, r.G)((e, t) => {
- var n = (0, i.m)('Text', e),
+ var n = (0, o.m)('Text', e),
r = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
- })((0, o.Lr)(e), ['className', 'align', 'decoration', 'casing']),
- l = (0, s.YU)({
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })((0, i.Lr)(e), ['className', 'align', 'decoration', 'casing']),
+ c = (0, s.YU)({
textAlign: e.align,
textDecoration: e.decoration,
textTransform: e.casing,
})
- return c.createElement(
+ return l.createElement(
a.m$.p,
- d({ ref: t, className: (0, u.cx)('chakra-text', e.className) }, l, r, { __css: n }),
+ d({ ref: t, className: (0, u.cx)('chakra-text', e.className) }, c, r, { __css: n }),
)
})
- l.Ts && (f.displayName = 'Text')
+ c.Ts && (f.displayName = 'Text')
},
- 8235: function (e, t, n) {
+ 48235: function (e, t, n) {
'use strict'
n.d(t, {
v2: function () {
- return W
+ return q
},
j2: function () {
return Z
@@ -1994,16 +8294,16 @@
},
})
var r = n(2326),
- i = n(5284),
- o = n(9676),
- a = n(63),
- s = n(3782),
- u = n(658),
- l = n(3808),
- c = n(4461),
- d = n(7554),
- f = n(7294),
- h = n(2947)
+ o = n(55284),
+ i = n(29676),
+ a = n(90063),
+ s = n(89384),
+ u = n(80658),
+ c = n(73808),
+ l = n(84461),
+ d = n(11770),
+ f = n(67294),
+ h = n(72947)
function p() {
return (p =
Object.assign ||
@@ -2026,12 +8326,12 @@
ref: t,
isDisabled: n,
isFocusable: r,
- clickOnEnter: i = !0,
- clickOnSpace: o = !0,
+ clickOnEnter: o = !0,
+ clickOnSpace: i = !0,
onMouseDown: a,
onMouseUp: s,
onClick: u,
- onKeyDown: l,
+ onKeyDown: c,
onKeyUp: d,
tabIndex: m,
onMouseOver: g,
@@ -2041,10 +8341,10 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, [
'ref',
'isDisabled',
@@ -2060,16 +8360,16 @@
'onMouseOver',
'onMouseLeave',
]),
- [w, x] = f.useState(!0),
- [E, k] = f.useState(!1),
- _ = (function () {
+ [w, _] = f.useState(!0),
+ [x, k] = f.useState(!1),
+ E = (function () {
var e = f.useRef(new Map()),
t = e.current,
- n = f.useCallback((t, n, r, i) => {
- e.current.set(r, { type: n, el: t, options: i }), t.addEventListener(n, r, i)
+ n = f.useCallback((t, n, r, o) => {
+ e.current.set(r, { type: n, el: t, options: o }), t.addEventListener(n, r, o)
}, []),
- r = f.useCallback((t, n, r, i) => {
- t.removeEventListener(n, r, i), e.current.delete(r)
+ r = f.useCallback((t, n, r, o) => {
+ t.removeEventListener(n, r, o), e.current.delete(r)
}, [])
return (
f.useEffect(
@@ -2083,8 +8383,8 @@
{ add: n, remove: r }
)
})(),
- T = w ? m : m || 0,
- O = n && !r,
+ O = w ? m : m || 0,
+ T = n && !r,
C = f.useCallback(
(e) => {
if (n) return e.stopPropagation(), void e.preventDefault()
@@ -2092,151 +8392,151 @@
},
[n, u],
),
- S = f.useCallback(
+ M = f.useCallback(
(e) => {
- E &&
+ x &&
v(e) &&
- (e.preventDefault(), e.stopPropagation(), k(!1), _.remove(document, 'keyup', S, !1))
+ (e.preventDefault(), e.stopPropagation(), k(!1), E.remove(document, 'keyup', M, !1))
},
- [E, _],
+ [x, E],
),
- A = f.useCallback(
+ S = f.useCallback(
(e) => {
if (
- (null == l || l(e),
+ (null == c || c(e),
!(n || e.defaultPrevented || e.metaKey) && v(e.nativeEvent) && !w)
) {
- var t = i && 'Enter' === e.key
- if ((o && ' ' === e.key && (e.preventDefault(), k(!0)), t))
+ var t = o && 'Enter' === e.key
+ if ((i && ' ' === e.key && (e.preventDefault(), k(!0)), t))
e.preventDefault(), e.currentTarget.click()
- _.add(document, 'keyup', S, !1)
+ E.add(document, 'keyup', M, !1)
}
},
- [n, w, l, i, o, _, S],
+ [n, w, c, o, i, E, M],
),
P = f.useCallback(
(e) => {
;(null == d || d(e), n || e.defaultPrevented || e.metaKey) ||
(v(e.nativeEvent) &&
!w &&
- o &&
+ i &&
' ' === e.key &&
(e.preventDefault(), k(!1), e.currentTarget.click()))
},
- [o, w, n, d],
+ [i, w, n, d],
),
- M = f.useCallback(
+ j = f.useCallback(
(e) => {
- 0 === e.button && (k(!1), _.remove(document, 'mouseup', M, !1))
+ 0 === e.button && (k(!1), E.remove(document, 'mouseup', j, !1))
},
- [_],
+ [E],
),
- R = f.useCallback(
+ I = f.useCallback(
(e) => {
- if (!(0, c.dO)(e)) {
+ if (!(0, l.dO)(e)) {
if (n) return e.stopPropagation(), void e.preventDefault()
w || k(!0),
e.currentTarget.focus({ preventScroll: !0 }),
- _.add(document, 'mouseup', M, !1),
+ E.add(document, 'mouseup', j, !1),
null == a || a(e)
}
},
- [n, w, a, _, M],
+ [n, w, a, E, j],
),
- j = f.useCallback(
+ A = f.useCallback(
(e) => {
- ;(0, c.dO)(e) || (w || k(!1), null == s || s(e))
+ ;(0, l.dO)(e) || (w || k(!1), null == s || s(e))
},
[s, w],
),
- D = f.useCallback(
+ R = f.useCallback(
(e) => {
n ? e.preventDefault() : null == g || g(e)
},
[n, g],
),
- L = f.useCallback(
+ D = f.useCallback(
(e) => {
- E && (e.preventDefault(), k(!1)), null == y || y(e)
+ x && (e.preventDefault(), k(!1)), null == y || y(e)
},
- [E, y],
+ [x, y],
),
- N = (0, h.l)(t, (e) => {
- e && 'BUTTON' !== e.tagName && x(!1)
+ L = (0, h.l)(t, (e) => {
+ e && 'BUTTON' !== e.tagName && _(!1)
})
return p(
{},
b,
w
? {
- ref: N,
+ ref: L,
type: 'button',
- 'aria-disabled': O ? void 0 : n,
- disabled: O,
+ 'aria-disabled': T ? void 0 : n,
+ disabled: T,
onClick: C,
onMouseDown: a,
onMouseUp: s,
onKeyUp: d,
- onKeyDown: l,
+ onKeyDown: c,
onMouseOver: g,
onMouseLeave: y,
}
: {
- ref: N,
+ ref: L,
role: 'button',
- 'data-active': (0, c.PB)(E),
+ 'data-active': (0, l.PB)(x),
'aria-disabled': n ? 'true' : void 0,
- tabIndex: O ? void 0 : T,
+ tabIndex: T ? void 0 : O,
onClick: C,
- onMouseDown: R,
- onMouseUp: j,
+ onMouseDown: I,
+ onMouseUp: A,
onKeyUp: P,
- onKeyDown: A,
- onMouseOver: D,
- onMouseLeave: L,
+ onKeyDown: S,
+ onMouseOver: R,
+ onMouseLeave: D,
},
)
}
- var g = n(1888),
- y = n(4860),
- b = n(762)
+ var g = n(21888),
+ y = n(74860),
+ b = n(10762)
function w(e, t) {
var n,
r = e.target
if (e.button > 0) return !1
- if (r && !(0, c.lZ)(r).body.contains(r)) return !1
+ if (r && !(0, l.lZ)(r).body.contains(r)) return !1
return !(null != (n = t.current) && n.contains(r))
}
- var x = n(2653),
- E = n(7768),
- k = n(7248)
- function _(e, t) {
- var { shouldFocus: n, visible: r, focusRef: i } = t,
- o = n && !r
- ;(0, x.r)(() => {
+ var _ = n(22653),
+ x = n(17768),
+ k = n(47248)
+ function E(e, t) {
+ var { shouldFocus: n, visible: r, focusRef: o } = t,
+ i = n && !r
+ ;(0, _.r)(() => {
if (
- o &&
+ i &&
!(function (e) {
var t = e.current
if (!t) return !1
- var n = (0, c.vY)(t)
- return !!n && !(0, c.r3)(t, n) && !!(0, E.Wq)(n)
+ var n = (0, l.vY)(t)
+ return !!n && !(0, l.r3)(t, n) && !!(0, x.Wq)(n)
})(e)
) {
- var t = (null == i ? void 0 : i.current) || e.current
+ var t = (null == o ? void 0 : o.current) || e.current
t && (0, k.T)(t, { nextTick: !0 })
}
- }, [o, e, i])
+ }, [i, e, o])
}
- var T = n(4577),
- O = n(7581)
+ var O = n(94577),
+ T = n(77581)
function C(e) {
void 0 === e && (e = {})
var { timeout: t = 300, preventDefault: n = () => !0 } = e,
- [r, i] = f.useState([]),
- o = f.useRef(),
+ [r, o] = f.useState([]),
+ i = f.useRef(),
a = () => {
- o.current && (clearTimeout(o.current), (o.current = null))
+ i.current && (clearTimeout(i.current), (i.current = null))
}
return (
f.useEffect(() => a, []),
@@ -2244,7 +8544,7 @@
return (s) => {
if ('Backspace' === s.key) {
var u = [...r]
- return u.pop(), void i(u)
+ return u.pop(), void o(u)
}
if (
(function (e) {
@@ -2252,26 +8552,26 @@
return 1 === t.length || (t.length > 1 && /[^a-zA-Z0-9]/.test(t))
})(s)
) {
- var l = r.concat(s.key)
+ var c = r.concat(s.key)
n(s) && (s.preventDefault(), s.stopPropagation()),
- i(l),
- e(l.join('')),
+ o(c),
+ e(c.join('')),
a(),
- (o.current = setTimeout(() => {
- i([]), (o.current = null)
+ (i.current = setTimeout(() => {
+ o([]), (i.current = null)
}, t))
}
}
}
)
}
- var S = n(1034),
- A = n(8931),
- P = n(8500),
- M = n(4255),
- R = n(7277)
- function j() {
- return (j =
+ var M = n(51034),
+ S = n(8931),
+ P = n(28500),
+ j = n(24255),
+ I = n(27277)
+ function A() {
+ return (A =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -2281,34 +8581,34 @@
return e
}).apply(this, arguments)
}
- function D(e, t) {
+ function R(e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
}
- var [L, N, I, z] = (0, g.n)(),
- [H, B] = (0, P.k)({ strict: !1, name: 'MenuContext' })
+ var [D, L, N, z] = (0, g.n)(),
+ [B, H] = (0, P.k)({ strict: !1, name: 'MenuContext' })
function F(e) {
void 0 === e && (e = {})
var {
id: t,
closeOnSelect: n = !0,
closeOnBlur: r = !0,
- autoSelect: i = !0,
- isLazy: o,
+ autoSelect: o = !0,
+ isLazy: i,
isOpen: a,
defaultIsOpen: s,
onClose: u,
- onOpen: l,
+ onOpen: c,
placement: d = 'bottom-start',
lazyBehavior: h = 'unmount',
computePositionOnMount: p,
} = e,
- v = D(e, [
+ v = R(e, [
'id',
'closeOnSelect',
'closeOnBlur',
@@ -2325,111 +8625,111 @@
{
isOpen: m,
onOpen: g,
- onClose: E,
+ onClose: x,
onToggle: C,
- } = (0, y.q)({ isOpen: a, defaultIsOpen: s, onClose: u, onOpen: l }),
- S = f.useRef(null),
+ } = (0, y.q)({ isOpen: a, defaultIsOpen: s, onClose: u, onOpen: c }),
+ M = f.useRef(null),
P = f.useRef(null)
!(function (e) {
var { ref: t, handler: n } = e,
r = (0, b.W)(n),
- i = (0, f.useRef)({ isPointerDown: !1, ignoreEmulatedMouseEvents: !1 }).current
+ o = (0, f.useRef)({ isPointerDown: !1, ignoreEmulatedMouseEvents: !1 }).current
;(0, f.useEffect)(() => {
var e = (e) => {
- w(e, t) && (i.isPointerDown = !0)
+ w(e, t) && (o.isPointerDown = !0)
},
- o = (e) => {
- i.ignoreEmulatedMouseEvents
- ? (i.ignoreEmulatedMouseEvents = !1)
- : i.isPointerDown && n && w(e, t) && ((i.isPointerDown = !1), r(e))
+ i = (e) => {
+ o.ignoreEmulatedMouseEvents
+ ? (o.ignoreEmulatedMouseEvents = !1)
+ : o.isPointerDown && n && w(e, t) && ((o.isPointerDown = !1), r(e))
},
a = (e) => {
- ;(i.ignoreEmulatedMouseEvents = !0),
- n && i.isPointerDown && w(e, t) && ((i.isPointerDown = !1), r(e))
+ ;(o.ignoreEmulatedMouseEvents = !0),
+ n && o.isPointerDown && w(e, t) && ((o.isPointerDown = !1), r(e))
},
- s = (0, c.lZ)(t.current)
+ s = (0, l.lZ)(t.current)
return (
s.addEventListener('mousedown', e, !0),
- s.addEventListener('mouseup', o, !0),
+ s.addEventListener('mouseup', i, !0),
s.addEventListener('touchstart', e, !0),
s.addEventListener('touchend', a, !0),
() => {
s.removeEventListener('mousedown', e, !0),
- s.removeEventListener('mouseup', o, !0),
+ s.removeEventListener('mouseup', i, !0),
s.removeEventListener('touchstart', e, !0),
s.removeEventListener('touchend', a, !0)
}
)
- }, [n, t, r, i])
+ }, [n, t, r, o])
})({
- ref: S,
+ ref: M,
handler: (e) => {
var t
- !m || !r || (null != (t = P.current) && t.contains(e.target)) || E()
+ !m || !r || (null != (t = P.current) && t.contains(e.target)) || x()
},
})
- var M = (0, A.D)(j({}, v, { enabled: m || p, placement: d })),
- [R, L] = f.useState(-1),
- N = I()
- ;(0, x.r)(() => {
- m || L(-1)
+ var j = (0, S.D)(A({}, v, { enabled: m || p, placement: d })),
+ [I, D] = f.useState(-1),
+ L = N()
+ ;(0, _.r)(() => {
+ m || D(-1)
}, [m]),
- _(S, { focusRef: P, visible: m, shouldFocus: !0 })
- var [z, H] = (0, T.ZS)(t, 'menu-button', 'menu-list'),
- B = f.useCallback(() => {
- g(), (0, k.T)(S.current, { nextTick: !0, selectTextIfInput: !1 })
- }, [g, S]),
+ E(M, { focusRef: P, visible: m, shouldFocus: !0 })
+ var [z, B] = (0, O.ZS)(t, 'menu-button', 'menu-list'),
+ H = f.useCallback(() => {
+ g(), (0, k.T)(M.current, { nextTick: !0, selectTextIfInput: !1 })
+ }, [g, M]),
F = f.useRef(new Set([]))
return (
- (0, O.z)(() => {
+ (0, T.z)(() => {
F.current.forEach((e) => clearTimeout(e)), F.current.clear()
}),
{
- openAndFocusMenu: B,
+ openAndFocusMenu: H,
openAndFocusFirstItem: f.useCallback(() => {
g()
var e = setTimeout(() => {
- var e = N.firstEnabled()
- e && L(e.index)
+ var e = L.firstEnabled()
+ e && D(e.index)
})
F.current.add(e)
- }, [g, L, N]),
+ }, [g, D, L]),
openAndFocusLastItem: f.useCallback(() => {
g()
var e = setTimeout(() => {
- var e = N.lastEnabled()
- e && L(e.index)
+ var e = L.lastEnabled()
+ e && D(e.index)
})
F.current.add(e)
- }, [g, L, N]),
+ }, [g, D, L]),
onTransitionEnd: f.useCallback(() => {
var e,
t,
- n = (0, c.lZ)(S.current),
- r = null == (e = S.current) ? void 0 : e.contains(n.activeElement)
+ n = (0, l.lZ)(M.current),
+ r = null == (e = M.current) ? void 0 : e.contains(n.activeElement)
if (m && !r) {
- var i = null == (t = N.item(R)) ? void 0 : t.node
- i && (0, k.T)(i, { selectTextIfInput: !1 })
+ var o = null == (t = L.item(I)) ? void 0 : t.node
+ o && (0, k.T)(o, { selectTextIfInput: !1 })
}
- }, [m, R, N]),
- descendants: N,
- popper: M,
+ }, [m, I, L]),
+ descendants: L,
+ popper: j,
buttonId: z,
- menuId: H,
- forceUpdate: M.forceUpdate,
+ menuId: B,
+ forceUpdate: j.forceUpdate,
orientation: 'vertical',
isOpen: m,
onToggle: C,
onOpen: g,
- onClose: E,
- menuRef: S,
+ onClose: x,
+ menuRef: M,
buttonRef: P,
- focusedIndex: R,
+ focusedIndex: I,
closeOnSelect: n,
closeOnBlur: r,
- autoSelect: i,
- setFocusedIndex: L,
- isLazy: o,
+ autoSelect: o,
+ setFocusedIndex: D,
+ isLazy: i,
lazyBehavior: h,
}
)
@@ -2441,18 +8741,18 @@
!(null == (t = e.getAttribute('role')) || !t.startsWith('menuitem'))
)
}
- function U(e, t) {
+ function W(e, t) {
void 0 === e && (e = {}), void 0 === t && (t = null)
var {
onMouseEnter: n,
onMouseMove: r,
- onMouseLeave: i,
- onClick: o,
+ onMouseLeave: o,
+ onClick: i,
isDisabled: a,
isFocusable: s,
closeOnSelect: u,
} = e,
- l = D(e, [
+ c = R(e, [
'onMouseEnter',
'onMouseMove',
'onMouseLeave',
@@ -2461,7 +8761,7 @@
'isFocusable',
'closeOnSelect',
]),
- c = B(),
+ l = H(),
{
setFocusedIndex: d,
focusedIndex: p,
@@ -2470,11 +8770,11 @@
menuRef: y,
isOpen: b,
menuId: w,
- } = c,
- _ = f.useRef(null),
- O = w + '-menuitem-' + (0, T.Me)(),
- { index: C, register: S } = z({ disabled: a && !s }),
- A = f.useCallback(
+ } = l,
+ E = f.useRef(null),
+ T = w + '-menuitem-' + (0, O.Me)(),
+ { index: C, register: M } = z({ disabled: a && !s }),
+ S = f.useCallback(
(e) => {
null == n || n(e), a || d(C)
},
@@ -2482,49 +8782,49 @@
),
P = f.useCallback(
(e) => {
- null == r || r(e), _.current && !(0, E.H9)(_.current) && A(e)
+ null == r || r(e), E.current && !(0, x.H9)(E.current) && S(e)
},
- [A, r],
+ [S, r],
),
- M = f.useCallback(
+ j = f.useCallback(
(e) => {
- null == i || i(e), a || d(-1)
+ null == o || o(e), a || d(-1)
},
- [d, a, i],
+ [d, a, o],
),
- R = f.useCallback(
+ I = f.useCallback(
(e) => {
- null == o || o(e), V(e.currentTarget) && (null != u ? u : v) && g()
+ null == i || i(e), V(e.currentTarget) && (null != u ? u : v) && g()
},
- [g, o, v, u],
+ [g, i, v, u],
),
- L = C === p,
- N = a && !s
+ D = C === p,
+ L = a && !s
return (
- (0, x.r)(() => {
+ (0, _.r)(() => {
b &&
- (L && !N && _.current
- ? (0, k.T)(_.current, { nextTick: !0, selectTextIfInput: !1 })
- : y.current && !(0, E.H9)(y.current) && (0, k.T)(y.current))
- }, [L, N, y, b]),
- j(
+ (D && !L && E.current
+ ? (0, k.T)(E.current, { nextTick: !0, selectTextIfInput: !1 })
+ : y.current && !(0, x.H9)(y.current) && (0, k.T)(y.current))
+ }, [D, L, y, b]),
+ A(
{},
- l,
+ c,
m({
- onClick: R,
- onMouseEnter: A,
+ onClick: I,
+ onMouseEnter: S,
onMouseMove: P,
- onMouseLeave: M,
- ref: (0, h.l)(S, _, t),
+ onMouseLeave: j,
+ ref: (0, h.l)(M, E, t),
isDisabled: a,
isFocusable: s,
}),
- { id: O, role: 'menuitem', tabIndex: L ? 0 : -1 },
+ { id: T, role: 'menuitem', tabIndex: D ? 0 : -1 },
)
)
}
- function G() {
- return (G =
+ function U() {
+ return (U =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -2534,44 +8834,44 @@
return e
}).apply(this, arguments)
}
- function q(e, t) {
+ function G(e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
}
- var W = (e) => {
+ var q = (e) => {
var { children: t } = e,
n = (0, r.j)('Menu', e),
- a = F((0, i.Lr)(e)),
+ a = F((0, o.Lr)(e)),
{ descendants: s } = a,
- l = q(a, ['descendants']),
- c = f.useMemo(() => l, [l]),
- { isOpen: d, onClose: h, forceUpdate: p } = c
+ c = G(a, ['descendants']),
+ l = f.useMemo(() => c, [c]),
+ { isOpen: d, onClose: h, forceUpdate: p } = l
return f.createElement(
- L,
+ D,
{ value: s },
f.createElement(
- H,
- { value: c },
+ B,
+ { value: l },
f.createElement(
- o.Fo,
+ i.Fo,
{ value: n },
(0, u.Pu)(t, { isOpen: d, onClose: h, forceUpdate: p }),
),
),
)
}
- l.Ts && (W.displayName = 'Menu')
+ c.Ts && (q.displayName = 'Menu')
var K = (0, a.G)((e, t) => {
- var n = (0, o.yK)()
+ var n = (0, i.yK)()
return f.createElement(
s.m$.button,
- G({ ref: t }, e, {
- __css: G(
+ U({ ref: t }, e, {
+ __css: U(
{ display: 'inline-flex', appearance: 'none', alignItems: 'center', outline: 0 },
n.button,
),
@@ -2582,42 +8882,42 @@
var { as: n } = e,
r = (function (e, t) {
void 0 === e && (e = {}), void 0 === t && (t = null)
- var n = B(),
+ var n = H(),
{
isOpen: r,
- onClose: i,
- autoSelect: o,
+ onClose: o,
+ autoSelect: i,
popper: a,
openAndFocusFirstItem: s,
- openAndFocusLastItem: l,
+ openAndFocusLastItem: c,
openAndFocusMenu: d,
} = n,
p = f.useCallback(() => {
- r ? i() : (o ? s : d)()
- }, [o, r, i, s, d]),
+ r ? o() : (i ? s : d)()
+ }, [i, r, o, s, d]),
v = f.useCallback(
(e) => {
- var t = (0, c.uh)(e),
- n = { Enter: s, ArrowDown: s, ArrowUp: l }[t]
+ var t = (0, l.uh)(e),
+ n = { Enter: s, ArrowDown: s, ArrowUp: c }[t]
n && (e.preventDefault(), e.stopPropagation(), n(e))
},
- [s, l],
+ [s, c],
)
- return j({}, e, {
+ return A({}, e, {
ref: (0, h.l)(n.buttonRef, t, a.referenceRef),
id: n.buttonId,
- 'data-active': (0, c.PB)(n.isOpen),
+ 'data-active': (0, l.PB)(n.isOpen),
'aria-expanded': n.isOpen,
'aria-haspopup': 'menu',
'aria-controls': n.menuId,
onClick: (0, u.v0)(e.onClick, p),
onKeyDown: (0, u.v0)(e.onKeyDown, v),
})
- })(q(e, ['children', 'as']), t),
- i = n || K
+ })(G(e, ['children', 'as']), t),
+ o = n || K
return f.createElement(
- i,
- G({}, r, { className: (0, c.cx)('chakra-menu__menu-button', e.className) }),
+ o,
+ U({}, r, { className: (0, l.cx)('chakra-menu__menu-button', e.className) }),
f.createElement(
s.m$.span,
{ __css: { pointerEvents: 'none', flex: '1 1 auto', minW: 0 } },
@@ -2625,8 +8925,8 @@
),
)
})
- l.Ts && (Z.displayName = 'MenuButton')
- var $ = {
+ c.Ts && (Z.displayName = 'MenuButton')
+ var X = {
enter: {
visibility: 'visible',
opacity: 1,
@@ -2640,50 +8940,50 @@
transition: { duration: 0.1, easings: 'easeOut' },
},
},
- X = 'custom' in d.E ? d.E.custom(s.m$.div) : (0, d.E)(s.m$.div),
+ $ = 'custom' in d.E ? d.E.custom(s.m$.div) : (0, d.E)(s.m$.div),
Y = (0, a.G)((e, t) => {
var n,
r,
- { rootProps: i } = e,
- a = q(e, ['rootProps']),
- { isOpen: l, onTransitionEnd: d } = B(),
+ { rootProps: o } = e,
+ a = G(e, ['rootProps']),
+ { isOpen: c, onTransitionEnd: d } = H(),
p = (function (e, t) {
void 0 === e && (e = {}), void 0 === t && (t = null)
- var n = B()
+ var n = H()
if (!n)
throw new Error(
'useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>',
)
var {
focusedIndex: r,
- setFocusedIndex: i,
- menuRef: o,
+ setFocusedIndex: o,
+ menuRef: i,
isOpen: a,
onClose: s,
- menuId: l,
+ menuId: c,
isLazy: d,
lazyBehavior: p,
} = n,
- v = N(),
+ v = L(),
m = C({ preventDefault: (e) => ' ' !== e.key && V(e.target) }),
g = f.useCallback(
(e) => {
- var t = (0, c.uh)(e),
+ var t = (0, l.uh)(e),
n = {
Tab: (e) => e.preventDefault(),
Escape: s,
ArrowDown: () => {
var e = v.nextEnabled(r)
- e && i(e.index)
+ e && o(e.index)
},
ArrowUp: () => {
var e = v.prevEnabled(r)
- e && i(e.index)
+ e && o(e.index)
},
}[t]
if (n) return e.preventDefault(), void n(e)
- var o = m((e) => {
- var t = (0, R.LP)(
+ var i = m((e) => {
+ var t = (0, I.LP)(
v.values(),
e,
(e) => {
@@ -2697,12 +8997,12 @@
)
if (t) {
var n = v.indexOf(t.node)
- i(n)
+ o(n)
}
})
- V(e.target) && o(e)
+ V(e.target) && i(e)
},
- [v, r, m, s, i],
+ [v, r, m, s, o],
),
y = f.useRef(!1)
a && (y.current = !0)
@@ -2711,56 +9011,56 @@
hasBeenSelected: t,
isLazy: n,
isSelected: r,
- lazyBehavior: i = 'unmount',
+ lazyBehavior: o = 'unmount',
} = e
- return !n || !!r || !('keepMounted' !== i || !t)
+ return !n || !!r || !('keepMounted' !== o || !t)
})({ hasBeenSelected: y.current, isLazy: d, lazyBehavior: p, isSelected: a })
- return j({}, e, {
- ref: (0, h.l)(o, t),
+ return A({}, e, {
+ ref: (0, h.l)(i, t),
children: b ? e.children : null,
tabIndex: -1,
role: 'menu',
- id: l,
- style: j({}, e.style, { transformOrigin: 'var(--popper-transform-origin)' }),
+ id: c,
+ style: A({}, e.style, { transformOrigin: 'var(--popper-transform-origin)' }),
'aria-orientation': 'vertical',
onKeyDown: (0, u.v0)(e.onKeyDown, g),
})
})(a, t),
v = (function (e) {
void 0 === e && (e = {})
- var { popper: t, isOpen: n } = B()
+ var { popper: t, isOpen: n } = H()
return t.getPopperProps(
- j({}, e, { style: j({ visibility: n ? 'visible' : 'hidden' }, e.style) }),
+ A({}, e, { style: A({ visibility: n ? 'visible' : 'hidden' }, e.style) }),
)
- })(i),
- m = (0, o.yK)()
+ })(o),
+ m = (0, i.yK)()
return f.createElement(
s.m$.div,
- G({}, v, {
+ U({}, v, {
__css: {
zIndex: null != (n = e.zIndex) ? n : null == (r = m.list) ? void 0 : r.zIndex,
},
}),
f.createElement(
- X,
- G({}, p, {
+ $,
+ U({}, p, {
onUpdate: d,
- className: (0, c.cx)('chakra-menu__menu-list', p.className),
- variants: $,
+ className: (0, l.cx)('chakra-menu__menu-list', p.className),
+ variants: X,
initial: !1,
- animate: l ? 'enter' : 'exit',
- __css: G({ outline: 0 }, m.list),
+ animate: c ? 'enter' : 'exit',
+ __css: U({ outline: 0 }, m.list),
}),
),
)
})
- l.Ts && (Y.displayName = 'MenuList')
+ c.Ts && (Y.displayName = 'MenuList')
var Q = (0, a.G)((e, t) => {
var { type: n } = e,
- r = q(e, ['type']),
- i = (0, o.yK)(),
+ r = G(e, ['type']),
+ o = (0, i.yK)(),
a = r.as ? (null != n ? n : void 0) : 'button',
- u = G(
+ u = U(
{
textDecoration: 'none',
color: 'inherit',
@@ -2772,34 +9072,34 @@
flex: '0 0 auto',
outline: 0,
},
- i.item,
+ o.item,
)
- return f.createElement(s.m$.button, G({ ref: t, type: a }, r, { __css: u }))
+ return f.createElement(s.m$.button, U({ ref: t, type: a }, r, { __css: u }))
}),
J = (0, a.G)((e, t) => {
var {
icon: n,
iconSpacing: r = '0.75rem',
- command: i,
- commandSpacing: o = '0.75rem',
+ command: o,
+ commandSpacing: i = '0.75rem',
children: a,
} = e,
- s = U(q(e, ['icon', 'iconSpacing', 'command', 'commandSpacing', 'children']), t),
+ s = W(G(e, ['icon', 'iconSpacing', 'command', 'commandSpacing', 'children']), t),
u =
- n || i ? f.createElement('span', { style: { pointerEvents: 'none', flex: 1 } }, a) : a
+ n || o ? f.createElement('span', { style: { pointerEvents: 'none', flex: 1 } }, a) : a
return f.createElement(
Q,
- G({}, s, { className: (0, c.cx)('chakra-menu__menuitem', s.className) }),
- n && f.createElement(oe, { fontSize: '0.8em', marginEnd: r }, n),
+ U({}, s, { className: (0, l.cx)('chakra-menu__menuitem', s.className) }),
+ n && f.createElement(ie, { fontSize: '0.8em', marginEnd: r }, n),
u,
- i && f.createElement(ie, { marginStart: o }, i),
+ o && f.createElement(oe, { marginStart: i }, o),
)
})
- l.Ts && (J.displayName = 'MenuItem')
+ c.Ts && (J.displayName = 'MenuItem')
var ee = (e) =>
f.createElement(
'svg',
- G({ viewBox: '0 0 14 14', width: '1em', height: '1em' }, e),
+ U({ viewBox: '0 0 14 14', width: '1em', height: '1em' }, e),
f.createElement('polygon', {
fill: 'currentColor',
points:
@@ -2808,46 +9108,46 @@
),
te = (0, a.G)((e, t) => {
var { icon: n, iconSpacing: r = '0.75rem' } = e,
- i = q(e, ['icon', 'iconSpacing']),
- o = (function (e, t) {
+ o = G(e, ['icon', 'iconSpacing']),
+ i = (function (e, t) {
void 0 === e && (e = {}), void 0 === t && (t = null)
var { type: n = 'radio', isChecked: r } = e
- return j({}, U(D(e, ['type', 'isChecked']), t), {
+ return A({}, W(R(e, ['type', 'isChecked']), t), {
role: 'menuitem' + n,
'aria-checked': r,
})
- })(i, t)
+ })(o, t)
return f.createElement(
Q,
- G({}, o, { className: (0, c.cx)('chakra-menu__menuitem-option', i.className) }),
+ U({}, i, { className: (0, l.cx)('chakra-menu__menuitem-option', o.className) }),
f.createElement(
- oe,
+ ie,
{ fontSize: '0.8em', marginEnd: r, opacity: e.isChecked ? 1 : 0 },
n || f.createElement(ee, null),
),
- f.createElement('span', { style: { flex: 1 } }, o.children),
+ f.createElement('span', { style: { flex: 1 } }, i.children),
)
})
- ;(te.id = 'MenuItemOption'), l.Ts && (te.displayName = 'MenuItemOption')
+ ;(te.id = 'MenuItemOption'), c.Ts && (te.displayName = 'MenuItemOption')
var ne = (e) => {
var { className: t, title: n } = e,
r = (function (e) {
void 0 === e && (e = {})
- var { children: t, type: n = 'radio', value: r, defaultValue: i, onChange: o } = e,
- a = D(e, ['children', 'type', 'value', 'defaultValue', 'onChange']),
+ var { children: t, type: n = 'radio', value: r, defaultValue: o, onChange: i } = e,
+ a = R(e, ['children', 'type', 'value', 'defaultValue', 'onChange']),
s = 'radio' === n ? '' : [],
- [u, c] = (0, S.T)({ defaultValue: null != i ? i : s, value: r, onChange: o }),
+ [u, l] = (0, M.T)({ defaultValue: null != o ? o : s, value: r, onChange: i }),
d = f.useCallback(
(e) => {
- if (('radio' === n && (0, l.HD)(u) && c(e), 'checkbox' === n && (0, l.kJ)(u))) {
- var t = u.includes(e) ? (0, R.cl)(u, e) : (0, R.jX)(u, e)
- c(t)
+ if (('radio' === n && (0, c.HD)(u) && l(e), 'checkbox' === n && (0, c.kJ)(u))) {
+ var t = u.includes(e) ? (0, I.cl)(u, e) : (0, I.jX)(u, e)
+ l(t)
}
},
- [u, c, n],
+ [u, l, n],
)
- return j({}, a, {
- children: (0, M.W)(t).map((e) => {
+ return A({}, a, {
+ children: (0, j.W)(t).map((e) => {
if ('MenuItemOption' !== e.type.id) return e
var t = 'radio' === n ? e.props.value === u : u.includes(e.props.value)
return f.cloneElement(e, {
@@ -2859,50 +9159,50 @@
})
}),
})
- })(q(e, ['className', 'title']))
+ })(G(e, ['className', 'title']))
return f.createElement(
re,
- G({ title: n, className: (0, c.cx)('chakra-menu__option-group', t) }, r),
+ U({ title: n, className: (0, l.cx)('chakra-menu__option-group', t) }, r),
)
}
- l.Ts && (ne.displayName = 'MenuOptionGroup')
+ c.Ts && (ne.displayName = 'MenuOptionGroup')
var re = (0, a.G)((e, t) => {
- var { title: n, children: r, className: i } = e,
- a = q(e, ['title', 'children', 'className']),
- u = (0, c.cx)('chakra-menu__group__title', i),
- l = (0, o.yK)()
+ var { title: n, children: r, className: o } = e,
+ a = G(e, ['title', 'children', 'className']),
+ u = (0, l.cx)('chakra-menu__group__title', o),
+ c = (0, i.yK)()
return f.createElement(
'div',
{ ref: t, className: 'chakra-menu__group', role: 'group' },
- n && f.createElement(s.m$.p, G({ className: u }, a, { __css: l.groupTitle }), n),
+ n && f.createElement(s.m$.p, U({ className: u }, a, { __css: c.groupTitle }), n),
r,
)
})
- l.Ts && (re.displayName = 'MenuGroup')
- var ie = (0, a.G)((e, t) => {
- var n = (0, o.yK)()
+ c.Ts && (re.displayName = 'MenuGroup')
+ var oe = (0, a.G)((e, t) => {
+ var n = (0, i.yK)()
return f.createElement(
s.m$.span,
- G({ ref: t }, e, { __css: n.command, className: 'chakra-menu__command' }),
+ U({ ref: t }, e, { __css: n.command, className: 'chakra-menu__command' }),
)
})
- l.Ts && (ie.displayName = 'MenuCommand')
- var oe = (e) => {
+ c.Ts && (oe.displayName = 'MenuCommand')
+ var ie = (e) => {
var { className: t, children: n } = e,
- r = q(e, ['className', 'children']),
- i = f.Children.only(n),
- o = f.isValidElement(i)
- ? f.cloneElement(i, {
+ r = G(e, ['className', 'children']),
+ o = f.Children.only(n),
+ i = f.isValidElement(o)
+ ? f.cloneElement(o, {
focusable: 'false',
'aria-hidden': !0,
- className: (0, c.cx)('chakra-menu__icon', i.props.className),
+ className: (0, l.cx)('chakra-menu__icon', o.props.className),
})
: null,
- a = (0, c.cx)('chakra-menu__icon-wrapper', t)
- return f.createElement(s.m$.span, G({ className: a }, r, { __css: { flexShrink: 0 } }), o)
+ a = (0, l.cx)('chakra-menu__icon-wrapper', t)
+ return f.createElement(s.m$.span, U({ className: a }, r, { __css: { flexShrink: 0 } }), i)
}
- l.Ts && (oe.displayName = 'MenuIcon')
- l.Ts
+ c.Ts && (ie.displayName = 'MenuIcon')
+ c.Ts
},
8931: function (e, t, n) {
'use strict'
@@ -2911,8 +9211,8 @@
return be
},
})
- var r = n(2947)
- function i(e) {
+ var r = n(72947)
+ function o(e) {
var t = e.getBoundingClientRect()
return {
width: t.width,
@@ -2925,7 +9225,7 @@
y: t.top,
}
}
- function o(e) {
+ function i(e) {
if ('[object Window]' !== e.toString()) {
var t = e.ownerDocument
return t ? t.defaultView : window
@@ -2933,51 +9233,51 @@
return e
}
function a(e) {
- var t = o(e)
+ var t = i(e)
return { scrollLeft: t.pageXOffset, scrollTop: t.pageYOffset }
}
function s(e) {
- return e instanceof o(e).Element || e instanceof Element
+ return e instanceof i(e).Element || e instanceof Element
}
function u(e) {
- return e instanceof o(e).HTMLElement || e instanceof HTMLElement
+ return e instanceof i(e).HTMLElement || e instanceof HTMLElement
}
- function l(e) {
+ function c(e) {
return e ? (e.nodeName || '').toLowerCase() : null
}
- function c(e) {
+ function l(e) {
return (s(e) ? e.ownerDocument : e.document).documentElement
}
function d(e) {
- return i(c(e)).left + a(e).scrollLeft
+ return o(l(e)).left + a(e).scrollLeft
}
function f(e) {
- return o(e).getComputedStyle(e)
+ return i(e).getComputedStyle(e)
}
function h(e) {
var t = f(e),
n = t.overflow,
r = t.overflowX,
- i = t.overflowY
- return /auto|scroll|overlay|hidden/.test(n + i + r)
+ o = t.overflowY
+ return /auto|scroll|overlay|hidden/.test(n + o + r)
}
function p(e, t, n) {
void 0 === n && (n = !1)
- var r = c(t),
- s = i(e),
+ var r = l(t),
+ s = o(e),
f = u(t),
p = { scrollLeft: 0, scrollTop: 0 },
v = { x: 0, y: 0 }
return (
(f || (!f && !n)) &&
- (('body' !== l(t) || h(r)) &&
+ (('body' !== c(t) || h(r)) &&
(p = (function (e) {
- return e !== o(e) && u(e)
+ return e !== i(e) && u(e)
? { scrollLeft: (t = e).scrollLeft, scrollTop: t.scrollTop }
: a(e)
var t
})(t)),
- u(t) ? (((v = i(t)).x += t.clientLeft), (v.y += t.clientTop)) : r && (v.x = d(r))),
+ u(t) ? (((v = o(t)).x += t.clientLeft), (v.y += t.clientTop)) : r && (v.x = d(r))),
{
x: s.left + p.scrollLeft - v.x,
y: s.top + p.scrollTop - v.y,
@@ -2990,10 +9290,10 @@
return { x: e.offsetLeft, y: e.offsetTop, width: e.offsetWidth, height: e.offsetHeight }
}
function m(e) {
- return 'html' === l(e) ? e : e.assignedSlot || e.parentNode || e.host || c(e)
+ return 'html' === c(e) ? e : e.assignedSlot || e.parentNode || e.host || l(e)
}
function g(e) {
- return ['html', 'body', '#document'].indexOf(l(e)) >= 0
+ return ['html', 'body', '#document'].indexOf(c(e)) >= 0
? e.ownerDocument.body
: u(e) && h(e)
? e
@@ -3002,31 +9302,31 @@
function y(e, t) {
void 0 === t && (t = [])
var n = g(e),
- r = 'body' === l(n),
- i = o(n),
- a = r ? [i].concat(i.visualViewport || [], h(n) ? n : []) : n,
+ r = 'body' === c(n),
+ o = i(n),
+ a = r ? [o].concat(o.visualViewport || [], h(n) ? n : []) : n,
s = t.concat(a)
return r ? s : s.concat(y(m(a)))
}
function b(e) {
- return ['table', 'td', 'th'].indexOf(l(e)) >= 0
+ return ['table', 'td', 'th'].indexOf(c(e)) >= 0
}
function w(e) {
if (!u(e) || 'fixed' === f(e).position) return null
var t = e.offsetParent
if (t) {
- var n = c(t)
- if ('body' === l(t) && 'static' === f(t).position && 'static' !== f(n).position) return n
+ var n = l(t)
+ if ('body' === c(t) && 'static' === f(t).position && 'static' !== f(n).position) return n
}
return t
}
- function x(e) {
- for (var t = o(e), n = w(e); n && b(n) && 'static' === f(n).position; ) n = w(n)
- return n && 'body' === l(n) && 'static' === f(n).position
+ function _(e) {
+ for (var t = i(e), n = w(e); n && b(n) && 'static' === f(n).position; ) n = w(n)
+ return n && 'body' === c(n) && 'static' === f(n).position
? t
: n ||
(function (e) {
- for (var t = m(e); u(t) && ['html', 'body'].indexOf(l(t)) < 0; ) {
+ for (var t = m(e); u(t) && ['html', 'body'].indexOf(c(t)) < 0; ) {
var n = f(t)
if (
'none' !== n.transform ||
@@ -3040,23 +9340,23 @@
})(e) ||
t
}
- var E = 'top',
+ var x = 'top',
k = 'bottom',
- _ = 'right',
- T = 'left',
- O = 'auto',
- C = [E, k, _, T],
- S = 'start',
- A = 'end',
+ E = 'right',
+ O = 'left',
+ T = 'auto',
+ C = [x, k, E, O],
+ M = 'start',
+ S = 'end',
P = 'viewport',
- M = 'popper',
- R = C.reduce(function (e, t) {
- return e.concat([t + '-' + S, t + '-' + A])
+ j = 'popper',
+ I = C.reduce(function (e, t) {
+ return e.concat([t + '-' + M, t + '-' + S])
}, []),
- j = [].concat(C, [O]).reduce(function (e, t) {
- return e.concat([t, t + '-' + S, t + '-' + A])
+ A = [].concat(C, [T]).reduce(function (e, t) {
+ return e.concat([t, t + '-' + M, t + '-' + S])
}, []),
- D = [
+ R = [
'beforeRead',
'read',
'afterRead',
@@ -3067,16 +9367,16 @@
'write',
'afterWrite',
]
- function L(e) {
+ function D(e) {
var t = new Map(),
n = new Set(),
r = []
- function i(e) {
+ function o(e) {
n.add(e.name),
[].concat(e.requires || [], e.requiresIfExists || []).forEach(function (e) {
if (!n.has(e)) {
var r = t.get(e)
- r && i(r)
+ r && o(r)
}
}),
r.push(e)
@@ -3086,12 +9386,12 @@
t.set(e.name, e)
}),
e.forEach(function (e) {
- n.has(e.name) || i(e)
+ n.has(e.name) || o(e)
}),
r
)
}
- function N(e) {
+ function L(e) {
var t
return function () {
return (
@@ -3105,26 +9405,26 @@
)
}
}
- var I = { placement: 'bottom', modifiers: [], strategy: 'absolute' }
+ var N = { placement: 'bottom', modifiers: [], strategy: 'absolute' }
function z() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
return !t.some(function (e) {
return !(e && 'function' === typeof e.getBoundingClientRect)
})
}
- function H(e) {
+ function B(e) {
void 0 === e && (e = {})
var t = e,
n = t.defaultModifiers,
r = void 0 === n ? [] : n,
- i = t.defaultOptions,
- o = void 0 === i ? I : i
+ o = t.defaultOptions,
+ i = void 0 === o ? N : o
return function (e, t, n) {
- void 0 === n && (n = o)
- var i = {
+ void 0 === n && (n = i)
+ var o = {
placement: 'bottom',
orderedModifiers: [],
- options: Object.assign(Object.assign({}, I), o),
+ options: Object.assign(Object.assign({}, N), i),
modifiersData: {},
elements: { reference: e, popper: t },
attributes: {},
@@ -3132,18 +9432,18 @@
},
a = [],
u = !1,
- l = {
- state: i,
+ c = {
+ state: o,
setOptions: function (n) {
- c(),
- (i.options = Object.assign(Object.assign(Object.assign({}, o), i.options), n)),
- (i.scrollParents = {
+ l(),
+ (o.options = Object.assign(Object.assign(Object.assign({}, i), o.options), n)),
+ (o.scrollParents = {
reference: s(e) ? y(e) : e.contextElement ? y(e.contextElement) : [],
popper: y(t),
})
var u = (function (e) {
- var t = L(e)
- return D.reduce(function (e, n) {
+ var t = D(e)
+ return R.reduce(function (e, n) {
return e.concat(
t.filter(function (e) {
return e.phase === n
@@ -3171,136 +9471,136 @@
return Object.keys(t).map(function (e) {
return t[e]
})
- })([].concat(r, i.options.modifiers)),
+ })([].concat(r, o.options.modifiers)),
)
return (
- (i.orderedModifiers = u.filter(function (e) {
+ (o.orderedModifiers = u.filter(function (e) {
return e.enabled
})),
- i.orderedModifiers.forEach(function (e) {
+ o.orderedModifiers.forEach(function (e) {
var t = e.name,
n = e.options,
r = void 0 === n ? {} : n,
- o = e.effect
- if ('function' === typeof o) {
- var s = o({ state: i, name: t, instance: l, options: r }),
+ i = e.effect
+ if ('function' === typeof i) {
+ var s = i({ state: o, name: t, instance: c, options: r }),
u = function () {}
a.push(s || u)
}
}),
- l.update()
+ c.update()
)
},
forceUpdate: function () {
if (!u) {
- var e = i.elements,
+ var e = o.elements,
t = e.reference,
n = e.popper
if (z(t, n)) {
- ;(i.rects = {
- reference: p(t, x(n), 'fixed' === i.options.strategy),
+ ;(o.rects = {
+ reference: p(t, _(n), 'fixed' === o.options.strategy),
popper: v(n),
}),
- (i.reset = !1),
- (i.placement = i.options.placement),
- i.orderedModifiers.forEach(function (e) {
- return (i.modifiersData[e.name] = Object.assign({}, e.data))
+ (o.reset = !1),
+ (o.placement = o.options.placement),
+ o.orderedModifiers.forEach(function (e) {
+ return (o.modifiersData[e.name] = Object.assign({}, e.data))
})
- for (var r = 0; r < i.orderedModifiers.length; r++)
- if (!0 !== i.reset) {
- var o = i.orderedModifiers[r],
- a = o.fn,
- s = o.options,
- c = void 0 === s ? {} : s,
- d = o.name
+ for (var r = 0; r < o.orderedModifiers.length; r++)
+ if (!0 !== o.reset) {
+ var i = o.orderedModifiers[r],
+ a = i.fn,
+ s = i.options,
+ l = void 0 === s ? {} : s,
+ d = i.name
'function' === typeof a &&
- (i = a({ state: i, options: c, name: d, instance: l }) || i)
- } else (i.reset = !1), (r = -1)
+ (o = a({ state: o, options: l, name: d, instance: c }) || o)
+ } else (o.reset = !1), (r = -1)
}
}
},
- update: N(function () {
+ update: L(function () {
return new Promise(function (e) {
- l.forceUpdate(), e(i)
+ c.forceUpdate(), e(o)
})
}),
destroy: function () {
- c(), (u = !0)
+ l(), (u = !0)
},
}
- if (!z(e, t)) return l
- function c() {
+ if (!z(e, t)) return c
+ function l() {
a.forEach(function (e) {
return e()
}),
(a = [])
}
return (
- l.setOptions(n).then(function (e) {
+ c.setOptions(n).then(function (e) {
!u && n.onFirstUpdate && n.onFirstUpdate(e)
}),
- l
+ c
)
}
}
- var B = { passive: !0 }
+ var H = { passive: !0 }
function F(e) {
return e.split('-')[0]
}
function V(e) {
return e.split('-')[1]
}
- function U(e) {
+ function W(e) {
return ['top', 'bottom'].indexOf(e) >= 0 ? 'x' : 'y'
}
- function G(e) {
+ function U(e) {
var t,
n = e.reference,
r = e.element,
- i = e.placement,
- o = i ? F(i) : null,
- a = i ? V(i) : null,
+ o = e.placement,
+ i = o ? F(o) : null,
+ a = o ? V(o) : null,
s = n.x + n.width / 2 - r.width / 2,
u = n.y + n.height / 2 - r.height / 2
- switch (o) {
- case E:
+ switch (i) {
+ case x:
t = { x: s, y: n.y - r.height }
break
case k:
t = { x: s, y: n.y + n.height }
break
- case _:
+ case E:
t = { x: n.x + n.width, y: u }
break
- case T:
+ case O:
t = { x: n.x - r.width, y: u }
break
default:
t = { x: n.x, y: n.y }
}
- var l = o ? U(o) : null
- if (null != l) {
- var c = 'y' === l ? 'height' : 'width'
+ var c = i ? W(i) : null
+ if (null != c) {
+ var l = 'y' === c ? 'height' : 'width'
switch (a) {
- case S:
- t[l] = Math.floor(t[l]) - Math.floor(n[c] / 2 - r[c] / 2)
+ case M:
+ t[c] = Math.floor(t[c]) - Math.floor(n[l] / 2 - r[l] / 2)
break
- case A:
- t[l] = Math.floor(t[l]) + Math.ceil(n[c] / 2 - r[c] / 2)
+ case S:
+ t[c] = Math.floor(t[c]) + Math.ceil(n[l] / 2 - r[l] / 2)
}
}
return t
}
- var q = { top: 'auto', right: 'auto', bottom: 'auto', left: 'auto' }
- function W(e) {
+ var G = { top: 'auto', right: 'auto', bottom: 'auto', left: 'auto' }
+ function q(e) {
var t,
n = e.popper,
r = e.popperRect,
- i = e.placement,
+ o = e.placement,
a = e.offsets,
s = e.position,
u = e.gpuAcceleration,
- l = e.adaptive,
+ c = e.adaptive,
d = (function (e) {
var t = e.x,
n = e.y,
@@ -3311,20 +9611,20 @@
h = d.y,
p = a.hasOwnProperty('x'),
v = a.hasOwnProperty('y'),
- m = T,
- g = E,
+ m = O,
+ g = x,
y = window
- if (l) {
- var b = x(n)
- b === o(n) && (b = c(n)),
- i === E && ((g = k), (h -= b.clientHeight - r.height), (h *= u ? 1 : -1)),
- i === T && ((m = _), (f -= b.clientWidth - r.width), (f *= u ? 1 : -1))
+ if (c) {
+ var b = _(n)
+ b === i(n) && (b = l(n)),
+ o === x && ((g = k), (h -= b.clientHeight - r.height), (h *= u ? 1 : -1)),
+ o === O && ((m = E), (f -= b.clientWidth - r.width), (f *= u ? 1 : -1))
}
var w,
- O = Object.assign({ position: s }, l && q)
+ T = Object.assign({ position: s }, c && G)
return u
? Object.assign(
- Object.assign({}, O),
+ Object.assign({}, T),
{},
(((w = {})[g] = v ? '0' : ''),
(w[m] = p ? '0' : ''),
@@ -3335,7 +9635,7 @@
w),
)
: Object.assign(
- Object.assign({}, O),
+ Object.assign({}, T),
{},
(((t = {})[g] = v ? h + 'px' : ''),
(t[m] = p ? f + 'px' : ''),
@@ -3349,10 +9649,10 @@
return K[e]
})
}
- var $ = { start: 'end', end: 'start' }
- function X(e) {
+ var X = { start: 'end', end: 'start' }
+ function $(e) {
return e.replace(/start|end/g, function (e) {
- return $[e]
+ return X[e]
})
}
function Y(e, t) {
@@ -3378,26 +9678,26 @@
return t === P
? Q(
(function (e) {
- var t = o(e),
- n = c(e),
+ var t = i(e),
+ n = l(e),
r = t.visualViewport,
- i = n.clientWidth,
+ o = n.clientWidth,
a = n.clientHeight,
s = 0,
u = 0
return (
r &&
- ((i = r.width),
+ ((o = r.width),
(a = r.height),
/^((?!chrome|android).)*safari/i.test(navigator.userAgent) ||
((s = r.offsetLeft), (u = r.offsetTop))),
- { width: i, height: a, x: s + d(e), y: u }
+ { width: o, height: a, x: s + d(e), y: u }
)
})(e),
)
: u(t)
? (function (e) {
- var t = i(e)
+ var t = o(e)
return (
(t.top = t.top + e.clientTop),
(t.left = t.left + e.clientLeft),
@@ -3412,16 +9712,16 @@
})(t)
: Q(
(function (e) {
- var t = c(e),
+ var t = l(e),
n = a(e),
r = e.ownerDocument.body,
- i = Math.max(
+ o = Math.max(
t.scrollWidth,
t.clientWidth,
r ? r.scrollWidth : 0,
r ? r.clientWidth : 0,
),
- o = Math.max(
+ i = Math.max(
t.scrollHeight,
t.clientHeight,
r ? r.scrollHeight : 0,
@@ -3431,10 +9731,10 @@
u = -n.scrollTop
return (
'rtl' === f(r || t).direction &&
- (s += Math.max(t.clientWidth, r ? r.clientWidth : 0) - i),
- { width: i, height: o, x: s, y: u }
+ (s += Math.max(t.clientWidth, r ? r.clientWidth : 0) - o),
+ { width: o, height: i, x: s, y: u }
)
- })(c(e)),
+ })(l(e)),
)
}
function ee(e, t, n) {
@@ -3442,17 +9742,17 @@
'clippingParents' === t
? (function (e) {
var t = y(m(e)),
- n = ['absolute', 'fixed'].indexOf(f(e).position) >= 0 && u(e) ? x(e) : e
+ n = ['absolute', 'fixed'].indexOf(f(e).position) >= 0 && u(e) ? _(e) : e
return s(n)
? t.filter(function (e) {
- return s(e) && Y(e, n) && 'body' !== l(e)
+ return s(e) && Y(e, n) && 'body' !== c(e)
})
: []
})(e)
: [].concat(t),
- i = [].concat(r, [n]),
- o = i[0],
- a = i.reduce(function (t, n) {
+ o = [].concat(r, [n]),
+ i = o[0],
+ a = o.reduce(function (t, n) {
var r = J(e, n)
return (
(t.top = Math.max(r.top, t.top)),
@@ -3461,7 +9761,7 @@
(t.left = Math.max(r.left, t.left)),
t
)
- }, J(e, o))
+ }, J(e, i))
return (
(a.width = a.right - a.left),
(a.height = a.bottom - a.top),
@@ -3482,48 +9782,48 @@
void 0 === t && (t = {})
var n = t,
r = n.placement,
- o = void 0 === r ? e.placement : r,
+ i = void 0 === r ? e.placement : r,
a = n.boundary,
u = void 0 === a ? 'clippingParents' : a,
- l = n.rootBoundary,
- d = void 0 === l ? P : l,
+ c = n.rootBoundary,
+ d = void 0 === c ? P : c,
f = n.elementContext,
- h = void 0 === f ? M : f,
+ h = void 0 === f ? j : f,
p = n.altBoundary,
v = void 0 !== p && p,
m = n.padding,
g = void 0 === m ? 0 : m,
y = te('number' !== typeof g ? g : ne(g, C)),
- b = h === M ? 'reference' : M,
+ b = h === j ? 'reference' : j,
w = e.elements.reference,
- x = e.rects.popper,
- T = e.elements[v ? b : h],
- O = ee(s(T) ? T : T.contextElement || c(e.elements.popper), u, d),
- S = i(w),
- A = G({ reference: S, element: x, strategy: 'absolute', placement: o }),
- R = Q(Object.assign(Object.assign({}, x), A)),
- j = h === M ? R : S,
- D = {
- top: O.top - j.top + y.top,
- bottom: j.bottom - O.bottom + y.bottom,
- left: O.left - j.left + y.left,
- right: j.right - O.right + y.right,
- },
- L = e.modifiersData.offset
- if (h === M && L) {
- var N = L[o]
- Object.keys(D).forEach(function (e) {
- var t = [_, k].indexOf(e) >= 0 ? 1 : -1,
- n = [E, k].indexOf(e) >= 0 ? 'y' : 'x'
- D[e] += N[n] * t
+ _ = e.rects.popper,
+ O = e.elements[v ? b : h],
+ T = ee(s(O) ? O : O.contextElement || l(e.elements.popper), u, d),
+ M = o(w),
+ S = U({ reference: M, element: _, strategy: 'absolute', placement: i }),
+ I = Q(Object.assign(Object.assign({}, _), S)),
+ A = h === j ? I : M,
+ R = {
+ top: T.top - A.top + y.top,
+ bottom: A.bottom - T.bottom + y.bottom,
+ left: T.left - A.left + y.left,
+ right: A.right - T.right + y.right,
+ },
+ D = e.modifiersData.offset
+ if (h === j && D) {
+ var L = D[i]
+ Object.keys(R).forEach(function (e) {
+ var t = [E, k].indexOf(e) >= 0 ? 1 : -1,
+ n = [x, k].indexOf(e) >= 0 ? 'y' : 'x'
+ R[e] += L[n] * t
})
}
- return D
+ return R
}
- function ie(e, t, n) {
+ function oe(e, t, n) {
return Math.max(e, Math.min(t, n))
}
- function oe(e, t, n) {
+ function ie(e, t, n) {
return (
void 0 === n && (n = { x: 0, y: 0 }),
{
@@ -3535,11 +9835,11 @@
)
}
function ae(e) {
- return [E, _, k, T].some(function (t) {
+ return [x, E, k, O].some(function (t) {
return e[t] >= 0
})
}
- var se = H({
+ var se = B({
defaultModifiers: [
{
name: 'eventListeners',
@@ -3550,24 +9850,24 @@
var t = e.state,
n = e.instance,
r = e.options,
- i = r.scroll,
- a = void 0 === i || i,
+ o = r.scroll,
+ a = void 0 === o || o,
s = r.resize,
u = void 0 === s || s,
- l = o(t.elements.popper),
- c = [].concat(t.scrollParents.reference, t.scrollParents.popper)
+ c = i(t.elements.popper),
+ l = [].concat(t.scrollParents.reference, t.scrollParents.popper)
return (
a &&
- c.forEach(function (e) {
- e.addEventListener('scroll', n.update, B)
+ l.forEach(function (e) {
+ e.addEventListener('scroll', n.update, H)
}),
- u && l.addEventListener('resize', n.update, B),
+ u && c.addEventListener('resize', n.update, H),
function () {
a &&
- c.forEach(function (e) {
- e.removeEventListener('scroll', n.update, B)
+ l.forEach(function (e) {
+ e.removeEventListener('scroll', n.update, H)
}),
- u && l.removeEventListener('resize', n.update, B)
+ u && c.removeEventListener('resize', n.update, H)
}
)
},
@@ -3580,7 +9880,7 @@
fn: function (e) {
var t = e.state,
n = e.name
- t.modifiersData[n] = G({
+ t.modifiersData[n] = U({
reference: t.rects.reference,
element: t.rects.popper,
strategy: 'absolute',
@@ -3597,19 +9897,19 @@
var t = e.state,
n = e.options,
r = n.gpuAcceleration,
- i = void 0 === r || r,
- o = n.adaptive,
- a = void 0 === o || o,
+ o = void 0 === r || r,
+ i = n.adaptive,
+ a = void 0 === i || i,
s = {
placement: F(t.placement),
popper: t.elements.popper,
popperRect: t.rects.popper,
- gpuAcceleration: i,
+ gpuAcceleration: o,
}
null != t.modifiersData.popperOffsets &&
(t.styles.popper = Object.assign(
Object.assign({}, t.styles.popper),
- W(
+ q(
Object.assign(
Object.assign({}, s),
{},
@@ -3624,7 +9924,7 @@
null != t.modifiersData.arrow &&
(t.styles.arrow = Object.assign(
Object.assign({}, t.styles.arrow),
- W(
+ q(
Object.assign(
Object.assign({}, s),
{},
@@ -3649,13 +9949,13 @@
Object.keys(t.elements).forEach(function (e) {
var n = t.styles[e] || {},
r = t.attributes[e] || {},
- i = t.elements[e]
- u(i) &&
- l(i) &&
- (Object.assign(i.style, n),
+ o = t.elements[e]
+ u(o) &&
+ c(o) &&
+ (Object.assign(o.style, n),
Object.keys(r).forEach(function (e) {
var t = r[e]
- !1 === t ? i.removeAttribute(e) : i.setAttribute(e, !0 === t ? '' : t)
+ !1 === t ? o.removeAttribute(e) : o.setAttribute(e, !0 === t ? '' : t)
}))
})
},
@@ -3672,17 +9972,17 @@
function () {
Object.keys(t.elements).forEach(function (e) {
var r = t.elements[e],
- i = t.attributes[e] || {},
- o = Object.keys(t.styles.hasOwnProperty(e) ? t.styles[e] : n[e]).reduce(
+ o = t.attributes[e] || {},
+ i = Object.keys(t.styles.hasOwnProperty(e) ? t.styles[e] : n[e]).reduce(
function (e, t) {
return (e[t] = ''), e
},
{},
)
u(r) &&
- l(r) &&
- (Object.assign(r.style, o),
- Object.keys(i).forEach(function (e) {
+ c(r) &&
+ (Object.assign(r.style, i),
+ Object.keys(o).forEach(function (e) {
r.removeAttribute(e)
}))
})
@@ -3700,33 +10000,33 @@
var t = e.state,
n = e.options,
r = e.name,
- i = n.offset,
- o = void 0 === i ? [0, 0] : i,
- a = j.reduce(function (e, n) {
+ o = n.offset,
+ i = void 0 === o ? [0, 0] : o,
+ a = A.reduce(function (e, n) {
return (
(e[n] = (function (e, t, n) {
var r = F(e),
- i = [T, E].indexOf(r) >= 0 ? -1 : 1,
- o =
+ o = [O, x].indexOf(r) >= 0 ? -1 : 1,
+ i =
'function' === typeof n
? n(Object.assign(Object.assign({}, t), {}, { placement: e }))
: n,
- a = o[0],
- s = o[1]
+ a = i[0],
+ s = i[1]
return (
(a = a || 0),
- (s = (s || 0) * i),
- [T, _].indexOf(r) >= 0 ? { x: s, y: a } : { x: a, y: s }
+ (s = (s || 0) * o),
+ [O, E].indexOf(r) >= 0 ? { x: s, y: a } : { x: a, y: s }
)
- })(n, t.rects, o)),
+ })(n, t.rects, i)),
e
)
}, {}),
s = a[t.placement],
u = s.x,
- l = s.y
+ c = s.y
null != t.modifiersData.popperOffsets &&
- ((t.modifiersData.popperOffsets.x += u), (t.modifiersData.popperOffsets.y += l)),
+ ((t.modifiersData.popperOffsets.x += u), (t.modifiersData.popperOffsets.y += c)),
(t.modifiersData[r] = a)
},
},
@@ -3740,13 +10040,13 @@
r = e.name
if (!t.modifiersData[r]._skip) {
for (
- var i = n.mainAxis,
- o = void 0 === i || i,
+ var o = n.mainAxis,
+ i = void 0 === o || o,
a = n.altAxis,
s = void 0 === a || a,
u = n.fallbackPlacements,
- l = n.padding,
- c = n.boundary,
+ c = n.padding,
+ l = n.boundary,
d = n.rootBoundary,
f = n.altBoundary,
h = n.flipVariations,
@@ -3759,41 +10059,41 @@
(g === m || !p
? [Z(m)]
: (function (e) {
- if (F(e) === O) return []
+ if (F(e) === T) return []
var t = Z(e)
- return [X(e), t, X(t)]
+ return [$(e), t, $(t)]
})(m)),
b = [m].concat(y).reduce(function (e, n) {
return e.concat(
- F(n) === O
+ F(n) === T
? (function (e, t) {
void 0 === t && (t = {})
var n = t,
r = n.placement,
- i = n.boundary,
- o = n.rootBoundary,
+ o = n.boundary,
+ i = n.rootBoundary,
a = n.padding,
s = n.flipVariations,
u = n.allowedAutoPlacements,
- l = void 0 === u ? j : u,
- c = V(r),
- d = c
+ c = void 0 === u ? A : u,
+ l = V(r),
+ d = l
? s
- ? R
- : R.filter(function (e) {
- return V(e) === c
+ ? I
+ : I.filter(function (e) {
+ return V(e) === l
})
: C,
f = d.filter(function (e) {
- return l.indexOf(e) >= 0
+ return c.indexOf(e) >= 0
})
0 === f.length && (f = d)
var h = f.reduce(function (t, n) {
return (
(t[n] = re(e, {
placement: n,
- boundary: i,
- rootBoundary: o,
+ boundary: o,
+ rootBoundary: i,
padding: a,
})[F(n)]),
t
@@ -3804,9 +10104,9 @@
})
})(t, {
placement: n,
- boundary: c,
+ boundary: l,
rootBoundary: d,
- padding: l,
+ padding: c,
flipVariations: p,
allowedAutoPlacements: v,
})
@@ -3814,62 +10114,62 @@
)
}, []),
w = t.rects.reference,
- x = t.rects.popper,
- A = new Map(),
+ _ = t.rects.popper,
+ S = new Map(),
P = !0,
- M = b[0],
- D = 0;
- D < b.length;
- D++
+ j = b[0],
+ R = 0;
+ R < b.length;
+ R++
) {
- var L = b[D],
- N = F(L),
- I = V(L) === S,
- z = [E, k].indexOf(N) >= 0,
- H = z ? 'width' : 'height',
- B = re(t, {
- placement: L,
- boundary: c,
+ var D = b[R],
+ L = F(D),
+ N = V(D) === M,
+ z = [x, k].indexOf(L) >= 0,
+ B = z ? 'width' : 'height',
+ H = re(t, {
+ placement: D,
+ boundary: l,
rootBoundary: d,
altBoundary: f,
- padding: l,
+ padding: c,
}),
- U = z ? (I ? _ : T) : I ? k : E
- w[H] > x[H] && (U = Z(U))
- var G = Z(U),
- q = []
+ W = z ? (N ? E : O) : N ? k : x
+ w[B] > _[B] && (W = Z(W))
+ var U = Z(W),
+ G = []
if (
- (o && q.push(B[N] <= 0),
- s && q.push(B[U] <= 0, B[G] <= 0),
- q.every(function (e) {
+ (i && G.push(H[L] <= 0),
+ s && G.push(H[W] <= 0, H[U] <= 0),
+ G.every(function (e) {
return e
}))
) {
- ;(M = L), (P = !1)
+ ;(j = D), (P = !1)
break
}
- A.set(L, q)
+ S.set(D, G)
}
if (P)
for (
- var W = function (e) {
+ var q = function (e) {
var t = b.find(function (t) {
- var n = A.get(t)
+ var n = S.get(t)
if (n)
return n.slice(0, e).every(function (e) {
return e
})
})
- if (t) return (M = t), 'break'
+ if (t) return (j = t), 'break'
},
K = p ? 3 : 1;
K > 0;
K--
) {
- if ('break' === W(K)) break
+ if ('break' === q(K)) break
}
- t.placement !== M &&
- ((t.modifiersData[r]._skip = !0), (t.placement = M), (t.reset = !0))
+ t.placement !== j &&
+ ((t.modifiersData[r]._skip = !0), (t.placement = j), (t.reset = !0))
}
},
requiresIfExists: ['offset'],
@@ -3883,69 +10183,69 @@
var t = e.state,
n = e.options,
r = e.name,
- i = n.mainAxis,
- o = void 0 === i || i,
+ o = n.mainAxis,
+ i = void 0 === o || o,
a = n.altAxis,
s = void 0 !== a && a,
u = n.boundary,
- l = n.rootBoundary,
- c = n.altBoundary,
+ c = n.rootBoundary,
+ l = n.altBoundary,
d = n.padding,
f = n.tether,
h = void 0 === f || f,
p = n.tetherOffset,
m = void 0 === p ? 0 : p,
- g = re(t, { boundary: u, rootBoundary: l, padding: d, altBoundary: c }),
+ g = re(t, { boundary: u, rootBoundary: c, padding: d, altBoundary: l }),
y = F(t.placement),
b = V(t.placement),
w = !b,
- O = U(y),
- C = 'x' === O ? 'y' : 'x',
- A = t.modifiersData.popperOffsets,
+ T = W(y),
+ C = 'x' === T ? 'y' : 'x',
+ S = t.modifiersData.popperOffsets,
P = t.rects.reference,
- M = t.rects.popper,
- R =
+ j = t.rects.popper,
+ I =
'function' === typeof m
? m(Object.assign(Object.assign({}, t.rects), {}, { placement: t.placement }))
: m,
- j = { x: 0, y: 0 }
- if (A) {
- if (o) {
- var D = 'y' === O ? E : T,
- L = 'y' === O ? k : _,
- N = 'y' === O ? 'height' : 'width',
- I = A[O],
- z = A[O] + g[D],
- H = A[O] - g[L],
- B = h ? -M[N] / 2 : 0,
- G = b === S ? P[N] : M[N],
- q = b === S ? -M[N] : -P[N],
- W = t.elements.arrow,
- K = h && W ? v(W) : { width: 0, height: 0 },
+ A = { x: 0, y: 0 }
+ if (S) {
+ if (i) {
+ var R = 'y' === T ? x : O,
+ D = 'y' === T ? k : E,
+ L = 'y' === T ? 'height' : 'width',
+ N = S[T],
+ z = S[T] + g[R],
+ B = S[T] - g[D],
+ H = h ? -j[L] / 2 : 0,
+ U = b === M ? P[L] : j[L],
+ G = b === M ? -j[L] : -P[L],
+ q = t.elements.arrow,
+ K = h && q ? v(q) : { width: 0, height: 0 },
Z = t.modifiersData['arrow#persistent']
? t.modifiersData['arrow#persistent'].padding
: { top: 0, right: 0, bottom: 0, left: 0 },
+ X = Z[R],
$ = Z[D],
- X = Z[L],
- Y = ie(0, P[N], K[N]),
- Q = w ? P[N] / 2 - B - Y - $ - R : G - Y - $ - R,
- J = w ? -P[N] / 2 + B + Y + X + R : q + Y + X + R,
- ee = t.elements.arrow && x(t.elements.arrow),
- te = ee ? ('y' === O ? ee.clientTop || 0 : ee.clientLeft || 0) : 0,
- ne = t.modifiersData.offset ? t.modifiersData.offset[t.placement][O] : 0,
- oe = A[O] + Q - ne - te,
- ae = A[O] + J - ne,
- se = ie(h ? Math.min(z, oe) : z, I, h ? Math.max(H, ae) : H)
- ;(A[O] = se), (j[O] = se - I)
+ Y = oe(0, P[L], K[L]),
+ Q = w ? P[L] / 2 - H - Y - X - I : U - Y - X - I,
+ J = w ? -P[L] / 2 + H + Y + $ + I : G + Y + $ + I,
+ ee = t.elements.arrow && _(t.elements.arrow),
+ te = ee ? ('y' === T ? ee.clientTop || 0 : ee.clientLeft || 0) : 0,
+ ne = t.modifiersData.offset ? t.modifiersData.offset[t.placement][T] : 0,
+ ie = S[T] + Q - ne - te,
+ ae = S[T] + J - ne,
+ se = oe(h ? Math.min(z, ie) : z, N, h ? Math.max(B, ae) : B)
+ ;(S[T] = se), (A[T] = se - N)
}
if (s) {
- var ue = 'x' === O ? E : T,
- le = 'x' === O ? k : _,
- ce = A[C],
- de = ie(ce + g[ue], ce, ce - g[le])
- ;(A[C] = de), (j[C] = de - ce)
+ var ue = 'x' === T ? x : O,
+ ce = 'x' === T ? k : E,
+ le = S[C],
+ de = oe(le + g[ue], le, le - g[ce])
+ ;(S[C] = de), (A[C] = de - le)
}
- t.modifiersData[r] = j
+ t.modifiersData[r] = A
}
},
requiresIfExists: ['offset'],
@@ -3958,41 +10258,41 @@
var t,
n = e.state,
r = e.name,
- i = n.elements.arrow,
- o = n.modifiersData.popperOffsets,
+ o = n.elements.arrow,
+ i = n.modifiersData.popperOffsets,
a = F(n.placement),
- s = U(a),
- u = [T, _].indexOf(a) >= 0 ? 'height' : 'width'
- if (i && o) {
- var l = n.modifiersData[r + '#persistent'].padding,
- c = v(i),
- d = 'y' === s ? E : T,
- f = 'y' === s ? k : _,
- h = n.rects.reference[u] + n.rects.reference[s] - o[s] - n.rects.popper[u],
- p = o[s] - n.rects.reference[s],
- m = x(i),
+ s = W(a),
+ u = [O, E].indexOf(a) >= 0 ? 'height' : 'width'
+ if (o && i) {
+ var c = n.modifiersData[r + '#persistent'].padding,
+ l = v(o),
+ d = 'y' === s ? x : O,
+ f = 'y' === s ? k : E,
+ h = n.rects.reference[u] + n.rects.reference[s] - i[s] - n.rects.popper[u],
+ p = i[s] - n.rects.reference[s],
+ m = _(o),
g = m ? ('y' === s ? m.clientHeight || 0 : m.clientWidth || 0) : 0,
y = h / 2 - p / 2,
- b = l[d],
- w = g - c[u] - l[f],
- O = g / 2 - c[u] / 2 + y,
- C = ie(b, O, w),
- S = s
- n.modifiersData[r] = (((t = {})[S] = C), (t.centerOffset = C - O), t)
+ b = c[d],
+ w = g - l[u] - c[f],
+ T = g / 2 - l[u] / 2 + y,
+ C = oe(b, T, w),
+ M = s
+ n.modifiersData[r] = (((t = {})[M] = C), (t.centerOffset = C - T), t)
}
},
effect: function (e) {
var t = e.state,
n = e.options,
r = e.name,
- i = n.element,
- o = void 0 === i ? '[data-popper-arrow]' : i,
+ o = n.element,
+ i = void 0 === o ? '[data-popper-arrow]' : o,
a = n.padding,
s = void 0 === a ? 0 : a
- null != o &&
- ('string' !== typeof o || (o = t.elements.popper.querySelector(o))) &&
- Y(t.elements.popper, o) &&
- ((t.elements.arrow = o),
+ null != i &&
+ ('string' !== typeof i || (i = t.elements.popper.querySelector(i))) &&
+ Y(t.elements.popper, i) &&
+ ((t.elements.arrow = i),
(t.modifiersData[r + '#persistent'] = {
padding: te('number' !== typeof s ? s : ne(s, C)),
}))
@@ -4009,32 +10309,32 @@
var t = e.state,
n = e.name,
r = t.rects.reference,
- i = t.rects.popper,
- o = t.modifiersData.preventOverflow,
+ o = t.rects.popper,
+ i = t.modifiersData.preventOverflow,
a = re(t, { elementContext: 'reference' }),
s = re(t, { altBoundary: !0 }),
- u = oe(a, r),
- l = oe(s, i, o),
- c = ae(u),
- d = ae(l)
+ u = ie(a, r),
+ c = ie(s, o, i),
+ l = ae(u),
+ d = ae(c)
;(t.modifiersData[n] = {
referenceClippingOffsets: u,
- popperEscapeOffsets: l,
- isReferenceHidden: c,
+ popperEscapeOffsets: c,
+ isReferenceHidden: l,
hasPopperEscaped: d,
}),
(t.attributes.popper = Object.assign(
Object.assign({}, t.attributes.popper),
{},
- { 'data-popper-reference-hidden': c, 'data-popper-escaped': d },
+ { 'data-popper-reference-hidden': l, 'data-popper-escaped': d },
))
},
},
],
}),
- ue = n(7294),
- le = n(3459),
- ce = {
+ ue = n(67294),
+ ce = n(23459),
+ le = {
name: 'matchWidth',
enabled: !0,
phase: 'beforeWrite',
@@ -4067,7 +10367,7 @@
},
},
fe = (e) => {
- e.elements.popper.style.setProperty(le.Dq.transformOrigin.var, (0, le.mv)(e.placement))
+ e.elements.popper.style.setProperty(ce.Dq.transformOrigin.var, (0, ce.mv)(e.placement))
},
he = {
name: 'positionArrow',
@@ -4085,27 +10385,27 @@
if (null != (t = e.elements) && t.arrow && n) {
Object.assign(e.elements.arrow.style, {
[n.property]: n.value,
- width: le.Dq.arrowSize.varRef,
- height: le.Dq.arrowSize.varRef,
+ width: ce.Dq.arrowSize.varRef,
+ height: ce.Dq.arrowSize.varRef,
zIndex: -1,
})
var r = {
- [le.Dq.arrowSizeHalf.var]: 'calc(' + le.Dq.arrowSize.varRef + ' / 2)',
- [le.Dq.arrowOffset.var]: 'calc(' + le.Dq.arrowSizeHalf.varRef + ' * -1)',
+ [ce.Dq.arrowSizeHalf.var]: 'calc(' + ce.Dq.arrowSize.varRef + ' / 2)',
+ [ce.Dq.arrowOffset.var]: 'calc(' + ce.Dq.arrowSizeHalf.varRef + ' * -1)',
}
- for (var i in r) e.elements.arrow.style.setProperty(i, r[i])
+ for (var o in r) e.elements.arrow.style.setProperty(o, r[o])
}
}
},
ve = (e) =>
e.startsWith('top')
- ? { property: 'bottom', value: le.Dq.arrowOffset.varRef }
+ ? { property: 'bottom', value: ce.Dq.arrowOffset.varRef }
: e.startsWith('bottom')
- ? { property: 'top', value: le.Dq.arrowOffset.varRef }
+ ? { property: 'top', value: ce.Dq.arrowOffset.varRef }
: e.startsWith('left')
- ? { property: 'right', value: le.Dq.arrowOffset.varRef }
+ ? { property: 'right', value: ce.Dq.arrowOffset.varRef }
: e.startsWith('right')
- ? { property: 'left', value: le.Dq.arrowOffset.varRef }
+ ? { property: 'left', value: ce.Dq.arrowOffset.varRef }
: void 0,
me = {
name: 'innerArrow',
@@ -4129,14 +10429,14 @@
t &&
Object.assign(t.style, {
transform: 'rotate(45deg)',
- background: le.Dq.arrowBg.varRef,
+ background: ce.Dq.arrowBg.varRef,
top: 0,
left: 0,
width: '100%',
height: '100%',
position: 'absolute',
zIndex: 'inherit',
- boxShadow: (0, le.Ke)(e.placement),
+ boxShadow: (0, ce.Ke)(e.placement),
})
}
}
@@ -4156,13 +10456,13 @@
var {
enabled: t = !0,
modifiers: n = [],
- placement: i = 'bottom',
- strategy: o = 'absolute',
+ placement: o = 'bottom',
+ strategy: i = 'absolute',
arrowPadding: a = 8,
eventListeners: s = !0,
offset: u,
- gutter: l = 8,
- flip: c = !0,
+ gutter: c = 8,
+ flip: l = !0,
boundary: d = 'clippingParents',
preventOverflow: f = !0,
matchWidth: h,
@@ -4177,24 +10477,24 @@
v.current &&
(null == g.current || g.current(),
(m.current = se(p.current, v.current, {
- placement: i,
+ placement: o,
modifiers: [
me,
he,
de,
- ye({}, ce, { enabled: !!h }),
- ye({ name: 'eventListeners' }, (0, le.$B)(s)),
+ ye({}, le, { enabled: !!h }),
+ ye({ name: 'eventListeners' }, (0, ce.$B)(s)),
{ name: 'arrow', options: { padding: a } },
- { name: 'offset', options: { offset: null != u ? u : [0, l] } },
- { name: 'flip', enabled: !!c, options: { padding: 8 } },
+ { name: 'offset', options: { offset: null != u ? u : [0, c] } },
+ { name: 'flip', enabled: !!l, options: { padding: 8 } },
{ name: 'preventOverflow', enabled: !!f, options: { boundary: d } },
...n,
],
- strategy: o,
+ strategy: i,
})),
m.current.forceUpdate(),
(g.current = m.current.destroy))
- }, [t, i, n, h, s, a, u, l, c, f, d, o])
+ }, [t, o, n, h, s, a, u, c, l, f, d, i])
;(0, ue.useEffect)(
() => () => {
var e
@@ -4218,28 +10518,28 @@
},
[b],
),
- x = (0, ue.useCallback)(
+ _ = (0, ue.useCallback)(
(e) => {
;(v.current = e), y()
},
[y],
),
- E = (0, ue.useCallback)(
+ x = (0, ue.useCallback)(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
ye({}, e, {
- ref: (0, r.l)(x, t),
+ ref: (0, r.l)(_, t),
style: ye({}, e.style, {
- position: o,
+ position: i,
minWidth: 'max-content',
inset: '0 auto auto 0',
}),
})
)
},
- [o, x],
+ [i, _],
),
k = (0, ue.useCallback)(function (e, t) {
return (
@@ -4251,16 +10551,16 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, ['size', 'shadowColor', 'bg', 'style']),
{ ref: t, 'data-popper-arrow': '', style: we(e) },
)
)
}, []),
- _ = (0, ue.useCallback)(function (e, t) {
+ E = (0, ue.useCallback)(function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
@@ -4276,27 +10576,27 @@
var e
null == (e = m.current) || e.forceUpdate()
},
- transformOrigin: le.Dq.transformOrigin.varRef,
+ transformOrigin: ce.Dq.transformOrigin.varRef,
referenceRef: b,
- popperRef: x,
- getPopperProps: E,
+ popperRef: _,
+ getPopperProps: x,
getArrowProps: k,
- getArrowInnerProps: _,
+ getArrowInnerProps: E,
getReferenceProps: w,
}
}
function we(e) {
- var { size: t, shadowColor: n, bg: r, style: i } = e,
- o = ye({}, i, { position: 'absolute' })
+ var { size: t, shadowColor: n, bg: r, style: o } = e,
+ i = ye({}, o, { position: 'absolute' })
return (
- t && (o['--popper-arrow-size'] = t),
- n && (o['--popper-arrow-shadow-color'] = n),
- r && (o['--popper-arrow-bg'] = r),
- o
+ t && (i['--popper-arrow-size'] = t),
+ n && (i['--popper-arrow-shadow-color'] = n),
+ r && (i['--popper-arrow-bg'] = r),
+ i
)
}
},
- 3459: function (e, t, n) {
+ 23459: function (e, t, n) {
'use strict'
function r() {
return (r =
@@ -4311,7 +10611,7 @@
}
n.d(t, {
Dq: function () {
- return o
+ return i
},
Ke: function () {
return a
@@ -4320,17 +10620,17 @@
return u
},
$B: function () {
- return c
+ return l
},
})
- var i = (e, t) => ({ var: e, varRef: t ? 'var(' + e + ', ' + t + ')' : 'var(' + e + ')' }),
- o = {
- arrowShadowColor: i('--popper-arrow-shadow-color'),
- arrowSize: i('--popper-arrow-size', '8px'),
- arrowSizeHalf: i('--popper-arrow-size-half'),
- arrowBg: i('--popper-arrow-bg'),
- transformOrigin: i('--popper-transform-origin'),
- arrowOffset: i('--popper-arrow-offset'),
+ var o = (e, t) => ({ var: e, varRef: t ? 'var(' + e + ', ' + t + ')' : 'var(' + e + ')' }),
+ i = {
+ arrowShadowColor: o('--popper-arrow-shadow-color'),
+ arrowSize: o('--popper-arrow-size', '8px'),
+ arrowSizeHalf: o('--popper-arrow-size-half'),
+ arrowBg: o('--popper-arrow-bg'),
+ transformOrigin: o('--popper-transform-origin'),
+ arrowOffset: o('--popper-arrow-offset'),
}
function a(e) {
return e.includes('top')
@@ -4358,27 +10658,27 @@
'right-end': 'left bottom',
},
u = (e) => s[e],
- l = { scroll: !0, resize: !0 }
- function c(e) {
+ c = { scroll: !0, resize: !0 }
+ function l(e) {
return 'object' === typeof e
- ? { enabled: !0, options: r({}, l, e) }
- : { enabled: e, options: l }
+ ? { enabled: !0, options: r({}, c, e) }
+ : { enabled: e, options: c }
}
},
- 7273: function (e, t, n) {
+ 67273: function (e, t, n) {
'use strict'
n.d(t, {
h: function () {
return b
},
})
- var r = n(7294),
- i = n(7581)
- function o() {
+ var r = n(67294),
+ o = n(77581)
+ function i() {
var e = r.useRef(!1),
[t, n] = r.useState(0)
return (
- (0, i.z)(() => {
+ (0, o.z)(() => {
e.current = !0
}),
r.useCallback(() => {
@@ -4386,12 +10686,12 @@
}, [t])
)
}
- var a = n(8327),
- s = n(4461),
- u = n(3808),
- l = n(8500),
- c = n(3935),
- d = n(4288)
+ var a = n(68327),
+ s = n(84461),
+ u = n(73808),
+ c = n(28500),
+ l = n(73935),
+ d = n(34288)
function f() {
return (f =
Object.assign ||
@@ -4403,7 +10703,7 @@
return e
}).apply(this, arguments)
}
- var [h, p] = (0, l.k)({ strict: !1, name: 'PortalContext' }),
+ var [h, p] = (0, c.k)({ strict: !1, name: 'PortalContext' }),
v = 'chakra-portal',
m = (e) =>
r.createElement(
@@ -4416,15 +10716,15 @@
),
g = (e) => {
var { appendToParentPortal: t, children: n } = e,
- i = r.useRef(null),
+ o = r.useRef(null),
s = r.useRef(null),
- u = o(),
- l = p(),
+ u = i(),
+ c = p(),
f = (0, d.L)()
;(0, a.G)(() => {
- if (i.current) {
- var e = i.current.ownerDocument,
- n = t && null != l ? l : e.body
+ if (o.current) {
+ var e = o.current.ownerDocument,
+ n = t && null != c ? c : e.body
if (n) {
;(s.current = e.createElement('div')),
(s.current.className = v),
@@ -4442,32 +10742,32 @@
? r.createElement(m, { zIndex: null == f ? void 0 : f.zIndex }, n)
: n
return s.current
- ? (0, c.createPortal)(r.createElement(h, { value: s.current }, g), s.current)
- : r.createElement('span', { ref: i })
+ ? (0, l.createPortal)(r.createElement(h, { value: s.current }, g), s.current)
+ : r.createElement('span', { ref: o })
},
y = (e) => {
- var { children: t, containerRef: n, appendToParentPortal: i } = e,
+ var { children: t, containerRef: n, appendToParentPortal: o } = e,
u = n.current,
- l = null != u ? u : s.jU ? document.body : void 0,
+ c = null != u ? u : s.jU ? document.body : void 0,
d = r.useMemo(() => {
var e = null == u ? void 0 : u.ownerDocument.createElement('div')
return e && (e.className = v), e
}, [u]),
- f = o()
+ f = i()
return (
(0, a.G)(() => {
f()
}, []),
(0, a.G)(() => {
- if (d && l)
+ if (d && c)
return (
- l.appendChild(d),
+ c.appendChild(d),
() => {
- l.removeChild(d)
+ c.removeChild(d)
}
)
- }, [d, l]),
- l && d ? (0, c.createPortal)(r.createElement(h, { value: i ? d : null }, t), d) : null
+ }, [d, c]),
+ c && d ? (0, l.createPortal)(r.createElement(h, { value: o ? d : null }, t), d) : null
)
}
function b(e) {
@@ -4476,10 +10776,10 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, ['containerRef'])
return t ? r.createElement(y, f({ containerRef: t }, n)) : r.createElement(g, n)
}
@@ -4488,27 +10788,167 @@
(b.selector = '.chakra-portal'),
u.Ts && (b.displayName = 'Portal')
},
- 4255: function (e, t, n) {
+ 60418: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.getValidChildren = function (e) {
+ return r.Children.toArray(e).filter(function (e) {
+ return r.isValidElement(e)
+ })
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 40805: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.createContext = function (e) {
+ void 0 === e && (e = {})
+ var t = e,
+ n = t.strict,
+ o = void 0 === n || n,
+ i = t.errorMessage,
+ a =
+ void 0 === i
+ ? 'useContext: `context` is undefined. Seems you forgot to wrap component within the Provider'
+ : i,
+ s = t.name,
+ u = r.createContext(void 0)
+ return (
+ (u.displayName = s),
+ [
+ u.Provider,
+ function e() {
+ var t = r.useContext(u)
+ if (!t && o) {
+ var n = new Error(a)
+ throw (
+ ((n.name = 'ContextError'),
+ null == Error.captureStackTrace || Error.captureStackTrace(n, e),
+ n)
+ )
+ }
+ return t
+ },
+ u,
+ ]
+ )
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ },
+ 19277: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(73702)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(40805)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(47412)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ var a = n(60418)
+ Object.keys(a).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === a[e]) || (t[e] = a[e]))
+ })
+ },
+ 73702: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.assignRef = o),
+ (t.mergeRefs = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return function (e) {
+ t.forEach(function (t) {
+ return o(t, e)
+ })
+ }
+ })
+ var r = n(66751)
+ function o(e, t) {
+ if (null != e)
+ if ((0, r.isFunction)(e)) e(t)
+ else
+ try {
+ e.current = t
+ } catch (n) {
+ throw new Error("Cannot assign value '" + t + "' to ref '" + e + "'")
+ }
+ }
+ },
+ 47412: function () {},
+ 24255: function (e, t, n) {
'use strict'
n.d(t, {
W: function () {
- return i
+ return o
},
})
- var r = n(7294)
- function i(e) {
+ var r = n(67294)
+ function o(e) {
return r.Children.toArray(e).filter((e) => r.isValidElement(e))
}
},
- 2947: function (e, t, n) {
+ 72947: function (e, t, n) {
'use strict'
n.d(t, {
l: function () {
- return o
+ return i
},
})
- var r = n(3808)
- function i(e, t) {
+ var r = n(73808)
+ function o(e, t) {
if (null != e)
if ((0, r.mf)(e)) e(t)
else
@@ -4518,50 +10958,50 @@
throw new Error("Cannot assign value '" + t + "' to ref '" + e + "'")
}
}
- function o() {
+ function i() {
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
return (e) => {
- t.forEach((t) => i(t, e))
+ t.forEach((t) => o(t, e))
}
}
},
- 980: function (e, t, n) {
+ 40980: function (e, t, n) {
'use strict'
n.d(t, {
useTheme: function () {
- return i.useTheme
+ return o.useTheme
},
})
- n(2300)
- var r = n(4806)
+ n(62300)
+ var r = n(84806)
n.o(r, 'useTheme') &&
n.d(t, {
useTheme: function () {
return r.useTheme
},
})
- var i = n(1180)
+ var o = n(11180)
},
- 6049: function (e, t, n) {
+ 46049: function (e, t, n) {
'use strict'
n.d(t, {
Ph: function () {
- return R
+ return I
},
})
- var r = n(4461),
- i = n(658),
- o = n(4577),
- a = n(639),
- s = n(63),
+ var r = n(84461),
+ o = n(80658),
+ i = n(94577),
+ a = n(90639),
+ s = n(90063),
u = n(2326),
- l = n(5284),
- c = n(9676),
- d = n(3782),
- f = n(3808),
- h = n(8500),
- p = n(2947),
- v = n(7294)
+ c = n(55284),
+ l = n(29676),
+ d = n(89384),
+ f = n(73808),
+ h = n(28500),
+ p = n(72947),
+ v = n(67294)
function m() {
return (m =
Object.assign ||
@@ -4577,26 +11017,26 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
}
var [y, b] = (0, h.k)({ strict: !1, name: 'FormControlContext' })
var w = (0, s.G)((e, t) => {
var n = (0, u.j)('Form', e),
s = (function (e) {
- var { id: t, isRequired: n, isInvalid: s, isDisabled: u, isReadOnly: l } = e,
- c = g(e, ['id', 'isRequired', 'isInvalid', 'isDisabled', 'isReadOnly']),
- d = (0, o.Me)(),
+ var { id: t, isRequired: n, isInvalid: s, isDisabled: u, isReadOnly: c } = e,
+ l = g(e, ['id', 'isRequired', 'isInvalid', 'isDisabled', 'isReadOnly']),
+ d = (0, i.Me)(),
f = t || 'field-' + d,
h = f + '-label',
y = f + '-feedback',
b = f + '-helptext',
- [w, x] = v.useState(!1),
- [E, k] = v.useState(!1),
- [_, T] = (0, a.k)(),
- O = v.useCallback(
+ [w, _] = v.useState(!1),
+ [x, k] = v.useState(!1),
+ [E, O] = (0, a.k)(),
+ T = v.useCallback(
function (e, t) {
return (
void 0 === e && (e = {}),
@@ -4612,31 +11052,31 @@
),
C = v.useCallback(
function (e, t) {
- var n, i
+ var n, o
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
m({}, e, {
ref: t,
- 'data-focus': (0, r.PB)(_),
+ 'data-focus': (0, r.PB)(E),
'data-disabled': (0, r.PB)(u),
'data-invalid': (0, r.PB)(s),
- 'data-readonly': (0, r.PB)(l),
+ 'data-readonly': (0, r.PB)(c),
id: null != (n = e.id) ? n : h,
- htmlFor: null != (i = e.htmlFor) ? i : f,
+ htmlFor: null != (o = e.htmlFor) ? o : f,
})
)
},
- [f, u, _, s, l, h],
+ [f, u, E, s, c, h],
),
- S = v.useCallback(
+ M = v.useCallback(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
m({ id: y }, e, {
ref: (0, p.l)(t, (e) => {
- e && x(!0)
+ e && _(!0)
}),
'aria-live': 'polite',
})
@@ -4644,15 +11084,15 @@
},
[y],
),
- A = v.useCallback(
+ S = v.useCallback(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- m({}, e, c, { ref: t, role: 'group' })
+ m({}, e, l, { ref: t, role: 'group' })
)
},
- [c],
+ [l],
),
P = v.useCallback(function (e, t) {
return (
@@ -4666,33 +11106,33 @@
})
)
}, []),
- M = v.useCallback(() => {
- ;(0, i.A4)(T.on)
- }, [T])
+ j = v.useCallback(() => {
+ ;(0, o.A4)(O.on)
+ }, [O])
return {
isRequired: !!n,
isInvalid: !!s,
- isReadOnly: !!l,
+ isReadOnly: !!c,
isDisabled: !!u,
- isFocused: !!_,
- onFocus: M,
- onBlur: T.off,
+ isFocused: !!E,
+ onFocus: j,
+ onBlur: O.off,
hasFeedbackText: w,
- setHasFeedbackText: x,
- hasHelpText: E,
+ setHasFeedbackText: _,
+ hasHelpText: x,
setHasHelpText: k,
id: f,
labelId: h,
feedbackId: y,
helpTextId: b,
- htmlProps: c,
- getHelpTextProps: O,
- getErrorMessageProps: S,
- getRootProps: A,
+ htmlProps: l,
+ getHelpTextProps: T,
+ getErrorMessageProps: M,
+ getRootProps: S,
getLabelProps: C,
getRequiredIndicatorProps: P,
}
- })((0, l.Lr)(e)),
+ })((0, c.Lr)(e)),
{ getRootProps: f } = s,
h = g(s, ['getRootProps', 'htmlProps']),
b = (0, r.cx)('chakra-form-control', e.className),
@@ -4701,7 +11141,7 @@
y,
{ value: w },
v.createElement(
- c.Fo,
+ l.Fo,
{ value: n },
v.createElement(
d.m$.div,
@@ -4711,20 +11151,20 @@
)
})
f.Ts && (w.displayName = 'FormControl')
- var x = (0, s.G)((e, t) => {
+ var _ = (0, s.G)((e, t) => {
var n = b(),
- i = (0, c.yK)(),
- o = (0, r.cx)('chakra-form__helper-text', e.className)
+ o = (0, l.yK)(),
+ i = (0, r.cx)('chakra-form__helper-text', e.className)
return v.createElement(
d.m$.div,
m({}, null == n ? void 0 : n.getHelpTextProps(e, t), {
- __css: i.helperText,
- className: o,
+ __css: o.helperText,
+ className: i,
}),
)
})
- function E() {
- return (E =
+ function x() {
+ return (x =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -4738,23 +11178,23 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
}
- function _(e) {
+ function E(e) {
var t = (function (e) {
var t,
n,
r,
- o = b(),
+ i = b(),
{
id: a,
disabled: s,
readOnly: u,
- required: l,
- isRequired: c,
+ required: c,
+ isRequired: l,
isInvalid: d,
isReadOnly: f,
isDisabled: h,
@@ -4774,36 +11214,36 @@
'onBlur',
]),
g = []
- null != o && o.hasFeedbackText && null != o && o.isInvalid && g.push(o.feedbackId)
- null != o && o.hasHelpText && g.push(o.helpTextId)
- return E({}, m, {
+ null != i && i.hasFeedbackText && null != i && i.isInvalid && g.push(i.feedbackId)
+ null != i && i.hasHelpText && g.push(i.helpTextId)
+ return x({}, m, {
'aria-describedby': g.join(' ') || void 0,
- id: null != a ? a : null == o ? void 0 : o.id,
- isDisabled: null != (t = null != s ? s : h) ? t : null == o ? void 0 : o.isDisabled,
- isReadOnly: null != (n = null != u ? u : f) ? n : null == o ? void 0 : o.isReadOnly,
- isRequired: null != (r = null != l ? l : c) ? r : null == o ? void 0 : o.isRequired,
- isInvalid: null != d ? d : null == o ? void 0 : o.isInvalid,
- onFocus: (0, i.v0)(null == o ? void 0 : o.onFocus, p),
- onBlur: (0, i.v0)(null == o ? void 0 : o.onBlur, v),
+ id: null != a ? a : null == i ? void 0 : i.id,
+ isDisabled: null != (t = null != s ? s : h) ? t : null == i ? void 0 : i.isDisabled,
+ isReadOnly: null != (n = null != u ? u : f) ? n : null == i ? void 0 : i.isReadOnly,
+ isRequired: null != (r = null != c ? c : l) ? r : null == i ? void 0 : i.isRequired,
+ isInvalid: null != d ? d : null == i ? void 0 : i.isInvalid,
+ onFocus: (0, o.v0)(null == i ? void 0 : i.onFocus, p),
+ onBlur: (0, o.v0)(null == i ? void 0 : i.onBlur, v),
})
})(e),
- { isDisabled: n, isInvalid: o, isReadOnly: a, isRequired: s } = t
- return E({}, k(t, ['isDisabled', 'isInvalid', 'isReadOnly', 'isRequired']), {
+ { isDisabled: n, isInvalid: i, isReadOnly: a, isRequired: s } = t
+ return x({}, k(t, ['isDisabled', 'isInvalid', 'isReadOnly', 'isRequired']), {
disabled: n,
readOnly: a,
required: s,
- 'aria-invalid': (0, r.Qm)(o),
+ 'aria-invalid': (0, r.Qm)(i),
'aria-required': (0, r.Qm)(s),
'aria-readonly': (0, r.Qm)(a),
})
}
- f.Ts && (x.displayName = 'FormHelperText')
- var T = n(9421),
- O = n(5505),
- C = n(8554),
- S = n.n(C)
- function A() {
- return (A =
+ f.Ts && (_.displayName = 'FormHelperText')
+ var O = n(9421),
+ T = n(4651),
+ C = n(38554),
+ M = n.n(C)
+ function S() {
+ return (S =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -4817,31 +11257,31 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
}
- var M = (0, s.G)((e, t) => {
- var { children: n, placeholder: i, className: o } = e,
- a = _(P(e, ['children', 'placeholder', 'className']))
+ var j = (0, s.G)((e, t) => {
+ var { children: n, placeholder: o, className: i } = e,
+ a = E(P(e, ['children', 'placeholder', 'className']))
return v.createElement(
d.m$.select,
- A({}, a, { ref: t, className: (0, r.cx)('chakra-select', o) }),
- i && v.createElement('option', { value: '' }, i),
+ S({}, a, { ref: t, className: (0, r.cx)('chakra-select', i) }),
+ o && v.createElement('option', { value: '' }, o),
n,
)
})
- f.Ts && (M.displayName = 'SelectField')
- var R = (0, s.G)((e, t) => {
+ f.Ts && (j.displayName = 'SelectField')
+ var I = (0, s.G)((e, t) => {
var n = (0, u.j)('Select', e),
- r = (0, l.Lr)(e),
+ r = (0, c.Lr)(e),
{
- rootProps: i,
- placeholder: o,
+ rootProps: o,
+ placeholder: i,
icon: a,
color: s,
- height: c,
+ height: l,
h: f,
minH: h,
minHeight: p,
@@ -4861,22 +11301,22 @@
'iconSize',
'isFullWidth',
]),
- [b, w] = (0, O.Vl)(y, T.layoutPropNames),
- x = { width: '100%', height: 'fit-content', position: 'relative', color: s },
- E = S()({}, n.field, { paddingEnd: '2rem', _focus: { zIndex: 'unset' } })
+ [b, w] = (0, T.Vl)(y, O.layoutPropNames),
+ _ = { width: '100%', height: 'fit-content', position: 'relative', color: s },
+ x = M()({}, n.field, { paddingEnd: '2rem', _focus: { zIndex: 'unset' } })
return v.createElement(
d.m$.div,
- A({ className: 'chakra-select__wrapper', __css: x }, b, i),
+ S({ className: 'chakra-select__wrapper', __css: _ }, b, o),
v.createElement(
- M,
- A({ ref: t, height: null != f ? f : c, minH: null != h ? h : p, placeholder: o }, w, {
- __css: E,
+ j,
+ S({ ref: t, height: null != f ? f : l, minH: null != h ? h : p, placeholder: i }, w, {
+ __css: x,
}),
e.children,
),
v.createElement(
- L,
- A(
+ D,
+ S(
{ 'data-disabled': e.isDisabled },
(m || s) && { color: m || s },
{ __css: n.icon },
@@ -4886,17 +11326,17 @@
),
)
})
- f.Ts && (R.displayName = 'Select')
- var j = (e) =>
+ f.Ts && (I.displayName = 'Select')
+ var A = (e) =>
v.createElement(
'svg',
- A({ viewBox: '0 0 24 24' }, e),
+ S({ viewBox: '0 0 24 24' }, e),
v.createElement('path', {
fill: 'currentColor',
d: 'M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z',
}),
),
- D = (0, d.m$)('div', {
+ R = (0, d.m$)('div', {
baseStyle: {
position: 'absolute',
display: 'inline-flex',
@@ -4907,8 +11347,8 @@
transform: 'translateY(-50%)',
},
}),
- L = (e) => {
- var { children: t = v.createElement(j, null) } = e,
+ D = (e) => {
+ var { children: t = v.createElement(A, null) } = e,
n = P(e, ['children']),
r = v.cloneElement(t, {
role: 'presentation',
@@ -4918,154 +11358,65 @@
style: { width: '1em', height: '1em', color: 'currentColor' },
})
return v.createElement(
- D,
- A({}, n, { className: 'chakra-select__icon-wrapper' }),
+ R,
+ S({}, n, { className: 'chakra-select__icon-wrapper' }),
v.isValidElement(t) ? r : null,
)
}
- f.Ts && (L.displayName = 'SelectIcon')
+ f.Ts && (D.displayName = 'SelectIcon')
},
- 3014: function (e, t, n) {
+ 95818: function (e, t, n) {
'use strict'
n.d(t, {
iR: function () {
- return le
+ return ne
},
Ms: function () {
- return fe
+ return ie
},
gs: function () {
- return ce
+ return re
},
Uj: function () {
- return de
+ return oe
},
})
- var r = n(63),
- i = n(2326),
- o = n(5284),
- a = n(9676),
- s = n(3782),
- u = n(3808),
- l = n(4461),
- c = n(8500),
- d = n(7294),
- f = n(762),
- h = n(1034),
- p = n(639)
- var v = n(4577),
- m = 'Invariant failed'
- var g = function (e, t) {
- if (!e) throw new Error(m)
- },
- y = function (e) {
- var t = e.top,
- n = e.right,
- r = e.bottom,
- i = e.left
- return {
- top: t,
- right: n,
- bottom: r,
- left: i,
- width: n - i,
- height: r - t,
- x: i,
- y: t,
- center: { x: (n + i) / 2, y: (r + t) / 2 },
- }
- },
- b = function (e, t) {
- return {
- top: e.top + t.top,
- left: e.left + t.left,
- bottom: e.bottom - t.bottom,
- right: e.right - t.right,
- }
- },
- w = { top: 0, right: 0, bottom: 0, left: 0 },
- x = function (e) {
- var t,
- n,
- r = e.borderBox,
- i = e.margin,
- o = void 0 === i ? w : i,
- a = e.border,
- s = void 0 === a ? w : a,
- u = e.padding,
- l = void 0 === u ? w : u,
- c = y(
- ((n = o),
- {
- top: (t = r).top - n.top,
- left: t.left - n.left,
- bottom: t.bottom + n.bottom,
- right: t.right + n.right,
- }),
- ),
- d = y(b(r, s)),
- f = y(b(d, l))
- return {
- marginBox: c,
- borderBox: y(r),
- paddingBox: d,
- contentBox: f,
- margin: o,
- border: s,
- padding: l,
- }
- },
- E = function (e) {
- var t = e.slice(0, -2)
- if ('px' !== e.slice(-2)) return 0
- var n = Number(t)
- return isNaN(n) && g(!1), n
- },
- k = function (e) {
- return (function (e, t) {
- var n = {
- top: E(t.marginTop),
- right: E(t.marginRight),
- bottom: E(t.marginBottom),
- left: E(t.marginLeft),
- },
- r = {
- top: E(t.paddingTop),
- right: E(t.paddingRight),
- bottom: E(t.paddingBottom),
- left: E(t.paddingLeft),
- },
- i = {
- top: E(t.borderTopWidth),
- right: E(t.borderRightWidth),
- bottom: E(t.borderBottomWidth),
- left: E(t.borderLeftWidth),
- }
- return x({ borderBox: e, margin: n, padding: r, border: i })
- })(e.getBoundingClientRect(), window.getComputedStyle(e))
- },
- _ = n(8327)
- var T = n(2653),
- O = n(9839)
- function C(e) {
+ var r = n(90063),
+ o = n(2326),
+ i = n(55284),
+ a = n(29676),
+ s = n(89384),
+ u = n(73808),
+ c = n(84461),
+ l = n(28500),
+ d = n(67294),
+ f = n(10762),
+ h = n(51034),
+ p = n(90639)
+ var v = n(94577),
+ m = n(78244),
+ g = n(68327)
+ var y = n(22653),
+ b = n(9839)
+ function w(e) {
return !!e.touches
}
- var S = { pageX: 0, pageY: 0 }
- function A(e, t) {
+ var _ = { pageX: 0, pageY: 0 }
+ function x(e, t) {
void 0 === t && (t = 'page')
- var n = e.touches[0] || e.changedTouches[0] || S
+ var n = e.touches[0] || e.changedTouches[0] || _
return { x: n[t + 'X'], y: n[t + 'Y'] }
}
- function P(e, t) {
+ function k(e, t) {
return void 0 === t && (t = 'page'), { x: e[t + 'X'], y: e[t + 'Y'] }
}
- function M(e, t) {
- return void 0 === t && (t = 'page'), { point: C(e) ? A(e, t) : P(e, t) }
+ function E(e, t) {
+ return void 0 === t && (t = 'page'), { point: w(e) ? x(e, t) : k(e, t) }
}
- var R = function (e, t) {
+ var O = function (e, t) {
void 0 === t && (t = !1)
var n,
- r = (t) => e(t, M(t))
+ r = (t) => e(t, E(t))
return t
? ((n = r),
(e) => {
@@ -5074,7 +11425,7 @@
})
: r
},
- j = {
+ T = {
pointerdown: 'mousedown',
pointermove: 'mousemove',
pointerup: 'mouseup',
@@ -5084,27 +11435,27 @@
pointerenter: 'mouseenter',
pointerleave: 'mouseleave',
},
- D = {
+ C = {
pointerdown: 'touchstart',
pointermove: 'touchmove',
pointerup: 'touchend',
pointercancel: 'touchcancel',
}
- function L(e) {
- return l.jU && null === window.onpointerdown
+ function M(e) {
+ return c.jU && null === window.onpointerdown
? e
- : l.jU && null === window.ontouchstart
- ? D[e]
- : l.jU && null === window.onmousedown
- ? j[e]
+ : c.jU && null === window.ontouchstart
+ ? C[e]
+ : c.jU && null === window.onmousedown
+ ? T[e]
: e
}
- function N(e, t, n, r) {
- return (0, l.EV)(e, L(t), R(n, 'pointerdown' === t), r)
+ function S(e, t, n, r) {
+ return (0, c.EV)(e, M(t), O(n, 'pointerdown' === t), r)
}
- var I = n(658)
- function z() {
- return (z =
+ var P = n(80658)
+ function j() {
+ return (j =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -5114,7 +11465,7 @@
return e
}).apply(this, arguments)
}
- function H(e, t, n) {
+ function I(e, t, n) {
return (
t in e
? Object.defineProperty(e, t, {
@@ -5127,31 +11478,31 @@
e
)
}
- class B {
+ class A {
constructor(e, t, n) {
if (
- (H(this, 'history', []),
- H(this, 'startEvent', null),
- H(this, 'lastEvent', null),
- H(this, 'lastEventInfo', null),
- H(this, 'handlers', {}),
- H(this, 'removeListeners', I.ZT),
- H(this, 'threshold', 3),
- H(this, 'updatePoint', () => {
+ (I(this, 'history', []),
+ I(this, 'startEvent', null),
+ I(this, 'lastEvent', null),
+ I(this, 'lastEventInfo', null),
+ I(this, 'handlers', {}),
+ I(this, 'removeListeners', P.ZT),
+ I(this, 'threshold', 3),
+ I(this, 'updatePoint', () => {
if (this.lastEvent && this.lastEventInfo) {
- var e = G(this.lastEventInfo, this.history),
+ var e = N(this.lastEventInfo, this.history),
t = null !== this.startEvent,
- n = (0, I.TE)(e.offset, { x: 0, y: 0 }) >= this.threshold
+ n = (0, P.TE)(e.offset, { x: 0, y: 0 }) >= this.threshold
if (t || n) {
- var { timestamp: r } = (0, O.$B)()
- this.history.push(z({}, e.point, { timestamp: r }))
- var { onStart: i, onMove: o } = this.handlers
- t || (null == i || i(this.lastEvent, e), (this.startEvent = this.lastEvent)),
- null == o || o(this.lastEvent, e)
+ var { timestamp: r } = (0, b.$B)()
+ this.history.push(j({}, e.point, { timestamp: r }))
+ var { onStart: o, onMove: i } = this.handlers
+ t || (null == o || o(this.lastEvent, e), (this.startEvent = this.lastEvent)),
+ null == i || i(this.lastEvent, e)
}
}
}),
- H(this, 'onPointerMove', (e, t) => {
+ I(this, 'onPointerMove', (e, t) => {
;(this.lastEvent = e),
(this.lastEventInfo = t),
(function (e) {
@@ -5160,26 +11511,26 @@
: e instanceof MouseEvent
})(e) && 0 === e.buttons
? this.onPointerUp(e, t)
- : O.ZP.update(this.updatePoint, !0)
+ : b.ZP.update(this.updatePoint, !0)
}),
- H(this, 'onPointerUp', (e, t) => {
- var n = G(t, this.history),
- { onEnd: r, onSessionEnd: i } = this.handlers
- null == i || i(e, n), this.end(), r && this.startEvent && (null == r || r(e, n))
+ I(this, 'onPointerUp', (e, t) => {
+ var n = N(t, this.history),
+ { onEnd: r, onSessionEnd: o } = this.handlers
+ null == o || o(e, n), this.end(), r && this.startEvent && (null == r || r(e, n))
}),
- !(C((r = e)) && r.touches.length > 1))
+ !(w((r = e)) && r.touches.length > 1))
) {
var r
;(this.handlers = t), n && (this.threshold = n), e.stopPropagation(), e.preventDefault()
- var i = M(e),
- { timestamp: o } = (0, O.$B)()
- this.history = [z({}, i.point, { timestamp: o })]
+ var o = E(e),
+ { timestamp: i } = (0, b.$B)()
+ this.history = [j({}, o.point, { timestamp: i })]
var { onSessionStart: a } = t
- null == a || a(e, G(i, this.history)),
- (this.removeListeners = (0, I.zG)(
- N(window, 'pointermove', this.onPointerMove),
- N(window, 'pointerup', this.onPointerUp),
- N(window, 'pointercancel', this.onPointerUp),
+ null == a || a(e, N(o, this.history)),
+ (this.removeListeners = (0, P.zG)(
+ S(window, 'pointermove', this.onPointerMove),
+ S(window, 'pointerup', this.onPointerUp),
+ S(window, 'pointercancel', this.onPointerUp),
))
}
}
@@ -5188,57 +11539,57 @@
}
end() {
var e
- null == (e = this.removeListeners) || e.call(this), O.qY.update(this.updatePoint)
+ null == (e = this.removeListeners) || e.call(this), b.qY.update(this.updatePoint)
}
}
- function F(e, t) {
+ function R(e, t) {
return { x: e.x - t.x, y: e.y - t.y }
}
- function V(e) {
+ function D(e) {
return e[0]
}
- function U(e) {
+ function L(e) {
return e[e.length - 1]
}
- function G(e, t) {
+ function N(e, t) {
return {
point: e.point,
- delta: F(e.point, U(t)),
- offset: F(e.point, V(t)),
- velocity: q(t, 0.1),
+ delta: R(e.point, L(t)),
+ offset: R(e.point, D(t)),
+ velocity: z(t, 0.1),
}
}
- function q(e, t) {
+ function z(e, t) {
if (e.length < 2) return { x: 0, y: 0 }
for (
var n = e.length - 1,
r = null,
- i = (function (e) {
+ o = (function (e) {
return e[e.length - 1]
})(e);
- n >= 0 && ((r = e[n]), !(i.timestamp - r.timestamp > 1e3 * t));
+ n >= 0 && ((r = e[n]), !(o.timestamp - r.timestamp > 1e3 * t));
)
n--
if (!r) return { x: 0, y: 0 }
- var o = (i.timestamp - r.timestamp) / 1e3
- if (0 === o) return { x: 0, y: 0 }
- var a = { x: (i.x - r.x) / o, y: (i.y - r.y) / o }
+ var i = (o.timestamp - r.timestamp) / 1e3
+ if (0 === i) return { x: 0, y: 0 }
+ var a = { x: (o.x - r.x) / i, y: (o.y - r.y) / i }
return a.x === 1 / 0 && (a.x = 0), a.y === 1 / 0 && (a.y = 0), a
}
- var W = n(4941)
- var K = n(7581)
- function Z(e, t) {
+ var B = n(34941)
+ var H = n(77581)
+ function F(e, t) {
var n,
r,
- i,
o,
- { onPan: a, onPanStart: s, onPanEnd: u, onPanSessionStart: l, onPanSessionEnd: c } = t,
- f = Boolean(a || s || u || l || c),
+ i,
+ { onPan: a, onPanStart: s, onPanEnd: u, onPanSessionStart: c, onPanSessionEnd: l } = t,
+ f = Boolean(a || s || u || c || l),
h = (0, d.useRef)(null),
p = {
- onSessionStart: l,
- onSessionEnd: c,
+ onSessionStart: c,
+ onSessionEnd: l,
onStart: s,
onMove: a,
onEnd(e, t) {
@@ -5251,20 +11602,20 @@
}),
(n = () => e.current),
(r = 'pointerdown'),
- (i = f
+ (o = f
? function (e) {
- h.current = new B(e, p)
+ h.current = new A(e, p)
}
- : I.ZT),
- (0, W.O)(L(r), R(i, 'pointerdown' === r), n, o),
- (0, K.z)(() => {
+ : P.ZT),
+ (0, B.O)(M(r), O(o, 'pointerdown' === r), n, i),
+ (0, H.z)(() => {
var e
null == (e = h.current) || e.end(), (h.current = null)
})
}
- var $ = n(2947)
+ var V = n(72947)
Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER
- function X(e, t) {
+ function W(e, t) {
var n = (function (e) {
var t = parseFloat(e)
return (0, u.iy)(t) ? 0 : t
@@ -5272,11 +11623,11 @@
r = 10 ** (null != t ? t : 10)
return (n = Math.round(n * r) / r), t ? n.toFixed(t) : n.toString()
}
- function Y(e, t, n) {
+ function U(e, t, n) {
return (100 * (e - t)) / (n - t)
}
- function Q(e, t, n) {
- return X(
+ function G(e, t, n) {
+ return W(
Math.round((e - t) / n) * n + t,
(function (e) {
if (!Number.isFinite(e)) return 0
@@ -5285,15 +11636,15 @@
})(n),
)
}
- function J(e, t, n) {
+ function q(e, t, n) {
return null == e
? e
- : ((0, I.ZK)({ condition: n < t, message: 'clamp: max cannot be less than min' }),
+ : ((0, P.ZK)({ condition: n < t, message: 'clamp: max cannot be less than min' }),
Math.min(Math.max(e, t), n))
}
- var ee = n(7248)
- function te() {
- return (te =
+ var K = n(47248)
+ function Z() {
+ return (Z =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -5303,12 +11654,12 @@
return e
}).apply(this, arguments)
}
- function ne(e) {
+ function X(e) {
var { orientation: t, vertical: n, horizontal: r } = e
return 'vertical' === t ? n : r
}
- function re() {
- return (re =
+ function $() {
+ return ($ =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -5318,37 +11669,37 @@
return e
}).apply(this, arguments)
}
- function ie(e) {
+ function Y(e) {
var t,
{
min: n = 0,
max: r = 100,
- onChange: i,
- value: o,
+ onChange: o,
+ value: i,
defaultValue: a,
isReversed: s,
orientation: u = 'horizontal',
- id: c,
- isDisabled: m,
- isReadOnly: g,
- onChangeStart: y,
- onChangeEnd: b,
- step: w = 1,
- getAriaValueText: x,
- 'aria-valuetext': E,
- 'aria-label': O,
+ id: l,
+ isDisabled: b,
+ isReadOnly: w,
+ onChangeStart: _,
+ onChangeEnd: x,
+ step: k = 1,
+ getAriaValueText: E,
+ 'aria-valuetext': O,
+ 'aria-label': T,
'aria-labelledby': C,
- name: S,
- focusThumbOnChange: A = !0,
+ name: M,
+ focusThumbOnChange: S = !0,
} = e,
- P = (function (e, t) {
+ j = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, [
'min',
'max',
@@ -5370,12 +11721,12 @@
'name',
'focusThumbOnChange',
]),
- M = (0, f.W)(y),
- R = (0, f.W)(b),
- j = (0, f.W)(x),
- [D, L] = (0, h.T)({ value: o, defaultValue: null != a ? a : oe(n, r), onChange: i }),
+ I = (0, f.W)(_),
+ A = (0, f.W)(x),
+ R = (0, f.W)(E),
+ [D, L] = (0, h.T)({ value: i, defaultValue: null != a ? a : Q(n, r), onChange: o }),
[N, z] = (0, p.k)(),
- H = (function (e) {
+ B = (function (e) {
var t = (0, d.useRef)()
return (
(0, d.useEffect)(() => {
@@ -5384,59 +11735,59 @@
t.current
)
})(N),
- [B, F] = (0, p.k)(),
- V = (0, d.useRef)(null),
- U = !(m || g),
- G = J(D, n, r),
- q = (function (e) {
+ [H, W] = (0, p.k)(),
+ Y = (0, d.useRef)(null),
+ J = !(b || w),
+ ee = q(D, n, r),
+ te = (function (e) {
var t = d.useRef(null)
return (t.current = e), t
- })(G),
- W = (0, d.useRef)(q.current),
- K = Y(s ? r - G + n : G, n, r),
- X = 'vertical' === u,
+ })(ee),
+ ne = (0, d.useRef)(te.current),
+ re = U(s ? r - ee + n : ee, n, r),
+ oe = 'vertical' === u,
ie = (0, d.useRef)(null),
ae = (0, d.useRef)(null),
se = (0, d.useRef)(null),
- [ue, le] = (0, v.ZS)(c, 'slider-thumb', 'slider-track'),
- ce = (0, d.useCallback)(
+ [ue, ce] = (0, v.ZS)(l, 'slider-thumb', 'slider-track'),
+ le = (0, d.useCallback)(
(e) => {
- var t, i
+ var t, o
if (ie.current) {
- V.current = 'pointer'
- var o = k(ie.current).borderBox,
+ Y.current = 'pointer'
+ var i = (0, m.getBox)(ie.current).borderBox,
{ clientX: a, clientY: u } =
- null != (t = null == (i = e.touches) ? void 0 : i[0]) ? t : e,
- l = (X ? o.bottom - u : a - o.left) / (X ? o.height : o.width)
- s && (l = 1 - l)
- var c = (function (e, t, n) {
+ null != (t = null == (o = e.touches) ? void 0 : o[0]) ? t : e,
+ c = (oe ? i.bottom - u : a - i.left) / (oe ? i.height : i.width)
+ s && (c = 1 - c)
+ var l = (function (e, t, n) {
return (n - t) * e + t
- })(l, n, r)
- return w && (c = parseFloat(Q(c, n, w))), (c = J(c, n, r))
+ })(c, n, r)
+ return k && (l = parseFloat(G(l, n, k))), (l = q(l, n, r))
}
},
- [X, s, r, n, w],
+ [oe, s, r, n, k],
),
de = (r - n) / 10,
- fe = w || (r - n) / 100,
+ fe = k || (r - n) / 100,
he = (0, d.useCallback)(
(e) => {
- U && ((e = J((e = parseFloat(Q(e, n, fe))), n, r)), L(e))
+ J && ((e = q((e = parseFloat(G(e, n, fe))), n, r)), L(e))
},
- [fe, r, n, L, U],
+ [fe, r, n, L, J],
),
pe = (0, d.useMemo)(
() => ({
stepUp: function (e) {
- void 0 === e && (e = fe), he(s ? G - e : G + e)
+ void 0 === e && (e = fe), he(s ? ee - e : ee + e)
},
stepDown: function (e) {
- void 0 === e && (e = fe), he(s ? G + e : G - e)
+ void 0 === e && (e = fe), he(s ? ee + e : ee - e)
},
reset: () => he(a || 0),
stepTo: (e) => he(e),
}),
- [he, s, G, fe, a],
+ [he, s, ee, fe, a],
),
ve = (0, d.useCallback)(
(e) => {
@@ -5449,34 +11800,34 @@
PageDown: () => pe.stepDown(de),
Home: () => he(n),
End: () => he(r),
- }[(0, l.uh)(e)]
- t && (e.preventDefault(), e.stopPropagation(), t(e), (V.current = 'keyboard'))
+ }[(0, c.uh)(e)]
+ t && (e.preventDefault(), e.stopPropagation(), t(e), (Y.current = 'keyboard'))
},
[pe, he, r, n, de],
),
- me = null != (t = null == j ? void 0 : j(G)) ? t : E,
+ me = null != (t = null == R ? void 0 : R(ee)) ? t : O,
ge = (function (e, t) {
var [n, r] = d.useState(null),
- i = d.useRef()
+ o = d.useRef()
return (
- (0, _.G)(() => {
+ (0, g.G)(() => {
if (e.current) {
var n = e.current
return (
- o(),
+ i(),
t &&
- (window.addEventListener('resize', o), window.addEventListener('scroll', o)),
+ (window.addEventListener('resize', i), window.addEventListener('scroll', i)),
() => {
t &&
- (window.removeEventListener('resize', o),
- window.removeEventListener('scroll', o)),
- i.current && cancelAnimationFrame(i.current)
+ (window.removeEventListener('resize', i),
+ window.removeEventListener('scroll', i)),
+ o.current && cancelAnimationFrame(o.current)
}
)
}
- function o() {
- i.current = requestAnimationFrame(() => {
- var e = k(n)
+ function i() {
+ o.current = requestAnimationFrame(() => {
+ var e = (0, m.getBox)(n)
r(e)
})
}
@@ -5488,13 +11839,13 @@
thumbStyle: ye,
rootStyle: be,
trackStyle: we,
- innerTrackStyle: xe,
+ innerTrackStyle: _e,
} = (0, d.useMemo)(() => {
var e,
t = null != (e = null == ge ? void 0 : ge.borderBox) ? e : { width: 0, height: 0 }
return (function (e) {
- var { orientation: t, trackPercent: n, thumbRect: r, isReversed: i } = e,
- o = te(
+ var { orientation: t, trackPercent: n, thumbRect: r, isReversed: o } = e,
+ i = Z(
{
position: 'absolute',
userSelect: 'none',
@@ -5503,13 +11854,13 @@
msUserSelect: 'none',
touchAction: 'none',
},
- ne({
+ X({
orientation: t,
vertical: { bottom: 'calc(' + n + '% - ' + r.height / 2 + 'px)' },
horizontal: { left: 'calc(' + n + '% - ' + r.width / 2 + 'px)' },
}),
),
- a = te(
+ a = Z(
{
position: 'relative',
touchAction: 'none',
@@ -5517,15 +11868,15 @@
userSelect: 'none',
outline: 0,
},
- ne({
+ X({
orientation: t,
vertical: { paddingLeft: r.width / 2, paddingRight: r.width / 2 },
horizontal: { paddingTop: r.height / 2, paddingBottom: r.height / 2 },
}),
),
- s = te(
+ s = Z(
{ position: 'absolute' },
- ne({
+ X({
orientation: t,
vertical: { left: '50%', transform: 'translateX(-50%)', height: '100%' },
horizontal: { top: '50%', transform: 'translateY(-50%)', width: '100%' },
@@ -5533,129 +11884,131 @@
)
return {
trackStyle: s,
- innerTrackStyle: te(
+ innerTrackStyle: Z(
{},
s,
- ne({
+ X({
orientation: t,
- vertical: i
+ vertical: o
? { height: 100 - n + '%', top: 0 }
: { height: n + '%', bottom: 0 },
- horizontal: i
+ horizontal: o
? { width: 100 - n + '%', right: 0 }
: { width: n + '%', left: 0 },
}),
),
rootStyle: a,
- thumbStyle: o,
- }
- })({ isReversed: s, orientation: u, thumbRect: t, trackPercent: K })
- }, [s, u, null == ge ? void 0 : ge.borderBox, K]),
- Ee = (0, d.useCallback)(() => {
- ae.current && A && setTimeout(() => (0, ee.T)(ae.current))
- }, [A])
- ;(0, T.r)(() => {
- Ee(), 'keyboard' === V.current && (null == b || b(q.current))
- }, [G, b])
+ thumbStyle: i,
+ }
+ })({ isReversed: s, orientation: u, thumbRect: t, trackPercent: re })
+ }, [s, u, null == ge ? void 0 : ge.borderBox, re]),
+ xe = (0, d.useCallback)(() => {
+ ae.current && S && setTimeout(() => (0, K.T)(ae.current))
+ }, [S])
+ ;(0, y.r)(() => {
+ xe(), 'keyboard' === Y.current && (null == x || x(te.current))
+ }, [ee, x])
var ke = (e) => {
- var t = ce(e)
- null != t && t !== q.current && L(t)
+ var t = le(e)
+ null != t && t !== te.current && L(t)
}
- Z(se, {
+ F(se, {
onPanSessionStart(e) {
- U && ke(e)
+ J && ke(e)
},
onPanSessionEnd() {
- U &&
- (H || W.current === q.current || (null == R || R(q.current), (W.current = q.current)))
+ J &&
+ (B ||
+ ne.current === te.current ||
+ (null == A || A(te.current), (ne.current = te.current)))
},
onPanStart() {
- U && (z.on(), null == M || M(q.current))
+ J && (z.on(), null == I || I(te.current))
},
onPan(e) {
- U && ke(e)
+ J && ke(e)
},
onPanEnd() {
- U && (z.off(), null == R || R(q.current))
+ J && (z.off(), null == A || A(te.current))
},
})
- var _e = (0, d.useCallback)(
+ var Ee = (0, d.useCallback)(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- re({}, e, P, {
- ref: (0, $.l)(t, se),
+ $({}, e, j, {
+ ref: (0, V.l)(t, se),
tabIndex: -1,
- 'aria-disabled': (0, l.Qm)(m),
- 'data-focused': (0, l.PB)(B),
- style: re({}, e.style, be),
+ 'aria-disabled': (0, c.Qm)(b),
+ 'data-focused': (0, c.PB)(H),
+ style: $({}, e.style, be),
})
)
},
- [P, m, B, be],
+ [j, b, H, be],
),
- Te = (0, d.useCallback)(
+ Oe = (0, d.useCallback)(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- re({}, e, {
- ref: (0, $.l)(t, ie),
- id: le,
- 'data-disabled': (0, l.PB)(m),
- style: re({}, e.style, we),
+ $({}, e, {
+ ref: (0, V.l)(t, ie),
+ id: ce,
+ 'data-disabled': (0, c.PB)(b),
+ style: $({}, e.style, we),
})
)
},
- [m, le, we],
+ [b, ce, we],
),
- Oe = (0, d.useCallback)(
+ Te = (0, d.useCallback)(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- re({}, e, { ref: t, style: re({}, e.style, xe) })
+ $({}, e, { ref: t, style: $({}, e.style, _e) })
)
},
- [xe],
+ [_e],
),
Ce = (0, d.useCallback)(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- re({}, e, {
- ref: (0, $.l)(t, ae),
+ $({}, e, {
+ ref: (0, V.l)(t, ae),
role: 'slider',
- tabIndex: U ? 0 : void 0,
+ tabIndex: J ? 0 : void 0,
id: ue,
- 'data-active': (0, l.PB)(N),
+ 'data-active': (0, c.PB)(N),
'aria-valuetext': me,
'aria-valuemin': n,
'aria-valuemax': r,
- 'aria-valuenow': G,
+ 'aria-valuenow': ee,
'aria-orientation': u,
- 'aria-disabled': (0, l.Qm)(m),
- 'aria-readonly': (0, l.Qm)(g),
- 'aria-label': O,
- 'aria-labelledby': O ? void 0 : C,
- style: re({}, e.style, ye),
- onKeyDown: (0, I.v0)(e.onKeyDown, ve),
- onFocus: (0, I.v0)(e.onFocus, F.on),
- onBlur: (0, I.v0)(e.onBlur, F.off),
+ 'aria-disabled': (0, c.Qm)(b),
+ 'aria-readonly': (0, c.Qm)(w),
+ 'aria-label': T,
+ 'aria-labelledby': T ? void 0 : C,
+ style: $({}, e.style, ye),
+ onKeyDown: (0, P.v0)(e.onKeyDown, ve),
+ onFocus: (0, P.v0)(e.onFocus, W.on),
+ onBlur: (0, P.v0)(e.onBlur, W.off),
})
)
},
- [O, C, m, N, g, U, r, n, ve, u, F.off, F.on, ue, ye, G, me],
+ [T, C, b, N, w, J, r, n, ve, u, W.off, W.on, ue, ye, ee, me],
),
- Se = (0, d.useCallback)(
+ Me = (0, d.useCallback)(
function (e, t) {
void 0 === e && (e = {}), void 0 === t && (t = null)
- var i = !(e.value < n || e.value > r),
- o = G >= e.value,
- a = Y(e.value, n, r),
- c = re(
+ var o = !(e.value < n || e.value > r),
+ i = ee >= e.value,
+ a = U(e.value, n, r),
+ l = $(
{ position: 'absolute', pointerEvents: 'none' },
(function (e) {
var { orientation: t, vertical: n, horizontal: r } = e
@@ -5666,44 +12019,44 @@
horizontal: { left: s ? 100 - a + '%' : a + '%' },
}),
)
- return re({}, e, {
+ return $({}, e, {
ref: t,
role: 'presentation',
'aria-hidden': !0,
- 'data-disabled': (0, l.PB)(m),
- 'data-invalid': (0, l.PB)(!i),
- 'data-highlighted': (0, l.PB)(o),
- style: re({}, e.style, c),
+ 'data-disabled': (0, c.PB)(b),
+ 'data-invalid': (0, c.PB)(!o),
+ 'data-highlighted': (0, c.PB)(i),
+ style: $({}, e.style, l),
})
},
- [m, s, r, n, u, G],
+ [b, s, r, n, u, ee],
),
- Ae = (0, d.useCallback)(
+ Se = (0, d.useCallback)(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- re({}, e, { ref: t, type: 'hidden', value: G, name: S })
+ $({}, e, { ref: t, type: 'hidden', value: ee, name: M })
)
},
- [S, G],
+ [M, ee],
)
return {
- state: { value: G, isFocused: B, isDragging: N },
+ state: { value: ee, isFocused: H, isDragging: N },
actions: pe,
- getRootProps: _e,
- getTrackProps: Te,
- getInnerTrackProps: Oe,
+ getRootProps: Ee,
+ getTrackProps: Oe,
+ getInnerTrackProps: Te,
getThumbProps: Ce,
- getMarkerProps: Se,
- getInputProps: Ae,
+ getMarkerProps: Me,
+ getInputProps: Se,
}
}
- function oe(e, t) {
+ function Q(e, t) {
return t < e ? e : e + (t - e) / 2
}
- function ae() {
- return (ae =
+ function J() {
+ return (J =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -5713,49 +12066,46 @@
return e
}).apply(this, arguments)
}
- var [se, ue] = (0, c.k)({
+ var [ee, te] = (0, l.k)({
name: 'SliderContext',
errorMessage:
'useSliderContext: `context` is undefined. Seems you forgot to wrap all slider components within <Slider />',
}),
- le = (0, r.G)((e, t) => {
- var n = (0, i.j)('Slider', e),
- r = ie((0, o.Lr)(e)),
- { getInputProps: u, getRootProps: l } = r,
- c = (function (e, t) {
+ ne = (0, r.G)((e, t) => {
+ var n = (0, o.j)('Slider', e),
+ r = Y((0, i.Lr)(e)),
+ { getInputProps: u, getRootProps: c } = r,
+ l = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(r, ['getInputProps', 'getRootProps']),
- f = l(),
+ f = c(),
h = u({}, t),
- p = ae(
- { display: 'inline-block', position: 'relative', cursor: 'pointer' },
- n.container,
- )
+ p = J({ display: 'inline-block', position: 'relative', cursor: 'pointer' }, n.container)
return d.createElement(
- se,
- { value: c },
+ ee,
+ { value: l },
d.createElement(
a.Fo,
{ value: n },
d.createElement(
s.m$.div,
- ae({}, f, { className: 'chakra-slider', __css: p }),
+ J({}, f, { className: 'chakra-slider', __css: p }),
e.children,
d.createElement('input', h),
),
),
)
})
- ;(le.defaultProps = { orientation: 'horizontal' }), u.Ts && (le.displayName = 'Slider')
- var ce = (0, r.G)((e, t) => {
- var { getThumbProps: n } = ue(),
- r = ae(
+ ;(ne.defaultProps = { orientation: 'horizontal' }), u.Ts && (ne.displayName = 'Slider')
+ var re = (0, r.G)((e, t) => {
+ var { getThumbProps: n } = te(),
+ r = J(
{
display: 'flex',
alignItems: 'center',
@@ -5765,60 +12115,1899 @@
},
(0, a.yK)().thumb,
),
- i = n(e, t)
+ o = n(e, t)
return d.createElement(
s.m$.div,
- ae({}, i, { className: (0, l.cx)('chakra-slider__thumb', e.className), __css: r }),
+ J({}, o, { className: (0, c.cx)('chakra-slider__thumb', e.className), __css: r }),
)
})
- u.Ts && (ce.displayName = 'SliderThumb')
- var de = (0, r.G)((e, t) => {
- var { getTrackProps: n } = ue(),
- r = ae({ overflow: 'hidden' }, (0, a.yK)().track),
- i = n(e, t)
+ u.Ts && (re.displayName = 'SliderThumb')
+ var oe = (0, r.G)((e, t) => {
+ var { getTrackProps: n } = te(),
+ r = J({ overflow: 'hidden' }, (0, a.yK)().track),
+ o = n(e, t)
return d.createElement(
s.m$.div,
- ae({}, i, { className: (0, l.cx)('chakra-slider__track', e.className), __css: r }),
+ J({}, o, { className: (0, c.cx)('chakra-slider__track', e.className), __css: r }),
)
})
- u.Ts && (de.displayName = 'SliderTrack')
- var fe = (0, r.G)((e, t) => {
- var { getInnerTrackProps: n } = ue(),
- r = ae({ width: 'inherit', height: 'inherit' }, (0, a.yK)().filledTrack),
- i = n(e, t)
+ u.Ts && (oe.displayName = 'SliderTrack')
+ var ie = (0, r.G)((e, t) => {
+ var { getInnerTrackProps: n } = te(),
+ r = J({ width: 'inherit', height: 'inherit' }, (0, a.yK)().filledTrack),
+ o = n(e, t)
return d.createElement(
s.m$.div,
- ae({}, i, { className: 'chakra-slider__filled-track', __css: r }),
+ J({}, o, { className: 'chakra-slider__filled-track', __css: r }),
)
})
- u.Ts && (fe.displayName = 'SliderFilledTrack')
- var he = (0, r.G)((e, t) => {
- var { getMarkerProps: n } = ue(),
+ u.Ts && (ie.displayName = 'SliderFilledTrack')
+ var ae = (0, r.G)((e, t) => {
+ var { getMarkerProps: n } = te(),
r = n(e, t)
return d.createElement(
s.m$.div,
- ae({}, r, { className: (0, l.cx)('chakra-slider__marker', e.className) }),
+ J({}, r, { className: (0, c.cx)('chakra-slider__marker', e.className) }),
+ )
+ })
+ u.Ts && (ae.displayName = 'SliderMark')
+ },
+ 90716: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(55478)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ },
+ 55478: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.Spinner = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = n(22944),
+ a = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var c = (0, r.keyframes)({
+ '0%': { transform: 'rotate(0deg)' },
+ '100%': { transform: 'rotate(360deg)' },
+ }),
+ l = (0, r.forwardRef)(function (e, t) {
+ var n = (0, r.useStyleConfig)('Spinner', e),
+ s = (0, r.omitThemingProps)(e),
+ l = s.label,
+ d = void 0 === l ? 'Loading...' : l,
+ f = s.thickness,
+ h = void 0 === f ? '2px' : f,
+ p = s.speed,
+ v = void 0 === p ? '0.45s' : p,
+ m = s.emptyColor,
+ g = void 0 === m ? 'transparent' : m,
+ y = s.className,
+ b = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(s, ['label', 'thickness', 'speed', 'emptyColor', 'className']),
+ w = (0, o.cx)('chakra-spinner', y),
+ _ = u(
+ {
+ display: 'inline-block',
+ borderColor: 'currentColor',
+ borderStyle: 'solid',
+ borderRadius: '99999px',
+ borderWidth: h,
+ borderBottomColor: g,
+ borderLeftColor: g,
+ animation: c + ' ' + v + ' linear infinite',
+ },
+ n,
+ )
+ return a.createElement(
+ r.chakra.div,
+ u({ ref: t, __css: _, className: w }, b),
+ d && a.createElement(i.VisuallyHidden, null, d),
+ )
+ })
+ ;(t.Spinner = l), o.__DEV__ && (l.displayName = 'Spinner')
+ },
+ 56693: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.background = void 0)
+ var r = n(77050),
+ o = {
+ background: r.t.colors('background'),
+ backgroundColor: r.t.colors('backgroundColor'),
+ backgroundImage: r.t.propT('backgroundImage', r.transforms.bgImage),
+ backgroundSize: !0,
+ backgroundPosition: !0,
+ backgroundRepeat: !0,
+ backgroundAttachment: !0,
+ backgroundClip: { transform: r.transforms.bgClip },
+ bgSize: r.t.prop('backgroundSize'),
+ bgPosition: r.t.prop('backgroundPosition'),
+ bg: r.t.colors('background'),
+ bgColor: r.t.colors('backgroundColor'),
+ bgPos: r.t.prop('backgroundPosition'),
+ bgRepeat: r.t.prop('backgroundRepeat'),
+ bgAttachment: r.t.prop('backgroundAttachment'),
+ bgGradient: r.t.propT('backgroundImage', r.transforms.gradient),
+ bgClip: { transform: r.transforms.bgClip },
+ }
+ ;(t.background = o),
+ Object.assign(o, { bgImage: o.backgroundImage, bgImg: o.backgroundImage })
+ },
+ 24689: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.border = void 0)
+ var r = n(77050),
+ o = {
+ border: r.t.borders('border'),
+ borderWidth: r.t.borderWidths('borderWidth'),
+ borderStyle: r.t.borderStyles('borderStyle'),
+ borderColor: r.t.colors('borderColor'),
+ borderRadius: r.t.radii('borderRadius'),
+ borderTop: r.t.borders('borderTop'),
+ borderBlockStart: r.t.borders('borderBlockStart'),
+ borderTopLeftRadius: r.t.radii('borderTopLeftRadius'),
+ borderStartStartRadius: r.t.logical({
+ scale: 'radii',
+ property: { ltr: 'borderTopLeftRadius', rtl: 'borderTopRightRadius' },
+ }),
+ borderEndStartRadius: r.t.logical({
+ scale: 'radii',
+ property: { ltr: 'borderBottomLeftRadius', rtl: 'borderBottomRightRadius' },
+ }),
+ borderTopRightRadius: r.t.radii('borderTopRightRadius'),
+ borderStartEndRadius: r.t.logical({
+ scale: 'radii',
+ property: { ltr: 'borderTopRightRadius', rtl: 'borderTopLeftRadius' },
+ }),
+ borderEndEndRadius: r.t.logical({
+ scale: 'radii',
+ property: { ltr: 'borderBottomRightRadius', rtl: 'borderBottomLeftRadius' },
+ }),
+ borderRight: r.t.borders('borderRight'),
+ borderInlineEnd: r.t.borders('borderInlineEnd'),
+ borderBottom: r.t.borders('borderBottom'),
+ borderBlockEnd: r.t.borders('borderBlockEnd'),
+ borderBottomLeftRadius: r.t.radii('borderBottomLeftRadius'),
+ borderBottomRightRadius: r.t.radii('borderBottomRightRadius'),
+ borderLeft: r.t.borders('borderLeft'),
+ borderInlineStart: { property: 'borderInlineStart', scale: 'borders' },
+ borderInlineStartRadius: r.t.logical({
+ scale: 'radii',
+ property: {
+ ltr: ['borderTopLeftRadius', 'borderBottomLeftRadius'],
+ rtl: ['borderTopRightRadius', 'borderBottomRightRadius'],
+ },
+ }),
+ borderInlineEndRadius: r.t.logical({
+ scale: 'radii',
+ property: {
+ ltr: ['borderTopRightRadius', 'borderBottomRightRadius'],
+ rtl: ['borderTopLeftRadius', 'borderBottomLeftRadius'],
+ },
+ }),
+ borderX: r.t.borders(['borderLeft', 'borderRight']),
+ borderInline: r.t.borders('borderInline'),
+ borderY: r.t.borders(['borderTop', 'borderBottom']),
+ borderBlock: r.t.borders('borderBlock'),
+ borderTopWidth: r.t.borderWidths('borderTopWidth'),
+ borderBlockStartWidth: r.t.borderWidths('borderBlockStartWidth'),
+ borderTopColor: r.t.colors('borderTopColor'),
+ borderBlockStartColor: r.t.colors('borderBlockStartColor'),
+ borderTopStyle: r.t.borderStyles('borderTopStyle'),
+ borderBlockStartStyle: r.t.borderStyles('borderBlockStartStyle'),
+ borderBottomWidth: r.t.borderWidths('borderBottomWidth'),
+ borderBlockEndWidth: r.t.borderWidths('borderBlockEndWidth'),
+ borderBottomColor: r.t.colors('borderBottomColor'),
+ borderBlockEndColor: r.t.colors('borderBlockEndColor'),
+ borderBottomStyle: r.t.borderStyles('borderBottomStyle'),
+ borderBlockEndStyle: r.t.borderStyles('borderBlockEndStyle'),
+ borderLeftWidth: r.t.borderWidths('borderLeftWidth'),
+ borderInlineStartWidth: r.t.borderWidths('borderInlineStartWidth'),
+ borderLeftColor: r.t.colors('borderLeftColor'),
+ borderInlineStartColor: r.t.colors('borderInlineStartColor'),
+ borderLeftStyle: r.t.borderStyles('borderLeftStyle'),
+ borderInlineStartStyle: r.t.borderStyles('borderInlineStartStyle'),
+ borderRightWidth: r.t.borderWidths('borderRightWidth'),
+ borderInlineEndWidth: r.t.borderWidths('borderInlineEndWidth'),
+ borderRightColor: r.t.colors('borderRightColor'),
+ borderInlineEndColor: r.t.colors('borderInlineEndColor'),
+ borderRightStyle: r.t.borderStyles('borderRightStyle'),
+ borderInlineEndStyle: r.t.borderStyles('borderInlineEndStyle'),
+ borderTopRadius: r.t.radii(['borderTopLeftRadius', 'borderTopRightRadius']),
+ borderBottomRadius: r.t.radii(['borderBottomLeftRadius', 'borderBottomRightRadius']),
+ borderLeftRadius: r.t.radii(['borderTopLeftRadius', 'borderBottomLeftRadius']),
+ borderRightRadius: r.t.radii(['borderTopRightRadius', 'borderBottomRightRadius']),
+ }
+ ;(t.border = o),
+ Object.assign(o, {
+ rounded: o.borderRadius,
+ roundedTop: o.borderTopRadius,
+ roundedTopLeft: o.borderTopLeftRadius,
+ roundedTopRight: o.borderTopRightRadius,
+ roundedTopStart: o.borderStartStartRadius,
+ roundedTopEnd: o.borderStartEndRadius,
+ roundedBottom: o.borderBottomRadius,
+ roundedBottomLeft: o.borderBottomLeftRadius,
+ roundedBottomRight: o.borderBottomRightRadius,
+ roundedBottomStart: o.borderEndStartRadius,
+ roundedBottomEnd: o.borderEndEndRadius,
+ roundedLeft: o.borderLeftRadius,
+ roundedRight: o.borderRightRadius,
+ roundedStart: o.borderInlineStartRadius,
+ roundedEnd: o.borderInlineEndRadius,
+ borderStart: o.borderInlineStart,
+ borderEnd: o.borderInlineEnd,
+ borderTopStartRadius: o.borderStartStartRadius,
+ borderTopEndRadius: o.borderStartEndRadius,
+ borderBottomStartRadius: o.borderEndStartRadius,
+ borderBottomEndRadius: o.borderEndEndRadius,
+ borderStartRadius: o.borderInlineStartRadius,
+ borderEndRadius: o.borderInlineEndRadius,
+ borderStartWidth: o.borderInlineStartWidth,
+ borderEndWidth: o.borderInlineEndWidth,
+ borderStartColor: o.borderInlineStartColor,
+ borderEndColor: o.borderInlineEndColor,
+ borderStartStyle: o.borderInlineStartStyle,
+ borderEndStyle: o.borderInlineEndStyle,
+ })
+ },
+ 4561: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.color = void 0)
+ var r = n(77050),
+ o = {
+ color: r.t.colors('color'),
+ textColor: r.t.colors('color'),
+ fill: r.t.colors('fill'),
+ stroke: r.t.colors('stroke'),
+ }
+ t.color = o
+ },
+ 93103: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.effect = void 0)
+ var r = n(77050),
+ o = {
+ boxShadow: r.t.shadows('boxShadow'),
+ mixBlendMode: !0,
+ blendMode: r.t.prop('mixBlendMode'),
+ backgroundBlendMode: !0,
+ bgBlendMode: r.t.prop('backgroundBlendMode'),
+ opacity: !0,
+ }
+ ;(t.effect = o), Object.assign(o, { shadow: o.boxShadow })
+ },
+ 94015: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.filter = void 0)
+ var r = n(77050),
+ o = {
+ filter: { transform: r.transforms.filter },
+ blur: r.t.blur('--chakra-blur'),
+ brightness: r.t.propT('--chakra-brightness', r.transforms.brightness),
+ contrast: r.t.propT('--chakra-contrast', r.transforms.contrast),
+ hueRotate: r.t.degreeT('--chakra-hue-rotate'),
+ invert: r.t.propT('--chakra-invert', r.transforms.invert),
+ saturate: r.t.propT('--chakra-saturate', r.transforms.saturate),
+ dropShadow: r.t.propT('--chakra-drop-shadow', r.transforms.dropShadow),
+ backdropFilter: { transform: r.transforms.backdropFilter },
+ backdropBlur: r.t.blur('--chakra-backdrop-blur'),
+ backdropBrightness: r.t.propT('--chakra-backdrop-brightness', r.transforms.brightness),
+ backdropContrast: r.t.propT('--chakra-backdrop-contrast', r.transforms.contrast),
+ backdropHueRotate: r.t.degreeT('--chakra-backdrop-hue-rotate'),
+ backdropInvert: r.t.propT('--chakra-backdrop-invert', r.transforms.invert),
+ backdropSaturate: r.t.propT('--chakra-backdrop-saturate', r.transforms.saturate),
+ }
+ t.filter = o
+ },
+ 17608: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.flexbox = void 0)
+ var r = n(77050),
+ o = n(41629),
+ i = n(23744),
+ a = {
+ alignItems: !0,
+ alignContent: !0,
+ justifyItems: !0,
+ justifyContent: !0,
+ flexWrap: !0,
+ flexDirection: { transform: r.transforms.flexDirection },
+ experimental_spaceX: {
+ static: i.spaceXTemplate,
+ transform: (0, o.createTransform)({
+ scale: 'space',
+ transform: function (e) {
+ return null !== e ? { '--chakra-space-x': e } : null
+ },
+ }),
+ },
+ experimental_spaceY: {
+ static: i.spaceYTemplate,
+ transform: (0, o.createTransform)({
+ scale: 'space',
+ transform: function (e) {
+ return null != e ? { '--chakra-space-y': e } : null
+ },
+ }),
+ },
+ flex: !0,
+ flexFlow: !0,
+ flexGrow: !0,
+ flexShrink: !0,
+ flexBasis: r.t.sizes('flexBasis'),
+ justifySelf: !0,
+ alignSelf: !0,
+ order: !0,
+ placeItems: !0,
+ placeContent: !0,
+ placeSelf: !0,
+ }
+ ;(t.flexbox = a), Object.assign(a, { flexDir: a.flexDirection })
+ },
+ 41474: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.grid = void 0)
+ var r = n(77050),
+ o = {
+ gridGap: r.t.space('gridGap'),
+ gridColumnGap: r.t.space('gridColumnGap'),
+ gridRowGap: r.t.space('gridRowGap'),
+ gridColumn: !0,
+ gridRow: !0,
+ gridAutoFlow: !0,
+ gridAutoColumns: !0,
+ gridColumnStart: !0,
+ gridColumnEnd: !0,
+ gridRowStart: !0,
+ gridRowEnd: !0,
+ gridAutoRows: !0,
+ gridTemplate: !0,
+ gridTemplateColumns: !0,
+ gridTemplateRows: !0,
+ gridTemplateAreas: !0,
+ gridArea: !0,
+ }
+ t.grid = o
+ },
+ 10147: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(56693)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(24689)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(4561)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ var a = n(93103)
+ Object.keys(a).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === a[e]) || (t[e] = a[e]))
+ })
+ var s = n(94015)
+ Object.keys(s).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === s[e]) || (t[e] = s[e]))
+ })
+ var u = n(17608)
+ Object.keys(u).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === u[e]) || (t[e] = u[e]))
+ })
+ var c = n(41474)
+ Object.keys(c).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === c[e]) || (t[e] = c[e]))
+ })
+ var l = n(54497)
+ Object.keys(l).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === l[e]) || (t[e] = l[e]))
+ })
+ var d = n(24569)
+ Object.keys(d).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === d[e]) || (t[e] = d[e]))
+ })
+ var f = n(59472)
+ Object.keys(f).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === f[e]) || (t[e] = f[e]))
+ })
+ var h = n(51237)
+ Object.keys(h).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === h[e]) || (t[e] = h[e]))
+ })
+ var p = n(90130)
+ Object.keys(p).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === p[e]) || (t[e] = p[e]))
+ })
+ var v = n(39650)
+ Object.keys(v).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === v[e]) || (t[e] = v[e]))
+ })
+ var m = n(19309)
+ Object.keys(m).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === m[e]) || (t[e] = m[e]))
+ })
+ var g = n(86705)
+ Object.keys(g).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === g[e]) || (t[e] = g[e]))
+ })
+ var y = n(75438)
+ Object.keys(y).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === y[e]) || (t[e] = y[e]))
+ })
+ var b = n(63646)
+ Object.keys(b).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === b[e]) || (t[e] = b[e]))
+ })
+ var w = n(58275)
+ Object.keys(w).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === w[e]) || (t[e] = w[e]))
+ })
+ },
+ 54497: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.interactivity = void 0)
+ var r = n(77050),
+ o = {
+ appearance: !0,
+ cursor: !0,
+ resize: !0,
+ userSelect: !0,
+ pointerEvents: !0,
+ outline: { transform: r.transforms.outline },
+ outlineOffset: !0,
+ outlineColor: r.t.colors('outlineColor'),
+ }
+ t.interactivity = o
+ },
+ 24569: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.layout = void 0)
+ var r = n(77050),
+ o = {
+ width: r.t.sizesT('width'),
+ inlineSize: r.t.sizesT('inlineSize'),
+ height: r.t.sizes('height'),
+ blockSize: r.t.sizes('blockSize'),
+ boxSize: r.t.sizes(['width', 'height']),
+ minWidth: r.t.sizes('minWidth'),
+ minInlineSize: r.t.sizes('minInlineSize'),
+ minHeight: r.t.sizes('minHeight'),
+ minBlockSize: r.t.sizes('minBlockSize'),
+ maxWidth: r.t.sizes('maxWidth'),
+ maxInlineSize: r.t.sizes('maxInlineSize'),
+ maxHeight: r.t.sizes('maxHeight'),
+ maxBlockSize: r.t.sizes('maxBlockSize'),
+ d: r.t.prop('display'),
+ overflow: !0,
+ overflowX: !0,
+ overflowY: !0,
+ overscrollBehavior: !0,
+ overscrollBehaviorX: !0,
+ overscrollBehaviorY: !0,
+ display: !0,
+ verticalAlign: !0,
+ boxSizing: !0,
+ boxDecorationBreak: !0,
+ float: r.t.propT('float', r.transforms.float),
+ objectFit: !0,
+ objectPosition: !0,
+ visibility: !0,
+ isolation: !0,
+ }
+ ;(t.layout = o),
+ Object.assign(o, {
+ w: o.width,
+ h: o.height,
+ minW: o.minWidth,
+ maxW: o.maxWidth,
+ minH: o.minHeight,
+ maxH: o.maxHeight,
+ overscroll: o.overscrollBehavior,
+ overscrollX: o.overscrollBehaviorX,
+ overscrollY: o.overscrollBehaviorY,
+ })
+ },
+ 59472: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.list = void 0)
+ var r = n(77050),
+ o = {
+ listStyleType: !0,
+ listStylePosition: !0,
+ listStylePos: r.t.prop('listStylePosition'),
+ listStyleImage: !0,
+ listStyleImg: r.t.prop('listStyleImage'),
+ }
+ t.list = o
+ },
+ 51237: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.others = void 0)
+ var r = n(66751),
+ o = {
+ border: '0px',
+ clip: 'rect(0, 0, 0, 0)',
+ width: '1px',
+ height: '1px',
+ margin: '-1px',
+ padding: '0px',
+ overflow: 'hidden',
+ whiteSpace: 'nowrap',
+ position: 'absolute',
+ },
+ i = {
+ position: 'static',
+ width: 'auto',
+ height: 'auto',
+ clip: 'auto',
+ padding: '0',
+ margin: '0',
+ overflow: 'visible',
+ whiteSpace: 'normal',
+ },
+ a = function (e, t, n) {
+ var o = {},
+ i = (0, r.memoizedGet)(e, t, {})
+ for (var a in i) {
+ ;(a in n && null != n[a]) || (o[a] = i[a])
+ }
+ return o
+ },
+ s = {
+ srOnly: {
+ transform: function (e) {
+ return !0 === e ? o : 'focusable' === e ? i : {}
+ },
+ },
+ layerStyle: {
+ processResult: !0,
+ transform: function (e, t, n) {
+ return a(t, 'layerStyles.' + e, n)
+ },
+ },
+ textStyle: {
+ processResult: !0,
+ transform: function (e, t, n) {
+ return a(t, 'textStyles.' + e, n)
+ },
+ },
+ apply: {
+ processResult: !0,
+ transform: function (e, t, n) {
+ return a(t, e, n)
+ },
+ },
+ }
+ t.others = s
+ },
+ 90130: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.position = void 0)
+ var r = n(77050),
+ o = {
+ position: !0,
+ pos: r.t.prop('position'),
+ zIndex: r.t.prop('zIndex', 'zIndices'),
+ inset: r.t.spaceT(['top', 'right', 'bottom', 'left']),
+ insetX: r.t.spaceT(['left', 'right']),
+ insetInline: r.t.spaceT('insetInline'),
+ insetY: r.t.spaceT(['top', 'bottom']),
+ insetBlock: r.t.spaceT('insetBlock'),
+ top: r.t.spaceT('top'),
+ insetBlockStart: r.t.spaceT('insetBlockStart'),
+ bottom: r.t.spaceT('bottom'),
+ insetBlockEnd: r.t.spaceT('insetBlockEnd'),
+ left: r.t.spaceT('left'),
+ insetInlineStart: r.t.logical({
+ scale: 'space',
+ property: { ltr: 'left', rtl: 'right' },
+ }),
+ right: r.t.spaceT('right'),
+ insetInlineEnd: r.t.logical({ scale: 'space', property: { ltr: 'right', rtl: 'left' } }),
+ }
+ ;(t.position = o),
+ Object.assign(o, { insetStart: o.insetInlineStart, insetEnd: o.insetInlineEnd })
+ },
+ 39650: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.ring = void 0)
+ var r = n(77050),
+ o = {
+ ring: { transform: r.transforms.ring },
+ ringColor: r.t.colors('--chakra-ring-color'),
+ ringOffset: r.t.prop('--chakra-ring-offset-width'),
+ ringOffsetColor: r.t.colors('--chakra-ring-offset-color'),
+ ringInset: r.t.prop('--chakra-ring-inset'),
+ }
+ t.ring = o
+ },
+ 19309: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.space = void 0)
+ var r = n(77050),
+ o = {
+ margin: r.t.spaceT('margin'),
+ marginTop: r.t.spaceT('marginTop'),
+ marginBlockStart: r.t.spaceT('marginBlockStart'),
+ marginRight: r.t.spaceT('marginRight'),
+ marginInlineEnd: r.t.spaceT('marginInlineEnd'),
+ marginBottom: r.t.spaceT('marginBottom'),
+ marginBlockEnd: r.t.spaceT('marginBlockEnd'),
+ marginLeft: r.t.spaceT('marginLeft'),
+ marginInlineStart: r.t.spaceT('marginInlineStart'),
+ marginX: r.t.spaceT(['marginInlineStart', 'marginInlineEnd']),
+ marginInline: r.t.spaceT('marginInline'),
+ marginY: r.t.spaceT(['marginTop', 'marginBottom']),
+ marginBlock: r.t.spaceT('marginBlock'),
+ padding: r.t.space('padding'),
+ paddingTop: r.t.space('paddingTop'),
+ paddingBlockStart: r.t.space('paddingBlockStart'),
+ paddingRight: r.t.space('paddingRight'),
+ paddingBottom: r.t.space('paddingBottom'),
+ paddingBlockEnd: r.t.space('paddingBlockEnd'),
+ paddingLeft: r.t.space('paddingLeft'),
+ paddingInlineStart: r.t.space('paddingInlineStart'),
+ paddingInlineEnd: r.t.space('paddingInlineEnd'),
+ paddingX: r.t.space(['paddingInlineStart', 'paddingInlineEnd']),
+ paddingInline: r.t.space('paddingInline'),
+ paddingY: r.t.space(['paddingTop', 'paddingBottom']),
+ paddingBlock: r.t.space('paddingBlock'),
+ }
+ ;(t.space = o),
+ Object.assign(o, {
+ m: o.margin,
+ mt: o.marginTop,
+ mr: o.marginRight,
+ me: o.marginInlineEnd,
+ marginEnd: o.marginInlineEnd,
+ mb: o.marginBottom,
+ ml: o.marginLeft,
+ ms: o.marginInlineStart,
+ marginStart: o.marginInlineStart,
+ mx: o.marginX,
+ my: o.marginY,
+ p: o.padding,
+ pt: o.paddingTop,
+ py: o.paddingY,
+ px: o.paddingX,
+ pb: o.paddingBottom,
+ pl: o.paddingLeft,
+ ps: o.paddingInlineStart,
+ paddingStart: o.paddingInlineStart,
+ pr: o.paddingRight,
+ pe: o.paddingInlineEnd,
+ paddingEnd: o.paddingInlineEnd,
+ })
+ },
+ 86705: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.textDecoration = void 0)
+ var r = n(77050),
+ o = {
+ textDecorationColor: r.t.colors('textDecorationColor'),
+ textDecoration: !0,
+ textDecor: { property: 'textDecoration' },
+ textDecorationLine: !0,
+ textDecorationStyle: !0,
+ textDecorationThickness: !0,
+ textUnderlineOffset: !0,
+ textShadow: r.t.shadows('textShadow'),
+ }
+ t.textDecoration = o
+ },
+ 75438: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.transform = void 0)
+ var r = n(77050),
+ o = {
+ clipPath: !0,
+ transform: r.t.propT('transform', r.transforms.transform),
+ transformOrigin: !0,
+ translateX: r.t.spaceT('--chakra-translate-x'),
+ translateY: r.t.spaceT('--chakra-translate-y'),
+ skewX: r.t.degreeT('--chakra-skew-x'),
+ skewY: r.t.degreeT('--chakra-skew-y'),
+ scaleX: r.t.prop('--chakra-scale-x'),
+ scaleY: r.t.prop('--chakra-scale-y'),
+ scale: r.t.prop(['--chakra-scale-x', '--chakra-scale-y']),
+ rotate: r.t.degreeT('--chakra-rotate'),
+ }
+ t.transform = o
+ },
+ 63646: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.transition = void 0)
+ var r = n(77050),
+ o = {
+ transition: !0,
+ transitionDelay: !0,
+ animation: !0,
+ willChange: !0,
+ transitionDuration: r.t.prop('transitionDuration', 'transition.duration'),
+ transitionProperty: r.t.prop('transitionProperty', 'transition.property'),
+ transitionTimingFunction: r.t.prop('transitionTimingFunction', 'transition.easing'),
+ }
+ t.transition = o
+ },
+ 58275: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.typography = void 0)
+ var r = n(77050),
+ o = {
+ fontFamily: r.t.prop('fontFamily', 'fonts'),
+ fontSize: r.t.prop('fontSize', 'fontSizes', r.transforms.px),
+ fontWeight: r.t.prop('fontWeight', 'fontWeights'),
+ lineHeight: r.t.prop('lineHeight', 'lineHeights'),
+ letterSpacing: r.t.prop('letterSpacing', 'letterSpacings'),
+ textAlign: !0,
+ fontStyle: !0,
+ wordBreak: !0,
+ overflowWrap: !0,
+ textOverflow: !0,
+ textTransform: !0,
+ whiteSpace: !0,
+ noOfLines: {
+ static: {
+ overflow: 'hidden',
+ textOverflow: 'ellipsis',
+ display: '-webkit-box',
+ WebkitBoxOrient: 'vertical',
+ WebkitLineClamp: 'var(--chakra-line-clamp)',
+ },
+ property: '--chakra-line-clamp',
+ },
+ isTruncated: {
+ transform: function (e) {
+ if (!0 === e)
+ return { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }
+ },
+ },
+ }
+ t.typography = o
+ },
+ 38986: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.calc = void 0)
+ var r = n(66751)
+ function o(e) {
+ return (0, r.isObject)(e) && e.reference ? e.reference : String(e)
+ }
+ var i = function (e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
+ n[r - 1] = arguments[r]
+ return n
+ .map(o)
+ .join(' ' + e + ' ')
+ .replace(/calc/g, '')
+ },
+ a = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return 'calc(' + i.apply(void 0, ['+'].concat(t)) + ')'
+ },
+ s = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return 'calc(' + i.apply(void 0, ['-'].concat(t)) + ')'
+ },
+ u = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return 'calc(' + i.apply(void 0, ['*'].concat(t)) + ')'
+ },
+ c = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return 'calc(' + i.apply(void 0, ['/'].concat(t)) + ')'
+ },
+ l = function (e) {
+ var t = o(e)
+ return null == t || Number.isNaN(parseFloat(t))
+ ? u(t, -1)
+ : String(t).startsWith('-')
+ ? String(t).slice(1)
+ : '-' + t
+ },
+ d = Object.assign(
+ function (e) {
+ return {
+ add: function () {
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
+ n[r] = arguments[r]
+ return d(a.apply(void 0, [e].concat(n)))
+ },
+ subtract: function () {
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
+ n[r] = arguments[r]
+ return d(s.apply(void 0, [e].concat(n)))
+ },
+ multiply: function () {
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
+ n[r] = arguments[r]
+ return d(u.apply(void 0, [e].concat(n)))
+ },
+ divide: function () {
+ for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
+ n[r] = arguments[r]
+ return d(c.apply(void 0, [e].concat(n)))
+ },
+ negate: function () {
+ return d(l(e))
+ },
+ toString: function () {
+ return e.toString()
+ },
+ }
+ },
+ { add: a, subtract: s, multiply: u, divide: c, negate: l },
)
+ t.calc = d
+ },
+ 98179: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.createThemeVars = function (e, t) {
+ var n = { cssMap: {}, cssVars: {} }
+ return (
+ (0, r.walkObject)(e, function (e, r) {
+ var o,
+ i = r[0],
+ a = (null != (o = s[i]) ? o : s.defaultHandler)(r, e, t),
+ u = a.cssVars,
+ c = a.cssMap
+ Object.assign(n.cssVars, u), Object.assign(n.cssMap, c)
+ }),
+ n
+ )
+ })
+ var r = n(66751),
+ o = n(38986),
+ i = n(21541)
+ function a() {
+ return (a =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var s = {
+ space: function (e, t, n) {
+ var r,
+ u = s.defaultHandler(e, t, n),
+ c = e[0] + '.-' + e.slice(1).join('.'),
+ l = e.join('-'),
+ d = (0, i.cssVar)(l, void 0, n.cssVarPrefix),
+ f = d.variable,
+ h = d.reference,
+ p = o.calc.negate(t),
+ v = o.calc.negate(h)
+ return {
+ cssVars: u.cssVars,
+ cssMap: a(
+ {},
+ u.cssMap,
+ ((r = {}), (r[c] = { value: '' + p, var: '' + f, varRef: v }), r),
+ ),
+ }
+ },
+ defaultHandler: function (e, t, n) {
+ var r,
+ o,
+ a = e.join('.'),
+ s = e.join('-'),
+ u = (0, i.cssVar)(s, void 0, n.cssVarPrefix),
+ c = u.variable,
+ l = u.reference
+ return {
+ cssVars: ((r = {}), (r[c] = t), r),
+ cssMap: ((o = {}), (o[a] = { value: t, var: c, varRef: l }), o),
+ }
+ },
+ }
+ },
+ 21541: function (e, t) {
+ 'use strict'
+ function n(e) {
+ var t = (function (e, t) {
+ return void 0 === t && (t = '-'), e.replace(/\s+/g, t)
+ })(e.toString())
+ return t.includes('\\.')
+ ? e
+ : !Number.isInteger(parseFloat(e.toString()))
+ ? t.replace('.', '\\.')
+ : e
+ }
+ function r(e, t) {
+ return void 0 === t && (t = ''), [t, n(e)].filter(Boolean).join('-')
+ }
+ function o(e, t) {
+ return 'var(' + n(e) + (t ? ', ' + t : '') + ')'
+ }
+ function i(e, t) {
+ return void 0 === t && (t = ''), '--' + r(e, t)
+ }
+ ;(t.__esModule = !0),
+ (t.addPrefix = r),
+ (t.toVarReference = o),
+ (t.toVarDefinition = i),
+ (t.cssVar = function (e, t, n) {
+ var r = i(e, n)
+ return { variable: r, reference: o(r, t) }
+ })
+ },
+ 13991: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(38986)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(21541)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(51898)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ },
+ 88708: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.extractTokens = function (e) {
+ var t = o
+ return (0, r.pick)(e, t)
+ }),
+ (t.omitVars = function (e) {
+ e.__cssMap, e.__cssVars, e.__breakpoints
+ return (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, ['__cssMap', '__cssVars', '__breakpoints'])
+ })
+ var r = n(66751)
+ var o = [
+ 'colors',
+ 'borders',
+ 'borderWidths',
+ 'borderStyles',
+ 'fonts',
+ 'fontSizes',
+ 'fontWeights',
+ 'letterSpacings',
+ 'lineHeights',
+ 'radii',
+ 'space',
+ 'shadows',
+ 'sizes',
+ 'zIndices',
+ 'transition',
+ 'blur',
+ ]
+ },
+ 51898: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.toCSSVar = function (e) {
+ var t,
+ n = (0, i.omitVars)(e),
+ s = (0, i.extractTokens)(n),
+ u = null == (t = n.config) ? void 0 : t.cssVarPrefix,
+ c = (0, o.createThemeVars)(s, { cssVarPrefix: u }),
+ l = c.cssMap,
+ d = c.cssVars
+ return (
+ Object.assign(n, {
+ __cssVars: a(
+ {},
+ {
+ '--chakra-ring-inset': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-ring-offset-width': '0px',
+ '--chakra-ring-offset-color': '#fff',
+ '--chakra-ring-color': 'rgba(66, 153, 225, 0.6)',
+ '--chakra-ring-offset-shadow': '0 0 #0000',
+ '--chakra-ring-shadow': '0 0 #0000',
+ '--chakra-space-x-reverse': '0',
+ '--chakra-space-y-reverse': '0',
+ },
+ d,
+ ),
+ __cssMap: l,
+ __breakpoints: (0, r.analyzeBreakpoints)(n.breakpoints),
+ }),
+ n
+ )
+ })
+ var r = n(66751),
+ o = n(98179),
+ i = n(88708)
+ function a() {
+ return (a =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ },
+ 49423: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.getCss = d), (t.css = void 0)
+ var r = n(66751),
+ o = n(61527),
+ i = n(19113),
+ a = n(41329)
+ function s(e, t) {
+ var n
+ if ('undefined' === typeof Symbol || null == e[Symbol.iterator]) {
+ if (
+ Array.isArray(e) ||
+ (n = (function (e, t) {
+ if (!e) return
+ if ('string' === typeof e) return u(e, t)
+ var n = Object.prototype.toString.call(e).slice(8, -1)
+ 'Object' === n && e.constructor && (n = e.constructor.name)
+ if ('Map' === n || 'Set' === n) return Array.from(e)
+ if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
+ return u(e, t)
+ })(e)) ||
+ (t && e && 'number' === typeof e.length)
+ ) {
+ n && (e = n)
+ var r = 0
+ return function () {
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] }
+ }
+ }
+ throw new TypeError(
+ 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
+ )
+ }
+ return (n = e[Symbol.iterator]()).next.bind(n)
+ }
+ function u(e, t) {
+ ;(null == t || t > e.length) && (t = e.length)
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
+ return r
+ }
+ var c = function (e, t) {
+ return e.startsWith('--') && (0, r.isString)(t) && !(0, r.isCssVar)(t)
+ },
+ l = function (e, t) {
+ var n, r
+ if (null == t) return t
+ var o = function (t) {
+ var n, r
+ return null == (n = e.__cssMap) || null == (r = n[t]) ? void 0 : r.varRef
+ },
+ i = function (e) {
+ var t
+ return null != (t = o(e)) ? t : e
+ },
+ a = t.split(',').map(function (e) {
+ return e.trim()
+ }),
+ s = a[0],
+ u = a[1]
+ return (t = null != (n = null != (r = o(s)) ? r : i(u)) ? n : i(t))
+ }
+ function d(e) {
+ var t = e.configs,
+ n = void 0 === t ? {} : t,
+ o = e.pseudos,
+ i = void 0 === o ? {} : o,
+ u = e.theme
+ return function e(t, o) {
+ void 0 === o && (o = !1)
+ var d = (0, r.runIfFn)(t, u),
+ f = (0, a.expandResponsive)(d)(u),
+ h = {}
+ for (var p in f) {
+ var v,
+ m,
+ g,
+ y,
+ b,
+ w = f[p],
+ _ = (0, r.runIfFn)(w, u)
+ p in i && (p = i[p]), c(p, _) && (_ = l(u, _))
+ var x = n[p]
+ if ((!0 === x && (x = { property: p }), (0, r.isObject)(_))) {
+ var k
+ ;(h[p] = null != (k = h[p]) ? k : {}), (h[p] = (0, r.mergeWith)({}, h[p], e(_, !0)))
+ } else {
+ var E =
+ null != (v = null == (m = x) || null == m.transform ? void 0 : m.transform(_, u, d))
+ ? v
+ : _
+ E = null != (g = x) && g.processResult ? e(E, !0) : E
+ var O = (0, r.runIfFn)(null == (y = x) ? void 0 : y.property, u)
+ if (!o && null != (b = x) && b.static) {
+ var T = (0, r.runIfFn)(x.static, u)
+ h = (0, r.mergeWith)({}, h, T)
+ }
+ if (O && Array.isArray(O))
+ for (var C, M = s(O); !(C = M()).done; ) {
+ h[C.value] = E
+ }
+ else
+ O
+ ? '&' === O && (0, r.isObject)(E)
+ ? (h = (0, r.mergeWith)({}, h, E))
+ : (h[O] = E)
+ : (0, r.isObject)(E)
+ ? (h = (0, r.mergeWith)({}, h, E))
+ : (h[p] = E)
+ }
+ }
+ return h
+ }
+ }
+ t.css = function (e) {
+ return function (t) {
+ return d({ theme: t, pseudos: o.pseudoSelectors, configs: i.systemProps })(e)
+ }
+ }
+ },
+ 39907: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = { tokenToCSSVar: !0 }
+ t.tokenToCSSVar = void 0
+ var o = n(10147)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(49423)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ var a = n(83306)
+ Object.keys(a).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === a[e]) || (t[e] = a[e]))
+ })
+ var s = n(21644)
+ Object.keys(s).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === s[e]) || (t[e] = s[e]))
})
- u.Ts && (he.displayName = 'SliderMark')
+ var u = n(19113)
+ Object.keys(u).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === u[e]) || (t[e] = u[e]))
+ })
+ var c = n(13991)
+ Object.keys(c).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === c[e]) || (t[e] = c[e]))
+ })
+ var l = n(41629)
+ t.tokenToCSSVar = l.tokenToCSSVar
+ },
+ 61527: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.pseudoPropNames = t.pseudoSelectors = void 0)
+ var r = n(66751),
+ o = function (e) {
+ return e + ':focus &, ' + e + '[data-focus] &'
+ },
+ i = function (e) {
+ return e + ':active &, ' + e + '[data-active] &'
+ },
+ a = function (e) {
+ return e + ':disabled &, ' + e + '[data-disabled] &'
+ },
+ s = function (e) {
+ return e + ':invalid &, ' + e + '[data-invalid] &'
+ },
+ u = function (e) {
+ return e + ':checked &, ' + e + '[data-checked] &'
+ },
+ c = function (e) {
+ return l(e, '[role=group]', '[data-group]', '.group')
+ },
+ l = function (e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
+ n[r - 1] = arguments[r]
+ return n.map(e).join(', ')
+ },
+ d = {
+ _hover: '&:hover, &[data-hover]',
+ _active: '&:active, &[data-active]',
+ _focus: '&:focus, &[data-focus]',
+ _highlighted: '&[data-highlighted]',
+ _focusWithin: '&:focus-within',
+ _focusVisible: '&:focus-visible',
+ _disabled: '&[disabled], &[aria-disabled=true], &[data-disabled]',
+ _readOnly: '&[aria-readonly=true], &[readonly], &[data-readonly]',
+ _before: '&::before',
+ _after: '&::after',
+ _empty: '&:empty',
+ _expanded: '&[aria-expanded=true], &[data-expanded]',
+ _checked: '&[aria-checked=true], &[data-checked]',
+ _grabbed: '&[aria-grabbed=true], &[data-grabbed]',
+ _pressed: '&[aria-pressed=true], &[data-pressed]',
+ _invalid: '&[aria-invalid=true], &[data-invalid]',
+ _valid: '&[data-valid], &[data-state=valid]',
+ _loading: '&[data-loading], &[aria-busy=true]',
+ _selected: '&[aria-selected=true], &[data-selected]',
+ _hidden: '&[hidden], &[data-hidden]',
+ _autofill: '&:-webkit-autofill',
+ _even: '&:nth-of-type(even)',
+ _odd: '&:nth-of-type(odd)',
+ _first: '&:first-of-type',
+ _last: '&:last-of-type',
+ _notFirst: '&:not(:first-of-type)',
+ _notLast: '&:not(:last-of-type)',
+ _visited: '&:visited',
+ _activeLink: '&[aria-current=page]',
+ _activeStep: '&[aria-current=step]',
+ _indeterminate: '&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]',
+ _groupHover: c(function (e) {
+ return e + ':hover &, ' + e + '[data-hover] &'
+ }),
+ _groupFocus: c(o),
+ _groupActive: c(i),
+ _groupDisabled: c(a),
+ _groupInvalid: c(s),
+ _groupChecked: c(u),
+ _placeholder: '&::placeholder',
+ _fullScreen: '&:fullscreen',
+ _selection: '&::selection',
+ _rtl: '[dir=rtl] &',
+ _mediaDark: '@media (prefers-color-scheme: dark)',
+ _dark: '.chakra-ui-dark &, [data-theme=dark] &, &[data-theme=dark]',
+ _light: '.chakra-ui-light &, [data-theme=light] &, &[data-theme=light]',
+ }
+ t.pseudoSelectors = d
+ var f = (0, r.objectKeys)(d)
+ t.pseudoPropNames = f
+ },
+ 19113: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.isStyleProp = t.propNames = t.layoutPropNames = t.systemProps = void 0)
+ var r = n(66751),
+ o = n(10147),
+ i = n(61527)
+ function a() {
+ return (a =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var s = (0, r.mergeWith)(
+ {},
+ o.background,
+ o.border,
+ o.color,
+ o.flexbox,
+ o.layout,
+ o.filter,
+ o.ring,
+ o.interactivity,
+ o.grid,
+ o.others,
+ o.position,
+ o.effect,
+ o.space,
+ o.typography,
+ o.textDecoration,
+ o.transform,
+ o.list,
+ o.transition,
+ )
+ t.systemProps = s
+ var u = Object.assign({}, o.space, o.layout, o.flexbox, o.grid, o.position),
+ c = (0, r.objectKeys)(u)
+ t.layoutPropNames = c
+ var l = [].concat((0, r.objectKeys)(s), i.pseudoPropNames)
+ t.propNames = l
+ var d = a({}, s, i.pseudoSelectors)
+ t.isStyleProp = function (e) {
+ return e in d
+ }
+ },
+ 83306: function () {},
+ 21644: function () {},
+ 41629: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.createTransform = function (e) {
+ var t = e.scale,
+ n = e.transform,
+ r = e.compose
+ return function (e, i) {
+ var a,
+ s = o(t, e)(i),
+ u = null != (a = null == n ? void 0 : n(s, i)) ? a : s
+ return r && (u = r(u, i)), u
+ }
+ }),
+ (t.tokenToCSSVar = void 0)
+ var r = n(66751),
+ o = function (e, t) {
+ return function (n) {
+ var o = String(t),
+ i = e ? e + '.' + o : o
+ return (0, r.isObject)(n.__cssMap) && i in n.__cssMap ? n.__cssMap[i].varRef : t
+ }
+ }
+ t.tokenToCSSVar = o
+ },
+ 41329: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.expandResponsive = void 0)
+ var r = n(66751)
+ t.expandResponsive = function (e) {
+ return function (t) {
+ if (!t.__breakpoints) return e
+ var n = t.__breakpoints,
+ o = n.isResponsive,
+ i = n.toArrayValue,
+ a = n.media,
+ s = {}
+ for (var u in e) {
+ var c = (0, r.runIfFn)(e[u], t)
+ if (null != c)
+ if (((c = (0, r.isObject)(c) && o(c) ? i(c) : c), Array.isArray(c)))
+ for (var l = c.slice(0, a.length).length, d = 0; d < l; d += 1) {
+ var f = null == a ? void 0 : a[d]
+ f ? ((s[f] = s[f] || {}), null != c[d] && (s[f][u] = c[d])) : (s[u] = c[d])
+ }
+ else s[u] = c
+ }
+ return s
+ }
+ }
+ },
+ 77050: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = { t: !0, transforms: !0 }
+ t.t = void 0
+ var o = n(41629),
+ i = n(36282),
+ a = n(69131)
+ t.transforms = a.transformFunctions
+ var s = n(86925)
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ Object.keys(s).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === s[e]) || (t[e] = s[e]))
+ })
+ var c = {
+ borderWidths: (0, i.toConfig)('borderWidths'),
+ borderStyles: (0, i.toConfig)('borderStyles'),
+ colors: (0, i.toConfig)('colors'),
+ borders: (0, i.toConfig)('borders'),
+ radii: (0, i.toConfig)('radii', a.transformFunctions.px),
+ space: (0, i.toConfig)('space', a.transformFunctions.px),
+ spaceT: (0, i.toConfig)('space', a.transformFunctions.px),
+ degreeT: function (e) {
+ return { property: e, transform: a.transformFunctions.degree }
+ },
+ prop: function (e, t, n) {
+ return u(
+ { property: e, scale: t },
+ t && { transform: (0, o.createTransform)({ scale: t, transform: n }) },
+ )
+ },
+ propT: function (e, t) {
+ return { property: e, transform: t }
+ },
+ sizes: (0, i.toConfig)('sizes', a.transformFunctions.px),
+ sizesT: (0, i.toConfig)('sizes', a.transformFunctions.fraction),
+ shadows: (0, i.toConfig)('shadows'),
+ logical: i.logical,
+ blur: (0, i.toConfig)('blur', a.transformFunctions.blur),
+ }
+ t.t = c
+ },
+ 21612: function (e, t) {
+ 'use strict'
+ function n(e, t) {
+ n = function (e, t) {
+ return new u(e, void 0, t)
+ }
+ var i = o(RegExp),
+ a = RegExp.prototype,
+ s = new WeakMap()
+ function u(e, t, n) {
+ var r = i.call(this, e, t)
+ return s.set(r, n || s.get(e)), r
+ }
+ function c(e, t) {
+ var n = s.get(t)
+ return Object.keys(n).reduce(function (t, r) {
+ return (t[r] = e[n[r]]), t
+ }, Object.create(null))
+ }
+ return (
+ r(u, i),
+ (u.prototype.exec = function (e) {
+ var t = a.exec.call(this, e)
+ return t && (t.groups = c(t, this)), t
+ }),
+ (u.prototype[Symbol.replace] = function (e, t) {
+ if ('string' === typeof t) {
+ var n = s.get(this)
+ return a[Symbol.replace].call(
+ this,
+ e,
+ t.replace(/\$<([^>]+)>/g, function (e, t) {
+ return '$' + n[t]
+ }),
+ )
+ }
+ if ('function' === typeof t) {
+ var r = this
+ return a[Symbol.replace].call(this, e, function () {
+ var e = []
+ return (
+ e.push.apply(e, arguments),
+ 'object' !== typeof e[e.length - 1] && e.push(c(e, r)),
+ t.apply(this, e)
+ )
+ })
+ }
+ return a[Symbol.replace].call(this, e, t)
+ }),
+ n.apply(this, arguments)
+ )
+ }
+ function r(e, t) {
+ if ('function' !== typeof t && null !== t)
+ throw new TypeError('Super expression must either be null or a function')
+ ;(e.prototype = Object.create(t && t.prototype, {
+ constructor: { value: e, writable: !0, configurable: !0 },
+ })),
+ t && s(e, t)
+ }
+ function o(e) {
+ var t = 'function' === typeof Map ? new Map() : void 0
+ return (o = function (e) {
+ if (null === e || ((n = e), -1 === Function.toString.call(n).indexOf('[native code]')))
+ return e
+ var n
+ if ('function' !== typeof e)
+ throw new TypeError('Super expression must either be null or a function')
+ if ('undefined' !== typeof t) {
+ if (t.has(e)) return t.get(e)
+ t.set(e, r)
+ }
+ function r() {
+ return i(e, arguments, u(this).constructor)
+ }
+ return (
+ (r.prototype = Object.create(e.prototype, {
+ constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 },
+ })),
+ s(r, e)
+ )
+ })(e)
+ }
+ function i(e, t, n) {
+ return (i = a()
+ ? Reflect.construct
+ : function (e, t, n) {
+ var r = [null]
+ r.push.apply(r, t)
+ var o = new (Function.bind.apply(e, r))()
+ return n && s(o, n.prototype), o
+ }).apply(null, arguments)
+ }
+ function a() {
+ if ('undefined' === typeof Reflect || !Reflect.construct) return !1
+ if (Reflect.construct.sham) return !1
+ if ('function' === typeof Proxy) return !0
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0
+ } catch (e) {
+ return !1
+ }
+ }
+ function s(e, t) {
+ return (s =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e
+ })(e, t)
+ }
+ function u(e) {
+ return (u = Object.setPrototypeOf
+ ? Object.getPrototypeOf
+ : function (e) {
+ return e.__proto__ || Object.getPrototypeOf(e)
+ })(e)
+ }
+ ;(t.__esModule = !0), (t.parseGradient = h), (t.gradientTransform = t.globalSet = void 0)
+ var c = {
+ 'to-t': 'to top',
+ 'to-tr': 'to top right',
+ 'to-r': 'to right',
+ 'to-br': 'to bottom right',
+ 'to-b': 'to bottom',
+ 'to-bl': 'to bottom left',
+ 'to-l': 'to left',
+ 'to-tl': 'to top left',
+ },
+ l = new Set(Object.values(c)),
+ d = new Set(['none', '-moz-initial', 'inherit', 'initial', 'revert', 'unset'])
+ t.globalSet = d
+ var f = function (e) {
+ return e.trim()
+ }
+ function h(e, t) {
+ var r, o
+ if (null == e || d.has(e)) return e
+ var i =
+ null !=
+ (r =
+ null == (o = n(/(^[\x2DA-Za-z]+)\(((.*))\)/g, { type: 1, values: 2 }).exec(e))
+ ? void 0
+ : o.groups)
+ ? r
+ : {},
+ a = i.type,
+ s = i.values
+ if (!a || !s) return e
+ var u = a.includes('-gradient') ? a : a + '-gradient',
+ h = s.split(',').map(f).filter(Boolean),
+ p = h[0],
+ v = h.slice(1)
+ if (0 === (null == v ? void 0 : v.length)) return e
+ var m = p in c ? c[p] : p
+ return (
+ v.unshift(m),
+ u +
+ '(' +
+ v
+ .map(function (e) {
+ if (l.has(e)) return e
+ var n = e.split(' '),
+ r = n[0],
+ o = n[1],
+ i = 'colors.' + r,
+ a = i in t.__cssMap ? t.__cssMap[i].varRef : r
+ return o ? [a, o].join(' ') : a
+ })
+ .join(', ') +
+ ')'
+ )
+ }
+ t.gradientTransform = function (e, t) {
+ return h(e, null != t ? t : {})
+ }
},
- 8134: function (e, t, n) {
+ 36282: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.toConfig = function (e, t) {
+ return function (n) {
+ var o = { property: n, scale: e }
+ return (o.transform = (0, r.createTransform)({ scale: e, transform: t })), o
+ }
+ }),
+ (t.logical = function (e) {
+ var t = e.property,
+ n = e.scale,
+ i = e.transform
+ return {
+ scale: n,
+ property: o(t),
+ transform: n ? (0, r.createTransform)({ scale: n, compose: i }) : i,
+ }
+ })
+ var r = n(41629)
+ var o = function (e) {
+ var t = e.rtl,
+ n = e.ltr
+ return function (e) {
+ return 'rtl' === e.direction ? t : n
+ }
+ }
+ },
+ 23744: function (e, t) {
+ 'use strict'
+ var n, r
+ ;(t.__esModule = !0),
+ (t.getTransformTemplate = function () {
+ return [
+ 'translateX(var(--chakra-translate-x, 0))',
+ 'translateY(var(--chakra-translate-y, 0))',
+ ]
+ .concat(o)
+ .join(' ')
+ }),
+ (t.getTransformGpuTemplate = function () {
+ return ['translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)']
+ .concat(o)
+ .join(' ')
+ }),
+ (t.getRingTemplate = function (e) {
+ return {
+ '--chakra-ring-offset-shadow':
+ 'var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)',
+ '--chakra-ring-shadow':
+ 'var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)',
+ '--chakra-ring-width': e,
+ boxShadow: [
+ 'var(--chakra-ring-offset-shadow)',
+ 'var(--chakra-ring-shadow)',
+ 'var(--chakra-shadow, 0 0 #0000)',
+ ].join(', '),
+ }
+ }),
+ (t.spaceYTemplate =
+ t.spaceXTemplate =
+ t.flexDirectionTemplate =
+ t.backdropFilterTemplate =
+ t.filterTemplate =
+ void 0)
+ var o = [
+ 'rotate(var(--chakra-rotate, 0))',
+ 'scaleX(var(--chakra-scale-x, 1))',
+ 'scaleY(var(--chakra-scale-y, 1))',
+ 'skewX(var(--chakra-skew-x, 0))',
+ 'skewY(var(--chakra-skew-y, 0))',
+ ]
+ var i = {
+ '--chakra-blur': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-brightness': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-contrast': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-grayscale': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-hue-rotate': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-invert': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-saturate': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-sepia': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-drop-shadow': 'var(--chakra-empty,/*!*/ /*!*/)',
+ filter: [
+ 'var(--chakra-blur)',
+ 'var(--chakra-brightness)',
+ 'var(--chakra-contrast)',
+ 'var(--chakra-grayscale)',
+ 'var(--chakra-hue-rotate)',
+ 'var(--chakra-invert)',
+ 'var(--chakra-saturate)',
+ 'var(--chakra-sepia)',
+ 'var(--chakra-drop-shadow)',
+ ].join(' '),
+ }
+ t.filterTemplate = i
+ var a = {
+ backdropFilter: [
+ 'var(--chakra-backdrop-blur)',
+ 'var(--chakra-backdrop-brightness)',
+ 'var(--chakra-backdrop-contrast)',
+ 'var(--chakra-backdrop-grayscale)',
+ 'var(--chakra-backdrop-hue-rotate)',
+ 'var(--chakra-backdrop-invert)',
+ 'var(--chakra-backdrop-opacity)',
+ 'var(--chakra-backdrop-saturate)',
+ 'var(--chakra-backdrop-sepia)',
+ ].join(' '),
+ '--chakra-backdrop-blur': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-backdrop-brightness': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-backdrop-contrast': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-backdrop-grayscale': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-backdrop-hue-rotate': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-backdrop-invert': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-backdrop-opacity': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-backdrop-saturate': 'var(--chakra-empty,/*!*/ /*!*/)',
+ '--chakra-backdrop-sepia': 'var(--chakra-empty,/*!*/ /*!*/)',
+ }
+ t.backdropFilterTemplate = a
+ t.flexDirectionTemplate = {
+ 'row-reverse': { space: '--chakra-space-x-reverse', divide: '--chakra-divide-x-reverse' },
+ 'column-reverse': {
+ space: '--chakra-space-y-reverse',
+ divide: '--chakra-divide-y-reverse',
+ },
+ }
+ var s = '& > :not(style) ~ :not(style)',
+ u =
+ (((n = {})[s] = {
+ marginInlineStart:
+ 'calc(var(--chakra-space-x) * calc(1 - var(--chakra-space-x-reverse)))',
+ marginInlineEnd: 'calc(var(--chakra-space-x) * var(--chakra-space-x-reverse))',
+ }),
+ n)
+ t.spaceXTemplate = u
+ var c =
+ (((r = {})[s] = {
+ marginTop: 'calc(var(--chakra-space-y) * calc(1 - var(--chakra-space-y-reverse)))',
+ marginBottom: 'calc(var(--chakra-space-y) * var(--chakra-space-y-reverse))',
+ }),
+ r)
+ t.spaceYTemplate = c
+ },
+ 69131: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.transformFunctions = void 0)
+ var r = n(66751),
+ o = n(23744),
+ i = n(21612),
+ a = function (e) {
+ return function (t) {
+ return e + '(' + t + ')'
+ }
+ },
+ s = {
+ filter: function (e) {
+ return 'auto' !== e ? e : o.filterTemplate
+ },
+ backdropFilter: function (e) {
+ return 'auto' !== e ? e : o.backdropFilterTemplate
+ },
+ ring: function (e) {
+ return (0, o.getRingTemplate)(s.px(e))
+ },
+ bgClip: function (e) {
+ return 'text' === e
+ ? { color: 'transparent', backgroundClip: 'text' }
+ : { backgroundClip: e }
+ },
+ transform: function (e) {
+ return 'auto' === e
+ ? (0, o.getTransformTemplate)()
+ : 'auto-gpu' === e
+ ? (0, o.getTransformGpuTemplate)()
+ : e
+ },
+ px: function (e) {
+ return null == e
+ ? e
+ : (function (e) {
+ var t = parseFloat(e.toString()),
+ n = e.toString().replace(String(t), '')
+ return { unitless: !n, value: t, unit: n }
+ })(e).unitless || (0, r.isNumber)(e)
+ ? e + 'px'
+ : e
+ },
+ fraction: function (e) {
+ return !(0, r.isNumber)(e) || e > 1 ? e : 100 * e + '%'
+ },
+ float: function (e, t) {
+ return 'rtl' === t.direction ? { left: 'right', right: 'left' }[e] : e
+ },
+ degree: function (e) {
+ if ((0, r.isCssVar)(e) || null == e) return e
+ var t = (0, r.isString)(e) && !e.endsWith('deg')
+ return (0, r.isNumber)(e) || t ? e + 'deg' : e
+ },
+ gradient: i.gradientTransform,
+ blur: a('blur'),
+ opacity: a('opacity'),
+ brightness: a('brightness'),
+ contrast: a('contrast'),
+ dropShadow: a('drop-shadow'),
+ grayscale: a('grayscale'),
+ hueRotate: a('hue-rotate'),
+ invert: a('invert'),
+ saturate: a('saturate'),
+ sepia: a('sepia'),
+ bgImage: function (e) {
+ return null == e || u(e) || i.globalSet.has(e) ? e : 'url(' + e + ')'
+ },
+ outline: function (e) {
+ var t = '0' === String(e) || 'none' === String(e)
+ return null !== e && t
+ ? { outline: '2px solid transparent', outlineOffset: '2px' }
+ : { outline: e }
+ },
+ flexDirection: function (e) {
+ var t,
+ n = null != (t = o.flexDirectionTemplate[e]) ? t : {},
+ r = n.space,
+ i = n.divide,
+ a = { flexDirection: e }
+ return r && (a[r] = 1), i && (a[i] = 1), a
+ },
+ }
+ t.transformFunctions = s
+ var u = function (e) {
+ return (0, r.isString)(e) && e.includes('(') && e.includes(')')
+ }
+ },
+ 86925: function () {},
+ 88134: function (e, t, n) {
'use strict'
n.d(t, {
r: function () {
- return E
- },
- })
- var r = n(762),
- i = n(639),
- o = n(1034),
- a = n(8327),
- s = n(2947),
- u = n(658),
- l = n(4461),
- c = n(7248),
- d = n(5415),
- f = n(7294)
+ return x
+ },
+ })
+ var r = n(10762),
+ o = n(90639),
+ i = n(51034),
+ a = n(68327),
+ s = n(72947),
+ u = n(80658),
+ c = n(84461),
+ l = n(47248),
+ d = n(65415),
+ f = n(67294)
function h() {
return (h =
Object.assign ||
@@ -5841,26 +14030,26 @@
isReadOnly: y,
isRequired: b,
onChange: w,
- isIndeterminate: x,
- isInvalid: E,
+ isIndeterminate: _,
+ isInvalid: x,
name: k,
- value: _,
- id: T,
- onBlur: O,
+ value: E,
+ id: O,
+ onBlur: T,
onFocus: C,
- 'aria-label': S,
- 'aria-labelledby': A,
+ 'aria-label': M,
+ 'aria-labelledby': S,
'aria-invalid': P,
- 'aria-describedby': M,
+ 'aria-describedby': j,
} = e,
- R = (function (e, t) {
+ I = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, [
'defaultIsChecked',
'defaultChecked',
@@ -5882,33 +14071,33 @@
'aria-invalid',
'aria-describedby',
]),
- j = (0, r.W)(w),
- D = (0, r.W)(O),
- L = (0, r.W)(C),
- [N, I] = (0, i.k)(),
- [z, H] = (0, i.k)(),
- [B, F] = (0, i.k)(),
+ A = (0, r.W)(w),
+ R = (0, r.W)(T),
+ D = (0, r.W)(C),
+ [L, N] = (0, o.k)(),
+ [z, B] = (0, o.k)(),
+ [H, F] = (0, o.k)(),
V = (0, f.useRef)(null),
- [U, G] = (0, f.useState)(!0),
- [q, W] = (0, f.useState)(!!n),
- [K, Z] = (0, o.p)(p, q)
+ [W, U] = (0, f.useState)(!0),
+ [G, q] = (0, f.useState)(!!n),
+ [K, Z] = (0, i.p)(p, G)
;(0, u.ZK)({
condition: !!t,
message:
'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.',
})
- var $ = (0, f.useCallback)(
+ var X = (0, f.useCallback)(
(e) => {
y || g
? e.preventDefault()
- : (K || W(Z ? e.target.checked : !!x || e.target.checked), null == j || j(e))
+ : (K || q(Z ? e.target.checked : !!_ || e.target.checked), null == A || A(e))
},
- [y, g, Z, K, x, j],
+ [y, g, Z, K, _, A],
)
;(0, a.G)(() => {
- V.current && (V.current.indeterminate = Boolean(x))
- }, [x])
- var X = g && !m,
+ V.current && (V.current.indeterminate = Boolean(_))
+ }, [_])
+ var $ = g && !m,
Y = (0, f.useCallback)(
(e) => {
' ' === e.key && F.on()
@@ -5922,51 +14111,51 @@
[F],
)
;(0, a.G)(() => {
- V.current && V.current.checked !== Z && W(V.current.checked)
+ V.current && V.current.checked !== Z && q(V.current.checked)
}, [V.current])
var J = (0, f.useCallback)(
function (e, t) {
void 0 === e && (e = {}), void 0 === t && (t = null)
return h({}, e, {
ref: t,
- 'data-active': (0, l.PB)(B),
- 'data-hover': (0, l.PB)(z),
- 'data-checked': (0, l.PB)(Z),
- 'data-focus': (0, l.PB)(N),
- 'data-indeterminate': (0, l.PB)(x),
- 'data-disabled': (0, l.PB)(g),
- 'data-invalid': (0, l.PB)(E),
- 'data-readonly': (0, l.PB)(y),
+ 'data-active': (0, c.PB)(H),
+ 'data-hover': (0, c.PB)(z),
+ 'data-checked': (0, c.PB)(Z),
+ 'data-focus': (0, c.PB)(L),
+ 'data-indeterminate': (0, c.PB)(_),
+ 'data-disabled': (0, c.PB)(g),
+ 'data-invalid': (0, c.PB)(x),
+ 'data-readonly': (0, c.PB)(y),
'aria-hidden': !0,
onMouseDown: (0, u.v0)(e.onMouseDown, (e) => {
e.preventDefault(), F.on()
}),
onMouseUp: (0, u.v0)(e.onMouseUp, F.off),
- onMouseEnter: (0, u.v0)(e.onMouseEnter, H.on),
- onMouseLeave: (0, u.v0)(e.onMouseLeave, H.off),
+ onMouseEnter: (0, u.v0)(e.onMouseEnter, B.on),
+ onMouseLeave: (0, u.v0)(e.onMouseLeave, B.off),
})
},
- [B, Z, g, N, z, x, E, y, F, H.off, H.on],
+ [H, Z, g, L, z, _, x, y, F, B.off, B.on],
),
ee = (0, f.useCallback)(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- h({}, R, e, {
+ h({}, I, e, {
ref: (0, s.l)(t, (e) => {
- e && G('LABEL' === e.tagName)
+ e && U('LABEL' === e.tagName)
}),
onClick: (0, u.v0)(e.onClick, () => {
var e
- U ||
- (null == (e = V.current) || e.click(), (0, c.T)(V.current, { nextTick: !0 }))
+ W ||
+ (null == (e = V.current) || e.click(), (0, l.T)(V.current, { nextTick: !0 }))
}),
- 'data-disabled': (0, l.PB)(g),
+ 'data-disabled': (0, c.PB)(g),
})
)
},
- [R, g, U],
+ [I, g, W],
),
te = (0, f.useCallback)(
function (e, t) {
@@ -5975,28 +14164,28 @@
ref: (0, s.l)(V, t),
type: 'checkbox',
name: k,
- value: _,
- id: T,
- onChange: (0, u.v0)(e.onChange, $),
- onBlur: (0, u.v0)(e.onBlur, D, I.off),
- onFocus: (0, u.v0)(e.onFocus, L, () => {
- ;(0, u.A4)(I.on)
+ value: E,
+ id: O,
+ onChange: (0, u.v0)(e.onChange, X),
+ onBlur: (0, u.v0)(e.onBlur, R, N.off),
+ onFocus: (0, u.v0)(e.onFocus, D, () => {
+ ;(0, u.A4)(N.on)
}),
onKeyDown: (0, u.v0)(e.onKeyDown, Y),
onKeyUp: (0, u.v0)(e.onKeyUp, Q),
required: b,
checked: Z,
- disabled: X,
+ disabled: $,
readOnly: y,
- 'aria-label': S,
- 'aria-labelledby': A,
- 'aria-invalid': P ? Boolean(P) : E,
- 'aria-describedby': M,
+ 'aria-label': M,
+ 'aria-labelledby': S,
+ 'aria-invalid': P ? Boolean(P) : x,
+ 'aria-describedby': j,
'aria-disabled': g,
style: d.NL,
})
},
- [k, _, T, $, I.off, I.on, D, L, Y, Q, b, Z, X, y, S, A, P, E, M, g],
+ [k, E, O, X, N.off, N.on, R, D, Y, Q, b, Z, $, y, M, S, P, x, j, g],
),
ne = (0, f.useCallback)(
function (e, t) {
@@ -6007,22 +14196,22 @@
ref: t,
onMouseDown: (0, u.v0)(e.onMouseDown, v),
onTouchStart: (0, u.v0)(e.onTouchStart, v),
- 'data-disabled': (0, l.PB)(g),
- 'data-checked': (0, l.PB)(Z),
- 'data-invalid': (0, l.PB)(E),
+ 'data-disabled': (0, c.PB)(g),
+ 'data-checked': (0, c.PB)(Z),
+ 'data-invalid': (0, c.PB)(x),
})
)
},
- [Z, g, E],
+ [Z, g, x],
)
return {
state: {
- isInvalid: E,
- isFocused: N,
+ isInvalid: x,
+ isFocused: L,
isChecked: Z,
- isActive: B,
+ isActive: H,
isHovered: z,
- isIndeterminate: x,
+ isIndeterminate: _,
isDisabled: g,
isReadOnly: y,
isRequired: b,
@@ -6031,19 +14220,19 @@
getCheckboxProps: J,
getInputProps: te,
getLabelProps: ne,
- htmlProps: R,
+ htmlProps: I,
}
}
function v(e) {
e.preventDefault(), e.stopPropagation()
}
- var m = n(63),
+ var m = n(90063),
g = n(2326),
- y = n(5284),
- b = n(3782),
- w = n(3808)
- function x() {
- return (x =
+ y = n(55284),
+ b = n(89384),
+ w = n(73808)
+ function _() {
+ return (_ =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -6053,29 +14242,29 @@
return e
}).apply(this, arguments)
}
- var E = (0, m.G)((e, t) => {
+ var x = (0, m.G)((e, t) => {
var n = (0, g.j)('Switch', e),
r = (0, y.Lr)(e),
- { spacing: i = '0.5rem', children: o } = r,
+ { spacing: o = '0.5rem', children: i } = r,
a = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(r, ['spacing', 'children']),
{
state: s,
getInputProps: u,
- getCheckboxProps: c,
+ getCheckboxProps: l,
getRootProps: d,
getLabelProps: h,
} = p(a),
v = f.useMemo(
() =>
- x(
+ _(
{ display: 'inline-block', verticalAlign: 'middle', lineHeight: 'normal' },
n.container,
),
@@ -6083,7 +14272,7 @@
),
m = f.useMemo(
() =>
- x(
+ _(
{
display: 'inline-flex',
flexShrink: 0,
@@ -6095,79 +14284,139 @@
),
[n.track],
),
- w = f.useMemo(() => x({ userSelect: 'none', marginStart: i }, n.label), [i, n.label])
+ w = f.useMemo(() => _({ userSelect: 'none', marginStart: o }, n.label), [o, n.label])
return f.createElement(
b.m$.label,
- x({}, d(), { className: (0, l.cx)('chakra-switch', e.className), __css: v }),
- f.createElement('input', x({ className: 'chakra-switch__input' }, u({}, t))),
+ _({}, d(), { className: (0, c.cx)('chakra-switch', e.className), __css: v }),
+ f.createElement('input', _({ className: 'chakra-switch__input' }, u({}, t))),
f.createElement(
b.m$.span,
- x({}, c(), { className: 'chakra-switch__track', __css: m }),
+ _({}, l(), { className: 'chakra-switch__track', __css: m }),
f.createElement(b.m$.span, {
__css: n.thumb,
className: 'chakra-switch__thumb',
- 'data-checked': (0, l.PB)(s.isChecked),
- 'data-hover': (0, l.PB)(s.isHovered),
+ 'data-checked': (0, c.PB)(s.isChecked),
+ 'data-hover': (0, c.PB)(s.isHovered),
}),
),
- o &&
+ i &&
f.createElement(
b.m$.span,
- x({ className: 'chakra-switch__label' }, h(), { __css: w }),
- o,
+ _({ className: 'chakra-switch__label' }, h(), { __css: w }),
+ i,
),
)
})
- w.Ts && (E.displayName = 'Switch')
+ w.Ts && (x.displayName = 'Switch')
},
- 63: function (e, t, n) {
+ 15867: function (e, t, n) {
'use strict'
- n.d(t, {
- G: function () {
- return i
- },
- })
- var r = n(7294)
- function i(e) {
- return r.forwardRef(e)
+ ;(t.__esModule = !0),
+ (t.forwardRef = function (e) {
+ return r.forwardRef(e)
+ })
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, i) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, i, a) : (n[i] = e[i])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
}
},
- 1180: function (e, t, n) {
+ 46063: function (e, t, n) {
'use strict'
- n.d(t, {
- useTheme: function () {
- return o.Fg
- },
- })
- var r = n(9421)
- n.o(r, 'useTheme') &&
- n.d(t, {
- useTheme: function () {
- return r.useTheme
- },
- })
- var i = n(5070)
- n.o(i, 'useTheme') &&
- n.d(t, {
- useTheme: function () {
- return i.useTheme
- },
+ ;(t.__esModule = !0),
+ (t.useChakra = d),
+ (t.useToken = function (e, t, n) {
+ var r = (0, u.useTheme)()
+ if (Array.isArray(t)) {
+ var o = []
+ return (
+ n && (o = Array.isArray(n) ? n : [n]),
+ t.map(function (t, n) {
+ var a,
+ s = e + '.' + t
+ return (0, i.memoizedGet)(r, s, null != (a = o[n]) ? a : t)
+ })
+ )
+ }
+ var a = e + '.' + t
+ return (0, i.memoizedGet)(r, a, null != n ? n : t)
+ }),
+ (t.useProps = function (e, t) {
+ var n,
+ r,
+ o = d(),
+ u = o.theme,
+ f = o.colorMode,
+ h = t.styleConfig || (null == (n = u.components) ? void 0 : n[e]),
+ p = l(
+ {},
+ null != (r = null == h ? void 0 : h.defaultProps) ? r : {},
+ (0, i.filterUndefined)(t),
+ ),
+ v = (0, a.useRef)({}),
+ m = (0, i.mergeWith)({}, p, { theme: u, colorMode: f })
+ return {
+ styles: (0, a.useMemo)(
+ function () {
+ if (h) {
+ var e,
+ t,
+ n,
+ r,
+ o,
+ a = (0, i.runIfFn)(null != (e = h.baseStyle) ? e : {}, m),
+ u = (0, i.runIfFn)(
+ null != (t = null == (n = h.variants) ? void 0 : n[m.variant]) ? t : {},
+ m,
+ ),
+ c = (0, i.runIfFn)(
+ null != (r = null == (o = h.sizes) ? void 0 : o[m.size]) ? r : {},
+ m,
+ ),
+ l = (0, i.mergeWith)(a, c, u)
+ h.parts &&
+ h.parts.forEach(function (e) {
+ var t
+ l[e] = null != (t = l[e]) ? t : {}
+ }),
+ (0, s.default)(v.current, l) || (v.current = l)
+ }
+ return v.current
+ },
+ [h, m],
+ ),
+ props: (0, c.omitThemingProps)(p),
+ }
})
- var o = n(9676)
- },
- 3782: function (e, t, n) {
- 'use strict'
- n.d(t, {
- m$: function () {
- return T
- },
- })
- var r = n(9421),
- i = n(5505),
- o = n(658),
- a = n(7294)
- function s() {
- return (s =
+ var r,
+ o = n(12094),
+ i = n(66751),
+ a = n(67294),
+ s = (r = n(69590)) && r.__esModule ? r : { default: r },
+ u = n(4867),
+ c = n(93138)
+ function l() {
+ return (l =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -6177,135 +14426,272 @@
return e
}).apply(this, arguments)
}
- var u = n(7866),
- l =
- /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,
- c = (0, u.Z)(function (e) {
- return (
- l.test(e) ||
- (111 === e.charCodeAt(0) && 110 === e.charCodeAt(1) && e.charCodeAt(2) < 91)
+ function d() {
+ return l({}, (0, o.useColorMode)(), { theme: (0, u.useTheme)() })
+ }
+ },
+ 48121: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = { keyframes: !0, omitThemingProps: !0, shouldForwardProp: !0 }
+ t.shouldForwardProp = t.omitThemingProps = t.keyframes = void 0
+ var o = n(12094)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(39907)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ var a = n(70917)
+ t.keyframes = a.keyframes
+ var s = n(46063)
+ Object.keys(s).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === s[e]) || (t[e] = s[e]))
+ })
+ var u = n(39824)
+ Object.keys(u).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === u[e]) || (t[e] = u[e]))
+ })
+ var c = n(4867)
+ Object.keys(c).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === c[e]) || (t[e] = c[e]))
+ })
+ var l = n(93138)
+ t.omitThemingProps = l.omitThemingProps
+ var d = n(40065)
+ Object.keys(d).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === d[e]) || (t[e] = d[e]))
+ })
+ var f = n(15867)
+ Object.keys(f).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === f[e]) || (t[e] = f[e]))
+ })
+ var h = n(80011)
+ Object.keys(h).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) || (e in t && t[e] === h[e]) || (t[e] = h[e]))
+ })
+ var p = n(99214)
+ t.shouldForwardProp = p.shouldForwardProp
+ },
+ 4867: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useTheme = function () {
+ var e = u.useContext(s.ThemeContext)
+ if (!e)
+ throw Error(
+ 'useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`',
+ )
+ return e
+ }),
+ (t.GlobalStyle = t.useStyles = t.StylesProvider = t.ThemeProvider = void 0)
+ var r = n(12094),
+ o = n(39907),
+ i = n(66751),
+ a = n(19277),
+ s = n(70917),
+ u = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = c()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function c() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (c = function () {
+ return e
+ }),
+ e
+ )
+ }
+ t.ThemeProvider = function (e) {
+ var t = e.cssVarsRoot,
+ n = void 0 === t ? ':host, :root' : t,
+ r = e.theme,
+ i = e.children,
+ a = u.useMemo(
+ function () {
+ return (0, o.toCSSVar)(r)
+ },
+ [r],
)
+ return u.createElement(
+ s.ThemeProvider,
+ { theme: a },
+ u.createElement(s.Global, {
+ styles: function (e) {
+ var t
+ return ((t = {})[n] = e.__cssVars), t
+ },
+ }),
+ i,
+ )
+ }
+ var l = (0, a.createContext)({
+ name: 'StylesContext',
+ errorMessage:
+ 'useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` ',
}),
- d = n(2544),
- f = n(444),
- h = n(4199),
- p = c,
- v = function (e) {
- return 'theme' !== e
- },
- m = function (e) {
- return 'string' === typeof e && e.charCodeAt(0) > 96 ? p : v
- },
- g = function (e, t, n) {
- var r
- if (t) {
- var i = t.shouldForwardProp
- r =
- e.__emotion_forwardProp && i
- ? function (t) {
- return e.__emotion_forwardProp(t) && i(t)
- }
- : i
- }
- return 'function' !== typeof r && n && (r = e.__emotion_forwardProp), r
- },
- y = function e(t, n) {
- var r,
- i,
- o = t.__emotion_real === t,
- u = (o && t.__emotion_base) || t
- void 0 !== n && ((r = n.label), (i = n.target))
- var l = g(t, n, o),
- c = l || m(u),
- p = !c('as')
- return function () {
- var v = arguments,
- y = o && void 0 !== t.__emotion_styles ? t.__emotion_styles.slice(0) : []
- if ((void 0 !== r && y.push('label:' + r + ';'), null == v[0] || void 0 === v[0].raw))
- y.push.apply(y, v)
- else {
- 0, y.push(v[0][0])
- for (var b = v.length, w = 1; w < b; w++) y.push(v[w], v[0][w])
+ d = l[0],
+ f = l[1]
+ ;(t.useStyles = f), (t.StylesProvider = d)
+ t.GlobalStyle = function () {
+ var e = (0, r.useColorMode)().colorMode
+ return u.createElement(s.Global, {
+ styles: function (t) {
+ var n = (0, i.memoizedGet)(t, 'styles.global'),
+ r = (0, i.runIfFn)(n, { theme: t, colorMode: e })
+ if (r) {
+ var a = (0, o.css)(r)(t)
+ return a
}
- var x = (0, d.w)(function (e, t, n) {
- var r = (p && e.as) || u,
- o = '',
- s = [],
- v = e
- if (null == e.theme) {
- for (var g in ((v = {}), e)) v[g] = e[g]
- v.theme = (0, a.useContext)(d.T)
- }
- 'string' === typeof e.className
- ? (o = (0, f.f)(t.registered, s, e.className))
- : null != e.className && (o = e.className + ' ')
- var b = (0, h.O)(y.concat(s), t.registered, v)
- ;(0, f.M)(t, b, 'string' === typeof r)
- ;(o += t.key + '-' + b.name), void 0 !== i && (o += ' ' + i)
- var w = p && void 0 === l ? m(r) : c,
- x = {}
- for (var E in e) (p && 'as' === E) || (w(E) && (x[E] = e[E]))
- return (x.className = o), (x.ref = n), (0, a.createElement)(r, x)
- })
- return (
- (x.displayName =
- void 0 !== r
- ? r
- : 'Styled(' +
- ('string' === typeof u ? u : u.displayName || u.name || 'Component') +
- ')'),
- (x.defaultProps = t.defaultProps),
- (x.__emotion_real = x),
- (x.__emotion_base = u),
- (x.__emotion_styles = y),
- (x.__emotion_forwardProp = l),
- Object.defineProperty(x, 'toString', {
- value: function () {
- return '.' + i
- },
- }),
- (x.withComponent = function (t, r) {
- return e(t, s({}, n, r, { shouldForwardProp: g(x, r, !0) })).apply(void 0, y)
- }),
- x
- )
- }
- }.bind()
- ;[
+ },
+ })
+ }
+ },
+ 99214: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.shouldForwardProp = void 0)
+ var r = n(39907),
+ o = new Set(
+ [].concat(r.propNames, [
+ 'textStyle',
+ 'layerStyle',
+ 'apply',
+ 'isTruncated',
+ 'noOfLines',
+ 'focusBorderColor',
+ 'errorBorderColor',
+ 'as',
+ '__css',
+ 'css',
+ 'sx',
+ ]),
+ ),
+ i = new Set(['htmlWidth', 'htmlHeight', 'htmlSize'])
+ t.shouldForwardProp = function (e) {
+ return i.has(e) || !o.has(e)
+ }
+ },
+ 40065: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.styled = d), (t.chakra = t.toCSSObject = void 0)
+ var r,
+ o = n(39907),
+ i = n(66751),
+ a = (r = n(61194)) && r.__esModule ? r : { default: r },
+ s = n(99214),
+ u = n(93138)
+ function c(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ var l = function (e) {
+ var t = e.baseStyle
+ return function (e) {
+ e.theme
+ var n = e.css,
+ r = e.__css,
+ a = e.sx,
+ s = c(e, ['theme', 'css', '__css', 'sx']),
+ u = (0, i.objectFilter)(s, function (e, t) {
+ return (0, o.isStyleProp)(t)
+ }),
+ l = (0, i.runIfFn)(t, e),
+ d = Object.assign({}, r, l, (0, i.filterUndefined)(u), a),
+ f = (0, o.css)(d)(e.theme)
+ return n ? [f, n] : f
+ }
+ }
+ function d(e, t) {
+ var n = null != t ? t : {},
+ r = n.baseStyle,
+ o = c(n, ['baseStyle'])
+ o.shouldForwardProp || (o.shouldForwardProp = s.shouldForwardProp)
+ var i = l({ baseStyle: r })
+ return (0, a.default)(e, o)(i)
+ }
+ t.toCSSObject = l
+ var f = d
+ ;(t.chakra = f),
+ u.domElements.forEach(function (e) {
+ f[e] = f(e)
+ })
+ },
+ 39824: function () {},
+ 93138: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.omitThemingProps = function (e) {
+ return (0, r.omit)(e, ['styleConfig', 'size', 'variant', 'colorScheme'])
+ }),
+ (t.default = o),
+ (t.getDisplayName = function (e) {
+ return o(e)
+ ? 'chakra.' + e
+ : (function (e) {
+ return (
+ (!!r.__DEV__ && (0, r.isString)(e) && e) ||
+ (!(0, r.isString)(e) && e.displayName) ||
+ (!(0, r.isString)(e) && e.name) ||
+ 'ChakraComponent'
+ )
+ })(e)
+ }),
+ (t.domElements = void 0)
+ var r = n(66751)
+ function o(e) {
+ return (0, r.isString)(e) && (!r.__DEV__ || e.charAt(0) === e.charAt(0).toLowerCase())
+ }
+ t.domElements = [
'a',
- 'abbr',
- 'address',
- 'area',
+ 'b',
'article',
'aside',
- 'audio',
- 'b',
- 'base',
- 'bdi',
- 'bdo',
- 'big',
'blockquote',
- 'body',
- 'br',
'button',
- 'canvas',
'caption',
'cite',
+ 'circle',
'code',
- 'col',
- 'colgroup',
- 'data',
- 'datalist',
'dd',
- 'del',
- 'details',
- 'dfn',
- 'dialog',
'div',
'dl',
'dt',
- 'em',
- 'embed',
'fieldset',
'figcaption',
'figure',
@@ -6317,58 +14703,30 @@
'h4',
'h5',
'h6',
- 'head',
'header',
- 'hgroup',
'hr',
- 'html',
- 'i',
- 'iframe',
'img',
'input',
- 'ins',
'kbd',
- 'keygen',
'label',
- 'legend',
'li',
- 'link',
'main',
- 'map',
'mark',
- 'marquee',
- 'menu',
- 'menuitem',
- 'meta',
- 'meter',
'nav',
- 'noscript',
- 'object',
'ol',
- 'optgroup',
- 'option',
- 'output',
'p',
- 'param',
- 'picture',
+ 'path',
'pre',
- 'progress',
'q',
- 'rp',
- 'rt',
- 'ruby',
+ 'rect',
's',
- 'samp',
- 'script',
+ 'svg',
'section',
'select',
+ 'strong',
'small',
- 'source',
'span',
- 'strong',
- 'style',
'sub',
- 'summary',
'sup',
'table',
'tbody',
@@ -6377,40 +14735,128 @@
'tfoot',
'th',
'thead',
- 'time',
- 'title',
'tr',
- 'track',
- 'u',
'ul',
- 'var',
- 'video',
- 'wbr',
- 'circle',
- 'clipPath',
- 'defs',
- 'ellipse',
- 'foreignObject',
- 'g',
- 'image',
- 'line',
- 'linearGradient',
- 'mask',
- 'path',
- 'pattern',
- 'polygon',
- 'polyline',
- 'radialGradient',
- 'rect',
- 'stop',
- 'svg',
- 'text',
- 'tspan',
- ].forEach(function (e) {
- y[e] = y(e)
+ ]
+ },
+ 80011: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.useStyleConfig = u),
+ (t.useMultiStyleConfig = function (e, t) {
+ return u(e, t, { isMultiPart: !0 })
+ })
+ var r,
+ o = n(66751),
+ i = n(67294),
+ a = (r = n(69590)) && r.__esModule ? r : { default: r },
+ s = n(46063)
+ function u(e, t, n) {
+ var r, u
+ void 0 === t && (t = {}), void 0 === n && (n = {})
+ var c = t,
+ l = c.styleConfig,
+ d = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(c, ['styleConfig']),
+ f = (0, s.useChakra)(),
+ h = f.theme,
+ p = f.colorMode,
+ v = (0, o.memoizedGet)(h, 'components.' + e),
+ m = l || v,
+ g = (0, o.mergeWith)(
+ { theme: h, colorMode: p },
+ null != (r = null == m ? void 0 : m.defaultProps) ? r : {},
+ (0, o.filterUndefined)((0, o.omit)(d, ['children'])),
+ ),
+ y = (0, i.useRef)({})
+ return (0, i.useMemo)(
+ function () {
+ if (m) {
+ var e,
+ t,
+ r,
+ i,
+ s,
+ u,
+ c = (0, o.runIfFn)(null != (e = m.baseStyle) ? e : {}, g),
+ l = (0, o.runIfFn)(
+ null != (t = null == (r = m.variants) ? void 0 : r[g.variant]) ? t : {},
+ g,
+ ),
+ d = (0, o.runIfFn)(
+ null != (i = null == (s = m.sizes) ? void 0 : s[g.size]) ? i : {},
+ g,
+ ),
+ f = (0, o.mergeWith)({}, c, d, l)
+ null != (u = n) &&
+ u.isMultiPart &&
+ m.parts &&
+ m.parts.forEach(function (e) {
+ var t
+ f[e] = null != (t = f[e]) ? t : {}
+ }),
+ (0, a.default)(y.current, f) || (y.current = f)
+ }
+ return y.current
+ },
+ [m, g, null == (u = n) ? void 0 : u.isMultiPart],
+ )
+ }
+ },
+ 90063: function (e, t, n) {
+ 'use strict'
+ n.d(t, {
+ G: function () {
+ return o
+ },
+ })
+ var r = n(67294)
+ function o(e) {
+ return r.forwardRef(e)
+ }
+ },
+ 11180: function (e, t, n) {
+ 'use strict'
+ n.d(t, {
+ useTheme: function () {
+ return i.Fg
+ },
})
- var b = y,
- w = new Set([
+ var r = n(9421)
+ n.o(r, 'useTheme') &&
+ n.d(t, {
+ useTheme: function () {
+ return r.useTheme
+ },
+ })
+ var o = n(5070)
+ n.o(o, 'useTheme') &&
+ n.d(t, {
+ useTheme: function () {
+ return o.useTheme
+ },
+ })
+ var i = n(29676)
+ },
+ 89384: function (e, t, n) {
+ 'use strict'
+ n.d(t, {
+ m$: function () {
+ return f
+ },
+ })
+ var r = n(9421),
+ o = n(4651),
+ i = n(80658),
+ a = n(61194),
+ s = new Set([
...r.propNames,
'textStyle',
'layerStyle',
@@ -6424,54 +14870,54 @@
'css',
'sx',
]),
- x = new Set(['htmlWidth', 'htmlHeight', 'htmlSize']),
- E = (e) => x.has(e) || !w.has(e),
- k = n(5284)
- function _(e, t) {
+ u = new Set(['htmlWidth', 'htmlHeight', 'htmlSize']),
+ c = (e) => u.has(e) || !s.has(e),
+ l = n(55284)
+ function d(e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
}
- var T = function (e, t) {
+ var f = function (e, t) {
var n = null != t ? t : {},
- { baseStyle: a } = n,
- s = _(n, ['baseStyle'])
- s.shouldForwardProp || (s.shouldForwardProp = E)
- var u = ((e) => {
+ { baseStyle: s } = n,
+ u = d(n, ['baseStyle'])
+ u.shouldForwardProp || (u.shouldForwardProp = c)
+ var l = ((e) => {
var { baseStyle: t } = e
return (e) => {
var { css: n, __css: a, sx: s } = e,
- u = _(e, ['theme', 'css', '__css', 'sx']),
- l = (0, i.lw)(u, (e, t) => (0, r.isStyleProp)(t)),
- c = (0, o.Pu)(t, e),
- d = Object.assign({}, a, c, (0, i.YU)(l), s),
- f = (0, r.iv)(d)(e.theme)
- return n ? [f, n] : f
+ u = d(e, ['theme', 'css', '__css', 'sx']),
+ c = (0, o.lw)(u, (e, t) => (0, r.isStyleProp)(t)),
+ l = (0, i.Pu)(t, e),
+ f = Object.assign({}, a, l, (0, o.YU)(c), s),
+ h = (0, r.css)(f)(e.theme)
+ return n ? [h, n] : h
}
- })({ baseStyle: a })
- return b(e, s)(u)
+ })({ baseStyle: s })
+ return (0, a.default)(e, u)(l)
}
- k.t6.forEach((e) => {
- T[e] = T(e)
+ l.t6.forEach((e) => {
+ f[e] = f(e)
})
},
5070: function () {},
- 5284: function (e, t, n) {
+ 55284: function (e, t, n) {
'use strict'
n.d(t, {
t6: function () {
- return i
+ return o
},
Lr: function () {
- return o
+ return i
},
})
- var r = n(5505),
- i = [
+ var r = n(4651),
+ o = [
'a',
'b',
'article',
@@ -6532,7 +14978,7 @@
'tr',
'ul',
]
- function o(e) {
+ function i(e) {
return (0, r.CE)(e, ['styleConfig', 'size', 'variant', 'colorScheme'])
}
},
@@ -6546,15 +14992,15 @@
return p
},
})
- var r = n(5505),
- i = n(8554),
- o = n.n(i),
- a = n(658),
- s = n(7294),
- u = n(9590),
- l = n.n(u),
- c = n(4738),
- d = n(9676)
+ var r = n(4651),
+ o = n(38554),
+ i = n.n(o),
+ a = n(80658),
+ s = n(67294),
+ u = n(69590),
+ c = n.n(u),
+ l = n(24738),
+ d = n(29676)
function f() {
return (f =
Object.assign ||
@@ -6567,27 +15013,27 @@
}).apply(this, arguments)
}
function h() {
- return f({}, (0, c.If)(), { theme: (0, d.Fg)() })
+ return f({}, (0, l.If)(), { theme: (0, d.Fg)() })
}
function p(e, t, n) {
- var i, u
+ var o, u
void 0 === t && (t = {}), void 0 === n && (n = {})
- var { styleConfig: c } = t,
+ var { styleConfig: l } = t,
d = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(t, ['styleConfig']),
{ theme: f, colorMode: p } = h(),
v = (0, r.Wf)(f, 'components.' + e),
- m = c || v,
- g = o()(
+ m = l || v,
+ g = i()(
{ theme: f, colorMode: p },
- null != (i = null == m ? void 0 : m.defaultProps) ? i : {},
+ null != (o = null == m ? void 0 : m.defaultProps) ? o : {},
(0, r.YU)((0, r.CE)(d, ['children'])),
),
y = (0, s.useRef)({})
@@ -6596,16 +15042,16 @@
var e,
t,
r,
- i,
+ o,
s,
u,
- c = (0, a.Pu)(null != (e = m.baseStyle) ? e : {}, g),
+ l = (0, a.Pu)(null != (e = m.baseStyle) ? e : {}, g),
d = (0, a.Pu)(
null != (t = null == (r = m.variants) ? void 0 : r[g.variant]) ? t : {},
g,
),
- f = (0, a.Pu)(null != (i = null == (s = m.sizes) ? void 0 : s[g.size]) ? i : {}, g),
- h = o()({}, c, f, d)
+ f = (0, a.Pu)(null != (o = null == (s = m.sizes) ? void 0 : s[g.size]) ? o : {}, g),
+ h = i()({}, l, f, d)
null != (u = n) &&
u.isMultiPart &&
m.parts &&
@@ -6613,7 +15059,7 @@
var t
h[e] = null != (t = h[e]) ? t : {}
}),
- l()(y.current, h) || (y.current = h)
+ c()(y.current, h) || (y.current = h)
}
return y.current
}, [m, g, null == (u = n) ? void 0 : u.isMultiPart])
@@ -6622,26 +15068,148 @@
return p(e, t, { isMultiPart: !0 })
}
},
- 6699: function (e, t, n) {
+ 81820: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(45093)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ },
+ 45093: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.TagCloseButton = t.TagRightIcon = t.TagLeftIcon = t.TagLabel = t.Tag = void 0)
+ var r = n(29559),
+ o = n(48121),
+ i = n(66751),
+ a = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = s()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(67294))
+ function s() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (s = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function u() {
+ return (u =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ var c = (0, o.forwardRef)(function (e, t) {
+ var n = (0, o.useMultiStyleConfig)('Tag', e),
+ r = (0, o.omitThemingProps)(e),
+ i = u(
+ {
+ display: 'inline-flex',
+ verticalAlign: 'top',
+ alignItems: 'center',
+ maxWidth: '100%',
+ },
+ n.container,
+ )
+ return a.createElement(
+ o.StylesProvider,
+ { value: n },
+ a.createElement(o.chakra.span, u({ ref: t }, r, { __css: i })),
+ )
+ })
+ ;(t.Tag = c), i.__DEV__ && (c.displayName = 'Tag')
+ var l = (0, o.forwardRef)(function (e, t) {
+ var n = (0, o.useStyles)()
+ return a.createElement(o.chakra.span, u({ ref: t, isTruncated: !0 }, e, { __css: n.label }))
+ })
+ ;(t.TagLabel = l), i.__DEV__ && (l.displayName = 'TagLabel')
+ var d = (0, o.forwardRef)(function (e, t) {
+ return a.createElement(r.Icon, u({ ref: t, verticalAlign: 'top', marginEnd: '0.5rem' }, e))
+ })
+ ;(t.TagLeftIcon = d), i.__DEV__ && (d.displayName = 'TagLeftIcon')
+ var f = (0, o.forwardRef)(function (e, t) {
+ return a.createElement(
+ r.Icon,
+ u({ ref: t, verticalAlign: 'top', marginStart: '0.5rem' }, e),
+ )
+ })
+ ;(t.TagRightIcon = f), i.__DEV__ && (f.displayName = 'TagRightIcon')
+ var h = function (e) {
+ return a.createElement(
+ r.Icon,
+ u({ verticalAlign: 'inherit', viewBox: '0 0 512 512' }, e),
+ a.createElement('path', {
+ fill: 'currentColor',
+ d: 'M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z',
+ }),
+ )
+ }
+ i.__DEV__ && (h.displayName = 'TagCloseIcon')
+ var p = function (e) {
+ var t = e.isDisabled,
+ n = e.children,
+ r = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, ['isDisabled', 'children']),
+ i = u(
+ { display: 'flex', alignItems: 'center', justifyContent: 'center', outline: '0' },
+ (0, o.useStyles)().closeButton,
+ )
+ return a.createElement(
+ o.chakra.button,
+ u({}, r, { type: 'button', 'aria-label': 'close', disabled: t, __css: i }),
+ n || a.createElement(h, null),
+ )
+ }
+ ;(t.TagCloseButton = p), i.__DEV__ && (p.displayName = 'TagCloseButton')
+ },
+ 96699: function (e, t, n) {
'use strict'
n.d(t, {
u: function () {
- return S
+ return M
},
})
- var r = n(3459),
- i = n(7273),
- o = n(3782),
- a = n(63),
+ var r = n(23459),
+ o = n(67273),
+ i = n(89384),
+ a = n(90063),
s = n(2326),
- u = n(5284),
- l = n(9676),
- c = n(5505),
- d = n(3808),
- f = n(5415),
- h = n(7554),
- p = n(3869),
- v = n(7294),
+ u = n(55284),
+ c = n(29676),
+ l = n(4651),
+ d = n(73808),
+ f = n(65415),
+ h = n(11770),
+ p = n(53869),
+ v = n(67294),
m = {
exit: {
scale: 0.85,
@@ -6660,15 +15228,15 @@
},
},
},
- g = n(4860),
- y = n(4577),
- b = n(4941),
+ g = n(74860),
+ y = n(94577),
+ b = n(34941),
w = n(8931),
- x = n(658),
- E = n(8456),
- k = n(2947)
- function _() {
- return (_ =
+ _ = n(80658),
+ x = n(88456),
+ k = n(72947)
+ function E() {
+ return (E =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -6678,35 +15246,35 @@
return e
}).apply(this, arguments)
}
- function T(e) {
+ function O(e) {
void 0 === e && (e = {})
var {
openDelay: t = 0,
closeDelay: n = 0,
- closeOnClick: i = !0,
- closeOnMouseDown: o,
+ closeOnClick: o = !0,
+ closeOnMouseDown: i,
onOpen: a,
onClose: s,
placement: u,
- id: l,
- isOpen: c,
+ id: c,
+ isOpen: l,
defaultIsOpen: d,
arrowSize: f = 10,
arrowShadowColor: h,
arrowPadding: p,
modifiers: m,
- isDisabled: T,
- gutter: O,
+ isDisabled: O,
+ gutter: T,
offset: C,
} = e,
- S = (function (e, t) {
+ M = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, [
'openDelay',
'closeDelay',
@@ -6727,76 +15295,76 @@
'offset',
]),
{
- isOpen: A,
+ isOpen: S,
onOpen: P,
- onClose: M,
- } = (0, g.q)({ isOpen: c, defaultIsOpen: d, onOpen: a, onClose: s }),
+ onClose: j,
+ } = (0, g.q)({ isOpen: l, defaultIsOpen: d, onOpen: a, onClose: s }),
{
- referenceRef: R,
- getPopperProps: j,
- getArrowInnerProps: D,
- getArrowProps: L,
+ referenceRef: I,
+ getPopperProps: A,
+ getArrowInnerProps: R,
+ getArrowProps: D,
} = (0, w.D)({
- enabled: A,
+ enabled: S,
placement: u,
arrowPadding: p,
modifiers: m,
- gutter: O,
+ gutter: T,
offset: C,
}),
- N = (0, y.Me)(l, 'tooltip'),
- I = v.useRef(null),
+ L = (0, y.Me)(c, 'tooltip'),
+ N = v.useRef(null),
z = v.useRef(),
- H = v.useRef(),
- B = v.useCallback(() => {
- T || (z.current = window.setTimeout(P, t))
- }, [T, P, t]),
+ B = v.useRef(),
+ H = v.useCallback(() => {
+ O || (z.current = window.setTimeout(P, t))
+ }, [O, P, t]),
F = v.useCallback(() => {
- z.current && clearTimeout(z.current), (H.current = window.setTimeout(M, n))
- }, [n, M]),
+ z.current && clearTimeout(z.current), (B.current = window.setTimeout(j, n))
+ }, [n, j]),
V = v.useCallback(() => {
- i && F()
- }, [i, F]),
- U = v.useCallback(() => {
o && F()
- }, [o, F])
+ }, [o, F]),
+ W = v.useCallback(() => {
+ i && F()
+ }, [i, F])
;(0, b.O)('keydown', (e) => {
- A && 'Escape' === e.key && F()
+ S && 'Escape' === e.key && F()
}),
v.useEffect(
() => () => {
- clearTimeout(z.current), clearTimeout(H.current)
+ clearTimeout(z.current), clearTimeout(B.current)
},
[],
),
- (0, b.O)('mouseleave', F, I.current)
- var G = v.useCallback(
+ (0, b.O)('mouseleave', F, N.current)
+ var U = v.useCallback(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- _({}, e, {
- ref: (0, k.l)(I, t, R),
- onMouseEnter: (0, x.v0)(e.onMouseEnter, B),
- onClick: (0, x.v0)(e.onClick, V),
- onMouseDown: (0, x.v0)(e.onMouseDown, U),
- onFocus: (0, x.v0)(e.onFocus, B),
- onBlur: (0, x.v0)(e.onBlur, F),
- 'aria-describedby': A ? N : void 0,
+ E({}, e, {
+ ref: (0, k.l)(N, t, I),
+ onMouseEnter: (0, _.v0)(e.onMouseEnter, H),
+ onClick: (0, _.v0)(e.onClick, V),
+ onMouseDown: (0, _.v0)(e.onMouseDown, W),
+ onFocus: (0, _.v0)(e.onFocus, H),
+ onBlur: (0, _.v0)(e.onBlur, F),
+ 'aria-describedby': S ? L : void 0,
})
)
},
- [B, F, U, A, N, V, R],
+ [H, F, W, S, L, V, I],
),
- q = v.useCallback(
+ G = v.useCallback(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- j(
- _({}, e, {
- style: _({}, e.style, {
- [r.Dq.arrowSize.var]: f ? (0, E.px)(f) : void 0,
+ A(
+ E({}, e, {
+ style: E({}, e.style, {
+ [r.Dq.arrowSize.var]: f ? (0, x.px)(f) : void 0,
[r.Dq.arrowShadowColor.var]: h,
}),
}),
@@ -6804,38 +15372,38 @@
)
)
},
- [j, f, h],
+ [A, f, h],
),
- W = v.useCallback(
+ q = v.useCallback(
function (e, t) {
return (
void 0 === e && (e = {}),
void 0 === t && (t = null),
- _({ ref: t }, S, e, {
- id: N,
+ E({ ref: t }, M, e, {
+ id: L,
role: 'tooltip',
- style: _({}, e.style, {
+ style: E({}, e.style, {
position: 'relative',
transformOrigin: r.Dq.transformOrigin.varRef,
}),
})
)
},
- [S, N],
+ [M, L],
)
return {
- isOpen: A,
- show: B,
+ isOpen: S,
+ show: H,
hide: F,
- getTriggerProps: G,
- getTooltipProps: W,
- getTooltipPositionerProps: q,
- getArrowProps: L,
- getArrowInnerProps: D,
+ getTriggerProps: U,
+ getTooltipProps: q,
+ getTooltipPositionerProps: G,
+ getArrowProps: D,
+ getArrowInnerProps: R,
}
}
- function O() {
- return (O =
+ function T() {
+ return (T =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -6845,28 +15413,28 @@
return e
}).apply(this, arguments)
}
- var C = (0, o.m$)(h.E.div),
- S = (0, a.G)((e, t) => {
+ var C = (0, i.m$)(h.E.div),
+ M = (0, a.G)((e, t) => {
var n = (0, s.m)('Tooltip', e),
a = (0, u.Lr)(e),
- h = (0, l.Fg)(),
+ h = (0, c.Fg)(),
{
children: g,
label: y,
shouldWrapChildren: b,
'aria-label': w,
- hasArrow: x,
- bg: E,
+ hasArrow: _,
+ bg: x,
portalProps: k,
} = a,
- _ = (function (e, t) {
+ E = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(a, [
'children',
'label',
@@ -6876,54 +15444,54 @@
'bg',
'portalProps',
])
- E && ((n.bg = E), (n[r.Dq.arrowBg.var] = (0, c.K1)(h, 'colors', E)))
- var S,
- A = T(_)
+ x && ((n.bg = x), (n[r.Dq.arrowBg.var] = (0, l.K1)(h, 'colors', x)))
+ var M,
+ S = O(E)
if ((0, d.HD)(g) || b)
- S = v.createElement(o.m$.span, O({ tabIndex: 0 }, A.getTriggerProps()), g)
+ M = v.createElement(i.m$.span, T({ tabIndex: 0 }, S.getTriggerProps()), g)
else {
var P = v.Children.only(g)
- S = v.cloneElement(P, A.getTriggerProps(P.props, P.ref))
+ M = v.cloneElement(P, S.getTriggerProps(P.props, P.ref))
}
- var M = !!w,
- R = A.getTooltipProps({}, t),
- j = M ? (0, c.CE)(R, ['role', 'id']) : R,
- D = (0, c.ei)(R, ['role', 'id'])
+ var j = !!w,
+ I = S.getTooltipProps({}, t),
+ A = j ? (0, l.CE)(I, ['role', 'id']) : I,
+ R = (0, l.ei)(I, ['role', 'id'])
return y
? v.createElement(
v.Fragment,
null,
- S,
+ M,
v.createElement(
p.M,
null,
- A.isOpen &&
+ S.isOpen &&
v.createElement(
- i.h,
+ o.h,
k,
v.createElement(
- o.m$.div,
- O({}, A.getTooltipPositionerProps(), {
+ i.m$.div,
+ T({}, S.getTooltipPositionerProps(), {
__css: { zIndex: n.zIndex, pointerEvents: 'none' },
}),
v.createElement(
C,
- O({ variants: m }, j, {
+ T({ variants: m }, A, {
initial: 'exit',
animate: 'enter',
exit: 'exit',
__css: n,
}),
y,
- M && v.createElement(f.TX, D, w),
- x &&
+ j && v.createElement(f.TX, R, w),
+ _ &&
v.createElement(
- o.m$.div,
+ i.m$.div,
{
'data-popper-arrow': !0,
className: 'chakra-tooltip__arrow-wrapper',
},
- v.createElement(o.m$.div, {
+ v.createElement(i.m$.div, {
'data-popper-arrow-inner': !0,
className: 'chakra-tooltip__arrow',
__css: { bg: n.bg },
@@ -6936,24 +15504,24 @@
)
: v.createElement(v.Fragment, null, g)
})
- d.Ts && (S.displayName = 'Tooltip')
+ d.Ts && (M.displayName = 'Tooltip')
},
- 5267: function (e, t, n) {
+ 15267: function (e, t, n) {
'use strict'
n.d(t, {
U: function () {
return v
},
})
- var r = n(658),
- i = n(8554),
- o = n.n(i),
- a = n(4461),
- s = n(3808),
- u = n(3869),
- l = n(7554),
- c = n(7294),
- d = n(4722)
+ var r = n(80658),
+ o = n(38554),
+ i = n.n(o),
+ a = n(84461),
+ s = n(73808),
+ u = n(53869),
+ c = n(11770),
+ l = n(67294),
+ d = n(24722)
function f() {
return (f =
Object.assign ||
@@ -6981,36 +15549,36 @@
n,
{
animateOpacity: r,
- startingHeight: i,
- transition: o,
+ startingHeight: o,
+ transition: i,
transitionEnd: a,
delay: s,
} = e
return f(
{},
- r && { opacity: ((n = i), null != n && parseInt(n.toString(), 10) > 0 ? 1 : 0) },
+ r && { opacity: ((n = o), null != n && parseInt(n.toString(), 10) > 0 ? 1 : 0) },
{
overflow: 'hidden',
- height: i,
+ height: o,
transitionEnd: null == a ? void 0 : a.exit,
- transition: null != (t = null == o ? void 0 : o.exit) ? t : d.p$.exit(h.exit, s),
+ transition: null != (t = null == i ? void 0 : i.exit) ? t : d.p$.exit(h.exit, s),
},
)
},
enter: (e) => {
var t,
- { animateOpacity: n, endingHeight: r, transition: i, transitionEnd: o, delay: a } = e
+ { animateOpacity: n, endingHeight: r, transition: o, transitionEnd: i, delay: a } = e
return f({}, n && { opacity: 1 }, {
height: r,
- transitionEnd: null == o ? void 0 : o.enter,
- transition: null != (t = null == i ? void 0 : i.enter) ? t : d.p$.enter(h.enter, a),
+ transitionEnd: null == i ? void 0 : i.enter,
+ transition: null != (t = null == o ? void 0 : o.enter) ? t : d.p$.enter(h.enter, a),
})
},
},
- v = c.forwardRef((e, t) => {
+ v = l.forwardRef((e, t) => {
var {
in: n,
- unmountOnExit: i,
+ unmountOnExit: o,
animateOpacity: s = !0,
startingHeight: d = 0,
endingHeight: h = 'auto',
@@ -7023,10 +15591,10 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, [
'in',
'unmountOnExit',
@@ -7038,44 +15606,44 @@
'transition',
'transitionEnd',
]),
- [w, x] = c.useState(!1)
- c.useEffect(() => {
+ [w, _] = l.useState(!1)
+ l.useEffect(() => {
var e = setTimeout(() => {
- x(!0)
+ _(!0)
})
return () => clearTimeout(e)
}, []),
(0, r.ZK)({
- condition: Boolean(d > 0 && i),
+ condition: Boolean(d > 0 && o),
message:
"startingHeight and unmountOnExit are mutually exclusive. You can't use them together",
})
- var E = parseFloat(d.toString()) > 0,
+ var x = parseFloat(d.toString()) > 0,
k = {
startingHeight: d,
endingHeight: h,
animateOpacity: s,
transition: w ? g : { enter: { duration: 0 } },
- transitionEnd: o()(y, {
+ transitionEnd: i()(y, {
enter: { overflow: 'initial' },
- exit: i ? void 0 : { display: E ? 'block' : 'none' },
+ exit: o ? void 0 : { display: x ? 'block' : 'none' },
}),
},
- _ = !i || n,
- T = n || i ? 'enter' : 'exit'
- return c.createElement(
+ E = !o || n,
+ O = n || o ? 'enter' : 'exit'
+ return l.createElement(
u.M,
{ initial: !1, custom: k },
- _ &&
- c.createElement(
- l.E.div,
+ E &&
+ l.createElement(
+ c.E.div,
f({ ref: t }, b, {
className: (0, a.cx)('chakra-collapse', m),
style: f({ overflow: 'hidden', display: 'block' }, v),
custom: k,
variants: p,
- initial: !!i && 'exit',
- animate: T,
+ initial: !!o && 'exit',
+ animate: O,
exit: 'exit',
}),
),
@@ -7083,21 +15651,21 @@
})
s.Ts && (v.displayName = 'Collapse')
},
- 454: function (e, t, n) {
+ 90454: function (e, t, n) {
'use strict'
n.d(t, {
R: function () {
return d
},
})
- var r = n(4461),
- i = n(3808),
- o = n(3869),
- a = n(7554),
- s = n(7294),
- u = n(4722)
- function l() {
- return (l =
+ var r = n(84461),
+ o = n(73808),
+ i = n(53869),
+ a = n(11770),
+ s = n(67294),
+ u = n(24722)
+ function c() {
+ return (c =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -7107,31 +15675,31 @@
return e
}).apply(this, arguments)
}
- var c = {
+ var l = {
initial: 'initial',
animate: 'enter',
exit: 'exit',
variants: {
initial: (e) => {
var t,
- { offsetX: n, offsetY: r, transition: i, transitionEnd: o, delay: a } = e
+ { offsetX: n, offsetY: r, transition: o, transitionEnd: i, delay: a } = e
return {
opacity: 0,
x: n,
y: r,
- transition: null != (t = null == i ? void 0 : i.exit) ? t : u.p$.exit(u.R.exit, a),
- transitionEnd: null == o ? void 0 : o.exit,
+ transition: null != (t = null == o ? void 0 : o.exit) ? t : u.p$.exit(u.R.exit, a),
+ transitionEnd: null == i ? void 0 : i.exit,
}
},
enter: (e) => {
var t,
- { transition: n, transitionEnd: r, delay: i } = e
+ { transition: n, transitionEnd: r, delay: o } = e
return {
opacity: 1,
x: 0,
y: 0,
transition:
- null != (t = null == n ? void 0 : n.enter) ? t : u.p$.enter(u.R.enter, i),
+ null != (t = null == n ? void 0 : n.enter) ? t : u.p$.enter(u.R.enter, o),
transitionEnd: null == r ? void 0 : r.enter,
}
},
@@ -7140,21 +15708,21 @@
{
offsetY: n,
offsetX: r,
- transition: i,
- transitionEnd: o,
+ transition: o,
+ transitionEnd: i,
reverse: a,
delay: s,
} = e,
- c = { x: r, y: n }
- return l(
+ l = { x: r, y: n }
+ return c(
{
opacity: 0,
transition:
- null != (t = null == i ? void 0 : i.exit) ? t : u.p$.exit(u.R.exit, s),
+ null != (t = null == o ? void 0 : o.exit) ? t : u.p$.exit(u.R.exit, s),
},
a
- ? l({}, c, { transitionEnd: null == o ? void 0 : o.exit })
- : { transitionEnd: l({}, c, null == o ? void 0 : o.exit) },
+ ? c({}, l, { transitionEnd: null == i ? void 0 : i.exit })
+ : { transitionEnd: c({}, l, null == i ? void 0 : i.exit) },
)
},
},
@@ -7162,7 +15730,7 @@
d = s.forwardRef((e, t) => {
var {
unmountOnExit: n,
- in: i,
+ in: o,
reverse: u = !0,
className: d,
offsetX: f = 0,
@@ -7175,10 +15743,10 @@
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, [
'unmountOnExit',
'in',
@@ -7190,31 +15758,31 @@
'transitionEnd',
'delay',
]),
- y = !n || (i && n),
- b = i || n ? 'enter' : 'exit',
+ y = !n || (o && n),
+ b = o || n ? 'enter' : 'exit',
w = { offsetX: f, offsetY: h, reverse: u, transition: p, transitionEnd: v, delay: m }
return s.createElement(
- o.M,
+ i.M,
{ custom: w },
y &&
s.createElement(
a.E.div,
- l(
+ c(
{ ref: t, className: (0, r.cx)('chakra-offset-slide', d), custom: w },
- c,
+ l,
{ animate: b },
g,
),
),
)
})
- i.Ts && (d.displayName = 'SlideFade')
+ o.Ts && (d.displayName = 'SlideFade')
},
- 4722: function (e, t, n) {
+ 24722: function (e, t, n) {
'use strict'
n.d(t, {
YI: function () {
- return o
+ return i
},
R: function () {
return a
@@ -7223,9 +15791,9 @@
return s
},
})
- var r = n(3808)
- function i() {
- return (i =
+ var r = n(73808)
+ function o() {
+ return (o =
Object.assign ||
function (e) {
for (var t = 1; t < arguments.length; t++) {
@@ -7235,41 +15803,1349 @@
return e
}).apply(this, arguments)
}
- var o = {
+ var i = {
ease: [0.25, 0.1, 0.25, 1],
easeIn: [0.4, 0, 1, 1],
easeOut: [0, 0, 0.2, 1],
easeInOut: [0.4, 0, 0.2, 1],
}
var a = {
- enter: { duration: 0.2, ease: o.easeOut },
- exit: { duration: 0.1, ease: o.easeIn },
+ enter: { duration: 0.2, ease: i.easeOut },
+ exit: { duration: 0.1, ease: i.easeIn },
},
s = {
- enter: (e, t) => i({}, e, { delay: (0, r.hj)(t) ? t : null == t ? void 0 : t.enter }),
- exit: (e, t) => i({}, e, { delay: (0, r.hj)(t) ? t : null == t ? void 0 : t.exit }),
+ enter: (e, t) => o({}, e, { delay: (0, r.hj)(t) ? t : null == t ? void 0 : t.enter }),
+ exit: (e, t) => o({}, e, { delay: (0, r.hj)(t) ? t : null == t ? void 0 : t.exit }),
+ }
+ },
+ 4706: function (e, t) {
+ 'use strict'
+ function n(e, t, n, r) {
+ void 0 === n && (n = 1), void 0 === r && (r = !0)
+ var o = t - 1
+ if (-1 === e) return n > 0 ? 0 : o
+ var i = e + n
+ return i < 0 ? (r ? o : 0) : i >= t ? (r ? 0 : e > t ? t : e) : i
+ }
+ function r(e, t, r) {
+ return void 0 === r && (r = !0), n(e, t, -1, r)
+ }
+ ;(t.__esModule = !0),
+ (t.getFirstItem = function (e) {
+ return null != e && e.length ? e[0] : void 0
+ }),
+ (t.getLastItem = function (e) {
+ var t = null == e ? 0 : e.length
+ return t ? e[t - 1] : void 0
+ }),
+ (t.getPrevItem = function (e, t, n) {
+ void 0 === n && (n = !0)
+ var o = r(e, t.length, n)
+ return t[o]
+ }),
+ (t.getNextItem = function (e, t, r) {
+ void 0 === r && (r = !0)
+ var o = n(e, t.length, 1, r)
+ return t[o]
+ }),
+ (t.removeIndex = function (e, t) {
+ return e.filter(function (e, n) {
+ return n !== t
+ })
+ }),
+ (t.addItem = function (e, t) {
+ return [].concat(e, [t])
+ }),
+ (t.removeItem = function (e, t) {
+ return e.filter(function (e) {
+ return e !== t
+ })
+ }),
+ (t.getNextIndex = n),
+ (t.getPrevIndex = r),
+ (t.chunk = function (e, t) {
+ return e.reduce(function (e, n, r) {
+ return r % t === 0 ? e.push([n]) : e[e.length - 1].push(n), e
+ }, [])
+ }),
+ (t.getNextItemFromSearch = function (e, t, n, r) {
+ if (null == t) return r
+ if (!r) {
+ return e.find(function (e) {
+ return n(e).toLowerCase().startsWith(t.toLowerCase())
+ })
+ }
+ var o = e.filter(function (e) {
+ return n(e).toLowerCase().startsWith(t.toLowerCase())
+ })
+ if (o.length > 0) {
+ var i
+ if (o.includes(r)) {
+ var a = o.indexOf(r)
+ return (i = a + 1) === o.length && (i = 0), o[i]
+ }
+ return (i = e.indexOf(o[0])), e[i]
+ }
+ return r
+ })
+ },
+ 22229: function (e, t) {
+ 'use strict'
+ function n(e) {
+ return Array.isArray(e)
+ }
+ function r(e) {
+ return n(e) && 0 === e.length
+ }
+ function o(e) {
+ var t = typeof e
+ return null != e && ('object' === t || 'function' === t) && !n(e)
+ }
+ function i(e) {
+ return o(e) && 0 === Object.keys(e).length
+ }
+ ;(t.__esModule = !0),
+ (t.isNumber = function (e) {
+ return 'number' === typeof e
+ }),
+ (t.isNotNumber = function (e) {
+ return 'number' !== typeof e || Number.isNaN(e) || !Number.isFinite(e)
+ }),
+ (t.isNumeric = function (e) {
+ return null != e && e - parseFloat(e) + 1 >= 0
+ }),
+ (t.isArray = n),
+ (t.isEmptyArray = r),
+ (t.isFunction = function (e) {
+ return 'function' === typeof e
+ }),
+ (t.isDefined = function (e) {
+ return 'undefined' !== typeof e && void 0 !== e
+ }),
+ (t.isUndefined = function (e) {
+ return 'undefined' === typeof e || void 0 === e
+ }),
+ (t.isObject = o),
+ (t.isEmptyObject = i),
+ (t.isNotEmptyObject = function (e) {
+ return e && !i(e)
+ }),
+ (t.isNull = function (e) {
+ return null == e
+ }),
+ (t.isString = function (e) {
+ return '[object String]' === Object.prototype.toString.call(e)
+ }),
+ (t.isCssVar = function (e) {
+ return /^var\(--.+\)$/.test(e)
+ }),
+ (t.isEmpty = function (e) {
+ return n(e) ? r(e) : o(e) ? i(e) : null == e || '' === e
+ }),
+ (t.isRefObject = function (e) {
+ return 'current' in e
+ }),
+ (t.isInputEvent = function (e) {
+ return e && o(e) && o(e.target)
+ }),
+ (t.__TEST__ = t.__DEV__ = void 0)
+ t.__DEV__ = !1
+ t.__TEST__ = !1
+ },
+ 42402: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.px = a),
+ (t.analyzeBreakpoints = function (e) {
+ var t
+ if (!e) return null
+ e.base = null != (t = e.base) ? t : '0px'
+ var n = c(e),
+ i = Object.entries(e)
+ .sort(s)
+ .map(function (e, t, n) {
+ var r,
+ i = e[0],
+ s = e[1],
+ u = (null != (r = n[t + 1]) ? r : [])[1]
+ return {
+ breakpoint: i,
+ minW: s,
+ maxW: (u =
+ parseFloat(u) > 0
+ ? (function (e) {
+ var t
+ if (!e) return e
+ var n = (e = null != (t = a(e)) ? t : e).endsWith('px') ? -1 : -0.0635
+ return (0, o.isNumber)(e)
+ ? '' + (e + n)
+ : e.replace(/([0-9]+\.?[0-9]*)/, function (e) {
+ return '' + (parseFloat(e) + n)
+ })
+ })(u)
+ : void 0),
+ maxWQuery: l(null, u),
+ minWQuery: l(s),
+ minMaxQuery: l(s, u),
+ }
+ }),
+ d = (function (e) {
+ var t = Object.keys(u(e))
+ return new Set(t)
+ })(e),
+ f = Array.from(d.values())
+ return {
+ keys: d,
+ normalized: n,
+ isResponsive: function (e) {
+ var t = Object.keys(e)
+ return (
+ t.length > 0 &&
+ t.every(function (e) {
+ return d.has(e)
+ })
+ )
+ },
+ asObject: u(e),
+ asArray: c(e),
+ details: i,
+ media: [null].concat(
+ n
+ .map(function (e) {
+ return l(e)
+ })
+ .slice(1),
+ ),
+ toArrayValue: function (e) {
+ if (!(0, o.isObject)(e)) throw new Error('toArrayValue: value must be an object')
+ for (
+ var t = f.map(function (t) {
+ var n
+ return null != (n = e[t]) ? n : null
+ });
+ null === (0, r.getLastItem)(t);
+
+ )
+ t.pop()
+ return t
+ },
+ toObjectValue: function (e) {
+ if (!Array.isArray(e)) throw new Error('toObjectValue: value must be an array')
+ return e.reduce(function (e, t, n) {
+ var r = f[n]
+ return null != r && null != t && (e[r] = t), e
+ }, {})
+ },
+ }
+ })
+ var r = n(4706),
+ o = n(22229),
+ i = n(95963)
+ function a(e) {
+ return null == e
+ ? e
+ : (function (e) {
+ var t = parseFloat(e.toString()),
+ n = e.toString().replace(String(t), '')
+ return { unitless: !n, value: t, unit: n }
+ })(e).unitless || (0, o.isNumber)(e)
+ ? e + 'px'
+ : e
+ }
+ var s = function (e, t) {
+ return parseInt(e[1], 10) > parseInt(t[1], 10) ? 1 : -1
+ },
+ u = function (e) {
+ return (0, i.fromEntries)(Object.entries(e).sort(s))
}
+ function c(e) {
+ var t = u(e)
+ return Object.assign(Object.values(t), t)
+ }
+ function l(e, t) {
+ var n = []
+ return (
+ e && n.push('@media screen and (min-width: ' + a(e) + ')'),
+ n.length > 0 && t && n.push('and'),
+ t && n.push('@media screen and (max-width: ' + a(t) + ')'),
+ n.join(' ')
+ )
+ }
},
- 7248: function (e, t, n) {
+ 33211: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.getAllFocusable = i),
+ (t.getFirstFocusable = function (e) {
+ var t = i(e)
+ return t.length ? t[0] : null
+ }),
+ (t.getAllTabbable = a),
+ (t.getFirstTabbableIn = function (e, t) {
+ return a(e, t)[0] || null
+ }),
+ (t.getLastTabbableIn = function (e, t) {
+ var n = a(e, t)
+ return n[n.length - 1] || null
+ }),
+ (t.getNextTabbable = s),
+ (t.getPreviousTabbable = u),
+ (t.focusNextTabbable = function (e, t) {
+ var n = s(e, t)
+ n && (0, r.isHTMLElement)(n) && n.focus()
+ }),
+ (t.focusPreviousTabbable = function (e, t) {
+ var n = u(e, t)
+ n && (0, r.isHTMLElement)(n) && n.focus()
+ }),
+ (t.closest = function (e, t) {
+ if ('closest' in e) return e.closest(t)
+ do {
+ if (c(e, t)) return e
+ e = e.parentElement || e.parentNode
+ } while (null !== e && 1 === e.nodeType)
+ return null
+ })
+ var r = n(99162),
+ o = [
+ 'input:not([disabled])',
+ 'select:not([disabled])',
+ 'textarea:not([disabled])',
+ 'embed',
+ 'iframe',
+ 'object',
+ 'a[href]',
+ 'area[href]',
+ 'button:not([disabled])',
+ '[tabindex]',
+ 'audio[controls]',
+ 'video[controls]',
+ '*[tabindex]:not([aria-disabled])',
+ '*[contenteditable]',
+ ].join()
+ function i(e) {
+ var t = Array.from(e.querySelectorAll(o))
+ return (
+ t.unshift(e),
+ t.filter(r.isFocusable).filter(function (e) {
+ return 'none' !== window.getComputedStyle(e).display
+ })
+ )
+ }
+ function a(e, t) {
+ var n = Array.from(e.querySelectorAll(o)),
+ i = n.filter(r.isTabbable)
+ return (0, r.isTabbable)(e) && i.unshift(e), !i.length && t ? n : i
+ }
+ function s(e, t) {
+ var n = i(e),
+ o = n.indexOf(document.activeElement),
+ a = n.slice(o + 1)
+ return a.find(r.isTabbable) || n.find(r.isTabbable) || (t ? a[0] : null)
+ }
+ function u(e, t) {
+ var n = i(e).reverse(),
+ o = n.indexOf(document.activeElement),
+ a = n.slice(o + 1)
+ return a.find(r.isTabbable) || n.find(r.isTabbable) || (t ? a[0] : null)
+ }
+ function c(e, t) {
+ return 'matches' in e
+ ? e.matches(t)
+ : 'msMatchesSelector' in e
+ ? e.msMatchesSelector(t)
+ : e.webkitMatchesSelector(t)
+ }
+ },
+ 14576: function (e, t) {
+ 'use strict'
+ function n(e) {
+ var t
+ return e instanceof Element && null != (t = e.ownerDocument) ? t : document
+ }
+ function r() {
+ return !(
+ 'undefined' === typeof window ||
+ !window.document ||
+ !window.document.createElement
+ )
+ }
+ ;(t.__esModule = !0),
+ (t.getOwnerWindow = function (e) {
+ var t, r
+ return e instanceof Element && null != (t = null == (r = n(e)) ? void 0 : r.defaultView)
+ ? t
+ : window
+ }),
+ (t.getOwnerDocument = n),
+ (t.canUseDOM = r),
+ (t.getActiveElement = i),
+ (t.contains = function (e, t) {
+ return !!e && (e === t || e.contains(t))
+ }),
+ (t.addDomEvent = function (e, t, n, r) {
+ return (
+ e.addEventListener(t, n, r),
+ function () {
+ e.removeEventListener(t, n, r)
+ }
+ )
+ }),
+ (t.normalizeEventKey = function (e) {
+ var t = e.key,
+ n = e.keyCode
+ return n >= 37 && n <= 40 && 0 !== t.indexOf('Arrow') ? 'Arrow' + t : t
+ }),
+ (t.getRelatedTarget = function (e) {
+ var t,
+ n,
+ r,
+ o = i(null != (t = e.target) ? t : e.currentTarget),
+ a = e.nativeEvent.explicitOriginalTarget
+ return null != (n = null != (r = e.relatedTarget) ? r : a) ? n : o
+ }),
+ (t.isRightClick = function (e) {
+ return 0 !== e.button
+ }),
+ (t.cx = t.ariaAttr = t.dataAttr = t.isBrowser = void 0)
+ var o = r()
+ t.isBrowser = o
+ t.dataAttr = function (e) {
+ return e ? '' : void 0
+ }
+ t.ariaAttr = function (e) {
+ return !!e || void 0
+ }
+ function i(e) {
+ var t = n(e)
+ return null == t ? void 0 : t.activeElement
+ }
+ t.cx = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return t.filter(Boolean).join(' ')
+ }
+ },
+ 86770: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.focus = function (e, t) {
+ void 0 === t && (t = {})
+ var n = t,
+ u = n.isActive,
+ c = void 0 === u ? i.isActiveElement : u,
+ l = n.nextTick,
+ d = n.preventScroll,
+ f = void 0 === d || d,
+ h = n.selectTextIfInput,
+ p = void 0 === h || h
+ if (!e || c(e)) return -1
+ function v() {
+ if (e) {
+ if (
+ (function () {
+ if (null == s) {
+ s = !1
+ try {
+ document.createElement('div').focus({
+ get preventScroll() {
+ return (s = !0), !0
+ },
+ })
+ } catch (e) {}
+ }
+ return s
+ })()
+ )
+ e.focus({ preventScroll: f })
+ else if ((e.focus(), f))
+ !(function (e) {
+ for (
+ var t,
+ n = (function (e, t) {
+ var n
+ if ('undefined' === typeof Symbol || null == e[Symbol.iterator]) {
+ if (
+ Array.isArray(e) ||
+ (n = (function (e, t) {
+ if (!e) return
+ if ('string' === typeof e) return a(e, t)
+ var n = Object.prototype.toString.call(e).slice(8, -1)
+ 'Object' === n && e.constructor && (n = e.constructor.name)
+ if ('Map' === n || 'Set' === n) return Array.from(e)
+ if (
+ 'Arguments' === n ||
+ /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
+ )
+ return a(e, t)
+ })(e)) ||
+ (t && e && 'number' === typeof e.length)
+ ) {
+ n && (e = n)
+ var r = 0
+ return function () {
+ return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] }
+ }
+ }
+ throw new TypeError(
+ 'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
+ )
+ }
+ return (n = e[Symbol.iterator]()).next.bind(n)
+ })(e);
+ !(t = n()).done;
+
+ ) {
+ var r = t.value,
+ o = r.element,
+ i = r.scrollTop,
+ s = r.scrollLeft
+ ;(o.scrollTop = i), (o.scrollLeft = s)
+ }
+ })(
+ (function (e) {
+ var t = (0, r.getOwnerDocument)(e),
+ n = e.parentNode,
+ o = [],
+ i = t.scrollingElement || t.documentElement
+ for (; n instanceof HTMLElement && n !== i; )
+ (n.offsetHeight < n.scrollHeight || n.offsetWidth < n.scrollWidth) &&
+ o.push({ element: n, scrollTop: n.scrollTop, scrollLeft: n.scrollLeft }),
+ (n = n.parentNode)
+ i instanceof HTMLElement &&
+ o.push({ element: i, scrollTop: i.scrollTop, scrollLeft: i.scrollLeft })
+ return o
+ })(e),
+ )
+ ;(0, i.isInputElement)(e) && p && e.select()
+ } else
+ (0, o.warn)({
+ condition: !0,
+ message: "[chakra-ui]: can't call focus() on `null` or `undefined` element",
+ })
+ }
+ if (l) return requestAnimationFrame(v)
+ return v(), -1
+ })
+ var r = n(14576),
+ o = n(25981),
+ i = n(99162)
+ function a(e, t) {
+ ;(null == t || t > e.length) && (t = e.length)
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
+ return r
+ }
+ var s = null
+ },
+ 25981: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.runIfFn = function (e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
+ n[o - 1] = arguments[o]
+ return (0, r.isFunction)(e) ? e.apply(void 0, n) : e
+ }),
+ (t.callAllHandlers = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return function (e) {
+ t.some(function (t) {
+ return null == t || t(e), null == e ? void 0 : e.defaultPrevented
+ })
+ }
+ }),
+ (t.callAll = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return function (e) {
+ t.forEach(function (t) {
+ null == t || t(e)
+ })
+ }
+ }),
+ (t.once = o),
+ (t.distance = function (e, t) {
+ if ((0, r.isNumber)(e) && (0, r.isNumber)(t)) return u(e, t)
+ if (c(e) && c(t)) {
+ var n = u(e.x, t.x),
+ o = u(e.y, t.y)
+ return Math.sqrt(Math.pow(n, 2) + Math.pow(o, 2))
+ }
+ return 0
+ }),
+ (t.pipe = t.scheduleMicrotask = t.error = t.warn = t.noop = t.compose = void 0)
+ var r = n(22229)
+ function o(e) {
+ var t
+ return function () {
+ if (e) {
+ for (var n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o]
+ ;(t = e.apply(this, r)), (e = null)
+ }
+ return t
+ }
+ }
+ t.compose = function (e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
+ n[r - 1] = arguments[r]
+ return n.reduce(function (e, t) {
+ return function () {
+ return e(t.apply(void 0, arguments))
+ }
+ }, e)
+ }
+ t.noop = function () {}
+ var i = o(function (e) {
+ return function () {
+ var t = e.condition,
+ n = e.message
+ t && r.__DEV__ && console.warn(n)
+ }
+ })
+ t.warn = i
+ var a = o(function (e) {
+ return function () {
+ var t = e.condition,
+ n = e.message
+ t && r.__DEV__ && console.error(n)
+ }
+ })
+ t.error = a
+ var s = r.__TEST__
+ ? function (e) {
+ return e()
+ }
+ : 'function' === typeof queueMicrotask
+ ? queueMicrotask
+ : function (e) {
+ Promise.resolve().then(e)
+ }
+ t.scheduleMicrotask = s
+ t.pipe = function () {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return function (e) {
+ return t.reduce(function (e, t) {
+ return t(e)
+ }, e)
+ }
+ }
+ var u = function (e, t) {
+ return Math.abs(e - t)
+ },
+ c = function (e) {
+ return 'x' in e && 'y' in e
+ }
+ },
+ 66751: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = n(78244)
+ Object.keys(r).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === r[e]) || (t[e] = r[e]))
+ })
+ var o = n(4706)
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === o[e]) || (t[e] = o[e]))
+ })
+ var i = n(22229)
+ Object.keys(i).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === i[e]) || (t[e] = i[e]))
+ })
+ var a = n(42402)
+ Object.keys(a).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === a[e]) || (t[e] = a[e]))
+ })
+ var s = n(14576)
+ Object.keys(s).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === s[e]) || (t[e] = s[e]))
+ })
+ var u = n(33211)
+ Object.keys(u).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === u[e]) || (t[e] = u[e]))
+ })
+ var c = n(86770)
+ Object.keys(c).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === c[e]) || (t[e] = c[e]))
+ })
+ var l = n(25981)
+ Object.keys(l).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === l[e]) || (t[e] = l[e]))
+ })
+ var d = n(65636)
+ Object.keys(d).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === d[e]) || (t[e] = d[e]))
+ })
+ var f = n(39407)
+ Object.keys(f).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === f[e]) || (t[e] = f[e]))
+ })
+ var h = n(95963)
+ Object.keys(h).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === h[e]) || (t[e] = h[e]))
+ })
+ var p = n(52952)
+ Object.keys(p).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === p[e]) || (t[e] = p[e]))
+ })
+ var v = n(91373)
+ Object.keys(v).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === v[e]) || (t[e] = v[e]))
+ })
+ var m = n(4535)
+ Object.keys(m).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === m[e]) || (t[e] = m[e]))
+ })
+ var g = n(99162)
+ Object.keys(g).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === g[e]) || (t[e] = g[e]))
+ })
+ var y = n(27489)
+ Object.keys(y).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === y[e]) || (t[e] = y[e]))
+ })
+ var b = n(58594)
+ Object.keys(b).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === b[e]) || (t[e] = b[e]))
+ })
+ var w = n(38140)
+ Object.keys(w).forEach(function (e) {
+ 'default' !== e && '__esModule' !== e && ((e in t && t[e] === w[e]) || (t[e] = w[e]))
+ })
+ },
+ 65636: function (e, t) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.determineLazyBehavior = function (e) {
+ var t = e.hasBeenSelected,
+ n = e.isLazy,
+ r = e.isSelected,
+ o = e.lazyBehavior,
+ i = void 0 === o ? 'unmount' : o
+ return !n || !!r || !('keepMounted' !== i || !t)
+ })
+ },
+ 39407: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.toPrecision = s),
+ (t.countDecimalPlaces = u),
+ (t.valueToPercent = function (e, t, n) {
+ return (100 * (e - t)) / (n - t)
+ }),
+ (t.percentToValue = function (e, t, n) {
+ return (n - t) * e + t
+ }),
+ (t.roundValueToStep = function (e, t, n) {
+ var r = Math.round((e - t) / n) * n + t,
+ o = u(n)
+ return s(r, o)
+ }),
+ (t.clampValue = function (e, t, n) {
+ return null == e
+ ? e
+ : ((0, o.warn)({ condition: n < t, message: 'clamp: max cannot be less than min' }),
+ Math.min(Math.max(e, t), n))
+ }),
+ (t.maxSafeInteger = t.minSafeInteger = void 0)
+ var r = n(22229),
+ o = n(25981),
+ i = Number.MIN_SAFE_INTEGER || -9007199254740991
+ t.minSafeInteger = i
+ var a = Number.MAX_SAFE_INTEGER || 9007199254740991
+ function s(e, t) {
+ var n = (function (e) {
+ var t = parseFloat(e)
+ return (0, r.isNotNumber)(t) ? 0 : t
+ })(e),
+ o = Math.pow(10, null != t ? t : 10)
+ return (n = Math.round(n * o) / o), t ? n.toFixed(t) : n.toString()
+ }
+ function u(e) {
+ if (!Number.isFinite(e)) return 0
+ for (var t = 1, n = 0; Math.round(e * t) / t !== e; ) (t *= 10), (n += 1)
+ return n
+ }
+ t.maxSafeInteger = a
+ },
+ 95963: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.omit = function (e, t) {
+ var n = {}
+ return (
+ Object.keys(e).forEach(function (r) {
+ t.includes(r) || (n[r] = e[r])
+ }),
+ n
+ )
+ }),
+ (t.pick = function (e, t) {
+ var n = {}
+ return (
+ t.forEach(function (t) {
+ t in e && (n[t] = e[t])
+ }),
+ n
+ )
+ }),
+ (t.split = function (e, t) {
+ var n = {},
+ r = {}
+ return (
+ Object.keys(e).forEach(function (o) {
+ t.includes(o) ? (n[o] = e[o]) : (r[o] = e[o])
+ }),
+ [n, r]
+ )
+ }),
+ (t.get = i),
+ (t.getWithDefault = function (e, t) {
+ return s(t, e, e)
+ }),
+ (t.objectFilter = u),
+ (t.getCSSVar =
+ t.fromEntries =
+ t.objectKeys =
+ t.filterUndefined =
+ t.memoizedGet =
+ t.memoize =
+ t.mergeWith =
+ void 0)
+ var r,
+ o = (r = n(38554)) && r.__esModule ? r : { default: r }
+ function i(e, t, n, r) {
+ var o = 'string' === typeof t ? t.split('.') : [t]
+ for (r = 0; r < o.length && e; r += 1) e = e[o[r]]
+ return void 0 === e ? n : e
+ }
+ t.mergeWith = o.default
+ var a = function (e) {
+ var t = new WeakMap()
+ return function (n, r, o, i) {
+ if ('undefined' === typeof n) return e(n, r, o)
+ t.has(n) || t.set(n, new Map())
+ var a = t.get(n)
+ if (a.has(r)) return a.get(r)
+ var s = e(n, r, o, i)
+ return a.set(r, s), s
+ }
+ }
+ t.memoize = a
+ var s = a(i)
+ function u(e, t) {
+ var n = {}
+ return (
+ Object.keys(e).forEach(function (r) {
+ var o = e[r]
+ t(o, r, e) && (n[r] = o)
+ }),
+ n
+ )
+ }
+ t.memoizedGet = s
+ t.filterUndefined = function (e) {
+ return u(e, function (e) {
+ return null !== e && void 0 !== e
+ })
+ }
+ t.objectKeys = function (e) {
+ return Object.keys(e)
+ }
+ t.fromEntries = function (e) {
+ return e.reduce(function (e, t) {
+ var n = t[0],
+ r = t[1]
+ return (e[n] = r), e
+ }, {})
+ }
+ t.getCSSVar = function (e, t, n) {
+ var r, o
+ return null != (r = null == (o = e.__cssMap[t + '.' + n]) ? void 0 : o.varRef) ? r : n
+ }
+ },
+ 52952: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0), (t.PanSession = void 0)
+ var r = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e))
+ return { default: e }
+ var t = a()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var i = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ i && (i.get || i.set) ? Object.defineProperty(n, o, i) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(84839)),
+ o = n(91373),
+ i = n(25981)
+ function a() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (a = function () {
+ return e
+ }),
+ e
+ )
+ }
+ function s() {
+ return (s =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function u(e, t, n) {
+ return (
+ t in e
+ ? Object.defineProperty(e, t, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (e[t] = n),
+ e
+ )
+ }
+ var c = (function () {
+ function e(e, t, n) {
+ var a = this
+ if (
+ (u(this, 'history', []),
+ u(this, 'startEvent', null),
+ u(this, 'lastEvent', null),
+ u(this, 'lastEventInfo', null),
+ u(this, 'handlers', {}),
+ u(this, 'removeListeners', i.noop),
+ u(this, 'threshold', 3),
+ u(this, 'updatePoint', function () {
+ if (a.lastEvent && a.lastEventInfo) {
+ var e = h(a.lastEventInfo, a.history),
+ t = null !== a.startEvent,
+ n = (0, i.distance)(e.offset, { x: 0, y: 0 }) >= a.threshold
+ if (t || n) {
+ var o = (0, r.getFrameData)().timestamp
+ a.history.push(s({}, e.point, { timestamp: o }))
+ var u = a.handlers,
+ c = u.onStart,
+ l = u.onMove
+ t || (null == c || c(a.lastEvent, e), (a.startEvent = a.lastEvent)),
+ null == l || l(a.lastEvent, e)
+ }
+ }
+ }),
+ u(this, 'onPointerMove', function (e, t) {
+ ;(a.lastEvent = e),
+ (a.lastEventInfo = t),
+ (0, o.isMouseEvent)(e) && 0 === e.buttons
+ ? a.onPointerUp(e, t)
+ : r.default.update(a.updatePoint, !0)
+ }),
+ u(this, 'onPointerUp', function (e, t) {
+ var n = h(t, a.history),
+ r = a.handlers,
+ o = r.onEnd,
+ i = r.onSessionEnd
+ null == i || i(e, n), a.end(), o && a.startEvent && (null == o || o(e, n))
+ }),
+ !(0, o.isMultiTouchEvent)(e))
+ ) {
+ ;(this.handlers = t), n && (this.threshold = n), e.stopPropagation(), e.preventDefault()
+ var c = (0, o.extractEventInfo)(e),
+ l = (0, r.getFrameData)().timestamp
+ this.history = [s({}, c.point, { timestamp: l })]
+ var d = t.onSessionStart
+ null == d || d(e, h(c, this.history)),
+ (this.removeListeners = (0, i.pipe)(
+ (0, o.addPointerEvent)(window, 'pointermove', this.onPointerMove),
+ (0, o.addPointerEvent)(window, 'pointerup', this.onPointerUp),
+ (0, o.addPointerEvent)(window, 'pointercancel', this.onPointerUp),
+ ))
+ }
+ }
+ var t = e.prototype
+ return (
+ (t.updateHandlers = function (e) {
+ this.handlers = e
+ }),
+ (t.end = function () {
+ var e
+ null == (e = this.removeListeners) || e.call(this),
+ r.cancelSync.update(this.updatePoint)
+ }),
+ e
+ )
+ })()
+ function l(e, t) {
+ return { x: e.x - t.x, y: e.y - t.y }
+ }
+ function d(e) {
+ return e[0]
+ }
+ function f(e) {
+ return e[e.length - 1]
+ }
+ function h(e, t) {
+ return {
+ point: e.point,
+ delta: l(e.point, f(t)),
+ offset: l(e.point, d(t)),
+ velocity: p(t, 0.1),
+ }
+ }
+ t.PanSession = c
+ function p(e, t) {
+ if (e.length < 2) return { x: 0, y: 0 }
+ for (
+ var n = e.length - 1,
+ r = null,
+ o = (function (e) {
+ return e[e.length - 1]
+ })(e);
+ n >= 0 && ((r = e[n]), !(o.timestamp - r.timestamp > 1e3 * t));
+
+ )
+ n--
+ if (!r) return { x: 0, y: 0 }
+ var i = (o.timestamp - r.timestamp) / 1e3
+ if (0 === i) return { x: 0, y: 0 }
+ var a = { x: (o.x - r.x) / i, y: (o.y - r.y) / i }
+ return a.x === 1 / 0 && (a.x = 0), a.y === 1 / 0 && (a.y = 0), a
+ }
+ },
+ 91373: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.isMouseEvent = function (e) {
+ if ('undefined' !== typeof PointerEvent && e instanceof PointerEvent)
+ return !('mouse' !== e.pointerType)
+ return e instanceof MouseEvent
+ }),
+ (t.isTouchEvent = o),
+ (t.extractEventInfo = u),
+ (t.getViewportPointFromEvent = function (e) {
+ return u(e, 'client')
+ }),
+ (t.getPointerEventName = f),
+ (t.addPointerEvent = function (e, t, n, o) {
+ return (0, r.addDomEvent)(e, f(t), c(n, 'pointerdown' === t), o)
+ }),
+ (t.isMultiTouchEvent = function (e) {
+ return o(e) && e.touches.length > 1
+ }),
+ (t.wrapPointerEventHandler = void 0)
+ var r = n(14576)
+ function o(e) {
+ return !!e.touches
+ }
+ var i = { pageX: 0, pageY: 0 }
+ function a(e, t) {
+ void 0 === t && (t = 'page')
+ var n = e.touches[0] || e.changedTouches[0] || i
+ return { x: n[t + 'X'], y: n[t + 'Y'] }
+ }
+ function s(e, t) {
+ return void 0 === t && (t = 'page'), { x: e[t + 'X'], y: e[t + 'Y'] }
+ }
+ function u(e, t) {
+ return void 0 === t && (t = 'page'), { point: o(e) ? a(e, t) : s(e, t) }
+ }
+ var c = function (e, t) {
+ void 0 === t && (t = !1)
+ var n,
+ r = function (t) {
+ return e(t, u(t))
+ }
+ return t
+ ? ((n = r),
+ function (e) {
+ var t = e instanceof MouseEvent
+ ;(!t || (t && 0 === e.button)) && n(e)
+ })
+ : r
+ }
+ t.wrapPointerEventHandler = c
+ var l = {
+ pointerdown: 'mousedown',
+ pointermove: 'mousemove',
+ pointerup: 'mouseup',
+ pointercancel: 'mousecancel',
+ pointerover: 'mouseover',
+ pointerout: 'mouseout',
+ pointerenter: 'mouseenter',
+ pointerleave: 'mouseleave',
+ },
+ d = {
+ pointerdown: 'touchstart',
+ pointermove: 'touchmove',
+ pointerup: 'touchend',
+ pointercancel: 'touchcancel',
+ }
+ function f(e) {
+ return r.isBrowser && null === window.onpointerdown
+ ? e
+ : r.isBrowser && null === window.ontouchstart
+ ? d[e]
+ : r.isBrowser && null === window.onmousedown
+ ? l[e]
+ : e
+ }
+ },
+ 4535: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.mapResponsive = function (e, t) {
+ if ((0, o.isArray)(e))
+ return e.map(function (e) {
+ return null === e ? null : t(e)
+ })
+ if ((0, o.isObject)(e))
+ return (0, i.objectKeys)(e).reduce(function (n, r) {
+ return (n[r] = t(e[r])), n
+ }, {})
+ if (null != e) return t(e)
+ return null
+ }),
+ (t.objectToArrayNotation = function (e, t) {
+ void 0 === t && (t = a)
+ var n = t.map(function (t) {
+ var n
+ return null != (n = e[t]) ? n : null
+ })
+ for (; null === (0, r.getLastItem)(n); ) n.pop()
+ return n
+ }),
+ (t.arrayToObjectNotation = function (e, t) {
+ void 0 === t && (t = a)
+ var n = {}
+ return (
+ e.forEach(function (e, r) {
+ var o = t[r]
+ null != e && (n[o] = e)
+ }),
+ n
+ )
+ }),
+ (t.isResponsiveObjectLike = function (e, t) {
+ void 0 === t && (t = a)
+ var n = Object.keys(e)
+ return (
+ n.length > 0 &&
+ n.every(function (e) {
+ return t.includes(e)
+ })
+ )
+ }),
+ (t.isCustomBreakpoint = t.breakpoints = void 0)
+ var r = n(4706),
+ o = n(22229),
+ i = n(95963),
+ a = Object.freeze(['base', 'sm', 'md', 'lg', 'xl', '2xl'])
+ t.breakpoints = a
+ t.isCustomBreakpoint = function (e) {
+ return Number.isNaN(Number(e))
+ }
+ },
+ 99162: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.isDisabled = a),
+ (t.isInputElement = function (e) {
+ return s(e) && 'input' === e.tagName.toLowerCase() && 'select' in e
+ }),
+ (t.isActiveElement = function (e) {
+ return (
+ (e instanceof HTMLElement ? (0, r.getOwnerDocument)(e) : document).activeElement === e
+ )
+ }),
+ (t.hasFocusWithin = function (e) {
+ return !!document.activeElement && e.contains(document.activeElement)
+ }),
+ (t.isHTMLElement = s),
+ (t.isHidden = u),
+ (t.isContentEditable = c),
+ (t.isFocusable = l),
+ (t.isTabbable = function (e) {
+ return !!e && s(e) && l(e) && !i(e)
+ }),
+ (t.hasNegativeTabIndex = t.hasTabIndex = t.hasDisplayNone = void 0)
+ var r = n(14576)
+ t.hasDisplayNone = function (e) {
+ return 'none' === window.getComputedStyle(e).display
+ }
+ var o = function (e) {
+ return e.hasAttribute('tabindex')
+ }
+ t.hasTabIndex = o
+ var i = function (e) {
+ return o(e) && -1 === e.tabIndex
+ }
+ function a(e) {
+ return (
+ !0 === Boolean(e.getAttribute('disabled')) ||
+ !0 === Boolean(e.getAttribute('aria-disabled'))
+ )
+ }
+ function s(e) {
+ return e instanceof HTMLElement
+ }
+ function u(e) {
+ return !(!e.parentElement || !u(e.parentElement)) || e.hidden
+ }
+ function c(e) {
+ var t = e.getAttribute('contenteditable')
+ return 'false' !== t && null != t
+ }
+ function l(e) {
+ if (!s(e) || u(e) || a(e)) return !1
+ var t = e.localName
+ if (['input', 'select', 'textarea', 'button'].indexOf(t) >= 0) return !0
+ var n = {
+ a: function () {
+ return e.hasAttribute('href')
+ },
+ audio: function () {
+ return e.hasAttribute('controls')
+ },
+ video: function () {
+ return e.hasAttribute('controls')
+ },
+ }
+ return t in n ? n[t]() : !!c(e) || o(e)
+ }
+ t.hasNegativeTabIndex = i
+ },
+ 27489: function () {},
+ 58594: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.detectDeviceType = function (e) {
+ var t = e.userAgent
+ return /(tablet)|(iPad)|(Nexus 9)/i.test(t)
+ ? 'tablet'
+ : /(mobi)/i.test(t)
+ ? 'phone'
+ : 'desktop'
+ }),
+ (t.detectOS = function (e) {
+ return (
+ !!r.isBrowser &&
+ (function (e) {
+ var t = e.userAgent,
+ n = e.platform
+ switch (!0) {
+ case /Android/.test(t):
+ return 'Android'
+ case /iPhone|iPad|iPod/.test(n):
+ return 'iOS'
+ case /Win/.test(n):
+ return 'Windows'
+ case /Mac/.test(n):
+ return 'Mac'
+ case /CrOS/.test(t):
+ return 'Chrome OS'
+ case /Firefox/.test(t):
+ return 'Firefox OS'
+ default:
+ return null
+ }
+ })(window.navigator) === e
+ )
+ }),
+ (t.detectBrowser = function (e) {
+ return (
+ !!r.isBrowser &&
+ (function (e) {
+ var t = e.userAgent,
+ n = e.vendor,
+ r = /(android)/i.test(t)
+ switch (!0) {
+ case /CriOS/.test(t):
+ return 'Chrome for iOS'
+ case /Edg\//.test(t):
+ return 'Edge'
+ case r && /Silk\//.test(t):
+ return 'Silk'
+ case /Chrome/.test(t) && /Google Inc/.test(n):
+ return 'Chrome'
+ case /Firefox\/\d+\.\d+$/.test(t):
+ return 'Firefox'
+ case r:
+ return 'AOSP'
+ case /MSIE|Trident/.test(t):
+ return 'IE'
+ case /Safari/.test(e.userAgent) && /Apple Computer/.test(t):
+ return 'Safari'
+ case /AppleWebKit/.test(t):
+ return 'WebKit'
+ default:
+ return null
+ }
+ })(window.navigator) === e
+ )
+ }),
+ (t.detectTouch = function () {
+ return (
+ !!r.isBrowser &&
+ null === window.ontouchstart &&
+ null === window.ontouchmove &&
+ null === window.ontouchend
+ )
+ })
+ var r = n(14576)
+ },
+ 38140: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.walkObject = function (e, t) {
+ return (function e(n, o) {
+ return (
+ void 0 === o && (o = []),
+ (0, r.isArray)(n)
+ ? n.map(function (t, n) {
+ return e(t, [].concat(o, [String(n)]))
+ })
+ : (0, r.isObject)(n)
+ ? Object.fromEntries(
+ Object.entries(n).map(function (t) {
+ var n = t[0]
+ return [n, e(t[1], [].concat(o, [n]))]
+ }),
+ )
+ : t(n, o)
+ )
+ })(e)
+ })
+ var r = n(22229)
+ },
+ 47248: function (e, t, n) {
'use strict'
n.d(t, {
T: function () {
return a
},
})
- var r = n(4461),
- i = n(658),
- o = n(7768)
+ var r = n(84461),
+ o = n(80658),
+ i = n(17768)
function a(e, t) {
void 0 === t && (t = {})
var {
- isActive: n = o.H9,
+ isActive: n = i.H9,
nextTick: a,
preventScroll: u = !0,
- selectTextIfInput: l = !0,
+ selectTextIfInput: c = !0,
} = t
if (!e || n(e)) return -1
- function c() {
+ function l() {
if (e) {
if (
(function () {
@@ -7295,44 +17171,44 @@
(function (e) {
var t = (0, r.lZ)(e),
n = e.parentNode,
- i = [],
- o = t.scrollingElement || t.documentElement
- for (; n instanceof HTMLElement && n !== o; )
+ o = [],
+ i = t.scrollingElement || t.documentElement
+ for (; n instanceof HTMLElement && n !== i; )
(n.offsetHeight < n.scrollHeight || n.offsetWidth < n.scrollWidth) &&
- i.push({ element: n, scrollTop: n.scrollTop, scrollLeft: n.scrollLeft }),
+ o.push({ element: n, scrollTop: n.scrollTop, scrollLeft: n.scrollLeft }),
(n = n.parentNode)
- o instanceof HTMLElement &&
- i.push({ element: o, scrollTop: o.scrollTop, scrollLeft: o.scrollLeft })
- return i
+ i instanceof HTMLElement &&
+ o.push({ element: i, scrollTop: i.scrollTop, scrollLeft: i.scrollLeft })
+ return o
})(e),
)
- ;(0, o.cK)(e) && l && e.select()
+ ;(0, i.cK)(e) && c && e.select()
} else
- (0, i.ZK)({
+ (0, o.ZK)({
condition: !0,
message: "[chakra-ui]: can't call focus() on `null` or `undefined` element",
})
}
- return a ? requestAnimationFrame(c) : (c(), -1)
+ return a ? requestAnimationFrame(l) : (l(), -1)
}
var s = null
},
- 7768: function (e, t, n) {
+ 17768: function (e, t, n) {
'use strict'
n.d(t, {
cK: function () {
- return o
+ return i
},
H9: function () {
return a
},
Wq: function () {
- return c
+ return l
},
})
- var r = n(4461),
- i = (e) => e.hasAttribute('tabindex')
- function o(e) {
+ var r = n(84461),
+ o = (e) => e.hasAttribute('tabindex')
+ function i(e) {
return s(e) && 'input' === e.tagName.toLowerCase() && 'select' in e
}
function a(e) {
@@ -7344,7 +17220,7 @@
function u(e) {
return !(!e.parentElement || !u(e.parentElement)) || e.hidden
}
- function l(e) {
+ function c(e) {
if (
!s(e) ||
u(e) ||
@@ -7368,25 +17244,89 @@
: !!(function (e) {
var t = e.getAttribute('contenteditable')
return 'false' !== t && null != t
- })(e) || i(e)
+ })(e) || o(e)
}
- function c(e) {
- return !!e && s(e) && l(e) && !((e) => i(e) && -1 === e.tabIndex)(e)
+ function l(e) {
+ return !!e && s(e) && c(e) && !((e) => o(e) && -1 === e.tabIndex)(e)
}
},
- 5415: function (e, t, n) {
+ 22944: function (e, t, n) {
+ 'use strict'
+ t.__esModule = !0
+ var r = {}
+ t.default = void 0
+ var o = (function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== typeof e && 'function' !== typeof e)) return { default: e }
+ var t = i()
+ if (t && t.has(e)) return t.get(e)
+ var n = {},
+ r = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var o in e)
+ if (Object.prototype.hasOwnProperty.call(e, o)) {
+ var a = r ? Object.getOwnPropertyDescriptor(e, o) : null
+ a && (a.get || a.set) ? Object.defineProperty(n, o, a) : (n[o] = e[o])
+ }
+ ;(n.default = e), t && t.set(e, n)
+ return n
+ })(n(13267))
+ function i() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (i = function () {
+ return e
+ }),
+ e
+ )
+ }
+ ;(t.default = o.default),
+ Object.keys(o).forEach(function (e) {
+ 'default' !== e &&
+ '__esModule' !== e &&
+ (Object.prototype.hasOwnProperty.call(r, e) ||
+ (e in t && t[e] === o[e]) ||
+ (t[e] = o[e]))
+ })
+ },
+ 13267: function (e, t, n) {
+ 'use strict'
+ ;(t.__esModule = !0),
+ (t.default = t.VisuallyHiddenInput = t.VisuallyHidden = t.visuallyHiddenStyle = void 0)
+ var r = n(48121),
+ o = n(66751),
+ i = {
+ border: '0px',
+ clip: 'rect(0px, 0px, 0px, 0px)',
+ height: '1px',
+ width: '1px',
+ margin: '-1px',
+ padding: '0px',
+ overflow: 'hidden',
+ whiteSpace: 'nowrap',
+ position: 'absolute',
+ }
+ t.visuallyHiddenStyle = i
+ var a = (0, r.chakra)('span', { baseStyle: i })
+ ;(t.VisuallyHidden = a), o.__DEV__ && (a.displayName = 'VisuallyHidden')
+ var s = (0, r.chakra)('input', { baseStyle: i })
+ ;(t.VisuallyHiddenInput = s), o.__DEV__ && (s.displayName = 'VisuallyHiddenInput')
+ var u = a
+ t.default = u
+ },
+ 65415: function (e, t, n) {
'use strict'
n.d(t, {
NL: function () {
- return o
+ return i
},
TX: function () {
return a
},
})
- var r = n(3782),
- i = n(3808),
- o = {
+ var r = n(89384),
+ o = n(73808),
+ i = {
border: '0px',
clip: 'rect(0px, 0px, 0px, 0px)',
height: '1px',
@@ -7397,21 +17337,21 @@
whiteSpace: 'nowrap',
position: 'absolute',
},
- a = (0, r.m$)('span', { baseStyle: o })
- i.Ts && (a.displayName = 'VisuallyHidden')
- var s = (0, r.m$)('input', { baseStyle: o })
- i.Ts && (s.displayName = 'VisuallyHiddenInput')
+ a = (0, r.m$)('span', { baseStyle: i })
+ o.Ts && (a.displayName = 'VisuallyHidden')
+ var s = (0, r.m$)('input', { baseStyle: i })
+ o.Ts && (s.displayName = 'VisuallyHiddenInput')
},
- 6600: function (e, t, n) {
+ 46600: function (e, t, n) {
'use strict'
n.d(t, {
Z: function () {
- return i
+ return o
},
})
var r =
/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,
- i = (function (e) {
+ o = (function (e) {
var t = {}
return function (n) {
return void 0 === t[n] && (t[n] = e(n)), t[n]
@@ -7423,20 +17363,264 @@
)
})
},
- 2351: function (e, t, n) {
+ 61194: function (e, t, n) {
+ 'use strict'
+ n.r(t),
+ n.d(t, {
+ default: function () {
+ return m
+ },
+ })
+ var r = n(67294),
+ o = n(22122),
+ i = n(67866),
+ a =
+ /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,
+ s = (0, i.Z)(function (e) {
+ return (
+ a.test(e) ||
+ (111 === e.charCodeAt(0) && 110 === e.charCodeAt(1) && e.charCodeAt(2) < 91)
+ )
+ }),
+ u = n(30495),
+ c = n(70444),
+ l = n(94199),
+ d = s,
+ f = function (e) {
+ return 'theme' !== e
+ },
+ h = function (e) {
+ return 'string' === typeof e && e.charCodeAt(0) > 96 ? d : f
+ },
+ p = function (e, t, n) {
+ var r
+ if (t) {
+ var o = t.shouldForwardProp
+ r =
+ e.__emotion_forwardProp && o
+ ? function (t) {
+ return e.__emotion_forwardProp(t) && o(t)
+ }
+ : o
+ }
+ return 'function' !== typeof r && n && (r = e.__emotion_forwardProp), r
+ },
+ v = function e(t, n) {
+ var i,
+ a,
+ s = t.__emotion_real === t,
+ d = (s && t.__emotion_base) || t
+ void 0 !== n && ((i = n.label), (a = n.target))
+ var f = p(t, n, s),
+ v = f || h(d),
+ m = !v('as')
+ return function () {
+ var g = arguments,
+ y = s && void 0 !== t.__emotion_styles ? t.__emotion_styles.slice(0) : []
+ if ((void 0 !== i && y.push('label:' + i + ';'), null == g[0] || void 0 === g[0].raw))
+ y.push.apply(y, g)
+ else {
+ 0, y.push(g[0][0])
+ for (var b = g.length, w = 1; w < b; w++) y.push(g[w], g[0][w])
+ }
+ var _ = (0, u.w)(function (e, t, n) {
+ var o = (m && e.as) || d,
+ i = '',
+ s = [],
+ p = e
+ if (null == e.theme) {
+ for (var g in ((p = {}), e)) p[g] = e[g]
+ p.theme = (0, r.useContext)(u.T)
+ }
+ 'string' === typeof e.className
+ ? (i = (0, c.f)(t.registered, s, e.className))
+ : null != e.className && (i = e.className + ' ')
+ var b = (0, l.O)(y.concat(s), t.registered, p)
+ ;(0, c.M)(t, b, 'string' === typeof o)
+ ;(i += t.key + '-' + b.name), void 0 !== a && (i += ' ' + a)
+ var w = m && void 0 === f ? h(o) : v,
+ _ = {}
+ for (var x in e) (m && 'as' === x) || (w(x) && (_[x] = e[x]))
+ return (_.className = i), (_.ref = n), (0, r.createElement)(o, _)
+ })
+ return (
+ (_.displayName =
+ void 0 !== i
+ ? i
+ : 'Styled(' +
+ ('string' === typeof d ? d : d.displayName || d.name || 'Component') +
+ ')'),
+ (_.defaultProps = t.defaultProps),
+ (_.__emotion_real = _),
+ (_.__emotion_base = d),
+ (_.__emotion_styles = y),
+ (_.__emotion_forwardProp = f),
+ Object.defineProperty(_, 'toString', {
+ value: function () {
+ return '.' + a
+ },
+ }),
+ (_.withComponent = function (t, r) {
+ return e(t, (0, o.Z)({}, n, r, { shouldForwardProp: p(_, r, !0) })).apply(void 0, y)
+ }),
+ _
+ )
+ }
+ }.bind()
+ ;[
+ 'a',
+ 'abbr',
+ 'address',
+ 'area',
+ 'article',
+ 'aside',
+ 'audio',
+ 'b',
+ 'base',
+ 'bdi',
+ 'bdo',
+ 'big',
+ 'blockquote',
+ 'body',
+ 'br',
+ 'button',
+ 'canvas',
+ 'caption',
+ 'cite',
+ 'code',
+ 'col',
+ 'colgroup',
+ 'data',
+ 'datalist',
+ 'dd',
+ 'del',
+ 'details',
+ 'dfn',
+ 'dialog',
+ 'div',
+ 'dl',
+ 'dt',
+ 'em',
+ 'embed',
+ 'fieldset',
+ 'figcaption',
+ 'figure',
+ 'footer',
+ 'form',
+ 'h1',
+ 'h2',
+ 'h3',
+ 'h4',
+ 'h5',
+ 'h6',
+ 'head',
+ 'header',
+ 'hgroup',
+ 'hr',
+ 'html',
+ 'i',
+ 'iframe',
+ 'img',
+ 'input',
+ 'ins',
+ 'kbd',
+ 'keygen',
+ 'label',
+ 'legend',
+ 'li',
+ 'link',
+ 'main',
+ 'map',
+ 'mark',
+ 'marquee',
+ 'menu',
+ 'menuitem',
+ 'meta',
+ 'meter',
+ 'nav',
+ 'noscript',
+ 'object',
+ 'ol',
+ 'optgroup',
+ 'option',
+ 'output',
+ 'p',
+ 'param',
+ 'picture',
+ 'pre',
+ 'progress',
+ 'q',
+ 'rp',
+ 'rt',
+ 'ruby',
+ 's',
+ 'samp',
+ 'script',
+ 'section',
+ 'select',
+ 'small',
+ 'source',
+ 'span',
+ 'strong',
+ 'style',
+ 'sub',
+ 'summary',
+ 'sup',
+ 'table',
+ 'tbody',
+ 'td',
+ 'textarea',
+ 'tfoot',
+ 'th',
+ 'thead',
+ 'time',
+ 'title',
+ 'tr',
+ 'track',
+ 'u',
+ 'ul',
+ 'var',
+ 'video',
+ 'wbr',
+ 'circle',
+ 'clipPath',
+ 'defs',
+ 'ellipse',
+ 'foreignObject',
+ 'g',
+ 'image',
+ 'line',
+ 'linearGradient',
+ 'mask',
+ 'path',
+ 'pattern',
+ 'polygon',
+ 'polyline',
+ 'radialGradient',
+ 'rect',
+ 'stop',
+ 'svg',
+ 'text',
+ 'tspan',
+ ].forEach(function (e) {
+ v[e] = v(e)
+ })
+ var m = v
+ },
+ 20233: function (e, t, n) {
'use strict'
n.d(t, {
_7: function () {
- return v
+ return m
},
})
- var r = n(7294)
- var i = function (e) {
+ var r = n(67294)
+ var o = function (e) {
;(0, r.useEffect)(function () {
e()
}, [])
}
- var o = function (e, t) {
+ var i = function (e, t) {
var n = (0, r.useRef)(!1)
;(0, r.useEffect)(function () {
if (n.current) return e()
@@ -7455,22 +17639,76 @@
'undefined' !== typeof window && 'undefined' !== typeof document
? r.useLayoutEffect
: r.useEffect
- var s = n(4699),
- u =
- Object.is ||
- function (e, t) {
- return e === t ? 0 !== e || 1 / e === 1 / t : e !== e && t !== t
- }
+ function s(e, t) {
+ ;(null == t || t > e.length) && (t = e.length)
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
+ return r
+ }
+ function u(e, t) {
+ return (
+ (function (e) {
+ if (Array.isArray(e)) return e
+ })(e) ||
+ (function (e, t) {
+ if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) {
+ var n = [],
+ r = !0,
+ o = !1,
+ i = void 0
+ try {
+ for (
+ var a, s = e[Symbol.iterator]();
+ !(r = (a = s.next()).done) && (n.push(a.value), !t || n.length !== t);
+ r = !0
+ );
+ } catch (u) {
+ ;(o = !0), (i = u)
+ } finally {
+ try {
+ r || null == s.return || s.return()
+ } finally {
+ if (o) throw i
+ }
+ }
+ return n
+ }
+ })(e, t) ||
+ (function (e, t) {
+ if (e) {
+ if ('string' === typeof e) return s(e, t)
+ var n = Object.prototype.toString.call(e).slice(8, -1)
+ return (
+ 'Object' === n && e.constructor && (n = e.constructor.name),
+ 'Map' === n || 'Set' === n
+ ? Array.from(e)
+ : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
+ ? s(e, t)
+ : void 0
+ )
+ }
+ })(e, t) ||
+ (function () {
+ throw new TypeError(
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
+ )
+ })()
+ )
+ }
+ var c =
+ Object.is ||
+ function (e, t) {
+ return e === t ? 0 !== e || 1 / e === 1 / t : e !== e && t !== t
+ }
function l(e, t) {
- for (var n = 0; n < e.length && n < t.length; n++) if (!u(t[n], e[n])) return !1
+ for (var n = 0; n < e.length && n < t.length; n++) if (!c(t[n], e[n])) return !1
return !0
}
- var c = function (e) {
+ var d = function (e) {
var t = (0, r.useRef)(e)
return (t.current = e), t
}
- var d = function (e) {
- var t = c(e),
+ var f = function (e) {
+ var t = d(e),
n = (0, r.useRef)()
return (
void 0 === n.current &&
@@ -7482,8 +17720,8 @@
n.current
)
}
- function f(e) {
- return (f =
+ function h(e) {
+ return (h =
'function' === typeof Symbol && 'symbol' === typeof Symbol.iterator
? function (e) {
return typeof e
@@ -7497,268 +17735,264 @@
: typeof e
})(e)
}
- var h = function () {
+ var p = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0]
return function (t, n) {
- var i,
- o = !1,
+ var o,
+ i = !1,
s = !0
'number' === typeof n
- ? (i = n)
- : 'object' === f(n) &&
+ ? (o = n)
+ : 'object' === h(n) &&
n &&
- ('wait' in n && (i = +n.wait),
- 'leading' in n && (o = !!n.leading),
+ ('wait' in n && (o = +n.wait),
+ 'leading' in n && (i = !!n.leading),
'trailing' in n && (s = !!n.trailing))
var u = (0, r.useRef)(),
- l = (0, r.useRef)(),
c = (0, r.useRef)(),
- h = (0, r.useRef)(),
+ l = (0, r.useRef)(),
+ d = (0, r.useRef)(),
p = (0, r.useRef)(),
v = (0, r.useRef)(),
- m = d(function () {
+ m = f(function () {
var n = Date.now(),
r = n - p.current,
- o = n - v.current
- if ((h.current && clearTimeout(h.current), r >= i || (e && o >= i)))
- (h.current = void 0),
+ i = n - v.current
+ if ((d.current && clearTimeout(d.current), r >= o || (e && i >= o)))
+ (d.current = void 0),
(p.current = void 0),
- s && l.current && ((v.current = n), (c.current = t.apply(u.current, l.current)))
+ s && c.current && ((v.current = n), (l.current = t.apply(u.current, c.current)))
else {
- var a = i - r,
- d = i - o,
- f = e ? Math.min(a, d) : a
- h.current = setTimeout(m, f)
+ var a = o - r,
+ f = o - i,
+ h = e ? Math.min(a, f) : a
+ d.current = setTimeout(m, h)
}
}),
- g = d(function () {
+ g = f(function () {
var e = Date.now(),
n = p.current
u.current = this
for (var r = arguments.length, a = new Array(r), s = 0; s < r; s++)
a[s] = arguments[s]
return (
- (l.current = a),
+ (c.current = a),
(p.current = e),
- (void 0 === n || e - n >= i) &&
- void 0 === h.current &&
+ (void 0 === n || e - n >= o) &&
+ void 0 === d.current &&
((v.current = e),
- (h.current = setTimeout(m, i)),
- o && (c.current = t.apply(u.current, l.current))),
- c.current
+ (d.current = setTimeout(m, o)),
+ i && (l.current = t.apply(u.current, c.current))),
+ l.current
)
}),
y = (0, r.useCallback)(function () {
- void 0 !== h.current && (clearTimeout(h.current), (h.current = void 0)),
+ void 0 !== d.current && (clearTimeout(d.current), (d.current = void 0)),
(u.current = void 0),
- (l.current = void 0),
+ (c.current = void 0),
(p.current = void 0),
(v.current = void 0)
}, []),
- b = d(function () {
+ b = f(function () {
return (
- void 0 !== h.current &&
- l.current &&
- ((c.current = t.apply(u.current, l.current)), y()),
- c.current
+ void 0 !== d.current &&
+ c.current &&
+ ((l.current = t.apply(u.current, c.current)), y()),
+ l.current
)
})
return a(y), [g, { flush: b, cancel: y }]
}
}
- var p = function () {
+ var v = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0],
- t = h(e)
+ t = p(e)
return function (e, n) {
- var i = c(e),
- a = (0, r.useState)(e),
- l = (0, s.Z)(a, 2),
- f = l[0],
- h = l[1],
- p = (0, r.useRef)(f)
- function v(e) {
- u(p.current, e) || ((p.current = e), h(e))
- }
- var m = t(v, n),
- g = (0, s.Z)(m, 2),
- y = g[0],
- b = g[1].cancel,
- w = d(function (e) {
- b(), v(arguments.length > 0 ? e : i.current)
+ var o = d(e),
+ a = u((0, r.useState)(e), 2),
+ s = a[0],
+ l = a[1],
+ h = (0, r.useRef)(s)
+ function p(e) {
+ c(h.current, e) || ((h.current = e), l(e))
+ }
+ var v = u(t(p, n), 2),
+ m = v[0],
+ g = v[1].cancel,
+ y = f(function (e) {
+ g(), p(arguments.length > 0 ? e : o.current)
})
return (
- o(
+ i(
function () {
- y(e)
+ m(e)
},
[e],
),
- [f, { flush: w, cancel: b }]
+ [s, { flush: y, cancel: g }]
)
}
}
- p(!1), p(!0), h(!1), h(!0)
+ v(!1), v(!0), p(!1), p(!0)
'undefined' !== typeof window &&
window.requestIdleCallback &&
window.cancelIdleCallback &&
(window.requestIdleCallback, window.cancelIdleCallback)
- var v = function (e, t) {
- var n, i
+ var m = function (e, t) {
+ var n, o
'number' === typeof t
? (n = t)
- : 'object' === f(t) &&
+ : 'object' === h(t) &&
null !== t &&
('duration' in t && (n = +t.duration),
- 'function' === typeof t.algorithm && (i = t.algorithm))
- var o = (0, r.useRef)(),
+ 'function' === typeof t.algorithm && (o = t.algorithm))
+ var i = (0, r.useRef)(),
s = (0, r.useRef)(),
- u = d(e),
- l = d(function (e) {
+ u = f(e),
+ c = f(function (e) {
void 0 === s.current && (s.current = e)
var t = e - s.current,
r = n > 0 ? t / n : 1
r < 0 && (r = 0),
r > 1 && (r = 1),
- r < 1 && (o.current = requestAnimationFrame(l)),
- u(i ? i(r) : r)
+ r < 1 && (i.current = requestAnimationFrame(c)),
+ u(o ? o(r) : r)
}),
- c = (0, r.useCallback)(function () {
- void 0 !== o.current && (cancelAnimationFrame(o.current), (o.current = void 0)),
+ l = (0, r.useCallback)(function () {
+ void 0 !== i.current && (cancelAnimationFrame(i.current), (i.current = void 0)),
(s.current = void 0)
}, []),
- h = d(function () {
- c(), (o.current = requestAnimationFrame(l))
+ d = f(function () {
+ l(), (i.current = requestAnimationFrame(c))
})
- return a(c), [h, c]
+ return a(l), [d, l]
}
- var m = function () {
+ var g = function () {
var e = (0, r.useRef)(!1)
return (
- i(function () {
+ o(function () {
e.current = !0
}),
e
)
}
- var g = function (e) {
+ var y = function (e) {
var t = (0, r.useRef)(e),
n = (0, r.useRef)(e)
return (n.current = t.current), (t.current = e), n
}
- var y = function (e, t, n, i) {
- var o, a, s
- 'boolean' === typeof i
- ? (o = i)
- : 'object' === f(i) &&
- null !== i &&
- ('capture' in i && (o = !!i.capture),
- 'once' in i && (a = !!i.once),
- 'passive' in i && (s = !!i.passive))
- var u = d(n)
+ var b = function (e, t, n, o) {
+ var i, a, s
+ 'boolean' === typeof o
+ ? (i = o)
+ : 'object' === h(o) &&
+ null !== o &&
+ ('capture' in o && (i = !!o.capture),
+ 'once' in o && (a = !!o.once),
+ 'passive' in o && (s = !!o.passive))
+ var u = f(n)
;(0, r.useEffect)(
function () {
if (e && e.addEventListener && e.removeEventListener)
return (
- e.addEventListener(t, u, { capture: o, once: a, passive: s }),
+ e.addEventListener(t, u, { capture: i, once: a, passive: s }),
function () {
- e.removeEventListener(t, u, { capture: o })
+ e.removeEventListener(t, u, { capture: i })
}
)
},
- [e, t, u, o, a, s],
+ [e, t, u, i, a, s],
)
}
'undefined' !== typeof window &&
'undefined' !== typeof window.navigator &&
window.navigator.onLine
- var b = function (e) {
+ var w = function (e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
- n = m(),
- i = g(t),
- o = (0, r.useRef)()
- return (n.current && l(i.current, t)) || (o.current = e()), o.current
+ n = g(),
+ o = y(t),
+ i = (0, r.useRef)()
+ return (n.current && l(o.current, t)) || (i.current = e()), i.current
},
- w = { ico: 'image/x-icon', png: 'image/png', gif: 'image/gif' }
+ _ = { ico: 'image/x-icon', png: 'image/png', gif: 'image/gif' }
'undefined' !== typeof window && window.matchMedia
- n(6808)
+ n(36808)
function x(e, t) {
var n = (0, r.useRef)(),
- i = (0, r.useState)(t),
- a = (0, s.Z)(i, 2),
- u = a[0],
- l = a[1],
- c = d(function (e) {
- ;(n.current = e), l(e)
+ o = u((0, r.useState)(t), 2),
+ a = o[0],
+ s = o[1],
+ c = f(function (e) {
+ ;(n.current = e), s(e)
}),
- f = d(function () {
- l(t)
+ l = f(function () {
+ s(t)
})
return (
- o(
+ i(
function () {
- ;(n.current = void 0), l(t)
+ ;(n.current = void 0), s(t)
},
[e],
),
- o(
+ i(
function () {
- void 0 === n.current && l(t)
+ void 0 === n.current && s(t)
},
[t],
),
- [u, { set: c, remove: f }]
+ [a, { set: c, remove: l }]
)
}
- var E = function (e) {
+ var k = function (e) {
return e
- ? function (t, n, i) {
- var a = i && i.serialize ? i.serialize : JSON.stringify,
- u = i && i.deserialize ? i.deserialize : JSON.parse,
- l = d(function () {
+ ? function (t, n, o) {
+ var a = o && o.serialize ? o.serialize : JSON.stringify,
+ s = o && o.deserialize ? o.deserialize : JSON.parse,
+ c = f(function () {
try {
var r = e.getItem(t)
- return null !== r ? u(r) : n
- } catch (i) {
+ return null !== r ? s(r) : n
+ } catch (o) {
return n
}
}),
- c = d(function (n) {
+ l = f(function (n) {
try {
e.setItem(t, a(n))
} catch (r) {}
}),
- h = d(function () {
+ d = f(function () {
e.removeItem(t)
}),
- p = (0, r.useState)(l()),
- v = (0, s.Z)(p, 2),
- m = v[0],
- g = v[1],
- y = d(function (e) {
- c(e), g(e)
+ p = u((0, r.useState)(c()), 2),
+ v = p[0],
+ m = p[1],
+ g = f(function (e) {
+ l(e), m(e)
}),
- b = d(function () {
- h(), g(l())
+ y = f(function () {
+ d(), m(c())
})
return (
- o(
+ i(
function () {
- g(l())
+ m(c())
},
[t],
),
- o(
+ i(
function () {
- null === e.getItem(t) && g(n)
+ null === e.getItem(t) && m(n)
},
[n],
),
(0, r.useEffect)(
function () {
function n(n) {
- n.storageArea === e && n.key === t && g(l())
+ n.storageArea === e && n.key === t && m(c())
}
- if (void 0 !== ('undefined' === typeof window ? 'undefined' : f(window)))
+ if (void 0 !== ('undefined' === typeof window ? 'undefined' : h(window)))
return (
window.addEventListener('storage', n),
function () {
@@ -7768,23 +18002,23 @@
},
[t],
),
- [m, { set: y, remove: b }]
+ [v, { set: g, remove: y }]
)
}
: x
}
- E('undefined' !== typeof localStorage ? localStorage : null),
- E('undefined' !== typeof sessionStorage ? sessionStorage : null)
+ k('undefined' !== typeof localStorage ? localStorage : null),
+ k('undefined' !== typeof sessionStorage ? sessionStorage : null)
},
- 4309: function (e, t, n) {
+ 54309: function (e, t, n) {
'use strict'
n.d(t, {
iP: function () {
return d
},
})
- var r = n(7294)
- var i = (e) => {
+ var r = n(67294)
+ var o = (e) => {
const t = r.useRef(e)
return (
r.useEffect(() => {
@@ -7793,14 +18027,14 @@
t
)
}
- const o = (e, t = 100, n = !1) => {
- const o = i(e),
+ const i = (e, t = 100, n = !1) => {
+ const i = o(e),
a = r.useRef(),
- s = [t, n, o]
+ s = [t, n, i]
function u() {
a.current && clearTimeout(a.current), (a.current = void 0)
}
- function l() {
+ function c() {
a.current = void 0
}
return (
@@ -7808,10 +18042,10 @@
r.useCallback(function () {
const e = arguments,
{ current: r } = a
- if (void 0 === r && n) return (a.current = setTimeout(l, t)), o.current.apply(null, e)
+ if (void 0 === r && n) return (a.current = setTimeout(c, t)), i.current.apply(null, e)
r && clearTimeout(r),
(a.current = setTimeout(() => {
- ;(a.current = void 0), o.current.apply(null, e)
+ ;(a.current = void 0), i.current.apply(null, e)
}, t))
}, s)
)
@@ -7822,48 +18056,48 @@
? 'useLayoutEffect'
: 'useEffect'
]
- var s = function (e, t, n, i) {
- const o = r.useRef(n),
- s = r.useRef(i)
+ var s = function (e, t, n, o) {
+ const i = r.useRef(n),
+ s = r.useRef(o)
a(() => {
- ;(o.current = n), (s.current = i)
+ ;(i.current = n), (s.current = o)
}),
a(() => {
const n = e && 'current' in e ? e.current : e
if (!n) return
let r = 0
- function i(...e) {
- r || o.current.apply(this, e)
+ function o(...e) {
+ r || i.current.apply(this, e)
}
- n.addEventListener(t, i)
+ n.addEventListener(t, o)
const a = s.current
return () => {
- ;(r = 1), n.removeEventListener(t, i), a && a()
+ ;(r = 1), n.removeEventListener(t, o), a && a()
}
}, [e, t])
}
const u = {},
- l = 'undefined' === typeof window ? null : window,
- c = () => [document.documentElement.clientWidth, document.documentElement.clientHeight],
+ c = 'undefined' === typeof window ? null : window,
+ l = () => [document.documentElement.clientWidth, document.documentElement.clientHeight],
d = (e = u) => {
- const { wait: t, leading: n, initialWidth: i = 0, initialHeight: a = 0 } = e,
+ const { wait: t, leading: n, initialWidth: o = 0, initialHeight: a = 0 } = e,
[d, f] = ((e, t, n) => {
- const i = r.useState(e)
- return [i[0], o(i[1], t, n)]
- })('undefined' === typeof document ? [i, a] : c, t, n),
- h = () => f(c)
- return s(l, 'resize', h), s(l, 'orientationchange', h), d
+ const o = r.useState(e)
+ return [o[0], i(o[1], t, n)]
+ })('undefined' === typeof document ? [o, a] : l, t, n),
+ h = () => f(l)
+ return s(c, 'resize', h), s(c, 'orientationchange', h), d
}
},
- 6194: function (e, t, n) {
+ 36194: function (e, t, n) {
'use strict'
n.d(t, {
oY: function () {
- return i
+ return o
},
})
- var r = n(4155),
- i = {
+ var r = n(34155),
+ o = {
Linear: {
None: function (e) {
return e
@@ -7997,7 +18231,7 @@
},
Bounce: {
In: function (e) {
- return 1 - i.Bounce.Out(1 - e)
+ return 1 - o.Bounce.Out(1 - e)
},
Out: function (e) {
return e < 1 / 2.75
@@ -8009,11 +18243,11 @@
: 7.5625 * (e -= 2.625 / 2.75) * e + 0.984375
},
InOut: function (e) {
- return e < 0.5 ? 0.5 * i.Bounce.In(2 * e) : 0.5 * i.Bounce.Out(2 * e - 1) + 0.5
+ return e < 0.5 ? 0.5 * o.Bounce.In(2 * e) : 0.5 * o.Bounce.Out(2 * e - 1) + 0.5
},
},
},
- o =
+ i =
'undefined' === typeof self && 'undefined' !== typeof r && r.hrtime
? function () {
var e = r.hrtime()
@@ -8049,15 +18283,15 @@
delete this._tweens[e.getId()], delete this._tweensAddedDuringUpdate[e.getId()]
}),
(e.prototype.update = function (e, t) {
- void 0 === e && (e = o()), void 0 === t && (t = !1)
+ void 0 === e && (e = i()), void 0 === t && (t = !1)
var n = Object.keys(this._tweens)
if (0 === n.length) return !1
for (; n.length > 0; ) {
this._tweensAddedDuringUpdate = {}
for (var r = 0; r < n.length; r++) {
- var i = this._tweens[n[r]],
+ var o = this._tweens[n[r]],
a = !t
- i && !1 === i.update(e, a) && !t && delete this._tweens[n[r]]
+ o && !1 === o.update(e, a) && !t && delete this._tweens[n[r]]
}
n = Object.keys(this._tweensAddedDuringUpdate)
}
@@ -8070,36 +18304,36 @@
Linear: function (e, t) {
var n = e.length - 1,
r = n * t,
- i = Math.floor(r),
- o = s.Utils.Linear
+ o = Math.floor(r),
+ i = s.Utils.Linear
return t < 0
- ? o(e[0], e[1], r)
+ ? i(e[0], e[1], r)
: t > 1
- ? o(e[n], e[n - 1], n - r)
- : o(e[i], e[i + 1 > n ? n : i + 1], r - i)
+ ? i(e[n], e[n - 1], n - r)
+ : i(e[o], e[o + 1 > n ? n : o + 1], r - o)
},
Bezier: function (e, t) {
for (
- var n = 0, r = e.length - 1, i = Math.pow, o = s.Utils.Bernstein, a = 0;
+ var n = 0, r = e.length - 1, o = Math.pow, i = s.Utils.Bernstein, a = 0;
a <= r;
a++
)
- n += i(1 - t, r - a) * i(t, a) * e[a] * o(r, a)
+ n += o(1 - t, r - a) * o(t, a) * e[a] * i(r, a)
return n
},
CatmullRom: function (e, t) {
var n = e.length - 1,
r = n * t,
- i = Math.floor(r),
- o = s.Utils.CatmullRom
+ o = Math.floor(r),
+ i = s.Utils.CatmullRom
return e[0] === e[n]
- ? (t < 0 && (i = Math.floor((r = n * (1 + t)))),
- o(e[(i - 1 + n) % n], e[i], e[(i + 1) % n], e[(i + 2) % n], r - i))
+ ? (t < 0 && (o = Math.floor((r = n * (1 + t)))),
+ i(e[(o - 1 + n) % n], e[o], e[(o + 1) % n], e[(o + 2) % n], r - o))
: t < 0
- ? e[0] - (o(e[0], e[0], e[1], e[1], -r) - e[0])
+ ? e[0] - (i(e[0], e[0], e[1], e[1], -r) - e[0])
: t > 1
- ? e[n] - (o(e[n], e[n], e[n - 1], e[n - 1], r - n) - e[n])
- : o(e[i ? i - 1 : 0], e[i], e[n < i + 1 ? n : i + 1], e[n < i + 2 ? n : i + 2], r - i)
+ ? e[n] - (i(e[n], e[n], e[n - 1], e[n - 1], r - n) - e[n])
+ : i(e[o ? o - 1 : 0], e[o], e[n < o + 1 ? n : o + 1], e[n < o + 2 ? n : o + 2], r - o)
},
Utils: {
Linear: function (e, t, n) {
@@ -8118,12 +18352,12 @@
return (e[t] = n), n
}
})(),
- CatmullRom: function (e, t, n, r, i) {
- var o = 0.5 * (n - e),
+ CatmullRom: function (e, t, n, r, o) {
+ var i = 0.5 * (n - e),
a = 0.5 * (r - t),
- s = i * i
+ s = o * o
return (
- (2 * t - 2 * n + o + a) * (i * s) + (-3 * t + 3 * n - 2 * o - a) * s + o * i + t
+ (2 * t - 2 * n + i + a) * (o * s) + (-3 * t + 3 * n - 2 * i - a) * s + i * o + t
)
},
},
@@ -8138,10 +18372,10 @@
e
)
})(),
- l = new a(),
- c = (function () {
+ c = new a(),
+ l = (function () {
function e(e, t) {
- void 0 === t && (t = l),
+ void 0 === t && (t = c),
(this._object = e),
(this._group = t),
(this._isPaused = !1),
@@ -8157,7 +18391,7 @@
(this._reversed = !1),
(this._delayTime = 0),
(this._startTime = 0),
- (this._easingFunction = i.Linear.None),
+ (this._easingFunction = o.Linear.None),
(this._interpolationFunction = s.Linear),
(this._chainedTweens = []),
(this._onStartCallbackFired = !1),
@@ -8199,7 +18433,7 @@
(this._onStartCallbackFired = !1),
(this._isChainStopped = !1),
(this._startTime =
- void 0 !== e ? ('string' === typeof e ? o() + parseFloat(e) : e) : o()),
+ void 0 !== e ? ('string' === typeof e ? i() + parseFloat(e) : e) : i()),
(this._startTime += this._delayTime),
this._setupProperties(
this._object,
@@ -8211,24 +18445,24 @@
)
}),
(e.prototype._setupProperties = function (e, t, n, r) {
- for (var i in n) {
- var o = e[i],
- a = Array.isArray(o),
- s = a ? 'array' : typeof o,
- u = !a && Array.isArray(n[i])
+ for (var o in n) {
+ var i = e[o],
+ a = Array.isArray(i),
+ s = a ? 'array' : typeof i,
+ u = !a && Array.isArray(n[o])
if ('undefined' !== s && 'function' !== s) {
if (u) {
- var l = n[i]
- if (0 === l.length) continue
- ;(l = l.map(this._handleRelativeValue.bind(this, o))), (n[i] = [o].concat(l))
+ var c = n[o]
+ if (0 === c.length) continue
+ ;(c = c.map(this._handleRelativeValue.bind(this, i))), (n[o] = [i].concat(c))
}
- if (('object' !== s && !a) || !o || u)
- 'undefined' === typeof t[i] && (t[i] = o),
- a || (t[i] *= 1),
- (r[i] = u ? n[i].slice().reverse() : t[i] || 0)
+ if (('object' !== s && !a) || !i || u)
+ 'undefined' === typeof t[o] && (t[o] = i),
+ a || (t[o] *= 1),
+ (r[o] = u ? n[o].slice().reverse() : t[o] || 0)
else {
- for (var c in ((t[i] = a ? [] : {}), o)) t[i][c] = o[c]
- ;(r[i] = a ? [] : {}), this._setupProperties(o, t[i], n[i], r[i])
+ for (var l in ((t[o] = a ? [] : {}), i)) t[o][l] = i[l]
+ ;(r[o] = a ? [] : {}), this._setupProperties(i, t[o], n[o], r[o])
}
}
}
@@ -8250,7 +18484,7 @@
}),
(e.prototype.pause = function (e) {
return (
- void 0 === e && (e = o()),
+ void 0 === e && (e = i()),
this._isPaused ||
!this._isPlaying ||
((this._isPaused = !0),
@@ -8261,7 +18495,7 @@
}),
(e.prototype.resume = function (e) {
return (
- void 0 === e && (e = o()),
+ void 0 === e && (e = i()),
this._isPaused && this._isPlaying
? ((this._isPaused = !1),
(this._startTime += e - this._pauseStart),
@@ -8317,12 +18551,12 @@
return (this._onStopCallback = e), this
}),
(e.prototype.update = function (e, t) {
- if ((void 0 === e && (e = o()), void 0 === t && (t = !0), this._isPaused)) return !0
+ if ((void 0 === e && (e = i()), void 0 === t && (t = !0), this._isPaused)) return !0
var n,
r,
- i = this._startTime + this._duration
+ o = this._startTime + this._duration
if (!this._goToEnd && !this._isPlaying) {
- if (e > i) return !1
+ if (e > o) return !1
t && this.start(e)
}
if (((this._goToEnd = !1), e < this._startTime)) return !0
@@ -8362,18 +18596,18 @@
return !0
}),
(e.prototype._updateProperties = function (e, t, n, r) {
- for (var i in n)
- if (void 0 !== t[i]) {
- var o = t[i] || 0,
- a = n[i],
- s = Array.isArray(e[i]),
+ for (var o in n)
+ if (void 0 !== t[o]) {
+ var i = t[o] || 0,
+ a = n[o],
+ s = Array.isArray(e[o]),
u = Array.isArray(a)
!s && u
- ? (e[i] = this._interpolationFunction(a, r))
+ ? (e[o] = this._interpolationFunction(a, r))
: 'object' === typeof a && a
- ? this._updateProperties(e[i], o, a, r)
- : 'number' === typeof (a = this._handleRelativeValue(o, a)) &&
- (e[i] = o + (a - o) * r)
+ ? this._updateProperties(e[o], i, a, r)
+ : 'number' === typeof (a = this._handleRelativeValue(i, a)) &&
+ (e[o] = i + (a - i) * r)
}
}),
(e.prototype._handleRelativeValue = function (e, t) {
@@ -8396,20 +18630,20 @@
)
})(),
d = u.nextId,
- f = l,
+ f = c,
h = f.getAll.bind(f),
p = f.removeAll.bind(f),
v = f.add.bind(f),
m = f.remove.bind(f),
g = f.update.bind(f),
y = {
- Easing: i,
+ Easing: o,
Group: a,
Interpolation: s,
- now: o,
+ now: i,
Sequence: u,
nextId: d,
- Tween: c,
+ Tween: l,
VERSION: '18.6.4',
getAll: h,
removeAll: p,
@@ -8419,7 +18653,7 @@
}
t.ZP = y
},
- 2539: function (e, t, n) {
+ 92539: function (e, t, n) {
'use strict'
n.r(t)
t.default = function (e) {
@@ -8434,7 +18668,7 @@
}
}
},
- 3379: function (e) {
+ 93379: function (e) {
var t = {
animationIterationCount: !0,
boxFlex: !0,
@@ -8469,10 +18703,10 @@
return 'number' !== typeof n || t[e] ? n : n + 'px'
}
},
- 401: function (e, t, n) {
- n(2406), n(9874), n(9236), n(2578), n(8993)
+ 60401: function (e, t, n) {
+ n(52406), n(29874), n(59236), n(82578), n(36699)
},
- 203: function (e) {
+ 20203: function (e) {
;(e.exports = THREE.ColladaLoader =
function (e) {
this.manager = void 0 !== e ? e : THREE.DefaultLoadingManager
@@ -8481,14 +18715,14 @@
constructor: THREE.ColladaLoader,
crossOrigin: 'anonymous',
load: function (e, t, n, r) {
- var i = this,
- o = void 0 === i.path ? THREE.LoaderUtils.extractUrlBase(e) : i.path,
- a = new THREE.FileLoader(i.manager)
- a.setPath(i.path),
+ var o = this,
+ i = void 0 === o.path ? THREE.LoaderUtils.extractUrlBase(e) : o.path,
+ a = new THREE.FileLoader(o.manager)
+ a.setPath(o.path),
a.load(
e,
function (e) {
- t(i.parse(e, o))
+ t(o.parse(e, i))
},
n,
r,
@@ -8512,8 +18746,8 @@
},
parse: function (e, t) {
function n(e, t) {
- for (var n = [], r = e.childNodes, i = 0, o = r.length; i < o; i++) {
- var a = r[i]
+ for (var n = [], r = e.childNodes, o = 0, i = r.length; o < i; o++) {
+ var a = r[o]
a.nodeName === t && n.push(a)
}
return n
@@ -8521,28 +18755,28 @@
function r(e) {
if (0 === e.length) return []
for (
- var t = e.trim().split(/\s+/), n = new Array(t.length), r = 0, i = t.length;
- r < i;
+ var t = e.trim().split(/\s+/), n = new Array(t.length), r = 0, o = t.length;
+ r < o;
r++
)
n[r] = t[r]
return n
}
- function i(e) {
+ function o(e) {
if (0 === e.length) return []
for (
- var t = e.trim().split(/\s+/), n = new Array(t.length), r = 0, i = t.length;
- r < i;
+ var t = e.trim().split(/\s+/), n = new Array(t.length), r = 0, o = t.length;
+ r < o;
r++
)
n[r] = parseFloat(t[r])
return n
}
- function o(e) {
+ function i(e) {
if (0 === e.length) return []
for (
- var t = e.trim().split(/\s+/), n = new Array(t.length), r = 0, i = t.length;
- r < i;
+ var t = e.trim().split(/\s+/), n = new Array(t.length), r = 0, o = t.length;
+ r < o;
r++
)
n[r] = parseInt(t[r])
@@ -8559,12 +18793,12 @@
? parseFloat(e.getAttribute('meter'))
: 1
}
- function l(e) {
+ function c(e) {
return void 0 !== e ? e.textContent : 'Y_UP'
}
- function c(e, t, r, i) {
- var o = n(e, t)[0]
- if (void 0 !== o) for (var a = n(o, r), s = 0; s < a.length; s++) i(a[s])
+ function l(e, t, r, o) {
+ var i = n(e, t)[0]
+ if (void 0 !== i) for (var a = n(i, r), s = 0; s < a.length; s++) o(a[s])
}
function d(e, t) {
for (var n in e) {
@@ -8576,13 +18810,13 @@
}
function h(e) {
for (var t = { inputs: {} }, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'input':
- var o = a(i.getAttribute('source')),
- s = i.getAttribute('semantic')
- t.inputs[s] = o
+ var i = a(o.getAttribute('source')),
+ s = o.getAttribute('semantic')
+ t.inputs[s] = i
}
}
return t
@@ -8591,20 +18825,20 @@
var t = {},
n = e.getAttribute('target').split('/'),
r = n.shift(),
- i = n.shift(),
- o = -1 !== i.indexOf('('),
- s = -1 !== i.indexOf('.')
- if (s) (n = i.split('.')), (i = n.shift()), (t.member = n.shift())
- else if (o) {
- var u = i.split('(')
- i = u.shift()
- for (var l = 0; l < u.length; l++) u[l] = parseInt(u[l].replace(/\)/, ''))
+ o = n.shift(),
+ i = -1 !== o.indexOf('('),
+ s = -1 !== o.indexOf('.')
+ if (s) (n = o.split('.')), (o = n.shift()), (t.member = n.shift())
+ else if (i) {
+ var u = o.split('(')
+ o = u.shift()
+ for (var c = 0; c < u.length; c++) u[c] = parseInt(u[c].replace(/\)/, ''))
t.indices = u
}
return (
(t.id = r),
- (t.sid = i),
- (t.arraySyntax = o),
+ (t.sid = o),
+ (t.arraySyntax = i),
(t.memberSyntax = s),
(t.sampler = a(e.getAttribute('source'))),
t
@@ -8614,45 +18848,45 @@
var t = [],
n = e.channels,
r = e.samplers,
- i = e.sources
- for (var o in n)
- if (n.hasOwnProperty(o)) {
- var a = n[o],
+ o = e.sources
+ for (var i in n)
+ if (n.hasOwnProperty(i)) {
+ var a = n[i],
s = r[a.sampler],
u = s.inputs.INPUT,
- l = s.inputs.OUTPUT
- x(g(a, i[u], i[l]), t)
+ c = s.inputs.OUTPUT
+ _(g(a, o[u], o[c]), t)
}
return t
}
function m(e) {
- return f(We.animations[e], v)
+ return f(qe.animations[e], v)
}
function g(e, t, n) {
var r,
- i,
o,
+ i,
a,
s,
u,
- l = We.nodes[e.id],
- c = Le(l.id),
- d = l.transforms[e.sid],
- f = l.matrix.clone().transpose(),
+ c = qe.nodes[e.id],
+ l = De(c.id),
+ d = c.transforms[e.sid],
+ f = c.matrix.clone().transpose(),
h = {}
switch (d) {
case 'matrix':
- for (o = 0, a = t.array.length; o < a; o++)
+ for (i = 0, a = t.array.length; i < a; i++)
if (
- ((r = t.array[o]),
- (i = o * n.stride),
+ ((r = t.array[i]),
+ (o = i * n.stride),
void 0 === h[r] && (h[r] = {}),
!0 === e.arraySyntax)
) {
- var p = n.array[i],
+ var p = n.array[o],
v = e.indices[0] + 4 * e.indices[1]
h[r][v] = p
- } else for (s = 0, u = n.stride; s < u; s++) h[r][s] = n.array[i + s]
+ } else for (s = 0, u = n.stride; s < u; s++) h[r][s] = n.array[o + s]
break
case 'translate':
case 'rotate':
@@ -8665,62 +18899,62 @@
var m = (function (e, t) {
var n = []
for (var r in e) n.push({ time: parseFloat(r), value: e[r] })
- n.sort(o)
- for (var i = 0; i < 16; i++) E(n, i, t.elements[i])
+ n.sort(i)
+ for (var o = 0; o < 16; o++) x(n, o, t.elements[o])
return n
- function o(e, t) {
+ function i(e, t) {
return e.time - t.time
}
})(h, f)
- return { name: c.uuid, keyframes: m }
+ return { name: l.uuid, keyframes: m }
}
var y = new THREE.Vector3(),
b = new THREE.Vector3(),
w = new THREE.Quaternion()
- function x(e, t) {
+ function _(e, t) {
for (
var n = e.keyframes,
r = e.name,
- i = [],
o = [],
+ i = [],
a = [],
s = [],
u = 0,
- l = n.length;
- u < l;
+ c = n.length;
+ u < c;
u++
) {
- var c = n[u],
- d = c.time,
- f = c.value
- _e.fromArray(f).transpose(),
- _e.decompose(y, w, b),
- i.push(d),
- o.push(y.x, y.y, y.z),
+ var l = n[u],
+ d = l.time,
+ f = l.value
+ Ee.fromArray(f).transpose(),
+ Ee.decompose(y, w, b),
+ o.push(d),
+ i.push(y.x, y.y, y.z),
a.push(w.x, w.y, w.z, w.w),
s.push(b.x, b.y, b.z)
}
return (
- o.length > 0 && t.push(new THREE.VectorKeyframeTrack(r + '.position', i, o)),
- a.length > 0 && t.push(new THREE.QuaternionKeyframeTrack(r + '.quaternion', i, a)),
- s.length > 0 && t.push(new THREE.VectorKeyframeTrack(r + '.scale', i, s)),
+ i.length > 0 && t.push(new THREE.VectorKeyframeTrack(r + '.position', o, i)),
+ a.length > 0 && t.push(new THREE.QuaternionKeyframeTrack(r + '.quaternion', o, a)),
+ s.length > 0 && t.push(new THREE.VectorKeyframeTrack(r + '.scale', o, s)),
t
)
}
- function E(e, t, n) {
+ function x(e, t, n) {
var r,
- i,
o,
+ i,
a = !0
- for (i = 0, o = e.length; i < o; i++)
- void 0 === (r = e[i]).value[t] ? (r.value[t] = null) : (a = !1)
- if (!0 === a) for (i = 0, o = e.length; i < o; i++) (r = e[i]).value[t] = n
+ for (o = 0, i = e.length; o < i; o++)
+ void 0 === (r = e[o]).value[t] ? (r.value[t] = null) : (a = !1)
+ if (!0 === a) for (o = 0, i = e.length; o < i; o++) (r = e[o]).value[t] = n
else
!(function (e, t) {
- for (var n, r, i = 0, o = e.length; i < o; i++) {
- var a = e[i]
+ for (var n, r, o = 0, i = e.length; o < i; o++) {
+ var a = e[o]
if (null === a.value[t]) {
- if (((n = k(e, i, t)), (r = _(e, i, t)), null === n)) {
+ if (((n = k(e, o, t)), (r = E(e, o, t)), null === n)) {
a.value[t] = r.value[t]
continue
}
@@ -8728,7 +18962,7 @@
a.value[t] = n.value[t]
continue
}
- T(a, n, r, t)
+ O(a, n, r, t)
}
}
})(e, t)
@@ -8741,7 +18975,7 @@
}
return null
}
- function _(e, t, n) {
+ function E(e, t, n) {
for (; t < e.length; ) {
var r = e[t]
if (null !== r.value[n]) return r
@@ -8749,104 +18983,104 @@
}
return null
}
- function T(e, t, n, r) {
+ function O(e, t, n, r) {
n.time - t.time !== 0
? (e.value[r] =
((e.time - t.time) * (n.value[r] - t.value[r])) / (n.time - t.time) +
t.value[r])
: (e.value[r] = t.value[r])
}
- function O(e) {
+ function T(e) {
for (
var t = [],
n = e.name,
r = e.end - e.start || -1,
- i = e.animations,
- o = 0,
- a = i.length;
- o < a;
- o++
+ o = e.animations,
+ i = 0,
+ a = o.length;
+ i < a;
+ i++
)
- for (var s = m(i[o]), u = 0, l = s.length; u < l; u++) t.push(s[u])
+ for (var s = m(o[i]), u = 0, c = s.length; u < c; u++) t.push(s[u])
return new THREE.AnimationClip(n, r, t)
}
function C(e) {
- return f(We.clips[e], O)
+ return f(qe.clips[e], T)
}
- function S(e) {
+ function M(e) {
for (var t = { sources: {} }, n = 0, r = e.childNodes.length; n < r; n++) {
- var o = e.childNodes[n]
- if (1 === o.nodeType)
- switch (o.nodeName) {
+ var i = e.childNodes[n]
+ if (1 === i.nodeType)
+ switch (i.nodeName) {
case 'bind_shape_matrix':
- t.bindShapeMatrix = i(o.textContent)
+ t.bindShapeMatrix = o(i.textContent)
break
case 'source':
- var a = o.getAttribute('id')
- t.sources[a] = ie(o)
+ var a = i.getAttribute('id')
+ t.sources[a] = oe(i)
break
case 'joints':
- t.joints = A(o)
+ t.joints = S(i)
break
case 'vertex_weights':
- t.vertexWeights = P(o)
+ t.vertexWeights = P(i)
}
}
return t
}
- function A(e) {
+ function S(e) {
for (var t = { inputs: {} }, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'input':
- var o = i.getAttribute('semantic'),
- s = a(i.getAttribute('source'))
- t.inputs[o] = s
+ var i = o.getAttribute('semantic'),
+ s = a(o.getAttribute('source'))
+ t.inputs[i] = s
}
}
return t
}
function P(e) {
for (var t = { inputs: {} }, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'input':
- var s = i.getAttribute('semantic'),
- u = a(i.getAttribute('source')),
- l = parseInt(i.getAttribute('offset'))
- t.inputs[s] = { id: u, offset: l }
+ var s = o.getAttribute('semantic'),
+ u = a(o.getAttribute('source')),
+ c = parseInt(o.getAttribute('offset'))
+ t.inputs[s] = { id: u, offset: c }
break
case 'vcount':
- t.vcount = o(i.textContent)
+ t.vcount = i(o.textContent)
break
case 'v':
- t.v = o(i.textContent)
+ t.v = i(o.textContent)
}
}
return t
}
- function M(e) {
+ function j(e) {
var t = { id: e.id },
- n = We.geometries[t.id]
+ n = qe.geometries[t.id]
return (
void 0 !== e.skin &&
((t.skin = (function (e) {
var t,
n,
r,
- i = 4,
- o = {
+ o = 4,
+ i = {
joints: [],
- indices: { array: [], stride: i },
- weights: { array: [], stride: i },
+ indices: { array: [], stride: o },
+ weights: { array: [], stride: o },
},
a = e.sources,
s = e.vertexWeights,
u = s.vcount,
- l = s.v,
- c = s.inputs.JOINT.offset,
+ c = s.v,
+ l = s.inputs.JOINT.offset,
d = s.inputs.WEIGHT.offset,
f = e.sources[e.joints.inputs.JOINT],
h = e.sources[e.joints.inputs.INV_BIND_MATRIX],
@@ -8856,28 +19090,28 @@
var m = u[t],
g = []
for (n = 0; n < m; n++) {
- var y = l[v + c],
- b = p[l[v + d]]
+ var y = c[v + l],
+ b = p[c[v + d]]
g.push({ index: y, weight: b }), (v += 2)
}
- for (g.sort(k), n = 0; n < i; n++) {
+ for (g.sort(k), n = 0; n < o; n++) {
var w = g[n]
void 0 !== w
- ? (o.indices.array.push(w.index), o.weights.array.push(w.weight))
- : (o.indices.array.push(0), o.weights.array.push(0))
+ ? (i.indices.array.push(w.index), i.weights.array.push(w.weight))
+ : (i.indices.array.push(0), i.weights.array.push(0))
}
}
e.bindShapeMatrix
- ? (o.bindMatrix = new THREE.Matrix4()
+ ? (i.bindMatrix = new THREE.Matrix4()
.fromArray(e.bindShapeMatrix)
.transpose())
- : (o.bindMatrix = new THREE.Matrix4().identity())
+ : (i.bindMatrix = new THREE.Matrix4().identity())
for (t = 0, r = f.array.length; t < r; t++) {
- var x = f.array[t],
- E = new THREE.Matrix4().fromArray(h.array, t * h.stride).transpose()
- o.joints.push({ name: x, boneInverse: E })
+ var _ = f.array[t],
+ x = new THREE.Matrix4().fromArray(h.array, t * h.stride).transpose()
+ i.joints.push({ name: _, boneInverse: x })
}
- return o
+ return i
function k(e, t) {
return t.weight - e.weight
}
@@ -8887,90 +19121,90 @@
t
)
}
- function R(e) {
+ function I(e) {
return void 0 !== e.build ? e.build : e.init_from
}
- function j(e) {
- var t = We.images[e]
+ function A(e) {
+ var t = qe.images[e]
return void 0 !== t
- ? f(t, R)
+ ? f(t, I)
: (console.warn("THREE.ColladaLoader: Couldn't find image with ID:", e), null)
}
- function D(e) {
+ function R(e) {
for (
var t = { surfaces: {}, samplers: {} }, n = 0, r = e.childNodes.length;
n < r;
n++
) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'newparam':
- L(i, t)
+ D(o, t)
break
case 'technique':
- t.technique = z(i)
+ t.technique = z(o)
break
case 'extra':
- t.extra = G(i)
+ t.extra = U(o)
}
}
return t
}
- function L(e, t) {
- for (var n = e.getAttribute('sid'), r = 0, i = e.childNodes.length; r < i; r++) {
- var o = e.childNodes[r]
- if (1 === o.nodeType)
- switch (o.nodeName) {
+ function D(e, t) {
+ for (var n = e.getAttribute('sid'), r = 0, o = e.childNodes.length; r < o; r++) {
+ var i = e.childNodes[r]
+ if (1 === i.nodeType)
+ switch (i.nodeName) {
case 'surface':
- t.surfaces[n] = N(o)
+ t.surfaces[n] = L(i)
break
case 'sampler2D':
- t.samplers[n] = I(o)
+ t.samplers[n] = N(i)
}
}
}
- function N(e) {
+ function L(e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'init_from':
- t.init_from = i.textContent
+ t.init_from = o.textContent
}
}
return t
}
- function I(e) {
+ function N(e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'source':
- t.source = i.textContent
+ t.source = o.textContent
}
}
return t
}
function z(e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'constant':
case 'lambert':
case 'blinn':
case 'phong':
- ;(t.type = i.nodeName), (t.parameters = H(i))
+ ;(t.type = o.nodeName), (t.parameters = B(o))
}
}
return t
}
- function H(e) {
+ function B(e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'emission':
case 'diffuse':
case 'specular':
@@ -8978,105 +19212,105 @@
case 'ambient':
case 'shininess':
case 'transparency':
- t[i.nodeName] = B(i)
+ t[o.nodeName] = H(o)
break
case 'transparent':
- t[i.nodeName] = { opaque: i.getAttribute('opaque'), data: B(i) }
+ t[o.nodeName] = { opaque: o.getAttribute('opaque'), data: H(o) }
}
}
return t
}
- function B(e) {
+ function H(e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var o = e.childNodes[n]
- if (1 === o.nodeType)
- switch (o.nodeName) {
+ var i = e.childNodes[n]
+ if (1 === i.nodeType)
+ switch (i.nodeName) {
case 'color':
- t[o.nodeName] = i(o.textContent)
+ t[i.nodeName] = o(i.textContent)
break
case 'float':
- t[o.nodeName] = parseFloat(o.textContent)
+ t[i.nodeName] = parseFloat(i.textContent)
break
case 'texture':
- t[o.nodeName] = { id: o.getAttribute('texture'), extra: F(o) }
+ t[i.nodeName] = { id: i.getAttribute('texture'), extra: F(i) }
}
}
return t
}
function F(e) {
for (var t = { technique: {} }, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'extra':
- V(i, t)
+ V(o, t)
}
}
return t
}
function V(e, t) {
for (var n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'technique':
- U(i, t)
+ W(o, t)
}
}
}
- function U(e, t) {
+ function W(e, t) {
for (var n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'repeatU':
case 'repeatV':
case 'offsetU':
case 'offsetV':
- t.technique[i.nodeName] = parseFloat(i.textContent)
+ t.technique[o.nodeName] = parseFloat(o.textContent)
break
case 'wrapU':
case 'wrapV':
- 'TRUE' === i.textContent.toUpperCase()
- ? (t.technique[i.nodeName] = 1)
- : 'FALSE' === i.textContent.toUpperCase()
- ? (t.technique[i.nodeName] = 0)
- : (t.technique[i.nodeName] = parseInt(i.textContent))
+ 'TRUE' === o.textContent.toUpperCase()
+ ? (t.technique[o.nodeName] = 1)
+ : 'FALSE' === o.textContent.toUpperCase()
+ ? (t.technique[o.nodeName] = 0)
+ : (t.technique[o.nodeName] = parseInt(o.textContent))
}
}
}
- function G(e) {
+ function U(e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'technique':
- t.technique = q(i)
+ t.technique = G(o)
}
}
return t
}
- function q(e) {
+ function G(e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'double_sided':
- t[i.nodeName] = parseInt(i.textContent)
+ t[o.nodeName] = parseInt(o.textContent)
}
}
return t
}
- function W(e) {
+ function q(e) {
return e
}
function K(e) {
var t,
n,
- r = ((t = e.url), f(We.effects[t], W)),
- i = r.profile.technique,
- o = r.profile.extra
- switch (i.type) {
+ r = ((t = e.url), f(qe.effects[t], q)),
+ o = r.profile.technique,
+ i = r.profile.extra
+ switch (o.type) {
case 'phong':
case 'blinn':
n = new THREE.MeshPhongMaterial()
@@ -9091,35 +19325,35 @@
var t = r.profile.samplers[e.id],
n = null
void 0 !== t
- ? (n = j(r.profile.surfaces[t.source].init_from))
+ ? (n = A(r.profile.surfaces[t.source].init_from))
: (console.warn(
'THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530).',
),
- (n = j(e.id)))
+ (n = A(e.id)))
if (null !== n) {
- var i = (function (e) {
+ var o = (function (e) {
var t,
n = e.slice(2 + ((e.lastIndexOf('.') - 1) >>> 0))
switch ((n = n.toLowerCase())) {
case 'tga':
- t = Be
+ t = He
break
default:
t = Ve
}
return t
})(n)
- if (void 0 !== i) {
- var o = i.load(n),
+ if (void 0 !== o) {
+ var i = o.load(n),
a = e.extra
if (void 0 !== a && void 0 !== a.technique && !1 === s(a.technique)) {
var u = a.technique
- ;(o.wrapS = u.wrapU ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping),
- (o.wrapT = u.wrapV ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping),
- o.offset.set(u.offsetU || 0, u.offsetV || 0),
- o.repeat.set(u.repeatU || 1, u.repeatV || 1)
- } else (o.wrapS = THREE.RepeatWrapping), (o.wrapT = THREE.RepeatWrapping)
- return o
+ ;(i.wrapS = u.wrapU ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping),
+ (i.wrapT = u.wrapV ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping),
+ i.offset.set(u.offsetU || 0, u.offsetV || 0),
+ i.repeat.set(u.repeatU || 1, u.repeatV || 1)
+ } else (i.wrapS = THREE.RepeatWrapping), (i.wrapT = THREE.RepeatWrapping)
+ return i
}
return (
console.warn('THREE.ColladaLoader: Loader for texture %s not found.', n), null
@@ -9130,29 +19364,29 @@
)
}
n.name = e.name
- var u = i.parameters
- for (var l in u) {
- var c = u[l]
- switch (l) {
+ var u = o.parameters
+ for (var c in u) {
+ var l = u[c]
+ switch (c) {
case 'diffuse':
- c.color && n.color.fromArray(c.color), c.texture && (n.map = a(c.texture))
+ l.color && n.color.fromArray(l.color), l.texture && (n.map = a(l.texture))
break
case 'specular':
- c.color && n.specular && n.specular.fromArray(c.color),
- c.texture && (n.specularMap = a(c.texture))
+ l.color && n.specular && n.specular.fromArray(l.color),
+ l.texture && (n.specularMap = a(l.texture))
break
case 'bump':
- c.texture && (n.normalMap = a(c.texture))
+ l.texture && (n.normalMap = a(l.texture))
break
case 'ambient':
- c.texture && (n.lightMap = a(c.texture))
+ l.texture && (n.lightMap = a(l.texture))
break
case 'shininess':
- c.float && n.shininess && (n.shininess = c.float)
+ l.float && n.shininess && (n.shininess = l.float)
break
case 'emission':
- c.color && n.emissive && n.emissive.fromArray(c.color),
- c.texture && (n.emissiveMap = a(c.texture))
+ l.color && n.emissive && n.emissive.fromArray(l.color),
+ l.texture && (n.emissiveMap = a(l.texture))
}
}
var d = u.transparent,
@@ -9187,27 +19421,27 @@
n.opacity < 1 && (n.transparent = !0)
}
return (
- void 0 !== o &&
- void 0 !== o.technique &&
- 1 === o.technique.double_sided &&
+ void 0 !== i &&
+ void 0 !== i.technique &&
+ 1 === i.technique.double_sided &&
(n.side = THREE.DoubleSide),
n
)
}
function Z(e) {
- return f(We.materials[e], K)
+ return f(qe.materials[e], K)
}
- function $(e) {
+ function X(e) {
for (var t = 0; t < e.childNodes.length; t++) {
var n = e.childNodes[t]
switch (n.nodeName) {
case 'technique_common':
- return X(n)
+ return $(n)
}
}
return {}
}
- function X(e) {
+ function $(e) {
for (var t = {}, n = 0; n < e.childNodes.length; n++) {
var r = e.childNodes[n]
switch (r.nodeName) {
@@ -9248,9 +19482,9 @@
case 'orthographic':
var n = e.optics.parameters.ymag,
r = e.optics.parameters.xmag,
- i = e.optics.parameters.aspect_ratio
- ;(r = void 0 === r ? n * i : r),
- (n = void 0 === n ? r / i : n),
+ o = e.optics.parameters.aspect_ratio
+ ;(r = void 0 === r ? n * o : r),
+ (n = void 0 === n ? r / o : n),
(r *= 0.5),
(n *= 0.5),
(t = new THREE.OrthographicCamera(
@@ -9268,39 +19502,39 @@
return (t.name = e.name), t
}
function J(e) {
- var t = We.cameras[e]
+ var t = qe.cameras[e]
return void 0 !== t
? f(t, Q)
: (console.warn("THREE.ColladaLoader: Couldn't find camera with ID:", e), null)
}
function ee(e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'directional':
case 'point':
case 'spot':
case 'ambient':
- ;(t.technique = i.nodeName), (t.parameters = te(i))
+ ;(t.technique = o.nodeName), (t.parameters = te(o))
}
}
return t
}
function te(e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var o = e.childNodes[n]
- if (1 === o.nodeType)
- switch (o.nodeName) {
+ var i = e.childNodes[n]
+ if (1 === i.nodeType)
+ switch (i.nodeName) {
case 'color':
- var a = i(o.textContent)
+ var a = o(i.textContent)
t.color = new THREE.Color().fromArray(a)
break
case 'falloff_angle':
- t.falloffAngle = parseFloat(o.textContent)
+ t.falloffAngle = parseFloat(i.textContent)
break
case 'quadratic_attenuation':
- var s = parseFloat(o.textContent)
+ var s = parseFloat(i.textContent)
t.distance = s ? Math.sqrt(1 / s) : 0
}
}
@@ -9328,18 +19562,18 @@
)
}
function re(e) {
- var t = We.lights[e]
+ var t = qe.lights[e]
return void 0 !== t
? f(t, ne)
: (console.warn("THREE.ColladaLoader: Couldn't find light with ID:", e), null)
}
- function ie(e) {
- for (var t = { array: [], stride: 3 }, o = 0; o < e.childNodes.length; o++) {
- var a = e.childNodes[o]
+ function oe(e) {
+ for (var t = { array: [], stride: 3 }, i = 0; i < e.childNodes.length; i++) {
+ var a = e.childNodes[i]
if (1 === a.nodeType)
switch (a.nodeName) {
case 'float_array':
- t.array = i(a.textContent)
+ t.array = o(a.textContent)
break
case 'Name_array':
t.array = r(a.textContent)
@@ -9351,7 +19585,7 @@
}
return t
}
- function oe(e) {
+ function ie(e) {
for (var t = {}, n = 0; n < e.childNodes.length; n++) {
var r = e.childNodes[n]
1 === r.nodeType && (t[r.getAttribute('semantic')] = a(r.getAttribute('source')))
@@ -9373,24 +19607,24 @@
n < r;
n++
) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'input':
- var s = a(i.getAttribute('source')),
- u = i.getAttribute('semantic'),
- l = parseInt(i.getAttribute('offset')),
- c = parseInt(i.getAttribute('set')),
- d = c > 0 ? u + c : u
- ;(t.inputs[d] = { id: s, offset: l }),
- (t.stride = Math.max(t.stride, l + 1)),
+ var s = a(o.getAttribute('source')),
+ u = o.getAttribute('semantic'),
+ c = parseInt(o.getAttribute('offset')),
+ l = parseInt(o.getAttribute('set')),
+ d = l > 0 ? u + l : u
+ ;(t.inputs[d] = { id: s, offset: c }),
+ (t.stride = Math.max(t.stride, c + 1)),
'TEXCOORD' === u && (t.hasUV = !0)
break
case 'vcount':
- t.vcount = o(i.textContent)
+ t.vcount = i(o.textContent)
break
case 'p':
- t.p = o(i.textContent)
+ t.p = i(o.textContent)
}
}
return t
@@ -9405,31 +19639,31 @@
var t = {},
n = e.sources,
r = e.vertices,
- i = e.primitives
- if (0 === i.length) return {}
- var o = (function (e) {
+ o = e.primitives
+ if (0 === o.length) return {}
+ var i = (function (e) {
for (var t = {}, n = 0; n < e.length; n++) {
var r = e[n]
void 0 === t[r.type] && (t[r.type] = []), t[r.type].push(r)
}
return t
- })(i)
- for (var a in o) {
- var s = o[a]
- se(s), (t[a] = le(s, n, r))
+ })(o)
+ for (var a in i) {
+ var s = i[a]
+ se(s), (t[a] = ce(s, n, r))
}
return t
}
- function le(e, t, n) {
+ function ce(e, t, n) {
for (
var r = {},
- i = { array: [], stride: 0 },
o = { array: [], stride: 0 },
+ i = { array: [], stride: 0 },
a = { array: [], stride: 0 },
s = { array: [], stride: 0 },
u = { array: [], stride: 0 },
- l = [],
- c = 4,
+ c = [],
+ l = 4,
d = [],
f = 4,
h = new THREE.BufferGeometry(),
@@ -9452,8 +19686,8 @@
break
case 'polylist':
for (var w = 0; w < g.count; w++) {
- var x = g.vcount[w]
- switch (x) {
+ var _ = g.vcount[w]
+ switch (_) {
case 3:
b += 3
break
@@ -9461,84 +19695,84 @@
b += 6
break
default:
- b += 3 * (x - 2)
+ b += 3 * (_ - 2)
}
}
break
default:
console.warn('THREE.ColladaLoader: Unknow primitive type:', g.type)
}
- for (var E in (h.addGroup(v, b, m),
+ for (var x in (h.addGroup(v, b, m),
(v += b),
g.material && p.push(g.material),
y)) {
- var k = y[E]
- switch (E) {
+ var k = y[x]
+ switch (x) {
case 'VERTEX':
- for (var _ in n) {
- var T = n[_]
- switch (_) {
+ for (var E in n) {
+ var O = n[E]
+ switch (E) {
case 'POSITION':
- var O = i.array.length
+ var T = o.array.length
if (
- (ce(g, t[T], k.offset, i.array),
- (i.stride = t[T].stride),
+ (le(g, t[O], k.offset, o.array),
+ (o.stride = t[O].stride),
t.skinWeights &&
t.skinIndices &&
- (ce(g, t.skinIndices, k.offset, l),
- ce(g, t.skinWeights, k.offset, d)),
+ (le(g, t.skinIndices, k.offset, c),
+ le(g, t.skinWeights, k.offset, d)),
!1 === g.hasUV && !0 === e.uvsNeedsFix)
) {
- b = (i.array.length - O) / i.stride
+ b = (o.array.length - T) / o.stride
for (var C = 0; C < b; C++) a.array.push(0, 0)
}
break
case 'NORMAL':
- ce(g, t[T], k.offset, o.array), (o.stride = t[T].stride)
+ le(g, t[O], k.offset, i.array), (i.stride = t[O].stride)
break
case 'COLOR':
- ce(g, t[T], k.offset, u.array), (u.stride = t[T].stride)
+ le(g, t[O], k.offset, u.array), (u.stride = t[O].stride)
break
case 'TEXCOORD':
- ce(g, t[T], k.offset, a.array), (a.stride = t[T].stride)
+ le(g, t[O], k.offset, a.array), (a.stride = t[O].stride)
break
case 'TEXCOORD1':
- ce(g, t[T], k.offset, s.array), (a.stride = t[T].stride)
+ le(g, t[O], k.offset, s.array), (a.stride = t[O].stride)
break
default:
console.warn(
'THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.',
- _,
+ E,
)
}
}
break
case 'NORMAL':
- ce(g, t[k.id], k.offset, o.array), (o.stride = t[k.id].stride)
+ le(g, t[k.id], k.offset, i.array), (i.stride = t[k.id].stride)
break
case 'COLOR':
- ce(g, t[k.id], k.offset, u.array), (u.stride = t[k.id].stride)
+ le(g, t[k.id], k.offset, u.array), (u.stride = t[k.id].stride)
break
case 'TEXCOORD':
- ce(g, t[k.id], k.offset, a.array), (a.stride = t[k.id].stride)
+ le(g, t[k.id], k.offset, a.array), (a.stride = t[k.id].stride)
break
case 'TEXCOORD1':
- ce(g, t[k.id], k.offset, s.array), (s.stride = t[k.id].stride)
+ le(g, t[k.id], k.offset, s.array), (s.stride = t[k.id].stride)
}
}
}
return (
- i.array.length > 0 &&
- h.addAttribute('position', new THREE.Float32BufferAttribute(i.array, i.stride)),
o.array.length > 0 &&
- h.addAttribute('normal', new THREE.Float32BufferAttribute(o.array, o.stride)),
+ h.addAttribute('position', new THREE.Float32BufferAttribute(o.array, o.stride)),
+ i.array.length > 0 &&
+ h.addAttribute('normal', new THREE.Float32BufferAttribute(i.array, i.stride)),
u.array.length > 0 &&
h.addAttribute('color', new THREE.Float32BufferAttribute(u.array, u.stride)),
a.array.length > 0 &&
h.addAttribute('uv', new THREE.Float32BufferAttribute(a.array, a.stride)),
s.array.length > 0 &&
h.addAttribute('uv2', new THREE.Float32BufferAttribute(s.array, s.stride)),
- l.length > 0 && h.addAttribute('skinIndex', new THREE.Float32BufferAttribute(l, c)),
+ c.length > 0 && h.addAttribute('skinIndex', new THREE.Float32BufferAttribute(c, l)),
d.length > 0 &&
h.addAttribute('skinWeight', new THREE.Float32BufferAttribute(d, f)),
(r.data = h),
@@ -9547,37 +19781,37 @@
r
)
}
- function ce(e, t, n, r) {
- var i = e.p,
- o = e.stride,
+ function le(e, t, n, r) {
+ var o = e.p,
+ i = e.stride,
a = e.vcount
function s(e) {
- for (var t = i[e + n] * l, o = t + l; t < o; t++) r.push(u[t])
+ for (var t = o[e + n] * c, i = t + c; t < i; t++) r.push(u[t])
}
var u = t.array,
- l = t.stride
+ c = t.stride
if (void 0 !== e.vcount)
- for (var c = 0, d = 0, f = a.length; d < f; d++) {
+ for (var l = 0, d = 0, f = a.length; d < f; d++) {
var h = a[d]
if (4 === h) {
- var p = c + 1 * o,
- v = c + 2 * o,
- m = c + 3 * o
- s(c + 0 * o), s(p), s(m), s(p), s(v), s(m)
+ var p = l + 1 * i,
+ v = l + 2 * i,
+ m = l + 3 * i
+ s(l + 0 * i), s(p), s(m), s(p), s(v), s(m)
} else if (3 === h) {
- ;(p = c + 1 * o), (v = c + 2 * o)
- s(c + 0 * o), s(p), s(v)
+ ;(p = l + 1 * i), (v = l + 2 * i)
+ s(l + 0 * i), s(p), s(v)
} else if (h > 4)
for (var g = 1, y = h - 2; g <= y; g++) {
- ;(p = c + o * g), (v = c + o * (g + 1))
- s(c + 0 * o), s(p), s(v)
+ ;(p = l + i * g), (v = l + i * (g + 1))
+ s(l + 0 * i), s(p), s(v)
}
- c += o * h
+ l += i * h
}
- else for (d = 0, f = i.length; d < f; d += o) s(d)
+ else for (d = 0, f = o.length; d < f; d += i) s(d)
}
function de(e) {
- return f(We.geometries[e], ue)
+ return f(qe.geometries[e], ue)
}
function fe(e) {
return void 0 !== e.build ? e.build : e
@@ -9623,8 +19857,8 @@
if (1 === r.nodeType)
switch (r.nodeName) {
case 'axis':
- var o = i(r.textContent)
- t.axis.fromArray(o)
+ var i = o(r.textContent)
+ t.axis.fromArray(i)
break
case 'limits':
var a = r.getElementsByTagName('max')[0],
@@ -9692,7 +19926,7 @@
}
function ye(e) {
var t = { type: e.nodeName },
- n = i(e.textContent)
+ n = o(e.textContent)
switch (t.type) {
case 'matrix':
;(t.obj = new THREE.Matrix4()), t.obj.fromArray(n).transpose()
@@ -9723,14 +19957,14 @@
if (1 === r.nodeType)
switch (r.nodeName) {
case 'inertia':
- t.inertia = i(r.textContent)
+ t.inertia = o(r.textContent)
break
case 'mass':
- t.mass = i(r.textContent)[0]
+ t.mass = o(r.textContent)[0]
}
}
}
- function xe(e) {
+ function _e(e) {
for (
var t = { target: e.getAttribute('target').split('/').pop() }, n = 0;
n < e.childNodes.length;
@@ -9740,15 +19974,15 @@
if (1 === r.nodeType)
switch (r.nodeName) {
case 'axis':
- var i = r.getElementsByTagName('param')[0]
- t.axis = i.textContent
- var o = t.axis.split('inst_').pop().split('axis')[0]
- t.jointIndex = o.substr(0, o.length - 1)
+ var o = r.getElementsByTagName('param')[0]
+ t.axis = o.textContent
+ var i = t.axis.split('inst_').pop().split('axis')[0]
+ t.jointIndex = i.substr(0, i.length - 1)
}
}
return t
}
- function Ee(e) {
+ function xe(e) {
return void 0 !== e.build ? e.build : e
}
function ke(e) {
@@ -9757,31 +19991,31 @@
r < n.childNodes.length;
r++
) {
- var o = n.childNodes[r]
- if (1 === o.nodeType)
- switch (o.nodeName) {
+ var i = n.childNodes[r]
+ if (1 === i.nodeType)
+ switch (i.nodeName) {
case 'matrix':
- var a = i(o.textContent),
+ var a = o(i.textContent),
s = new THREE.Matrix4().fromArray(a).transpose()
- t.push({ sid: o.getAttribute('sid'), type: o.nodeName, obj: s })
+ t.push({ sid: i.getAttribute('sid'), type: i.nodeName, obj: s })
break
case 'translate':
case 'scale':
- a = i(o.textContent)
+ a = o(i.textContent)
var u = new THREE.Vector3().fromArray(a)
- t.push({ sid: o.getAttribute('sid'), type: o.nodeName, obj: u })
+ t.push({ sid: i.getAttribute('sid'), type: i.nodeName, obj: u })
break
case 'rotate':
- ;(a = i(o.textContent)), (u = new THREE.Vector3().fromArray(a))
- var l = THREE.Math.degToRad(a[3])
- t.push({ sid: o.getAttribute('sid'), type: o.nodeName, obj: u, angle: l })
+ ;(a = o(i.textContent)), (u = new THREE.Vector3().fromArray(a))
+ var c = THREE.Math.degToRad(a[3])
+ t.push({ sid: i.getAttribute('sid'), type: i.nodeName, obj: u, angle: c })
}
}
return t
}
- var _e = new THREE.Matrix4(),
- Te = new THREE.Vector3()
- function Oe(e) {
+ var Ee = new THREE.Matrix4(),
+ Oe = new THREE.Vector3()
+ function Te(e) {
for (
var t = {
name: e.getAttribute('name') || '',
@@ -9805,7 +20039,7 @@
if (1 === r.nodeType)
switch (r.nodeName) {
case 'node':
- t.nodes.push(r.getAttribute('id')), Oe(r)
+ t.nodes.push(r.getAttribute('id')), Te(r)
break
case 'instance_camera':
t.instanceCameras.push(a(r.getAttribute('url')))
@@ -9823,25 +20057,25 @@
t.instanceNodes.push(a(r.getAttribute('url')))
break
case 'matrix':
- var o = i(r.textContent)
- t.matrix.multiply(_e.fromArray(o).transpose()),
+ var i = o(r.textContent)
+ t.matrix.multiply(Ee.fromArray(i).transpose()),
(t.transforms[r.getAttribute('sid')] = r.nodeName)
break
case 'translate':
- o = i(r.textContent)
- Te.fromArray(o),
- t.matrix.multiply(_e.makeTranslation(Te.x, Te.y, Te.z)),
+ i = o(r.textContent)
+ Oe.fromArray(i),
+ t.matrix.multiply(Ee.makeTranslation(Oe.x, Oe.y, Oe.z)),
(t.transforms[r.getAttribute('sid')] = r.nodeName)
break
case 'rotate':
- o = i(r.textContent)
- var s = THREE.Math.degToRad(o[3])
- t.matrix.multiply(_e.makeRotationAxis(Te.fromArray(o), s)),
+ i = o(r.textContent)
+ var s = THREE.Math.degToRad(i[3])
+ t.matrix.multiply(Ee.makeRotationAxis(Oe.fromArray(i), s)),
(t.transforms[r.getAttribute('sid')] = r.nodeName)
break
case 'scale':
- o = i(r.textContent)
- t.matrix.scale(Te.fromArray(o)),
+ i = o(r.textContent)
+ t.matrix.scale(Oe.fromArray(i)),
(t.transforms[r.getAttribute('sid')] = r.nodeName)
break
case 'extra':
@@ -9851,12 +20085,12 @@
}
}
return (
- De(t.id)
+ Re(t.id)
? console.warn(
'THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.',
t.id,
)
- : (We.nodes[t.id] = t),
+ : (qe.nodes[t.id] = t),
t
)
}
@@ -9870,14 +20104,14 @@
switch (r.nodeName) {
case 'bind_material':
for (
- var i = r.getElementsByTagName('instance_material'), o = 0;
- o < i.length;
- o++
+ var o = r.getElementsByTagName('instance_material'), i = 0;
+ i < o.length;
+ i++
) {
- var s = i[o],
+ var s = o[i],
u = s.getAttribute('symbol'),
- l = s.getAttribute('target')
- t.materials[u] = a(l)
+ c = s.getAttribute('target')
+ t.materials[u] = a(c)
}
break
case 'skeleton':
@@ -9886,19 +20120,19 @@
}
return t
}
- function Se(e, t) {
+ function Me(e, t) {
var n,
r,
- i,
- o = [],
+ o,
+ i = [],
a = []
for (n = 0; n < e.length; n++) {
var s = e[n]
- if (De(s)) Ae(Le(s), t, o)
- else if (((i = s), void 0 !== We.visualScenes[i]))
- for (var u = We.visualScenes[s].children, l = 0; l < u.length; l++) {
- var c = u[l]
- if ('JOINT' === c.type) Ae(Le(c.id), t, o)
+ if (Re(s)) Se(De(s), t, i)
+ else if (((o = s), void 0 !== qe.visualScenes[o]))
+ for (var u = qe.visualScenes[s].children, c = 0; c < u.length; c++) {
+ var l = u[c]
+ if ('JOINT' === l.type) Se(De(l.id), t, i)
}
else
console.error(
@@ -9907,25 +20141,25 @@
)
}
for (n = 0; n < t.length; n++)
- for (l = 0; l < o.length; l++)
- if ((r = o[l]).bone.name === t[n].name) {
+ for (c = 0; c < i.length; c++)
+ if ((r = i[c]).bone.name === t[n].name) {
;(a[n] = r), (r.processed = !0)
break
}
- for (n = 0; n < o.length; n++)
- !1 === (r = o[n]).processed && (a.push(r), (r.processed = !0))
+ for (n = 0; n < i.length; n++)
+ !1 === (r = i[n]).processed && (a.push(r), (r.processed = !0))
var d = [],
f = []
for (n = 0; n < a.length; n++) (r = a[n]), d.push(r.bone), f.push(r.boneInverse)
return new THREE.Skeleton(d, f)
}
- function Ae(e, t, n) {
+ function Se(e, t, n) {
e.traverse(function (e) {
if (!0 === e.isBone) {
- for (var r, i = 0; i < t.length; i++) {
- var o = t[i]
- if (o.name === e.name) {
- r = o.boneInverse
+ for (var r, o = 0; o < t.length; o++) {
+ var i = t[o]
+ if (i.name === e.name) {
+ r = i.boneInverse
break
}
}
@@ -9939,19 +20173,19 @@
var t,
n = [],
r = e.matrix,
- i = e.nodes,
- o = e.type,
+ o = e.nodes,
+ i = e.type,
a = e.instanceCameras,
s = e.instanceControllers,
u = e.instanceLights,
- l = e.instanceGeometries,
- c = e.instanceNodes,
+ c = e.instanceGeometries,
+ l = e.instanceNodes,
d = 0,
- h = i.length;
+ h = o.length;
d < h;
d++
)
- n.push(Le(i[d]))
+ n.push(De(o[d]))
for (d = 0, h = a.length; d < h; d++) {
var p = J(a[d])
null !== p && n.push(p.clone())
@@ -9959,115 +20193,115 @@
for (d = 0, h = s.length; d < h; d++)
for (
var v = s[d],
- m = ((t = v.id), f(We.controllers[t], M)),
- g = je(de(m.id), v.materials),
- y = Se(v.skeletons, m.skin.joints),
+ m = ((t = v.id), f(qe.controllers[t], j)),
+ g = Ae(de(m.id), v.materials),
+ y = Me(v.skeletons, m.skin.joints),
b = 0,
w = g.length;
b < w;
b++
) {
- var x
- ;(x = g[b]).isSkinnedMesh &&
- (x.bind(y, m.skin.bindMatrix), x.normalizeSkinWeights()),
- n.push(x)
+ var _
+ ;(_ = g[b]).isSkinnedMesh &&
+ (_.bind(y, m.skin.bindMatrix), _.normalizeSkinWeights()),
+ n.push(_)
}
for (d = 0, h = u.length; d < h; d++) {
- var E = re(u[d])
- null !== E && n.push(E.clone())
+ var x = re(u[d])
+ null !== x && n.push(x.clone())
}
- for (d = 0, h = l.length; d < h; d++)
- for (b = 0, w = (g = je(de((v = l[d]).id), v.materials)).length; b < w; b++)
+ for (d = 0, h = c.length; d < h; d++)
+ for (b = 0, w = (g = Ae(de((v = c[d]).id), v.materials)).length; b < w; b++)
n.push(g[b])
- for (d = 0, h = c.length; d < h; d++) n.push(Le(c[d]).clone())
- if (0 === i.length && 1 === n.length) x = n[0]
+ for (d = 0, h = l.length; d < h; d++) n.push(De(l[d]).clone())
+ if (0 === o.length && 1 === n.length) _ = n[0]
else {
- x = 'JOINT' === o ? new THREE.Bone() : new THREE.Group()
- for (d = 0; d < n.length; d++) x.add(n[d])
+ _ = 'JOINT' === i ? new THREE.Bone() : new THREE.Group()
+ for (d = 0; d < n.length; d++) _.add(n[d])
}
return (
- '' === x.name && (x.name = 'JOINT' === o ? e.sid : e.name),
- x.matrix.copy(r),
- x.matrix.decompose(x.position, x.quaternion, x.scale),
- x
+ '' === _.name && (_.name = 'JOINT' === i ? e.sid : e.name),
+ _.matrix.copy(r),
+ _.matrix.decompose(_.position, _.quaternion, _.scale),
+ _
)
}
- var Me = new THREE.MeshBasicMaterial({ color: 16711935 })
- function Re(e, t) {
- for (var n = [], r = 0, i = e.length; r < i; r++) {
- var o = t[e[r]]
- void 0 === o
+ var je = new THREE.MeshBasicMaterial({ color: 16711935 })
+ function Ie(e, t) {
+ for (var n = [], r = 0, o = e.length; r < o; r++) {
+ var i = t[e[r]]
+ void 0 === i
? (console.warn(
'THREE.ColladaLoader: Material with key %s not found. Apply fallback material.',
e[r],
),
- n.push(Me))
- : n.push(Z(o))
+ n.push(je))
+ : n.push(Z(i))
}
return n
}
- function je(e, t) {
+ function Ae(e, t) {
var n = []
for (var r in e) {
- var i = e[r],
- o = Re(i.materialKeys, t)
- 0 === o.length &&
+ var o = e[r],
+ i = Ie(o.materialKeys, t)
+ 0 === i.length &&
('lines' === r || 'linestrips' === r
- ? o.push(new THREE.LineBasicMaterial())
- : o.push(new THREE.MeshPhongMaterial()))
- var a = void 0 !== i.data.attributes.skinIndex
- if (a) for (var s = 0, u = o.length; s < u; s++) o[s].skinning = !0
- var l,
- c = 1 === o.length ? o[0] : o
+ ? i.push(new THREE.LineBasicMaterial())
+ : i.push(new THREE.MeshPhongMaterial()))
+ var a = void 0 !== o.data.attributes.skinIndex
+ if (a) for (var s = 0, u = i.length; s < u; s++) i[s].skinning = !0
+ var c,
+ l = 1 === i.length ? i[0] : i
switch (r) {
case 'lines':
- l = new THREE.LineSegments(i.data, c)
+ c = new THREE.LineSegments(o.data, l)
break
case 'linestrips':
- l = new THREE.Line(i.data, c)
+ c = new THREE.Line(o.data, l)
break
case 'triangles':
case 'polylist':
- l = a ? new THREE.SkinnedMesh(i.data, c) : new THREE.Mesh(i.data, c)
+ c = a ? new THREE.SkinnedMesh(o.data, l) : new THREE.Mesh(o.data, l)
}
- n.push(l)
+ n.push(c)
}
return n
}
+ function Re(e) {
+ return void 0 !== qe.nodes[e]
+ }
function De(e) {
- return void 0 !== We.nodes[e]
+ return f(qe.nodes[e], Pe)
}
function Le(e) {
- return f(We.nodes[e], Pe)
- }
- function Ne(e) {
var t = new THREE.Group()
t.name = e.name
for (var n = e.children, r = 0; r < n.length; r++) {
- var i = n[r]
- t.add(Le(i.id))
+ var o = n[r]
+ t.add(De(o.id))
}
return t
}
- function Ie(e) {
- return f(We.visualScenes[e], Ne)
+ function Ne(e) {
+ return f(qe.visualScenes[e], Le)
}
if (0 === e.length) return { scene: new THREE.Scene() }
var ze = n(new DOMParser().parseFromString(e, 'application/xml'), 'COLLADA')[0],
- He = ze.getAttribute('version')
- console.log('THREE.ColladaLoader: File version', He)
- var Be,
+ Be = ze.getAttribute('version')
+ console.log('THREE.ColladaLoader: File version', Be)
+ var He,
Fe = (function (e) {
- return { unit: u(n(e, 'unit')[0]), upAxis: l(n(e, 'up_axis')[0]) }
+ return { unit: u(n(e, 'unit')[0]), upAxis: c(n(e, 'up_axis')[0]) }
})(n(ze, 'asset')[0]),
Ve = new THREE.TextureLoader(this.manager)
Ve.setPath(this.resourcePath || t).setCrossOrigin(this.crossOrigin),
THREE.TGALoader &&
- (Be = new THREE.TGALoader(this.manager)).setPath(this.resourcePath || t)
- var Ue = [],
- Ge = {},
- qe = 0,
- We = {
+ (He = new THREE.TGALoader(this.manager)).setPath(this.resourcePath || t)
+ var We = [],
+ Ue = {},
+ Ge = 0,
+ qe = {
animations: {},
clips: {},
controllers: {},
@@ -10083,32 +20317,32 @@
physicsModels: {},
kinematicsScenes: {},
}
- c(ze, 'library_animations', 'animation', function (e) {
+ l(ze, 'library_animations', 'animation', function (e) {
for (
var t = { sources: {}, samplers: {}, channels: {} }, n = 0, r = e.childNodes.length;
n < r;
n++
) {
- var i,
- o = e.childNodes[n]
- if (1 === o.nodeType)
- switch (o.nodeName) {
+ var o,
+ i = e.childNodes[n]
+ if (1 === i.nodeType)
+ switch (i.nodeName) {
case 'source':
- ;(i = o.getAttribute('id')), (t.sources[i] = ie(o))
+ ;(o = i.getAttribute('id')), (t.sources[o] = oe(i))
break
case 'sampler':
- ;(i = o.getAttribute('id')), (t.samplers[i] = h(o))
+ ;(o = i.getAttribute('id')), (t.samplers[o] = h(i))
break
case 'channel':
- ;(i = o.getAttribute('target')), (t.channels[i] = p(o))
+ ;(o = i.getAttribute('target')), (t.channels[o] = p(i))
break
default:
- console.log(o)
+ console.log(i)
}
}
- We.animations[e.getAttribute('id')] = t
+ qe.animations[e.getAttribute('id')] = t
}),
- c(ze, 'library_animation_clips', 'animation_clip', function (e) {
+ l(ze, 'library_animation_clips', 'animation_clip', function (e) {
for (
var t = {
name: e.getAttribute('id') || 'default',
@@ -10121,136 +20355,136 @@
n < r;
n++
) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'instance_animation':
- t.animations.push(a(i.getAttribute('url')))
+ t.animations.push(a(o.getAttribute('url')))
}
}
- We.clips[e.getAttribute('id')] = t
+ qe.clips[e.getAttribute('id')] = t
}),
- c(ze, 'library_controllers', 'controller', function (e) {
+ l(ze, 'library_controllers', 'controller', function (e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'skin':
- ;(t.id = a(i.getAttribute('source'))), (t.skin = S(i))
+ ;(t.id = a(o.getAttribute('source'))), (t.skin = M(o))
break
case 'morph':
- ;(t.id = a(i.getAttribute('source'))),
+ ;(t.id = a(o.getAttribute('source'))),
console.warn(
'THREE.ColladaLoader: Morph target animation not supported yet.',
)
}
}
- We.controllers[e.getAttribute('id')] = t
+ qe.controllers[e.getAttribute('id')] = t
}),
- c(ze, 'library_images', 'image', function (e) {
+ l(ze, 'library_images', 'image', function (e) {
var t = { init_from: n(e, 'init_from')[0].textContent }
- We.images[e.getAttribute('id')] = t
+ qe.images[e.getAttribute('id')] = t
}),
- c(ze, 'library_effects', 'effect', function (e) {
+ l(ze, 'library_effects', 'effect', function (e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'profile_COMMON':
- t.profile = D(i)
+ t.profile = R(o)
}
}
- We.effects[e.getAttribute('id')] = t
+ qe.effects[e.getAttribute('id')] = t
}),
- c(ze, 'library_materials', 'material', function (e) {
+ l(ze, 'library_materials', 'material', function (e) {
for (
var t = { name: e.getAttribute('name') }, n = 0, r = e.childNodes.length;
n < r;
n++
) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'instance_effect':
- t.url = a(i.getAttribute('url'))
+ t.url = a(o.getAttribute('url'))
}
}
- We.materials[e.getAttribute('id')] = t
+ qe.materials[e.getAttribute('id')] = t
}),
- c(ze, 'library_cameras', 'camera', function (e) {
+ l(ze, 'library_cameras', 'camera', function (e) {
for (
var t = { name: e.getAttribute('name') }, n = 0, r = e.childNodes.length;
n < r;
n++
) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'optics':
- t.optics = $(i)
+ t.optics = X(o)
}
}
- We.cameras[e.getAttribute('id')] = t
+ qe.cameras[e.getAttribute('id')] = t
}),
- c(ze, 'library_lights', 'light', function (e) {
+ l(ze, 'library_lights', 'light', function (e) {
for (var t = {}, n = 0, r = e.childNodes.length; n < r; n++) {
- var i = e.childNodes[n]
- if (1 === i.nodeType)
- switch (i.nodeName) {
+ var o = e.childNodes[n]
+ if (1 === o.nodeType)
+ switch (o.nodeName) {
case 'technique_common':
- t = ee(i)
+ t = ee(o)
}
}
- We.lights[e.getAttribute('id')] = t
+ qe.lights[e.getAttribute('id')] = t
}),
- c(ze, 'library_geometries', 'geometry', function (e) {
+ l(ze, 'library_geometries', 'geometry', function (e) {
var t = { name: e.getAttribute('name'), sources: {}, vertices: {}, primitives: [] },
r = n(e, 'mesh')[0]
if (void 0 !== r) {
- for (var i = 0; i < r.childNodes.length; i++) {
- var o = r.childNodes[i]
- if (1 === o.nodeType) {
- var a = o.getAttribute('id')
- switch (o.nodeName) {
+ for (var o = 0; o < r.childNodes.length; o++) {
+ var i = r.childNodes[o]
+ if (1 === i.nodeType) {
+ var a = i.getAttribute('id')
+ switch (i.nodeName) {
case 'source':
- t.sources[a] = ie(o)
+ t.sources[a] = oe(i)
break
case 'vertices':
- t.vertices = oe(o)
+ t.vertices = ie(i)
break
case 'polygons':
console.warn(
'THREE.ColladaLoader: Unsupported primitive type: ',
- o.nodeName,
+ i.nodeName,
)
break
case 'lines':
case 'linestrips':
case 'polylist':
case 'triangles':
- t.primitives.push(ae(o))
+ t.primitives.push(ae(i))
break
default:
- console.log(o)
+ console.log(i)
}
}
}
- We.geometries[e.getAttribute('id')] = t
+ qe.geometries[e.getAttribute('id')] = t
}
}),
- c(ze, 'library_nodes', 'node', Oe),
- c(ze, 'library_visual_scenes', 'visual_scene', function (e) {
+ l(ze, 'library_nodes', 'node', Te),
+ l(ze, 'library_visual_scenes', 'visual_scene', function (e) {
var t = { name: e.getAttribute('name'), children: [] }
!(function (e) {
for (var t = e.getElementsByTagName('node'), n = 0; n < t.length; n++) {
var r = t[n]
- !1 === r.hasAttribute('id') && r.setAttribute('id', 'three_default_' + qe++)
+ !1 === r.hasAttribute('id') && r.setAttribute('id', 'three_default_' + Ge++)
}
})(e)
- for (var r = n(e, 'node'), i = 0; i < r.length; i++) t.children.push(Oe(r[i]))
- We.visualScenes[e.getAttribute('id')] = t
+ for (var r = n(e, 'node'), o = 0; o < r.length; o++) t.children.push(Te(r[o]))
+ qe.visualScenes[e.getAttribute('id')] = t
}),
- c(ze, 'library_kinematics_models', 'kinematics_model', function (e) {
+ l(ze, 'library_kinematics_models', 'kinematics_model', function (e) {
for (
var t = { name: e.getAttribute('name') || '', joints: {}, links: [] }, n = 0;
n < e.childNodes.length;
@@ -10263,9 +20497,9 @@
he(r, t)
}
}
- We.kinematicsModels[e.getAttribute('id')] = t
+ qe.kinematicsModels[e.getAttribute('id')] = t
}),
- c(ze, 'library_physics_models', 'physics_model', function (e) {
+ l(ze, 'library_physics_models', 'physics_model', function (e) {
for (
var t = { name: e.getAttribute('name') || '', rigidBodies: {} }, n = 0;
n < e.childNodes.length;
@@ -10279,60 +20513,60 @@
be(r, t.rigidBodies[r.getAttribute('name')])
}
}
- We.physicsModels[e.getAttribute('id')] = t
+ qe.physicsModels[e.getAttribute('id')] = t
}),
- c(ze, 'scene', 'instance_kinematics_scene', function (e) {
+ l(ze, 'scene', 'instance_kinematics_scene', function (e) {
for (var t = { bindJointAxis: [] }, n = 0; n < e.childNodes.length; n++) {
var r = e.childNodes[n]
if (1 === r.nodeType)
switch (r.nodeName) {
case 'bind_joint_axis':
- t.bindJointAxis.push(xe(r))
+ t.bindJointAxis.push(_e(r))
}
}
- We.kinematicsScenes[a(e.getAttribute('url'))] = t
+ qe.kinematicsScenes[a(e.getAttribute('url'))] = t
}),
- d(We.animations, v),
- d(We.clips, O),
- d(We.controllers, M),
- d(We.images, R),
- d(We.effects, W),
- d(We.materials, K),
- d(We.cameras, Q),
- d(We.lights, ne),
- d(We.geometries, ue),
- d(We.visualScenes, Ne),
+ d(qe.animations, v),
+ d(qe.clips, T),
+ d(qe.controllers, j),
+ d(qe.images, I),
+ d(qe.effects, q),
+ d(qe.materials, K),
+ d(qe.cameras, Q),
+ d(qe.lights, ne),
+ d(qe.geometries, ue),
+ d(qe.visualScenes, Le),
(function () {
- var e = We.clips
+ var e = qe.clips
if (!0 === s(e)) {
- if (!1 === s(We.animations)) {
+ if (!1 === s(qe.animations)) {
var t = []
- for (var n in We.animations)
- for (var r = m(n), i = 0, o = r.length; i < o; i++) t.push(r[i])
- Ue.push(new THREE.AnimationClip('default', -1, t))
+ for (var n in qe.animations)
+ for (var r = m(n), o = 0, i = r.length; o < i; o++) t.push(r[o])
+ We.push(new THREE.AnimationClip('default', -1, t))
}
- } else for (var n in e) Ue.push(C(n))
+ } else for (var n in e) We.push(C(n))
})(),
(function () {
- var e = Object.keys(We.kinematicsModels)[0],
- t = Object.keys(We.kinematicsScenes)[0],
- n = Object.keys(We.visualScenes)[0]
+ var e = Object.keys(qe.kinematicsModels)[0],
+ t = Object.keys(qe.kinematicsScenes)[0],
+ n = Object.keys(qe.visualScenes)[0]
if (void 0 !== e && void 0 !== t) {
for (
var r,
- i = ((r = e), f(We.kinematicsModels[r], fe)),
- o = (function (e) {
- return f(We.kinematicsScenes[e], Ee)
+ o = ((r = e), f(qe.kinematicsModels[r], fe)),
+ i = (function (e) {
+ return f(qe.kinematicsScenes[e], xe)
})(t),
- a = Ie(n),
- s = o.bindJointAxis,
+ a = Ne(n),
+ s = i.bindJointAxis,
u = {},
- l = 0,
- c = s.length;
- l < c;
- l++
+ c = 0,
+ l = s.length;
+ c < l;
+ c++
) {
- var d = s[l],
+ var d = s[c],
h = ze.querySelector('[sid="' + d.target + '"]')
if (h) {
var p = h.parentElement
@@ -10340,8 +20574,8 @@
}
}
var v = new THREE.Matrix4()
- Ge = {
- joints: i && i.joints,
+ Ue = {
+ joints: o && o.joints,
getJointValue: function (e) {
var t = u[e]
if (t) return t.position
@@ -10366,40 +20600,40 @@
else if (r.static)
console.warn('THREE.ColladaLoader: Joint ' + e + ' is static.')
else {
- var i = n.object,
- o = r.axis,
+ var o = n.object,
+ i = r.axis,
a = n.transforms
- _e.identity()
+ Ee.identity()
for (var s = 0; s < a.length; s++) {
- var l = a[s]
- if (l.sid && -1 !== l.sid.indexOf(e))
+ var c = a[s]
+ if (c.sid && -1 !== c.sid.indexOf(e))
switch (r.type) {
case 'revolute':
- _e.multiply(v.makeRotationAxis(o, THREE.Math.degToRad(t)))
+ Ee.multiply(v.makeRotationAxis(i, THREE.Math.degToRad(t)))
break
case 'prismatic':
- _e.multiply(v.makeTranslation(o.x * t, o.y * t, o.z * t))
+ Ee.multiply(v.makeTranslation(i.x * t, i.y * t, i.z * t))
break
default:
console.warn('THREE.ColladaLoader: Unknown joint type: ' + r.type)
}
else
- switch (l.type) {
+ switch (c.type) {
case 'matrix':
- _e.multiply(l.obj)
+ Ee.multiply(c.obj)
break
case 'translate':
- _e.multiply(v.makeTranslation(l.obj.x, l.obj.y, l.obj.z))
+ Ee.multiply(v.makeTranslation(c.obj.x, c.obj.y, c.obj.z))
break
case 'scale':
- _e.scale(l.obj)
+ Ee.scale(c.obj)
break
case 'rotate':
- _e.multiply(v.makeRotationAxis(l.obj, l.angle))
+ Ee.multiply(v.makeRotationAxis(c.obj, c.angle))
}
}
- i.matrix.copy(_e),
- i.matrix.decompose(i.position, i.quaternion, i.scale),
+ o.matrix.copy(Ee),
+ o.matrix.decompose(o.position, o.quaternion, o.scale),
(u[e].position = t)
}
} else console.log('THREE.ColladaLoader: ' + e + ' does not exist.')
@@ -10408,42 +20642,42 @@
}
function m(e, t) {
var n = t.getAttribute('name'),
- r = i.joints[e]
- a.traverse(function (i) {
- i.name === n &&
- (u[e] = { object: i, transforms: ke(t), joint: r, position: r.zeroPosition })
+ r = o.joints[e]
+ a.traverse(function (o) {
+ o.name === n &&
+ (u[e] = { object: o, transforms: ke(t), joint: r, position: r.zeroPosition })
})
}
})()
var Ke = (function (e) {
- return Ie(a(n(e, 'instance_visual_scene')[0].getAttribute('url')))
+ return Ne(a(n(e, 'instance_visual_scene')[0].getAttribute('url')))
})(n(ze, 'scene')[0])
return (
'Z_UP' === Fe.upAxis &&
Ke.quaternion.setFromEuler(new THREE.Euler(-Math.PI / 2, 0, 0)),
Ke.scale.multiplyScalar(Fe.unit),
- { animations: Ue, kinematics: Ge, library: We, scene: Ke }
+ { animations: We, kinematics: Ue, library: qe, scene: Ke }
)
},
})
},
- 9434: function (e) {
+ 99434: function (e) {
e.exports = THREE.FBXLoader = (function () {
var e, t, n
function r(e) {
this.manager = void 0 !== e ? e : THREE.DefaultLoadingManager
}
- function i(e) {
+ function o(e) {
this.textureLoader = e
}
- function o() {}
+ function i() {}
function a() {}
function s() {}
function u() {}
- function l(e, t) {
+ function c(e, t) {
;(this.dv = new DataView(e)), (this.offset = 0), (this.littleEndian = void 0 === t || t)
}
- function c() {}
+ function l() {}
function d(e) {
var t = e.match(/FBXVersion: (\d+)/)
if (t) return parseInt(t[1])
@@ -10456,19 +20690,19 @@
constructor: r,
crossOrigin: 'anonymous',
load: function (e, t, n, r) {
- var i = this,
- o = THREE.LoaderUtils.extractUrlBase(e),
+ var o = this,
+ i = THREE.LoaderUtils.extractUrlBase(e),
a = new THREE.FileLoader(this.manager)
a.setResponseType('arraybuffer'),
a.load(
e,
function (n) {
try {
- var a = i.parse(n, o)
+ var a = o.parse(n, i)
t(a)
} catch (s) {
setTimeout(function () {
- r && r(s), i.manager.itemError(e)
+ r && r(s), o.manager.itemError(e)
}, 0)
}
},
@@ -10518,8 +20752,8 @@
var r = e[t - 1]
return (e = e.slice(n + t)), n++, r
}
- for (var i = 0; i < t.length; ++i) {
- if (r(1) === t[i]) return !1
+ for (var o = 0; o < t.length; ++o) {
+ if (r(1) === t[o]) return !1
}
return !0
})(r)
@@ -10529,21 +20763,21 @@
throw new Error('THREE.FBXLoader: FBX version not supported, FileVersion: ' + d(r))
e = new s().parse(r)
}
- return new i(
+ return new o(
new THREE.TextureLoader(this.manager).setPath(n).setCrossOrigin(this.crossOrigin),
).parse(e)
},
}),
- (i.prototype = {
- constructor: i,
+ (o.prototype = {
+ constructor: o,
parse: function () {
t = this.parseConnections()
var e = this.parseImages(),
r = this.parseTextures(e),
- i = this.parseMaterials(r),
+ o = this.parseMaterials(r),
a = this.parseDeformers(),
- s = new o().parse(a)
- return this.parseScene(a, s, i), n
+ s = new i().parse(a)
+ return this.parseScene(a, s, o), n
},
parseConnections: function () {
var t = new Map()
@@ -10551,11 +20785,11 @@
e.Connections.connections.forEach(function (e) {
var n = e[0],
r = e[1],
- i = e[2]
+ o = e[2]
t.has(n) || t.set(n, { parents: [], children: [] })
- var o = { ID: r, relationship: i }
- t.get(n).parents.push(o), t.has(r) || t.set(r, { parents: [], children: [] })
- var a = { ID: n, relationship: i }
+ var i = { ID: r, relationship: o }
+ t.get(n).parents.push(i), t.has(r) || t.set(r, { parents: [], children: [] })
+ var a = { ID: n, relationship: o }
t.get(r).children.push(a)
})
return t
@@ -10565,21 +20799,21 @@
n = {}
if ('Video' in e.Objects) {
var r = e.Objects.Video
- for (var i in r) {
- var o = r[i]
- if (((t[(l = parseInt(i))] = o.RelativeFilename || o.Filename), 'Content' in o)) {
- var a = o.Content instanceof ArrayBuffer && o.Content.byteLength > 0,
- s = 'string' === typeof o.Content && '' !== o.Content
+ for (var o in r) {
+ var i = r[o]
+ if (((t[(c = parseInt(o))] = i.RelativeFilename || i.Filename), 'Content' in i)) {
+ var a = i.Content instanceof ArrayBuffer && i.Content.byteLength > 0,
+ s = 'string' === typeof i.Content && '' !== i.Content
if (a || s) {
- var u = this.parseImage(r[i])
- n[o.RelativeFilename || o.Filename] = u
+ var u = this.parseImage(r[o])
+ n[i.RelativeFilename || i.Filename] = u
}
}
}
}
- for (var l in t) {
- var c = t[l]
- void 0 !== n[c] ? (t[l] = n[c]) : (t[l] = t[l].split('\\').pop())
+ for (var c in t) {
+ var l = t[c]
+ void 0 !== n[l] ? (t[c] = n[l]) : (t[c] = t[c].split('\\').pop())
}
return t
},
@@ -10587,8 +20821,8 @@
var t,
n = e.Content,
r = e.RelativeFilename || e.Filename,
- i = r.slice(r.lastIndexOf('.') + 1).toLowerCase()
- switch (i) {
+ o = r.slice(r.lastIndexOf('.') + 1).toLowerCase()
+ switch (o) {
case 'bmp':
t = 'image/bmp'
break
@@ -10612,19 +20846,19 @@
(t = 'image/tga')
break
default:
- return void console.warn('FBXLoader: Image type "' + i + '" is not supported.')
+ return void console.warn('FBXLoader: Image type "' + o + '" is not supported.')
}
if ('string' === typeof n) return 'data:' + t + ';base64,' + n
- var o = new Uint8Array(n)
- return window.URL.createObjectURL(new Blob([o], { type: t }))
+ var i = new Uint8Array(n)
+ return window.URL.createObjectURL(new Blob([i], { type: t }))
},
parseTextures: function (t) {
var n = new Map()
if ('Texture' in e.Objects) {
var r = e.Objects.Texture
- for (var i in r) {
- var o = this.parseTexture(r[i], t)
- n.set(parseInt(i), o)
+ for (var o in r) {
+ var i = this.parseTexture(r[o], t)
+ n.set(parseInt(o), i)
}
}
return n
@@ -10633,11 +20867,11 @@
var n = this.loadTexture(e, t)
;(n.ID = e.id), (n.name = e.attrName)
var r = e.WrapModeU,
- i = e.WrapModeV,
- o = void 0 !== r ? r.value : 0,
- a = void 0 !== i ? i.value : 0
+ o = e.WrapModeV,
+ i = void 0 !== r ? r.value : 0,
+ a = void 0 !== o ? o.value : 0
if (
- ((n.wrapS = 0 === o ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping),
+ ((n.wrapS = 0 === i ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping),
(n.wrapT = 0 === a ? THREE.RepeatWrapping : THREE.ClampToEdgeWrapping),
'Scaling' in e)
) {
@@ -10648,8 +20882,8 @@
},
loadTexture: function (e, n) {
var r,
- i,
- o = this.textureLoader.path,
+ o,
+ i = this.textureLoader.path,
a = t.get(e.id).children
void 0 !== a &&
a.length > 0 &&
@@ -10664,37 +20898,37 @@
'FBXLoader: TGALoader not found, creating empty placeholder texture for',
r,
),
- (i = new THREE.Texture()))
- : (i = u.load(r))
+ (o = new THREE.Texture()))
+ : (o = u.load(r))
} else
'psd' === s
? (console.warn(
'FBXLoader: PSD textures are not supported, creating empty placeholder texture for',
r,
),
- (i = new THREE.Texture()))
- : (i = this.textureLoader.load(r))
- return this.textureLoader.setPath(o), i
+ (o = new THREE.Texture()))
+ : (o = this.textureLoader.load(r))
+ return this.textureLoader.setPath(i), o
},
parseMaterials: function (t) {
var n = new Map()
if ('Material' in e.Objects) {
var r = e.Objects.Material
- for (var i in r) {
- var o = this.parseMaterial(r[i], t)
- null !== o && n.set(parseInt(i), o)
+ for (var o in r) {
+ var i = this.parseMaterial(r[o], t)
+ null !== i && n.set(parseInt(o), i)
}
}
return n
},
parseMaterial: function (e, n) {
var r = e.id,
- i = e.attrName,
- o = e.ShadingModel
- if (('object' === typeof o && (o = o.value), !t.has(r))) return null
+ o = e.attrName,
+ i = e.ShadingModel
+ if (('object' === typeof i && (i = i.value), !t.has(r))) return null
var a,
s = this.parseParameters(e, n, r)
- switch (o.toLowerCase()) {
+ switch (i.toLowerCase()) {
case 'phong':
a = new THREE.MeshPhongMaterial()
break
@@ -10704,65 +20938,65 @@
default:
console.warn(
'THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.',
- o,
+ i,
),
(a = new THREE.MeshPhongMaterial({ color: 3342591 }))
}
- return a.setValues(s), (a.name = i), a
+ return a.setValues(s), (a.name = o), a
},
parseParameters: function (e, n, r) {
- var i = {}
- e.BumpFactor && (i.bumpScale = e.BumpFactor.value),
+ var o = {}
+ e.BumpFactor && (o.bumpScale = e.BumpFactor.value),
e.Diffuse
- ? (i.color = new THREE.Color().fromArray(e.Diffuse.value))
+ ? (o.color = new THREE.Color().fromArray(e.Diffuse.value))
: e.DiffuseColor &&
'Color' === e.DiffuseColor.type &&
- (i.color = new THREE.Color().fromArray(e.DiffuseColor.value)),
- e.DisplacementFactor && (i.displacementScale = e.DisplacementFactor.value),
+ (o.color = new THREE.Color().fromArray(e.DiffuseColor.value)),
+ e.DisplacementFactor && (o.displacementScale = e.DisplacementFactor.value),
e.Emissive
- ? (i.emissive = new THREE.Color().fromArray(e.Emissive.value))
+ ? (o.emissive = new THREE.Color().fromArray(e.Emissive.value))
: e.EmissiveColor &&
'Color' === e.EmissiveColor.type &&
- (i.emissive = new THREE.Color().fromArray(e.EmissiveColor.value)),
- e.EmissiveFactor && (i.emissiveIntensity = parseFloat(e.EmissiveFactor.value)),
- e.Opacity && (i.opacity = parseFloat(e.Opacity.value)),
- i.opacity < 1 && (i.transparent = !0),
- e.ReflectionFactor && (i.reflectivity = e.ReflectionFactor.value),
- e.Shininess && (i.shininess = e.Shininess.value),
+ (o.emissive = new THREE.Color().fromArray(e.EmissiveColor.value)),
+ e.EmissiveFactor && (o.emissiveIntensity = parseFloat(e.EmissiveFactor.value)),
+ e.Opacity && (o.opacity = parseFloat(e.Opacity.value)),
+ o.opacity < 1 && (o.transparent = !0),
+ e.ReflectionFactor && (o.reflectivity = e.ReflectionFactor.value),
+ e.Shininess && (o.shininess = e.Shininess.value),
e.Specular
- ? (i.specular = new THREE.Color().fromArray(e.Specular.value))
+ ? (o.specular = new THREE.Color().fromArray(e.Specular.value))
: e.SpecularColor &&
'Color' === e.SpecularColor.type &&
- (i.specular = new THREE.Color().fromArray(e.SpecularColor.value))
- var o = this
+ (o.specular = new THREE.Color().fromArray(e.SpecularColor.value))
+ var i = this
return (
t.get(r).children.forEach(function (e) {
var t = e.relationship
switch (t) {
case 'Bump':
- i.bumpMap = o.getTexture(n, e.ID)
+ o.bumpMap = i.getTexture(n, e.ID)
break
case 'DiffuseColor':
- i.map = o.getTexture(n, e.ID)
+ o.map = i.getTexture(n, e.ID)
break
case 'DisplacementColor':
- i.displacementMap = o.getTexture(n, e.ID)
+ o.displacementMap = i.getTexture(n, e.ID)
break
case 'EmissiveColor':
- i.emissiveMap = o.getTexture(n, e.ID)
+ o.emissiveMap = i.getTexture(n, e.ID)
break
case 'NormalMap':
- i.normalMap = o.getTexture(n, e.ID)
+ o.normalMap = i.getTexture(n, e.ID)
break
case 'ReflectionColor':
- ;(i.envMap = o.getTexture(n, e.ID)),
- (i.envMap.mapping = THREE.EquirectangularReflectionMapping)
+ ;(o.envMap = i.getTexture(n, e.ID)),
+ (o.envMap.mapping = THREE.EquirectangularReflectionMapping)
break
case 'SpecularColor':
- i.specularMap = o.getTexture(n, e.ID)
+ o.specularMap = i.getTexture(n, e.ID)
break
case 'TransparentColor':
- ;(i.alphaMap = o.getTexture(n, e.ID)), (i.transparent = !0)
+ ;(o.alphaMap = i.getTexture(n, e.ID)), (o.transparent = !0)
break
case 'AmbientColor':
case 'ShininessExponent':
@@ -10775,7 +21009,7 @@
)
}
}),
- i
+ o
)
},
getTexture: function (n, r) {
@@ -10793,28 +21027,28 @@
var n = {},
r = {}
if ('Deformer' in e.Objects) {
- var i = e.Objects.Deformer
- for (var o in i) {
- var a = i[o],
- s = t.get(parseInt(o))
+ var o = e.Objects.Deformer
+ for (var i in o) {
+ var a = o[i],
+ s = t.get(parseInt(i))
if ('Skin' === a.attrType) {
- var u = this.parseSkeleton(s, i)
- ;(u.ID = o),
+ var u = this.parseSkeleton(s, o)
+ ;(u.ID = i),
s.parents.length > 1 &&
console.warn(
'THREE.FBXLoader: skeleton attached to more than one geometry is not supported.',
),
(u.geometryID = s.parents[0].ID),
- (n[o] = u)
+ (n[i] = u)
} else if ('BlendShape' === a.attrType) {
- var l = { id: o }
- ;(l.rawTargets = this.parseMorphTargets(s, i)),
- (l.id = o),
+ var c = { id: i }
+ ;(c.rawTargets = this.parseMorphTargets(s, o)),
+ (c.id = i),
s.parents.length > 1 &&
console.warn(
'THREE.FBXLoader: morph target attached to more than one geometry is not supported.',
),
- (r[o] = l)
+ (r[i] = c)
}
}
}
@@ -10826,7 +21060,7 @@
e.children.forEach(function (e) {
var r = t[e.ID]
if ('Cluster' === r.attrType) {
- var i = {
+ var o = {
ID: e.ID,
indices: [],
weights: [],
@@ -10834,23 +21068,23 @@
transformLink: new THREE.Matrix4().fromArray(r.TransformLink.a),
linkMode: r.Mode,
}
- 'Indexes' in r && ((i.indices = r.Indexes.a), (i.weights = r.Weights.a)),
- n.push(i)
+ 'Indexes' in r && ((o.indices = r.Indexes.a), (o.weights = r.Weights.a)),
+ n.push(o)
}
}),
{ rawBones: n, bones: [] }
)
},
parseMorphTargets: function (e, n) {
- for (var r = [], i = 0; i < e.children.length; i++) {
- if (8 === i) {
+ for (var r = [], o = 0; o < e.children.length; o++) {
+ if (8 === o) {
console.warn(
'FBXLoader: maximum of 8 morph targets supported. Ignoring additional targets.',
)
break
}
- var o = e.children[i],
- a = n[o.ID],
+ var i = e.children[o],
+ a = n[i.ID],
s = {
name: a.attrName,
initialWeight: a.DeformPercent,
@@ -10858,88 +21092,88 @@
fullWeights: a.FullWeights.a,
}
if ('BlendShapeChannel' !== a.attrType) return
- t.get(parseInt(o.ID)).children.forEach(function (e) {
+ t.get(parseInt(i.ID)).children.forEach(function (e) {
void 0 === e.relationship && (s.geoID = e.ID)
}),
r.push(s)
}
return r
},
- parseScene: function (r, i, o) {
+ parseScene: function (r, o, i) {
n = new THREE.Group()
- var s = this.parseModels(r.skeletons, i, o),
+ var s = this.parseModels(r.skeletons, o, i),
u = e.Objects.Model,
- l = this
+ c = this
s.forEach(function (e) {
var r = u[e.ID]
- l.setLookAtProperties(e, r),
+ c.setLookAtProperties(e, r),
t.get(e.ID).parents.forEach(function (t) {
var n = s.get(t.ID)
void 0 !== n && n.add(e)
}),
null === e.parent && n.add(e)
}),
- this.bindSkeleton(r.skeletons, i, s),
+ this.bindSkeleton(r.skeletons, o, s),
this.createAmbientLight(),
this.setupMorphMaterials()
- var c = new a().parse()
+ var l = new a().parse()
1 === n.children.length &&
n.children[0].isGroup &&
- ((n.children[0].animations = c), (n = n.children[0])),
- (n.animations = c)
+ ((n.children[0].animations = l), (n = n.children[0])),
+ (n.animations = l)
},
- parseModels: function (n, r, i) {
- var o = new Map(),
+ parseModels: function (n, r, o) {
+ var i = new Map(),
a = e.Objects.Model
for (var s in a) {
var u = parseInt(s),
- l = a[s],
- c = t.get(u),
- d = this.buildSkeleton(c, n, u, l.attrName)
+ c = a[s],
+ l = t.get(u),
+ d = this.buildSkeleton(l, n, u, c.attrName)
if (!d) {
- switch (l.attrType) {
+ switch (c.attrType) {
case 'Camera':
- d = this.createCamera(c)
+ d = this.createCamera(l)
break
case 'Light':
- d = this.createLight(c)
+ d = this.createLight(l)
break
case 'Mesh':
- d = this.createMesh(c, r, i)
+ d = this.createMesh(l, r, o)
break
case 'NurbsCurve':
- d = this.createCurve(c, r)
+ d = this.createCurve(l, r)
break
case 'LimbNode':
case 'Null':
default:
d = new THREE.Group()
}
- ;(d.name = THREE.PropertyBinding.sanitizeNodeName(l.attrName)), (d.ID = u)
+ ;(d.name = THREE.PropertyBinding.sanitizeNodeName(c.attrName)), (d.ID = u)
}
- this.setModelTransforms(d, l), o.set(u, d)
+ this.setModelTransforms(d, c), i.set(u, d)
}
- return o
+ return i
},
buildSkeleton: function (e, t, n, r) {
- var i = null
+ var o = null
return (
e.parents.forEach(function (e) {
- for (var o in t) {
- var a = t[o]
- a.rawBones.forEach(function (t, o) {
+ for (var i in t) {
+ var a = t[i]
+ a.rawBones.forEach(function (t, i) {
if (t.ID === e.ID) {
- var s = i
- ;(i = new THREE.Bone()).matrixWorld.copy(t.transformLink),
- (i.name = THREE.PropertyBinding.sanitizeNodeName(r)),
- (i.ID = n),
- (a.bones[o] = i),
- null !== s && i.add(s)
+ var s = o
+ ;(o = new THREE.Bone()).matrixWorld.copy(t.transformLink),
+ (o.name = THREE.PropertyBinding.sanitizeNodeName(r)),
+ (o.ID = n),
+ (a.bones[i] = o),
+ null !== s && o.add(s)
}
})
}
}),
- i
+ o
)
},
createCamera: function (t) {
@@ -10953,10 +21187,10 @@
)
n = new THREE.Object3D()
else {
- var i = 0
- void 0 !== r.CameraProjectionType && 1 === r.CameraProjectionType.value && (i = 1)
- var o = 1
- void 0 !== r.NearPlane && (o = r.NearPlane.value / 1e3)
+ var o = 0
+ void 0 !== r.CameraProjectionType && 1 === r.CameraProjectionType.value && (o = 1)
+ var i = 1
+ void 0 !== r.NearPlane && (i = r.NearPlane.value / 1e3)
var a = 1e3
void 0 !== r.FarPlane && (a = r.FarPlane.value / 1e3)
var s = window.innerWidth,
@@ -10964,20 +21198,20 @@
void 0 !== r.AspectWidth &&
void 0 !== r.AspectHeight &&
((s = r.AspectWidth.value), (u = r.AspectHeight.value))
- var l = s / u,
- c = 45
- void 0 !== r.FieldOfView && (c = r.FieldOfView.value)
+ var c = s / u,
+ l = 45
+ void 0 !== r.FieldOfView && (l = r.FieldOfView.value)
var d = r.FocalLength ? r.FocalLength.value : null
- switch (i) {
+ switch (o) {
case 0:
- ;(n = new THREE.PerspectiveCamera(c, l, o, a)),
+ ;(n = new THREE.PerspectiveCamera(l, c, i, a)),
null !== d && n.setFocalLength(d)
break
case 1:
- n = new THREE.OrthographicCamera(-s / 2, s / 2, u / 2, -u / 2, o, a)
+ n = new THREE.OrthographicCamera(-s / 2, s / 2, u / 2, -u / 2, i, a)
break
default:
- console.warn('THREE.FBXLoader: Unknown camera type ' + i + '.'),
+ console.warn('THREE.FBXLoader: Unknown camera type ' + o + '.'),
(n = new THREE.Object3D())
}
}
@@ -10994,10 +21228,10 @@
)
n = new THREE.Object3D()
else {
- var i
- i = void 0 === r.LightType ? 0 : r.LightType.value
- var o = 16777215
- void 0 !== r.Color && (o = new THREE.Color().fromArray(r.Color.value))
+ var o
+ o = void 0 === r.LightType ? 0 : r.LightType.value
+ var i = 16777215
+ void 0 !== r.Color && (i = new THREE.Color().fromArray(r.Color.value))
var a = void 0 === r.Intensity ? 1 : r.Intensity.value / 100
void 0 !== r.CastLightOnObject && 0 === r.CastLightOnObject.value && (a = 0)
var s = 0
@@ -11006,20 +21240,20 @@
void 0 !== r.EnableFarAttenuation && 0 === r.EnableFarAttenuation.value
? 0
: r.FarAttenuationEnd.value)
- switch (i) {
+ switch (o) {
case 0:
- n = new THREE.PointLight(o, a, s, 1)
+ n = new THREE.PointLight(i, a, s, 1)
break
case 1:
- n = new THREE.DirectionalLight(o, a)
+ n = new THREE.DirectionalLight(i, a)
break
case 2:
var u = Math.PI / 3
void 0 !== r.InnerAngle && (u = THREE.Math.degToRad(r.InnerAngle.value))
- var l = 0
+ var c = 0
void 0 !== r.OuterAngle &&
- ((l = THREE.Math.degToRad(r.OuterAngle.value)), (l = Math.max(l, 1))),
- (n = new THREE.SpotLight(o, a, s, u, l, 1))
+ ((c = THREE.Math.degToRad(r.OuterAngle.value)), (c = Math.max(c, 1))),
+ (n = new THREE.SpotLight(i, a, s, u, c, 1))
break
default:
console.warn(
@@ -11027,7 +21261,7 @@
r.LightType.value +
', defaulting to a THREE.PointLight.',
),
- (n = new THREE.PointLight(o, a))
+ (n = new THREE.PointLight(i, a))
}
void 0 !== r.CastShadows && 1 === r.CastShadows.value && (n.castShadow = !0)
}
@@ -11035,28 +21269,28 @@
},
createMesh: function (e, t, n) {
var r,
- i = null,
o = null,
+ i = null,
a = []
return (
e.children.forEach(function (e) {
- t.has(e.ID) && (i = t.get(e.ID)), n.has(e.ID) && a.push(n.get(e.ID))
+ t.has(e.ID) && (o = t.get(e.ID)), n.has(e.ID) && a.push(n.get(e.ID))
}),
a.length > 1
- ? (o = a)
+ ? (i = a)
: a.length > 0
- ? (o = a[0])
- : ((o = new THREE.MeshPhongMaterial({ color: 13421772 })), a.push(o)),
- 'color' in i.attributes &&
+ ? (i = a[0])
+ : ((i = new THREE.MeshPhongMaterial({ color: 13421772 })), a.push(i)),
+ 'color' in o.attributes &&
a.forEach(function (e) {
e.vertexColors = THREE.VertexColors
}),
- i.FBX_Deformer
+ o.FBX_Deformer
? (a.forEach(function (e) {
e.skinning = !0
}),
- (r = new THREE.SkinnedMesh(i, o)))
- : (r = new THREE.Mesh(i, o)),
+ (r = new THREE.SkinnedMesh(o, i)))
+ : (r = new THREE.Mesh(o, i)),
r
)
},
@@ -11079,29 +21313,29 @@
var r = w(n)
e.applyMatrix(r)
},
- setLookAtProperties: function (r, i) {
- 'LookAtProperty' in i &&
+ setLookAtProperties: function (r, o) {
+ 'LookAtProperty' in o &&
t.get(r.ID).children.forEach(function (t) {
if ('LookAtProperty' === t.relationship) {
- var i = e.Objects.Model[t.ID]
- if ('Lcl_Translation' in i) {
- var o = i.Lcl_Translation.value
+ var o = e.Objects.Model[t.ID]
+ if ('Lcl_Translation' in o) {
+ var i = o.Lcl_Translation.value
void 0 !== r.target
- ? (r.target.position.fromArray(o), n.add(r.target))
- : r.lookAt(new THREE.Vector3().fromArray(o))
+ ? (r.target.position.fromArray(i), n.add(r.target))
+ : r.lookAt(new THREE.Vector3().fromArray(i))
}
}
})
},
bindSkeleton: function (e, n, r) {
- var i = this.parsePoseNodes()
- for (var o in e) {
- var a = e[o]
+ var o = this.parsePoseNodes()
+ for (var i in e) {
+ var a = e[i]
t.get(parseInt(a.ID)).parents.forEach(function (e) {
if (n.has(e.ID)) {
- var o = e.ID
- t.get(o).parents.forEach(function (e) {
- r.has(e.ID) && r.get(e.ID).bind(new THREE.Skeleton(a.bones), i[e.ID])
+ var i = e.ID
+ t.get(i).parents.forEach(function (e) {
+ r.has(e.ID) && r.get(e.ID).bind(new THREE.Skeleton(a.bones), o[e.ID])
})
}
})
@@ -11113,12 +21347,12 @@
var n = e.Objects.Pose
for (var r in n)
if ('BindPose' === n[r].attrType) {
- var i = n[r].PoseNode
- Array.isArray(i)
- ? i.forEach(function (e) {
+ var o = n[r].PoseNode
+ Array.isArray(o)
+ ? o.forEach(function (e) {
t[e.Node] = new THREE.Matrix4().fromArray(e.Matrix.a)
})
- : (t[i.Node] = new THREE.Matrix4().fromArray(i.Matrix.a))
+ : (t[o.Node] = new THREE.Matrix4().fromArray(o.Matrix.a))
}
}
return t
@@ -11127,10 +21361,10 @@
if ('GlobalSettings' in e && 'AmbientColor' in e.GlobalSettings) {
var t = e.GlobalSettings.AmbientColor.value,
r = t[0],
- i = t[1],
- o = t[2]
- if (0 !== r || 0 !== i || 0 !== o) {
- var a = new THREE.Color(r, i, o)
+ o = t[1],
+ i = t[2]
+ if (0 !== r || 0 !== o || 0 !== i) {
+ var a = new THREE.Color(r, o, i)
n.add(new THREE.AmbientLight(a, 1))
}
}
@@ -11143,26 +21377,26 @@
) {
var t = e.uuid,
r = e.material.uuid,
- i = !1
+ o = !1
n.traverse(function (e) {
- e.isMesh && e.material.uuid === r && e.uuid !== t && (i = !0)
+ e.isMesh && e.material.uuid === r && e.uuid !== t && (o = !0)
}),
- !0 === i && (e.material = e.material.clone()),
+ !0 === o && (e.material = e.material.clone()),
(e.material.morphTargets = !0)
}
})
},
}),
- (o.prototype = {
- constructor: o,
+ (i.prototype = {
+ constructor: i,
parse: function (n) {
var r = new Map()
if ('Geometry' in e.Objects) {
- var i = e.Objects.Geometry
- for (var o in i) {
- var a = t.get(parseInt(o)),
- s = this.parseGeometry(a, i[o], n)
- r.set(parseInt(o), s)
+ var o = e.Objects.Geometry
+ for (var i in o) {
+ var a = t.get(parseInt(i)),
+ s = this.parseGeometry(a, o[i], n)
+ r.set(parseInt(i), s)
}
}
return r
@@ -11176,78 +21410,78 @@
}
},
parseMeshGeometry: function (t, n, r) {
- var i = r.skeletons,
- o = r.morphTargets,
+ var o = r.skeletons,
+ i = r.morphTargets,
a = t.parents.map(function (t) {
return e.Objects.Model[t.ID]
})
if (0 !== a.length) {
var s = t.children.reduce(function (e, t) {
- return void 0 !== i[t.ID] && (e = i[t.ID]), e
+ return void 0 !== o[t.ID] && (e = o[t.ID]), e
}, null),
u = t.children.reduce(function (e, t) {
- return void 0 !== o[t.ID] && (e = o[t.ID]), e
+ return void 0 !== i[t.ID] && (e = i[t.ID]), e
}, null),
- l = a[0],
- c = {}
- 'RotationOrder' in l && (c.eulerOrder = l.RotationOrder.value),
- 'GeometricTranslation' in l && (c.translation = l.GeometricTranslation.value),
- 'GeometricRotation' in l && (c.rotation = l.GeometricRotation.value),
- 'GeometricScaling' in l && (c.scale = l.GeometricScaling.value)
- var d = w(c)
+ c = a[0],
+ l = {}
+ 'RotationOrder' in c && (l.eulerOrder = c.RotationOrder.value),
+ 'GeometricTranslation' in c && (l.translation = c.GeometricTranslation.value),
+ 'GeometricRotation' in c && (l.rotation = c.GeometricRotation.value),
+ 'GeometricScaling' in c && (l.scale = c.GeometricScaling.value)
+ var d = w(l)
return this.genGeometry(n, s, u, d)
}
},
genGeometry: function (e, t, n, r) {
- var i = new THREE.BufferGeometry()
- e.attrName && (i.name = e.attrName)
- var o = this.parseGeoNode(e, t),
- a = this.genBuffers(o),
+ var o = new THREE.BufferGeometry()
+ e.attrName && (o.name = e.attrName)
+ var i = this.parseGeoNode(e, t),
+ a = this.genBuffers(i),
s = new THREE.Float32BufferAttribute(a.vertex, 3)
if (
(r.applyToBufferAttribute(s),
- i.addAttribute('position', s),
+ o.addAttribute('position', s),
a.colors.length > 0 &&
- i.addAttribute('color', new THREE.Float32BufferAttribute(a.colors, 3)),
+ o.addAttribute('color', new THREE.Float32BufferAttribute(a.colors, 3)),
t &&
- (i.addAttribute(
+ (o.addAttribute(
'skinIndex',
new THREE.Uint16BufferAttribute(a.weightsIndices, 4),
),
- i.addAttribute(
+ o.addAttribute(
'skinWeight',
new THREE.Float32BufferAttribute(a.vertexWeights, 4),
),
- (i.FBX_Deformer = t)),
+ (o.FBX_Deformer = t)),
a.normal.length > 0)
) {
var u = new THREE.Float32BufferAttribute(a.normal, 3)
new THREE.Matrix3().getNormalMatrix(r).applyToBufferAttribute(u),
- i.addAttribute('normal', u)
+ o.addAttribute('normal', u)
}
if (
(a.uvs.forEach(function (e, t) {
var n = 'uv' + (t + 1).toString()
0 === t && (n = 'uv'),
- i.addAttribute(n, new THREE.Float32BufferAttribute(a.uvs[t], 2))
+ o.addAttribute(n, new THREE.Float32BufferAttribute(a.uvs[t], 2))
}),
- o.material && 'AllSame' !== o.material.mappingType)
+ i.material && 'AllSame' !== i.material.mappingType)
) {
- var l = a.materialIndex[0],
- c = 0
+ var c = a.materialIndex[0],
+ l = 0
if (
(a.materialIndex.forEach(function (e, t) {
- e !== l && (i.addGroup(c, t - c, l), (l = e), (c = t))
+ e !== c && (o.addGroup(l, t - l, c), (c = e), (l = t))
}),
- i.groups.length > 0)
+ o.groups.length > 0)
) {
- var d = i.groups[i.groups.length - 1],
+ var d = o.groups[o.groups.length - 1],
f = d.start + d.count
- f !== a.materialIndex.length && i.addGroup(f, a.materialIndex.length - f, l)
+ f !== a.materialIndex.length && o.addGroup(f, a.materialIndex.length - f, c)
}
- 0 === i.groups.length && i.addGroup(0, a.materialIndex.length, a.materialIndex[0])
+ 0 === o.groups.length && o.addGroup(0, a.materialIndex.length, a.materialIndex[0])
}
- return this.addMorphTargets(i, e, n, r), i
+ return this.addMorphTargets(o, e, n, r), o
},
parseGeoNode: function (e, t) {
var n = {}
@@ -11269,9 +21503,9 @@
null !== t &&
((n.skeleton = t),
t.rawBones.forEach(function (e, t) {
- e.indices.forEach(function (r, i) {
+ e.indices.forEach(function (r, o) {
void 0 === n.weightTable[r] && (n.weightTable[r] = []),
- n.weightTable[r].push({ id: t, weight: e.weights[i] })
+ n.weightTable[r].push({ id: t, weight: e.weights[o] })
})
})),
n
@@ -11289,13 +21523,13 @@
},
n = 0,
r = 0,
- i = !1,
- o = [],
+ o = !1,
+ i = [],
a = [],
s = [],
u = [],
- l = [],
c = [],
+ l = [],
d = this
return (
e.vertexIndices.forEach(function (f, h) {
@@ -11303,7 +21537,7 @@
f < 0 && ((f ^= -1), (v = !0))
var m = [],
g = []
- if ((o.push(3 * f, 3 * f + 1, 3 * f + 2), e.color)) {
+ if ((i.push(3 * f, 3 * f + 1, 3 * f + 2), e.color)) {
var y = p(h, n, f, e.color)
s.push(y[0], y[1], y[2])
}
@@ -11315,21 +21549,21 @@
}),
g.length > 4)
) {
- i ||
+ o ||
(console.warn(
'THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights.',
),
- (i = !0))
+ (o = !0))
var b = [0, 0, 0, 0],
w = [0, 0, 0, 0]
g.forEach(function (e, t) {
var n = e,
r = m[t]
- w.forEach(function (e, t, i) {
+ w.forEach(function (e, t, o) {
if (n > e) {
- ;(i[t] = n), (n = e)
- var o = b[t]
- ;(b[t] = r), (r = o)
+ ;(o[t] = n), (n = e)
+ var i = b[t]
+ ;(b[t] = r), (r = i)
}
})
}),
@@ -11337,14 +21571,14 @@
(g = w)
}
for (; g.length < 4; ) g.push(0), m.push(0)
- for (var x = 0; x < 4; ++x) l.push(g[x]), c.push(m[x])
+ for (var _ = 0; _ < 4; ++_) c.push(g[_]), l.push(m[_])
}
if (e.normal) {
y = p(h, n, f, e.normal)
a.push(y[0], y[1], y[2])
}
if (e.material && 'AllSame' !== e.material.mappingType)
- var E = p(h, n, f, e.material)[0]
+ var x = p(h, n, f, e.material)[0]
e.uv &&
e.uv.forEach(function (e, t) {
var r = p(h, n, f, e)
@@ -11352,115 +21586,115 @@
}),
r++,
v &&
- (d.genFace(t, e, o, E, a, s, u, l, c, r),
+ (d.genFace(t, e, i, x, a, s, u, c, l, r),
n++,
(r = 0),
- (o = []),
+ (i = []),
(a = []),
(s = []),
(u = []),
- (l = []),
- (c = []))
+ (c = []),
+ (l = []))
}),
t
)
},
- genFace: function (e, t, n, r, i, o, a, s, u, l) {
- for (var c = 2; c < l; c++)
+ genFace: function (e, t, n, r, o, i, a, s, u, c) {
+ for (var l = 2; l < c; l++)
e.vertex.push(t.vertexPositions[n[0]]),
e.vertex.push(t.vertexPositions[n[1]]),
e.vertex.push(t.vertexPositions[n[2]]),
- e.vertex.push(t.vertexPositions[n[3 * (c - 1)]]),
- e.vertex.push(t.vertexPositions[n[3 * (c - 1) + 1]]),
- e.vertex.push(t.vertexPositions[n[3 * (c - 1) + 2]]),
- e.vertex.push(t.vertexPositions[n[3 * c]]),
- e.vertex.push(t.vertexPositions[n[3 * c + 1]]),
- e.vertex.push(t.vertexPositions[n[3 * c + 2]]),
+ e.vertex.push(t.vertexPositions[n[3 * (l - 1)]]),
+ e.vertex.push(t.vertexPositions[n[3 * (l - 1) + 1]]),
+ e.vertex.push(t.vertexPositions[n[3 * (l - 1) + 2]]),
+ e.vertex.push(t.vertexPositions[n[3 * l]]),
+ e.vertex.push(t.vertexPositions[n[3 * l + 1]]),
+ e.vertex.push(t.vertexPositions[n[3 * l + 2]]),
t.skeleton &&
(e.vertexWeights.push(s[0]),
e.vertexWeights.push(s[1]),
e.vertexWeights.push(s[2]),
e.vertexWeights.push(s[3]),
- e.vertexWeights.push(s[4 * (c - 1)]),
- e.vertexWeights.push(s[4 * (c - 1) + 1]),
- e.vertexWeights.push(s[4 * (c - 1) + 2]),
- e.vertexWeights.push(s[4 * (c - 1) + 3]),
- e.vertexWeights.push(s[4 * c]),
- e.vertexWeights.push(s[4 * c + 1]),
- e.vertexWeights.push(s[4 * c + 2]),
- e.vertexWeights.push(s[4 * c + 3]),
+ e.vertexWeights.push(s[4 * (l - 1)]),
+ e.vertexWeights.push(s[4 * (l - 1) + 1]),
+ e.vertexWeights.push(s[4 * (l - 1) + 2]),
+ e.vertexWeights.push(s[4 * (l - 1) + 3]),
+ e.vertexWeights.push(s[4 * l]),
+ e.vertexWeights.push(s[4 * l + 1]),
+ e.vertexWeights.push(s[4 * l + 2]),
+ e.vertexWeights.push(s[4 * l + 3]),
e.weightsIndices.push(u[0]),
e.weightsIndices.push(u[1]),
e.weightsIndices.push(u[2]),
e.weightsIndices.push(u[3]),
- e.weightsIndices.push(u[4 * (c - 1)]),
- e.weightsIndices.push(u[4 * (c - 1) + 1]),
- e.weightsIndices.push(u[4 * (c - 1) + 2]),
- e.weightsIndices.push(u[4 * (c - 1) + 3]),
- e.weightsIndices.push(u[4 * c]),
- e.weightsIndices.push(u[4 * c + 1]),
- e.weightsIndices.push(u[4 * c + 2]),
- e.weightsIndices.push(u[4 * c + 3])),
+ e.weightsIndices.push(u[4 * (l - 1)]),
+ e.weightsIndices.push(u[4 * (l - 1) + 1]),
+ e.weightsIndices.push(u[4 * (l - 1) + 2]),
+ e.weightsIndices.push(u[4 * (l - 1) + 3]),
+ e.weightsIndices.push(u[4 * l]),
+ e.weightsIndices.push(u[4 * l + 1]),
+ e.weightsIndices.push(u[4 * l + 2]),
+ e.weightsIndices.push(u[4 * l + 3])),
t.color &&
- (e.colors.push(o[0]),
- e.colors.push(o[1]),
- e.colors.push(o[2]),
- e.colors.push(o[3 * (c - 1)]),
- e.colors.push(o[3 * (c - 1) + 1]),
- e.colors.push(o[3 * (c - 1) + 2]),
- e.colors.push(o[3 * c]),
- e.colors.push(o[3 * c + 1]),
- e.colors.push(o[3 * c + 2])),
+ (e.colors.push(i[0]),
+ e.colors.push(i[1]),
+ e.colors.push(i[2]),
+ e.colors.push(i[3 * (l - 1)]),
+ e.colors.push(i[3 * (l - 1) + 1]),
+ e.colors.push(i[3 * (l - 1) + 2]),
+ e.colors.push(i[3 * l]),
+ e.colors.push(i[3 * l + 1]),
+ e.colors.push(i[3 * l + 2])),
t.material &&
'AllSame' !== t.material.mappingType &&
(e.materialIndex.push(r), e.materialIndex.push(r), e.materialIndex.push(r)),
t.normal &&
- (e.normal.push(i[0]),
- e.normal.push(i[1]),
- e.normal.push(i[2]),
- e.normal.push(i[3 * (c - 1)]),
- e.normal.push(i[3 * (c - 1) + 1]),
- e.normal.push(i[3 * (c - 1) + 2]),
- e.normal.push(i[3 * c]),
- e.normal.push(i[3 * c + 1]),
- e.normal.push(i[3 * c + 2])),
+ (e.normal.push(o[0]),
+ e.normal.push(o[1]),
+ e.normal.push(o[2]),
+ e.normal.push(o[3 * (l - 1)]),
+ e.normal.push(o[3 * (l - 1) + 1]),
+ e.normal.push(o[3 * (l - 1) + 2]),
+ e.normal.push(o[3 * l]),
+ e.normal.push(o[3 * l + 1]),
+ e.normal.push(o[3 * l + 2])),
t.uv &&
t.uv.forEach(function (t, n) {
void 0 === e.uvs[n] && (e.uvs[n] = []),
e.uvs[n].push(a[n][0]),
e.uvs[n].push(a[n][1]),
- e.uvs[n].push(a[n][2 * (c - 1)]),
- e.uvs[n].push(a[n][2 * (c - 1) + 1]),
- e.uvs[n].push(a[n][2 * c]),
- e.uvs[n].push(a[n][2 * c + 1])
+ e.uvs[n].push(a[n][2 * (l - 1)]),
+ e.uvs[n].push(a[n][2 * (l - 1) + 1]),
+ e.uvs[n].push(a[n][2 * l]),
+ e.uvs[n].push(a[n][2 * l + 1])
})
},
- addMorphTargets: function (t, n, r, i) {
+ addMorphTargets: function (t, n, r, o) {
if (null !== r) {
;(t.morphAttributes.position = []), (t.morphAttributes.normal = [])
- var o = this
+ var i = this
r.rawTargets.forEach(function (r) {
var a = e.Objects.Geometry[r.geoID]
- void 0 !== a && o.genMorphGeometry(t, n, a, i)
+ void 0 !== a && i.genMorphGeometry(t, n, a, o)
})
}
},
genMorphGeometry: function (e, t, n, r) {
- var i = new THREE.BufferGeometry()
- n.attrName && (i.name = n.attrName)
+ var o = new THREE.BufferGeometry()
+ n.attrName && (o.name = n.attrName)
for (
- var o = void 0 !== t.PolygonVertexIndex ? t.PolygonVertexIndex.a : [],
+ var i = void 0 !== t.PolygonVertexIndex ? t.PolygonVertexIndex.a : [],
a = void 0 !== t.Vertices ? t.Vertices.a.slice() : [],
s = void 0 !== n.Vertices ? n.Vertices.a : [],
u = void 0 !== n.Indexes ? n.Indexes.a : [],
- l = 0;
- l < u.length;
- l++
+ c = 0;
+ c < u.length;
+ c++
) {
- var c = 3 * u[l]
- ;(a[c] += s[3 * l]), (a[c + 1] += s[3 * l + 1]), (a[c + 2] += s[3 * l + 2])
+ var l = 3 * u[c]
+ ;(a[l] += s[3 * c]), (a[l + 1] += s[3 * c + 1]), (a[l + 2] += s[3 * c + 2])
}
- var d = { vertexIndices: o, vertexPositions: a },
+ var d = { vertexIndices: i, vertexPositions: a },
f = this.genBuffers(d),
h = new THREE.Float32BufferAttribute(f.vertex, 3)
;(h.name = n.attrName),
@@ -11471,33 +21705,33 @@
var t = e.MappingInformationType,
n = e.ReferenceInformationType,
r = e.Normals.a,
- i = []
+ o = []
return (
'IndexToDirect' === n &&
('NormalIndex' in e
- ? (i = e.NormalIndex.a)
- : 'NormalsIndex' in e && (i = e.NormalsIndex.a)),
- { dataSize: 3, buffer: r, indices: i, mappingType: t, referenceType: n }
+ ? (o = e.NormalIndex.a)
+ : 'NormalsIndex' in e && (o = e.NormalsIndex.a)),
+ { dataSize: 3, buffer: r, indices: o, mappingType: t, referenceType: n }
)
},
parseUVs: function (e) {
var t = e.MappingInformationType,
n = e.ReferenceInformationType,
r = e.UV.a,
- i = []
+ o = []
return (
- 'IndexToDirect' === n && (i = e.UVIndex.a),
- { dataSize: 2, buffer: r, indices: i, mappingType: t, referenceType: n }
+ 'IndexToDirect' === n && (o = e.UVIndex.a),
+ { dataSize: 2, buffer: r, indices: o, mappingType: t, referenceType: n }
)
},
parseVertexColors: function (e) {
var t = e.MappingInformationType,
n = e.ReferenceInformationType,
r = e.Colors.a,
- i = []
+ o = []
return (
- 'IndexToDirect' === n && (i = e.ColorIndex.a),
- { dataSize: 4, buffer: r, indices: i, mappingType: t, referenceType: n }
+ 'IndexToDirect' === n && (o = e.ColorIndex.a),
+ { dataSize: 4, buffer: r, indices: o, mappingType: t, referenceType: n }
)
},
parseMaterialIndices: function (e) {
@@ -11511,8 +21745,8 @@
mappingType: 'AllSame',
referenceType: n,
}
- for (var r = e.Materials.a, i = [], o = 0; o < r.length; ++o) i.push(o)
- return { dataSize: 1, buffer: r, indices: i, mappingType: t, referenceType: n }
+ for (var r = e.Materials.a, o = [], i = 0; i < r.length; ++i) o.push(i)
+ return { dataSize: 1, buffer: r, indices: o, mappingType: t, referenceType: n }
},
parseNurbsGeometry: function (e) {
if (void 0 === THREE.NURBSCurve)
@@ -11535,24 +21769,24 @@
for (
var n,
r,
- i = t - 1,
- o = e.KnotVector.a,
+ o = t - 1,
+ i = e.KnotVector.a,
a = [],
s = e.Points.a,
u = 0,
- l = s.length;
- u < l;
+ c = s.length;
+ u < c;
u += 4
)
a.push(new THREE.Vector4().fromArray(s, u))
if ('Closed' === e.Form) a.push(a[0])
else if ('Periodic' === e.Form) {
- ;(n = i), (r = o.length - 1 - n)
- for (u = 0; u < i; ++u) a.push(a[u])
+ ;(n = o), (r = i.length - 1 - n)
+ for (u = 0; u < o; ++u) a.push(a[u])
}
- var c = new THREE.NURBSCurve(i, o, a, n, r).getPoints(7 * a.length),
- d = new Float32Array(3 * c.length)
- c.forEach(function (e, t) {
+ var l = new THREE.NURBSCurve(o, i, a, n, r).getPoints(7 * a.length),
+ d = new Float32Array(3 * l.length)
+ l.forEach(function (e, t) {
e.toArray(d, 3 * t)
})
var f = new THREE.BufferGeometry()
@@ -11567,8 +21801,8 @@
if (void 0 === t) return e
for (var n in t) {
var r = t[n],
- i = this.addClip(r)
- e.push(i)
+ o = this.addClip(r)
+ e.push(o)
}
return e
},
@@ -11584,46 +21818,46 @@
var t = e.Objects.AnimationCurveNode,
n = new Map()
for (var r in t) {
- var i = t[r]
- if (null !== i.attrName.match(/S|R|T|DeformPercent/)) {
- var o = { id: i.id, attr: i.attrName, curves: {} }
- n.set(o.id, o)
+ var o = t[r]
+ if (null !== o.attrName.match(/S|R|T|DeformPercent/)) {
+ var i = { id: o.id, attr: o.attrName, curves: {} }
+ n.set(i.id, i)
}
}
return n
},
parseAnimationCurves: function (n) {
var r = e.Objects.AnimationCurve
- for (var i in r) {
- var o = { id: r[i].id, times: r[i].KeyTime.a.map(f), values: r[i].KeyValueFloat.a },
- a = t.get(o.id)
+ for (var o in r) {
+ var i = { id: r[o].id, times: r[o].KeyTime.a.map(f), values: r[o].KeyValueFloat.a },
+ a = t.get(i.id)
if (void 0 !== a) {
var s = a.parents[0].ID,
u = a.parents[0].relationship
u.match(/X/)
- ? (n.get(s).curves.x = o)
+ ? (n.get(s).curves.x = i)
: u.match(/Y/)
- ? (n.get(s).curves.y = o)
+ ? (n.get(s).curves.y = i)
: u.match(/Z/)
- ? (n.get(s).curves.z = o)
- : u.match(/d|DeformPercent/) && n.has(s) && (n.get(s).curves.morph = o)
+ ? (n.get(s).curves.z = i)
+ : u.match(/d|DeformPercent/) && n.has(s) && (n.get(s).curves.morph = i)
}
}
},
parseAnimationLayers: function (n) {
var r = e.Objects.AnimationLayer,
- i = new Map()
- for (var o in r) {
+ o = new Map()
+ for (var i in r) {
var a = [],
- s = t.get(parseInt(o))
+ s = t.get(parseInt(i))
if (void 0 !== s) {
var u = s.children,
- l = this
- u.forEach(function (r, i) {
+ c = this
+ u.forEach(function (r, o) {
if (n.has(r.ID)) {
- var o = n.get(r.ID)
- if (void 0 !== o.curves.x || void 0 !== o.curves.y || void 0 !== o.curves.z) {
- if (void 0 === a[i]) {
+ var i = n.get(r.ID)
+ if (void 0 !== i.curves.x || void 0 !== i.curves.y || void 0 !== i.curves.z) {
+ if (void 0 === a[o]) {
t.get(r.ID).parents.forEach(function (e) {
void 0 !== e.relationship && (h = e.ID)
})
@@ -11633,37 +21867,37 @@
initialPosition: [0, 0, 0],
initialRotation: [0, 0, 0],
initialScale: [1, 1, 1],
- transform: l.getModelAnimTransform(s),
+ transform: c.getModelAnimTransform(s),
}
'PreRotation' in s && (u.preRotations = s.PreRotation.value),
'PostRotation' in s && (u.postRotations = s.PostRotation.value),
- (a[i] = u)
+ (a[o] = u)
}
- a[i][o.attr] = o
- } else if (void 0 !== o.curves.morph) {
- if (void 0 === a[i]) {
- var c
+ a[o][i.attr] = i
+ } else if (void 0 !== i.curves.morph) {
+ if (void 0 === a[o]) {
+ var l
t.get(r.ID).parents.forEach(function (e) {
- void 0 !== e.relationship && (c = e.ID)
+ void 0 !== e.relationship && (l = e.ID)
})
- var d = t.get(c).parents[0].ID,
+ var d = t.get(l).parents[0].ID,
f = t.get(d).parents[0].ID,
h = t.get(f).parents[0].ID
;(s = e.Objects.Model[h]),
(u = {
modelName: THREE.PropertyBinding.sanitizeNodeName(s.attrName),
- morphName: e.Objects.Deformer[c].attrName,
+ morphName: e.Objects.Deformer[l].attrName,
})
- a[i] = u
+ a[o] = u
}
- a[i][o.attr] = o
+ a[o][i.attr] = i
}
}
}),
- i.set(parseInt(o), a)
+ o.set(parseInt(i), a)
}
}
- return i
+ return o
},
getModelAnimTransform: function (e) {
var t = {}
@@ -11680,17 +21914,17 @@
},
parseAnimStacks: function (n) {
var r = e.Objects.AnimationStack,
- i = {}
- for (var o in r) {
- var a = t.get(parseInt(o)).children
+ o = {}
+ for (var i in r) {
+ var a = t.get(parseInt(i)).children
a.length > 1 &&
console.warn(
'THREE.FBXLoader: Encountered an animation stack with multiple layers, this is currently not supported. Ignoring subsequent layers.',
)
var s = n.get(a[0].ID)
- i[o] = { name: r[o].attrName, layer: s }
+ o[i] = { name: r[i].attrName, layer: s }
}
- return i
+ return o
},
addClip: function (e) {
var t = [],
@@ -11706,16 +21940,16 @@
var t = [],
n = new THREE.Vector3(),
r = new THREE.Quaternion(),
- i = new THREE.Vector3()
+ o = new THREE.Vector3()
if (
- (e.transform && e.transform.decompose(n, r, i),
+ (e.transform && e.transform.decompose(n, r, o),
(n = n.toArray()),
(r = new THREE.Euler().setFromQuaternion(r).toArray()),
- (i = i.toArray()),
+ (o = o.toArray()),
void 0 !== e.T && Object.keys(e.T.curves).length > 0)
) {
- var o = this.generateVectorTrack(e.modelName, e.T.curves, n, 'position')
- void 0 !== o && t.push(o)
+ var i = this.generateVectorTrack(e.modelName, e.T.curves, n, 'position')
+ void 0 !== i && t.push(i)
}
if (void 0 !== e.R && Object.keys(e.R.curves).length > 0) {
var a = this.generateRotationTrack(
@@ -11728,7 +21962,7 @@
void 0 !== a && t.push(a)
}
if (void 0 !== e.S && Object.keys(e.S.curves).length > 0) {
- var s = this.generateVectorTrack(e.modelName, e.S.curves, i, 'scale')
+ var s = this.generateVectorTrack(e.modelName, e.S.curves, o, 'scale')
void 0 !== s && t.push(s)
}
if (void 0 !== e.DeformPercent) {
@@ -11738,11 +21972,11 @@
return t
},
generateVectorTrack: function (e, t, n, r) {
- var i = this.getTimesForAllAxes(t),
- o = this.getKeyframeTrackValues(i, t, n)
- return new THREE.VectorKeyframeTrack(e + '.' + r, i, o)
+ var o = this.getTimesForAllAxes(t),
+ i = this.getKeyframeTrackValues(o, t, n)
+ return new THREE.VectorKeyframeTrack(e + '.' + r, o, i)
},
- generateRotationTrack: function (e, t, n, r, i) {
+ generateRotationTrack: function (e, t, n, r, o) {
void 0 !== t.x &&
(this.interpolateRotations(t.x),
(t.x.values = t.x.values.map(THREE.Math.degToRad))),
@@ -11752,36 +21986,36 @@
void 0 !== t.z &&
(this.interpolateRotations(t.z),
(t.z.values = t.z.values.map(THREE.Math.degToRad)))
- var o = this.getTimesForAllAxes(t),
- a = this.getKeyframeTrackValues(o, t, n)
+ var i = this.getTimesForAllAxes(t),
+ a = this.getKeyframeTrackValues(i, t, n)
void 0 !== r &&
((r = r.map(THREE.Math.degToRad)).push('ZYX'),
(r = new THREE.Euler().fromArray(r)),
(r = new THREE.Quaternion().setFromEuler(r))),
- void 0 !== i &&
- ((i = i.map(THREE.Math.degToRad)).push('ZYX'),
- (i = new THREE.Euler().fromArray(i)),
- (i = new THREE.Quaternion().setFromEuler(i).inverse()))
+ void 0 !== o &&
+ ((o = o.map(THREE.Math.degToRad)).push('ZYX'),
+ (o = new THREE.Euler().fromArray(o)),
+ (o = new THREE.Quaternion().setFromEuler(o).inverse()))
for (
- var s = new THREE.Quaternion(), u = new THREE.Euler(), l = [], c = 0;
- c < a.length;
- c += 3
+ var s = new THREE.Quaternion(), u = new THREE.Euler(), c = [], l = 0;
+ l < a.length;
+ l += 3
)
- u.set(a[c], a[c + 1], a[c + 2], 'ZYX'),
+ u.set(a[l], a[l + 1], a[l + 2], 'ZYX'),
s.setFromEuler(u),
void 0 !== r && s.premultiply(r),
- void 0 !== i && s.multiply(i),
- s.toArray(l, (c / 3) * 4)
- return new THREE.QuaternionKeyframeTrack(e + '.quaternion', o, l)
+ void 0 !== o && s.multiply(o),
+ s.toArray(c, (l / 3) * 4)
+ return new THREE.QuaternionKeyframeTrack(e + '.quaternion', i, c)
},
generateMorphTrack: function (e) {
var t = e.DeformPercent.curves.morph,
r = t.values.map(function (e) {
return e / 100
}),
- i = n.getObjectByName(e.modelName).morphTargetDictionary[e.morphName]
+ o = n.getObjectByName(e.modelName).morphTargetDictionary[e.morphName]
return new THREE.NumberKeyframeTrack(
- e.modelName + '.morphTargetInfluences[' + i + ']',
+ e.modelName + '.morphTargetInfluences[' + o + ']',
t.times,
r,
)
@@ -11803,53 +22037,53 @@
},
getKeyframeTrackValues: function (e, t, n) {
var r = n,
- i = [],
- o = -1,
+ o = [],
+ i = -1,
a = -1,
s = -1
return (
e.forEach(function (e) {
if (
- (t.x && (o = t.x.times.indexOf(e)),
+ (t.x && (i = t.x.times.indexOf(e)),
t.y && (a = t.y.times.indexOf(e)),
t.z && (s = t.z.times.indexOf(e)),
- -1 !== o)
+ -1 !== i)
) {
- var n = t.x.values[o]
- i.push(n), (r[0] = n)
- } else i.push(r[0])
+ var n = t.x.values[i]
+ o.push(n), (r[0] = n)
+ } else o.push(r[0])
if (-1 !== a) {
var u = t.y.values[a]
- i.push(u), (r[1] = u)
- } else i.push(r[1])
+ o.push(u), (r[1] = u)
+ } else o.push(r[1])
if (-1 !== s) {
- var l = t.z.values[s]
- i.push(l), (r[2] = l)
- } else i.push(r[2])
+ var c = t.z.values[s]
+ o.push(c), (r[2] = c)
+ } else o.push(r[2])
}),
- i
+ o
)
},
interpolateRotations: function (e) {
for (var t = 1; t < e.values.length; t++) {
var n = e.values[t - 1],
r = e.values[t] - n,
- i = Math.abs(r)
- if (i >= 180) {
+ o = Math.abs(r)
+ if (o >= 180) {
for (
- var o = i / 180,
- a = r / o,
+ var i = o / 180,
+ a = r / i,
s = n + a,
u = e.times[t - 1],
- l = (e.times[t] - u) / o,
- c = u + l,
+ c = (e.times[t] - u) / i,
+ l = u + c,
d = [],
f = [];
- c < e.times[t];
+ l < e.times[t];
)
- d.push(c), (c += l), f.push(s), (s += a)
- ;(e.times = _(e.times, t, d)), (e.values = _(e.values, t, f))
+ d.push(l), (l += c), f.push(s), (s += a)
+ ;(e.times = E(e.times, t, d)), (e.values = E(e.values, t, f))
}
}
},
@@ -11876,8 +22110,8 @@
},
parse: function (e) {
;(this.currentIndent = 0),
- console.log('FBXTree: ', c),
- (this.allNodes = new c()),
+ console.log('FBXTree: ', l),
+ (this.allNodes = new l()),
(this.nodeStack = []),
(this.currentProp = []),
(this.currentPropName = '')
@@ -11885,9 +22119,9 @@
n = e.split(/[\r\n]+/)
return (
n.forEach(function (e, r) {
- var i = e.match(/^[\s\t]*;/),
- o = e.match(/^[\s\t]*$/)
- if (!i && !o) {
+ var o = e.match(/^[\s\t]*;/),
+ i = e.match(/^[\s\t]*$/)
+ if (!o && !i) {
var a = e.match('^\\t{' + t.currentIndent + '}(\\w+):(.*){', ''),
s = e.match('^\\t{' + t.currentIndent + '}(\\w+):[\\s\\t\\r\\n](.*)'),
u = e.match('^\\t{' + (t.currentIndent - 1) + '}}')
@@ -11908,23 +22142,23 @@
r = t[2].split(',').map(function (e) {
return e.trim().replace(/^"/, '').replace(/"$/, '')
}),
- i = { name: n },
- o = this.parseNodeAttr(r),
+ o = { name: n },
+ i = this.parseNodeAttr(r),
a = this.getCurrentNode()
0 === this.currentIndent
- ? this.allNodes.add(n, i)
+ ? this.allNodes.add(n, o)
: n in a
? ('PoseNode' === n
- ? a.PoseNode.push(i)
+ ? a.PoseNode.push(o)
: void 0 !== a[n].id && ((a[n] = {}), (a[n][a[n].id] = a[n])),
- '' !== o.id && (a[n][o.id] = i))
- : 'number' === typeof o.id
- ? ((a[n] = {}), (a[n][o.id] = i))
- : 'Properties70' !== n && (a[n] = 'PoseNode' === n ? [i] : i),
- 'number' === typeof o.id && (i.id = o.id),
- '' !== o.name && (i.attrName = o.name),
- '' !== o.type && (i.attrType = o.type),
- this.pushStack(i)
+ '' !== i.id && (a[n][i.id] = o))
+ : 'number' === typeof i.id
+ ? ((a[n] = {}), (a[n][i.id] = o))
+ : 'Properties70' !== n && (a[n] = 'PoseNode' === n ? [o] : o),
+ 'number' === typeof i.id && (o.id = i.id),
+ '' !== i.name && (o.attrName = i.name),
+ '' !== i.type && (o.attrType = i.type),
+ this.pushStack(o)
},
parseNodeAttr: function (e) {
var t = e[0]
@@ -11938,46 +22172,46 @@
},
parseNodeProperty: function (e, t, n) {
var r = t[1].replace(/^"/, '').replace(/"$/, '').trim(),
- i = t[2].replace(/^"/, '').replace(/"$/, '').trim()
- 'Content' === r && ',' === i && (i = n.replace(/"/g, '').replace(/,$/, '').trim())
- var o = this.getCurrentNode()
- if ('Properties70' !== o.name) {
+ o = t[2].replace(/^"/, '').replace(/"$/, '').trim()
+ 'Content' === r && ',' === o && (o = n.replace(/"/g, '').replace(/,$/, '').trim())
+ var i = this.getCurrentNode()
+ if ('Properties70' !== i.name) {
if ('C' === r) {
- var a = i.split(',').slice(1),
+ var a = o.split(',').slice(1),
s = parseInt(a[0]),
u = parseInt(a[1]),
- l = i.split(',').slice(3)
+ c = o.split(',').slice(3)
;(r = 'connections'),
(function (e, t) {
- for (var n = 0, r = e.length, i = t.length; n < i; n++, r++) e[r] = t[n]
+ for (var n = 0, r = e.length, o = t.length; n < o; n++, r++) e[r] = t[n]
})(
- (i = [s, u]),
- (l = l.map(function (e) {
+ (o = [s, u]),
+ (c = c.map(function (e) {
return e.trim().replace(/^"/, '')
})),
),
- void 0 === o[r] && (o[r] = [])
+ void 0 === i[r] && (i[r] = [])
}
- 'Node' === r && (o.id = i),
- r in o && Array.isArray(o[r]) ? o[r].push(i) : 'a' !== r ? (o[r] = i) : (o.a = i),
- this.setCurrentProp(o, r),
- 'a' === r && ',' !== i.slice(-1) && (o.a = E(i))
- } else this.parseNodeSpecialProperty(e, r, i)
+ 'Node' === r && (i.id = o),
+ r in i && Array.isArray(i[r]) ? i[r].push(o) : 'a' !== r ? (i[r] = o) : (i.a = o),
+ this.setCurrentProp(i, r),
+ 'a' === r && ',' !== o.slice(-1) && (i.a = x(o))
+ } else this.parseNodeSpecialProperty(e, r, o)
},
parseNodePropertyContinued: function (e) {
var t = this.getCurrentNode()
- ;(t.a += e), ',' !== e.slice(-1) && (t.a = E(t.a))
+ ;(t.a += e), ',' !== e.slice(-1) && (t.a = x(t.a))
},
parseNodeSpecialProperty: function (e, t, n) {
var r = n.split('",').map(function (e) {
return e.trim().replace(/^\"/, '').replace(/\s/, '_')
}),
- i = r[0],
- o = r[1],
+ o = r[0],
+ i = r[1],
a = r[2],
s = r[3],
u = r[4]
- switch (o) {
+ switch (i) {
case 'int':
case 'enum':
case 'bool':
@@ -11993,22 +22227,22 @@
case 'Lcl_Translation':
case 'Lcl_Rotation':
case 'Lcl_Scaling':
- u = E(u)
+ u = x(u)
}
- ;(this.getPrevNode()[i] = { type: o, type2: a, flag: s, value: u }),
- this.setCurrentProp(this.getPrevNode(), i)
+ ;(this.getPrevNode()[o] = { type: i, type2: a, flag: s, value: u }),
+ this.setCurrentProp(this.getPrevNode(), o)
},
}),
(u.prototype = {
constructor: u,
parse: function (e) {
- var t = new l(e)
+ var t = new c(e)
t.skip(23)
var n = t.getUint32()
console.log('THREE.FBXLoader: FBX binary version: ' + n)
- for (var r = new c(); !this.endOfContent(t); ) {
- var i = this.parseNode(t, n)
- null !== i && r.add(i.name, i)
+ for (var r = new l(); !this.endOfContent(t); ) {
+ var o = this.parseNode(t, n)
+ null !== o && r.add(o.name, o)
}
return r
},
@@ -12020,22 +22254,22 @@
parseNode: function (e, t) {
var n = {},
r = t >= 7500 ? e.getUint64() : e.getUint32(),
- i = t >= 7500 ? e.getUint64() : e.getUint32(),
- o = (t >= 7500 ? e.getUint64() : e.getUint32(), e.getUint8()),
- a = e.getString(o)
+ o = t >= 7500 ? e.getUint64() : e.getUint32(),
+ i = (t >= 7500 ? e.getUint64() : e.getUint32(), e.getUint8()),
+ a = e.getString(i)
if (0 === r) return null
- for (var s = [], u = 0; u < i; u++) s.push(this.parseProperty(e))
- var l = s.length > 0 ? s[0] : '',
- c = s.length > 1 ? s[1] : '',
+ for (var s = [], u = 0; u < o; u++) s.push(this.parseProperty(e))
+ var c = s.length > 0 ? s[0] : '',
+ l = s.length > 1 ? s[1] : '',
d = s.length > 2 ? s[2] : ''
- for (n.singleProperty = 1 === i && e.getOffset() === r; r > e.getOffset(); ) {
+ for (n.singleProperty = 1 === o && e.getOffset() === r; r > e.getOffset(); ) {
var f = this.parseNode(e, t)
null !== f && this.parseSubNode(a, n, f)
}
return (
(n.propertyList = s),
- 'number' === typeof l && (n.id = l),
- '' !== c && (n.attrName = c),
+ 'number' === typeof c && (n.id = c),
+ '' !== l && (n.attrName = l),
'' !== d && (n.attrType = d),
'' !== a && (n.name = a),
n
@@ -12046,25 +22280,25 @@
var r = n.propertyList[0]
Array.isArray(r) ? ((t[n.name] = n), (n.a = r)) : (t[n.name] = r)
} else if ('Connections' === e && 'C' === n.name) {
- var i = []
+ var o = []
n.propertyList.forEach(function (e, t) {
- 0 !== t && i.push(e)
+ 0 !== t && o.push(e)
}),
void 0 === t.connections && (t.connections = []),
- t.connections.push(i)
+ t.connections.push(o)
} else if ('Properties70' === n.name) {
Object.keys(n).forEach(function (e) {
t[e] = n[e]
})
} else if ('Properties70' === e && 'P' === n.name) {
- var o,
+ var i,
a = n.propertyList[0],
s = n.propertyList[1],
u = n.propertyList[2],
- l = n.propertyList[3]
+ c = n.propertyList[3]
0 === a.indexOf('Lcl ') && (a = a.replace('Lcl ', 'Lcl_')),
0 === s.indexOf('Lcl ') && (s = s.replace('Lcl ', 'Lcl_')),
- (o =
+ (i =
'Color' === s ||
'ColorRGB' === s ||
'Vector' === s ||
@@ -12072,7 +22306,7 @@
0 === s.indexOf('Lcl_')
? [n.propertyList[4], n.propertyList[5], n.propertyList[6]]
: n.propertyList[4]),
- (t[a] = { type: s, type2: u, flag: l, value: o })
+ (t[a] = { type: s, type2: u, flag: c, value: i })
} else
void 0 === t[n.name]
? 'number' === typeof n.id
@@ -12110,9 +22344,9 @@
case 'i':
case 'l':
var r = e.getUint32(),
- i = e.getUint32(),
- o = e.getUint32()
- if (0 === i)
+ o = e.getUint32(),
+ i = e.getUint32()
+ if (0 === o)
switch (t) {
case 'b':
case 'c':
@@ -12130,8 +22364,8 @@
console.error(
'THREE.FBXLoader: External library Inflate.min.js required, obtain or import from https://github.com/imaya/zlib.js',
)
- var a = new l(
- new Zlib.Inflate(new Uint8Array(e.getArrayBuffer(o))).decompress().buffer,
+ var a = new c(
+ new Zlib.Inflate(new Uint8Array(e.getArrayBuffer(i))).decompress().buffer,
)
switch (t) {
case 'b':
@@ -12151,8 +22385,8 @@
}
},
}),
- (l.prototype = {
- constructor: l,
+ (c.prototype = {
+ constructor: c,
getOffset: function () {
return this.offset
},
@@ -12241,38 +22475,38 @@
return r >= 0 && (t = t.slice(0, r)), THREE.LoaderUtils.decodeText(new Uint8Array(t))
},
}),
- (c.prototype = {
- constructor: c,
+ (l.prototype = {
+ constructor: l,
add: function (e, t) {
this[e] = t
},
})
var h = []
function p(e, t, n, r) {
- var i
+ var o
switch (r.mappingType) {
case 'ByPolygonVertex':
- i = e
+ o = e
break
case 'ByPolygon':
- i = t
+ o = t
break
case 'ByVertice':
- i = n
+ o = n
break
case 'AllSame':
- i = r.indices[0]
+ o = r.indices[0]
break
default:
console.warn('THREE.FBXLoader: unknown attribute mapping type ' + r.mappingType)
}
- 'IndexToDirect' === r.referenceType && (i = r.indices[i])
- var o = i * r.dataSize,
- a = o + r.dataSize
+ 'IndexToDirect' === r.referenceType && (o = r.indices[o])
+ var i = o * r.dataSize,
+ a = i + r.dataSize
return (function (e, t, n, r) {
- for (var i = n, o = 0; i < r; i++, o++) e[o] = t[i]
+ for (var o = n, i = 0; o < r; o++, i++) e[i] = t[o]
return e
- })(h, r.buffer, o, a)
+ })(h, r.buffer, i, a)
}
var v = new THREE.Matrix4(),
m = new THREE.Euler(),
@@ -12283,7 +22517,7 @@
var t = new THREE.Matrix4()
y.set(0, 0, 0), b.identity()
var n,
- r = e.eulerOrder ? x(e.eulerOrder) : x(0)
+ r = e.eulerOrder ? _(e.eulerOrder) : _(0)
;(e.translation && y.fromArray(e.translation),
e.rotationOffset && y.add(g.fromArray(e.rotationOffset)),
e.rotation) &&
@@ -12300,7 +22534,7 @@
b.multiply(v))
return e.scale && t.scale(g.fromArray(e.scale)), t.setPosition(y), t.multiply(b), t
}
- function x(e) {
+ function _(e) {
var t = ['ZYX', 'YZX', 'XZY', 'ZXY', 'YXZ', 'XYZ']
return 6 === e
? (console.warn(
@@ -12309,7 +22543,7 @@
t[0])
: t[e]
}
- function E(e) {
+ function x(e) {
return e.split(',').map(function (e) {
return parseFloat(e)
})
@@ -12321,13 +22555,13 @@
THREE.LoaderUtils.decodeText(new Uint8Array(e, t, n))
)
}
- function _(e, t, n) {
+ function E(e, t, n) {
return e.slice(0, t).concat(n).concat(e.slice(t))
}
return r
})()
},
- 6453: function (e) {
+ 16453: function (e) {
e.exports = Object.assign(function () {}, {
FACE_1: 0,
FACE_2: 1,
@@ -12346,12 +22580,12 @@
VENDOR: 16,
})
},
- 4379: function (e) {
+ 44379: function (e) {
e.exports = function (e, t, n) {
;(this.type = e), (this.index = t), (this.pressed = n.pressed), (this.value = n.value)
}
},
- 2667: function (e) {
+ 82667: function (e) {
e.exports = {
size: 5,
cellSize: 10,
@@ -12375,7 +22609,7 @@
],
}
},
- 4657: function (e) {
+ 34657: function (e) {
function t(e) {
const t = document.getElementById(e),
n = t.parentNode
@@ -12384,24 +22618,24 @@
} catch (r) {}
}
function n(e, n, r) {
- return new r(function (r, i) {
- const o = n.timeout || 5e3,
+ return new r(function (r, o) {
+ const i = n.timeout || 5e3,
a = 'script_' + Date.now() + '_' + Math.ceil(1e5 * Math.random()),
s = (function (e, t) {
var n = document.createElement('script')
return (n.type = 'text/javascript'), (n.async = !0), (n.id = t), (n.src = e), n
})(e, a),
u = setTimeout(function () {
- i(new Error('Script request to ' + e + ' timed out')), t(a)
- }, o),
- l = function (e) {
+ o(new Error('Script request to ' + e + ' timed out')), t(a)
+ }, i),
+ c = function (e) {
clearTimeout(e)
}
s.addEventListener('load', function (e) {
- r({ ok: !0 }), l(u), t(a)
+ r({ ok: !0 }), c(u), t(a)
}),
s.addEventListener('error', function (n) {
- i(new Error('Script request to ' + e + ' failed ' + n)), l(u), t(a)
+ o(new Error('Script request to ' + e + ' failed ' + n)), c(u), t(a)
}),
(function (e) {
const t = document.getElementsByTagName('script')[0]
@@ -12418,7 +22652,7 @@
)
}
},
- 3471: function (e) {
+ 63471: function (e) {
var n = (e.exports = {
VERSION: '0.1.1',
PI: Math.PI,
@@ -12531,11 +22765,11 @@
},
}),
(n.Board.prototype.constructor = n.Board),
- (n.Cell = function (e, t, r, i) {
+ (n.Cell = function (e, t, r, o) {
;(this.q = e || 0),
(this.r = t || 0),
(this.s = r || 0),
- (this.h = i || 1),
+ (this.h = o || 1),
(this.tile = null),
(this.userData = {}),
(this.walkable = !0),
@@ -12645,21 +22879,21 @@
},
getNeighbors: function (e, t, n) {
var r,
- i,
- o = this._directions.length
- for (this._list.length = 0, r = 0; o > r; r++)
+ o,
+ i = this._directions.length
+ for (this._list.length = 0, r = 0; i > r; r++)
this._cel.copy(e),
this._cel.add(this._directions[r]),
- !(i = this.cells[this.cellToHash(this._cel)]) ||
- (n && !n(e, i)) ||
- this._list.push(i)
+ !(o = this.cells[this.cellToHash(this._cel)]) ||
+ (n && !n(e, o)) ||
+ this._list.push(o)
if (t)
- for (r = 0; o > r; r++)
+ for (r = 0; i > r; r++)
this._cel.copy(e),
this._cel.add(this._diagonals[r]),
- !(i = this.cells[this.cellToHash(this._cel)]) ||
- (n && !n(e, i)) ||
- this._list.push(i)
+ !(o = this.cells[this.cellToHash(this._cel)]) ||
+ (n && !n(e, o)) ||
+ this._list.push(o)
return this._list
},
getRandomCell: function () {
@@ -12693,22 +22927,22 @@
for (t in this.cells) e(this.cells[t])
},
generateTile: function (e, t, r) {
- var i = Math.abs(e.h)
- 1 > i && (i = 1)
- var o = this._geoCache[i]
- o ||
- ((this.extrudeSettings.amount = i),
- (o = new THREE.ExtrudeGeometry(this.cellShape, this.extrudeSettings)),
- (this._geoCache[i] = o))
- var a = new n.Tile({ size: this.cellSize, scale: t, cell: e, geometry: o, material: r })
+ var o = Math.abs(e.h)
+ 1 > o && (o = 1)
+ var i = this._geoCache[o]
+ i ||
+ ((this.extrudeSettings.amount = o),
+ (i = new THREE.ExtrudeGeometry(this.cellShape, this.extrudeSettings)),
+ (this._geoCache[o] = i))
+ var a = new n.Tile({ size: this.cellSize, scale: t, cell: e, geometry: i, material: r })
return (e.tile = a), a
},
generateTiles: function (e) {
e = e || {}
var t,
r,
- i,
- o = [],
+ o,
+ i = [],
a = {
tileScale: 0.95,
cellSize: this.cellSize,
@@ -12729,13 +22963,13 @@
(this.autogenerated = !0),
(this.extrudeSettings = a.extrudeSettings),
this.cells))
- (i = this.cells[t]),
- (r = this.generateTile(i, a.tileScale, a.material)).position.copy(
- this.cellToPixel(i),
+ (o = this.cells[t]),
+ (r = this.generateTile(o, a.tileScale, a.material)).position.copy(
+ this.cellToPixel(o),
),
(r.position.y = 0),
- o.push(r)
- return o
+ i.push(r)
+ return i
},
generateTilePoly: function (e) {
e || (e = new THREE.MeshBasicMaterial({ color: 2405631 }))
@@ -12743,7 +22977,7 @@
return this._vec3.set(1, 0, 0), t.rotateOnAxis(this._vec3, n.PI / 2), t
},
generate: function (e) {
- var t, r, i, o
+ var t, r, o, i
for (
e = e || {},
this.size = 'undefined' == typeof e.size ? this.size : e.size,
@@ -12752,21 +22986,21 @@
t++
)
for (r = -this.size; r < this.size + 1; r++)
- (i = -t - r),
+ (o = -t - r),
Math.abs(t) <= this.size &&
Math.abs(r) <= this.size &&
- Math.abs(i) <= this.size &&
- ((o = new n.Cell(t, r, i)), this.add(o))
+ Math.abs(o) <= this.size &&
+ ((i = new n.Cell(t, r, o)), this.add(i))
},
generateOverlay: function (e, t, r) {
- var i,
- o,
+ var o,
+ i,
a,
s = this.cellShape.createPointsGeometry()
- for (i = -e; e + 1 > i; i++)
- for (o = -e; e + 1 > o; o++)
- if (((a = -i - o), Math.abs(i) <= e && Math.abs(o) <= e && Math.abs(a) <= e)) {
- this._cel.set(i, o, a)
+ for (o = -e; e + 1 > o; o++)
+ for (i = -e; e + 1 > i; i++)
+ if (((a = -o - i), Math.abs(o) <= e && Math.abs(i) <= e && Math.abs(a) <= e)) {
+ this._cel.set(o, i, a)
var u = new THREE.Line(s, r)
u.position.copy(this.cellToPixel(this._cel)),
(u.rotation.x = 90 * n.DEG_TO_RAD),
@@ -12796,20 +23030,20 @@
(this._matCache = null)
},
load: function (e, t, r) {
- var i = this
+ var o = this
n.Tools.getJSON({
url: e,
callback: function (e) {
- i.fromJSON(e), t.call(r || null, e)
+ o.fromJSON(e), t.call(r || null, e)
},
cache: !1,
- scope: i,
+ scope: o,
})
},
fromJSON: function (e) {
var t,
r,
- i = e.cells
+ o = e.cells
for (
this.cells = {},
this.numCells = 0,
@@ -12820,10 +23054,10 @@
this.extrudeSettings = e.extrudeSettings,
this.autogenerated = e.autogenerated,
t = 0;
- t < i.length;
+ t < o.length;
t++
)
- (r = new n.Cell()).copy(i[t]), this.add(r)
+ (r = new n.Cell()).copy(o[t]), this.add(r)
},
toJSON: function () {
var e,
@@ -12855,11 +23089,11 @@
var t = Math.round(e.q),
n = Math.round(e.r),
r = Math.round(e.s),
- i = Math.abs(t - e.q),
- o = Math.abs(n - e.r),
+ o = Math.abs(t - e.q),
+ i = Math.abs(n - e.r),
a = Math.abs(r - e.s)
return (
- i > o && i > a ? (t = -n - r) : o > a ? (n = -t - r) : (r = -t - n),
+ o > i && o > a ? (t = -n - r) : i > a ? (n = -t - r) : (r = -t - n),
this._cel.set(t, n, r)
)
},
@@ -12931,21 +23165,21 @@
},
getNeighbors: function (e, t, n) {
var r,
- i,
- o = this._directions.length
- for (this._list.length = 0, r = 0; o > r; r++)
+ o,
+ i = this._directions.length
+ for (this._list.length = 0, r = 0; i > r; r++)
this._cel.copy(e),
this._cel.add(this._directions[r]),
- !(i = this.cells[this.cellToHash(this._cel)]) ||
- (n && !n(e, i)) ||
- this._list.push(i)
+ !(o = this.cells[this.cellToHash(this._cel)]) ||
+ (n && !n(e, o)) ||
+ this._list.push(o)
if (t)
- for (r = 0; o > r; r++)
+ for (r = 0; i > r; r++)
this._cel.copy(e),
this._cel.add(this._diagonals[r]),
- !(i = this.cells[this.cellToHash(this._cel)]) ||
- (n && !n(e, i)) ||
- this._list.push(i)
+ !(o = this.cells[this.cellToHash(this._cel)]) ||
+ (n && !n(e, o)) ||
+ this._list.push(o)
return this._list
},
getRandomCell: function () {
@@ -12977,22 +23211,22 @@
for (t in this.cells) e(this.cells[t])
},
generateTile: function (e, t, r) {
- var i = Math.abs(e.h)
- 1 > i && (i = 1)
- var o = this._geoCache[i]
- o ||
- ((this.extrudeSettings.amount = i),
- (o = new THREE.ExtrudeGeometry(this.cellShape, this.extrudeSettings)),
- (this._geoCache[i] = o))
- var a = new n.Tile({ size: this.cellSize, scale: t, cell: e, geometry: o, material: r })
+ var o = Math.abs(e.h)
+ 1 > o && (o = 1)
+ var i = this._geoCache[o]
+ i ||
+ ((this.extrudeSettings.amount = o),
+ (i = new THREE.ExtrudeGeometry(this.cellShape, this.extrudeSettings)),
+ (this._geoCache[o] = i))
+ var a = new n.Tile({ size: this.cellSize, scale: t, cell: e, geometry: i, material: r })
return (e.tile = a), a
},
generateTiles: function (e) {
e = e || {}
var t,
r,
- i,
- o = [],
+ o,
+ i = [],
a = {
tileScale: 0.95,
cellSize: this.cellSize,
@@ -13012,13 +23246,13 @@
(this.autogenerated = !0),
(this.extrudeSettings = a.extrudeSettings),
this.cells))
- (i = this.cells[t]),
- (r = this.generateTile(i, a.tileScale, a.material)).position.copy(
- this.cellToPixel(i),
+ (o = this.cells[t]),
+ (r = this.generateTile(o, a.tileScale, a.material)).position.copy(
+ this.cellToPixel(o),
),
(r.position.y = 0),
- o.push(r)
- return o
+ i.push(r)
+ return i
},
generateTilePoly: function (e) {
e || (e = new THREE.MeshBasicMaterial({ color: 2405631 }))
@@ -13029,18 +23263,18 @@
;(e = e || {}), (this.size = 'undefined' == typeof e.size ? this.size : e.size)
var t,
r,
- i,
- o = Math.ceil(this.size / 2)
- for (t = -o; o > t; t++)
- for (r = -o; o > r; r++) (i = new n.Cell(t, r + 1)), this.add(i)
+ o,
+ i = Math.ceil(this.size / 2)
+ for (t = -i; i > t; t++)
+ for (r = -i; i > r; r++) (o = new n.Cell(t, r + 1)), this.add(o)
},
generateOverlay: function (e, t, r) {
- var i,
- o,
+ var o,
+ i,
a = Math.ceil(e / 2)
- for (i = -a; a > i; i++)
- for (o = -a; a > o; o++) {
- this._cel.set(i, o)
+ for (o = -a; a > o; o++)
+ for (i = -a; a > i; i++) {
+ this._cel.set(o, i)
var s = new THREE.Line(this.cellGeo, r)
s.position.copy(this.cellToPixel(this._cel)),
(s.rotation.x = 90 * n.DEG_TO_RAD),
@@ -13082,7 +23316,7 @@
fromJSON: function (e) {
var t,
r,
- i = e.cells
+ o = e.cells
for (
this.cells = {},
this.numCells = 0,
@@ -13092,10 +23326,10 @@
this.extrudeSettings = e.extrudeSettings,
this.autogenerated = e.autogenerated,
t = 0;
- t < i.length;
+ t < o.length;
t++
)
- (r = new n.Cell()).copy(i[t]), this.add(r)
+ (r = new n.Cell()).copy(o[t]), this.add(r)
},
toJSON: function () {
var e,
@@ -13211,7 +23445,7 @@
if (!n.uniqueID)
try {
n.uniqueID = t.generateID()
- } catch (i) {
+ } catch (o) {
return (
console.error(
'[LinkedList.addNode] obj passed is immutable: cannot attach necessary identifier',
@@ -13252,11 +23486,11 @@
var n = t.prev,
r = n.prev
t == this.last && (this.last = n)
- var i = t.next
+ var o = t.next
r && (r.next = t),
(t.next = n),
(t.prev = n.prev),
- (n.next = i),
+ (n.next = o),
(n.prev = t),
this.first == n && (this.first = t)
}
@@ -13273,8 +23507,8 @@
var t,
n,
r = this.sortArray,
- i = this.first
- for (r.length = 0; i; ) r.push(i.obj), (i = i.next)
+ o = this.first
+ for (r.length = 0; o; ) r.push(o.obj), (o = o.next)
for (this.clear(), r.sort(e), n = r.length, t = 0; n > t; t++) this.add(r[t])
},
remove: function (e) {
@@ -13351,12 +23585,12 @@
(n.LinkedList = t)
})(),
(function () {
- var e = function (e, t, n, r, i) {
+ var e = function (e, t, n, r, o) {
;(this._listener = t),
(this.isOnce = n),
(this.context = r),
(this.signal = e),
- (this._priority = i || 0)
+ (this._priority = o || 0)
}
;(e.prototype = {
active: !0,
@@ -13413,11 +23647,11 @@
),
)
},
- _registerListener: function (t, n, r, i) {
- var o,
+ _registerListener: function (t, n, r, o) {
+ var i,
a = this._indexOfListener(t, r)
if (-1 !== a) {
- if ((o = this._bindings[a]).isOnce !== n)
+ if ((i = this._bindings[a]).isOnce !== n)
throw new Error(
'You cannot add' +
(n ? '' : 'Once') +
@@ -13425,8 +23659,8 @@
(n ? 'Once' : '') +
'() the same listener without removing the relationship first.',
)
- } else (o = new e(this, t, n, r, i)), this._addBinding(o)
- return this.memorize && this._prevParams && o.execute(this._prevParams), o
+ } else (i = new e(this, t, n, r, o)), this._addBinding(i)
+ return this.memorize && this._prevParams && i.execute(this._prevParams), i
},
_addBinding: function (e) {
var t = this._bindings.length
@@ -13506,25 +23740,25 @@
(this.list = new n.LinkedList())
}),
(n.AStarFinder.prototype = {
- findPath: function (e, t, r, i) {
- var o, a, s, u, l, c
+ findPath: function (e, t, r, o) {
+ var i, a, s, u, c, l
for (
- r = r || this.heuristicFilter, i.clearPath(), this.list.clear(), this.list.add(e);
+ r = r || this.heuristicFilter, o.clearPath(), this.list.clear(), this.list.add(e);
this.list.length > 0;
) {
- if ((this.list.sort(this.compare), ((o = this.list.shift())._visited = !0), o === t))
+ if ((this.list.sort(this.compare), ((i = this.list.shift())._visited = !0), i === t))
return n.PathUtil.backtrace(t)
- for (l = 0, c = (s = i.getNeighbors(o, this.allowDiagonal, r)).length; c > l; l++)
+ for (c = 0, l = (s = o.getNeighbors(i, this.allowDiagonal, r)).length; l > c; c++)
if (
- (u = s[l]).walkable &&
- ((a = o._calcCost + i.distance(o, u)), !u._visited || a < u._calcCost)
+ (u = s[c]).walkable &&
+ ((a = i._calcCost + o.distance(i, u)), !u._visited || a < u._calcCost)
) {
if (
((u._visited = !0),
- (u._parent = o),
+ (u._parent = i),
(u._calcCost = a),
- (u._priority = a + i.distance(t, u)),
+ (u._priority = a + o.distance(t, u)),
u === t)
)
return n.PathUtil.backtrace(t)
@@ -13552,53 +23786,53 @@
var t,
n,
r,
- i,
o,
+ i,
a = 0
for (t = 1; t < e.length; ++t)
(n = e[t - 1]),
(r = e[t]),
- (i = n[0] - r[0]),
- (o = n[1] - r[1]),
- (a += Math.sqrt(i * i + o * o))
+ (o = n[0] - r[0]),
+ (i = n[1] - r[1]),
+ (a += Math.sqrt(o * o + i * i))
return a
},
interpolate: function (e, t, n, r) {
- var i,
- o,
+ var o,
+ i,
a,
s,
u,
- l,
- c = Math.abs,
+ c,
+ l = Math.abs,
d = []
for (
- i = n > e ? 1 : -1, o = r > t ? 1 : -1, u = (a = c(n - e)) - (s = c(r - t));
+ o = n > e ? 1 : -1, i = r > t ? 1 : -1, u = (a = l(n - e)) - (s = l(r - t));
e !== n || t !== r;
)
d.push([e, t]),
- (l = 2 * u) > -s && ((u -= s), (e += i)),
- a > l && ((u += a), (t += o))
+ (c = 2 * u) > -s && ((u -= s), (e += o)),
+ a > c && ((u += a), (t += i))
return d
},
expandPath: function (e) {
var t,
n,
r,
- i,
o,
+ i,
a,
s = [],
u = e.length
if (2 > u) return s
- for (o = 0; u - 1 > o; ++o)
+ for (i = 0; u - 1 > i; ++i)
for (
- t = e[o],
- n = e[o + 1],
- i = (r = this.interpolate(t[0], t[1], n[0], n[1])).length,
+ t = e[i],
+ n = e[i + 1],
+ o = (r = this.interpolate(t[0], t[1], n[0], n[1])).length,
a = 0;
- i - 1 > a;
+ o - 1 > a;
++a
)
s.push(r[a])
@@ -13607,13 +23841,13 @@
smoothenPath: function (e, t) {
var n,
r,
- i,
o,
+ i,
a,
s,
u,
- l,
c,
+ l,
d,
f,
h,
@@ -13624,11 +23858,11 @@
y = t[p - 1][1]
for (a = [[(n = v), (r = m)]], u = 2; p > u; ++u) {
for (
- i = (c = t[u])[0], o = c[1], d = this.interpolate(n, r, i, o), h = !1, l = 1;
- l < d.length;
- ++l
+ o = (l = t[u])[0], i = l[1], d = this.interpolate(n, r, o, i), h = !1, c = 1;
+ c < d.length;
+ ++c
)
- if (((f = d[l]), !e.isWalkableAt(f[0], f[1]))) {
+ if (((f = d[c]), !e.isWalkableAt(f[0], f[1]))) {
h = !0
break
}
@@ -13641,30 +23875,30 @@
var t,
n,
r,
- i,
o,
+ i,
a,
s = [],
u = e[0][0],
- l = e[0][1],
- c = e[1][0],
+ c = e[0][1],
+ l = e[1][0],
d = e[1][1],
- f = c - u,
- h = d - l
+ f = l - u,
+ h = d - c
for (
- f /= o = Math.sqrt(f * f + h * h), h /= o, s.push([u, l]), a = 2;
+ f /= i = Math.sqrt(f * f + h * h), h /= i, s.push([u, c]), a = 2;
a < e.length;
a++
)
- (t = c),
+ (t = l),
(n = d),
(r = f),
- (i = h),
- (f = (c = e[a][0]) - t),
+ (o = h),
+ (f = (l = e[a][0]) - t),
(h = (d = e[a][1]) - n),
- (h /= o = Math.sqrt(f * f + h * h)),
- ((f /= o) !== r || h !== i) && s.push([t, n])
- return s.push([c, d]), s
+ (h /= i = Math.sqrt(f * f + h * h)),
+ ((f /= i) !== r || h !== o) && s.push([t, n])
+ return s.push([l, d]), s
},
}),
(n.Loader = {
@@ -13684,20 +23918,20 @@
(this.imageLoader.crossOrigin = e)
},
loadTexture: function (e, t, n, r) {
- var i = new THREE.Texture(null, t)
+ var o = new THREE.Texture(null, t)
return (
this.imageLoader.load(
e,
function (e) {
- ;(i.image = e), (i.needsUpdate = !0), n && n(i)
+ ;(o.image = e), (o.needsUpdate = !0), n && n(o)
},
null,
function (e) {
r && r(e)
},
),
- (i.sourceFile = e),
- i
+ (o.sourceFile = e),
+ o
)
},
}),
@@ -13819,10 +24053,10 @@
cameraPosition: null,
orthoZoom: 4,
},
- i = { minDistance: 100, maxDistance: 1e3, zoomSpeed: 2, noZoom: !1 }
+ o = { minDistance: 100, maxDistance: 1e3, zoomSpeed: 2, noZoom: !1 }
if (
((r = n.Tools.merge(r, e)),
- 'boolean' != typeof t && (i = n.Tools.merge(i, t)),
+ 'boolean' != typeof t && (o = n.Tools.merge(o, t)),
(this.renderer = new THREE.WebGLRenderer({ alpha: r.alpha, antialias: r.antialias })),
this.renderer.setClearColor(r.clearColor, 0),
(this.renderer.sortObjects = r.sortObjects),
@@ -13836,17 +24070,17 @@
this.container.add(r.light),
'OrthographicCamera' === r.cameraType)
) {
- var o = window.innerWidth / this.orthoZoom,
+ var i = window.innerWidth / this.orthoZoom,
a = window.innerHeight / this.orthoZoom
- this.camera = new THREE.OrthographicCamera(o / -2, o / 2, a / 2, a / -2, 1, 5e3)
+ this.camera = new THREE.OrthographicCamera(i / -2, i / 2, a / 2, a / -2, 1, 5e3)
} else this.camera = new THREE.PerspectiveCamera(50, this.width / this.height, 1, 5e3)
;(this.contolled = !!t),
this.contolled &&
((this.controls = new THREE.OrbitControls(this.camera, this.renderer.domElement)),
- (this.controls.minDistance = i.minDistance),
- (this.controls.maxDistance = i.maxDistance),
- (this.controls.zoomSpeed = i.zoomSpeed),
- (this.controls.noZoom = i.noZoom)),
+ (this.controls.minDistance = o.minDistance),
+ (this.controls.maxDistance = o.maxDistance),
+ (this.controls.zoomSpeed = o.zoomSpeed),
+ (this.controls.noZoom = o.noZoom)),
r.cameraPosition && this.camera.position.copy(r.cameraPosition),
window.addEventListener(
'resize',
@@ -13982,29 +24216,29 @@
merge: function (e, t) {
var n = this,
r = Array.isArray(t),
- i = (r && []) || {}
+ o = (r && []) || {}
return r
? ((e = e || []),
- (i = i.concat(e)),
+ (o = o.concat(e)),
t.forEach(function (t, r) {
- 'undefined' == typeof i[r]
- ? (i[r] = t)
+ 'undefined' == typeof o[r]
+ ? (o[r] = t)
: n.isPlainObject(t)
- ? (i[r] = n.merge(e[r], t))
- : -1 === e.indexOf(t) && i.push(t)
+ ? (o[r] = n.merge(e[r], t))
+ : -1 === e.indexOf(t) && o.push(t)
}),
- i)
+ o)
: (e &&
n.isPlainObject(e) &&
Object.keys(e).forEach(function (t) {
- i[t] = e[t]
+ o[t] = e[t]
}),
Object.keys(t).forEach(function (r) {
t[r] && n.isPlainObject(t[r]) && e[r]
- ? (i[r] = n.merge(e[r], t[r]))
- : (i[r] = t[r])
+ ? (o[r] = n.merge(e[r], t[r]))
+ : (o[r] = t[r])
}),
- i)
+ o)
},
now: function () {
return window.nwf ? window.nwf.system.Performance.elapsedTime : window.performance.now()
@@ -14014,23 +24248,23 @@
},
radixSort: function (e, t, n, r) {
if (((r = r || 31), !((t = t || 0) >= (n = n || e.length) - 1 || 0 > r))) {
- for (var i = t, o = n, a = 1 << r; o > i; )
- if (e[i] & a) {
- --o
- var s = e[i]
- ;(e[i] = e[o]), (e[o] = s)
- } else ++i
- this.radixSort(e, t, o, r - 1), this.radixSort(e, o, n, r - 1)
+ for (var o = t, i = n, a = 1 << r; i > o; )
+ if (e[o] & a) {
+ --i
+ var s = e[o]
+ ;(e[o] = e[i]), (e[i] = s)
+ } else ++o
+ this.radixSort(e, t, i, r - 1), this.radixSort(e, i, n, r - 1)
}
},
randomizeRGB: function (e, t) {
var n,
r,
- i = e.split(','),
- o = 'rgb('
+ o = e.split(','),
+ i = 'rgb('
for (t = this.randomInt(t), n = 0; 3 > n; n++)
- 0 > (r = parseInt(i[n]) + t) ? (r = 0) : r > 255 && (r = 255), (o += r + ',')
- return (o = o.substring(0, o.length - 1)) + ')'
+ 0 > (r = parseInt(o[n]) + t) ? (r = 0) : r > 255 && (r = 255), (i += r + ',')
+ return (i = i.substring(0, i.length - 1)) + ')'
},
getJSON: function (e) {
var t = new XMLHttpRequest(),
@@ -14066,7 +24300,7 @@
},
})
},
- 7454: function () {
+ 77454: function () {
!(function (e) {
var t = 'KeyboardEvent' in e
t ||
@@ -14082,8 +24316,8 @@
(e.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD = 3)
var n = window.KeyboardEvent.DOM_KEY_LOCATION_STANDARD,
r = window.KeyboardEvent.DOM_KEY_LOCATION_LEFT,
- i = window.KeyboardEvent.DOM_KEY_LOCATION_RIGHT,
- o = window.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD
+ o = window.KeyboardEvent.DOM_KEY_LOCATION_RIGHT,
+ i = window.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD
function a(e, t) {
return -1 !== String(e).indexOf(t)
}
@@ -14111,9 +24345,9 @@
: a(navigator.userAgent, 'Opera/')
? 'opera'
: '',
- l = u + '-' + s
- function c(e, t, n) {
- ;(l !== t && u !== t && s !== t) ||
+ c = u + '-' + s
+ function l(e, t, n) {
+ ;(c !== t && u !== t && s !== t) ||
Object.keys(n).forEach(function (t) {
e[t] = n[t]
})
@@ -14193,25 +24427,25 @@
89: { code: 'KeyY', keyCap: 'y' },
90: { code: 'KeyZ', keyCap: 'z' },
91: { code: 'OSLeft', location: r },
- 92: { code: 'OSRight', location: i },
+ 92: { code: 'OSRight', location: o },
93: { code: 'ContextMenu' },
95: { code: 'Standby' },
- 96: { code: 'Numpad0', keyCap: '0', location: o },
- 97: { code: 'Numpad1', keyCap: '1', location: o },
- 98: { code: 'Numpad2', keyCap: '2', location: o },
- 99: { code: 'Numpad3', keyCap: '3', location: o },
- 100: { code: 'Numpad4', keyCap: '4', location: o },
- 101: { code: 'Numpad5', keyCap: '5', location: o },
- 102: { code: 'Numpad6', keyCap: '6', location: o },
- 103: { code: 'Numpad7', keyCap: '7', location: o },
- 104: { code: 'Numpad8', keyCap: '8', location: o },
- 105: { code: 'Numpad9', keyCap: '9', location: o },
- 106: { code: 'NumpadMultiply', keyCap: '*', location: o },
- 107: { code: 'NumpadAdd', keyCap: '+', location: o },
- 108: { code: 'NumpadComma', keyCap: ',', location: o },
- 109: { code: 'NumpadSubtract', keyCap: '-', location: o },
- 110: { code: 'NumpadDecimal', keyCap: '.', location: o },
- 111: { code: 'NumpadDivide', keyCap: '/', location: o },
+ 96: { code: 'Numpad0', keyCap: '0', location: i },
+ 97: { code: 'Numpad1', keyCap: '1', location: i },
+ 98: { code: 'Numpad2', keyCap: '2', location: i },
+ 99: { code: 'Numpad3', keyCap: '3', location: i },
+ 100: { code: 'Numpad4', keyCap: '4', location: i },
+ 101: { code: 'Numpad5', keyCap: '5', location: i },
+ 102: { code: 'Numpad6', keyCap: '6', location: i },
+ 103: { code: 'Numpad7', keyCap: '7', location: i },
+ 104: { code: 'Numpad8', keyCap: '8', location: i },
+ 105: { code: 'Numpad9', keyCap: '9', location: i },
+ 106: { code: 'NumpadMultiply', keyCap: '*', location: i },
+ 107: { code: 'NumpadAdd', keyCap: '+', location: i },
+ 108: { code: 'NumpadComma', keyCap: ',', location: i },
+ 109: { code: 'NumpadSubtract', keyCap: '-', location: i },
+ 110: { code: 'NumpadDecimal', keyCap: '.', location: i },
+ 111: { code: 'NumpadDivide', keyCap: '/', location: i },
112: { code: 'F1' },
113: { code: 'F2' },
114: { code: 'F3' },
@@ -14236,14 +24470,14 @@
133: { code: 'F22' },
134: { code: 'F23' },
135: { code: 'F24' },
- 144: { code: 'NumLock', location: o },
+ 144: { code: 'NumLock', location: i },
145: { code: 'ScrollLock' },
160: { code: 'ShiftLeft', location: r },
- 161: { code: 'ShiftRight', location: i },
+ 161: { code: 'ShiftRight', location: o },
162: { code: 'ControlLeft', location: r },
- 163: { code: 'ControlRight', location: i },
+ 163: { code: 'ControlRight', location: o },
164: { code: 'AltLeft', location: r },
- 165: { code: 'AltRight', location: i },
+ 165: { code: 'AltRight', location: o },
166: { code: 'BrowserBack' },
167: { code: 'BrowserForward' },
168: { code: 'BrowserRefresh' },
@@ -14283,37 +24517,37 @@
251: { code: 'ZoomToggle' },
254: { code: 'Clear' },
}
- c(d, 'moz', {
+ l(d, 'moz', {
59: { code: 'Semicolon', keyCap: ';' },
61: { code: 'Equal', keyCap: '=' },
107: { code: 'Equal', keyCap: '=' },
109: { code: 'Minus', keyCap: '-' },
- 187: { code: 'NumpadAdd', keyCap: '+', location: o },
- 189: { code: 'NumpadSubtract', keyCap: '-', location: o },
+ 187: { code: 'NumpadAdd', keyCap: '+', location: i },
+ 189: { code: 'NumpadSubtract', keyCap: '-', location: i },
}),
- c(d, 'moz-mac', {
- 12: { code: 'NumLock', location: o },
+ l(d, 'moz-mac', {
+ 12: { code: 'NumLock', location: i },
173: { code: 'Minus', keyCap: '-' },
}),
- c(d, 'moz-win', { 173: { code: 'Minus', keyCap: '-' } }),
- c(d, 'chrome-mac', { 93: { code: 'OSRight', location: i } }),
- c(d, 'safari', { 3: { code: 'Enter' }, 25: { code: 'Tab' } }),
- c(d, 'ios', { 10: { code: 'Enter', location: n } }),
- c(d, 'safari-mac', {
+ l(d, 'moz-win', { 173: { code: 'Minus', keyCap: '-' } }),
+ l(d, 'chrome-mac', { 93: { code: 'OSRight', location: o } }),
+ l(d, 'safari', { 3: { code: 'Enter' }, 25: { code: 'Tab' } }),
+ l(d, 'ios', { 10: { code: 'Enter', location: n } }),
+ l(d, 'safari-mac', {
91: { code: 'OSLeft', location: r },
- 93: { code: 'OSRight', location: i },
+ 93: { code: 'OSRight', location: o },
229: { code: 'KeyQ', keyCap: 'Q' },
})
var f = {}
'cros' === s &&
((f['U+00A0'] = { code: 'ShiftLeft', location: r }),
- (f['U+00A1'] = { code: 'ShiftRight', location: i }),
+ (f['U+00A1'] = { code: 'ShiftRight', location: o }),
(f['U+00A2'] = { code: 'ControlLeft', location: r }),
- (f['U+00A3'] = { code: 'ControlRight', location: i }),
+ (f['U+00A3'] = { code: 'ControlRight', location: o }),
(f['U+00A4'] = { code: 'AltLeft', location: r }),
- (f['U+00A5'] = { code: 'AltRight', location: i })),
- 'chrome-mac' === l && (f['U+0010'] = { code: 'ContextMenu' }),
- 'safari-mac' === l && (f['U+0010'] = { code: 'ContextMenu' }),
+ (f['U+00A5'] = { code: 'AltRight', location: o })),
+ 'chrome-mac' === c && (f['U+0010'] = { code: 'ContextMenu' }),
+ 'safari-mac' === c && (f['U+0010'] = { code: 'ContextMenu' }),
'ios' === s &&
((f['U+0010'] = { code: 'Function' }),
(f['U+001C'] = { code: 'ArrowLeft' }),
@@ -14330,27 +24564,27 @@
17: { code: 'ControlLeft', location: r },
18: { code: 'AltLeft', location: r },
}),
- (h[i] = {
- 16: { code: 'ShiftRight', location: i },
- 17: { code: 'ControlRight', location: i },
- 18: { code: 'AltRight', location: i },
+ (h[o] = {
+ 16: { code: 'ShiftRight', location: o },
+ 17: { code: 'ControlRight', location: o },
+ 18: { code: 'AltRight', location: o },
}),
- (h[o] = { 13: { code: 'NumpadEnter', location: o } }),
- c(h[o], 'moz', {
- 109: { code: 'NumpadSubtract', location: o },
- 107: { code: 'NumpadAdd', location: o },
+ (h[i] = { 13: { code: 'NumpadEnter', location: i } }),
+ l(h[i], 'moz', {
+ 109: { code: 'NumpadSubtract', location: i },
+ 107: { code: 'NumpadAdd', location: i },
}),
- c(h[r], 'moz-mac', { 224: { code: 'OSLeft', location: r } }),
- c(h[i], 'moz-mac', { 224: { code: 'OSRight', location: i } }),
- c(h[i], 'moz-win', { 91: { code: 'OSRight', location: i } }),
- c(h[i], 'mac', { 93: { code: 'OSRight', location: i } }),
- c(h[o], 'chrome-mac', { 12: { code: 'NumLock', location: o } }),
- c(h[o], 'safari-mac', {
- 12: { code: 'NumLock', location: o },
- 187: { code: 'NumpadAdd', location: o },
- 189: { code: 'NumpadSubtract', location: o },
- 190: { code: 'NumpadDecimal', location: o },
- 191: { code: 'NumpadDivide', location: o },
+ l(h[r], 'moz-mac', { 224: { code: 'OSLeft', location: r } }),
+ l(h[o], 'moz-mac', { 224: { code: 'OSRight', location: o } }),
+ l(h[o], 'moz-win', { 91: { code: 'OSRight', location: o } }),
+ l(h[o], 'mac', { 93: { code: 'OSRight', location: o } }),
+ l(h[i], 'chrome-mac', { 12: { code: 'NumLock', location: i } }),
+ l(h[i], 'safari-mac', {
+ 12: { code: 'NumLock', location: i },
+ 187: { code: 'NumpadAdd', location: i },
+ 189: { code: 'NumpadSubtract', location: i },
+ 190: { code: 'NumpadDecimal', location: i },
+ 191: { code: 'NumpadDivide', location: i },
})
var p = {
ShiftLeft: { key: 'Shift' },
@@ -14428,7 +24662,7 @@
Quote: { key: "'", shiftKey: '"' },
IntlBackslash: { key: '\\', shiftKey: '|' },
}
- c(p, 'mac', { OSLeft: { key: 'Meta' }, OSRight: { key: 'Meta' } })
+ l(p, 'mac', { OSLeft: { key: 'Meta' }, OSRight: { key: 'Meta' } })
var v = {
Esc: 'Escape',
Nonconvert: 'NonConvert',
@@ -14452,8 +24686,8 @@
var n = {}
return (
Object.keys(e).forEach(function (r) {
- var i = e[r]
- t in i && (n[i[t]] = i)
+ var o = e[r]
+ t in o && (n[o[t]] = o)
}),
n
)
@@ -14547,7 +24781,7 @@
})
})(window)
},
- 3386: function (e) {
+ 33386: function (e) {
e.exports = AFRAME.registerComponent('checkpoint-controls', {
schema: {
enabled: { default: !0 },
@@ -14593,12 +24827,12 @@
t = this.offset,
n = this.position,
r = this.targetPosition,
- i = this.checkpoint
+ o = this.checkpoint
return (
this.sync(),
n.distanceTo(r) < 0.1
? ((this.checkpoint = null),
- this.el.emit('navigation-end', { checkpoint: i }),
+ this.el.emit('navigation-end', { checkpoint: o }),
t.set(0, 0, 0))
: (t.setLength(e.animateSpeed), t)
)
@@ -14614,14 +24848,14 @@
},
})
},
- 5062: function (e, t, n) {
- const r = n(6453),
- i = n(4379),
- o = 0.2,
+ 45062: function (e, t, n) {
+ const r = n(16453),
+ o = n(44379),
+ i = 0.2,
a = 'left',
s = 'right',
u = 1,
- l = 2
+ c = 2
e.exports = AFRAME.registerComponent('gamepad-controls', {
GamepadButton: r,
schema: {
@@ -14660,7 +24894,7 @@
this.getDpad(e), this.getJoystick(u, t)
const n = e.x || t.x,
r = e.y || t.y
- return Math.abs(n) > o || Math.abs(r) > o
+ return Math.abs(n) > i || Math.abs(r) > i
},
getVelocityDelta: function () {
const e = this._dpadVector,
@@ -14668,67 +24902,67 @@
this.getDpad(e), this.getJoystick(u, t)
const n = e.x || t.x,
r = e.y || t.y,
- i = new THREE.Vector3()
- return Math.abs(n) > o && (i.x += n), Math.abs(r) > o && (i.z += r), i
+ o = new THREE.Vector3()
+ return Math.abs(n) > i && (o.x += n), Math.abs(r) > i && (o.z += r), o
},
isRotationActive: function () {
if (!this.data.enabled || !this.isConnected()) return !1
const e = this._lookVector
- return this.getJoystick(l, e), Math.abs(e.x) > o || Math.abs(e.y) > o
+ return this.getJoystick(c, e), Math.abs(e.x) > i || Math.abs(e.y) > i
},
updateRotation: function (e) {
if (!this.isRotationActive()) return
const t = this.data,
n = this.yaw,
r = this.pitch,
- i = t.camera.components['look-controls'],
- a = i && i.pitchObject && i.yawObject
- a && (r.rotation.copy(i.pitchObject.rotation), n.rotation.copy(i.yawObject.rotation))
+ o = t.camera.components['look-controls'],
+ a = o && o.pitchObject && o.yawObject
+ a && (r.rotation.copy(o.pitchObject.rotation), n.rotation.copy(o.yawObject.rotation))
const s = this._lookVector
- this.getJoystick(l, s),
- Math.abs(s.x) <= o && (s.x = 0),
- Math.abs(s.y) <= o && (s.y = 0),
+ this.getJoystick(c, s),
+ Math.abs(s.x) <= i && (s.x = 0),
+ Math.abs(s.y) <= i && (s.y = 0),
s.multiplyScalar((t.rotationSensitivity * e) / 1e3),
(n.rotation.y -= s.x),
(r.rotation.x -= s.y),
(r.rotation.x = Math.max(-Math.PI / 2, Math.min(Math.PI / 2, r.rotation.x))),
t.camera.object3D.rotation.set(r.rotation.x, n.rotation.y, 0),
- a && (i.pitchObject.rotation.copy(r.rotation), i.yawObject.rotation.copy(n.rotation))
+ a && (o.pitchObject.rotation.copy(r.rotation), o.yawObject.rotation.copy(n.rotation))
},
updateButtonState: function () {
const e = this.getGamepad(s)
if (this.data.enabled && e)
for (var t = 0; t < e.buttons.length; t++)
e.buttons[t].pressed && !this.buttons[t]
- ? this.emit(new i('gamepadbuttondown', t, e.buttons[t]))
+ ? this.emit(new o('gamepadbuttondown', t, e.buttons[t]))
: !e.buttons[t].pressed &&
this.buttons[t] &&
- this.emit(new i('gamepadbuttonup', t, e.buttons[t])),
+ this.emit(new o('gamepadbuttonup', t, e.buttons[t])),
(this.buttons[t] = e.buttons[t].pressed)
else Object.keys(this.buttons) && (this.buttons = {})
},
emit: function (e) {
- this.el.emit(e.type, e), this.el.emit(e.type + ':' + e.index, new i(e.type, e.index, e))
+ this.el.emit(e.type, e), this.el.emit(e.type + ':' + e.index, new o(e.type, e.index, e))
},
getGamepad: (function () {
const e = [],
t = []
return function (n) {
const r = this.el.sceneEl.components['proxy-controls'],
- i = r && r.isConnected() && r.getGamepad(0)
- if (i) return i
+ o = r && r.isConnected() && r.getGamepad(0)
+ if (o) return o
e.length = 0
for (let t = 0; t < this.system.controllers.length; t++) {
const r = this.system.controllers[t],
- i = r ? r.gamepad : null
- if ((e.push(i), i && i.handedness === n)) return i
+ o = r ? r.gamepad : null
+ if ((e.push(o), o && o.handedness === n)) return o
}
- const o = navigator.getGamepads ? navigator.getGamepads() : t
- for (let e = 0; e < o.length; e++) {
- const t = o[e]
+ const i = navigator.getGamepads ? navigator.getGamepads() : t
+ for (let e = 0; e < i.length; e++) {
+ const t = i[e]
if (t && t.hand === n) return t
}
- return e[0] || o[0]
+ return e[0] || i[0]
}
})(),
getButton: function (e) {
@@ -14743,14 +24977,14 @@
switch (e) {
case u:
return t.set(n.axes[2], n.axes[3])
- case l:
+ case c:
return t.set(n.axes[0], n.axes[1])
}
else
switch (e) {
case u:
return t.set(n.axes[0], n.axes[1])
- case l:
+ case c:
return t.set(n.axes[2], n.axes[3])
}
throw new Error('Unexpected joystick index "%d".', e)
@@ -14774,11 +25008,11 @@
},
})
},
- 2406: function (e, t, n) {
- n(3386), n(5062), n(2250), n(9048), n(3819), n(9893)
+ 52406: function (e, t, n) {
+ n(33386), n(45062), n(32250), n(79048), n(43819), n(99893)
},
- 2250: function (e, t, n) {
- n(7454)
+ 32250: function (e, t, n) {
+ n(77454)
const r = window.KeyboardEvent
e.exports = AFRAME.registerComponent('keyboard-controls', {
schema: { enabled: { default: !0 }, debug: { default: !1 } },
@@ -14855,7 +25089,7 @@
},
})
},
- 3819: function (e) {
+ 43819: function (e) {
const t = '-controls'
e.exports = AFRAME.registerComponent('movement-controls', {
dependencies: ['rotation'],
@@ -14900,9 +25134,9 @@
const e = new THREE.Vector3(),
t = new THREE.Vector3(),
n = new THREE.Vector3()
- return function (r, i) {
- if (!i) return
- const o = this.el,
+ return function (r, o) {
+ if (!o) return
+ const i = this.el,
a = this.data
if (!a.enabled) return
this.updateVelocityCtrl()
@@ -14910,26 +25144,26 @@
u = this.velocity
if (s)
if (
- (i / 1e3 > 0.2 ? u.set(0, 0, 0) : this.updateVelocity(i),
+ (o / 1e3 > 0.2 ? u.set(0, 0, 0) : this.updateVelocity(o),
a.constrainToNavMesh && !1 !== s.isNavMeshConstrained)
) {
if (u.lengthSq() < 1e-5) return
- e.copy(o.object3D.position),
+ e.copy(i.object3D.position),
t
.copy(u)
- .multiplyScalar(i / 1e3)
+ .multiplyScalar(o / 1e3)
.add(e)
- const r = o.sceneEl.systems.nav
+ const r = i.sceneEl.systems.nav
;(this.navGroup = null === this.navGroup ? r.getGroup(e) : this.navGroup),
(this.navNode = this.navNode || r.getNode(e, this.navGroup)),
(this.navNode = r.clampStep(e, t, this.navGroup, this.navNode, n)),
- o.object3D.position.copy(n)
+ i.object3D.position.copy(n)
} else
- o.hasAttribute('velocity')
- ? o.setAttribute('velocity', u)
- : ((o.object3D.position.x += (u.x * i) / 1e3),
- (o.object3D.position.y += (u.y * i) / 1e3),
- (o.object3D.position.z += (u.z * i) / 1e3))
+ i.hasAttribute('velocity')
+ ? i.setAttribute('velocity', u)
+ : ((i.object3D.position.x += (u.x * o) / 1e3),
+ (i.object3D.position.y += (u.y * o) / 1e3),
+ (i.object3D.position.z += (u.z * o) / 1e3))
}
})(),
updateVelocityCtrl: function () {
@@ -14947,34 +25181,34 @@
t = new THREE.Quaternion()
return function (n) {
let r
- const i = this.el,
- o = this.velocityCtrl,
+ const o = this.el,
+ i = this.velocityCtrl,
a = this.velocity,
s = this.data
- if (o) {
- if (!o.getVelocityDelta) {
- if (o.getVelocity) return void a.copy(o.getVelocity())
- if (o.getPositionDelta)
- return void a.copy(o.getPositionDelta(n).multiplyScalar(1e3 / n))
- throw new Error('Incompatible movement controls: ', o)
+ if (i) {
+ if (!i.getVelocityDelta) {
+ if (i.getVelocity) return void a.copy(i.getVelocity())
+ if (i.getPositionDelta)
+ return void a.copy(i.getPositionDelta(n).multiplyScalar(1e3 / n))
+ throw new Error('Incompatible movement controls: ', i)
}
- r = o.getVelocityDelta(n)
+ r = i.getVelocityDelta(n)
}
if (
- (i.hasAttribute('velocity') &&
+ (o.hasAttribute('velocity') &&
!s.constrainToNavMesh &&
a.copy(this.el.getAttribute('velocity')),
r && s.enabled)
) {
const n = s.camera
t.copy(n.object3D.quaternion),
- t.premultiply(i.object3D.quaternion),
+ t.premultiply(o.object3D.quaternion),
r.applyQuaternion(t)
- const o = r.length()
+ const i = r.length()
s.fly
? (a.copy(r), a.multiplyScalar(16.66667 * this.data.speed))
: (e.set(r.x, r.z),
- e.setLength(o * this.data.speed * 16.66667),
+ e.setLength(i * this.data.speed * 16.66667),
(a.x = e.x),
(a.z = e.y))
}
@@ -14982,7 +25216,7 @@
})(),
})
},
- 9048: function (e) {
+ 79048: function (e) {
e.exports = AFRAME.registerComponent('touch-controls', {
schema: { enabled: { default: !0 }, reverseEnabled: { default: !0 } },
init: function () {
@@ -15031,7 +25265,7 @@
},
})
},
- 9893: function (e) {
+ 99893: function (e) {
e.exports = AFRAME.registerComponent('trackpad-controls', {
schema: {
enabled: { default: !0 },
@@ -15135,8 +25369,8 @@
t.enablePosX && n[0] > this.startingAxisData[0] && (e = 1),
t.enablePosZ && n[1] > this.startingAxisData[1] && (r = -1),
t.enableNegZ && n[1] < this.startingAxisData[1] && (r = 1)
- const i = Math.abs(this.startingAxisData[1] - n[1])
- Math.abs(this.startingAxisData[0] - n[0]) > i
+ const o = Math.abs(this.startingAxisData[1] - n[1])
+ Math.abs(this.startingAxisData[0] - n[0]) > o
? ((this.zVel = 0), (this.xVel = e), (this.isMoving = !0))
: ((this.xVel = 0), (this.zVel = r), (this.isMoving = !0))
}
@@ -15145,18 +25379,18 @@
const t = this.data,
n = e.detail.axis
let r = 0,
- i = 0
+ o = 0
t.enableNegX && n[0] < 0 && (r = -1),
t.enablePosX && n[0] > 0 && (r = 1),
- t.enablePosZ && n[1] > 0 && (i = -1),
- t.enableNegZ && n[1] < 0 && (i = 1),
+ t.enablePosZ && n[1] > 0 && (o = -1),
+ t.enableNegZ && n[1] < 0 && (o = 1),
Math.abs(n[0]) > Math.abs(n[1])
? ((this.zVel = 0), (this.xVel = r))
- : ((this.xVel = 0), (this.zVel = i))
+ : ((this.xVel = 0), (this.zVel = o))
},
})
},
- 6591: function (e) {
+ 76591: function (e) {
const t = { once: THREE.LoopOnce, repeat: THREE.LoopRepeat, pingpong: THREE.LoopPingPong }
function n(e) {
return e.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&')
@@ -15219,19 +25453,19 @@
if (!this.mixer) return
const e = this.model,
r = this.data,
- i = e.animations || (e.geometry || {}).animations || []
- if (!i.length) return
- const o = ((a = r.clip), new RegExp('^' + a.split(/\*+/).map(n).join('.*') + '$'))
+ o = e.animations || (e.geometry || {}).animations || []
+ if (!o.length) return
+ const i = ((a = r.clip), new RegExp('^' + a.split(/\*+/).map(n).join('.*') + '$'))
var a
- for (let n, s = 0; (n = i[s]); s++)
- if (n.name.match(o)) {
- const i = this.mixer.clipAction(n, e)
- ;(i.enabled = !0),
- (i.clampWhenFinished = r.clampWhenFinished),
- r.duration && i.setDuration(r.duration),
- 1 !== r.timeScale && i.setEffectiveTimeScale(r.timeScale),
- i.setLoop(t[r.loop], r.repetitions).fadeIn(r.crossFadeDuration).play(),
- this.activeActions.push(i)
+ for (let n, s = 0; (n = o[s]); s++)
+ if (n.name.match(i)) {
+ const o = this.mixer.clipAction(n, e)
+ ;(o.enabled = !0),
+ (o.clampWhenFinished = r.clampWhenFinished),
+ r.duration && o.setDuration(r.duration),
+ 1 !== r.timeScale && o.setEffectiveTimeScale(r.timeScale),
+ o.setLoop(t[r.loop], r.repetitions).fadeIn(r.crossFadeDuration).play(),
+ this.activeActions.push(o)
}
},
tick: function (e, t) {
@@ -15239,8 +25473,8 @@
},
})
},
- 2290: function (e, t, n) {
- ;(THREE.ColladaLoader = n(203)),
+ 62290: function (e, t, n) {
+ ;(THREE.ColladaLoader = n(20203)),
(e.exports.Component = AFRAME.registerComponent('collada-model-legacy', {
schema: { type: 'asset' },
init: function () {
@@ -15274,7 +25508,7 @@
}))
},
5310: function (e, t, n) {
- ;(THREE.FBXLoader = n(9434)),
+ ;(THREE.FBXLoader = n(99434)),
(e.exports = AFRAME.registerComponent('fbx-model', {
schema: { src: { type: 'asset' }, crossorigin: { default: '' } },
init: function () {
@@ -15297,9 +25531,9 @@
},
}))
},
- 8837: function (e, t, n) {
- const r = n(4657)(),
- i = (function () {
+ 88837: function (e, t, n) {
+ const r = n(34657)(),
+ o = (function () {
let e
return function () {
return (
@@ -15317,7 +25551,7 @@
init: function () {
;(this.model = null),
(this.loader = null),
- (this.loaderPromise = i().then(() => {
+ (this.loaderPromise = o().then(() => {
;(this.loader = new THREE.GLTFLoader()), this.loader.setCrossOrigin('Anonymous')
}))
},
@@ -15341,10 +25575,10 @@
},
})
},
- 9874: function (e, t, n) {
- n(6591), n(2290), n(5310), n(8837), n(171)
+ 29874: function (e, t, n) {
+ n(76591), n(62290), n(5310), n(88837), n(30171)
},
- 171: function (e) {
+ 30171: function (e) {
e.exports = AFRAME.registerComponent('object-model', {
schema: { src: { type: 'asset' }, crossorigin: { default: '' } },
init: function () {
@@ -15376,7 +25610,7 @@
},
})
},
- 7642: function (e) {
+ 37642: function (e) {
e.exports = AFRAME.registerComponent('checkpoint', {
schema: { offset: { default: { x: 0, y: 0, z: 0 }, type: 'vec3' } },
init: function () {
@@ -15407,19 +25641,19 @@
},
})
},
- 4795: function (e) {
+ 74795: function (e) {
function t(e, t, n, r) {
e &&
((t = t || []),
e.traverse((e) => {
if (!e.isMesh) return
- var i
- ;((i = e.material)
- ? Array.isArray(i)
- ? i
- : i.materials
- ? i.materials
- : [i]
+ var o
+ ;((o = e.material)
+ ? Array.isArray(o)
+ ? o
+ : o.materials
+ ? o.materials
+ : [o]
: []
).forEach((e) => {
;(e && !('envMap' in e)) ||
@@ -15459,20 +25693,20 @@
update: function (e) {
const n = this.data,
r = this.el.getObject3D('mesh')
- let i = [],
- o = []
+ let o = [],
+ i = []
if (
(n.materials.length &&
(e.materials
- ? ((i = n.materials.filter((t) => !e.materials.includes(t))),
- (o = e.materials.filter((e) => !n.materials.includes(e))))
- : (i = n.materials)),
- i.length && t(r, i, this.texture, n.reflectivity),
- o.length && t(r, o, null, 1),
+ ? ((o = n.materials.filter((t) => !e.materials.includes(t))),
+ (i = e.materials.filter((e) => !n.materials.includes(e))))
+ : (o = n.materials)),
+ o.length && t(r, o, this.texture, n.reflectivity),
+ i.length && t(r, i, null, 1),
e.materials && n.reflectivity !== e.reflectivity)
) {
- const i = n.materials.filter((t) => e.materials.includes(t))
- i.length && t(r, i, this.texture, n.reflectivity)
+ const o = n.materials.filter((t) => e.materials.includes(t))
+ o.length && t(r, o, this.texture, n.reflectivity)
}
this.data.enableBackground && !e.enableBackground
? this.setBackground(this.texture)
@@ -15489,7 +25723,7 @@
},
})
},
- 9511: function (e) {
+ 79511: function (e) {
e.exports = AFRAME.registerComponent('grab', {
init: function () {
;(this.system = this.el.sceneEl.systems.physics),
@@ -15547,10 +25781,10 @@
},
})
},
- 9236: function (e, t, n) {
- n(7642), n(4795), n(9511), n(765), n(837), n(8310), n(8240), n(1790)
+ 59236: function (e, t, n) {
+ n(37642), n(74795), n(79511), n(70765), n(80837), n(58310), n(78240), n(91790)
},
- 765: function (e) {
+ 70765: function (e) {
e.exports = AFRAME.registerComponent('jump-ability', {
dependencies: ['velocity'],
schema: {
@@ -15592,7 +25826,7 @@
},
})
},
- 837: function (e) {
+ 80837: function (e) {
const t = 1e-6
e.exports = AFRAME.registerComponent('kinematic-body', {
dependencies: ['velocity'],
@@ -15631,64 +25865,64 @@
if (!t) return
const n = this.el,
r = this.data,
- i = this.body
- r.enableJumps || i.velocity.set(0, 0, 0), i.position.copy(n.getAttribute('position'))
+ o = this.body
+ r.enableJumps || o.velocity.set(0, 0, 0), o.position.copy(n.getAttribute('position'))
},
step: (function () {
const e = new THREE.Vector3(),
n = new THREE.Vector3(),
r = new THREE.Vector3(),
- i = new THREE.Vector3()
- return function (o, a) {
+ o = new THREE.Vector3()
+ return function (i, a) {
if (!a) return
let s,
u,
- l = this.body,
- c = this.data,
+ c = this.body,
+ l = this.data,
d = !1,
f = -1 / 0,
h = this.system.getContacts()
;(a = Math.min(a, 1e3 * this.system.data.maxInterval)),
- i.set(0, 0, 0),
+ o.set(0, 0, 0),
e.copy(this.el.getAttribute('velocity')),
- l.velocity.copy(e)
+ c.velocity.copy(e)
for (var p, v = 0; (p = h[v]); v++)
if (p.enabled) {
- if (l.id === p.bi.id) p.ni.negate(r)
+ if (c.id === p.bi.id) p.ni.negate(r)
else {
- if (l.id !== p.bj.id) continue
+ if (c.id !== p.bj.id) continue
r.copy(p.ni)
}
- ;(d = l.velocity.dot(r) < -t),
+ ;(d = c.velocity.dot(r) < -t),
d && r.y <= 0.5
? e.projectOnPlane(r)
: r.y > 0.5 &&
((s =
- l.id === p.bi.id
+ c.id === p.bi.id
? Math.abs(p.rj.y + p.bj.position.y)
: Math.abs(p.ri.y + p.bi.position.y)),
- s > f && ((f = s), i.copy(r), (u = l.id === p.bi.id ? p.bj : p.bi)))
+ s > f && ((f = s), o.copy(r), (u = c.id === p.bi.id ? p.bj : p.bi)))
}
n.copy(e).normalize(),
- u && (!c.enableJumps || n.y < 0.5)
- ? (c.enableSlopes
- ? i.y < 1 - t && i.copy(this.raycastToGround(u, i))
- : i.set(0, 1, 0),
- e.projectOnPlane(i))
+ u && (!l.enableJumps || n.y < 0.5)
+ ? (l.enableSlopes
+ ? o.y < 1 - t && o.copy(this.raycastToGround(u, o))
+ : o.set(0, 1, 0),
+ e.projectOnPlane(o))
: this.system.driver.world &&
e.add(this.system.driver.world.gravity.scale((4 * a) / 1e3)),
- l.velocity.copy(e),
- this.el.setAttribute('velocity', l.velocity),
- this.el.setAttribute('position', l.position)
+ c.velocity.copy(e),
+ this.el.setAttribute('velocity', c.velocity),
+ this.el.setAttribute('position', c.position)
}
})(),
raycastToGround: function (e, t) {
let n,
r,
- i = this.body.position,
- o = this.body.position.clone()
+ o = this.body.position,
+ i = this.body.position.clone()
return (
- (n = new CANNON.Ray(i, o)),
+ (n = new CANNON.Ray(o, i)),
n._updateDirection(),
n.intersectBody(e),
n.hasHit ? ((r = n.result.hitNormalWorld), Math.abs(r.y) > Math.abs(t.y) ? r : t) : t
@@ -15696,7 +25930,7 @@
},
})
},
- 8310: function (e) {
+ 58310: function (e) {
e.exports = AFRAME.registerComponent('mesh-smooth', {
init: function () {
this.el.addEventListener('model-loaded', (e) => {
@@ -15707,7 +25941,7 @@
},
})
},
- 8240: function (e) {
+ 78240: function (e) {
e.exports = AFRAME.registerComponent('normal-material', {
init: function () {
;(this.material = new THREE.MeshNormalMaterial({ flatShading: !0 })),
@@ -15724,7 +25958,7 @@
},
})
},
- 1790: function (e) {
+ 91790: function (e) {
e.exports = AFRAME.registerComponent('sphere-collider', {
schema: {
objects: { default: '' },
@@ -15762,38 +25996,38 @@
t = new THREE.Vector3(),
n = new THREE.Vector3(),
r = new THREE.Vector3(),
- i = new THREE.Box3(),
- o = new Map()
+ o = new THREE.Box3(),
+ i = new Map()
return function () {
const a = this.el,
s = this.data,
u = a.getObject3D('mesh'),
- l = []
- let c
+ c = []
+ let l
var d
u &&
- (o.clear(),
+ (i.clear(),
a.object3D.getWorldPosition(e),
a.object3D.getWorldScale(n),
- (c = s.radius * ((d = n), Math.max.apply(null, d.toArray()))),
+ (l = s.radius * ((d = n), Math.max.apply(null, d.toArray()))),
this.els.forEach(function (n) {
let a, s, u, d
if (!n.isEntity) return
if (((s = n.getObject3D('mesh')), !s)) return
if (
- (i.setFromObject(s).getSize(r),
+ (o.setFromObject(s).getSize(r),
(d = Math.max(r.x, r.y, r.z) / 2),
(a = Math.sqrt(2 * d * d)),
- i.getCenter(t),
+ o.getCenter(t),
!a)
)
return
- ;(u = e.distanceTo(t)), u < a + c && (l.push(n), o.set(n, u))
+ ;(u = e.distanceTo(t)), u < a + l && (c.push(n), i.set(n, u))
}),
- l.sort((e, t) => (o.get(e) > o.get(t) ? 1 : -1)).forEach(this.handleHit),
- 0 === l.length && a.emit('hit', { el: null }),
- this.collisions.filter((e) => !o.has(e)).forEach(this.handleHitEnd),
- (this.collisions = l))
+ c.sort((e, t) => (i.get(e) > i.get(t) ? 1 : -1)).forEach(this.handleHit),
+ 0 === c.length && a.emit('hit', { el: null }),
+ this.collisions.filter((e) => !i.has(e)).forEach(this.handleHitEnd),
+ (this.collisions = c))
}
})(),
handleHit: function (e) {
@@ -15804,10 +26038,10 @@
},
})
},
- 2578: function (e, t, n) {
- n(8453), n(1250), n(1465)
+ 82578: function (e, t, n) {
+ n(38453), n(11250), n(31465)
},
- 1250: function (e) {
+ 11250: function (e) {
e.exports = AFRAME.registerComponent('nav-agent', {
schema: { destination: { type: 'vec3' }, active: { default: !1 }, speed: { default: 2 } },
init: function () {
@@ -15830,47 +26064,47 @@
const e = new THREE.Vector3(),
t = new THREE.Vector3(),
n = new THREE.Vector3()
- return function (r, i) {
- const o = this.el,
+ return function (r, o) {
+ const i = this.el,
a = this.data,
s = this.raycaster,
- u = (a.speed * i) / 1e3
+ u = (a.speed * o) / 1e3
if (!a.active) return
if (!this.path.length) {
const t = this.el.object3D.position
;(this.group = this.group || this.system.getGroup(t)),
(this.path = this.system.getPath(t, e.copy(a.destination), this.group) || []),
- o.emit('navigation-start')
+ i.emit('navigation-start')
}
if (!this.path.length)
return (
console.warn('[nav] Unable to find path to %o.', a.destination),
this.el.setAttribute('nav-agent', { active: !1 }),
- void o.emit('navigation-end')
+ void i.emit('navigation-end')
)
- const l = o.object3D.position,
- c = this.path[0]
- t.subVectors(c, l)
+ const c = i.object3D.position,
+ l = this.path[0]
+ t.subVectors(l, c)
let d
if (t.length() < u) {
if ((this.path.shift(), !this.path.length))
return (
- this.el.setAttribute('nav-agent', { active: !1 }), void o.emit('navigation-end')
+ this.el.setAttribute('nav-agent', { active: !1 }), void i.emit('navigation-end')
)
- n.copy(l), (d = this.path[0])
- } else n.copy(t.setLength(u)).add(l), (d = c)
- ;(d.y = l.y),
- o.object3D.lookAt(d),
+ n.copy(c), (d = this.path[0])
+ } else n.copy(t.setLength(u)).add(c), (d = l)
+ ;(d.y = c.y),
+ i.object3D.lookAt(d),
s.ray.origin.copy(n),
(s.ray.origin.y += 1.5),
(s.ray.direction.y = -1)
const f = s.intersectObject(this.system.getNavMesh())
- f.length ? (t.subVectors(f[0].point, l), l.add(t.setLength(u))) : l.copy(n)
+ f.length ? (t.subVectors(f[0].point, c), c.add(t.setLength(u))) : c.copy(n)
}
})(),
})
},
- 8453: function (e) {
+ 38453: function (e) {
e.exports = AFRAME.registerComponent('nav-mesh', {
init: function () {
;(this.system = this.el.sceneEl.systems.nav),
@@ -15902,17 +26136,17 @@
},
})
},
- 1465: function (e, t, n) {
- const { Pathfinding: r } = n(6594),
- i = new r(),
- o = 'level'
+ 31465: function (e, t, n) {
+ const { Pathfinding: r } = n(56594),
+ o = new r(),
+ i = 'level'
e.exports = AFRAME.registerSystem('nav', {
init: function () {
;(this.navMesh = null), (this.agents = new Set())
},
setNavMeshGeometry: function (e) {
;(this.navMesh = new THREE.Mesh(e)),
- i.setZoneData(o, r.createZone(e)),
+ o.setZoneData(i, r.createZone(e)),
Array.from(this.agents).forEach((e) => e.updateNavLocation())
},
getNavMesh: function () {
@@ -15925,24 +26159,24 @@
this.agents.delete(e)
},
getPath: function (e, t, n) {
- return this.navMesh ? i.findPath(e, t, o, n) : null
+ return this.navMesh ? o.findPath(e, t, i, n) : null
},
getGroup: function (e) {
- return this.navMesh ? i.getGroup(o, e) : null
+ return this.navMesh ? o.getGroup(i, e) : null
},
getNode: function (e, t) {
- return this.navMesh ? i.getClosestNode(e, o, t, !0) : null
+ return this.navMesh ? o.getClosestNode(e, i, t, !0) : null
},
clampStep: function (e, t, n, r, a) {
return this.navMesh
? r
- ? i.clampStep(e, t, r, o, n, a)
+ ? o.clampStep(e, t, r, i, n, a)
: (a.copy(t), this.getNode(t, n))
: (a.copy(t), null)
},
})
},
- 386: function (e) {
+ 50386: function (e) {
e.exports = AFRAME.registerPrimitive('a-grid', {
defaultComponents: {
geometry: { primitive: 'plane', width: 75, height: 75 },
@@ -15955,9 +26189,9 @@
mappings: { width: 'geometry.width', height: 'geometry.height', src: 'material.src' },
})
},
- 3535: function (e, t, n) {
- const r = n(3471),
- i = n(2667)
+ 23535: function (e, t, n) {
+ const r = n(63471),
+ o = n(82667)
;(e.exports.Primitive = AFRAME.registerPrimitive('a-hexgrid', {
defaultComponents: { hexgrid: {} },
mappings: { src: 'hexgrid.src' },
@@ -15971,7 +26205,7 @@
? fetch(e.src)
.then((e) => e.json())
.then((e) => this.addMesh(e))
- : this.addMesh(i)
+ : this.addMesh(o)
},
addMesh: function (e) {
const t = new r.HexGrid()
@@ -15991,7 +26225,7 @@
},
}))
},
- 9307: function (e) {
+ 59307: function (e) {
;(e.exports.Primitive = AFRAME.registerPrimitive('a-ocean', {
defaultComponents: { ocean: {}, rotation: { x: -90, y: 0, z: 0 } },
mappings: {
@@ -16024,10 +26258,10 @@
let n = e.components.material
const r = new THREE.PlaneGeometry(t.width, t.depth, t.density, t.density)
r.mergeVertices(), (this.waves = [])
- for (let i, o = 0, a = r.vertices.length; o < a; o++)
- (i = r.vertices[o]),
+ for (let o, i = 0, a = r.vertices.length; i < a; i++)
+ (o = r.vertices[i]),
this.waves.push({
- z: i.z,
+ z: o.z,
ang: Math.random() * Math.PI * 2,
amp: t.amplitude + Math.random() * t.amplitudeVariance,
speed: (t.speed + Math.random() * t.speedVariance) / 1e3,
@@ -16049,13 +26283,13 @@
tick: function (e, t) {
if (!t) return
const n = this.mesh.geometry.vertices
- for (let r, i, o = 0; (r = n[o]); o++)
- (i = this.waves[o]), (r.z = i.z + Math.sin(i.ang) * i.amp), (i.ang += i.speed * t)
+ for (let r, o, i = 0; (r = n[i]); i++)
+ (o = this.waves[i]), (r.z = o.z + Math.sin(o.ang) * o.amp), (o.ang += o.speed * t)
this.mesh.geometry.verticesNeedUpdate = !0
},
}))
},
- 699: function (e) {
+ 50699: function (e) {
;(e.exports.Primitive = AFRAME.registerPrimitive('a-tube', {
defaultComponents: { tube: {} },
mappings: {
@@ -16087,9 +26321,9 @@
)
}),
),
- i = new THREE.TubeGeometry(r, t.segments, t.radius, t.radialSegments, t.closed)
+ o = new THREE.TubeGeometry(r, t.segments, t.radius, t.radialSegments, t.closed)
n || ((n = {}), (n.material = new THREE.MeshPhongMaterial())),
- (this.mesh = new THREE.Mesh(i, n.material)),
+ (this.mesh = new THREE.Mesh(o, n.material)),
this.el.setObject3D('mesh', this.mesh)
},
update: function (e) {
@@ -16100,17 +26334,17 @@
},
}))
},
- 8993: function (e, t, n) {
- n(386), n(3535), n(9307), n(699)
+ 36699: function (e, t, n) {
+ n(50386), n(23535), n(59307), n(50699)
},
- 1359: function (e, t, n) {
+ 31359: function (e, t, n) {
if ('undefined' === typeof AFRAME)
throw new Error('Component attempted to register before AFRAME was available.')
- let r = n(2539)
+ let r = n(92539)
'default' in r && (r = r.default)
- let i = n(1398)
- 'default' in i && (i = i.default)
- const o = function (e) {
+ let o = n(81398)
+ 'default' in o && (o = o.default)
+ const i = function (e) {
return 'string' === typeof e ? JSON.parse(e) : e
},
a = function (e) {
@@ -16127,8 +26361,8 @@
AFRAME.registerComponent('forcegraph', {
schema: {
jsonUrl: { type: 'string', default: '' },
- nodes: { parse: o, default: [] },
- links: { parse: o, default: [] },
+ nodes: { parse: i, default: [] },
+ links: { parse: i, default: [] },
numDimensions: { type: 'number', default: 3 },
dagMode: { type: 'string', default: '' },
dagLevelDistance: { type: 'number', default: 0 },
@@ -16175,7 +26409,7 @@
d3AlphaMin: { type: 'number', default: 0 },
d3AlphaDecay: { type: 'number', default: 0.0228 },
d3VelocityDecay: { type: 'number', default: 0.4 },
- ngraphPhysics: { parse: o, default: null },
+ ngraphPhysics: { parse: i, default: null },
warmupTicks: { type: 'int', default: 0 },
cooldownTicks: { type: 'int', default: 1e18 },
cooldownTime: { type: 'int', default: 15e3 },
@@ -16183,16 +26417,16 @@
onEngineStop: { parse: a, default: function () {} },
},
getGraphBbox: function () {
- return this.forceGraph || (this.forceGraph = new i()), this.forceGraph.getGraphBbox()
+ return this.forceGraph || (this.forceGraph = new o()), this.forceGraph.getGraphBbox()
},
emitParticle: function () {
- this.forceGraph || (this.forceGraph = new i())
+ this.forceGraph || (this.forceGraph = new o())
const e = this.forceGraph,
t = e.emitParticle.apply(e, arguments)
return t === e ? this : t
},
d3Force: function () {
- this.forceGraph || (this.forceGraph = new i())
+ this.forceGraph || (this.forceGraph = new o())
const e = this.forceGraph,
t = e.d3Force.apply(e, arguments)
return t === e ? this : t
@@ -16218,7 +26452,7 @@
this.el.sceneEl.addEventListener('camera-set-active', function (t) {
e.cameraObj = t.detail.cameraEl.components.camera.camera
}),
- this.forceGraph || (this.forceGraph = new i()),
+ this.forceGraph || (this.forceGraph = new o()),
this.forceGraph
.onFinishUpdate(() => this.el.setObject3D('forcegraphGroup', this.forceGraph))
.onLoading(() => e.infoEl.setAttribute('value', 'Loading...'))
@@ -16307,66 +26541,592 @@
tick: function (e, t) {
const n = this.state,
r = this.data,
- i = n.hoverDetail
+ o = n.hoverDetail
? n.hoverDetail.getIntersection
? n.hoverDetail.getIntersection(this.el)
: n.hoverDetail.intersection || void 0
: void 0
- let o = i ? i.object : void 0
- for (; o && !o.hasOwnProperty('__graphObjType'); ) o = o.parent
- if (o !== n.hoverObj) {
+ let i = o ? o.object : void 0
+ for (; i && !i.hasOwnProperty('__graphObjType'); ) i = i.parent
+ if (i !== n.hoverObj) {
const e = n.hoverObj ? n.hoverObj.__graphObjType : null,
t = n.hoverObj ? n.hoverObj.__data : null,
- i = o ? o.__graphObjType : null,
- a = o ? o.__data : null
- e && e !== i && r['on' + ('node' === e ? 'Node' : 'Link') + 'Hover'](null, t),
- i && r['on' + ('node' === i ? 'Node' : 'Link') + 'Hover'](a, e === i ? t : null),
- (n.hoverObj = o)
+ o = i ? i.__graphObjType : null,
+ a = i ? i.__data : null
+ e && e !== o && r['on' + ('node' === e ? 'Node' : 'Link') + 'Hover'](null, t),
+ o && r['on' + ('node' === o ? 'Node' : 'Link') + 'Hover'](a, e === o ? t : null),
+ (n.hoverObj = i)
}
this.forceGraph.tickFrame()
},
})
},
- 296: function (e) {
+ 45403: function (e, t, n) {
+ 'use strict'
+ function r(e) {
+ return e && 'object' == typeof e && 'default' in e ? e.default : e
+ }
+ var o = n(67294),
+ i = n(77380),
+ a = r(n(90233)),
+ s = r(n(37763)),
+ u = r(n(96705)),
+ c = n(88323),
+ l = n(11487),
+ d = n(46017),
+ f = n(87409),
+ h = n(71018),
+ p = n(81820)
+ function v() {
+ return (v =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }).apply(this, arguments)
+ }
+ function m(e, t) {
+ return a(e, t, { keys: ['value', 'label'] })
+ }
+ function g(e) {
+ return o.createElement(
+ l.Text,
+ null,
+ o.createElement(l.Box, { as: 'span' }, 'Create'),
+ ' ',
+ o.createElement(l.Box, { as: 'span', bg: 'yellow.300', fontWeight: 'bold' }, '"', e, '"'),
+ )
+ }
+ t.CUIAutoComplete = function (e) {
+ var t = e.items,
+ n = e.optionFilterFunc,
+ r = void 0 === n ? m : n,
+ a = e.itemRenderer,
+ y = e.highlightItemBg,
+ b = void 0 === y ? 'gray.100' : y,
+ w = e.placeholder,
+ _ = e.label,
+ x = e.listStyleProps,
+ k = e.labelStyleProps,
+ E = e.inputStyleProps,
+ O = e.toggleButtonStyleProps,
+ T = e.tagStyleProps,
+ C = e.selectedIconProps,
+ M = e.listItemStyleProps,
+ S = e.onCreateItem,
+ P = e.icon,
+ j = e.hideToggleButton,
+ I = void 0 !== j && j,
+ A = e.disableCreateItem,
+ R = void 0 !== A && A,
+ D = e.createItemRenderer,
+ L = void 0 === D ? g : D,
+ N = e.renderCustomInput,
+ z = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) t.indexOf((n = i[r])) >= 0 || (o[n] = e[n])
+ return o
+ })(e, [
+ 'items',
+ 'optionFilterFunc',
+ 'itemRenderer',
+ 'highlightItemBg',
+ 'placeholder',
+ 'label',
+ 'listStyleProps',
+ 'labelStyleProps',
+ 'inputStyleProps',
+ 'toggleButtonStyleProps',
+ 'tagStyleProps',
+ 'selectedIconProps',
+ 'listItemStyleProps',
+ 'onCreateItem',
+ 'icon',
+ 'hideToggleButton',
+ 'disableCreateItem',
+ 'createItemRenderer',
+ 'renderCustomInput',
+ ]),
+ B = o.useState(!1),
+ H = B[0],
+ F = B[1],
+ V = o.useState(''),
+ W = V[0],
+ U = V[1],
+ G = o.useState(t),
+ q = G[0],
+ K = G[1],
+ Z = o.useRef(null),
+ X = i.useMultipleSelection(z),
+ $ = X.getSelectedItemProps,
+ Y = X.getDropdownProps,
+ Q = X.addSelectedItem,
+ J = X.removeSelectedItem,
+ ee = X.selectedItems,
+ te = ee.map(function (e) {
+ return e.value
+ }),
+ ne = i.useCombobox({
+ inputValue: W,
+ selectedItem: void 0,
+ items: q,
+ onInputValueChange: function (e) {
+ var n = e.selectedItem,
+ o = r(t, e.inputValue || '')
+ H && o.length > 0 && F(!1), n || K(o)
+ },
+ stateReducer: function (e, t) {
+ var n = t.changes
+ switch (t.type) {
+ case i.useCombobox.stateChangeTypes.InputBlur:
+ return v({}, n, { isOpen: !1 })
+ case i.useCombobox.stateChangeTypes.InputKeyDownEnter:
+ case i.useCombobox.stateChangeTypes.ItemClick:
+ return v({}, n, {
+ highlightedIndex: e.highlightedIndex,
+ inputValue: W,
+ isOpen: !0,
+ })
+ case i.useCombobox.stateChangeTypes.FunctionSelectItem:
+ return v({}, n, { inputValue: W })
+ default:
+ return n
+ }
+ },
+ onStateChange: function (e) {
+ var n = e.inputValue,
+ r = e.selectedItem
+ switch (e.type) {
+ case i.useCombobox.stateChangeTypes.InputChange:
+ U(n || '')
+ break
+ case i.useCombobox.stateChangeTypes.InputKeyDownEnter:
+ case i.useCombobox.stateChangeTypes.ItemClick:
+ r &&
+ (te.includes(r.value) ? J(r) : S && H ? (S(r), F(!1), K(t), U('')) : Q(r),
+ fe(null))
+ }
+ },
+ }),
+ re = ne.isOpen,
+ oe = ne.getToggleButtonProps,
+ ie = ne.getLabelProps,
+ ae = ne.getMenuProps,
+ se = ne.getInputProps,
+ ue = ne.getComboboxProps,
+ ce = ne.highlightedIndex,
+ le = ne.getItemProps,
+ de = ne.openMenu,
+ fe = ne.selectItem,
+ he = ne.setHighlightedIndex
+ return (
+ o.useEffect(
+ function () {
+ 0 !== q.length || R || (F(!0), K([{ label: '' + W, value: W }]), he(0))
+ },
+ [q, F, he, W, R],
+ ),
+ u(
+ function () {
+ K(t)
+ },
+ [t],
+ ),
+ o.createElement(
+ l.Stack,
+ null,
+ o.createElement(c.FormLabel, Object.assign({}, v({}, ie({}), k)), _),
+ ee &&
+ o.createElement(
+ l.Stack,
+ { spacing: 2, isInline: !0, flexWrap: 'wrap' },
+ ee.map(function (e, t) {
+ return o.createElement(
+ p.Tag,
+ Object.assign(
+ { mb: 1 },
+ T,
+ { key: 'selected-item-' + t },
+ $({ selectedItem: e, index: t }),
+ ),
+ o.createElement(p.TagLabel, null, e.label),
+ o.createElement(p.TagCloseButton, {
+ onClick: function (t) {
+ t.stopPropagation(), J(e)
+ },
+ 'aria-label': 'Remove menu selection badge',
+ }),
+ )
+ }),
+ ),
+ o.createElement(
+ l.Stack,
+ Object.assign({ isInline: !0 }, ue()),
+ N
+ ? N(
+ v(
+ {},
+ E,
+ se(
+ Y({
+ placeholder: w,
+ onClick: re ? function () {} : de,
+ onFocus: re ? function () {} : de,
+ ref: Z,
+ }),
+ ),
+ ),
+ v({}, O, oe(), { ariaLabel: 'toggle menu', hideToggleButton: I }),
+ )
+ : o.createElement(
+ o.Fragment,
+ null,
+ o.createElement(
+ f.Input,
+ Object.assign(
+ {},
+ E,
+ se(
+ Y({
+ placeholder: w,
+ onClick: re ? function () {} : de,
+ onFocus: re ? function () {} : de,
+ ref: Z,
+ }),
+ ),
+ ),
+ ),
+ !I &&
+ o.createElement(
+ d.Button,
+ Object.assign({}, O, oe(), { 'aria-label': 'toggle menu' }),
+ o.createElement(h.ArrowDownIcon, null),
+ ),
+ ),
+ ),
+ o.createElement(
+ l.Box,
+ { pb: 4, mb: 4 },
+ o.createElement(
+ l.List,
+ Object.assign(
+ {
+ bg: 'white',
+ borderRadius: '4px',
+ border: re && '1px solid rgba(0,0,0,0.1)',
+ boxShadow: '6px 5px 8px rgba(0,50,30,0.02)',
+ },
+ x,
+ ae(),
+ ),
+ re &&
+ q.map(function (e, t) {
+ return o.createElement(
+ l.ListItem,
+ Object.assign(
+ { px: 2, py: 1, borderBottom: '1px solid rgba(0,0,0,0.01)' },
+ M,
+ { bg: ce === t ? b : 'inherit', key: '' + e.value + t },
+ le({ item: e, index: t }),
+ ),
+ H
+ ? L(e.label)
+ : o.createElement(
+ l.Box,
+ { display: 'inline-flex', alignItems: 'center' },
+ te.includes(e.value) &&
+ o.createElement(
+ l.ListIcon,
+ Object.assign(
+ {
+ as: P || h.CheckCircleIcon,
+ color: 'green.500',
+ role: 'img',
+ display: 'inline',
+ 'aria-label': 'Selected',
+ },
+ C,
+ ),
+ ),
+ a
+ ? a(e)
+ : o.createElement(s, {
+ autoEscape: !0,
+ searchWords: [W || ''],
+ textToHighlight: ((n = e), n.label),
+ }),
+ ),
+ )
+ var n
+ }),
+ ),
+ ),
+ )
+ )
+ }
+ },
+ 47647: function (e, t, n) {
+ 'use strict'
+ e.exports = n(45403)
+ },
+ 20640: function (e, t, n) {
+ 'use strict'
+ var r = n(11742),
+ o = { 'text/plain': 'Text', 'text/html': 'Url', default: 'Text' }
+ e.exports = function (e, t) {
+ var n,
+ i,
+ a,
+ s,
+ u,
+ c,
+ l = !1
+ t || (t = {}), (n = t.debug || !1)
+ try {
+ if (
+ ((a = r()),
+ (s = document.createRange()),
+ (u = document.getSelection()),
+ ((c = document.createElement('span')).textContent = e),
+ (c.style.all = 'unset'),
+ (c.style.position = 'fixed'),
+ (c.style.top = 0),
+ (c.style.clip = 'rect(0, 0, 0, 0)'),
+ (c.style.whiteSpace = 'pre'),
+ (c.style.webkitUserSelect = 'text'),
+ (c.style.MozUserSelect = 'text'),
+ (c.style.msUserSelect = 'text'),
+ (c.style.userSelect = 'text'),
+ c.addEventListener('copy', function (r) {
+ if ((r.stopPropagation(), t.format))
+ if ((r.preventDefault(), 'undefined' === typeof r.clipboardData)) {
+ n && console.warn('unable to use e.clipboardData'),
+ n && console.warn('trying IE specific stuff'),
+ window.clipboardData.clearData()
+ var i = o[t.format] || o.default
+ window.clipboardData.setData(i, e)
+ } else r.clipboardData.clearData(), r.clipboardData.setData(t.format, e)
+ t.onCopy && (r.preventDefault(), t.onCopy(r.clipboardData))
+ }),
+ document.body.appendChild(c),
+ s.selectNodeContents(c),
+ u.addRange(s),
+ !document.execCommand('copy'))
+ )
+ throw new Error('copy command was unsuccessful')
+ l = !0
+ } catch (d) {
+ n && console.error('unable to copy using execCommand: ', d),
+ n && console.warn('trying IE specific stuff')
+ try {
+ window.clipboardData.setData(t.format || 'text', e),
+ t.onCopy && t.onCopy(window.clipboardData),
+ (l = !0)
+ } catch (d) {
+ n && console.error('unable to copy using clipboardData: ', d),
+ n && console.error('falling back to prompt'),
+ (i = (function (e) {
+ var t = (/mac os x/i.test(navigator.userAgent) ? '\u2318' : 'Ctrl') + '+C'
+ return e.replace(/#{\s*key\s*}/g, t)
+ })('message' in t ? t.message : 'Copy to clipboard: #{key}, Enter')),
+ window.prompt(i, e)
+ }
+ } finally {
+ u && ('function' == typeof u.removeRange ? u.removeRange(s) : u.removeAllRanges()),
+ c && document.body.removeChild(c),
+ a()
+ }
+ return l
+ }
+ },
+ 78244: function (e, t, n) {
+ 'use strict'
+ n.r(t),
+ n.d(t, {
+ calculateBox: function () {
+ return h
+ },
+ createBox: function () {
+ return c
+ },
+ expand: function () {
+ return a
+ },
+ getBox: function () {
+ return p
+ },
+ getRect: function () {
+ return i
+ },
+ offset: function () {
+ return d
+ },
+ shrink: function () {
+ return s
+ },
+ withScroll: function () {
+ return f
+ },
+ })
+ var r = 'Invariant failed'
+ var o = function (e, t) {
+ if (!e) throw new Error(r)
+ },
+ i = function (e) {
+ var t = e.top,
+ n = e.right,
+ r = e.bottom,
+ o = e.left
+ return {
+ top: t,
+ right: n,
+ bottom: r,
+ left: o,
+ width: n - o,
+ height: r - t,
+ x: o,
+ y: t,
+ center: { x: (n + o) / 2, y: (r + t) / 2 },
+ }
+ },
+ a = function (e, t) {
+ return {
+ top: e.top - t.top,
+ left: e.left - t.left,
+ bottom: e.bottom + t.bottom,
+ right: e.right + t.right,
+ }
+ },
+ s = function (e, t) {
+ return {
+ top: e.top + t.top,
+ left: e.left + t.left,
+ bottom: e.bottom - t.bottom,
+ right: e.right - t.right,
+ }
+ },
+ u = { top: 0, right: 0, bottom: 0, left: 0 },
+ c = function (e) {
+ var t = e.borderBox,
+ n = e.margin,
+ r = void 0 === n ? u : n,
+ o = e.border,
+ c = void 0 === o ? u : o,
+ l = e.padding,
+ d = void 0 === l ? u : l,
+ f = i(a(t, r)),
+ h = i(s(t, c)),
+ p = i(s(h, d))
+ return {
+ marginBox: f,
+ borderBox: i(t),
+ paddingBox: h,
+ contentBox: p,
+ margin: r,
+ border: c,
+ padding: d,
+ }
+ },
+ l = function (e) {
+ var t = e.slice(0, -2)
+ if ('px' !== e.slice(-2)) return 0
+ var n = Number(t)
+ return isNaN(n) && o(!1), n
+ },
+ d = function (e, t) {
+ var n,
+ r,
+ o = e.borderBox,
+ i = e.border,
+ a = e.margin,
+ s = e.padding,
+ u =
+ ((r = t),
+ {
+ top: (n = o).top + r.y,
+ left: n.left + r.x,
+ bottom: n.bottom + r.y,
+ right: n.right + r.x,
+ })
+ return c({ borderBox: u, border: i, margin: a, padding: s })
+ },
+ f = function (e, t) {
+ return void 0 === t && (t = { x: window.pageXOffset, y: window.pageYOffset }), d(e, t)
+ },
+ h = function (e, t) {
+ var n = {
+ top: l(t.marginTop),
+ right: l(t.marginRight),
+ bottom: l(t.marginBottom),
+ left: l(t.marginLeft),
+ },
+ r = {
+ top: l(t.paddingTop),
+ right: l(t.paddingRight),
+ bottom: l(t.paddingBottom),
+ left: l(t.paddingLeft),
+ },
+ o = {
+ top: l(t.borderTopWidth),
+ right: l(t.borderRightWidth),
+ bottom: l(t.borderBottomWidth),
+ left: l(t.borderLeftWidth),
+ }
+ return c({ borderBox: e, margin: n, padding: r, border: o })
+ },
+ p = function (e) {
+ var t = e.getBoundingClientRect(),
+ n = window.getComputedStyle(e)
+ return h(t, n)
+ }
+ },
+ 20296: function (e) {
function t(e, t, n) {
- var r, i, o, a, s
+ var r, o, i, a, s
function u() {
- var l = Date.now() - a
- l < t && l >= 0
- ? (r = setTimeout(u, t - l))
- : ((r = null), n || ((s = e.apply(o, i)), (o = i = null)))
+ var c = Date.now() - a
+ c < t && c >= 0
+ ? (r = setTimeout(u, t - c))
+ : ((r = null), n || ((s = e.apply(i, o)), (i = o = null)))
}
null == t && (t = 100)
- var l = function () {
- ;(o = this), (i = arguments), (a = Date.now())
- var l = n && !r
- return r || (r = setTimeout(u, t)), l && ((s = e.apply(o, i)), (o = i = null)), s
+ var c = function () {
+ ;(i = this), (o = arguments), (a = Date.now())
+ var c = n && !r
+ return r || (r = setTimeout(u, t)), c && ((s = e.apply(i, o)), (i = o = null)), s
}
return (
- (l.clear = function () {
+ (c.clear = function () {
r && (clearTimeout(r), (r = null))
}),
- (l.flush = function () {
- r && ((s = e.apply(o, i)), (o = i = null), clearTimeout(r), (r = null))
+ (c.flush = function () {
+ r && ((s = e.apply(i, o)), (i = o = null), clearTimeout(r), (r = null))
}),
- l
+ c
)
}
;(t.debounce = t), (e.exports = t)
},
- 3879: function (e, t, n) {
- var r = n(7236),
- i = n(6189),
- o = { float: 'cssFloat' },
- a = n(3379)
+ 53879: function (e, t, n) {
+ var r = n(87236),
+ o = n(6189),
+ i = { float: 'cssFloat' },
+ a = n(93379)
function s(e, t, n) {
- var s = o[t]
+ var s = i[t]
if (
('undefined' === typeof s &&
(s = (function (e) {
- var t = i(e),
+ var t = o(e),
n = r(t)
- return (o[t] = o[e] = o[n] = n), n
+ return (i[t] = i[e] = i[n] = n), n
})(t)),
s)
) {
@@ -16377,15 +27137,15 @@
function u(e, t) {
for (var n in t) t.hasOwnProperty(n) && s(e, n, t[n])
}
- function l() {
+ function c() {
2 === arguments.length
? 'string' === typeof arguments[1]
? (arguments[0].style.cssText = arguments[1])
: u(arguments[0], arguments[1])
: s(arguments[0], arguments[1], arguments[2])
}
- ;(e.exports = l),
- (e.exports.set = l),
+ ;(e.exports = c),
+ (e.exports.set = c),
(e.exports.get = function (e, t) {
return Array.isArray(t)
? t.reduce(function (t, n) {
@@ -16394,33 +27154,2937 @@
: s(e, t || '')
})
},
- 3869: function (e, t, n) {
+ 77380: function (e, t, n) {
+ 'use strict'
+ function r(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ }
+ n.r(t),
+ n.d(t, {
+ default: function () {
+ return Se
+ },
+ resetIdCounter: function () {
+ return k
+ },
+ useCombobox: function () {
+ return be
+ },
+ useMultipleSelection: function () {
+ return Me
+ },
+ useSelect: function () {
+ return pe
+ },
+ })
+ var o = n(22122)
+ function i(e) {
+ if (void 0 === e)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
+ return e
+ }
+ function a(e, t) {
+ return (a =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e
+ })(e, t)
+ }
+ var s = n(45697),
+ u = n.n(s),
+ c = n(67294)
+ n(21726)
+ function l(e) {
+ return 'object' == typeof e && null != e && 1 === e.nodeType
+ }
+ function d(e, t) {
+ return (!t || 'hidden' !== e) && 'visible' !== e && 'clip' !== e
+ }
+ function f(e, t) {
+ if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
+ var n = getComputedStyle(e, null)
+ return (
+ d(n.overflowY, t) ||
+ d(n.overflowX, t) ||
+ (function (e) {
+ var t = (function (e) {
+ if (!e.ownerDocument || !e.ownerDocument.defaultView) return null
+ try {
+ return e.ownerDocument.defaultView.frameElement
+ } catch (e) {
+ return null
+ }
+ })(e)
+ return !!t && (t.clientHeight < e.scrollHeight || t.clientWidth < e.scrollWidth)
+ })(e)
+ )
+ }
+ return !1
+ }
+ function h(e, t, n, r, o, i, a, s) {
+ return (i < e && a > t) || (i > e && a < t)
+ ? 0
+ : (i <= e && s <= n) || (a >= t && s >= n)
+ ? i - e - r
+ : (a > t && s < n) || (i < e && s > n)
+ ? a - t + o
+ : 0
+ }
+ var p = 0
+ function v(e) {
+ return 'function' === typeof e ? e : m
+ }
+ function m() {}
+ function g(e, t) {
+ e &&
+ (function (e, t) {
+ var n = window,
+ r = t.scrollMode,
+ o = t.block,
+ i = t.inline,
+ a = t.boundary,
+ s = t.skipOverflowHiddenElements,
+ u =
+ 'function' == typeof a
+ ? a
+ : function (e) {
+ return e !== a
+ }
+ if (!l(e)) throw new TypeError('Invalid target')
+ for (
+ var c = document.scrollingElement || document.documentElement, d = [], p = e;
+ l(p) && u(p);
+
+ ) {
+ if ((p = p.parentElement) === c) {
+ d.push(p)
+ break
+ }
+ ;(null != p && p === document.body && f(p) && !f(document.documentElement)) ||
+ (null != p && f(p, s) && d.push(p))
+ }
+ for (
+ var v = n.visualViewport ? n.visualViewport.width : innerWidth,
+ m = n.visualViewport ? n.visualViewport.height : innerHeight,
+ g = window.scrollX || pageXOffset,
+ y = window.scrollY || pageYOffset,
+ b = e.getBoundingClientRect(),
+ w = b.height,
+ _ = b.width,
+ x = b.top,
+ k = b.right,
+ E = b.bottom,
+ O = b.left,
+ T = 'start' === o || 'nearest' === o ? x : 'end' === o ? E : x + w / 2,
+ C = 'center' === i ? O + _ / 2 : 'end' === i ? k : O,
+ M = [],
+ S = 0;
+ S < d.length;
+ S++
+ ) {
+ var P = d[S],
+ j = P.getBoundingClientRect(),
+ I = j.height,
+ A = j.width,
+ R = j.top,
+ D = j.right,
+ L = j.bottom,
+ N = j.left
+ if (
+ 'if-needed' === r &&
+ x >= 0 &&
+ O >= 0 &&
+ E <= m &&
+ k <= v &&
+ x >= R &&
+ E <= L &&
+ O >= N &&
+ k <= D
+ )
+ return M
+ var z = getComputedStyle(P),
+ B = parseInt(z.borderLeftWidth, 10),
+ H = parseInt(z.borderTopWidth, 10),
+ F = parseInt(z.borderRightWidth, 10),
+ V = parseInt(z.borderBottomWidth, 10),
+ W = 0,
+ U = 0,
+ G = 'offsetWidth' in P ? P.offsetWidth - P.clientWidth - B - F : 0,
+ q = 'offsetHeight' in P ? P.offsetHeight - P.clientHeight - H - V : 0
+ if (c === P)
+ (W =
+ 'start' === o
+ ? T
+ : 'end' === o
+ ? T - m
+ : 'nearest' === o
+ ? h(y, y + m, m, H, V, y + T, y + T + w, w)
+ : T - m / 2),
+ (U =
+ 'start' === i
+ ? C
+ : 'center' === i
+ ? C - v / 2
+ : 'end' === i
+ ? C - v
+ : h(g, g + v, v, B, F, g + C, g + C + _, _)),
+ (W = Math.max(0, W + y)),
+ (U = Math.max(0, U + g))
+ else {
+ ;(W =
+ 'start' === o
+ ? T - R - H
+ : 'end' === o
+ ? T - L + V + q
+ : 'nearest' === o
+ ? h(R, L, I, H, V + q, T, T + w, w)
+ : T - (R + I / 2) + q / 2),
+ (U =
+ 'start' === i
+ ? C - N - B
+ : 'center' === i
+ ? C - (N + A / 2) + G / 2
+ : 'end' === i
+ ? C - D + F + G
+ : h(N, D, A, B, F + G, C, C + _, _))
+ var K = P.scrollLeft,
+ Z = P.scrollTop
+ ;(T += Z - (W = Math.max(0, Math.min(Z + W, P.scrollHeight - I + q)))),
+ (C += K - (U = Math.max(0, Math.min(K + U, P.scrollWidth - A + G))))
+ }
+ M.push({ el: P, top: W, left: U })
+ }
+ return M
+ })(e, { boundary: t, block: 'nearest', scrollMode: 'if-needed' }).forEach(function (e) {
+ var t = e.el,
+ n = e.top,
+ r = e.left
+ ;(t.scrollTop = n), (t.scrollLeft = r)
+ })
+ }
+ function y(e, t, n) {
+ return e === t || (t instanceof n.Node && e.contains && e.contains(t))
+ }
+ function b(e, t) {
+ var n
+ function r() {
+ n && clearTimeout(n)
+ }
+ function o() {
+ for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++) i[a] = arguments[a]
+ r(),
+ (n = setTimeout(function () {
+ ;(n = null), e.apply(void 0, i)
+ }, t))
+ }
+ return (o.cancel = r), o
+ }
+ function w() {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return function (e) {
+ for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
+ r[o - 1] = arguments[o]
+ return t.some(function (t) {
+ return (
+ t && t.apply(void 0, [e].concat(r)),
+ e.preventDownshiftDefault ||
+ (e.hasOwnProperty('nativeEvent') && e.nativeEvent.preventDownshiftDefault)
+ )
+ })
+ }
+ }
+ function _() {
+ for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n]
+ return function (e) {
+ t.forEach(function (t) {
+ 'function' === typeof t ? t(e) : t && (t.current = e)
+ })
+ }
+ }
+ function x() {
+ return String(p++)
+ }
+ function k() {
+ p = 0
+ }
+ function E(e) {
+ var t = e.isOpen,
+ n = e.resultCount,
+ r = e.previousResultCount
+ return t
+ ? n
+ ? n !== r
+ ? n +
+ ' result' +
+ (1 === n ? ' is' : 's are') +
+ ' available, use up and down arrow keys to navigate. Press Enter key to select.'
+ : ''
+ : 'No results are available.'
+ : ''
+ }
+ function O(e, t) {
+ return !(e = Array.isArray(e) ? e[0] : e) && t ? t : e
+ }
+ function T(e) {
+ return 'string' === typeof e.type
+ }
+ function C(e) {
+ return e.props
+ }
+ var M = ['highlightedIndex', 'inputValue', 'isOpen', 'selectedItem', 'type']
+ function S(e) {
+ void 0 === e && (e = {})
+ var t = {}
+ return (
+ M.forEach(function (n) {
+ e.hasOwnProperty(n) && (t[n] = e[n])
+ }),
+ t
+ )
+ }
+ function P(e, t) {
+ return Object.keys(e).reduce(function (n, r) {
+ return (n[r] = j(t, r) ? t[r] : e[r]), n
+ }, {})
+ }
+ function j(e, t) {
+ return void 0 !== e[t]
+ }
+ function I(e) {
+ var t = e.key,
+ n = e.keyCode
+ return n >= 37 && n <= 40 && 0 !== t.indexOf('Arrow') ? 'Arrow' + t : t
+ }
+ function A(e, t, n, r, o) {
+ if ((void 0 === o && (o = !0), 0 === n)) return -1
+ var i = n - 1
+ ;('number' !== typeof t || t < 0 || t >= n) && (t = e > 0 ? -1 : i + 1)
+ var a = t + e
+ a < 0 ? (a = o ? i : 0) : a > i && (a = o ? 0 : i)
+ var s = R(e, a, n, r, o)
+ return -1 === s ? (t >= n ? -1 : t) : s
+ }
+ function R(e, t, n, r, o) {
+ var i = r(t)
+ if (!i || !i.hasAttribute('disabled')) return t
+ if (e > 0) {
+ for (var a = t + 1; a < n; a++) if (!r(a).hasAttribute('disabled')) return a
+ } else for (var s = t - 1; s >= 0; s--) if (!r(s).hasAttribute('disabled')) return s
+ return o ? (e > 0 ? R(1, 0, n, r, !1) : R(-1, n - 1, n, r, !1)) : -1
+ }
+ function D(e, t, n, r) {
+ return (
+ void 0 === r && (r = !0),
+ t.some(function (t) {
+ return t && (y(t, e, n) || (r && y(t, n.document.activeElement, n)))
+ })
+ )
+ }
+ var L = b(function (e) {
+ z(e).textContent = ''
+ }, 500)
+ function N(e, t) {
+ var n = z(t)
+ e && ((n.textContent = e), L(t))
+ }
+ function z(e) {
+ void 0 === e && (e = document)
+ var t = e.getElementById('a11y-status-message')
+ return (
+ t ||
+ ((t = e.createElement('div')).setAttribute('id', 'a11y-status-message'),
+ t.setAttribute('role', 'status'),
+ t.setAttribute('aria-live', 'polite'),
+ t.setAttribute('aria-relevant', 'additions text'),
+ Object.assign(t.style, {
+ border: '0',
+ clip: 'rect(0 0 0 0)',
+ height: '1px',
+ margin: '-1px',
+ overflow: 'hidden',
+ padding: '0',
+ position: 'absolute',
+ width: '1px',
+ }),
+ e.body.appendChild(t),
+ t)
+ )
+ }
+ var B = Object.freeze({
+ __proto__: null,
+ unknown: 0,
+ mouseUp: 1,
+ itemMouseEnter: 2,
+ keyDownArrowUp: 3,
+ keyDownArrowDown: 4,
+ keyDownEscape: 5,
+ keyDownEnter: 6,
+ keyDownHome: 7,
+ keyDownEnd: 8,
+ clickItem: 9,
+ blurInput: 10,
+ changeInput: 11,
+ keyDownSpaceButton: 12,
+ clickButton: 13,
+ blurButton: 14,
+ controlledPropUpdatedSelectedItem: 15,
+ touchEnd: 16,
+ }),
+ H = (function () {
+ var e = (function (e) {
+ var t, n
+ function s(t) {
+ var n
+ ;((n = e.call(this, t) || this).id = n.props.id || 'downshift-' + x()),
+ (n.menuId = n.props.menuId || n.id + '-menu'),
+ (n.labelId = n.props.labelId || n.id + '-label'),
+ (n.inputId = n.props.inputId || n.id + '-input'),
+ (n.getItemId =
+ n.props.getItemId ||
+ function (e) {
+ return n.id + '-item-' + e
+ }),
+ (n.input = null),
+ (n.items = []),
+ (n.itemCount = null),
+ (n.previousResultCount = 0),
+ (n.timeoutIds = []),
+ (n.internalSetTimeout = function (e, t) {
+ var r = setTimeout(function () {
+ ;(n.timeoutIds = n.timeoutIds.filter(function (e) {
+ return e !== r
+ })),
+ e()
+ }, t)
+ n.timeoutIds.push(r)
+ }),
+ (n.setItemCount = function (e) {
+ n.itemCount = e
+ }),
+ (n.unsetItemCount = function () {
+ n.itemCount = null
+ }),
+ (n.setHighlightedIndex = function (e, t) {
+ void 0 === e && (e = n.props.defaultHighlightedIndex),
+ void 0 === t && (t = {}),
+ (t = S(t)),
+ n.internalSetState((0, o.Z)({ highlightedIndex: e }, t))
+ }),
+ (n.clearSelection = function (e) {
+ n.internalSetState(
+ {
+ selectedItem: null,
+ inputValue: '',
+ highlightedIndex: n.props.defaultHighlightedIndex,
+ isOpen: n.props.defaultIsOpen,
+ },
+ e,
+ )
+ }),
+ (n.selectItem = function (e, t, r) {
+ ;(t = S(t)),
+ n.internalSetState(
+ (0, o.Z)(
+ {
+ isOpen: n.props.defaultIsOpen,
+ highlightedIndex: n.props.defaultHighlightedIndex,
+ selectedItem: e,
+ inputValue: n.props.itemToString(e),
+ },
+ t,
+ ),
+ r,
+ )
+ }),
+ (n.selectItemAtIndex = function (e, t, r) {
+ var o = n.items[e]
+ null != o && n.selectItem(o, t, r)
+ }),
+ (n.selectHighlightedItem = function (e, t) {
+ return n.selectItemAtIndex(n.getState().highlightedIndex, e, t)
+ }),
+ (n.internalSetState = function (e, t) {
+ var r,
+ i,
+ a = {},
+ s = 'function' === typeof e
+ return (
+ !s &&
+ e.hasOwnProperty('inputValue') &&
+ n.props.onInputValueChange(
+ e.inputValue,
+ (0, o.Z)({}, n.getStateAndHelpers(), e),
+ ),
+ n.setState(
+ function (t) {
+ t = n.getState(t)
+ var u = s ? e(t) : e
+ ;(u = n.props.stateReducer(t, u)), (r = u.hasOwnProperty('selectedItem'))
+ var c = {}
+ return (
+ r && u.selectedItem !== t.selectedItem && (i = u.selectedItem),
+ (u.type = u.type || 0),
+ Object.keys(u).forEach(function (e) {
+ t[e] !== u[e] && (a[e] = u[e]),
+ 'type' !== e && (u[e], j(n.props, e) || (c[e] = u[e]))
+ }),
+ s &&
+ u.hasOwnProperty('inputValue') &&
+ n.props.onInputValueChange(
+ u.inputValue,
+ (0, o.Z)({}, n.getStateAndHelpers(), u),
+ ),
+ c
+ )
+ },
+ function () {
+ v(t)(),
+ Object.keys(a).length > 1 &&
+ n.props.onStateChange(a, n.getStateAndHelpers()),
+ r && n.props.onSelect(e.selectedItem, n.getStateAndHelpers()),
+ void 0 !== i && n.props.onChange(i, n.getStateAndHelpers()),
+ n.props.onUserAction(a, n.getStateAndHelpers())
+ },
+ )
+ )
+ }),
+ (n.rootRef = function (e) {
+ return (n._rootNode = e)
+ }),
+ (n.getRootProps = function (e, t) {
+ var i,
+ a = void 0 === e ? {} : e,
+ s = a.refKey,
+ u = void 0 === s ? 'ref' : s,
+ c = a.ref,
+ l = r(a, ['refKey', 'ref']),
+ d = (void 0 === t ? {} : t).suppressRefError,
+ f = void 0 !== d && d
+ ;(n.getRootProps.called = !0),
+ (n.getRootProps.refKey = u),
+ (n.getRootProps.suppressRefError = f)
+ var h = n.getState().isOpen
+ return (0, o.Z)(
+ (((i = {})[u] = _(c, n.rootRef)),
+ (i.role = 'combobox'),
+ (i['aria-expanded'] = h),
+ (i['aria-haspopup'] = 'listbox'),
+ (i['aria-owns'] = h ? n.menuId : null),
+ (i['aria-labelledby'] = n.labelId),
+ i),
+ l,
+ )
+ }),
+ (n.keyDownHandlers = {
+ ArrowDown: function (e) {
+ var t = this
+ if ((e.preventDefault(), this.getState().isOpen)) {
+ var n = e.shiftKey ? 5 : 1
+ this.moveHighlightedIndex(n, { type: 4 })
+ } else
+ this.internalSetState({ isOpen: !0, type: 4 }, function () {
+ var e = t.getItemCount()
+ if (e > 0) {
+ var n = A(1, t.getState().highlightedIndex, e, function (e) {
+ return t.getItemNodeFromIndex(e)
+ })
+ t.setHighlightedIndex(n, { type: 4 })
+ }
+ })
+ },
+ ArrowUp: function (e) {
+ var t = this
+ if ((e.preventDefault(), this.getState().isOpen)) {
+ var n = e.shiftKey ? -5 : -1
+ this.moveHighlightedIndex(n, { type: 3 })
+ } else
+ this.internalSetState({ isOpen: !0, type: 3 }, function () {
+ var e = t.getItemCount()
+ if (e > 0) {
+ var n = A(-1, t.getState().highlightedIndex, e, function (e) {
+ return t.getItemNodeFromIndex(e)
+ })
+ t.setHighlightedIndex(n, { type: 3 })
+ }
+ })
+ },
+ Enter: function (e) {
+ if (229 !== e.which) {
+ var t = this.getState(),
+ n = t.isOpen,
+ r = t.highlightedIndex
+ if (n && null != r) {
+ e.preventDefault()
+ var o = this.items[r],
+ i = this.getItemNodeFromIndex(r)
+ if (null == o || (i && i.hasAttribute('disabled'))) return
+ this.selectHighlightedItem({ type: 6 })
+ }
+ }
+ },
+ Escape: function (e) {
+ e.preventDefault(),
+ this.reset(
+ (0, o.Z)(
+ { type: 5 },
+ !this.state.isOpen && { selectedItem: null, inputValue: '' },
+ ),
+ )
+ },
+ }),
+ (n.buttonKeyDownHandlers = (0, o.Z)({}, n.keyDownHandlers, {
+ ' ': function (e) {
+ e.preventDefault(), this.toggleMenu({ type: 12 })
+ },
+ })),
+ (n.inputKeyDownHandlers = (0, o.Z)({}, n.keyDownHandlers, {
+ Home: function (e) {
+ var t = this,
+ n = this.getState().isOpen
+ if (n) {
+ e.preventDefault()
+ var r = this.getItemCount()
+ if (!(r <= 0) && n) {
+ var o = R(
+ 1,
+ 0,
+ r,
+ function (e) {
+ return t.getItemNodeFromIndex(e)
+ },
+ !1,
+ )
+ this.setHighlightedIndex(o, { type: 7 })
+ }
+ }
+ },
+ End: function (e) {
+ var t = this,
+ n = this.getState().isOpen
+ if (n) {
+ e.preventDefault()
+ var r = this.getItemCount()
+ if (!(r <= 0) && n) {
+ var o = R(
+ -1,
+ r - 1,
+ r,
+ function (e) {
+ return t.getItemNodeFromIndex(e)
+ },
+ !1,
+ )
+ this.setHighlightedIndex(o, { type: 8 })
+ }
+ }
+ },
+ })),
+ (n.getToggleButtonProps = function (e) {
+ var t = void 0 === e ? {} : e,
+ i = t.onClick
+ t.onPress
+ var a = t.onKeyDown,
+ s = t.onKeyUp,
+ u = t.onBlur,
+ c = r(t, ['onClick', 'onPress', 'onKeyDown', 'onKeyUp', 'onBlur']),
+ l = n.getState().isOpen,
+ d = {
+ onClick: w(i, n.buttonHandleClick),
+ onKeyDown: w(a, n.buttonHandleKeyDown),
+ onKeyUp: w(s, n.buttonHandleKeyUp),
+ onBlur: w(u, n.buttonHandleBlur),
+ },
+ f = c.disabled ? {} : d
+ return (0, o.Z)(
+ {
+ type: 'button',
+ role: 'button',
+ 'aria-label': l ? 'close menu' : 'open menu',
+ 'aria-haspopup': !0,
+ 'data-toggle': !0,
+ },
+ f,
+ c,
+ )
+ }),
+ (n.buttonHandleKeyUp = function (e) {
+ e.preventDefault()
+ }),
+ (n.buttonHandleKeyDown = function (e) {
+ var t = I(e)
+ n.buttonKeyDownHandlers[t] && n.buttonKeyDownHandlers[t].call(i(n), e)
+ }),
+ (n.buttonHandleClick = function (e) {
+ e.preventDefault(),
+ n.props.environment.document.activeElement ===
+ n.props.environment.document.body && e.target.focus(),
+ n.internalSetTimeout(function () {
+ return n.toggleMenu({ type: 13 })
+ })
+ }),
+ (n.buttonHandleBlur = function (e) {
+ var t = e.target
+ n.internalSetTimeout(function () {
+ n.isMouseDown ||
+ (null != n.props.environment.document.activeElement &&
+ n.props.environment.document.activeElement.id === n.inputId) ||
+ n.props.environment.document.activeElement === t ||
+ n.reset({ type: 14 })
+ })
+ }),
+ (n.getLabelProps = function (e) {
+ return (0, o.Z)({ htmlFor: n.inputId, id: n.labelId }, e)
+ }),
+ (n.getInputProps = function (e) {
+ var t = void 0 === e ? {} : e,
+ i = t.onKeyDown,
+ a = t.onBlur,
+ s = t.onChange,
+ u = t.onInput
+ t.onChangeText
+ var c = r(t, ['onKeyDown', 'onBlur', 'onChange', 'onInput', 'onChangeText']),
+ l = {}
+ var d,
+ f = n.getState(),
+ h = f.inputValue,
+ p = f.isOpen,
+ v = f.highlightedIndex
+ c.disabled ||
+ (((d = {}).onChange = w(s, u, n.inputHandleChange)),
+ (d.onKeyDown = w(i, n.inputHandleKeyDown)),
+ (d.onBlur = w(a, n.inputHandleBlur)),
+ (l = d))
+ return (0, o.Z)(
+ {
+ 'aria-autocomplete': 'list',
+ 'aria-activedescendant':
+ p && 'number' === typeof v && v >= 0 ? n.getItemId(v) : null,
+ 'aria-controls': p ? n.menuId : null,
+ 'aria-labelledby': n.labelId,
+ autoComplete: 'off',
+ value: h,
+ id: n.inputId,
+ },
+ l,
+ c,
+ )
+ }),
+ (n.inputHandleKeyDown = function (e) {
+ var t = I(e)
+ t && n.inputKeyDownHandlers[t] && n.inputKeyDownHandlers[t].call(i(n), e)
+ }),
+ (n.inputHandleChange = function (e) {
+ n.internalSetState({
+ type: 11,
+ isOpen: !0,
+ inputValue: e.target.value,
+ highlightedIndex: n.props.defaultHighlightedIndex,
+ })
+ }),
+ (n.inputHandleBlur = function () {
+ n.internalSetTimeout(function () {
+ var e =
+ n.props.environment.document &&
+ !!n.props.environment.document.activeElement &&
+ !!n.props.environment.document.activeElement.dataset &&
+ n.props.environment.document.activeElement.dataset.toggle &&
+ n._rootNode &&
+ n._rootNode.contains(n.props.environment.document.activeElement)
+ n.isMouseDown || e || n.reset({ type: 10 })
+ })
+ }),
+ (n.menuRef = function (e) {
+ n._menuNode = e
+ }),
+ (n.getMenuProps = function (e, t) {
+ var i,
+ a = void 0 === e ? {} : e,
+ s = a.refKey,
+ u = void 0 === s ? 'ref' : s,
+ c = a.ref,
+ l = r(a, ['refKey', 'ref']),
+ d = (void 0 === t ? {} : t).suppressRefError,
+ f = void 0 !== d && d
+ return (
+ (n.getMenuProps.called = !0),
+ (n.getMenuProps.refKey = u),
+ (n.getMenuProps.suppressRefError = f),
+ (0, o.Z)(
+ (((i = {})[u] = _(c, n.menuRef)),
+ (i.role = 'listbox'),
+ (i['aria-labelledby'] = l && l['aria-label'] ? null : n.labelId),
+ (i.id = n.menuId),
+ i),
+ l,
+ )
+ )
+ }),
+ (n.getItemProps = function (e) {
+ var t,
+ i = void 0 === e ? {} : e,
+ a = i.onMouseMove,
+ s = i.onMouseDown,
+ u = i.onClick
+ i.onPress
+ var c = i.index,
+ l = i.item,
+ d = void 0 === l ? void 0 : l,
+ f = r(i, ['onMouseMove', 'onMouseDown', 'onClick', 'onPress', 'index', 'item'])
+ void 0 === c ? (n.items.push(d), (c = n.items.indexOf(d))) : (n.items[c] = d)
+ var h = u,
+ p =
+ (((t = {
+ onMouseMove: w(a, function () {
+ c !== n.getState().highlightedIndex &&
+ (n.setHighlightedIndex(c, { type: 2 }),
+ (n.avoidScrolling = !0),
+ n.internalSetTimeout(function () {
+ return (n.avoidScrolling = !1)
+ }, 250))
+ }),
+ onMouseDown: w(s, function (e) {
+ e.preventDefault()
+ }),
+ }).onClick = w(h, function () {
+ n.selectItemAtIndex(c, { type: 9 })
+ })),
+ t),
+ v = f.disabled ? { onMouseDown: p.onMouseDown } : p
+ return (0, o.Z)(
+ {
+ id: n.getItemId(c),
+ role: 'option',
+ 'aria-selected': n.getState().highlightedIndex === c,
+ },
+ v,
+ f,
+ )
+ }),
+ (n.clearItems = function () {
+ n.items = []
+ }),
+ (n.reset = function (e, t) {
+ void 0 === e && (e = {}),
+ (e = S(e)),
+ n.internalSetState(function (t) {
+ var r = t.selectedItem
+ return (0,
+ o.Z)({ isOpen: n.props.defaultIsOpen, highlightedIndex: n.props.defaultHighlightedIndex, inputValue: n.props.itemToString(r) }, e)
+ }, t)
+ }),
+ (n.toggleMenu = function (e, t) {
+ void 0 === e && (e = {}),
+ (e = S(e)),
+ n.internalSetState(
+ function (t) {
+ var r = t.isOpen
+ return (0, o.Z)(
+ { isOpen: !r },
+ r && { highlightedIndex: n.props.defaultHighlightedIndex },
+ e,
+ )
+ },
+ function () {
+ var r = n.getState(),
+ o = r.isOpen,
+ i = r.highlightedIndex
+ o &&
+ n.getItemCount() > 0 &&
+ 'number' === typeof i &&
+ n.setHighlightedIndex(i, e),
+ v(t)()
+ },
+ )
+ }),
+ (n.openMenu = function (e) {
+ n.internalSetState({ isOpen: !0 }, e)
+ }),
+ (n.closeMenu = function (e) {
+ n.internalSetState({ isOpen: !1 }, e)
+ }),
+ (n.updateStatus = b(function () {
+ var e = n.getState(),
+ t = n.items[e.highlightedIndex],
+ r = n.getItemCount(),
+ i = n.props.getA11yStatusMessage(
+ (0, o.Z)(
+ {
+ itemToString: n.props.itemToString,
+ previousResultCount: n.previousResultCount,
+ resultCount: r,
+ highlightedItem: t,
+ },
+ e,
+ ),
+ )
+ ;(n.previousResultCount = r), N(i, n.props.environment.document)
+ }, 200))
+ var a = n.props,
+ s = a.defaultHighlightedIndex,
+ u = a.initialHighlightedIndex,
+ c = void 0 === u ? s : u,
+ l = a.defaultIsOpen,
+ d = a.initialIsOpen,
+ f = void 0 === d ? l : d,
+ h = a.initialInputValue,
+ p = void 0 === h ? '' : h,
+ m = a.initialSelectedItem,
+ g = void 0 === m ? null : m,
+ y = n.getState({ highlightedIndex: c, isOpen: f, inputValue: p, selectedItem: g })
+ return (
+ null != y.selectedItem &&
+ void 0 === n.props.initialInputValue &&
+ (y.inputValue = n.props.itemToString(y.selectedItem)),
+ (n.state = y),
+ n
+ )
+ }
+ ;(n = e),
+ ((t = s).prototype = Object.create(n.prototype)),
+ (t.prototype.constructor = t),
+ a(t, n)
+ var u = s.prototype
+ return (
+ (u.internalClearTimeouts = function () {
+ this.timeoutIds.forEach(function (e) {
+ clearTimeout(e)
+ }),
+ (this.timeoutIds = [])
+ }),
+ (u.getState = function (e) {
+ return void 0 === e && (e = this.state), P(e, this.props)
+ }),
+ (u.getItemCount = function () {
+ var e = this.items.length
+ return (
+ null != this.itemCount
+ ? (e = this.itemCount)
+ : void 0 !== this.props.itemCount && (e = this.props.itemCount),
+ e
+ )
+ }),
+ (u.getItemNodeFromIndex = function (e) {
+ return this.props.environment.document.getElementById(this.getItemId(e))
+ }),
+ (u.scrollHighlightedItemIntoView = function () {
+ var e = this.getItemNodeFromIndex(this.getState().highlightedIndex)
+ this.props.scrollIntoView(e, this._menuNode)
+ }),
+ (u.moveHighlightedIndex = function (e, t) {
+ var n = this,
+ r = this.getItemCount(),
+ o = this.getState().highlightedIndex
+ if (r > 0) {
+ var i = A(e, o, r, function (e) {
+ return n.getItemNodeFromIndex(e)
+ })
+ this.setHighlightedIndex(i, t)
+ }
+ }),
+ (u.getStateAndHelpers = function () {
+ var e = this.getState(),
+ t = e.highlightedIndex,
+ n = e.inputValue,
+ r = e.selectedItem,
+ o = e.isOpen,
+ i = this.props.itemToString,
+ a = this.id,
+ s = this.getRootProps,
+ u = this.getToggleButtonProps,
+ c = this.getLabelProps,
+ l = this.getMenuProps,
+ d = this.getInputProps,
+ f = this.getItemProps,
+ h = this.openMenu,
+ p = this.closeMenu,
+ v = this.toggleMenu,
+ m = this.selectItem,
+ g = this.selectItemAtIndex,
+ y = this.selectHighlightedItem,
+ b = this.setHighlightedIndex,
+ w = this.clearSelection,
+ _ = this.clearItems
+ return {
+ getRootProps: s,
+ getToggleButtonProps: u,
+ getLabelProps: c,
+ getMenuProps: l,
+ getInputProps: d,
+ getItemProps: f,
+ reset: this.reset,
+ openMenu: h,
+ closeMenu: p,
+ toggleMenu: v,
+ selectItem: m,
+ selectItemAtIndex: g,
+ selectHighlightedItem: y,
+ setHighlightedIndex: b,
+ clearSelection: w,
+ clearItems: _,
+ setItemCount: this.setItemCount,
+ unsetItemCount: this.unsetItemCount,
+ setState: this.internalSetState,
+ itemToString: i,
+ id: a,
+ highlightedIndex: t,
+ inputValue: n,
+ isOpen: o,
+ selectedItem: r,
+ }
+ }),
+ (u.componentDidMount = function () {
+ var e = this
+ var t = function () {
+ e.isMouseDown = !0
+ },
+ n = function (t) {
+ ;(e.isMouseDown = !1),
+ !D(t.target, [e._rootNode, e._menuNode], e.props.environment) &&
+ e.getState().isOpen &&
+ e.reset({ type: 1 }, function () {
+ return e.props.onOuterClick(e.getStateAndHelpers())
+ })
+ },
+ r = function () {
+ e.isTouchMove = !1
+ },
+ o = function () {
+ e.isTouchMove = !0
+ },
+ i = function (t) {
+ var n = D(t.target, [e._rootNode, e._menuNode], e.props.environment, !1)
+ e.isTouchMove ||
+ n ||
+ !e.getState().isOpen ||
+ e.reset({ type: 16 }, function () {
+ return e.props.onOuterClick(e.getStateAndHelpers())
+ })
+ },
+ a = this.props.environment
+ a.addEventListener('mousedown', t),
+ a.addEventListener('mouseup', n),
+ a.addEventListener('touchstart', r),
+ a.addEventListener('touchmove', o),
+ a.addEventListener('touchend', i),
+ (this.cleanup = function () {
+ e.internalClearTimeouts(),
+ e.updateStatus.cancel(),
+ a.removeEventListener('mousedown', t),
+ a.removeEventListener('mouseup', n),
+ a.removeEventListener('touchstart', r),
+ a.removeEventListener('touchmove', o),
+ a.removeEventListener('touchend', i)
+ })
+ }),
+ (u.shouldScroll = function (e, t) {
+ var n = (void 0 === this.props.highlightedIndex ? this.getState() : this.props)
+ .highlightedIndex,
+ r = (void 0 === t.highlightedIndex ? e : t).highlightedIndex
+ return (n && this.getState().isOpen && !e.isOpen) || n !== r
+ }),
+ (u.componentDidUpdate = function (e, t) {
+ j(this.props, 'selectedItem') &&
+ this.props.selectedItemChanged(e.selectedItem, this.props.selectedItem) &&
+ this.internalSetState({
+ type: 15,
+ inputValue: this.props.itemToString(this.props.selectedItem),
+ }),
+ !this.avoidScrolling &&
+ this.shouldScroll(t, e) &&
+ this.scrollHighlightedItemIntoView(),
+ this.updateStatus()
+ }),
+ (u.componentWillUnmount = function () {
+ this.cleanup()
+ }),
+ (u.render = function () {
+ var e = O(this.props.children, m)
+ this.clearItems(),
+ (this.getRootProps.called = !1),
+ (this.getRootProps.refKey = void 0),
+ (this.getRootProps.suppressRefError = void 0),
+ (this.getMenuProps.called = !1),
+ (this.getMenuProps.refKey = void 0),
+ (this.getMenuProps.suppressRefError = void 0),
+ (this.getLabelProps.called = !1),
+ (this.getInputProps.called = !1)
+ var t = O(e(this.getStateAndHelpers()))
+ return t
+ ? this.getRootProps.called || this.props.suppressRefError
+ ? t
+ : T(t)
+ ? (0, c.cloneElement)(t, this.getRootProps(C(t)))
+ : void 0
+ : null
+ }),
+ s
+ )
+ })(c.Component)
+ return (
+ (e.defaultProps = {
+ defaultHighlightedIndex: null,
+ defaultIsOpen: !1,
+ getA11yStatusMessage: E,
+ itemToString: function (e) {
+ return null == e ? '' : String(e)
+ },
+ onStateChange: m,
+ onInputValueChange: m,
+ onUserAction: m,
+ onChange: m,
+ onSelect: m,
+ onOuterClick: m,
+ selectedItemChanged: function (e, t) {
+ return e !== t
+ },
+ environment: 'undefined' === typeof window ? {} : window,
+ stateReducer: function (e, t) {
+ return t
+ },
+ suppressRefError: !1,
+ scrollIntoView: g,
+ }),
+ (e.stateChangeTypes = B),
+ e
+ )
+ })()
+ var F = { highlightedIndex: -1, isOpen: !1, selectedItem: null, inputValue: '' }
+ function V(e, t, n) {
+ var r = e.props,
+ i = e.type,
+ a = {}
+ Object.keys(t).forEach(function (r) {
+ !(function (e, t, n, r) {
+ var i = t.props,
+ a = t.type,
+ s = 'on' + Z(e) + 'Change'
+ i[s] && void 0 !== r[e] && r[e] !== n[e] && i[s]((0, o.Z)({ type: a }, r))
+ })(r, e, t, n),
+ n[r] !== t[r] && (a[r] = n[r])
+ }),
+ r.onStateChange && Object.keys(a).length && r.onStateChange((0, o.Z)({ type: i }, a))
+ }
+ var W = b(function (e, t) {
+ N(e(), t)
+ }, 200),
+ U =
+ 'undefined' !== typeof window &&
+ 'undefined' !== typeof window.document &&
+ 'undefined' !== typeof window.document.createElement
+ ? c.useLayoutEffect
+ : c.useEffect
+ function G(e) {
+ var t = e.id,
+ n = void 0 === t ? 'downshift-' + x() : t,
+ r = e.labelId,
+ o = e.menuId,
+ i = e.getItemId,
+ a = e.toggleButtonId,
+ s = e.inputId
+ return (0, c.useRef)({
+ labelId: r || n + '-label',
+ menuId: o || n + '-menu',
+ getItemId:
+ i ||
+ function (e) {
+ return n + '-item-' + e
+ },
+ toggleButtonId: a || n + '-toggle-button',
+ inputId: s || n + '-input',
+ }).current
+ }
+ function q(e, t, n) {
+ return void 0 !== e ? e : 0 === n.length ? -1 : n.indexOf(t)
+ }
+ function K(e) {
+ return /^\S{1}$/.test(e)
+ }
+ function Z(e) {
+ return '' + e.slice(0, 1).toUpperCase() + e.slice(1)
+ }
+ function X(e) {
+ var t = (0, c.useRef)(e)
+ return (t.current = e), t
+ }
+ function $(e, t, n) {
+ var r = (0, c.useRef)(),
+ i = (0, c.useRef)(),
+ a = (0, c.useCallback)(
+ function (t, n) {
+ ;(i.current = n), (t = P(t, n.props))
+ var r = e(t, n)
+ return n.props.stateReducer(t, (0, o.Z)({}, n, { changes: r }))
+ },
+ [e],
+ ),
+ s = (0, c.useReducer)(a, t),
+ u = s[0],
+ l = s[1],
+ d = X(n),
+ f = (0, c.useCallback)(
+ function (e) {
+ return l((0, o.Z)({ props: d.current }, e))
+ },
+ [d],
+ ),
+ h = i.current
+ return (
+ (0, c.useEffect)(
+ function () {
+ h && r.current && r.current !== u && V(h, P(r.current, h.props), u), (r.current = u)
+ },
+ [u, n, h],
+ ),
+ [u, f]
+ )
+ }
+ function Y(e, t, n) {
+ var r = $(e, t, n),
+ o = r[0],
+ i = r[1]
+ return [P(o, n), i]
+ }
+ var Q = {
+ itemToString: function (e) {
+ return e ? String(e) : ''
+ },
+ stateReducer: function (e, t) {
+ return t.changes
+ },
+ getA11ySelectionMessage: function (e) {
+ var t = e.selectedItem,
+ n = e.itemToString
+ return t ? n(t) + ' has been selected.' : ''
+ },
+ scrollIntoView: g,
+ circularNavigation: !1,
+ environment: 'undefined' === typeof window ? {} : window,
+ }
+ function J(e, t, n) {
+ void 0 === n && (n = F)
+ var r = 'default' + Z(t)
+ return r in e ? e[r] : n[t]
+ }
+ function ee(e, t, n) {
+ if ((void 0 === n && (n = F), t in e)) return e[t]
+ var r = 'initial' + Z(t)
+ return r in e ? e[r] : J(e, t, n)
+ }
+ function te(e) {
+ var t = ee(e, 'selectedItem'),
+ n = ee(e, 'isOpen'),
+ r = ee(e, 'highlightedIndex'),
+ o = ee(e, 'inputValue')
+ return {
+ highlightedIndex: r < 0 && t && n ? e.items.indexOf(t) : r,
+ isOpen: n,
+ selectedItem: t,
+ inputValue: o,
+ }
+ }
+ function ne(e, t, n, r) {
+ var o = e.items,
+ i = e.initialHighlightedIndex,
+ a = e.defaultHighlightedIndex,
+ s = t.selectedItem,
+ u = t.highlightedIndex
+ return 0 === o.length
+ ? -1
+ : void 0 !== i && u === i
+ ? i
+ : void 0 !== a
+ ? a
+ : s
+ ? 0 === n
+ ? o.indexOf(s)
+ : A(n, o.indexOf(s), o.length, r, !1)
+ : 0 === n
+ ? -1
+ : n < 0
+ ? o.length - 1
+ : 0
+ }
+ function re(e, t, n, r) {
+ var o = (0, c.useRef)({ isMouseDown: !1, isTouchMove: !1 })
+ return (
+ (0, c.useEffect)(
+ function () {
+ var i = function () {
+ o.current.isMouseDown = !0
+ },
+ a = function (i) {
+ ;(o.current.isMouseDown = !1),
+ e &&
+ !D(
+ i.target,
+ t.map(function (e) {
+ return e.current
+ }),
+ n,
+ ) &&
+ r()
+ },
+ s = function () {
+ o.current.isTouchMove = !1
+ },
+ u = function () {
+ o.current.isTouchMove = !0
+ },
+ c = function (i) {
+ !e ||
+ o.current.isTouchMove ||
+ D(
+ i.target,
+ t.map(function (e) {
+ return e.current
+ }),
+ n,
+ !1,
+ ) ||
+ r()
+ }
+ return (
+ n.addEventListener('mousedown', i),
+ n.addEventListener('mouseup', a),
+ n.addEventListener('touchstart', s),
+ n.addEventListener('touchmove', u),
+ n.addEventListener('touchend', c),
+ function () {
+ n.removeEventListener('mousedown', i),
+ n.removeEventListener('mouseup', a),
+ n.removeEventListener('touchstart', s),
+ n.removeEventListener('touchmove', u),
+ n.removeEventListener('touchend', c)
+ }
+ )
+ },
+ [e, n],
+ ),
+ o
+ )
+ }
+ var oe = function () {
+ return m
+ }
+ function ie(e, t, n) {
+ var i = n.isInitialMount,
+ a = n.highlightedIndex,
+ s = n.items,
+ u = n.environment,
+ l = r(n, ['isInitialMount', 'highlightedIndex', 'items', 'environment'])
+ ;(0, c.useEffect)(function () {
+ i ||
+ W(function () {
+ return e(
+ (0, o.Z)({ highlightedIndex: a, highlightedItem: s[a], resultCount: s.length }, l),
+ )
+ }, u.document)
+ }, t)
+ }
+ function ae(e) {
+ var t = e.highlightedIndex,
+ n = e.isOpen,
+ r = e.itemRefs,
+ o = e.getItemNodeFromIndex,
+ i = e.menuElement,
+ a = e.scrollIntoView,
+ s = (0, c.useRef)(!0)
+ return (
+ U(
+ function () {
+ t < 0 ||
+ !n ||
+ !Object.keys(r.current).length ||
+ (!1 === s.current ? (s.current = !0) : a(o(t), i))
+ },
+ [t],
+ ),
+ s
+ )
+ }
+ var se = m
+ function ue(e, t, n) {
+ var r,
+ i = t.type,
+ a = t.props
+ switch (i) {
+ case n.ItemMouseMove:
+ r = { highlightedIndex: t.index }
+ break
+ case n.MenuMouseLeave:
+ r = { highlightedIndex: -1 }
+ break
+ case n.ToggleButtonClick:
+ case n.FunctionToggleMenu:
+ r = { isOpen: !e.isOpen, highlightedIndex: e.isOpen ? -1 : ne(a, e, 0) }
+ break
+ case n.FunctionOpenMenu:
+ r = { isOpen: !0, highlightedIndex: ne(a, e, 0) }
+ break
+ case n.FunctionCloseMenu:
+ r = { isOpen: !1 }
+ break
+ case n.FunctionSetHighlightedIndex:
+ r = { highlightedIndex: t.highlightedIndex }
+ break
+ case n.FunctionSetInputValue:
+ r = { inputValue: t.inputValue }
+ break
+ case n.FunctionReset:
+ r = {
+ highlightedIndex: J(a, 'highlightedIndex'),
+ isOpen: J(a, 'isOpen'),
+ selectedItem: J(a, 'selectedItem'),
+ inputValue: J(a, 'inputValue'),
+ }
+ break
+ default:
+ throw new Error('Reducer called without proper action type.')
+ }
+ return (0, o.Z)({}, e, r)
+ }
+ function ce(e, t, n, r, o) {
+ for (var i = e.toLowerCase(), a = 0; a < n.length; a++) {
+ var s = (a + t + 1) % n.length
+ if (r(n[s]).toLowerCase().startsWith(i)) {
+ var u = o(s)
+ if (!u || !u.hasAttribute('disabled')) return s
+ }
+ }
+ return t
+ }
+ u().array.isRequired,
+ u().func,
+ u().func,
+ u().func,
+ u().bool,
+ u().number,
+ u().number,
+ u().number,
+ u().bool,
+ u().bool,
+ u().bool,
+ u().any,
+ u().any,
+ u().any,
+ u().string,
+ u().string,
+ u().string,
+ u().func,
+ u().string,
+ u().func,
+ u().func,
+ u().func,
+ u().func,
+ u().func,
+ u().shape({
+ addEventListener: u().func,
+ removeEventListener: u().func,
+ document: u().shape({ getElementById: u().func, activeElement: u().any, body: u().any }),
+ })
+ var le = (0, o.Z)({}, Q, {
+ getA11yStatusMessage: function (e) {
+ var t = e.isOpen,
+ n = e.resultCount,
+ r = e.previousResultCount
+ return t
+ ? n
+ ? n !== r
+ ? n +
+ ' result' +
+ (1 === n ? ' is' : 's are') +
+ ' available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.'
+ : ''
+ : 'No results are available.'
+ : ''
+ },
+ }),
+ de = m
+ var fe = Object.freeze({
+ __proto__: null,
+ MenuKeyDownArrowDown: 0,
+ MenuKeyDownArrowUp: 1,
+ MenuKeyDownEscape: 2,
+ MenuKeyDownHome: 3,
+ MenuKeyDownEnd: 4,
+ MenuKeyDownEnter: 5,
+ MenuKeyDownSpaceButton: 6,
+ MenuKeyDownCharacter: 7,
+ MenuBlur: 8,
+ MenuMouseLeave: 9,
+ ItemMouseMove: 10,
+ ItemClick: 11,
+ ToggleButtonClick: 12,
+ ToggleButtonKeyDownArrowDown: 13,
+ ToggleButtonKeyDownArrowUp: 14,
+ ToggleButtonKeyDownCharacter: 15,
+ FunctionToggleMenu: 16,
+ FunctionOpenMenu: 17,
+ FunctionCloseMenu: 18,
+ FunctionSetHighlightedIndex: 19,
+ FunctionSelectItem: 20,
+ FunctionSetInputValue: 21,
+ FunctionReset: 22,
+ })
+ function he(e, t) {
+ var n,
+ r = t.type,
+ i = t.props,
+ a = t.shiftKey
+ switch (r) {
+ case 11:
+ n = {
+ isOpen: J(i, 'isOpen'),
+ highlightedIndex: J(i, 'highlightedIndex'),
+ selectedItem: i.items[t.index],
+ }
+ break
+ case 15:
+ var s = t.key,
+ u = '' + e.inputValue + s,
+ c = ce(
+ u,
+ e.selectedItem ? i.items.indexOf(e.selectedItem) : -1,
+ i.items,
+ i.itemToString,
+ t.getItemNodeFromIndex,
+ )
+ n = (0, o.Z)({ inputValue: u }, c >= 0 && { selectedItem: i.items[c] })
+ break
+ case 13:
+ n = { highlightedIndex: ne(i, e, 1, t.getItemNodeFromIndex), isOpen: !0 }
+ break
+ case 14:
+ n = { highlightedIndex: ne(i, e, -1, t.getItemNodeFromIndex), isOpen: !0 }
+ break
+ case 5:
+ case 6:
+ n = (0, o.Z)(
+ { isOpen: J(i, 'isOpen'), highlightedIndex: J(i, 'highlightedIndex') },
+ e.highlightedIndex >= 0 && { selectedItem: i.items[e.highlightedIndex] },
+ )
+ break
+ case 3:
+ n = { highlightedIndex: R(1, 0, i.items.length, t.getItemNodeFromIndex, !1) }
+ break
+ case 4:
+ n = {
+ highlightedIndex: R(
+ -1,
+ i.items.length - 1,
+ i.items.length,
+ t.getItemNodeFromIndex,
+ !1,
+ ),
+ }
+ break
+ case 2:
+ case 8:
+ n = { isOpen: !1, highlightedIndex: -1 }
+ break
+ case 7:
+ var l = t.key,
+ d = '' + e.inputValue + l,
+ f = ce(d, e.highlightedIndex, i.items, i.itemToString, t.getItemNodeFromIndex)
+ n = (0, o.Z)({ inputValue: d }, f >= 0 && { highlightedIndex: f })
+ break
+ case 0:
+ n = {
+ highlightedIndex: A(
+ a ? 5 : 1,
+ e.highlightedIndex,
+ i.items.length,
+ t.getItemNodeFromIndex,
+ i.circularNavigation,
+ ),
+ }
+ break
+ case 1:
+ n = {
+ highlightedIndex: A(
+ a ? -5 : -1,
+ e.highlightedIndex,
+ i.items.length,
+ t.getItemNodeFromIndex,
+ i.circularNavigation,
+ ),
+ }
+ break
+ case 20:
+ n = { selectedItem: t.selectedItem }
+ break
+ default:
+ return ue(e, t, fe)
+ }
+ return (0, o.Z)({}, e, n)
+ }
+ function pe(e) {
+ void 0 === e && (e = {}), de(e, pe)
+ var t = (0, o.Z)({}, le, e),
+ n = t.items,
+ i = t.scrollIntoView,
+ a = t.environment,
+ s = t.initialIsOpen,
+ u = t.defaultIsOpen,
+ l = t.itemToString,
+ d = t.getA11ySelectionMessage,
+ f = t.getA11yStatusMessage,
+ h = Y(he, te(t), t),
+ p = h[0],
+ v = h[1],
+ m = p.isOpen,
+ g = p.highlightedIndex,
+ y = p.selectedItem,
+ x = p.inputValue,
+ k = (0, c.useRef)(null),
+ E = (0, c.useRef)(null),
+ O = (0, c.useRef)({}),
+ T = (0, c.useRef)(!0),
+ C = (0, c.useRef)(null),
+ M = G(t),
+ S = (0, c.useRef)(),
+ P = (0, c.useRef)(!0),
+ j = X({ state: p, props: t }),
+ A = (0, c.useCallback)(
+ function (e) {
+ return O.current[M.getItemId(e)]
+ },
+ [M],
+ )
+ ie(
+ f,
+ [m, g, x, n],
+ (0, o.Z)(
+ {
+ isInitialMount: P.current,
+ previousResultCount: S.current,
+ items: n,
+ environment: a,
+ itemToString: l,
+ },
+ p,
+ ),
+ ),
+ ie(
+ d,
+ [y],
+ (0, o.Z)(
+ {
+ isInitialMount: P.current,
+ previousResultCount: S.current,
+ items: n,
+ environment: a,
+ itemToString: l,
+ },
+ p,
+ ),
+ )
+ var R = ae({
+ menuElement: E.current,
+ highlightedIndex: g,
+ isOpen: m,
+ itemRefs: O,
+ scrollIntoView: i,
+ getItemNodeFromIndex: A,
+ })
+ ;(0, c.useEffect)(function () {
+ return (
+ (C.current = b(function (e) {
+ e({ type: 21, inputValue: '' })
+ }, 500)),
+ function () {
+ C.current.cancel()
+ }
+ )
+ }, []),
+ (0, c.useEffect)(
+ function () {
+ x && C.current(v)
+ },
+ [v, x],
+ ),
+ se({ isInitialMount: P.current, props: t, state: p }),
+ (0, c.useEffect)(
+ function () {
+ P.current
+ ? (s || u || m) && E.current && E.current.focus()
+ : m
+ ? E.current && E.current.focus()
+ : a.document.activeElement === E.current &&
+ k.current &&
+ ((T.current = !1), k.current.focus())
+ },
+ [m],
+ ),
+ (0, c.useEffect)(function () {
+ P.current || (S.current = n.length)
+ })
+ var D = re(m, [E, k], a, function () {
+ v({ type: 8 })
+ }),
+ L = oe()
+ ;(0, c.useEffect)(function () {
+ P.current = !1
+ }, []),
+ (0, c.useEffect)(
+ function () {
+ m || (O.current = {})
+ },
+ [m],
+ )
+ var N = (0, c.useMemo)(
+ function () {
+ return {
+ ArrowDown: function (e) {
+ e.preventDefault(), v({ type: 13, getItemNodeFromIndex: A, shiftKey: e.shiftKey })
+ },
+ ArrowUp: function (e) {
+ e.preventDefault(), v({ type: 14, getItemNodeFromIndex: A, shiftKey: e.shiftKey })
+ },
+ }
+ },
+ [v, A],
+ ),
+ z = (0, c.useMemo)(
+ function () {
+ return {
+ ArrowDown: function (e) {
+ e.preventDefault(), v({ type: 0, getItemNodeFromIndex: A, shiftKey: e.shiftKey })
+ },
+ ArrowUp: function (e) {
+ e.preventDefault(), v({ type: 1, getItemNodeFromIndex: A, shiftKey: e.shiftKey })
+ },
+ Home: function (e) {
+ e.preventDefault(), v({ type: 3, getItemNodeFromIndex: A })
+ },
+ End: function (e) {
+ e.preventDefault(), v({ type: 4, getItemNodeFromIndex: A })
+ },
+ Escape: function () {
+ v({ type: 2 })
+ },
+ Enter: function (e) {
+ e.preventDefault(), v({ type: 5 })
+ },
+ ' ': function (e) {
+ e.preventDefault(), v({ type: 6 })
+ },
+ }
+ },
+ [v, A],
+ ),
+ B = (0, c.useCallback)(
+ function () {
+ v({ type: 16 })
+ },
+ [v],
+ ),
+ H = (0, c.useCallback)(
+ function () {
+ v({ type: 18 })
+ },
+ [v],
+ ),
+ F = (0, c.useCallback)(
+ function () {
+ v({ type: 17 })
+ },
+ [v],
+ ),
+ V = (0, c.useCallback)(
+ function (e) {
+ v({ type: 19, highlightedIndex: e })
+ },
+ [v],
+ ),
+ W = (0, c.useCallback)(
+ function (e) {
+ v({ type: 20, selectedItem: e })
+ },
+ [v],
+ ),
+ U = (0, c.useCallback)(
+ function () {
+ v({ type: 22 })
+ },
+ [v],
+ ),
+ Z = (0, c.useCallback)(
+ function (e) {
+ v({ type: 21, inputValue: e })
+ },
+ [v],
+ ),
+ $ = (0, c.useCallback)(
+ function (e) {
+ return (0, o.Z)({ id: M.labelId, htmlFor: M.toggleButtonId }, e)
+ },
+ [M],
+ ),
+ Q = (0, c.useCallback)(
+ function (e, t) {
+ var n,
+ i = void 0 === e ? {} : e,
+ a = i.onMouseLeave,
+ s = i.refKey,
+ u = void 0 === s ? 'ref' : s,
+ c = i.onKeyDown,
+ l = i.onBlur,
+ d = i.ref,
+ f = r(i, ['onMouseLeave', 'refKey', 'onKeyDown', 'onBlur', 'ref']),
+ h = (void 0 === t ? {} : t).suppressRefError,
+ p = void 0 !== h && h,
+ m = j.current.state
+ return (
+ L('getMenuProps', p, u, E),
+ (0, o.Z)(
+ (((n = {})[u] = _(d, function (e) {
+ E.current = e
+ })),
+ (n.id = M.menuId),
+ (n.role = 'listbox'),
+ (n['aria-labelledby'] = M.labelId),
+ (n.tabIndex = -1),
+ n),
+ m.isOpen &&
+ m.highlightedIndex > -1 && {
+ 'aria-activedescendant': M.getItemId(m.highlightedIndex),
+ },
+ {
+ onMouseLeave: w(a, function () {
+ v({ type: 9 })
+ }),
+ onKeyDown: w(c, function (e) {
+ var t = I(e)
+ t && z[t] ? z[t](e) : K(t) && v({ type: 7, key: t, getItemNodeFromIndex: A })
+ }),
+ onBlur: w(l, function () {
+ !1 !== T.current ? !D.current.isMouseDown && v({ type: 8 }) : (T.current = !0)
+ }),
+ },
+ f,
+ )
+ )
+ },
+ [v, j, z, D, L, M, A],
+ )
+ return {
+ getToggleButtonProps: (0, c.useCallback)(
+ function (e, t) {
+ var n,
+ i = void 0 === e ? {} : e,
+ a = i.onClick,
+ s = i.onKeyDown,
+ u = i.refKey,
+ c = void 0 === u ? 'ref' : u,
+ l = i.ref,
+ d = r(i, ['onClick', 'onKeyDown', 'refKey', 'ref']),
+ f = (void 0 === t ? {} : t).suppressRefError,
+ h = void 0 !== f && f,
+ p = (0, o.Z)(
+ (((n = {})[c] = _(l, function (e) {
+ k.current = e
+ })),
+ (n.id = M.toggleButtonId),
+ (n['aria-haspopup'] = 'listbox'),
+ (n['aria-expanded'] = j.current.state.isOpen),
+ (n['aria-labelledby'] = M.labelId + ' ' + M.toggleButtonId),
+ n),
+ d,
+ )
+ return (
+ d.disabled ||
+ ((p.onClick = w(a, function () {
+ v({ type: 12 })
+ })),
+ (p.onKeyDown = w(s, function (e) {
+ var t = I(e)
+ t && N[t] ? N[t](e) : K(t) && v({ type: 15, key: t, getItemNodeFromIndex: A })
+ }))),
+ L('getToggleButtonProps', h, c, k),
+ p
+ )
+ },
+ [v, j, N, L, M, A],
+ ),
+ getLabelProps: $,
+ getMenuProps: Q,
+ getItemProps: (0, c.useCallback)(
+ function (e) {
+ var t,
+ n = void 0 === e ? {} : e,
+ i = n.item,
+ a = n.index,
+ s = n.onMouseMove,
+ u = n.onClick,
+ c = n.refKey,
+ l = void 0 === c ? 'ref' : c,
+ d = n.ref,
+ f = r(n, ['item', 'index', 'onMouseMove', 'onClick', 'refKey', 'ref']),
+ h = j.current,
+ p = h.state,
+ m = h.props,
+ g = q(a, i, m.items)
+ if (g < 0) throw new Error('Pass either item or item index in getItemProps!')
+ var y = (0, o.Z)(
+ (((t = {
+ role: 'option',
+ 'aria-selected': '' + (g === p.highlightedIndex),
+ id: M.getItemId(g),
+ })[l] = _(d, function (e) {
+ e && (O.current[M.getItemId(g)] = e)
+ })),
+ t),
+ f,
+ )
+ return (
+ f.disabled ||
+ ((y.onMouseMove = w(s, function () {
+ a !== p.highlightedIndex && ((R.current = !1), v({ type: 10, index: a }))
+ })),
+ (y.onClick = w(u, function () {
+ v({ type: 11, index: a })
+ }))),
+ y
+ )
+ },
+ [v, j, R, M],
+ ),
+ toggleMenu: B,
+ openMenu: F,
+ closeMenu: H,
+ setHighlightedIndex: V,
+ selectItem: W,
+ reset: U,
+ setInputValue: Z,
+ highlightedIndex: g,
+ isOpen: m,
+ selectedItem: y,
+ inputValue: x,
+ }
+ }
+ pe.stateChangeTypes = fe
+ var ve = Object.freeze({
+ __proto__: null,
+ InputKeyDownArrowDown: 0,
+ InputKeyDownArrowUp: 1,
+ InputKeyDownEscape: 2,
+ InputKeyDownHome: 3,
+ InputKeyDownEnd: 4,
+ InputKeyDownEnter: 5,
+ InputChange: 6,
+ InputBlur: 7,
+ MenuMouseLeave: 8,
+ ItemMouseMove: 9,
+ ItemClick: 10,
+ ToggleButtonClick: 11,
+ FunctionToggleMenu: 12,
+ FunctionOpenMenu: 13,
+ FunctionCloseMenu: 14,
+ FunctionSetHighlightedIndex: 15,
+ FunctionSelectItem: 16,
+ FunctionSetInputValue: 17,
+ FunctionReset: 18,
+ ControlledPropUpdatedSelectedItem: 19,
+ })
+ u().array.isRequired,
+ u().func,
+ u().func,
+ u().func,
+ u().bool,
+ u().number,
+ u().number,
+ u().number,
+ u().bool,
+ u().bool,
+ u().bool,
+ u().any,
+ u().any,
+ u().any,
+ u().string,
+ u().string,
+ u().string,
+ u().string,
+ u().string,
+ u().string,
+ u().func,
+ u().string,
+ u().string,
+ u().func,
+ u().func,
+ u().func,
+ u().func,
+ u().func,
+ u().func,
+ u().shape({
+ addEventListener: u().func,
+ removeEventListener: u().func,
+ document: u().shape({ getElementById: u().func, activeElement: u().any, body: u().any }),
+ })
+ var me = m
+ var ge = (0, o.Z)({}, Q, { getA11yStatusMessage: E, circularNavigation: !0 })
+ function ye(e, t) {
+ var n,
+ r = t.type,
+ i = t.props,
+ a = t.shiftKey
+ switch (r) {
+ case 10:
+ n = {
+ isOpen: J(i, 'isOpen'),
+ highlightedIndex: J(i, 'highlightedIndex'),
+ selectedItem: i.items[t.index],
+ inputValue: i.itemToString(i.items[t.index]),
+ }
+ break
+ case 0:
+ n = e.isOpen
+ ? {
+ highlightedIndex: A(
+ a ? 5 : 1,
+ e.highlightedIndex,
+ i.items.length,
+ t.getItemNodeFromIndex,
+ i.circularNavigation,
+ ),
+ }
+ : {
+ highlightedIndex: ne(i, e, 1, t.getItemNodeFromIndex),
+ isOpen: i.items.length >= 0,
+ }
+ break
+ case 1:
+ n = e.isOpen
+ ? {
+ highlightedIndex: A(
+ a ? -5 : -1,
+ e.highlightedIndex,
+ i.items.length,
+ t.getItemNodeFromIndex,
+ i.circularNavigation,
+ ),
+ }
+ : {
+ highlightedIndex: ne(i, e, -1, t.getItemNodeFromIndex),
+ isOpen: i.items.length >= 0,
+ }
+ break
+ case 5:
+ n = (0, o.Z)(
+ {},
+ e.isOpen &&
+ e.highlightedIndex >= 0 && {
+ selectedItem: i.items[e.highlightedIndex],
+ isOpen: J(i, 'isOpen'),
+ highlightedIndex: J(i, 'highlightedIndex'),
+ inputValue: i.itemToString(i.items[e.highlightedIndex]),
+ },
+ )
+ break
+ case 2:
+ n = (0, o.Z)(
+ { isOpen: !1, highlightedIndex: -1 },
+ !e.isOpen && { selectedItem: null, inputValue: '' },
+ )
+ break
+ case 3:
+ n = { highlightedIndex: R(1, 0, i.items.length, t.getItemNodeFromIndex, !1) }
+ break
+ case 4:
+ n = {
+ highlightedIndex: R(
+ -1,
+ i.items.length - 1,
+ i.items.length,
+ t.getItemNodeFromIndex,
+ !1,
+ ),
+ }
+ break
+ case 7:
+ n = (0, o.Z)(
+ { isOpen: !1, highlightedIndex: -1 },
+ e.highlightedIndex >= 0 &&
+ t.selectItem && {
+ selectedItem: i.items[e.highlightedIndex],
+ inputValue: i.itemToString(i.items[e.highlightedIndex]),
+ },
+ )
+ break
+ case 6:
+ n = { isOpen: !0, highlightedIndex: J(i, 'highlightedIndex'), inputValue: t.inputValue }
+ break
+ case 16:
+ n = { selectedItem: t.selectedItem, inputValue: i.itemToString(t.selectedItem) }
+ break
+ case 19:
+ n = { inputValue: t.inputValue }
+ break
+ default:
+ return ue(e, t, ve)
+ }
+ return (0, o.Z)({}, e, n)
+ }
+ function be(e) {
+ void 0 === e && (e = {}), me(e, be)
+ var t = (0, o.Z)({}, ge, e),
+ n = t.initialIsOpen,
+ i = t.defaultIsOpen,
+ a = t.items,
+ s = t.scrollIntoView,
+ u = t.environment,
+ l = t.getA11yStatusMessage,
+ d = t.getA11ySelectionMessage,
+ f = t.itemToString,
+ h = (function (e, t, n) {
+ var r = (0, c.useRef)(),
+ o = $(e, t, n),
+ i = o[0],
+ a = o[1]
+ return (
+ (0, c.useEffect)(function () {
+ j(n, 'selectedItem') &&
+ (r.current !== n.selectedItem &&
+ a({ type: 19, inputValue: n.itemToString(n.selectedItem) }),
+ (r.current = i.selectedItem === r.current ? n.selectedItem : i.selectedItem))
+ }),
+ [P(i, n), a]
+ )
+ })(
+ ye,
+ (function (e) {
+ var t = te(e),
+ n = t.selectedItem,
+ r = t.inputValue
+ return (
+ '' === r &&
+ n &&
+ void 0 === e.defaultInputValue &&
+ void 0 === e.initialInputValue &&
+ void 0 === e.inputValue &&
+ (r = e.itemToString(n)),
+ (0, o.Z)({}, t, { inputValue: r })
+ )
+ })(t),
+ t,
+ ),
+ p = h[0],
+ v = h[1],
+ m = p.isOpen,
+ g = p.highlightedIndex,
+ y = p.selectedItem,
+ b = p.inputValue,
+ x = (0, c.useRef)(null),
+ k = (0, c.useRef)({}),
+ E = (0, c.useRef)(null),
+ O = (0, c.useRef)(null),
+ T = (0, c.useRef)(null),
+ C = (0, c.useRef)(!0),
+ M = G(t),
+ S = (0, c.useRef)(),
+ A = X({ state: p, props: t }),
+ R = (0, c.useCallback)(
+ function (e) {
+ return k.current[M.getItemId(e)]
+ },
+ [M],
+ )
+ ie(
+ l,
+ [m, g, b, a],
+ (0, o.Z)(
+ {
+ isInitialMount: C.current,
+ previousResultCount: S.current,
+ items: a,
+ environment: u,
+ itemToString: f,
+ },
+ p,
+ ),
+ ),
+ ie(
+ d,
+ [y],
+ (0, o.Z)(
+ {
+ isInitialMount: C.current,
+ previousResultCount: S.current,
+ items: a,
+ environment: u,
+ itemToString: f,
+ },
+ p,
+ ),
+ )
+ var D = ae({
+ menuElement: x.current,
+ highlightedIndex: g,
+ isOpen: m,
+ itemRefs: k,
+ scrollIntoView: s,
+ getItemNodeFromIndex: R,
+ })
+ se({ isInitialMount: C.current, props: t, state: p }),
+ (0, c.useEffect)(function () {
+ ;(n || i || m) && E.current && E.current.focus()
+ }, []),
+ (0, c.useEffect)(function () {
+ C.current || (S.current = a.length)
+ })
+ var L = re(m, [T, x, O], u, function () {
+ v({ type: 7, selectItem: !1 })
+ }),
+ N = oe()
+ ;(0, c.useEffect)(function () {
+ C.current = !1
+ }, []),
+ (0, c.useEffect)(
+ function () {
+ m || (k.current = {})
+ },
+ [m],
+ )
+ var z = (0, c.useMemo)(
+ function () {
+ return {
+ ArrowDown: function (e) {
+ e.preventDefault(), v({ type: 0, shiftKey: e.shiftKey, getItemNodeFromIndex: R })
+ },
+ ArrowUp: function (e) {
+ e.preventDefault(), v({ type: 1, shiftKey: e.shiftKey, getItemNodeFromIndex: R })
+ },
+ Home: function (e) {
+ A.current.state.isOpen &&
+ (e.preventDefault(), v({ type: 3, getItemNodeFromIndex: R }))
+ },
+ End: function (e) {
+ A.current.state.isOpen &&
+ (e.preventDefault(), v({ type: 4, getItemNodeFromIndex: R }))
+ },
+ Escape: function () {
+ var e = A.current.state
+ ;(e.isOpen || e.inputValue || e.selectedItem || e.highlightedIndex > -1) &&
+ v({ type: 2 })
+ },
+ Enter: function (e) {
+ var t = A.current.state
+ !t.isOpen ||
+ t.highlightedIndex < 0 ||
+ 229 === e.which ||
+ (e.preventDefault(), v({ type: 5, getItemNodeFromIndex: R }))
+ },
+ }
+ },
+ [v, A, R],
+ ),
+ B = (0, c.useCallback)(
+ function (e) {
+ return (0, o.Z)({ id: M.labelId, htmlFor: M.inputId }, e)
+ },
+ [M],
+ ),
+ H = (0, c.useCallback)(
+ function (e, t) {
+ var n,
+ i = void 0 === e ? {} : e,
+ a = i.onMouseLeave,
+ s = i.refKey,
+ u = void 0 === s ? 'ref' : s,
+ c = i.ref,
+ l = r(i, ['onMouseLeave', 'refKey', 'ref']),
+ d = (void 0 === t ? {} : t).suppressRefError
+ return (
+ N('getMenuProps', void 0 !== d && d, u, x),
+ (0, o.Z)(
+ (((n = {})[u] = _(c, function (e) {
+ x.current = e
+ })),
+ (n.id = M.menuId),
+ (n.role = 'listbox'),
+ (n['aria-labelledby'] = M.labelId),
+ (n.onMouseLeave = w(a, function () {
+ v({ type: 8 })
+ })),
+ n),
+ l,
+ )
+ )
+ },
+ [v, N, M],
+ ),
+ F = (0, c.useCallback)(
+ function (e) {
+ var t,
+ n,
+ i = void 0 === e ? {} : e,
+ a = i.item,
+ s = i.index,
+ u = i.refKey,
+ c = void 0 === u ? 'ref' : u,
+ l = i.ref,
+ d = i.onMouseMove,
+ f = i.onClick
+ i.onPress
+ var h = r(i, ['item', 'index', 'refKey', 'ref', 'onMouseMove', 'onClick', 'onPress']),
+ p = A.current,
+ m = p.props,
+ g = p.state,
+ y = q(s, a, m.items)
+ if (y < 0) throw new Error('Pass either item or item index in getItemProps!')
+ var b = f
+ return (0, o.Z)(
+ (((t = {})[c] = _(l, function (e) {
+ e && (k.current[M.getItemId(y)] = e)
+ })),
+ (t.role = 'option'),
+ (t['aria-selected'] = '' + (y === g.highlightedIndex)),
+ (t.id = M.getItemId(y)),
+ t),
+ !h.disabled &&
+ (((n = {
+ onMouseMove: w(d, function () {
+ s !== g.highlightedIndex && ((D.current = !1), v({ type: 9, index: s }))
+ }),
+ }).onClick = w(b, function () {
+ v({ type: 10, index: s }), E.current && E.current.focus()
+ })),
+ n),
+ h,
+ )
+ },
+ [v, A, D, M],
+ ),
+ V = (0, c.useCallback)(
+ function (e) {
+ var t,
+ n = void 0 === e ? {} : e,
+ i = n.onClick
+ n.onPress
+ var a = n.refKey,
+ s = void 0 === a ? 'ref' : a,
+ u = n.ref,
+ c = r(n, ['onClick', 'onPress', 'refKey', 'ref'])
+ return (0, o.Z)(
+ (((t = {})[s] = _(u, function (e) {
+ O.current = e
+ })),
+ (t.id = M.toggleButtonId),
+ (t.tabIndex = -1),
+ t),
+ !c.disabled &&
+ (0, o.Z)(
+ {},
+ {
+ onClick: w(i, function () {
+ v({ type: 11 }), !A.current.state.isOpen && E.current && E.current.focus()
+ }),
+ },
+ ),
+ c,
+ )
+ },
+ [v, A, M],
+ ),
+ W = (0, c.useCallback)(
+ function (e, t) {
+ var n,
+ i = void 0 === e ? {} : e,
+ a = i.onKeyDown,
+ s = i.onChange,
+ u = i.onInput,
+ c = i.onBlur
+ i.onChangeText
+ var l = i.refKey,
+ d = void 0 === l ? 'ref' : l,
+ f = i.ref,
+ h = r(i, [
+ 'onKeyDown',
+ 'onChange',
+ 'onInput',
+ 'onBlur',
+ 'onChangeText',
+ 'refKey',
+ 'ref',
+ ]),
+ p = (void 0 === t ? {} : t).suppressRefError
+ N('getInputProps', void 0 !== p && p, d, E)
+ var m,
+ g = A.current.state,
+ y = {}
+ h.disabled ||
+ (((m = {}).onChange = w(s, u, function (e) {
+ v({ type: 6, inputValue: e.target.value })
+ })),
+ (m.onKeyDown = w(a, function (e) {
+ var t = I(e)
+ t && z[t] && z[t](e)
+ })),
+ (m.onBlur = w(c, function () {
+ g.isOpen && !L.current.isMouseDown && v({ type: 7, selectItem: !0 })
+ })),
+ (y = m))
+ return (0, o.Z)(
+ (((n = {})[d] = _(f, function (e) {
+ E.current = e
+ })),
+ (n.id = M.inputId),
+ (n['aria-autocomplete'] = 'list'),
+ (n['aria-controls'] = M.menuId),
+ n),
+ g.isOpen &&
+ g.highlightedIndex > -1 && {
+ 'aria-activedescendant': M.getItemId(g.highlightedIndex),
+ },
+ { 'aria-labelledby': M.labelId, autoComplete: 'off', value: g.inputValue },
+ y,
+ h,
+ )
+ },
+ [v, z, A, L, N, M],
+ ),
+ U = (0, c.useCallback)(
+ function (e, t) {
+ var n,
+ i = void 0 === e ? {} : e,
+ a = i.refKey,
+ s = void 0 === a ? 'ref' : a,
+ u = i.ref,
+ c = r(i, ['refKey', 'ref']),
+ l = (void 0 === t ? {} : t).suppressRefError
+ return (
+ N('getComboboxProps', void 0 !== l && l, s, T),
+ (0, o.Z)(
+ (((n = {})[s] = _(u, function (e) {
+ T.current = e
+ })),
+ (n.role = 'combobox'),
+ (n['aria-haspopup'] = 'listbox'),
+ (n['aria-owns'] = M.menuId),
+ (n['aria-expanded'] = A.current.state.isOpen),
+ n),
+ c,
+ )
+ )
+ },
+ [A, N, M],
+ ),
+ K = (0, c.useCallback)(
+ function () {
+ v({ type: 12 })
+ },
+ [v],
+ ),
+ Z = (0, c.useCallback)(
+ function () {
+ v({ type: 14 })
+ },
+ [v],
+ ),
+ Y = (0, c.useCallback)(
+ function () {
+ v({ type: 13 })
+ },
+ [v],
+ ),
+ Q = (0, c.useCallback)(
+ function (e) {
+ v({ type: 15, highlightedIndex: e })
+ },
+ [v],
+ ),
+ J = (0, c.useCallback)(
+ function (e) {
+ v({ type: 16, selectedItem: e })
+ },
+ [v],
+ )
+ return {
+ getItemProps: F,
+ getLabelProps: B,
+ getMenuProps: H,
+ getInputProps: W,
+ getComboboxProps: U,
+ getToggleButtonProps: V,
+ toggleMenu: K,
+ openMenu: Y,
+ closeMenu: Z,
+ setHighlightedIndex: Q,
+ setInputValue: (0, c.useCallback)(
+ function (e) {
+ v({ type: 17, inputValue: e })
+ },
+ [v],
+ ),
+ selectItem: J,
+ reset: (0, c.useCallback)(
+ function () {
+ v({ type: 18 })
+ },
+ [v],
+ ),
+ highlightedIndex: g,
+ isOpen: m,
+ selectedItem: y,
+ inputValue: b,
+ }
+ }
+ be.stateChangeTypes = ve
+ var we = { activeIndex: -1, selectedItems: [] }
+ function _e(e, t) {
+ return ee(e, t, we)
+ }
+ function xe(e, t) {
+ return J(e, t, we)
+ }
+ function ke(e) {
+ if (e.shiftKey || e.metaKey || e.ctrlKey || e.altKey) return !1
+ var t = e.target
+ return (
+ !(t instanceof HTMLInputElement && '' !== t.value) ||
+ (0 === t.selectionStart && 0 === t.selectionEnd)
+ )
+ }
+ u().array,
+ u().array,
+ u().array,
+ u().func,
+ u().func,
+ u().func,
+ u().number,
+ u().number,
+ u().number,
+ u().func,
+ u().func,
+ u().string,
+ u().string,
+ u().shape({
+ addEventListener: u().func,
+ removeEventListener: u().func,
+ document: u().shape({ getElementById: u().func, activeElement: u().any, body: u().any }),
+ })
+ var Ee = {
+ itemToString: Q.itemToString,
+ stateReducer: Q.stateReducer,
+ environment: Q.environment,
+ getA11yRemovalMessage: function (e) {
+ var t = e.removedSelectedItem
+ return (0, e.itemToString)(t) + ' has been removed.'
+ },
+ keyNavigationNext: 'ArrowRight',
+ keyNavigationPrevious: 'ArrowLeft',
+ },
+ Oe = m
+ var Te = Object.freeze({
+ __proto__: null,
+ SelectedItemClick: 0,
+ SelectedItemKeyDownDelete: 1,
+ SelectedItemKeyDownBackspace: 2,
+ SelectedItemKeyDownNavigationNext: 3,
+ SelectedItemKeyDownNavigationPrevious: 4,
+ DropdownKeyDownNavigationPrevious: 5,
+ DropdownKeyDownBackspace: 6,
+ DropdownClick: 7,
+ FunctionAddSelectedItem: 8,
+ FunctionRemoveSelectedItem: 9,
+ FunctionSetSelectedItems: 10,
+ FunctionSetActiveIndex: 11,
+ FunctionReset: 12,
+ })
+ function Ce(e, t) {
+ var n,
+ r = t.type,
+ i = t.index,
+ a = t.props,
+ s = t.selectedItem,
+ u = e.activeIndex,
+ c = e.selectedItems
+ switch (r) {
+ case 0:
+ n = { activeIndex: i }
+ break
+ case 4:
+ n = { activeIndex: u - 1 < 0 ? 0 : u - 1 }
+ break
+ case 3:
+ n = { activeIndex: u + 1 >= c.length ? -1 : u + 1 }
+ break
+ case 2:
+ case 1:
+ var l = u
+ 1 === c.length ? (l = -1) : u === c.length - 1 && (l = c.length - 2),
+ (n = (0, o.Z)(
+ { selectedItems: [].concat(c.slice(0, u), c.slice(u + 1)) },
+ { activeIndex: l },
+ ))
+ break
+ case 5:
+ n = { activeIndex: c.length - 1 }
+ break
+ case 6:
+ n = { selectedItems: c.slice(0, c.length - 1) }
+ break
+ case 8:
+ n = { selectedItems: [].concat(c, [s]) }
+ break
+ case 7:
+ n = { activeIndex: -1 }
+ break
+ case 9:
+ var d = u,
+ f = c.indexOf(s)
+ 1 === c.length ? (d = -1) : f === c.length - 1 && (d = c.length - 2),
+ (n = (0, o.Z)(
+ { selectedItems: [].concat(c.slice(0, f), c.slice(f + 1)) },
+ { activeIndex: d },
+ ))
+ break
+ case 10:
+ n = { selectedItems: t.selectedItems }
+ break
+ case 11:
+ n = { activeIndex: t.activeIndex }
+ break
+ case 12:
+ n = { activeIndex: xe(a, 'activeIndex'), selectedItems: xe(a, 'selectedItems') }
+ break
+ default:
+ throw new Error('Reducer called without proper action type.')
+ }
+ return (0, o.Z)({}, e, n)
+ }
+ function Me(e) {
+ void 0 === e && (e = {}), Oe(e, Me)
+ var t = (0, o.Z)({}, Ee, e),
+ n = t.getA11yRemovalMessage,
+ i = t.itemToString,
+ a = t.environment,
+ s = t.keyNavigationNext,
+ u = t.keyNavigationPrevious,
+ l = Y(
+ Ce,
+ (function (e) {
+ return { activeIndex: _e(e, 'activeIndex'), selectedItems: _e(e, 'selectedItems') }
+ })(t),
+ t,
+ ),
+ d = l[0],
+ f = l[1],
+ h = d.activeIndex,
+ p = d.selectedItems,
+ v = (0, c.useRef)(!0),
+ m = (0, c.useRef)(null),
+ g = (0, c.useRef)(p),
+ y = (0, c.useRef)()
+ y.current = []
+ var b = X({ state: d, props: t })
+ ;(0, c.useEffect)(
+ function () {
+ if (!v.current) {
+ if (p.length < g.current.length) {
+ var e = g.current.find(function (e) {
+ return p.indexOf(e) < 0
+ })
+ N(
+ n({
+ itemToString: i,
+ resultCount: p.length,
+ removedSelectedItem: e,
+ activeIndex: h,
+ activeSelectedItem: p[h],
+ }),
+ a.document,
+ )
+ }
+ g.current = p
+ }
+ },
+ [p.length],
+ ),
+ (0, c.useEffect)(
+ function () {
+ v.current ||
+ (-1 === h && m.current ? m.current.focus() : y.current[h] && y.current[h].focus())
+ },
+ [h],
+ ),
+ se({ isInitialMount: v.current, props: t, state: d })
+ var x = oe()
+ ;(0, c.useEffect)(function () {
+ v.current = !1
+ }, [])
+ var k = (0, c.useMemo)(
+ function () {
+ var e
+ return (
+ ((e = {})[u] = function () {
+ f({ type: 4 })
+ }),
+ (e[s] = function () {
+ f({ type: 3 })
+ }),
+ (e.Delete = function () {
+ f({ type: 1 })
+ }),
+ (e.Backspace = function () {
+ f({ type: 2 })
+ }),
+ e
+ )
+ },
+ [f, s, u],
+ ),
+ E = (0, c.useMemo)(
+ function () {
+ var e
+ return (
+ ((e = {})[u] = function (e) {
+ ke(e) && f({ type: 5 })
+ }),
+ (e.Backspace = function (e) {
+ ke(e) && f({ type: 6 })
+ }),
+ e
+ )
+ },
+ [f, u],
+ )
+ return {
+ getSelectedItemProps: (0, c.useCallback)(
+ function (e) {
+ var t,
+ n = void 0 === e ? {} : e,
+ i = n.refKey,
+ a = void 0 === i ? 'ref' : i,
+ s = n.ref,
+ u = n.onClick,
+ c = n.onKeyDown,
+ l = n.selectedItem,
+ d = n.index,
+ h = r(n, ['refKey', 'ref', 'onClick', 'onKeyDown', 'selectedItem', 'index']),
+ p = b.current.state
+ if (q(d, l, p.selectedItems) < 0)
+ throw new Error('Pass either selectedItem or index in getSelectedItemProps!')
+ return (0, o.Z)(
+ (((t = {})[a] = _(s, function (e) {
+ e && y.current.push(e)
+ })),
+ (t.tabIndex = d === p.activeIndex ? 0 : -1),
+ (t.onClick = w(u, function () {
+ f({ type: 0, index: d })
+ })),
+ (t.onKeyDown = w(c, function (e) {
+ var t = I(e)
+ t && k[t] && k[t](e)
+ })),
+ t),
+ h,
+ )
+ },
+ [f, b, k],
+ ),
+ getDropdownProps: (0, c.useCallback)(
+ function (e, t) {
+ var n,
+ i = void 0 === e ? {} : e,
+ a = i.refKey,
+ s = void 0 === a ? 'ref' : a,
+ u = i.ref,
+ c = i.onKeyDown,
+ l = i.onClick,
+ d = i.preventKeyAction,
+ h = void 0 !== d && d,
+ p = r(i, ['refKey', 'ref', 'onKeyDown', 'onClick', 'preventKeyAction']),
+ v = (void 0 === t ? {} : t).suppressRefError
+ x('getDropdownProps', void 0 !== v && v, s, m)
+ return (0, o.Z)(
+ (((n = {})[s] = _(u, function (e) {
+ e && (m.current = e)
+ })),
+ n),
+ !h && {
+ onKeyDown: w(c, function (e) {
+ var t = I(e)
+ t && E[t] && E[t](e)
+ }),
+ onClick: w(l, function () {
+ f({ type: 7 })
+ }),
+ },
+ p,
+ )
+ },
+ [f, E, x],
+ ),
+ addSelectedItem: (0, c.useCallback)(
+ function (e) {
+ f({ type: 8, selectedItem: e })
+ },
+ [f],
+ ),
+ removeSelectedItem: (0, c.useCallback)(
+ function (e) {
+ f({ type: 9, selectedItem: e })
+ },
+ [f],
+ ),
+ setSelectedItems: (0, c.useCallback)(
+ function (e) {
+ f({ type: 10, selectedItems: e })
+ },
+ [f],
+ ),
+ setActiveIndex: (0, c.useCallback)(
+ function (e) {
+ f({ type: 11, activeIndex: e })
+ },
+ [f],
+ ),
+ reset: (0, c.useCallback)(
+ function () {
+ f({ type: 12 })
+ },
+ [f],
+ ),
+ selectedItems: p,
+ activeIndex: h,
+ }
+ }
+ Me.stateChangeTypes = Te
+ var Se = H
+ },
+ 56781: function (e, t) {
+ 'use strict'
+ var n = 60103,
+ r = 60106,
+ o = 60107,
+ i = 60108,
+ a = 60114,
+ s = 60109,
+ u = 60110,
+ c = 60112,
+ l = 60113,
+ d = 60120,
+ f = 60115,
+ h = 60116,
+ p = 60121,
+ v = 60122,
+ m = 60117,
+ g = 60129,
+ y = 60131
+ if ('function' === typeof Symbol && Symbol.for) {
+ var b = Symbol.for
+ ;(n = b('react.element')),
+ (r = b('react.portal')),
+ (o = b('react.fragment')),
+ (i = b('react.strict_mode')),
+ (a = b('react.profiler')),
+ (s = b('react.provider')),
+ (u = b('react.context')),
+ (c = b('react.forward_ref')),
+ (l = b('react.suspense')),
+ (d = b('react.suspense_list')),
+ (f = b('react.memo')),
+ (h = b('react.lazy')),
+ (p = b('react.block')),
+ (v = b('react.server.block')),
+ (m = b('react.fundamental')),
+ (g = b('react.debug_trace_mode')),
+ (y = b('react.legacy_hidden'))
+ }
+ function w(e) {
+ if ('object' === typeof e && null !== e) {
+ var t = e.$$typeof
+ switch (t) {
+ case n:
+ switch ((e = e.type)) {
+ case o:
+ case a:
+ case i:
+ case l:
+ case d:
+ return e
+ default:
+ switch ((e = e && e.$$typeof)) {
+ case u:
+ case c:
+ case h:
+ case f:
+ case s:
+ return e
+ default:
+ return t
+ }
+ }
+ case r:
+ return t
+ }
+ }
+ }
+ },
+ 21726: function (e, t, n) {
+ 'use strict'
+ n(56781)
+ },
+ 38252: function (e) {
+ 'use strict'
+ e.exports = function e(t, n) {
+ if (t === n) return !0
+ if (t && n && 'object' == typeof t && 'object' == typeof n) {
+ if (t.constructor !== n.constructor) return !1
+ var r, o, i
+ if (Array.isArray(t)) {
+ if ((r = t.length) != n.length) return !1
+ for (o = r; 0 !== o--; ) if (!e(t[o], n[o])) return !1
+ return !0
+ }
+ if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags
+ if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf()
+ if (t.toString !== Object.prototype.toString) return t.toString() === n.toString()
+ if ((r = (i = Object.keys(t)).length) !== Object.keys(n).length) return !1
+ for (o = r; 0 !== o--; ) if (!Object.prototype.hasOwnProperty.call(n, i[o])) return !1
+ for (o = r; 0 !== o--; ) {
+ var a = i[o]
+ if (('_owner' !== a || !t.$$typeof) && !e(t[a], n[a])) return !1
+ }
+ return !0
+ }
+ return t !== t && n !== n
+ }
+ },
+ 53869: function (e, t, n) {
'use strict'
n.d(t, {
M: function () {
return p
},
})
- var r = n(1439),
- i = n(7294),
- o = n(6717)
+ var r = n(70655),
+ o = n(67294),
+ i = n(6717)
var a = n(8626),
- s = n(5930),
+ s = n(45930),
u = 0
- function l() {
+ function c() {
var e = u
return u++, e
}
- var c = function (e) {
+ var l = function (e) {
var t = e.children,
n = e.initial,
r = e.isPresent,
- o = e.onExitComplete,
+ i = e.onExitComplete,
u = e.custom,
- c = e.presenceAffectsLayout,
+ l = e.presenceAffectsLayout,
f = (0, s.h)(d),
- h = (0, s.h)(l),
- p = (0, i.useMemo)(
+ h = (0, s.h)(c),
+ p = (0, o.useMemo)(
function () {
return {
id: h,
@@ -16433,7 +30097,7 @@
f.forEach(function (e) {
e || (t = !1)
}),
- t && (null === o || void 0 === o || o())
+ t && (null === i || void 0 === i || i())
},
register: function (e) {
return (
@@ -16445,10 +30109,10 @@
},
}
},
- c ? void 0 : [r],
+ l ? void 0 : [r],
)
return (
- (0, i.useMemo)(
+ (0, o.useMemo)(
function () {
f.forEach(function (e, t) {
return f.set(t, !1)
@@ -16456,19 +30120,19 @@
},
[r],
),
- i.useEffect(
+ o.useEffect(
function () {
- !r && !f.size && (null === o || void 0 === o || o())
+ !r && !f.size && (null === i || void 0 === i || i())
},
[r],
),
- i.createElement(a.O.Provider, { value: p }, t)
+ o.createElement(a.O.Provider, { value: p }, t)
)
}
function d() {
return new Map()
}
- var f = n(9870)
+ var f = n(49870)
function h(e) {
return e.key || ''
}
@@ -16478,19 +30142,19 @@
a = e.initial,
s = void 0 === a || a,
u = e.onExitComplete,
- l = e.exitBeforeEnter,
+ c = e.exitBeforeEnter,
d = e.presenceAffectsLayout,
p = void 0 === d || d,
v = (function () {
- var e = (0, i.useRef)(!1),
- t = (0, r.CR)((0, i.useState)(0), 2),
+ var e = (0, o.useRef)(!1),
+ t = (0, r.__read)((0, o.useState)(0), 2),
n = t[0],
a = t[1]
return (
- (0, o.z)(function () {
+ (0, i.z)(function () {
return (e.current = !0)
}),
- (0, i.useCallback)(
+ (0, o.useCallback)(
function () {
!e.current && a(n + 1)
},
@@ -16498,21 +30162,21 @@
)
)
})(),
- m = (0, i.useContext)(f.WH)
+ m = (0, o.useContext)(f.WH)
;(0, f.Md)(m) && (v = m.forceUpdate)
- var g = (0, i.useRef)(!0),
+ var g = (0, o.useRef)(!0),
y = (function (e) {
var t = []
return (
- i.Children.forEach(e, function (e) {
- ;(0, i.isValidElement)(e) && t.push(e)
+ o.Children.forEach(e, function (e) {
+ ;(0, o.isValidElement)(e) && t.push(e)
}),
t
)
})(t),
- b = (0, i.useRef)(y),
- w = (0, i.useRef)(new Map()).current,
- x = (0, i.useRef)(new Set()).current
+ b = (0, o.useRef)(y),
+ w = (0, o.useRef)(new Map()).current,
+ _ = (0, o.useRef)(new Set()).current
if (
((function (e, t) {
e.forEach(function (e) {
@@ -16524,12 +30188,12 @@
)
return (
(g.current = !1),
- i.createElement(
- i.Fragment,
+ o.createElement(
+ o.Fragment,
null,
y.map(function (e) {
- return i.createElement(
- c,
+ return o.createElement(
+ l,
{ key: h(e), isPresent: !0, initial: !!s && void 0, presenceAffectsLayout: p },
e,
)
@@ -16537,38 +30201,38 @@
)
)
for (
- var E = (0, r.ev)([], (0, r.CR)(y)),
+ var x = (0, r.__spreadArray)([], (0, r.__read)(y)),
k = b.current.map(h),
- _ = y.map(h),
- T = k.length,
- O = 0;
- O < T;
- O++
+ E = y.map(h),
+ O = k.length,
+ T = 0;
+ T < O;
+ T++
) {
- var C = k[O]
- ;-1 === _.indexOf(C) ? x.add(C) : x.delete(C)
+ var C = k[T]
+ ;-1 === E.indexOf(C) ? _.add(C) : _.delete(C)
}
return (
- l && x.size && (E = []),
- x.forEach(function (e) {
- if (-1 === _.indexOf(e)) {
+ c && _.size && (x = []),
+ _.forEach(function (e) {
+ if (-1 === E.indexOf(e)) {
var t = w.get(e)
if (t) {
var r = k.indexOf(e)
- E.splice(
+ x.splice(
r,
0,
- i.createElement(
- c,
+ o.createElement(
+ l,
{
key: h(t),
isPresent: !1,
onExitComplete: function () {
- w.delete(e), x.delete(e)
+ w.delete(e), _.delete(e)
var t = b.current.findIndex(function (t) {
return t.key === e
})
- b.current.splice(t, 1), x.size || ((b.current = y), v(), u && u())
+ b.current.splice(t, 1), _.size || ((b.current = y), v(), u && u())
},
custom: n,
presenceAffectsLayout: p,
@@ -16579,20 +30243,20 @@
}
}
}),
- (E = E.map(function (e) {
+ (x = x.map(function (e) {
var t = e.key
- return x.has(t)
+ return _.has(t)
? e
- : i.createElement(c, { key: h(e), isPresent: !0, presenceAffectsLayout: p }, e)
+ : o.createElement(l, { key: h(e), isPresent: !0, presenceAffectsLayout: p }, e)
})),
- (b.current = E),
- i.createElement(
- i.Fragment,
+ (b.current = x),
+ o.createElement(
+ o.Fragment,
null,
- x.size
- ? E
- : E.map(function (e) {
- return (0, i.cloneElement)(e)
+ _.size
+ ? x
+ : x.map(function (e) {
+ return (0, o.cloneElement)(e)
}),
)
)
@@ -16600,13 +30264,13 @@
},
7646: function (e, t, n) {
'use strict'
- var r, i
+ var r, o
n.d(t, {
z: function () {
return r
},
c: function () {
- return i
+ return o
},
}),
(function (e) {
@@ -16616,7 +30280,7 @@
})(r || (r = {})),
(function (e) {
;(e[(e.Hide = 0)] = 'Hide'), (e[(e.Show = 1)] = 'Show')
- })(i || (i = {}))
+ })(o || (o = {}))
},
8626: function (e, t, n) {
'use strict'
@@ -16625,9 +30289,9 @@
return r
},
})
- var r = (0, n(7294).createContext)(null)
+ var r = (0, n(67294).createContext)(null)
},
- 9870: function (e, t, n) {
+ 49870: function (e, t, n) {
'use strict'
n.d(t, {
bg: function () {
@@ -16640,14 +30304,14 @@
return v
},
})
- var r = n(7294),
- i = n(1439),
- o = n(9839),
- a = n(8839),
- s = n(7565),
+ var r = n(67294),
+ o = n(70655),
+ i = n(9839),
+ a = n(58839),
+ s = n(27565),
u = n(519),
- l = n(7646),
- c = {
+ c = n(7646),
+ l = {
layoutReady: function (e) {
return e.notifyLayoutReady()
},
@@ -16659,14 +30323,17 @@
return e.add(t)
},
flush: function (t) {
- var n = void 0 === t ? c : t,
+ var n = void 0 === t ? l : t,
r = n.layoutReady,
d = n.parent
;(0, s.U)(function (t, n) {
var s = Array.from(e).sort(u._),
- c = d ? (0, a.kv)(d) : []
+ l = d ? (0, a.kv)(d) : []
n(function () {
- ;(0, i.ev)((0, i.ev)([], (0, i.CR)(c)), (0, i.CR)(s)).forEach(function (e) {
+ ;(0, o.__spreadArray)(
+ (0, o.__spreadArray)([], (0, o.__read)(l)),
+ (0, o.__read)(s),
+ ).forEach(function (e) {
return e.resetTransform()
})
}),
@@ -16674,21 +30341,21 @@
s.forEach(a.de)
}),
n(function () {
- c.forEach(function (e) {
+ l.forEach(function (e) {
return e.restoreTransform()
}),
s.forEach(r)
}),
t(function () {
s.forEach(function (e) {
- e.isPresent && (e.presence = l.z.Present)
+ e.isPresent && (e.presence = c.z.Present)
})
}),
n(function () {
- o.iW.preRender(), o.iW.render()
+ i.iW.preRender(), i.iW.render()
}),
t(function () {
- o.ZP.postRender(function () {
+ i.ZP.postRender(function () {
return s.forEach(f)
}),
e.clear()
@@ -16707,16 +30374,16 @@
return !!e.forceUpdate
}
},
- 7554: function (e, t, n) {
+ 11770: function (e, t, n) {
'use strict'
n.d(t, {
E: function () {
- return Oo
+ return ki
},
})
- var r = n(1439),
- i = n(7294),
- o = function (e) {
+ var r = n(70655),
+ o = n(67294),
+ i = function (e) {
return {
isEnabled: function (t) {
return e.some(function (e) {
@@ -16726,8 +30393,8 @@
}
},
a = {
- measureLayout: o(['layout', 'layoutId', 'drag', '_layoutResetTransform']),
- animation: o([
+ measureLayout: i(['layout', 'layoutId', 'drag', '_layoutResetTransform']),
+ animation: i([
'animate',
'exit',
'variants',
@@ -16736,41 +30403,41 @@
'whileFocus',
'whileDrag',
]),
- exit: o(['exit']),
- drag: o(['drag', 'dragControls']),
- focus: o(['whileFocus']),
- hover: o(['whileHover', 'onHoverStart', 'onHoverEnd']),
- tap: o(['whileTap', 'onTap', 'onTapStart', 'onTapCancel']),
- pan: o(['onPan', 'onPanStart', 'onPanSessionStart', 'onPanEnd']),
- layoutAnimation: o(['layout', 'layoutId']),
- }
- var s = (0, i.createContext)({ strict: !1 }),
+ exit: i(['exit']),
+ drag: i(['drag', 'dragControls']),
+ focus: i(['whileFocus']),
+ hover: i(['whileHover', 'onHoverStart', 'onHoverEnd']),
+ tap: i(['whileTap', 'onTap', 'onTapStart', 'onTapCancel']),
+ pan: i(['onPan', 'onPanStart', 'onPanSessionStart', 'onPanEnd']),
+ layoutAnimation: i(['layout', 'layoutId']),
+ }
+ var s = (0, o.createContext)({ strict: !1 }),
u = Object.keys(a),
- l = u.length
- var c = (0, i.createContext)({
+ c = u.length
+ var l = (0, o.createContext)({
transformPagePoint: function (e) {
return e
},
isStatic: !1,
}),
- d = (0, i.createContext)({})
+ d = (0, o.createContext)({})
var f = n(8626),
- h = n(5930)
+ h = n(45930)
function p() {
- var e = (0, i.useContext)(f.O)
+ var e = (0, o.useContext)(f.O)
if (null === e) return [!0, null]
var t = e.isPresent,
n = e.onExitComplete,
r = e.register,
- o = y()
- ;(0, i.useEffect)(function () {
- return r(o)
+ i = y()
+ ;(0, o.useEffect)(function () {
+ return r(i)
}, [])
return !t && n
? [
!1,
function () {
- return null === n || void 0 === n ? void 0 : n(o)
+ return null === n || void 0 === n ? void 0 : n(i)
},
]
: [!0]
@@ -16785,45 +30452,47 @@
y = function () {
return (0, h.h)(g)
},
- b = (0, i.createContext)(null),
+ b = (0, o.createContext)(null),
w = 'undefined' !== typeof window,
- x = w ? i.useLayoutEffect : i.useEffect
- function E(e, t, n, o) {
- var a = (0, i.useContext)(c),
- u = (0, i.useContext)(s),
- l = (0, i.useContext)(d).visualElement,
- h = (0, i.useContext)(f.O),
+ _ = w ? o.useLayoutEffect : o.useEffect
+ function x(e, t, n, i) {
+ var a = (0, o.useContext)(l),
+ u = (0, o.useContext)(s),
+ c = (0, o.useContext)(d).visualElement,
+ h = (0, o.useContext)(f.O),
p = (function (e) {
var t = e.layoutId,
- n = (0, i.useContext)(b)
+ n = (0, o.useContext)(b)
return n && void 0 !== t ? n + '-' + t : t
})(n),
- m = (0, i.useRef)(void 0)
- o || (o = u.renderer),
+ m = (0, o.useRef)(void 0)
+ i || (i = u.renderer),
!m.current &&
- o &&
- (m.current = o(e, {
+ i &&
+ (m.current = i(e, {
visualState: t,
- parent: l,
- props: (0, r.pi)((0, r.pi)({}, n), { layoutId: p }),
+ parent: c,
+ props: (0, r.__assign)((0, r.__assign)({}, n), { layoutId: p }),
presenceId: null === h || void 0 === h ? void 0 : h.id,
blockInitialAnimation: !1 === (null === h || void 0 === h ? void 0 : h.initial),
}))
var g = m.current
return (
- x(function () {
+ _(function () {
g &&
- (g.setProps((0, r.pi)((0, r.pi)((0, r.pi)({}, a), n), { layoutId: p })),
+ (g.setProps(
+ (0, r.__assign)((0, r.__assign)((0, r.__assign)({}, a), n), { layoutId: p }),
+ ),
(g.isPresent = v(h)),
(g.isPresenceRoot =
- !l || l.presenceId !== (null === h || void 0 === h ? void 0 : h.id)),
+ !c || c.presenceId !== (null === h || void 0 === h ? void 0 : h.id)),
g.syncRender())
}),
- (0, i.useEffect)(function () {
+ (0, o.useEffect)(function () {
var e
g && (null === (e = g.animationState) || void 0 === e || e.animateChanges())
}),
- x(function () {
+ _(function () {
return function () {
return null === g || void 0 === g ? void 0 : g.notifyUnmount()
}
@@ -16834,24 +30503,24 @@
function k(e) {
return 'object' === typeof e && Object.prototype.hasOwnProperty.call(e, 'current')
}
- function _(e) {
+ function E(e) {
return Array.isArray(e)
}
- function T(e) {
- return 'string' === typeof e || _(e)
+ function O(e) {
+ return 'string' === typeof e || E(e)
}
- function O(e, t, n, r, i) {
- var o
+ function T(e, t, n, r, o) {
+ var i
return (
void 0 === r && (r = {}),
- void 0 === i && (i = {}),
- 'string' === typeof t && (t = null === (o = e.variants) || void 0 === o ? void 0 : o[t]),
- 'function' === typeof t ? t(null !== n && void 0 !== n ? n : e.custom, r, i) : t
+ void 0 === o && (o = {}),
+ 'string' === typeof t && (t = null === (i = e.variants) || void 0 === i ? void 0 : i[t]),
+ 'function' === typeof t ? t(null !== n && void 0 !== n ? n : e.custom, r, o) : t
)
}
function C(e, t, n) {
var r = e.getProps()
- return O(
+ return T(
r,
t,
null !== n && void 0 !== n ? n : r.custom,
@@ -16875,47 +30544,47 @@
})(e),
)
}
- function S(e) {
+ function M(e) {
var t
return (
'function' === typeof (null === (t = e.animate) || void 0 === t ? void 0 : t.start) ||
- T(e.initial) ||
- T(e.animate) ||
- T(e.whileHover) ||
- T(e.whileDrag) ||
- T(e.whileTap) ||
- T(e.whileFocus) ||
- T(e.exit)
+ O(e.initial) ||
+ O(e.animate) ||
+ O(e.whileHover) ||
+ O(e.whileDrag) ||
+ O(e.whileTap) ||
+ O(e.whileFocus) ||
+ O(e.exit)
)
}
- function A(e) {
- return Boolean(S(e) || e.variants)
+ function S(e) {
+ return Boolean(M(e) || e.variants)
}
function P(e, t) {
var n = (function (e, t) {
- if (S(e)) {
+ if (M(e)) {
var n = e.initial,
r = e.animate
- return { initial: !1 === n || T(n) ? n : void 0, animate: T(r) ? r : void 0 }
+ return { initial: !1 === n || O(n) ? n : void 0, animate: O(r) ? r : void 0 }
}
return !1 !== e.inherit ? t : {}
- })(e, (0, i.useContext)(d)),
+ })(e, (0, o.useContext)(d)),
r = n.initial,
- o = n.animate
- return (0, i.useMemo)(
+ i = n.animate
+ return (0, o.useMemo)(
function () {
- return { initial: r, animate: o }
+ return { initial: r, animate: i }
},
- t ? [M(r), M(o)] : [],
+ t ? [j(r), j(i)] : [],
)
}
- function M(e) {
+ function j(e) {
return Array.isArray(e) ? e.join(' ') : e
}
- function R(e) {
+ function I(e) {
var t = e.preloadedFeatures,
n = e.createVisualElement,
- o = e.useRender,
+ i = e.useRender,
f = e.useVisualState,
h = e.Component
return (
@@ -16926,43 +30595,45 @@
null !== n && (a[t].Component = n)
}
})(t),
- (0, i.forwardRef)(function (e, t) {
- var p = (0, i.useContext)(c).isStatic,
+ (0, o.forwardRef)(function (e, t) {
+ var p = (0, o.useContext)(l).isStatic,
v = null,
m = P(e, p),
g = f(e, p)
return (
!p &&
w &&
- ((m.visualElement = E(h, g, e, n)),
+ ((m.visualElement = x(h, g, e, n)),
(v = (function (e, t, n) {
- var o = []
- if (((0, i.useContext)(s), !t)) return null
- for (var c = 0; c < l; c++) {
- var d = u[c],
+ var i = []
+ if (((0, o.useContext)(s), !t)) return null
+ for (var l = 0; l < c; l++) {
+ var d = u[l],
f = a[d],
h = f.isEnabled,
p = f.Component
h(e) &&
p &&
- o.push(i.createElement(p, (0, r.pi)({ key: d }, e, { visualElement: t })))
+ i.push(
+ o.createElement(p, (0, r.__assign)({ key: d }, e, { visualElement: t })),
+ )
}
- return o
+ return i
})(e, m.visualElement))),
- i.createElement(
- i.Fragment,
+ o.createElement(
+ o.Fragment,
null,
- i.createElement(
+ o.createElement(
d.Provider,
{ value: m },
- o(
+ i(
h,
e,
(function (e, t, n) {
- return (0, i.useCallback)(
+ return (0, o.useCallback)(
function (r) {
- var i
- r && (null === (i = e.mount) || void 0 === i || i.call(e, r)),
+ var o
+ r && (null === (o = e.mount) || void 0 === o || o.call(e, r)),
t && (r ? t.mount(r) : t.unmount()),
n && ('function' === typeof n ? n(r) : k(n) && (n.current = r))
},
@@ -16979,9 +30650,9 @@
})
)
}
- function j(e) {
+ function A(e) {
function t(t, n) {
- return void 0 === n && (n = {}), R(e(t, n))
+ return void 0 === n && (n = {}), I(e(t, n))
}
var n = new Map()
return new Proxy(t, {
@@ -16990,7 +30661,7 @@
},
})
}
- var D = [
+ var R = [
'animate',
'circle',
'defs',
@@ -17017,37 +30688,37 @@
'use',
'view',
]
- function L(e) {
- return 'string' === typeof e && !e.includes('-') && !!(D.indexOf(e) > -1 || /[A-Z]/.test(e))
+ function D(e) {
+ return 'string' === typeof e && !e.includes('-') && !!(R.indexOf(e) > -1 || /[A-Z]/.test(e))
}
- var N = {}
- var I = ['', 'X', 'Y', 'Z'],
+ var L = {}
+ var N = ['', 'X', 'Y', 'Z'],
z = ['transformPerspective', 'x', 'y', 'z']
- function H(e, t) {
+ function B(e, t) {
return z.indexOf(e) - z.indexOf(t)
}
;['translate', 'scale', 'rotate', 'skew'].forEach(function (e) {
- return I.forEach(function (t) {
+ return N.forEach(function (t) {
return z.push(e + t)
})
})
- var B = new Set(z)
+ var H = new Set(z)
function F(e) {
- return B.has(e)
+ return H.has(e)
}
var V = new Set(['originX', 'originY', 'originZ'])
- function U(e) {
+ function W(e) {
return V.has(e)
}
- function G(e, t) {
+ function U(e, t) {
var n = t.layout,
r = t.layoutId
- return F(e) || U(e) || ((n || void 0 !== r) && (!!N[e] || 'opacity' === e))
+ return F(e) || W(e) || ((n || void 0 !== r) && (!!L[e] || 'opacity' === e))
}
- var q = function (e) {
+ var G = function (e) {
return null !== e && 'object' === typeof e && e.getVelocity
},
- W = {
+ q = {
x: 'translateX',
y: 'translateY',
z: 'translateZ',
@@ -17057,40 +30728,28 @@
return e.startsWith('--')
}
var Z = function (e, t) {
- return t && 'number' === typeof e ? t.transform(e) : e
- }
- var $ = function () {
- return ($ =
- Object.assign ||
- function (e) {
- for (var t, n = 1, r = arguments.length; n < r; n++)
- for (var i in (t = arguments[n]))
- Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i])
- return e
- }).apply(this, arguments)
- }
- Object.create
- Object.create
- var X = function (e, t) {
+ return t && 'number' === typeof e ? t.transform(e) : e
+ },
+ X = function (e, t) {
return function (n) {
return Math.max(Math.min(n, t), e)
}
},
- Y = function (e) {
+ $ = function (e) {
return e % 1 ? Number(e.toFixed(5)) : e
},
- Q = /(-)?([\d]*\.?[\d])+/g,
- J =
+ Y = /(-)?([\d]*\.?[\d])+/g,
+ Q =
/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,
- ee =
+ J =
/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i
- function te(e) {
+ function ee(e) {
return 'string' === typeof e
}
- var ne = function (e) {
+ var te = function (e) {
return {
test: function (t) {
- return te(t) && t.endsWith(e) && 1 === t.split(' ').length
+ return ee(t) && t.endsWith(e) && 1 === t.split(' ').length
},
parse: parseFloat,
transform: function (t) {
@@ -17098,20 +30757,20 @@
},
}
},
- re = ne('deg'),
- ie = ne('%'),
- oe = ne('px'),
- ae = ne('vh'),
- se = ne('vw'),
- ue = $($({}, ie), {
+ ne = te('deg'),
+ re = te('%'),
+ oe = te('px'),
+ ie = te('vh'),
+ ae = te('vw'),
+ se = (0, r.__assign)((0, r.__assign)({}, re), {
parse: function (e) {
- return ie.parse(e) / 100
+ return re.parse(e) / 100
},
transform: function (e) {
- return ie.transform(100 * e)
+ return re.transform(100 * e)
},
}),
- le = {
+ ue = {
test: function (e) {
return 'number' === typeof e
},
@@ -17120,10 +30779,10 @@
return e
},
},
- ce = $($({}, le), { transform: X(0, 1) }),
- de = $($({}, le), { default: 1 }),
- fe = (0, r.pi)((0, r.pi)({}, le), { transform: Math.round }),
- he = {
+ ce = (0, r.__assign)((0, r.__assign)({}, ue), { transform: X(0, 1) }),
+ le = (0, r.__assign)((0, r.__assign)({}, ue), { default: 1 }),
+ de = (0, r.__assign)((0, r.__assign)({}, ue), { transform: Math.round }),
+ fe = {
borderWidth: oe,
borderTopWidth: oe,
borderRightWidth: oe,
@@ -17154,17 +30813,17 @@
marginRight: oe,
marginBottom: oe,
marginLeft: oe,
- rotate: re,
- rotateX: re,
- rotateY: re,
- rotateZ: re,
- scale: de,
- scaleX: de,
- scaleY: de,
- scaleZ: de,
- skew: re,
- skewX: re,
- skewY: re,
+ rotate: ne,
+ rotateX: ne,
+ rotateY: ne,
+ rotateZ: ne,
+ scale: le,
+ scaleX: le,
+ scaleY: le,
+ scaleZ: le,
+ skew: ne,
+ skewX: ne,
+ skewY: ne,
distance: oe,
translateX: oe,
translateY: oe,
@@ -17175,18 +30834,18 @@
perspective: oe,
transformPerspective: oe,
opacity: ce,
- originX: ue,
- originY: ue,
+ originX: se,
+ originY: se,
originZ: oe,
- zIndex: fe,
+ zIndex: de,
fillOpacity: ce,
strokeOpacity: ce,
- numOctaves: fe,
+ numOctaves: de,
}
- function pe(e, t, n, r, i, o, a, s) {
+ function he(e, t, n, r, o, i, a, s) {
var u,
- l = e.style,
- c = e.vars,
+ c = e.style,
+ l = e.vars,
d = e.transform,
f = e.transformKeys,
h = e.transformOrigin
@@ -17196,75 +30855,75 @@
m = !0
for (var g in t) {
var y = t[g]
- if (K(g)) c[g] = y
+ if (K(g)) l[g] = y
else {
- var b = he[g],
+ var b = fe[g],
w = Z(y, b)
if (F(g)) {
if (((p = !0), (d[g] = w), f.push(g), !m)) continue
y !== (null !== (u = b.default) && void 0 !== u ? u : 0) && (m = !1)
- } else if (U(g)) (h[g] = w), (v = !0)
+ } else if (W(g)) (h[g] = w), (v = !0)
else if (
(null === n || void 0 === n ? void 0 : n.isHydrated) &&
(null === r || void 0 === r ? void 0 : r.isHydrated) &&
- N[g]
+ L[g]
) {
- var x = N[g].process(y, r, n),
- E = N[g].applyTo
- if (E) for (var k = E.length, _ = 0; _ < k; _++) l[E[_]] = x
- else l[g] = x
- } else l[g] = w
+ var _ = L[g].process(y, r, n),
+ x = L[g].applyTo
+ if (x) for (var k = x.length, E = 0; E < k; E++) c[x[E]] = _
+ else c[g] = _
+ } else c[g] = w
}
}
r && n && a && s
- ? ((l.transform = a(r.deltaFinal, r.treeScale, p ? d : void 0)),
- o && (l.transform = o(d, l.transform)),
- (l.transformOrigin = s(r)))
+ ? ((c.transform = a(r.deltaFinal, r.treeScale, p ? d : void 0)),
+ i && (c.transform = i(d, c.transform)),
+ (c.transformOrigin = s(r)))
: (p &&
- (l.transform = (function (e, t, n, r) {
- var i = e.transform,
- o = e.transformKeys,
+ (c.transform = (function (e, t, n, r) {
+ var o = e.transform,
+ i = e.transformKeys,
a = t.enableHardwareAcceleration,
s = void 0 === a || a,
u = t.allowTransformNone,
- l = void 0 === u || u,
- c = ''
- o.sort(H)
- for (var d = !1, f = o.length, h = 0; h < f; h++) {
- var p = o[h]
- ;(c += (W[p] || p) + '(' + i[p] + ') '), 'z' === p && (d = !0)
+ c = void 0 === u || u,
+ l = ''
+ i.sort(B)
+ for (var d = !1, f = i.length, h = 0; h < f; h++) {
+ var p = i[h]
+ ;(l += (q[p] || p) + '(' + o[p] + ') '), 'z' === p && (d = !0)
}
return (
- !d && s ? (c += 'translateZ(0)') : (c = c.trim()),
- r ? (c = r(i, n ? '' : c)) : l && n && (c = 'none'),
- c
+ !d && s ? (l += 'translateZ(0)') : (l = l.trim()),
+ r ? (l = r(o, n ? '' : l)) : c && n && (l = 'none'),
+ l
)
- })(e, i, m, o)),
+ })(e, o, m, i)),
v &&
- (l.transformOrigin = (function (e) {
+ (c.transformOrigin = (function (e) {
var t = e.originX,
n = void 0 === t ? '50%' : t,
r = e.originY,
- i = void 0 === r ? '50%' : r,
- o = e.originZ
- return n + ' ' + i + ' ' + (void 0 === o ? 0 : o)
+ o = void 0 === r ? '50%' : r,
+ i = e.originZ
+ return n + ' ' + o + ' ' + (void 0 === i ? 0 : i)
})(h)))
}
- var ve = function () {
+ var pe = function () {
return { style: {}, transform: {}, transformKeys: [], transformOrigin: {}, vars: {} }
}
- function me(e, t, n) {
- for (var r in t) q(t[r]) || G(r, n) || (e[r] = t[r])
+ function ve(e, t, n) {
+ for (var r in t) G(t[r]) || U(r, n) || (e[r] = t[r])
}
- function ge(e, t, n) {
- var o = {}
+ function me(e, t, n) {
+ var i = {}
return (
- me(o, e.style || {}, e),
+ ve(i, e.style || {}, e),
Object.assign(
- o,
+ i,
(function (e, t, n) {
- var o = e.transformTemplate
- return (0, i.useMemo)(
+ var i = e.transformTemplate
+ return (0, o.useMemo)(
function () {
var e = {
style: {},
@@ -17273,32 +30932,32 @@
transformOrigin: {},
vars: {},
}
- pe(e, t, void 0, void 0, { enableHardwareAcceleration: !n }, o)
- var i = e.vars,
+ he(e, t, void 0, void 0, { enableHardwareAcceleration: !n }, i)
+ var o = e.vars,
a = e.style
- return (0, r.pi)((0, r.pi)({}, i), a)
+ return (0, r.__assign)((0, r.__assign)({}, o), a)
},
[t],
)
})(e, t, n),
),
- e.transformValues && (o = e.transformValues(o)),
- o
+ e.transformValues && (i = e.transformValues(i)),
+ i
)
}
- function ye(e, t, n) {
+ function ge(e, t, n) {
var r = {},
- i = ge(e, t, n)
+ o = me(e, t, n)
return (
Boolean(e.drag) &&
((r.draggable = !1),
- (i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = 'none'),
- (i.touchAction = !0 === e.drag ? 'none' : 'pan-' + ('x' === e.drag ? 'y' : 'x'))),
- (r.style = i),
+ (o.userSelect = o.WebkitUserSelect = o.WebkitTouchCallout = 'none'),
+ (o.touchAction = !0 === e.drag ? 'none' : 'pan-' + ('x' === e.drag ? 'y' : 'x'))),
+ (r.style = o),
r
)
}
- var be = new Set([
+ var ye = new Set([
'initial',
'animate',
'exit',
@@ -17350,29 +31009,29 @@
'whileTap',
'whileHover',
])
- function we(e) {
- return be.has(e)
+ function be(e) {
+ return ye.has(e)
}
- var xe = function (e) {
- return !we(e)
+ var we = function (e) {
+ return !be(e)
}
try {
- var Ee = n(6600).Z
- xe = function (e) {
- return e.startsWith('on') ? !we(e) : Ee(e)
+ var _e = n(46600).Z
+ we = function (e) {
+ return e.startsWith('on') ? !be(e) : _e(e)
}
- } catch (Co) {}
- function ke(e, t, n) {
+ } catch (Ei) {}
+ function xe(e, t, n) {
return 'string' === typeof e ? e : oe.transform(t + n * e)
}
- var _e = function (e, t) {
+ var ke = function (e, t) {
return oe.transform(e * t)
},
- Te = { offset: 'stroke-dashoffset', array: 'stroke-dasharray' },
+ Ee = { offset: 'stroke-dashoffset', array: 'stroke-dasharray' },
Oe = { offset: 'strokeDashoffset', array: 'strokeDasharray' }
- function Ce(e, t, n, i, o, a, s, u) {
- var l = t.attrX,
- c = t.attrY,
+ function Te(e, t, n, o, i, a, s, u) {
+ var c = t.attrX,
+ l = t.attrY,
d = t.originX,
f = t.originY,
h = t.pathLength,
@@ -17380,9 +31039,9 @@
v = void 0 === p ? 1 : p,
m = t.pathOffset,
g = void 0 === m ? 0 : m
- pe(
+ he(
e,
- (0, r._T)(t, [
+ (0, r.__rest)(t, [
'attrX',
'attrY',
'originX',
@@ -17392,8 +31051,8 @@
'pathOffset',
]),
n,
- i,
o,
+ i,
a,
s,
u,
@@ -17403,76 +31062,76 @@
var y = e.attrs,
b = e.style,
w = e.dimensions,
- x = e.totalPathLength
+ _ = e.totalPathLength
y.transform && (w && (b.transform = y.transform), delete y.transform),
w &&
(void 0 !== d || void 0 !== f || b.transform) &&
(b.transformOrigin = (function (e, t, n) {
- return ke(t, e.x, e.width) + ' ' + ke(n, e.y, e.height)
+ return xe(t, e.x, e.width) + ' ' + xe(n, e.y, e.height)
})(w, void 0 !== d ? d : 0.5, void 0 !== f ? f : 0.5)),
- void 0 !== l && (y.x = l),
- void 0 !== c && (y.y = c),
- void 0 !== x &&
+ void 0 !== c && (y.x = c),
+ void 0 !== l && (y.y = l),
+ void 0 !== _ &&
void 0 !== h &&
- (function (e, t, n, r, i, o) {
- void 0 === r && (r = 1), void 0 === i && (i = 0), void 0 === o && (o = !0)
- var a = o ? Te : Oe
- e[a.offset] = _e(-i, t)
- var s = _e(n, t),
- u = _e(r, t)
+ (function (e, t, n, r, o, i) {
+ void 0 === r && (r = 1), void 0 === o && (o = 0), void 0 === i && (i = !0)
+ var a = i ? Ee : Oe
+ e[a.offset] = ke(-o, t)
+ var s = ke(n, t),
+ u = ke(r, t)
e[a.array] = s + ' ' + u
- })(y, x, h, v, g, !1)
+ })(y, _, h, v, g, !1)
}
- var Se = function () {
- return (0, r.pi)(
- (0, r.pi)(
+ var Ce = function () {
+ return (0, r.__assign)(
+ (0, r.__assign)(
{},
{ style: {}, transform: {}, transformKeys: [], transformOrigin: {}, vars: {} },
),
{ attrs: {} },
)
}
- function Ae(e, t) {
- var n = (0, i.useMemo)(
+ function Me(e, t) {
+ var n = (0, o.useMemo)(
function () {
- var n = Se()
+ var n = Ce()
return (
- Ce(n, t, void 0, void 0, { enableHardwareAcceleration: !1 }, e.transformTemplate),
- (0, r.pi)((0, r.pi)({}, n.attrs), { style: (0, r.pi)({}, n.style) })
+ Te(n, t, void 0, void 0, { enableHardwareAcceleration: !1 }, e.transformTemplate),
+ (0, r.__assign)((0, r.__assign)({}, n.attrs), { style: (0, r.__assign)({}, n.style) })
)
},
[t],
)
if (e.style) {
- var o = {}
- me(o, e.style, e), (n.style = (0, r.pi)((0, r.pi)({}, o), n.style))
+ var i = {}
+ ve(i, e.style, e), (n.style = (0, r.__assign)((0, r.__assign)({}, i), n.style))
}
return n
}
- function Pe(e) {
+ function Se(e) {
void 0 === e && (e = !1)
- return function (t, n, o, a, s) {
+ return function (t, n, i, a, s) {
var u = a.latestValues,
- l = (L(t) ? Ae : ye)(n, u, s),
- c = (function (e, t, n) {
+ c = (D(t) ? Me : ge)(n, u, s),
+ l = (function (e, t, n) {
var r = {}
- for (var i in e) (xe(i) || (!0 === n && we(i)) || (!t && !we(i))) && (r[i] = e[i])
+ for (var o in e) (we(o) || (!0 === n && be(o)) || (!t && !be(o))) && (r[o] = e[o])
return r
})(n, 'string' === typeof t, e),
- d = (0, r.pi)((0, r.pi)((0, r.pi)({}, c), l), { ref: o })
- return (0, i.createElement)(t, d)
+ d = (0, r.__assign)((0, r.__assign)((0, r.__assign)({}, l), c), { ref: i })
+ return (0, o.createElement)(t, d)
}
}
- var Me = /([a-z])([A-Z])/g,
- Re = function (e) {
- return e.replace(Me, '$1-$2').toLowerCase()
+ var Pe = /([a-z])([A-Z])/g,
+ je = function (e) {
+ return e.replace(Pe, '$1-$2').toLowerCase()
}
- function je(e, t) {
+ function Ie(e, t) {
var n = t.style,
r = t.vars
- for (var i in (Object.assign(e.style, n), r)) e.style.setProperty(i, r[i])
+ for (var o in (Object.assign(e.style, n), r)) e.style.setProperty(o, r[o])
}
- var De = new Set([
+ var Ae = new Set([
'baseFrequency',
'diffuseConstant',
'kernelMatrix',
@@ -17493,38 +31152,38 @@
'viewBox',
'gradientTransform',
])
- function Le(e, t) {
- for (var n in (je(e, t), t.attrs)) e.setAttribute(De.has(n) ? n : Re(n), t.attrs[n])
+ function Re(e, t) {
+ for (var n in (Ie(e, t), t.attrs)) e.setAttribute(Ae.has(n) ? n : je(n), t.attrs[n])
}
- function Ne(e) {
+ function De(e) {
var t = e.style,
n = {}
- for (var r in t) (q(t[r]) || G(r, e)) && (n[r] = t[r])
+ for (var r in t) (G(t[r]) || U(r, e)) && (n[r] = t[r])
return n
}
- function Ie(e) {
- var t = Ne(e)
+ function Le(e) {
+ var t = De(e)
for (var n in e) {
- if (q(e[n])) t['x' === n || 'y' === n ? 'attr' + n.toUpperCase() : n] = e[n]
+ if (G(e[n])) t['x' === n || 'y' === n ? 'attr' + n.toUpperCase() : n] = e[n]
}
return t
}
- function ze(e) {
+ function Ne(e) {
return 'object' === typeof e && 'function' === typeof e.start
}
- var He = function (e) {
+ var ze = function (e) {
return Array.isArray(e)
}
function Be(e) {
var t,
- n = q(e) ? e.get() : e
+ n = G(e) ? e.get() : e
return (t = n), Boolean(t && 'object' === typeof t && t.mix && t.toValue) ? n.toValue() : n
}
- function Fe(e, t, n, r) {
- var i = e.scrapeMotionValuesFromProps,
- o = e.createRenderState,
+ function He(e, t, n, r) {
+ var o = e.scrapeMotionValuesFromProps,
+ i = e.createRenderState,
a = e.onMount,
- s = { latestValues: Ue(t, n, r, i), renderState: o() }
+ s = { latestValues: Ve(t, n, r, o), renderState: i() }
return (
a &&
(s.mount = function (e) {
@@ -17533,70 +31192,70 @@
s
)
}
- var Ve = function (e) {
+ var Fe = function (e) {
return function (t, n) {
- var r = (0, i.useContext)(d),
- o = (0, i.useContext)(f.O)
+ var r = (0, o.useContext)(d),
+ i = (0, o.useContext)(f.O)
return n
- ? Fe(e, t, r, o)
+ ? He(e, t, r, i)
: (0, h.h)(function () {
- return Fe(e, t, r, o)
+ return He(e, t, r, i)
})
}
}
- function Ue(e, t, n, i) {
- var o = {},
+ function Ve(e, t, n, o) {
+ var i = {},
a = !1 === (null === n || void 0 === n ? void 0 : n.initial),
- s = i(e)
- for (var u in s) o[u] = Be(s[u])
- var l = e.initial,
- c = e.animate,
- d = S(e),
- f = A(e)
+ s = o(e)
+ for (var u in s) i[u] = Be(s[u])
+ var c = e.initial,
+ l = e.animate,
+ d = M(e),
+ f = S(e)
t &&
f &&
!d &&
!1 !== e.inherit &&
- ((null !== l && void 0 !== l) || (l = t.initial),
- (null !== c && void 0 !== c) || (c = t.animate))
- var h = a || !1 === l ? c : l
+ ((null !== c && void 0 !== c) || (c = t.initial),
+ (null !== l && void 0 !== l) || (l = t.animate))
+ var h = a || !1 === c ? l : c
h &&
'boolean' !== typeof h &&
- !ze(h) &&
+ !Ne(h) &&
(Array.isArray(h) ? h : [h]).forEach(function (t) {
- var n = O(e, t)
+ var n = T(e, t)
if (n) {
- var i = n.transitionEnd
+ var o = n.transitionEnd
n.transition
- var a = (0, r._T)(n, ['transitionEnd', 'transition'])
- for (var s in a) o[s] = a[s]
- for (var s in i) o[s] = i[s]
+ var a = (0, r.__rest)(n, ['transitionEnd', 'transition'])
+ for (var s in a) i[s] = a[s]
+ for (var s in o) i[s] = o[s]
}
})
- return o
+ return i
}
- var Ge = {
- useVisualState: Ve({
- scrapeMotionValuesFromProps: Ie,
- createRenderState: Se,
+ var We = {
+ useVisualState: Fe({
+ scrapeMotionValuesFromProps: Le,
+ createRenderState: Ce,
onMount: function (e, t, n) {
var r = n.renderState,
- i = n.latestValues
+ o = n.latestValues
try {
r.dimensions =
'function' === typeof t.getBBox ? t.getBBox() : t.getBoundingClientRect()
- } catch (o) {
+ } catch (i) {
r.dimensions = { x: 0, y: 0, width: 0, height: 0 }
}
'path' === t.tagName && (r.totalPathLength = t.getTotalLength()),
- Ce(r, i, void 0, void 0, { enableHardwareAcceleration: !1 }, e.transformTemplate),
- Le(t, r)
+ Te(r, o, void 0, void 0, { enableHardwareAcceleration: !1 }, e.transformTemplate),
+ Re(t, r)
},
}),
}
- var qe,
- We = { useVisualState: Ve({ scrapeMotionValuesFromProps: Ne, createRenderState: ve }) }
- function Ke(e, t, n, r) {
+ var Ue,
+ Ge = { useVisualState: Fe({ scrapeMotionValuesFromProps: De, createRenderState: pe }) }
+ function qe(e, t, n, r) {
return (
e.addEventListener(t, n, r),
function () {
@@ -17604,16 +31263,16 @@
}
)
}
- function Ze(e, t, n, r) {
- ;(0, i.useEffect)(
+ function Ke(e, t, n, r) {
+ ;(0, o.useEffect)(
function () {
- var i = e.current
- if (n && i) return Ke(i, t, n, r)
+ var o = e.current
+ if (n && o) return qe(o, t, n, r)
},
[e, t, n, r],
)
}
- function $e(e) {
+ function Ze(e) {
return 'undefined' !== typeof PointerEvent && e instanceof PointerEvent
? !('mouse' !== e.pointerType)
: e instanceof MouseEvent
@@ -17628,24 +31287,24 @@
(e.Drag = 'whileDrag'),
(e.Focus = 'whileFocus'),
(e.Exit = 'exit')
- })(qe || (qe = {}))
- var Ye = { pageX: 0, pageY: 0 }
- function Qe(e, t) {
+ })(Ue || (Ue = {}))
+ var $e = { pageX: 0, pageY: 0 }
+ function Ye(e, t) {
void 0 === t && (t = 'page')
- var n = e.touches[0] || e.changedTouches[0] || Ye
+ var n = e.touches[0] || e.changedTouches[0] || $e
return { x: n[t + 'X'], y: n[t + 'Y'] }
}
- function Je(e, t) {
+ function Qe(e, t) {
return void 0 === t && (t = 'page'), { x: e[t + 'X'], y: e[t + 'Y'] }
}
- function et(e, t) {
- return void 0 === t && (t = 'page'), { point: Xe(e) ? Qe(e, t) : Je(e, t) }
+ function Je(e, t) {
+ return void 0 === t && (t = 'page'), { point: Xe(e) ? Ye(e, t) : Qe(e, t) }
}
- var tt = function (e, t) {
+ var et = function (e, t) {
void 0 === t && (t = !1)
var n,
r = function (t) {
- return e(t, et(t))
+ return e(t, Je(t))
}
return t
? ((n = r),
@@ -17655,7 +31314,7 @@
})
: r
},
- nt = {
+ tt = {
pointerdown: 'mousedown',
pointermove: 'mousemove',
pointerup: 'mouseup',
@@ -17665,28 +31324,28 @@
pointerenter: 'mouseenter',
pointerleave: 'mouseleave',
},
- rt = {
+ nt = {
pointerdown: 'touchstart',
pointermove: 'touchmove',
pointerup: 'touchend',
pointercancel: 'touchcancel',
}
- function it(e) {
+ function rt(e) {
return w && null === window.onpointerdown
? e
: w && null === window.ontouchstart
- ? rt[e]
- : w && null === window.onmousedown
? nt[e]
+ : w && null === window.onmousedown
+ ? tt[e]
: e
}
function ot(e, t, n, r) {
- return Ke(e, it(t), tt(n, 'pointerdown' === t), r)
+ return qe(e, rt(t), et(n, 'pointerdown' === t), r)
}
- function at(e, t, n, r) {
- return Ze(e, it(t), n && tt(n, 'pointerdown' === t), r)
+ function it(e, t, n, r) {
+ return Ke(e, rt(t), n && et(n, 'pointerdown' === t), r)
}
- function st(e) {
+ function at(e) {
var t = null
return function () {
return (
@@ -17698,15 +31357,15 @@
)
}
}
- var ut = st('dragHorizontal'),
- lt = st('dragVertical')
+ var st = at('dragHorizontal'),
+ ut = at('dragVertical')
function ct(e) {
var t = !1
- if ('y' === e) t = lt()
- else if ('x' === e) t = ut()
+ if ('y' === e) t = ut()
+ else if ('x' === e) t = st()
else {
- var n = ut(),
- r = lt()
+ var n = st(),
+ r = ut()
n && r
? (t = function () {
n(), r()
@@ -17715,254 +31374,232 @@
}
return t
}
- function dt() {
+ function lt() {
var e = ct(!0)
return !e || (e(), !1)
}
- function ft(e, t, n) {
- return function (r, i) {
- var o
- $e(r) &&
- !dt() &&
- (null === n || void 0 === n || n(r, i),
- null === (o = e.animationState) || void 0 === o || o.setActive(qe.Hover, t))
+ function dt(e, t, n) {
+ return function (r, o) {
+ var i
+ Ze(r) &&
+ !lt() &&
+ (null === n || void 0 === n || n(r, o),
+ null === (i = e.animationState) || void 0 === i || i.setActive(Ue.Hover, t))
}
}
- var ht = function (e, t) {
- return !!t && (e === t || ht(e, t.parentElement))
+ var ft = function (e, t) {
+ return !!t && (e === t || ft(e, t.parentElement))
},
- pt = n(6717),
- vt = function (e, t) {
+ ht = n(6717),
+ pt = function (e, t) {
return function (n) {
return t(e(n))
}
},
- mt = function () {
+ vt = function () {
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]
- return e.reduce(vt)
+ return e.reduce(pt)
}
- var gt = function (e) {
+ var mt = function (e) {
return function (t) {
return e(t), null
}
},
- yt = {
- tap: gt(function (e) {
+ gt = {
+ tap: mt(function (e) {
var t = e.onTap,
n = e.onTapStart,
r = e.onTapCancel,
- o = e.whileTap,
+ i = e.whileTap,
a = e.visualElement,
- s = t || n || r || o,
- u = (0, i.useRef)(!1),
- l = (0, i.useRef)(null)
- function c() {
+ s = t || n || r || i,
+ u = (0, o.useRef)(!1),
+ c = (0, o.useRef)(null)
+ function l() {
var e
- null === (e = l.current) || void 0 === e || e.call(l), (l.current = null)
+ null === (e = c.current) || void 0 === e || e.call(c), (c.current = null)
}
function d() {
var e
return (
- c(),
+ l(),
(u.current = !1),
- null === (e = a.animationState) || void 0 === e || e.setActive(qe.Tap, !1),
- !dt()
+ null === (e = a.animationState) || void 0 === e || e.setActive(Ue.Tap, !1),
+ !lt()
)
}
function f(e, n) {
d() &&
- (ht(a.getInstance(), e.target)
+ (ft(a.getInstance(), e.target)
? null === t || void 0 === t || t(e, n)
: null === r || void 0 === r || r(e, n))
}
function h(e, t) {
d() && (null === r || void 0 === r || r(e, t))
}
- at(
+ it(
a,
'pointerdown',
s
? function (e, t) {
var r
- c(),
+ l(),
u.current ||
((u.current = !0),
- (l.current = mt(
+ (c.current = vt(
ot(window, 'pointerup', f),
ot(window, 'pointercancel', h),
)),
null === n || void 0 === n || n(e, t),
- null === (r = a.animationState) || void 0 === r || r.setActive(qe.Tap, !0))
+ null === (r = a.animationState) || void 0 === r || r.setActive(Ue.Tap, !0))
}
: void 0,
),
- (0, pt.z)(c)
+ (0, ht.z)(l)
}),
- focus: gt(function (e) {
+ focus: mt(function (e) {
var t = e.whileFocus,
n = e.visualElement
- Ze(
+ Ke(
n,
'focus',
t
? function () {
var e
- null === (e = n.animationState) || void 0 === e || e.setActive(qe.Focus, !0)
+ null === (e = n.animationState) || void 0 === e || e.setActive(Ue.Focus, !0)
}
: void 0,
),
- Ze(
+ Ke(
n,
'blur',
t
? function () {
var e
- null === (e = n.animationState) || void 0 === e || e.setActive(qe.Focus, !1)
+ null === (e = n.animationState) || void 0 === e || e.setActive(Ue.Focus, !1)
}
: void 0,
)
}),
- hover: gt(function (e) {
+ hover: mt(function (e) {
var t = e.onHoverStart,
n = e.onHoverEnd,
r = e.whileHover,
- i = e.visualElement
- at(i, 'pointerenter', t || r ? ft(i, !0, t) : void 0),
- at(i, 'pointerleave', n || r ? ft(i, !1, n) : void 0)
+ o = e.visualElement
+ it(o, 'pointerenter', t || r ? dt(o, !0, t) : void 0),
+ it(o, 'pointerleave', n || r ? dt(o, !1, n) : void 0)
}),
}
- function bt(e, t) {
+ function yt(e, t) {
if (!Array.isArray(t)) return !1
var n = t.length
if (n !== e.length) return !1
for (var r = 0; r < n; r++) if (t[r] !== e[r]) return !1
return !0
}
- var wt = function () {
- return (wt =
- Object.assign ||
- function (e) {
- for (var t, n = 1, r = arguments.length; n < r; n++)
- for (var i in (t = arguments[n]))
- Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i])
- return e
- }).apply(this, arguments)
- }
- function xt(e, t) {
- var n = {}
- for (var r in e)
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r])
- if (null != e && 'function' === typeof Object.getOwnPropertySymbols) {
- var i = 0
- for (r = Object.getOwnPropertySymbols(e); i < r.length; i++)
- t.indexOf(r[i]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(e, r[i]) &&
- (n[r[i]] = e[r[i]])
- }
- return n
- }
- Object.create
- Object.create
- var Et = function (e, t, n) {
+ var bt = function (e, t, n) {
return Math.min(Math.max(n, e), t)
},
- kt = 0.001
+ wt = 0.001
function _t(e) {
var t,
n,
r = e.duration,
- i = void 0 === r ? 800 : r,
- o = e.bounce,
- a = void 0 === o ? 0.25 : o,
+ o = void 0 === r ? 800 : r,
+ i = e.bounce,
+ a = void 0 === i ? 0.25 : i,
s = e.velocity,
u = void 0 === s ? 0 : s,
- l = e.mass,
- c = void 0 === l ? 1 : l,
+ c = e.mass,
+ l = void 0 === c ? 1 : c,
d = 1 - a
- ;(d = Et(0.05, 1, d)),
- (i = Et(0.01, 10, i / 1e3)),
+ ;(d = bt(0.05, 1, d)),
+ (o = bt(0.01, 10, o / 1e3)),
d < 1
? ((t = function (e) {
var t = e * d,
- n = t * i,
+ n = t * o,
r = t - u,
- o = Tt(e, d),
+ i = xt(e, d),
a = Math.exp(-n)
- return kt - (r / o) * a
+ return wt - (r / i) * a
}),
(n = function (e) {
- var n = e * d * i,
+ var n = e * d * o,
r = n * u + u,
- o = Math.pow(d, 2) * Math.pow(e, 2) * i,
+ i = Math.pow(d, 2) * Math.pow(e, 2) * o,
a = Math.exp(-n),
- s = Tt(Math.pow(e, 2), d)
- return ((-t(e) + kt > 0 ? -1 : 1) * ((r - o) * a)) / s
+ s = xt(Math.pow(e, 2), d)
+ return ((-t(e) + wt > 0 ? -1 : 1) * ((r - i) * a)) / s
}))
: ((t = function (e) {
- return Math.exp(-e * i) * ((e - u) * i + 1) - 0.001
+ return Math.exp(-e * o) * ((e - u) * o + 1) - 0.001
}),
(n = function (e) {
- return Math.exp(-e * i) * (i * i * (u - e))
+ return Math.exp(-e * o) * (o * o * (u - e))
}))
var f = (function (e, t, n) {
- for (var r = n, i = 1; i < 12; i++) r -= e(r) / t(r)
+ for (var r = n, o = 1; o < 12; o++) r -= e(r) / t(r)
return r
- })(t, n, 5 / i)
- if (((i *= 1e3), isNaN(f))) return { stiffness: 100, damping: 10, duration: i }
- var h = Math.pow(f, 2) * c
- return { stiffness: h, damping: 2 * d * Math.sqrt(c * h), duration: i }
+ })(t, n, 5 / o)
+ if (((o *= 1e3), isNaN(f))) return { stiffness: 100, damping: 10, duration: o }
+ var h = Math.pow(f, 2) * l
+ return { stiffness: h, damping: 2 * d * Math.sqrt(l * h), duration: o }
}
- function Tt(e, t) {
+ function xt(e, t) {
return e * Math.sqrt(1 - t * t)
}
- var Ot = ['duration', 'bounce'],
- Ct = ['stiffness', 'damping', 'mass']
- function St(e, t) {
+ var kt = ['duration', 'bounce'],
+ Et = ['stiffness', 'damping', 'mass']
+ function Ot(e, t) {
return t.some(function (t) {
return void 0 !== e[t]
})
}
- function At(e) {
+ function Tt(e) {
var t = e.from,
n = void 0 === t ? 0 : t,
- r = e.to,
- i = void 0 === r ? 1 : r,
- o = e.restSpeed,
- a = void 0 === o ? 2 : o,
- s = e.restDelta,
- u = xt(e, ['from', 'to', 'restSpeed', 'restDelta']),
+ o = e.to,
+ i = void 0 === o ? 1 : o,
+ a = e.restSpeed,
+ s = void 0 === a ? 2 : a,
+ u = e.restDelta,
+ c = (0, r.__rest)(e, ['from', 'to', 'restSpeed', 'restDelta']),
l = { done: !1, value: n },
- c = (function (e) {
- var t = wt(
+ d = (function (e) {
+ var t = (0, r.__assign)(
{ velocity: 0, stiffness: 100, damping: 10, mass: 1, isResolvedFromDuration: !1 },
e,
)
- if (!St(e, Ct) && St(e, Ot)) {
+ if (!Ot(e, Et) && Ot(e, kt)) {
var n = _t(e)
- ;(t = wt(wt(wt({}, t), n), { velocity: 0, mass: 1 })).isResolvedFromDuration = !0
+ ;(t = (0, r.__assign)((0, r.__assign)((0, r.__assign)({}, t), n), {
+ velocity: 0,
+ mass: 1,
+ })).isResolvedFromDuration = !0
}
return t
- })(u),
- d = c.stiffness,
- f = c.damping,
- h = c.mass,
- p = c.velocity,
- v = c.duration,
- m = c.isResolvedFromDuration,
- g = Pt,
- y = Pt
- function b() {
- var e = p ? -p / 1e3 : 0,
+ })(c),
+ f = d.stiffness,
+ h = d.damping,
+ p = d.mass,
+ v = d.velocity,
+ m = d.duration,
+ g = d.isResolvedFromDuration,
+ y = Ct,
+ b = Ct
+ function w() {
+ var e = v ? -v / 1e3 : 0,
t = i - n,
- r = f / (2 * Math.sqrt(d * h)),
- o = Math.sqrt(d / h) / 1e3
- if (((null !== s && void 0 !== s) || (s = Math.abs(i - n) <= 1 ? 0.01 : 0.4), r < 1)) {
- var a = Tt(o, r)
- ;(g = function (n) {
+ r = h / (2 * Math.sqrt(f * p)),
+ o = Math.sqrt(f / p) / 1e3
+ if (((null !== u && void 0 !== u) || (u = Math.abs(i - n) <= 1 ? 0.01 : 0.4), r < 1)) {
+ var a = xt(o, r)
+ ;(y = function (n) {
var s = Math.exp(-r * o * n)
return i - s * (((e + r * o * t) / a) * Math.sin(a * n) + t * Math.cos(a * n))
}),
- (y = function (n) {
+ (b = function (n) {
var i = Math.exp(-r * o * n)
return (
r * o * i * ((Math.sin(a * n) * (e + r * o * t)) / a + t * Math.cos(a * n)) -
@@ -17970,416 +31607,411 @@
)
})
} else if (1 === r)
- g = function (n) {
+ y = function (n) {
return i - Math.exp(-o * n) * (t + (e + o * t) * n)
}
else {
- var u = o * Math.sqrt(r * r - 1)
- g = function (n) {
+ var s = o * Math.sqrt(r * r - 1)
+ y = function (n) {
var a = Math.exp(-r * o * n),
- s = Math.min(u * n, 300)
- return i - (a * ((e + r * o * t) * Math.sinh(s) + u * t * Math.cosh(s))) / u
+ u = Math.min(s * n, 300)
+ return i - (a * ((e + r * o * t) * Math.sinh(u) + s * t * Math.cosh(u))) / s
}
}
}
return (
- b(),
+ w(),
{
next: function (e) {
- var t = g(e)
- if (m) l.done = e >= v
+ var t = y(e)
+ if (g) l.done = e >= m
else {
- var n = 1e3 * y(e),
- r = Math.abs(n) <= a,
- o = Math.abs(i - t) <= s
+ var n = 1e3 * b(e),
+ r = Math.abs(n) <= s,
+ o = Math.abs(i - t) <= u
l.done = r && o
}
return (l.value = l.done ? i : t), l
},
flipTarget: function () {
var e
- ;(p = -p), (n = (e = [i, n])[0]), (i = e[1]), b()
+ ;(v = -v), (n = (e = [i, n])[0]), (i = e[1]), w()
},
}
)
}
- At.needsInterpolation = function (e, t) {
+ Tt.needsInterpolation = function (e, t) {
return 'string' === typeof e || 'string' === typeof t
}
- var Pt = function (e) {
+ var Ct = function (e) {
return 0
},
Mt = function (e, t, n) {
var r = t - e
return 0 === r ? 1 : (n - e) / r
},
- Rt = function (e, t, n) {
+ St = function (e, t, n) {
return -n * e + n * t + e
},
- jt = function (e, t) {
+ Pt = function (e, t) {
return function (n) {
return Boolean(
- (te(n) && ee.test(n) && n.startsWith(e)) ||
+ (ee(n) && J.test(n) && n.startsWith(e)) ||
(t && Object.prototype.hasOwnProperty.call(n, t)),
)
}
},
- Dt = function (e, t, n) {
+ jt = function (e, t, n) {
return function (r) {
- var i
- if (!te(r)) return r
- var o = r.match(Q),
- a = o[0],
- s = o[1],
- u = o[2],
- l = o[3]
+ var o
+ if (!ee(r)) return r
+ var i = r.match(Y),
+ a = i[0],
+ s = i[1],
+ u = i[2],
+ c = i[3]
return (
- ((i = {})[e] = parseFloat(a)),
- (i[t] = parseFloat(s)),
- (i[n] = parseFloat(u)),
- (i.alpha = void 0 !== l ? parseFloat(l) : 1),
- i
+ ((o = {})[e] = parseFloat(a)),
+ (o[t] = parseFloat(s)),
+ (o[n] = parseFloat(u)),
+ (o.alpha = void 0 !== c ? parseFloat(c) : 1),
+ o
)
}
},
- Lt = X(0, 255),
- Nt = $($({}, le), {
+ It = X(0, 255),
+ At = (0, r.__assign)((0, r.__assign)({}, ue), {
transform: function (e) {
- return Math.round(Lt(e))
+ return Math.round(It(e))
},
}),
- It = {
- test: jt('rgb', 'red'),
- parse: Dt('red', 'green', 'blue'),
+ Rt = {
+ test: Pt('rgb', 'red'),
+ parse: jt('red', 'green', 'blue'),
transform: function (e) {
var t = e.red,
n = e.green,
r = e.blue,
- i = e.alpha,
- o = void 0 === i ? 1 : i
+ o = e.alpha,
+ i = void 0 === o ? 1 : o
return (
'rgba(' +
- Nt.transform(t) +
+ At.transform(t) +
', ' +
- Nt.transform(n) +
+ At.transform(n) +
', ' +
- Nt.transform(r) +
+ At.transform(r) +
', ' +
- Y(ce.transform(o)) +
+ $(ce.transform(i)) +
')'
)
},
}
- var zt = {
- test: jt('#'),
+ var Dt = {
+ test: Pt('#'),
parse: function (e) {
var t = '',
n = '',
r = '',
- i = ''
+ o = ''
return (
e.length > 5
? ((t = e.substr(1, 2)),
(n = e.substr(3, 2)),
(r = e.substr(5, 2)),
- (i = e.substr(7, 2)))
+ (o = e.substr(7, 2)))
: ((t = e.substr(1, 1)),
(n = e.substr(2, 1)),
(r = e.substr(3, 1)),
- (i = e.substr(4, 1)),
+ (o = e.substr(4, 1)),
(t += t),
(n += n),
(r += r),
- (i += i)),
+ (o += o)),
{
red: parseInt(t, 16),
green: parseInt(n, 16),
blue: parseInt(r, 16),
- alpha: i ? parseInt(i, 16) / 255 : 1,
+ alpha: o ? parseInt(o, 16) / 255 : 1,
}
)
},
- transform: It.transform,
+ transform: Rt.transform,
},
- Ht = {
- test: jt('hsl', 'hue'),
- parse: Dt('hue', 'saturation', 'lightness'),
+ Lt = {
+ test: Pt('hsl', 'hue'),
+ parse: jt('hue', 'saturation', 'lightness'),
transform: function (e) {
var t = e.hue,
n = e.saturation,
r = e.lightness,
- i = e.alpha,
- o = void 0 === i ? 1 : i
+ o = e.alpha,
+ i = void 0 === o ? 1 : o
return (
'hsla(' +
Math.round(t) +
', ' +
- ie.transform(Y(n)) +
+ re.transform($(n)) +
', ' +
- ie.transform(Y(r)) +
+ re.transform($(r)) +
', ' +
- Y(ce.transform(o)) +
+ $(ce.transform(i)) +
')'
)
},
},
- Bt = function (e, t, n) {
+ Nt = function (e, t, n) {
var r = e * e,
- i = t * t
- return Math.sqrt(Math.max(0, n * (i - r) + r))
+ o = t * t
+ return Math.sqrt(Math.max(0, n * (o - r) + r))
},
- Ft = [zt, It, Ht],
- Vt = function (e) {
- return Ft.find(function (t) {
+ zt = [Dt, Rt, Lt],
+ Bt = function (e) {
+ return zt.find(function (t) {
return t.test(e)
})
},
- Ut = function (e) {
+ Ht = function (e) {
return "'" + e + "' is not an animatable color. Use the equivalent color code instead."
},
- Gt = function (e, t) {
- var n = Vt(e),
- r = Vt(t)
- Ut(e), Ut(t), n.transform, r.transform
+ Ft = function (e, t) {
+ var n = Bt(e),
+ o = Bt(t)
+ Ht(e), Ht(t), n.transform, o.transform
var i = n.parse(e),
- o = r.parse(t),
- a = wt({}, i),
- s = n === Ht ? Rt : Bt
+ a = o.parse(t),
+ s = (0, r.__assign)({}, i),
+ u = n === Lt ? St : Nt
return function (e) {
- for (var t in a) 'alpha' !== t && (a[t] = s(i[t], o[t], e))
- return (a.alpha = Rt(i.alpha, o.alpha, e)), n.transform(a)
+ for (var t in s) 'alpha' !== t && (s[t] = u(i[t], a[t], e))
+ return (s.alpha = St(i.alpha, a.alpha, e)), n.transform(s)
}
},
- qt = {
+ Vt = {
test: function (e) {
- return It.test(e) || zt.test(e) || Ht.test(e)
+ return Rt.test(e) || Dt.test(e) || Lt.test(e)
},
parse: function (e) {
- return It.test(e) ? It.parse(e) : Ht.test(e) ? Ht.parse(e) : zt.parse(e)
+ return Rt.test(e) ? Rt.parse(e) : Lt.test(e) ? Lt.parse(e) : Dt.parse(e)
},
transform: function (e) {
- return te(e) ? e : e.hasOwnProperty('red') ? It.transform(e) : Ht.transform(e)
+ return ee(e) ? e : e.hasOwnProperty('red') ? Rt.transform(e) : Lt.transform(e)
},
},
Wt = '${c}',
- Kt = '${n}'
- function Zt(e) {
+ Ut = '${n}'
+ function Gt(e) {
var t = [],
n = 0,
- r = e.match(J)
- r && ((n = r.length), (e = e.replace(J, Wt)), t.push.apply(t, r.map(qt.parse)))
- var i = e.match(Q)
+ r = e.match(Q)
+ r && ((n = r.length), (e = e.replace(Q, Wt)), t.push.apply(t, r.map(Vt.parse)))
+ var o = e.match(Y)
return (
- i && ((e = e.replace(Q, Kt)), t.push.apply(t, i.map(le.parse))),
+ o && ((e = e.replace(Y, Ut)), t.push.apply(t, o.map(ue.parse))),
{ values: t, numColors: n, tokenised: e }
)
}
- function $t(e) {
- return Zt(e).values
+ function qt(e) {
+ return Gt(e).values
}
- function Xt(e) {
- var t = Zt(e),
+ function Kt(e) {
+ var t = Gt(e),
n = t.values,
r = t.numColors,
- i = t.tokenised,
- o = n.length
+ o = t.tokenised,
+ i = n.length
return function (e) {
- for (var t = i, n = 0; n < o; n++)
- t = t.replace(n < r ? Wt : Kt, n < r ? qt.transform(e[n]) : Y(e[n]))
+ for (var t = o, n = 0; n < i; n++)
+ t = t.replace(n < r ? Wt : Ut, n < r ? Vt.transform(e[n]) : $(e[n]))
return t
}
}
- var Yt = function (e) {
+ var Zt = function (e) {
return 'number' === typeof e ? 0 : e
}
- var Qt = {
+ var Xt = {
test: function (e) {
- var t, n, r, i
+ var t, n, r, o
return (
isNaN(e) &&
- te(e) &&
- (null !== (n = null === (t = e.match(Q)) || void 0 === t ? void 0 : t.length) &&
+ ee(e) &&
+ (null !== (n = null === (t = e.match(Y)) || void 0 === t ? void 0 : t.length) &&
void 0 !== n
? n
: 0) +
- (null !== (i = null === (r = e.match(J)) || void 0 === r ? void 0 : r.length) &&
- void 0 !== i
- ? i
+ (null !== (o = null === (r = e.match(Q)) || void 0 === r ? void 0 : r.length) &&
+ void 0 !== o
+ ? o
: 0) >
0
)
},
- parse: $t,
- createTransformer: Xt,
+ parse: qt,
+ createTransformer: Kt,
getAnimatableNone: function (e) {
- var t = $t(e)
- return Xt(e)(t.map(Yt))
+ var t = qt(e)
+ return Kt(e)(t.map(Zt))
},
},
- Jt = function (e) {
+ $t = function (e) {
return 'number' === typeof e
}
- function en(e, t) {
- return Jt(e)
+ function Yt(e, t) {
+ return $t(e)
? function (n) {
- return Rt(e, t, n)
+ return St(e, t, n)
}
- : qt.test(e)
- ? Gt(e, t)
- : on(e, t)
+ : Vt.test(e)
+ ? Ft(e, t)
+ : tn(e, t)
}
- var tn = function (e, t) {
- var n = (function (e, t, n) {
- if (n || 2 === arguments.length)
- for (var r, i = 0, o = t.length; i < o; i++)
- (!r && i in t) || (r || (r = Array.prototype.slice.call(t, 0, i)), (r[i] = t[i]))
- return e.concat(r || t)
- })([], e),
- r = n.length,
+ var Qt = function (e, t) {
+ var n = (0, r.__spreadArray)([], e),
+ o = n.length,
i = e.map(function (e, n) {
- return en(e, t[n])
+ return Yt(e, t[n])
})
return function (e) {
- for (var t = 0; t < r; t++) n[t] = i[t](e)
+ for (var t = 0; t < o; t++) n[t] = i[t](e)
return n
}
},
- nn = function (e, t) {
- var n = wt(wt({}, e), t),
- r = {}
- for (var i in n) void 0 !== e[i] && void 0 !== t[i] && (r[i] = en(e[i], t[i]))
+ Jt = function (e, t) {
+ var n = (0, r.__assign)((0, r.__assign)({}, e), t),
+ o = {}
+ for (var i in n) void 0 !== e[i] && void 0 !== t[i] && (o[i] = Yt(e[i], t[i]))
return function (e) {
- for (var t in r) n[t] = r[t](e)
+ for (var t in o) n[t] = o[t](e)
return n
}
}
- function rn(e) {
- for (var t = Qt.parse(e), n = t.length, r = 0, i = 0, o = 0, a = 0; a < n; a++)
- r || 'number' === typeof t[a] ? r++ : void 0 !== t[a].hue ? o++ : i++
- return { parsed: t, numNumbers: r, numRGB: i, numHSL: o }
+ function en(e) {
+ for (var t = Xt.parse(e), n = t.length, r = 0, o = 0, i = 0, a = 0; a < n; a++)
+ r || 'number' === typeof t[a] ? r++ : void 0 !== t[a].hue ? i++ : o++
+ return { parsed: t, numNumbers: r, numRGB: o, numHSL: i }
}
- var on = function (e, t) {
- var n = Qt.createTransformer(t),
- r = rn(e),
- i = rn(t)
+ var tn = function (e, t) {
+ var n = Xt.createTransformer(t),
+ r = en(e),
+ o = en(t)
return (
- r.numHSL === i.numHSL && r.numRGB === i.numRGB && (r.numNumbers, i.numNumbers),
- mt(tn(r.parsed, i.parsed), n)
+ r.numHSL === o.numHSL && r.numRGB === o.numRGB && (r.numNumbers, o.numNumbers),
+ vt(Qt(r.parsed, o.parsed), n)
)
},
- an = function (e, t) {
+ nn = function (e, t) {
return function (n) {
- return Rt(e, t, n)
+ return St(e, t, n)
}
}
- function sn(e, t, n) {
+ function rn(e, t, n) {
for (
var r,
- i = [],
- o =
+ o = [],
+ i =
n ||
('number' === typeof (r = e[0])
- ? an
+ ? nn
: 'string' === typeof r
- ? qt.test(r)
- ? Gt
- : on
+ ? Vt.test(r)
+ ? Ft
+ : tn
: Array.isArray(r)
- ? tn
+ ? Qt
: 'object' === typeof r
- ? nn
+ ? Jt
: void 0),
a = e.length - 1,
s = 0;
s < a;
s++
) {
- var u = o(e[s], e[s + 1])
+ var u = i(e[s], e[s + 1])
if (t) {
- var l = Array.isArray(t) ? t[s] : t
- u = mt(l, u)
+ var c = Array.isArray(t) ? t[s] : t
+ u = vt(c, u)
}
- i.push(u)
+ o.push(u)
}
- return i
+ return o
}
- function un(e, t, n) {
+ function on(e, t, n) {
var r = void 0 === n ? {} : n,
- i = r.clamp,
- o = void 0 === i || i,
+ o = r.clamp,
+ i = void 0 === o || o,
a = r.ease,
s = r.mixer,
u = e.length
t.length,
!a || !Array.isArray(a) || a.length,
e[0] > e[u - 1] && ((e = [].concat(e)), (t = [].concat(t)), e.reverse(), t.reverse())
- var l = sn(t, a, s),
- c =
+ var c = rn(t, a, s),
+ l =
2 === u
? (function (e, t) {
var n = e[0],
r = e[1],
- i = t[0]
+ o = t[0]
return function (e) {
- return i(Mt(n, r, e))
+ return o(Mt(n, r, e))
}
- })(e, l)
+ })(e, c)
: (function (e, t) {
var n = e.length,
r = n - 1
- return function (i) {
- var o = 0,
+ return function (o) {
+ var i = 0,
a = !1
- if ((i <= e[0] ? (a = !0) : i >= e[r] && ((o = r - 1), (a = !0)), !a)) {
- for (var s = 1; s < n && !(e[s] > i || s === r); s++);
- o = s - 1
+ if ((o <= e[0] ? (a = !0) : o >= e[r] && ((i = r - 1), (a = !0)), !a)) {
+ for (var s = 1; s < n && !(e[s] > o || s === r); s++);
+ i = s - 1
}
- var u = Mt(e[o], e[o + 1], i)
- return t[o](u)
+ var u = Mt(e[i], e[i + 1], o)
+ return t[i](u)
}
- })(e, l)
- return o
+ })(e, c)
+ return i
? function (t) {
- return c(Et(e[0], e[u - 1], t))
+ return l(bt(e[0], e[u - 1], t))
}
- : c
+ : l
}
- var ln,
- cn = function (e) {
+ var an,
+ sn = function (e) {
return function (t) {
return 1 - e(1 - t)
}
},
- dn = function (e) {
+ un = function (e) {
return function (t) {
return t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2
}
},
- fn = function (e) {
+ cn = function (e) {
return function (t) {
return t * t * ((e + 1) * t - e)
}
},
- hn = function (e) {
+ ln = function (e) {
return e
},
- pn =
- ((ln = 2),
+ dn =
+ ((an = 2),
function (e) {
- return Math.pow(e, ln)
+ return Math.pow(e, an)
}),
- vn = cn(pn),
- mn = dn(pn),
- gn = function (e) {
+ fn = sn(dn),
+ hn = un(dn),
+ pn = function (e) {
return 1 - Math.sin(Math.acos(e))
},
- yn = cn(gn),
- bn = dn(yn),
- wn = fn(1.525),
- xn = cn(wn),
- En = dn(wn),
- kn = (function (e) {
- var t = fn(e)
+ vn = sn(pn),
+ mn = un(vn),
+ gn = cn(1.525),
+ yn = sn(gn),
+ bn = un(gn),
+ wn = (function (e) {
+ var t = cn(e)
return function (e) {
return (e *= 2) < 1 ? 0.5 * t(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1)))
}
@@ -18395,86 +32027,86 @@
? 12.066481994459833 * t - 19.63545706371191 * e + 8.898060941828255
: 10.8 * e * e - 20.52 * e + 10.72
},
- Tn = cn(_n)
- function On(e, t) {
+ xn = sn(_n)
+ function kn(e, t) {
return e
.map(function () {
- return t || mn
+ return t || hn
})
.splice(0, e.length - 1)
}
- function Cn(e) {
+ function En(e) {
var t = e.from,
n = void 0 === t ? 0 : t,
r = e.to,
- i = void 0 === r ? 1 : r,
- o = e.ease,
+ o = void 0 === r ? 1 : r,
+ i = e.ease,
a = e.offset,
s = e.duration,
u = void 0 === s ? 300 : s,
- l = { done: !1, value: n },
- c = Array.isArray(i) ? i : [n, i],
+ c = { done: !1, value: n },
+ l = Array.isArray(o) ? o : [n, o],
d = (function (e, t) {
return e.map(function (e) {
return e * t
})
})(
- a && a.length === c.length
+ a && a.length === l.length
? a
: (function (e) {
var t = e.length
return e.map(function (e, n) {
return 0 !== n ? n / (t - 1) : 0
})
- })(c),
+ })(l),
u,
)
function f() {
- return un(d, c, { ease: Array.isArray(o) ? o : On(c, o) })
+ return on(d, l, { ease: Array.isArray(i) ? i : kn(l, i) })
}
var h = f()
return {
next: function (e) {
- return (l.value = h(e)), (l.done = e >= u), l
+ return (c.value = h(e)), (c.done = e >= u), c
},
flipTarget: function () {
- c.reverse(), (h = f())
+ l.reverse(), (h = f())
},
}
}
- var Sn = {
- keyframes: Cn,
- spring: At,
+ var On = {
+ keyframes: En,
+ spring: Tt,
decay: function (e) {
var t = e.velocity,
n = void 0 === t ? 0 : t,
r = e.from,
- i = void 0 === r ? 0 : r,
- o = e.power,
- a = void 0 === o ? 0.8 : o,
+ o = void 0 === r ? 0 : r,
+ i = e.power,
+ a = void 0 === i ? 0.8 : i,
s = e.timeConstant,
u = void 0 === s ? 350 : s,
- l = e.restDelta,
- c = void 0 === l ? 0.5 : l,
+ c = e.restDelta,
+ l = void 0 === c ? 0.5 : c,
d = e.modifyTarget,
- f = { done: !1, value: i },
+ f = { done: !1, value: o },
h = a * n,
- p = i + h,
+ p = o + h,
v = void 0 === d ? p : d(p)
return (
- v !== p && (h = v - i),
+ v !== p && (h = v - o),
{
next: function (e) {
var t = -h * Math.exp(-e / u)
- return (f.done = !(t > c || t < -c)), (f.value = f.done ? v : v + t), f
+ return (f.done = !(t > l || t < -l)), (f.value = f.done ? v : v + t), f
},
flipTarget: function () {},
}
)
},
}
- var An = n(9839)
- function Pn(e, t, n) {
+ var Tn = n(9839)
+ function Cn(e, t, n) {
return void 0 === n && (n = 0), e - t - n
}
var Mn = function (e) {
@@ -18484,38 +32116,38 @@
}
return {
start: function () {
- return An.ZP.update(t, !0)
+ return Tn.ZP.update(t, !0)
},
stop: function () {
- return An.qY.update(t)
+ return Tn.qY.update(t)
},
}
}
- function Rn(e) {
+ function Sn(e) {
var t,
n,
- r,
- i,
o,
- a = e.from,
- s = e.autoplay,
- u = void 0 === s || s,
+ i,
+ a,
+ s = e.from,
+ u = e.autoplay,
+ c = void 0 === u || u,
l = e.driver,
- c = void 0 === l ? Mn : l,
- d = e.elapsed,
- f = void 0 === d ? 0 : d,
- h = e.repeat,
- p = void 0 === h ? 0 : h,
- v = e.repeatType,
- m = void 0 === v ? 'loop' : v,
- g = e.repeatDelay,
- y = void 0 === g ? 0 : g,
- b = e.onPlay,
- w = e.onStop,
+ d = void 0 === l ? Mn : l,
+ f = e.elapsed,
+ h = void 0 === f ? 0 : f,
+ p = e.repeat,
+ v = void 0 === p ? 0 : p,
+ m = e.repeatType,
+ g = void 0 === m ? 'loop' : m,
+ y = e.repeatDelay,
+ b = void 0 === y ? 0 : y,
+ w = e.onPlay,
+ _ = e.onStop,
x = e.onComplete,
- E = e.onRepeat,
- k = e.onUpdate,
- _ = xt(e, [
+ k = e.onRepeat,
+ E = e.onUpdate,
+ O = (0, r.__rest)(e, [
'from',
'autoplay',
'driver',
@@ -18529,155 +32161,155 @@
'onRepeat',
'onUpdate',
]),
- T = _.to,
- O = 0,
- C = _.duration,
+ T = O.to,
+ C = 0,
+ M = O.duration,
S = !1,
- A = !0,
- P = (function (e) {
- if (Array.isArray(e.to)) return Cn
- if (Sn[e.type]) return Sn[e.type]
+ P = !0,
+ j = (function (e) {
+ if (Array.isArray(e.to)) return En
+ if (On[e.type]) return On[e.type]
var t = new Set(Object.keys(e))
return t.has('ease') || (t.has('duration') && !t.has('dampingRatio'))
- ? Cn
+ ? En
: t.has('dampingRatio') ||
t.has('stiffness') ||
t.has('mass') ||
t.has('damping') ||
t.has('restSpeed') ||
t.has('restDelta')
- ? At
- : Cn
- })(_)
- ;(null === (n = (t = P).needsInterpolation) || void 0 === n ? void 0 : n.call(t, a, T)) &&
- ((o = un([0, 100], [a, T], { clamp: !1 })), (a = 0), (T = 100))
- var M = P(wt(wt({}, _), { from: a, to: T }))
- function R() {
- O++,
- 'reverse' === m
- ? (f = (function (e, t, n, r) {
+ ? Tt
+ : En
+ })(O)
+ ;(null === (n = (t = j).needsInterpolation) || void 0 === n ? void 0 : n.call(t, s, T)) &&
+ ((a = on([0, 100], [s, T], { clamp: !1 })), (s = 0), (T = 100))
+ var I = j((0, r.__assign)((0, r.__assign)({}, O), { from: s, to: T }))
+ function A() {
+ C++,
+ 'reverse' === g
+ ? (h = (function (e, t, n, r) {
return (
void 0 === n && (n = 0),
void 0 === r && (r = !0),
- r ? Pn(t + -e, t, n) : t - (e - t) + n
+ r ? Cn(t + -e, t, n) : t - (e - t) + n
)
- })(f, C, y, (A = O % 2 === 0)))
- : ((f = Pn(f, C, y)), 'mirror' === m && M.flipTarget()),
+ })(h, M, b, (P = C % 2 === 0)))
+ : ((h = Cn(h, M, b)), 'mirror' === g && I.flipTarget()),
(S = !1),
- E && E()
+ k && k()
}
- function j(e) {
- if ((A || (e = -e), (f += e), !S)) {
- var t = M.next(Math.max(0, f))
- ;(i = t.value), o && (i = o(i)), (S = A ? t.done : f <= 0)
+ function R(e) {
+ if ((P || (e = -e), (h += e), !S)) {
+ var t = I.next(Math.max(0, h))
+ ;(i = t.value), a && (i = a(i)), (S = P ? t.done : h <= 0)
}
- null === k || void 0 === k || k(i),
+ null === E || void 0 === E || E(i),
S &&
- (0 === O && ((null !== C && void 0 !== C) || (C = f)),
- O < p
+ (0 === C && ((null !== M && void 0 !== M) || (M = h)),
+ C < v
? (function (e, t, n, r) {
return r ? e >= t + n : e <= -n
- })(f, C, y, A) && R()
- : (r.stop(), x && x()))
+ })(h, M, b, P) && A()
+ : (o.stop(), x && x()))
}
return (
- u && (null === b || void 0 === b || b(), (r = c(j)).start()),
+ c && (null === w || void 0 === w || w(), (o = d(R)).start()),
{
stop: function () {
- null === w || void 0 === w || w(), r.stop()
+ null === _ || void 0 === _ || _(), o.stop()
},
}
)
}
- function jn(e, t) {
+ function Pn(e, t) {
return t ? e * (1e3 / t) : 0
}
- var Dn = function (e) {
+ var jn = function (e) {
return 1e3 * e
},
- Ln = function (e, t) {
+ In = function (e, t) {
return 1 - 3 * t + 3 * e
},
- Nn = function (e, t) {
+ An = function (e, t) {
return 3 * t - 6 * e
},
- In = function (e) {
+ Rn = function (e) {
return 3 * e
},
- zn = function (e, t, n) {
- return ((Ln(t, n) * e + Nn(t, n)) * e + In(t)) * e
+ Dn = function (e, t, n) {
+ return ((In(t, n) * e + An(t, n)) * e + Rn(t)) * e
},
- Hn = function (e, t, n) {
- return 3 * Ln(t, n) * e * e + 2 * Nn(t, n) * e + In(t)
+ Ln = function (e, t, n) {
+ return 3 * In(t, n) * e * e + 2 * An(t, n) * e + Rn(t)
}
- var Bn = 0.1
- function Fn(e, t, n, r) {
- if (e === t && n === r) return hn
- for (var i = new Float32Array(11), o = 0; o < 11; ++o) i[o] = zn(o * Bn, e, n)
+ var Nn = 0.1
+ function zn(e, t, n, r) {
+ if (e === t && n === r) return ln
+ for (var o = new Float32Array(11), i = 0; i < 11; ++i) o[i] = Dn(i * Nn, e, n)
function a(t) {
- for (var r = 0, o = 1; 10 !== o && i[o] <= t; ++o) r += Bn
- --o
- var a = r + ((t - i[o]) / (i[o + 1] - i[o])) * Bn,
- s = Hn(a, e, n)
+ for (var r = 0, i = 1; 10 !== i && o[i] <= t; ++i) r += Nn
+ --i
+ var a = r + ((t - o[i]) / (o[i + 1] - o[i])) * Nn,
+ s = Ln(a, e, n)
return s >= 0.001
? (function (e, t, n, r) {
- for (var i = 0; i < 8; ++i) {
- var o = Hn(t, n, r)
- if (0 === o) return t
- t -= (zn(t, n, r) - e) / o
+ for (var o = 0; o < 8; ++o) {
+ var i = Ln(t, n, r)
+ if (0 === i) return t
+ t -= (Dn(t, n, r) - e) / i
}
return t
})(t, a, e, n)
: 0 === s
? a
- : (function (e, t, n, r, i) {
- var o,
+ : (function (e, t, n, r, o) {
+ var i,
a,
s = 0
do {
- ;(o = zn((a = t + (n - t) / 2), r, i) - e) > 0 ? (n = a) : (t = a)
- } while (Math.abs(o) > 1e-7 && ++s < 10)
+ ;(i = Dn((a = t + (n - t) / 2), r, o) - e) > 0 ? (n = a) : (t = a)
+ } while (Math.abs(i) > 1e-7 && ++s < 10)
return a
- })(t, r, r + Bn, e, n)
+ })(t, r, r + Nn, e, n)
}
return function (e) {
- return 0 === e || 1 === e ? e : zn(a(e), t, r)
- }
- }
- var Vn = {
- linear: hn,
- easeIn: pn,
- easeInOut: mn,
- easeOut: vn,
- circIn: gn,
- circInOut: bn,
- circOut: yn,
- backIn: wn,
- backInOut: En,
- backOut: xn,
- anticipate: kn,
- bounceIn: Tn,
+ return 0 === e || 1 === e ? e : Dn(a(e), t, r)
+ }
+ }
+ var Bn = {
+ linear: ln,
+ easeIn: dn,
+ easeInOut: hn,
+ easeOut: fn,
+ circIn: pn,
+ circInOut: mn,
+ circOut: vn,
+ backIn: gn,
+ backInOut: bn,
+ backOut: yn,
+ anticipate: wn,
+ bounceIn: xn,
bounceInOut: function (e) {
return e < 0.5 ? 0.5 * (1 - _n(1 - 2 * e)) : 0.5 * _n(2 * e - 1) + 0.5
},
bounceOut: _n,
},
- Un = function (e) {
+ Hn = function (e) {
if (Array.isArray(e)) {
e.length
- var t = (0, r.CR)(e, 4)
- return Fn(t[0], t[1], t[2], t[3])
+ var t = (0, r.__read)(e, 4)
+ return zn(t[0], t[1], t[2], t[3])
}
- return 'string' === typeof e ? Vn[e] : e
+ return 'string' === typeof e ? Bn[e] : e
},
- Gn = function (e, t) {
+ Fn = function (e, t) {
return (
'zIndex' !== e &&
(!('number' !== typeof t && !Array.isArray(t)) ||
- !('string' !== typeof t || !Qt.test(t) || t.startsWith('url(')))
+ !('string' !== typeof t || !Xt.test(t) || t.startsWith('url(')))
)
},
- qn = function () {
+ Vn = function () {
return { type: 'spring', stiffness: 500, damping: 25, restDelta: 0.5, restSpeed: 10 }
},
Wn = function (e) {
@@ -18689,112 +32321,112 @@
restSpeed: 10,
}
},
- Kn = function () {
+ Un = function () {
return { type: 'keyframes', ease: 'linear', duration: 0.3 }
},
- Zn = function (e) {
+ Gn = function (e) {
return { type: 'keyframes', duration: 0.8, values: e }
},
- $n = {
- x: qn,
- y: qn,
- z: qn,
- rotate: qn,
- rotateX: qn,
- rotateY: qn,
- rotateZ: qn,
+ qn = {
+ x: Vn,
+ y: Vn,
+ z: Vn,
+ rotate: Vn,
+ rotateX: Vn,
+ rotateY: Vn,
+ rotateZ: Vn,
scaleX: Wn,
scaleY: Wn,
scale: Wn,
- opacity: Kn,
- backgroundColor: Kn,
- color: Kn,
+ opacity: Un,
+ backgroundColor: Un,
+ color: Un,
default: Wn,
},
- Xn = new Set(['brightness', 'contrast', 'saturate', 'opacity'])
- function Yn(e) {
+ Kn = new Set(['brightness', 'contrast', 'saturate', 'opacity'])
+ function Zn(e) {
var t = e.slice(0, -1).split('('),
n = t[0],
r = t[1]
if ('drop-shadow' === n) return e
- var i = (r.match(Q) || [])[0]
- if (!i) return e
- var o = r.replace(i, ''),
- a = Xn.has(n) ? 1 : 0
- return i !== r && (a *= 100), n + '(' + a + o + ')'
- }
- var Qn = /([a-z-]*)\(.*?\)/g,
- Jn = $($({}, Qt), {
+ var o = (r.match(Y) || [])[0]
+ if (!o) return e
+ var i = r.replace(o, ''),
+ a = Kn.has(n) ? 1 : 0
+ return o !== r && (a *= 100), n + '(' + a + i + ')'
+ }
+ var Xn = /([a-z-]*)\(.*?\)/g,
+ $n = (0, r.__assign)((0, r.__assign)({}, Xt), {
getAnimatableNone: function (e) {
- var t = e.match(Qn)
- return t ? t.map(Yn).join(' ') : e
+ var t = e.match(Xn)
+ return t ? t.map(Zn).join(' ') : e
},
}),
- er = (0, r.pi)((0, r.pi)({}, he), {
- color: qt,
- backgroundColor: qt,
- outlineColor: qt,
- fill: qt,
- stroke: qt,
- borderColor: qt,
- borderTopColor: qt,
- borderRightColor: qt,
- borderBottomColor: qt,
- borderLeftColor: qt,
- filter: Jn,
- WebkitFilter: Jn,
+ Yn = (0, r.__assign)((0, r.__assign)({}, fe), {
+ color: Vt,
+ backgroundColor: Vt,
+ outlineColor: Vt,
+ fill: Vt,
+ stroke: Vt,
+ borderColor: Vt,
+ borderTopColor: Vt,
+ borderRightColor: Vt,
+ borderBottomColor: Vt,
+ borderLeftColor: Vt,
+ filter: $n,
+ WebkitFilter: $n,
}),
- tr = function (e) {
- return er[e]
+ Qn = function (e) {
+ return Yn[e]
}
- function nr(e, t) {
+ function Jn(e, t) {
var n,
- r = tr(e)
+ r = Qn(e)
return (
- r !== Jn && (r = Qt),
+ r !== $n && (r = Xt),
null === (n = r.getAnimatableNone) || void 0 === n ? void 0 : n.call(r, t)
)
}
- function rr(e) {
+ function er(e) {
var t = e.ease,
n = e.times,
- i = e.yoyo,
- o = e.flip,
+ o = e.yoyo,
+ i = e.flip,
a = e.loop,
- s = (0, r._T)(e, ['ease', 'times', 'yoyo', 'flip', 'loop']),
- u = (0, r.pi)({}, s)
+ s = (0, r.__rest)(e, ['ease', 'times', 'yoyo', 'flip', 'loop']),
+ u = (0, r.__assign)({}, s)
return (
n && (u.offset = n),
- s.duration && (u.duration = Dn(s.duration)),
- s.repeatDelay && (u.repeatDelay = Dn(s.repeatDelay)),
+ s.duration && (u.duration = jn(s.duration)),
+ s.repeatDelay && (u.repeatDelay = jn(s.repeatDelay)),
t &&
(u.ease = (function (e) {
return Array.isArray(e) && 'number' !== typeof e[0]
})(t)
- ? t.map(Un)
- : Un(t)),
+ ? t.map(Hn)
+ : Hn(t)),
'tween' === s.type && (u.type = 'keyframes'),
- (i || a || o) &&
+ (o || a || i) &&
(!0,
- i
+ o
? (u.repeatType = 'reverse')
: a
? (u.repeatType = 'loop')
- : o && (u.repeatType = 'mirror'),
- (u.repeat = a || i || o || s.repeat)),
+ : i && (u.repeatType = 'mirror'),
+ (u.repeat = a || o || i || s.repeat)),
'spring' !== s.type && (u.type = 'keyframes'),
u
)
}
- function ir(e, t, n) {
- var i
+ function tr(e, t, n) {
+ var o
return (
Array.isArray(t.to) &&
- ((null !== (i = e.duration) && void 0 !== i) || (e.duration = 0.8)),
+ ((null !== (o = e.duration) && void 0 !== o) || (e.duration = 0.8)),
(function (e) {
Array.isArray(e.to) &&
null === e.to[0] &&
- ((e.to = (0, r.ev)([], (0, r.CR)(e.to))), (e.to[0] = e.from))
+ ((e.to = (0, r.__spreadArray)([], (0, r.__read)(e.to))), (e.to[0] = e.from))
})(t),
(function (e) {
e.when,
@@ -18806,7 +32438,7 @@
e.repeatType,
e.repeatDelay,
e.from
- var t = (0, r._T)(e, [
+ var t = (0, r.__rest)(e, [
'when',
'delay',
'delayChildren',
@@ -18819,34 +32451,34 @@
])
return !!Object.keys(t).length
})(e) ||
- (e = (0, r.pi)(
- (0, r.pi)({}, e),
+ (e = (0, r.__assign)(
+ (0, r.__assign)({}, e),
(function (e, t) {
var n
- return (n = He(t) ? Zn : $n[e] || $n.default), (0, r.pi)({ to: t }, n(t))
+ return (n = ze(t) ? Gn : qn[e] || qn.default), (0, r.__assign)({ to: t }, n(t))
})(n, t.to),
)),
- (0, r.pi)((0, r.pi)({}, t), rr(e))
+ (0, r.__assign)((0, r.__assign)({}, t), er(e))
)
}
- function or(e, t, n, i, o) {
+ function nr(e, t, n, o, i) {
var a,
- s = ur(i, e),
+ s = ir(o, e),
u = null !== (a = s.from) && void 0 !== a ? a : t.get(),
- l = Gn(e, n)
- 'none' === u && l && 'string' === typeof n
- ? (u = nr(e, n))
- : ar(u) && 'string' === typeof n
- ? (u = sr(n))
- : !Array.isArray(n) && ar(n) && 'string' === typeof u && (n = sr(u))
- var c = Gn(e, u)
- return c && l && !1 !== s.type
+ c = Fn(e, n)
+ 'none' === u && c && 'string' === typeof n
+ ? (u = Jn(e, n))
+ : rr(u) && 'string' === typeof n
+ ? (u = or(n))
+ : !Array.isArray(n) && rr(n) && 'string' === typeof u && (n = or(u))
+ var l = Fn(e, u)
+ return l && c && !1 !== s.type
? function () {
- var i = {
+ var o = {
from: u,
to: n,
velocity: t.getVelocity(),
- onComplete: o,
+ onComplete: i,
onUpdate: function (e) {
return t.set(e)
},
@@ -18855,43 +32487,43 @@
? (function (e) {
var t,
n = e.from,
- r = void 0 === n ? 0 : n,
+ o = void 0 === n ? 0 : n,
i = e.velocity,
- o = void 0 === i ? 0 : i,
- a = e.min,
- s = e.max,
- u = e.power,
- l = void 0 === u ? 0.8 : u,
- c = e.timeConstant,
- d = void 0 === c ? 750 : c,
- f = e.bounceStiffness,
- h = void 0 === f ? 500 : f,
- p = e.bounceDamping,
- v = void 0 === p ? 10 : p,
- m = e.restDelta,
- g = void 0 === m ? 1 : m,
- y = e.modifyTarget,
- b = e.driver,
- w = e.onUpdate,
+ a = void 0 === i ? 0 : i,
+ s = e.min,
+ u = e.max,
+ c = e.power,
+ l = void 0 === c ? 0.8 : c,
+ d = e.timeConstant,
+ f = void 0 === d ? 750 : d,
+ h = e.bounceStiffness,
+ p = void 0 === h ? 500 : h,
+ v = e.bounceDamping,
+ m = void 0 === v ? 10 : v,
+ g = e.restDelta,
+ y = void 0 === g ? 1 : g,
+ b = e.modifyTarget,
+ w = e.driver,
+ _ = e.onUpdate,
x = e.onComplete
- function E(e) {
- return (void 0 !== a && e < a) || (void 0 !== s && e > s)
- }
function k(e) {
- return void 0 === a
+ return (void 0 !== s && e < s) || (void 0 !== u && e > u)
+ }
+ function E(e) {
+ return void 0 === s
+ ? u
+ : void 0 === u || Math.abs(s - e) < Math.abs(u - e)
? s
- : void 0 === s || Math.abs(a - e) < Math.abs(s - e)
- ? a
- : s
+ : u
}
- function _(e) {
+ function O(e) {
null === t || void 0 === t || t.stop(),
- (t = Rn(
- wt(wt({}, e), {
- driver: b,
+ (t = Sn(
+ (0, r.__assign)((0, r.__assign)({}, e), {
+ driver: w,
onUpdate: function (t) {
var n
- null === w || void 0 === w || w(t),
+ null === _ || void 0 === _ || _(t),
null === (n = e.onUpdate) || void 0 === n || n.call(e, t)
},
onComplete: x,
@@ -18899,31 +32531,36 @@
))
}
function T(e) {
- _(wt({ type: 'spring', stiffness: h, damping: v, restDelta: g }, e))
+ O(
+ (0, r.__assign)(
+ { type: 'spring', stiffness: p, damping: m, restDelta: y },
+ e,
+ ),
+ )
}
- if (E(r)) T({ from: r, velocity: o, to: k(r) })
+ if (k(o)) T({ from: o, velocity: a, to: E(o) })
else {
- var O = l * o + r
- 'undefined' !== typeof y && (O = y(O))
- var C,
+ var C = l * a + o
+ 'undefined' !== typeof b && (C = b(C))
+ var M,
S,
- A = k(O),
- P = A === a ? -1 : 1
- _({
+ P = E(C),
+ j = P === s ? -1 : 1
+ O({
type: 'decay',
- from: r,
- velocity: o,
- timeConstant: d,
+ from: o,
+ velocity: a,
+ timeConstant: f,
power: l,
- restDelta: g,
- modifyTarget: y,
- onUpdate: E(O)
+ restDelta: y,
+ modifyTarget: b,
+ onUpdate: k(C)
? function (e) {
- ;(C = S),
+ ;(M = S),
(S = e),
- (o = jn(e - C, (0, An.$B)().delta)),
- ((1 === P && e > A) || (-1 === P && e < A)) &&
- T({ from: e, to: A, velocity: o })
+ (a = Pn(e - M, (0, Tn.$B)().delta)),
+ ((1 === j && e > P) || (-1 === j && e < P)) &&
+ T({ from: e, to: P, velocity: a })
}
: void 0,
})
@@ -18933,16 +32570,16 @@
return null === t || void 0 === t ? void 0 : t.stop()
},
}
- })((0, r.pi)((0, r.pi)({}, i), s))
- : Rn(
- (0, r.pi)((0, r.pi)({}, ir(s, i, e)), {
+ })((0, r.__assign)((0, r.__assign)({}, o), s))
+ : Sn(
+ (0, r.__assign)((0, r.__assign)({}, tr(s, o, e)), {
onUpdate: function (e) {
var t
- i.onUpdate(e), null === (t = s.onUpdate) || void 0 === t || t.call(s, e)
+ o.onUpdate(e), null === (t = s.onUpdate) || void 0 === t || t.call(s, e)
},
onComplete: function () {
var e
- i.onComplete(), null === (e = s.onComplete) || void 0 === e || e.call(s)
+ o.onComplete(), null === (e = s.onComplete) || void 0 === e || e.call(s)
},
}),
)
@@ -18951,7 +32588,7 @@
var e
return (
t.set(n),
- o(),
+ i(),
null === (e = null === s || void 0 === s ? void 0 : s.onComplete) ||
void 0 === e ||
e.call(s),
@@ -18959,46 +32596,46 @@
)
}
}
- function ar(e) {
+ function rr(e) {
return 0 === e || ('string' === typeof e && 0 === parseFloat(e) && -1 === e.indexOf(' '))
}
- function sr(e) {
- return 'number' === typeof e ? 0 : nr('', e)
+ function or(e) {
+ return 'number' === typeof e ? 0 : Jn('', e)
}
- function ur(e, t) {
+ function ir(e, t) {
return e[t] || e.default || e
}
- function lr(e, t, n, r) {
+ function ar(e, t, n, r) {
return (
void 0 === r && (r = {}),
- t.start(function (i) {
- var o,
+ t.start(function (o) {
+ var i,
a,
- s = or(e, t, n, r, i),
+ s = nr(e, t, n, r, o),
u = (function (e, t) {
var n
- return null !== (n = (ur(e, t) || {}).delay) && void 0 !== n ? n : 0
+ return null !== (n = (ir(e, t) || {}).delay) && void 0 !== n ? n : 0
})(r, e),
- l = function () {
+ c = function () {
return (a = s())
}
return (
- u ? (o = setTimeout(l, Dn(u))) : l(),
+ u ? (i = setTimeout(c, jn(u))) : c(),
function () {
- clearTimeout(o), null === a || void 0 === a || a.stop()
+ clearTimeout(i), null === a || void 0 === a || a.stop()
}
)
})
)
}
- function cr(e, t) {
+ function sr(e, t) {
;-1 === e.indexOf(t) && e.push(t)
}
- function dr(e, t) {
+ function ur(e, t) {
var n = e.indexOf(t)
n > -1 && e.splice(n, 1)
}
- var fr = (function () {
+ var cr = (function () {
function e() {
this.subscriptions = []
}
@@ -19006,9 +32643,9 @@
(e.prototype.add = function (e) {
var t = this
return (
- cr(this.subscriptions, e),
+ sr(this.subscriptions, e),
function () {
- return dr(t.subscriptions, e)
+ return ur(t.subscriptions, e)
}
)
}),
@@ -19017,9 +32654,9 @@
if (r)
if (1 === r) this.subscriptions[0](e, t, n)
else
- for (var i = 0; i < r; i++) {
- var o = this.subscriptions[i]
- o && o(e, t, n)
+ for (var o = 0; o < r; o++) {
+ var i = this.subscriptions[o]
+ i && i(e, t, n)
}
}),
(e.prototype.getSize = function () {
@@ -19031,32 +32668,32 @@
e
)
})(),
- hr = (function () {
+ lr = (function () {
function e(e) {
var t,
n = this
;(this.timeDelta = 0),
(this.lastUpdated = 0),
- (this.updateSubscribers = new fr()),
- (this.velocityUpdateSubscribers = new fr()),
- (this.renderSubscribers = new fr()),
+ (this.updateSubscribers = new cr()),
+ (this.velocityUpdateSubscribers = new cr()),
+ (this.renderSubscribers = new cr()),
(this.canTrackVelocity = !1),
(this.updateAndNotify = function (e, t) {
void 0 === t && (t = !0), (n.prev = n.current), (n.current = e)
- var r = (0, An.$B)(),
- i = r.delta,
- o = r.timestamp
- n.lastUpdated !== o &&
- ((n.timeDelta = i),
- (n.lastUpdated = o),
- An.ZP.postRender(n.scheduleVelocityCheck)),
+ var r = (0, Tn.$B)(),
+ o = r.delta,
+ i = r.timestamp
+ n.lastUpdated !== i &&
+ ((n.timeDelta = o),
+ (n.lastUpdated = i),
+ Tn.ZP.postRender(n.scheduleVelocityCheck)),
n.prev !== n.current && n.updateSubscribers.notify(n.current),
n.velocityUpdateSubscribers.getSize() &&
n.velocityUpdateSubscribers.notify(n.getVelocity()),
t && n.renderSubscribers.notify(n.current)
}),
(this.scheduleVelocityCheck = function () {
- return An.ZP.postRender(n.velocityCheck)
+ return Tn.ZP.postRender(n.velocityCheck)
}),
(this.velocityCheck = function (e) {
e.timestamp !== n.lastUpdated &&
@@ -19093,7 +32730,7 @@
}),
(e.prototype.getVelocity = function () {
return this.canTrackVelocity
- ? jn(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
+ ? Pn(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
: 0
}),
(e.prototype.start = function (e) {
@@ -19122,21 +32759,21 @@
e
)
})()
- function pr(e) {
- return new hr(e)
+ function dr(e) {
+ return new lr(e)
}
- var vr = function (e) {
+ var fr = function (e) {
return function (t) {
return t.test(e)
}
},
- mr = [
- le,
+ hr = [
+ ue,
oe,
- ie,
re,
- se,
+ ne,
ae,
+ ie,
{
test: function (e) {
return 'auto' === e
@@ -19146,134 +32783,136 @@
},
},
],
- gr = function (e) {
- return mr.find(vr(e))
+ pr = function (e) {
+ return hr.find(fr(e))
},
- yr = (0, r.ev)((0, r.ev)([], (0, r.CR)(mr)), [qt, Qt]),
- br = function (e) {
- return yr.find(vr(e))
+ vr = (0, r.__spreadArray)((0, r.__spreadArray)([], (0, r.__read)(hr)), [Vt, Xt]),
+ mr = function (e) {
+ return vr.find(fr(e))
}
- function wr(e, t, n) {
- e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, pr(n))
+ function gr(e, t, n) {
+ e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, dr(n))
}
- function xr(e, t) {
+ function yr(e, t) {
var n = C(e, t),
- i = n ? e.makeTargetAnimatable(n, !1) : {},
- o = i.transitionEnd,
- a = void 0 === o ? {} : o
- i.transition
+ o = n ? e.makeTargetAnimatable(n, !1) : {},
+ i = o.transitionEnd,
+ a = void 0 === i ? {} : i
+ o.transition
var s,
- u = (0, r._T)(i, ['transitionEnd', 'transition'])
- for (var l in (u = (0, r.pi)((0, r.pi)({}, u), a))) {
- wr(e, l, ((s = u[l]), He(s) ? s[s.length - 1] || 0 : s))
+ u = (0, r.__rest)(o, ['transitionEnd', 'transition'])
+ for (var c in (u = (0, r.__assign)((0, r.__assign)({}, u), a))) {
+ gr(e, c, ((s = u[c]), ze(s) ? s[s.length - 1] || 0 : s))
}
}
- function Er(e, t) {
+ function br(e, t) {
if (t) return (t[e] || t.default || t).from
}
- function kr(e, t, n) {
- var i
+ function wr(e, t, n) {
+ var o
void 0 === n && (n = {})
- var o = C(e, t, n.custom),
- a = (o || {}).transition,
+ var i = C(e, t, n.custom),
+ a = (i || {}).transition,
s = void 0 === a ? e.getDefaultTransition() || {} : a
n.transitionOverride && (s = n.transitionOverride)
- var u = o
+ var u = i
? function () {
- return _r(e, o, n)
+ return _r(e, i, n)
}
: function () {
return Promise.resolve()
},
- l = (null === (i = e.variantChildren) || void 0 === i ? void 0 : i.size)
- ? function (i) {
- void 0 === i && (i = 0)
- var o = s.delayChildren,
- a = void 0 === o ? 0 : o,
+ c = (null === (o = e.variantChildren) || void 0 === o ? void 0 : o.size)
+ ? function (o) {
+ void 0 === o && (o = 0)
+ var i = s.delayChildren,
+ a = void 0 === i ? 0 : i,
u = s.staggerChildren,
- l = s.staggerDirection
- return (function (e, t, n, i, o, a) {
+ c = s.staggerDirection
+ return (function (e, t, n, o, i, a) {
void 0 === n && (n = 0)
- void 0 === i && (i = 0)
- void 0 === o && (o = 1)
+ void 0 === o && (o = 0)
+ void 0 === i && (i = 1)
var s = [],
- u = (e.variantChildren.size - 1) * i,
- l =
- 1 === o
+ u = (e.variantChildren.size - 1) * o,
+ c =
+ 1 === i
? function (e) {
- return void 0 === e && (e = 0), e * i
+ return void 0 === e && (e = 0), e * o
}
: function (e) {
- return void 0 === e && (e = 0), u - e * i
+ return void 0 === e && (e = 0), u - e * o
}
return (
Array.from(e.variantChildren)
- .sort(Tr)
- .forEach(function (e, i) {
+ .sort(xr)
+ .forEach(function (e, o) {
s.push(
- kr(e, t, (0, r.pi)((0, r.pi)({}, a), { delay: n + l(i) })).then(
- function () {
- return e.notifyAnimationComplete(t)
- },
- ),
+ wr(
+ e,
+ t,
+ (0, r.__assign)((0, r.__assign)({}, a), { delay: n + c(o) }),
+ ).then(function () {
+ return e.notifyAnimationComplete(t)
+ }),
)
}),
Promise.all(s)
)
- })(e, t, a + i, u, l, n)
+ })(e, t, a + o, u, c, n)
}
: function () {
return Promise.resolve()
},
- c = s.when
- if (c) {
- var d = (0, r.CR)('beforeChildren' === c ? [u, l] : [l, u], 2),
+ l = s.when
+ if (l) {
+ var d = (0, r.__read)('beforeChildren' === l ? [u, c] : [c, u], 2),
f = d[0],
h = d[1]
return f().then(h)
}
- return Promise.all([u(), l(n.delay)])
+ return Promise.all([u(), c(n.delay)])
}
function _r(e, t, n) {
- var i,
- o = void 0 === n ? {} : n,
- a = o.delay,
+ var o,
+ i = void 0 === n ? {} : n,
+ a = i.delay,
s = void 0 === a ? 0 : a,
- u = o.transitionOverride,
- l = o.type,
- c = e.makeTargetAnimatable(t),
- d = c.transition,
+ u = i.transitionOverride,
+ c = i.type,
+ l = e.makeTargetAnimatable(t),
+ d = l.transition,
f = void 0 === d ? e.getDefaultTransition() : d,
- h = c.transitionEnd,
- p = (0, r._T)(c, ['transition', 'transitionEnd'])
+ h = l.transitionEnd,
+ p = (0, r.__rest)(l, ['transition', 'transitionEnd'])
u && (f = u)
var v = [],
- m = l && (null === (i = e.animationState) || void 0 === i ? void 0 : i.getState()[l])
+ m = c && (null === (o = e.animationState) || void 0 === o ? void 0 : o.getState()[c])
for (var g in p) {
var y = e.getValue(g),
b = p[g]
- if (!(!y || void 0 === b || (m && Or(m, g)))) {
- var w = lr(g, y, b, (0, r.pi)({ delay: s }, f))
+ if (!(!y || void 0 === b || (m && kr(m, g)))) {
+ var w = ar(g, y, b, (0, r.__assign)({ delay: s }, f))
v.push(w)
}
}
return Promise.all(v).then(function () {
- h && xr(e, h)
+ h && yr(e, h)
})
}
- function Tr(e, t) {
+ function xr(e, t) {
return e.sortNodePosition(t)
}
- function Or(e, t) {
+ function kr(e, t) {
var n = e.protectedKeys,
r = e.needsAnimating,
- i = n.hasOwnProperty(t) && !0 !== r[t]
- return (r[t] = !1), i
+ o = n.hasOwnProperty(t) && !0 !== r[t]
+ return (r[t] = !1), o
}
- var Cr = [qe.Animate, qe.Hover, qe.Tap, qe.Drag, qe.Focus, qe.Exit],
- Sr = (0, r.ev)([], (0, r.CR)(Cr)).reverse(),
- Ar = Cr.length
- function Pr(e) {
+ var Er = [Ue.Animate, Ue.Hover, Ue.Tap, Ue.Drag, Ue.Focus, Ue.Exit],
+ Or = (0, r.__spreadArray)([], (0, r.__read)(Er)).reverse(),
+ Tr = Er.length
+ function Cr(e) {
return function (t) {
return Promise.all(
t.map(function (t) {
@@ -19282,14 +32921,14 @@
return (function (e, t, n) {
var r
if ((void 0 === n && (n = {}), e.notifyAnimationStart(), Array.isArray(t))) {
- var i = t.map(function (t) {
- return kr(e, t, n)
+ var o = t.map(function (t) {
+ return wr(e, t, n)
})
- r = Promise.all(i)
- } else if ('string' === typeof t) r = kr(e, t, n)
+ r = Promise.all(o)
+ } else if ('string' === typeof t) r = wr(e, t, n)
else {
- var o = 'function' === typeof t ? C(e, t, n.custom) : t
- r = _r(e, o, n)
+ var i = 'function' === typeof t ? C(e, t, n.custom) : t
+ r = _r(e, i, n)
}
return r.then(function () {
return e.notifyAnimationComplete(t)
@@ -19300,114 +32939,114 @@
}
}
function Mr(e) {
- var t = Pr(e),
+ var t = Cr(e),
n = (function () {
var e
return (
- ((e = {})[qe.Animate] = Rr(!0)),
- (e[qe.Hover] = Rr()),
- (e[qe.Tap] = Rr()),
- (e[qe.Drag] = Rr()),
- (e[qe.Focus] = Rr()),
- (e[qe.Exit] = Rr()),
+ ((e = {})[Ue.Animate] = Sr(!0)),
+ (e[Ue.Hover] = Sr()),
+ (e[Ue.Tap] = Sr()),
+ (e[Ue.Drag] = Sr()),
+ (e[Ue.Focus] = Sr()),
+ (e[Ue.Exit] = Sr()),
e
)
})(),
- i = {},
- o = !0,
+ o = {},
+ i = !0,
a = function (t, n) {
- var i = C(e, n)
- if (i) {
- i.transition
- var o = i.transitionEnd,
- a = (0, r._T)(i, ['transition', 'transitionEnd'])
- t = (0, r.pi)((0, r.pi)((0, r.pi)({}, t), a), o)
+ var o = C(e, n)
+ if (o) {
+ o.transition
+ var i = o.transitionEnd,
+ a = (0, r.__rest)(o, ['transition', 'transitionEnd'])
+ t = (0, r.__assign)((0, r.__assign)((0, r.__assign)({}, t), a), i)
}
return t
}
function s(s, u) {
for (
- var l,
- c = e.getProps(),
+ var c,
+ l = e.getProps(),
d = e.getVariantContext(!0) || {},
f = [],
h = new Set(),
p = {},
v = 1 / 0,
m = function (t) {
- var i = Sr[t],
- m = n[i],
- g = null !== (l = c[i]) && void 0 !== l ? l : d[i],
- y = T(g),
- b = i === u ? m.isActive : null
+ var o = Or[t],
+ m = n[o],
+ g = null !== (c = l[o]) && void 0 !== c ? c : d[o],
+ y = O(g),
+ b = o === u ? m.isActive : null
!1 === b && (v = t)
- var w = g === d[i] && g !== c[i] && y
+ var w = g === d[o] && g !== l[o] && y
if (
- (w && o && e.manuallyAnimateOnMount && (w = !1),
- (m.protectedKeys = (0, r.pi)({}, p)),
+ (w && i && e.manuallyAnimateOnMount && (w = !1),
+ (m.protectedKeys = (0, r.__assign)({}, p)),
(!m.isActive && null === b) ||
(!g && !m.prevProp) ||
- ze(g) ||
+ Ne(g) ||
'boolean' === typeof g)
)
return 'continue'
- var x =
+ var _ =
(function (e, t) {
if ('string' === typeof t) return t !== e
- if (_(t)) return !bt(t, e)
+ if (E(t)) return !yt(t, e)
return !1
})(m.prevProp, g) ||
- (i === u && m.isActive && !w && y) ||
+ (o === u && m.isActive && !w && y) ||
(t > v && y),
- E = Array.isArray(g) ? g : [g],
- k = E.reduce(a, {})
+ x = Array.isArray(g) ? g : [g],
+ k = x.reduce(a, {})
!1 === b && (k = {})
- var O = m.prevResolvedValues,
- C = void 0 === O ? {} : O,
- S = (0, r.pi)((0, r.pi)({}, C), k),
- A = function (e) {
- ;(x = !0), h.delete(e), (m.needsAnimating[e] = !0)
+ var T = m.prevResolvedValues,
+ C = void 0 === T ? {} : T,
+ M = (0, r.__assign)((0, r.__assign)({}, C), k),
+ S = function (e) {
+ ;(_ = !0), h.delete(e), (m.needsAnimating[e] = !0)
}
- for (var P in S) {
- var M = k[P],
- R = C[P]
+ for (var P in M) {
+ var j = k[P],
+ I = C[P]
p.hasOwnProperty(P) ||
- (M !== R
- ? He(M) && He(R)
- ? bt(M, R)
+ (j !== I
+ ? ze(j) && ze(I)
+ ? yt(j, I)
? (m.protectedKeys[P] = !0)
- : A(P)
- : void 0 !== M
- ? A(P)
+ : S(P)
+ : void 0 !== j
+ ? S(P)
: h.add(P)
- : void 0 !== M && h.has(P)
- ? A(P)
+ : void 0 !== j && h.has(P)
+ ? S(P)
: (m.protectedKeys[P] = !0))
}
;(m.prevProp = g),
(m.prevResolvedValues = k),
- m.isActive && (p = (0, r.pi)((0, r.pi)({}, p), k)),
- o && e.blockInitialAnimation && (x = !1),
- x &&
+ m.isActive && (p = (0, r.__assign)((0, r.__assign)({}, p), k)),
+ i && e.blockInitialAnimation && (_ = !1),
+ _ &&
!w &&
f.push.apply(
f,
- (0, r.ev)(
+ (0, r.__spreadArray)(
[],
- (0, r.CR)(
- E.map(function (e) {
- return { animation: e, options: (0, r.pi)({ type: i }, s) }
+ (0, r.__read)(
+ x.map(function (e) {
+ return { animation: e, options: (0, r.__assign)({ type: o }, s) }
}),
),
),
)
},
g = 0;
- g < Ar;
+ g < Tr;
g++
)
m(g)
- if (((i = (0, r.pi)({}, p)), h.size)) {
+ if (((o = (0, r.__assign)({}, p)), h.size)) {
var y = {}
h.forEach(function (t) {
var n = e.getBaseTarget(t)
@@ -19417,30 +33056,30 @@
}
var b = Boolean(f.length)
return (
- o && !1 === c.initial && !e.manuallyAnimateOnMount && (b = !1),
- (o = !1),
+ i && !1 === l.initial && !e.manuallyAnimateOnMount && (b = !1),
+ (i = !1),
b ? t(f) : Promise.resolve()
)
}
return {
isAnimated: function (e) {
- return void 0 !== i[e]
+ return void 0 !== o[e]
},
animateChanges: s,
- setActive: function (t, r, i) {
- var o
+ setActive: function (t, r, o) {
+ var i
return n[t].isActive === r
? Promise.resolve()
- : (null === (o = e.variantChildren) ||
- void 0 === o ||
- o.forEach(function (e) {
+ : (null === (i = e.variantChildren) ||
+ void 0 === i ||
+ i.forEach(function (e) {
var n
return null === (n = e.animationState) || void 0 === n
? void 0
: n.setActive(t, r)
}),
(n[t].isActive = r),
- s(i, t))
+ s(o, t))
},
setAnimateFunction: function (n) {
t = n(e)
@@ -19450,119 +33089,119 @@
},
}
}
- function Rr(e) {
+ function Sr(e) {
return (
void 0 === e && (e = !1),
{ isActive: e, protectedKeys: {}, needsAnimating: {}, prevResolvedValues: {} }
)
}
- var jr = {
- animation: gt(function (e) {
+ var Pr = {
+ animation: mt(function (e) {
var t = e.visualElement,
n = e.animate
t.animationState || (t.animationState = Mr(t)),
- ze(n) &&
- (0, i.useEffect)(
+ Ne(n) &&
+ (0, o.useEffect)(
function () {
return n.subscribe(t)
},
[n],
)
}),
- exit: gt(function (e) {
+ exit: mt(function (e) {
var t = e.custom,
n = e.visualElement,
- o = (0, r.CR)(p(), 2),
- a = o[0],
- s = o[1],
- u = (0, i.useContext)(f.O)
- ;(0, i.useEffect)(
+ i = (0, r.__read)(p(), 2),
+ a = i[0],
+ s = i[1],
+ u = (0, o.useContext)(f.O)
+ ;(0, o.useEffect)(
function () {
var e,
r,
- i =
+ o =
null === (e = n.animationState) || void 0 === e
? void 0
- : e.setActive(qe.Exit, !a, {
+ : e.setActive(Ue.Exit, !a, {
custom:
null !== (r = null === u || void 0 === u ? void 0 : u.custom) &&
void 0 !== r
? r
: t,
})
- !a && (null === i || void 0 === i || i.then(s))
+ !a && (null === o || void 0 === o || o.then(s))
},
[a],
)
}),
},
- Dr = function (e) {
+ jr = function (e) {
return e.hasOwnProperty('x') && e.hasOwnProperty('y')
},
- Lr = function (e) {
- return Dr(e) && e.hasOwnProperty('z')
+ Ir = function (e) {
+ return jr(e) && e.hasOwnProperty('z')
},
- Nr = function (e, t) {
+ Ar = function (e, t) {
return Math.abs(e - t)
}
- function Ir(e, t) {
- if (Jt(e) && Jt(t)) return Nr(e, t)
- if (Dr(e) && Dr(t)) {
- var n = Nr(e.x, t.x),
- r = Nr(e.y, t.y),
- i = Lr(e) && Lr(t) ? Nr(e.z, t.z) : 0
- return Math.sqrt(Math.pow(n, 2) + Math.pow(r, 2) + Math.pow(i, 2))
+ function Rr(e, t) {
+ if ($t(e) && $t(t)) return Ar(e, t)
+ if (jr(e) && jr(t)) {
+ var n = Ar(e.x, t.x),
+ r = Ar(e.y, t.y),
+ o = Ir(e) && Ir(t) ? Ar(e.z, t.z) : 0
+ return Math.sqrt(Math.pow(n, 2) + Math.pow(r, 2) + Math.pow(o, 2))
}
}
- var zr = (function () {
+ var Dr = (function () {
function e(e, t, n) {
- var i = this,
- o = (void 0 === n ? {} : n).transformPagePoint
+ var o = this,
+ i = (void 0 === n ? {} : n).transformPagePoint
if (
((this.startEvent = null),
(this.lastMoveEvent = null),
(this.lastMoveEventInfo = null),
(this.handlers = {}),
(this.updatePoint = function () {
- if (i.lastMoveEvent && i.lastMoveEventInfo) {
- var e = Fr(i.lastMoveEventInfo, i.history),
- t = null !== i.startEvent,
- n = Ir(e.offset, { x: 0, y: 0 }) >= 3
+ if (o.lastMoveEvent && o.lastMoveEventInfo) {
+ var e = zr(o.lastMoveEventInfo, o.history),
+ t = null !== o.startEvent,
+ n = Rr(e.offset, { x: 0, y: 0 }) >= 3
if (t || n) {
- var o = e.point,
- a = (0, An.$B)().timestamp
- i.history.push((0, r.pi)((0, r.pi)({}, o), { timestamp: a }))
- var s = i.handlers,
+ var i = e.point,
+ a = (0, Tn.$B)().timestamp
+ o.history.push((0, r.__assign)((0, r.__assign)({}, i), { timestamp: a }))
+ var s = o.handlers,
u = s.onStart,
- l = s.onMove
- t || (u && u(i.lastMoveEvent, e), (i.startEvent = i.lastMoveEvent)),
- l && l(i.lastMoveEvent, e)
+ c = s.onMove
+ t || (u && u(o.lastMoveEvent, e), (o.startEvent = o.lastMoveEvent)),
+ c && c(o.lastMoveEvent, e)
}
}
}),
(this.handlePointerMove = function (e, t) {
- ;(i.lastMoveEvent = e),
- (i.lastMoveEventInfo = Hr(t, i.transformPagePoint)),
- $e(e) && 0 === e.buttons ? i.handlePointerUp(e, t) : An.ZP.update(i.updatePoint, !0)
+ ;(o.lastMoveEvent = e),
+ (o.lastMoveEventInfo = Lr(t, o.transformPagePoint)),
+ Ze(e) && 0 === e.buttons ? o.handlePointerUp(e, t) : Tn.ZP.update(o.updatePoint, !0)
}),
(this.handlePointerUp = function (e, t) {
- i.end()
- var n = i.handlers,
+ o.end()
+ var n = o.handlers,
r = n.onEnd,
- o = n.onSessionEnd,
- a = Fr(Hr(t, i.transformPagePoint), i.history)
- i.startEvent && r && r(e, a), o && o(e, a)
+ i = n.onSessionEnd,
+ a = zr(Lr(t, o.transformPagePoint), o.history)
+ o.startEvent && r && r(e, a), i && i(e, a)
}),
!(Xe(e) && e.touches.length > 1))
) {
- ;(this.handlers = t), (this.transformPagePoint = o)
- var a = Hr(et(e), this.transformPagePoint),
+ ;(this.handlers = t), (this.transformPagePoint = i)
+ var a = Lr(Je(e), this.transformPagePoint),
s = a.point,
- u = (0, An.$B)().timestamp
- this.history = [(0, r.pi)((0, r.pi)({}, s), { timestamp: u })]
- var l = t.onSessionStart
- l && l(e, Fr(a, this.history)),
- (this.removeListeners = mt(
+ u = (0, Tn.$B)().timestamp
+ this.history = [(0, r.__assign)((0, r.__assign)({}, s), { timestamp: u })]
+ var c = t.onSessionStart
+ c && c(e, zr(a, this.history)),
+ (this.removeListeners = vt(
ot(window, 'pointermove', this.handlePointerMove),
ot(window, 'pointerup', this.handlePointerUp),
ot(window, 'pointercancel', this.handlePointerUp),
@@ -19574,194 +33213,194 @@
this.handlers = e
}),
(e.prototype.end = function () {
- this.removeListeners && this.removeListeners(), An.qY.update(this.updatePoint)
+ this.removeListeners && this.removeListeners(), Tn.qY.update(this.updatePoint)
}),
e
)
})()
- function Hr(e, t) {
+ function Lr(e, t) {
return t ? { point: t(e.point) } : e
}
- function Br(e, t) {
+ function Nr(e, t) {
return { x: e.x - t.x, y: e.y - t.y }
}
- function Fr(e, t) {
+ function zr(e, t) {
var n = e.point
- return { point: n, delta: Br(n, Ur(t)), offset: Br(n, Vr(t)), velocity: Gr(t, 0.1) }
+ return { point: n, delta: Nr(n, Hr(t)), offset: Nr(n, Br(t)), velocity: Fr(t, 0.1) }
}
- function Vr(e) {
+ function Br(e) {
return e[0]
}
- function Ur(e) {
+ function Hr(e) {
return e[e.length - 1]
}
- function Gr(e, t) {
+ function Fr(e, t) {
if (e.length < 2) return { x: 0, y: 0 }
for (
- var n = e.length - 1, r = null, i = Ur(e);
- n >= 0 && ((r = e[n]), !(i.timestamp - r.timestamp > Dn(t)));
+ var n = e.length - 1, r = null, o = Hr(e);
+ n >= 0 && ((r = e[n]), !(o.timestamp - r.timestamp > jn(t)));
)
n--
if (!r) return { x: 0, y: 0 }
- var o = (i.timestamp - r.timestamp) / 1e3
- if (0 === o) return { x: 0, y: 0 }
- var a = { x: (i.x - r.x) / o, y: (i.y - r.y) / o }
+ var i = (o.timestamp - r.timestamp) / 1e3
+ if (0 === i) return { x: 0, y: 0 }
+ var a = { x: (o.x - r.x) / i, y: (o.y - r.y) / i }
return a.x === 1 / 0 && (a.x = 0), a.y === 1 / 0 && (a.y = 0), a
}
- var qr = n(3327)
+ var Vr = n(93327)
function Wr(e) {
return [e('x'), e('y')]
}
- function Kr(e, t, n) {
+ function Ur(e, t, n) {
var r = t.min,
- i = t.max
+ o = t.max
return (
void 0 !== r && e < r
- ? (e = n ? Rt(r, e, n.min) : Math.max(e, r))
- : void 0 !== i && e > i && (e = n ? Rt(i, e, n.max) : Math.min(e, i)),
+ ? (e = n ? St(r, e, n.min) : Math.max(e, r))
+ : void 0 !== o && e > o && (e = n ? St(o, e, n.max) : Math.min(e, o)),
e
)
}
- function Zr(e, t, n) {
+ function Gr(e, t, n) {
return {
min: void 0 !== t ? e.min + t : void 0,
max: void 0 !== n ? e.max + n - (e.max - e.min) : void 0,
}
}
- function $r(e, t) {
+ function qr(e, t) {
var n,
- i = t.min - e.min,
- o = t.max - e.max
+ o = t.min - e.min,
+ i = t.max - e.max
return (
- t.max - t.min < e.max - e.min && ((i = (n = (0, r.CR)([o, i], 2))[0]), (o = n[1])),
- { min: e.min + i, max: e.min + o }
+ t.max - t.min < e.max - e.min && ((o = (n = (0, r.__read)([i, o], 2))[0]), (i = n[1])),
+ { min: e.min + o, max: e.min + i }
)
}
- function Xr(e, t, n) {
- return { min: Yr(e, t), max: Yr(e, n) }
+ function Kr(e, t, n) {
+ return { min: Zr(e, t), max: Zr(e, n) }
}
- function Yr(e, t) {
+ function Zr(e, t) {
var n
return 'number' === typeof e ? e : null !== (n = e[t]) && void 0 !== n ? n : 0
}
- function Qr(e, t) {
+ function Xr(e, t) {
var n = e.getBoundingClientRect()
- return (0, qr.RX)((0, qr.dV)(n, t))
+ return (0, Vr.RX)((0, Vr.dV)(n, t))
}
- function Jr(e, t, n) {
- return void 0 === t && (t = 0), void 0 === n && (n = 0.01), Ir(e, t) < n
+ function $r(e, t, n) {
+ return void 0 === t && (t = 0), void 0 === n && (n = 0.01), Rr(e, t) < n
}
- function ei(e) {
+ function Yr(e) {
return e.max - e.min
}
- function ti(e, t) {
+ function Qr(e, t) {
var n = 0.5,
- r = ei(e),
- i = ei(t)
+ r = Yr(e),
+ o = Yr(t)
return (
- i > r ? (n = Mt(t.min, t.max - r, e.min)) : r > i && (n = Mt(e.min, e.max - i, t.min)),
- Et(0, 1, n)
+ o > r ? (n = Mt(t.min, t.max - r, e.min)) : r > o && (n = Mt(e.min, e.max - o, t.min)),
+ bt(0, 1, n)
)
}
- function ni(e, t, n, r) {
+ function Jr(e, t, n, r) {
void 0 === r && (r = 0.5),
(e.origin = r),
- (e.originPoint = Rt(t.min, t.max, e.origin)),
- (e.scale = ei(n) / ei(t)),
- Jr(e.scale, 1, 1e-4) && (e.scale = 1),
- (e.translate = Rt(n.min, n.max, e.origin) - e.originPoint),
- Jr(e.translate) && (e.translate = 0)
+ (e.originPoint = St(t.min, t.max, e.origin)),
+ (e.scale = Yr(n) / Yr(t)),
+ $r(e.scale, 1, 1e-4) && (e.scale = 1),
+ (e.translate = St(n.min, n.max, e.origin) - e.originPoint),
+ $r(e.translate) && (e.translate = 0)
}
- function ri(e, t, n, r) {
- ni(e.x, t.x, n.x, ii(r.originX)), ni(e.y, t.y, n.y, ii(r.originY))
+ function eo(e, t, n, r) {
+ Jr(e.x, t.x, n.x, to(r.originX)), Jr(e.y, t.y, n.y, to(r.originY))
}
- function ii(e) {
+ function to(e) {
return 'number' === typeof e ? e : 0.5
}
- function oi(e, t, n) {
- ;(e.min = n.min + t.min), (e.max = e.min + ei(t))
+ function no(e, t, n) {
+ ;(e.min = n.min + t.min), (e.max = e.min + Yr(t))
}
- var ai = n(8839)
- function si(e, t) {
+ var ro = n(58839)
+ function oo(e, t) {
return { min: t.min - e.min, max: t.max - e.min }
}
- function ui(e, t) {
- return { x: si(e.x, t.x), y: si(e.y, t.y) }
+ function io(e, t) {
+ return { x: oo(e.x, t.x), y: oo(e.y, t.y) }
}
- function li(e, t) {
+ function ao(e, t) {
var n = e.getLayoutId(),
r = t.getLayoutId()
return n !== r || (void 0 === r && e !== t)
}
- function ci(e) {
+ function so(e) {
var t = e.getProps(),
n = t.drag,
r = t._dragX
return n && !r
}
- function di(e, t) {
+ function uo(e, t) {
;(e.min = t.min), (e.max = t.max)
}
- function fi(e, t, n) {
+ function co(e, t, n) {
return n + t * (e - n)
}
- function hi(e, t, n, r, i) {
- return void 0 !== i && (e = fi(e, i, r)), fi(e, n, r) + t
+ function lo(e, t, n, r, o) {
+ return void 0 !== o && (e = co(e, o, r)), co(e, n, r) + t
}
- function pi(e, t, n, r, i) {
+ function fo(e, t, n, r, o) {
void 0 === t && (t = 0),
void 0 === n && (n = 1),
- (e.min = hi(e.min, t, n, r, i)),
- (e.max = hi(e.max, t, n, r, i))
+ (e.min = lo(e.min, t, n, r, o)),
+ (e.max = lo(e.max, t, n, r, o))
}
- function vi(e, t) {
+ function ho(e, t) {
var n = t.x,
r = t.y
- pi(e.x, n.translate, n.scale, n.originPoint), pi(e.y, r.translate, r.scale, r.originPoint)
+ fo(e.x, n.translate, n.scale, n.originPoint), fo(e.y, r.translate, r.scale, r.originPoint)
}
- function mi(e, t, n, i) {
- var o = (0, r.CR)(i, 3),
- a = o[0],
- s = o[1],
- u = o[2]
+ function po(e, t, n, o) {
+ var i = (0, r.__read)(o, 3),
+ a = i[0],
+ s = i[1],
+ u = i[2]
;(e.min = t.min), (e.max = t.max)
- var l = void 0 !== n[u] ? n[u] : 0.5,
- c = Rt(t.min, t.max, l)
- pi(e, n[a], n[s], c, n.scale)
- }
- var gi = ['x', 'scaleX', 'originX'],
- yi = ['y', 'scaleY', 'originY']
- function bi(e, t, n) {
- mi(e.x, t.x, n, gi), mi(e.y, t.y, n, yi)
- }
- function wi(e, t, n, r, i) {
- return (e = fi((e -= t), 1 / n, r)), void 0 !== i && (e = fi(e, 1 / i, r)), e
- }
- function xi(e, t, n) {
- var i = (0, r.CR)(n, 3),
- o = i[0],
- a = i[1],
- s = i[2]
- !(function (e, t, n, r, i) {
+ var c = void 0 !== n[u] ? n[u] : 0.5,
+ l = St(t.min, t.max, c)
+ fo(e, n[a], n[s], l, n.scale)
+ }
+ var vo = ['x', 'scaleX', 'originX'],
+ mo = ['y', 'scaleY', 'originY']
+ function go(e, t, n) {
+ po(e.x, t.x, n, vo), po(e.y, t.y, n, mo)
+ }
+ function yo(e, t, n, r, o) {
+ return (e = co((e -= t), 1 / n, r)), void 0 !== o && (e = co(e, 1 / o, r)), e
+ }
+ function bo(e, t, n) {
+ var o = (0, r.__read)(n, 3),
+ i = o[0],
+ a = o[1],
+ s = o[2]
+ !(function (e, t, n, r, o) {
void 0 === t && (t = 0), void 0 === n && (n = 1), void 0 === r && (r = 0.5)
- var o = Rt(e.min, e.max, r) - t
- ;(e.min = wi(e.min, t, n, o, i)), (e.max = wi(e.max, t, n, o, i))
- })(e, t[o], t[a], t[s], t.scale)
+ var i = St(e.min, e.max, r) - t
+ ;(e.min = yo(e.min, t, n, i, o)), (e.max = yo(e.max, t, n, i, o))
+ })(e, t[i], t[a], t[s], t.scale)
}
- function Ei(e, t) {
- xi(e.x, t, gi), xi(e.y, t, yi)
+ function wo(e, t) {
+ bo(e.x, t, vo), bo(e.y, t, mo)
}
- var ki,
- _i = n(7565),
- Ti = new WeakMap(),
- Oi = (function () {
+ var _o,
+ xo = n(27565),
+ ko = new WeakMap(),
+ Eo = (function () {
function e(e) {
var t = e.visualElement
;(this.isDragging = !1),
(this.currentDirection = null),
(this.constraints = !1),
- (this.elastic = (0, qr.VZ)()),
+ (this.elastic = (0, Vr.VZ)()),
(this.props = {}),
(this.hasMutatedConstraints = !1),
(this.cursorProgress = { x: 0.5, y: 0.5 }),
@@ -19770,45 +33409,48 @@
(this.panSession = null),
(this.visualElement = t),
this.visualElement.enableLayoutProjection(),
- Ti.set(t, this)
+ ko.set(t, this)
}
return (
(e.prototype.start = function (e, t) {
var n = this,
- i = void 0 === t ? {} : t,
- o = i.snapToCursor,
- a = void 0 !== o && o,
- s = i.cursorProgress,
+ o = void 0 === t ? {} : t,
+ i = o.snapToCursor,
+ a = void 0 !== i && i,
+ s = o.cursorProgress,
u = this.props.transformPagePoint
- this.panSession = new zr(
+ this.panSession = new Dr(
e,
{
onSessionStart: function (e) {
var t
n.stopMotion()
- var i = (function (e) {
- return et(e, 'client')
+ var o = (function (e) {
+ return Je(e, 'client')
})(e).point
null === (t = n.cancelLayout) || void 0 === t || t.call(n),
- (n.cancelLayout = (0, _i.U)(function (e, t) {
- var o = (0, ai.kv)(n.visualElement),
- u = (0, ai.e3)(n.visualElement),
- l = (0, r.ev)((0, r.ev)([], (0, r.CR)(o)), (0, r.CR)(u)),
- c = !1
+ (n.cancelLayout = (0, xo.U)(function (e, t) {
+ var i = (0, ro.kv)(n.visualElement),
+ u = (0, ro.e3)(n.visualElement),
+ c = (0, r.__spreadArray)(
+ (0, r.__spreadArray)([], (0, r.__read)(i)),
+ (0, r.__read)(u),
+ ),
+ l = !1
n.isLayoutDrag() && n.visualElement.lockProjectionTarget(),
t(function () {
- l.forEach(function (e) {
+ c.forEach(function (e) {
return e.resetTransform()
})
}),
e(function () {
- ;(0, ai.de)(n.visualElement), u.forEach(ai.de)
+ ;(0, ro.de)(n.visualElement), u.forEach(ro.de)
}),
t(function () {
- l.forEach(function (e) {
+ c.forEach(function (e) {
return e.restoreTransform()
}),
- a && (c = n.snapToCursor(i))
+ a && (l = n.snapToCursor(o))
}),
e(function () {
Boolean(n.getAxisMotionValue('x') && !n.isExternalDrag()) ||
@@ -19819,18 +33461,18 @@
n.visualElement.scheduleUpdateLayoutProjection()
var e = n.visualElement.projection
Wr(function (t) {
- if (!c) {
+ if (!l) {
var r = e.target[t],
- o = r.min,
+ i = r.min,
a = r.max
- n.cursorProgress[t] = s ? s[t] : Mt(o, a, i[t])
+ n.cursorProgress[t] = s ? s[t] : Mt(i, a, o[t])
}
var u = n.getAxisMotionValue(t)
u && (n.originPoint[t] = u.get())
})
}),
t(function () {
- An.iW.update(), An.iW.preRender(), An.iW.render(), An.iW.postRender()
+ Tn.iW.update(), Tn.iW.preRender(), Tn.iW.render(), Tn.iW.postRender()
}),
e(function () {
return n.resolveDragConstraints()
@@ -19839,8 +33481,8 @@
},
onStart: function (e, t) {
var r,
- i,
o,
+ i,
a = n.props,
s = a.drag,
u = a.dragPropagation
@@ -19849,43 +33491,43 @@
(n.openGlobalLock && n.openGlobalLock(),
(n.openGlobalLock = ct(s)),
n.openGlobalLock)) &&
- ((0, _i.R)(),
+ ((0, xo.R)(),
(n.isDragging = !0),
(n.currentDirection = null),
- null === (i = (r = n.props).onDragStart) || void 0 === i || i.call(r, e, t),
- null === (o = n.visualElement.animationState) ||
- void 0 === o ||
- o.setActive(qe.Drag, !0))
+ null === (o = (r = n.props).onDragStart) || void 0 === o || o.call(r, e, t),
+ null === (i = n.visualElement.animationState) ||
+ void 0 === i ||
+ i.setActive(Ue.Drag, !0))
},
onMove: function (e, t) {
var r,
- i,
o,
+ i,
a,
s = n.props,
u = s.dragPropagation,
- l = s.dragDirectionLock
+ c = s.dragDirectionLock
if (u || n.openGlobalLock) {
- var c = t.offset
- if (l && null === n.currentDirection)
+ var l = t.offset
+ if (c && null === n.currentDirection)
return (
(n.currentDirection = (function (e, t) {
void 0 === t && (t = 10)
var n = null
Math.abs(e.y) > t ? (n = 'y') : Math.abs(e.x) > t && (n = 'x')
return n
- })(c)),
+ })(l)),
void (
null !== n.currentDirection &&
- (null === (i = (r = n.props).onDirectionLock) ||
- void 0 === i ||
- i.call(r, n.currentDirection))
+ (null === (o = (r = n.props).onDirectionLock) ||
+ void 0 === o ||
+ o.call(r, n.currentDirection))
)
)
- n.updateAxis('x', t.point, c),
- n.updateAxis('y', t.point, c),
- null === (a = (o = n.props).onDrag) || void 0 === a || a.call(o, e, t),
- (ki = e)
+ n.updateAxis('x', t.point, l),
+ n.updateAxis('y', t.point, l),
+ null === (a = (i = n.props).onDrag) || void 0 === a || a.call(i, e, t),
+ (_o = e)
}
},
onSessionEnd: function (e, t) {
@@ -19900,22 +33542,22 @@
t = this.props,
n = t.dragConstraints,
r = t.dragElastic,
- i = this.visualElement.getLayoutState().layoutCorrected
+ o = this.visualElement.getLayoutState().layoutCorrected
;(this.constraints =
!!n &&
(k(n)
- ? this.resolveRefConstraints(i, n)
+ ? this.resolveRefConstraints(o, n)
: (function (e, t) {
var n = t.top,
r = t.left,
- i = t.bottom,
- o = t.right
- return { x: Zr(e.x, r, o), y: Zr(e.y, n, i) }
- })(i, n))),
+ o = t.bottom,
+ i = t.right
+ return { x: Gr(e.x, r, i), y: Gr(e.y, n, o) }
+ })(o, n))),
(this.elastic = (function (e) {
return (
!1 === e ? (e = 0) : !0 === e && (e = 0.35),
- { x: Xr(e, 'left', 'right'), y: Xr(e, 'top', 'bottom') }
+ { x: Kr(e, 'left', 'right'), y: Kr(e, 'top', 'bottom') }
)
})(r)),
this.constraints &&
@@ -19929,21 +33571,21 @@
void 0 !== t.max && (n.max = t.max - e.min),
n
)
- })(i[t], e.constraints[t]))
+ })(o[t], e.constraints[t]))
})
}),
(e.prototype.resolveRefConstraints = function (e, t) {
var n = this.props,
r = n.onMeasureDragConstraints,
- i = n.transformPagePoint,
- o = t.current
- this.constraintsBox = Qr(o, i)
+ o = n.transformPagePoint,
+ i = t.current
+ this.constraintsBox = Xr(i, o)
var a = (function (e, t) {
- return { x: $r(e.x, t.x), y: $r(e.y, t.y) }
+ return { x: qr(e.x, t.x), y: qr(e.y, t.y) }
})(e, this.constraintsBox)
if (r) {
- var s = r((0, qr._6)(a))
- ;(this.hasMutatedConstraints = !!s), s && (a = (0, qr.RX)(s))
+ var s = r((0, Vr._6)(a))
+ ;(this.hasMutatedConstraints = !!s), s && (a = (0, Vr.RX)(s))
}
return a
}),
@@ -19959,34 +33601,34 @@
(this.openGlobalLock(), (this.openGlobalLock = null)),
null === (t = this.visualElement.animationState) ||
void 0 === t ||
- t.setActive(qe.Drag, !1)
+ t.setActive(Ue.Drag, !1)
}),
(e.prototype.stop = function (e, t) {
- var n, r, i
+ var n, r, o
null === (n = this.panSession) || void 0 === n || n.end(), (this.panSession = null)
- var o = this.isDragging
- if ((this.cancelDrag(), o)) {
+ var i = this.isDragging
+ if ((this.cancelDrag(), i)) {
var a = t.velocity
this.animateDragEnd(a),
- null === (i = (r = this.props).onDragEnd) || void 0 === i || i.call(r, e, t)
+ null === (o = (r = this.props).onDragEnd) || void 0 === o || o.call(r, e, t)
}
}),
(e.prototype.snapToCursor = function (e) {
var t = this
return Wr(function (n) {
- if (Ci(n, t.props.drag, t.currentDirection)) {
+ if (Oo(n, t.props.drag, t.currentDirection)) {
var r = t.getAxisMotionValue(n)
if (!r) return (t.cursorProgress[n] = 0.5), !0
- var i = t.visualElement.getLayoutState().layout,
- o = i[n].max - i[n].min,
- a = i[n].min + o / 2,
+ var o = t.visualElement.getLayoutState().layout,
+ i = o[n].max - o[n].min,
+ a = o[n].min + i / 2,
s = e[n] - a
;(t.originPoint[n] = e[n]), r.set(s)
}
}).includes(!0)
}),
(e.prototype.updateAxis = function (e, t, n) {
- if (Ci(e, this.props.drag, this.currentDirection))
+ if (Oo(e, this.props.drag, this.currentDirection))
return this.getAxisMotionValue(e)
? this.updateAxisMotionValue(e, n)
: this.updateVisualElementAxis(e, t)
@@ -19995,41 +33637,41 @@
var n = this.getAxisMotionValue(e)
if (t && n) {
var r = this.originPoint[e] + t[e],
- i = this.constraints ? Kr(r, this.constraints[e], this.elastic[e]) : r
- n.set(i)
+ o = this.constraints ? Ur(r, this.constraints[e], this.elastic[e]) : r
+ n.set(o)
}
}),
(e.prototype.updateVisualElementAxis = function (e, t) {
var n,
r = this.visualElement.getLayoutState().layout[e],
- i = r.max - r.min,
- o = this.cursorProgress[e],
- a = (function (e, t, n, r, i) {
- var o = e - t * n
- return r ? Kr(o, r, i) : o
+ o = r.max - r.min,
+ i = this.cursorProgress[e],
+ a = (function (e, t, n, r, o) {
+ var i = e - t * n
+ return r ? Ur(i, r, o) : i
})(
t[e],
- i,
o,
+ i,
null === (n = this.constraints) || void 0 === n ? void 0 : n[e],
this.elastic[e],
)
- this.visualElement.setProjectionTargetAxis(e, a, a + i)
+ this.visualElement.setProjectionTargetAxis(e, a, a + o)
}),
(e.prototype.setProps = function (e) {
var t = e.drag,
n = void 0 !== t && t,
- i = e.dragDirectionLock,
- o = void 0 !== i && i,
+ o = e.dragDirectionLock,
+ i = void 0 !== o && o,
a = e.dragPropagation,
s = void 0 !== a && a,
u = e.dragConstraints,
- l = void 0 !== u && u,
- c = e.dragElastic,
- d = void 0 === c ? 0.35 : c,
+ c = void 0 !== u && u,
+ l = e.dragElastic,
+ d = void 0 === l ? 0.35 : l,
f = e.dragMomentum,
h = void 0 === f || f,
- p = (0, r._T)(e, [
+ p = (0, r.__rest)(e, [
'drag',
'dragDirectionLock',
'dragPropagation',
@@ -20037,12 +33679,12 @@
'dragElastic',
'dragMomentum',
])
- this.props = (0, r.pi)(
+ this.props = (0, r.__assign)(
{
drag: n,
- dragDirectionLock: o,
+ dragDirectionLock: i,
dragPropagation: s,
- dragConstraints: l,
+ dragConstraints: c,
dragElastic: d,
dragMomentum: h,
},
@@ -20053,9 +33695,9 @@
var t = this.props,
n = t.layout,
r = t.layoutId,
- i = '_drag' + e.toUpperCase()
- return this.props[i]
- ? this.props[i]
+ o = '_drag' + e.toUpperCase()
+ return this.props[o]
+ ? this.props[o]
: n || void 0 !== r
? void 0
: this.visualElement.getValue(e, 0)
@@ -20072,8 +33714,8 @@
(e.prototype.animateDragEnd = function (e) {
var t = this,
n = this.props,
- i = n.drag,
- o = n.dragMomentum,
+ o = n.drag,
+ i = n.dragMomentum,
a = n.dragElastic,
s = n.dragTransition,
u = (function (e, t) {
@@ -20083,41 +33725,41 @@
return (
!!r &&
(t
- ? Ei((n = ui(r.projection.target, e.projection.target)), r.getLatestValues())
- : (n = ui(r.getLayoutState().layout, e.getLayoutState().layout)),
+ ? wo((n = io(r.projection.target, e.projection.target)), r.getLatestValues())
+ : (n = io(r.getLayoutState().layout, e.getLayoutState().layout)),
Wr(function (t) {
return e.setProjectionTargetAxis(t, n[t].min, n[t].max, !0)
}),
!0)
)
})(this.visualElement, this.isLayoutDrag() && !this.isExternalDrag()),
- l = this.constraints || {}
- if (u && Object.keys(l).length && this.isLayoutDrag()) {
- var c = this.visualElement.getProjectionParent()
- if (c) {
- var d = ui(c.projection.targetFinal, l)
+ c = this.constraints || {}
+ if (u && Object.keys(c).length && this.isLayoutDrag()) {
+ var l = this.visualElement.getProjectionParent()
+ if (l) {
+ var d = io(l.projection.targetFinal, c)
Wr(function (e) {
var t = d[e],
n = t.min,
r = t.max
- l[e] = { min: isNaN(n) ? void 0 : n, max: isNaN(r) ? void 0 : r }
+ c[e] = { min: isNaN(n) ? void 0 : n, max: isNaN(r) ? void 0 : r }
})
}
}
var f = Wr(function (n) {
- var c
- if (Ci(n, i, t.currentDirection)) {
+ var l
+ if (Oo(n, o, t.currentDirection)) {
var d =
- null !== (c = null === l || void 0 === l ? void 0 : l[n]) && void 0 !== c
- ? c
+ null !== (l = null === c || void 0 === c ? void 0 : c[n]) && void 0 !== l
+ ? l
: {},
f = a ? 200 : 1e6,
h = a ? 40 : 1e7,
- p = (0, r.pi)(
- (0, r.pi)(
+ p = (0, r.__assign)(
+ (0, r.__assign)(
{
type: 'inertia',
- velocity: o ? e[n] : 0,
+ velocity: i ? e[n] : 0,
bounceStiffness: f,
bounceDamping: h,
timeConstant: 750,
@@ -20149,7 +33791,7 @@
var n = this.getAxisMotionValue(e)
if (n) {
var r = n.get()
- return n.set(r), n.set(r), lr(e, n, 0, t)
+ return n.set(r), n.set(r), ar(e, n, 0, t)
}
}),
(e.prototype.scalePoint = function () {
@@ -20160,39 +33802,39 @@
this.stopMotion()
var r = { x: 0, y: 0 }
Wr(function (t) {
- r[t] = ti(e.visualElement.projection.target[t], e.constraintsBox[t])
+ r[t] = Qr(e.visualElement.projection.target[t], e.constraintsBox[t])
}),
this.updateConstraints(function () {
Wr(function (t) {
- if (Ci(t, n, null)) {
- var i = (function (e, t, n) {
+ if (Oo(t, n, null)) {
+ var o = (function (e, t, n) {
var r = e.max - e.min,
- i = Rt(t.min, t.max - r, n)
- return { min: i, max: i + r }
+ o = St(t.min, t.max - r, n)
+ return { min: o, max: o + r }
})(e.visualElement.projection.target[t], e.constraintsBox[t], r[t]),
- o = i.min,
- a = i.max
- e.visualElement.setProjectionTargetAxis(t, o, a)
+ i = o.min,
+ a = o.max
+ e.visualElement.setProjectionTargetAxis(t, i, a)
}
})
}),
- setTimeout(_i.R, 1)
+ setTimeout(xo.R, 1)
}
}),
(e.prototype.updateConstraints = function (e) {
var t = this
- this.cancelLayout = (0, _i.U)(function (n, r) {
- var i = (0, ai.kv)(t.visualElement)
+ this.cancelLayout = (0, xo.U)(function (n, r) {
+ var o = (0, ro.kv)(t.visualElement)
r(function () {
- return i.forEach(function (e) {
+ return o.forEach(function (e) {
return e.resetTransform()
})
}),
n(function () {
- return (0, ai.de)(t.visualElement)
+ return (0, ro.de)(t.visualElement)
}),
r(function () {
- return i.forEach(function (e) {
+ return o.forEach(function (e) {
return e.restoreTransform()
})
}),
@@ -20207,22 +33849,22 @@
n = ot(e.getInstance(), 'pointerdown', function (e) {
var n = t.props,
r = n.drag,
- i = n.dragListener
- r && (void 0 === i || i) && t.start(e)
+ o = n.dragListener
+ r && (void 0 === o || o) && t.start(e)
}),
- r = Ke(window, 'resize', function () {
+ r = qe(window, 'resize', function () {
t.scalePoint()
}),
- i = e.onLayoutUpdate(function () {
+ o = e.onLayoutUpdate(function () {
t.isDragging && t.resolveDragConstraints()
}),
- o = e.prevDragCursor
+ i = e.prevDragCursor
return (
- o && this.start(ki, { cursorProgress: o }),
+ i && this.start(_o, { cursorProgress: i }),
function () {
null === n || void 0 === n || n(),
null === r || void 0 === r || r(),
- null === i || void 0 === i || i(),
+ null === o || void 0 === o || o(),
t.cancelDrag()
}
)
@@ -20230,100 +33872,100 @@
e
)
})()
- function Ci(e, t, n) {
+ function Oo(e, t, n) {
return (!0 === t || t === e) && (null === n || n === e)
}
- var Si = {
- pan: gt(function (e) {
+ var To = {
+ pan: mt(function (e) {
var t = e.onPan,
n = e.onPanStart,
r = e.onPanEnd,
- o = e.onPanSessionStart,
+ i = e.onPanSessionStart,
a = e.visualElement,
- s = t || n || r || o,
- u = (0, i.useRef)(null),
- l = (0, i.useContext)(c).transformPagePoint,
+ s = t || n || r || i,
+ u = (0, o.useRef)(null),
+ c = (0, o.useContext)(l).transformPagePoint,
d = {
- onSessionStart: o,
+ onSessionStart: i,
onStart: n,
onMove: t,
onEnd: function (e, t) {
;(u.current = null), r && r(e, t)
},
}
- ;(0, i.useEffect)(function () {
+ ;(0, o.useEffect)(function () {
null !== u.current && u.current.updateHandlers(d)
}),
- at(
+ it(
a,
'pointerdown',
s &&
function (e) {
- u.current = new zr(e, d, { transformPagePoint: l })
+ u.current = new Dr(e, d, { transformPagePoint: c })
},
),
- (0, pt.z)(function () {
+ (0, ht.z)(function () {
return u.current && u.current.end()
})
}),
- drag: gt(function (e) {
+ drag: mt(function (e) {
var t = e.dragControls,
n = e.visualElement,
- o = (0, i.useContext)(c).transformPagePoint,
+ i = (0, o.useContext)(l).transformPagePoint,
a = (0, h.h)(function () {
- return new Oi({ visualElement: n })
+ return new Eo({ visualElement: n })
})
- a.setProps((0, r.pi)((0, r.pi)({}, e), { transformPagePoint: o })),
- (0, i.useEffect)(
+ a.setProps((0, r.__assign)((0, r.__assign)({}, e), { transformPagePoint: i })),
+ (0, o.useEffect)(
function () {
return t && t.subscribe(a)
},
[a],
),
- (0, i.useEffect)(function () {
+ (0, o.useEffect)(function () {
return a.mount(n)
}, [])
}),
},
- Ai = n(7646)
- function Pi(e) {
+ Co = n(7646)
+ function Mo(e) {
return 'string' === typeof e && e.startsWith('var(--')
}
- var Mi = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/
- function Ri(e, t, n) {
+ var So = /var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/
+ function Po(e, t, n) {
void 0 === n && (n = 1)
- var i = (0, r.CR)(
+ var o = (0, r.__read)(
(function (e) {
- var t = Mi.exec(e)
+ var t = So.exec(e)
if (!t) return [,]
- var n = (0, r.CR)(t, 3)
+ var n = (0, r.__read)(t, 3)
return [n[1], n[2]]
})(e),
2,
),
- o = i[0],
- a = i[1]
- if (o) {
- var s = window.getComputedStyle(t).getPropertyValue(o)
- return s ? s.trim() : Pi(a) ? Ri(a, t, n + 1) : a
+ i = o[0],
+ a = o[1]
+ if (i) {
+ var s = window.getComputedStyle(t).getPropertyValue(i)
+ return s ? s.trim() : Mo(a) ? Po(a, t, n + 1) : a
}
}
- function ji(e, t) {
+ function jo(e, t) {
return (e / (t.max - t.min)) * 100
}
- var Di = '_$css'
- var Li = {
+ var Io = '_$css'
+ var Ao = {
process: function (e, t, n) {
var r = n.target
if ('string' === typeof e) {
if (!oe.test(e)) return e
e = parseFloat(e)
}
- return ji(e, r.x) + '% ' + ji(e, r.y) + '%'
+ return jo(e, r.x) + '% ' + jo(e, r.y) + '%'
},
},
- Ni = {
- borderRadius: (0, r.pi)((0, r.pi)({}, Li), {
+ Ro = {
+ borderRadius: (0, r.__assign)((0, r.__assign)({}, Ao), {
applyTo: [
'borderTopLeftRadius',
'borderTopRightRadius',
@@ -20331,35 +33973,35 @@
'borderBottomRightRadius',
],
}),
- borderTopLeftRadius: Li,
- borderTopRightRadius: Li,
- borderBottomLeftRadius: Li,
- borderBottomRightRadius: Li,
+ borderTopLeftRadius: Ao,
+ borderTopRightRadius: Ao,
+ borderBottomLeftRadius: Ao,
+ borderBottomRightRadius: Ao,
boxShadow: {
process: function (e, t) {
var n = t.delta,
r = t.treeScale,
- i = e,
- o = e.includes('var('),
+ o = e,
+ i = e.includes('var('),
a = []
- o &&
- (e = e.replace(Mi, function (e) {
- return a.push(e), Di
+ i &&
+ (e = e.replace(So, function (e) {
+ return a.push(e), Io
}))
- var s = Qt.parse(e)
- if (s.length > 5) return i
- var u = Qt.createTransformer(e),
- l = 'number' !== typeof s[0] ? 1 : 0,
- c = n.x.scale * r.x,
+ var s = Xt.parse(e)
+ if (s.length > 5) return o
+ var u = Xt.createTransformer(e),
+ c = 'number' !== typeof s[0] ? 1 : 0,
+ l = n.x.scale * r.x,
d = n.y.scale * r.y
- ;(s[0 + l] /= c), (s[1 + l] /= d)
- var f = Rt(c, d, 0.5)
- 'number' === typeof s[2 + l] && (s[2 + l] /= f),
- 'number' === typeof s[3 + l] && (s[3 + l] /= f)
+ ;(s[0 + c] /= l), (s[1 + c] /= d)
+ var f = St(l, d, 0.5)
+ 'number' === typeof s[2 + c] && (s[2 + c] /= f),
+ 'number' === typeof s[3 + c] && (s[3 + c] /= f)
var h = u(s)
- if (o) {
+ if (i) {
var p = 0
- h = h.replace(Di, function () {
+ h = h.replace(Io, function () {
var e = a[p]
return p++, e
})
@@ -20368,24 +34010,24 @@
},
},
},
- Ii = (function (e) {
+ Do = (function (e) {
function t() {
var t = (null !== e && e.apply(this, arguments)) || this
return (
- (t.frameTarget = (0, qr.VZ)()),
- (t.currentAnimationTarget = (0, qr.VZ)()),
+ (t.frameTarget = (0, Vr.VZ)()),
+ (t.currentAnimationTarget = (0, Vr.VZ)()),
(t.isAnimating = { x: !1, y: !1 }),
(t.stopAxisAnimation = { x: void 0, y: void 0 }),
(t.isAnimatingTree = !1),
- (t.animate = function (e, n, i) {
- void 0 === i && (i = {})
- var o = i.originBox,
- a = i.targetBox,
- s = i.visibilityAction,
- u = i.shouldStackAnimate,
- l = i.onComplete,
- c = i.prevParent,
- d = (0, r._T)(i, [
+ (t.animate = function (e, n, o) {
+ void 0 === o && (o = {})
+ var i = o.originBox,
+ a = o.targetBox,
+ s = o.visibilityAction,
+ u = o.shouldStackAnimate,
+ c = o.onComplete,
+ l = o.prevParent,
+ d = (0, r.__rest)(o, [
'originBox',
'targetBox',
'visibilityAction',
@@ -20398,43 +34040,43 @@
p = f.layout
if (!1 === u) return (t.isAnimatingTree = !1), t.safeToRemove()
if (!t.isAnimatingTree || !0 === u) {
- u && (t.isAnimatingTree = !0), (n = o || n), (e = a || e)
+ u && (t.isAnimatingTree = !0), (n = i || n), (e = a || e)
var v = !1,
m = h.getProjectionParent()
if (m) {
var g = m.prevViewportBox,
y = m.getLayoutState().layout
- c &&
- (a && (y = c.getLayoutState().layout),
- o && !li(c, m) && c.prevViewportBox && (g = c.prevViewportBox)),
- g && Ui(c, o, a) && ((v = !0), (n = ui(g, n)), (e = ui(y, e)))
+ l &&
+ (a && (y = l.getLayoutState().layout),
+ i && !ao(l, m) && l.prevViewportBox && (g = l.prevViewportBox)),
+ g && Fo(l, i, a) && ((v = !0), (n = io(g, n)), (e = io(y, e)))
}
- var b = zi(n, e),
- w = Wr(function (i) {
- var o, a
+ var b = Lo(n, e),
+ w = Wr(function (o) {
+ var i, a
if ('position' === p) {
- var u = e[i].max - e[i].min
- n[i].max = n[i].min + u
+ var u = e[o].max - e[o].min
+ n[o].max = n[o].min + u
}
if (!h.projection.isTargetLocked)
return void 0 === s
? b
? t.animateAxis(
- i,
- e[i],
- n[i],
- (0, r.pi)((0, r.pi)({}, d), { isRelative: v }),
+ o,
+ e[o],
+ n[o],
+ (0, r.__assign)((0, r.__assign)({}, d), { isRelative: v }),
)
- : (null === (a = (o = t.stopAxisAnimation)[i]) ||
+ : (null === (a = (i = t.stopAxisAnimation)[o]) ||
void 0 === a ||
- a.call(o),
- h.setProjectionTargetAxis(i, e[i].min, e[i].max, v))
- : void h.setVisibility(s === Ai.c.Show)
+ a.call(i),
+ h.setProjectionTargetAxis(o, e[o].min, e[o].max, v))
+ : void h.setVisibility(s === Co.c.Show)
})
return (
h.syncRender(),
Promise.all(w).then(function () {
- ;(t.isAnimatingTree = !1), l && l(), h.notifyLayoutAnimationComplete()
+ ;(t.isAnimatingTree = !1), c && c(), h.notifyLayoutAnimationComplete()
})
)
}
@@ -20443,19 +34085,19 @@
)
}
return (
- (0, r.ZT)(t, e),
+ (0, r.__extends)(t, e),
(t.prototype.componentDidMount = function () {
var e = this,
t = this.props.visualElement
- ;(t.animateMotionValue = lr),
+ ;(t.animateMotionValue = ar),
t.enableLayoutProjection(),
(this.unsubLayoutReady = t.onLayoutUpdate(this.animate)),
(t.layoutSafeToRemove = function () {
return e.safeToRemove()
}),
(function (e) {
- for (var t in e) N[t] = e[t]
- })(Ni)
+ for (var t in e) L[t] = e[t]
+ })(Ro)
}),
(t.prototype.componentWillUnmount = function () {
var e = this
@@ -20468,25 +34110,25 @@
})
}),
(t.prototype.animateAxis = function (e, t, n, r) {
- var i,
- o,
+ var o,
+ i,
a = this,
s = void 0 === r ? {} : r,
u = s.transition,
- l = s.isRelative
- if (!this.isAnimating[e] || !Fi(t, this.currentAnimationTarget[e])) {
- null === (o = (i = this.stopAxisAnimation)[e]) || void 0 === o || o.call(i),
+ c = s.isRelative
+ if (!this.isAnimating[e] || !Bo(t, this.currentAnimationTarget[e])) {
+ null === (i = (o = this.stopAxisAnimation)[e]) || void 0 === i || i.call(o),
(this.isAnimating[e] = !0)
- var c = this.props.visualElement,
+ var l = this.props.visualElement,
d = this.frameTarget[e],
- f = c.getProjectionAnimationProgress()[e]
+ f = l.getProjectionAnimationProgress()[e]
f.clearListeners(), f.set(0), f.set(0)
var h = function () {
var r = f.get() / 1e3
!(function (e, t, n, r) {
- ;(e.min = Rt(t.min, n.min, r)), (e.max = Rt(t.max, n.max, r))
+ ;(e.min = St(t.min, n.min, r)), (e.max = St(t.max, n.max, r))
})(d, n, t, r),
- c.setProjectionTargetAxis(e, d.min, d.max, l)
+ l.setProjectionTargetAxis(e, d.min, d.max, c)
}
h()
var p = f.onChange(h)
@@ -20494,8 +34136,8 @@
;(a.isAnimating[e] = !1), f.stop(), p()
}),
(this.currentAnimationTarget[e] = t)
- var v = u || c.getDefaultTransition() || Vi
- return lr('x' === e ? 'layoutX' : 'layoutY', f, 1e3, v && ur(v, 'layout')).then(
+ var v = u || l.getDefaultTransition() || Ho
+ return ar('x' === e ? 'layoutX' : 'layoutY', f, 1e3, v && ir(v, 'layout')).then(
this.stopAxisAnimation[e],
)
}
@@ -20509,98 +34151,98 @@
}),
t
)
- })(i.Component)
- function zi(e, t) {
- return !Bi(e) && !Bi(t) && (!Fi(e.x, t.x) || !Fi(e.y, t.y))
+ })(o.Component)
+ function Lo(e, t) {
+ return !zo(e) && !zo(t) && (!Bo(e.x, t.x) || !Bo(e.y, t.y))
}
- var Hi = { min: 0, max: 0 }
- function Bi(e) {
- return Fi(e.x, Hi) && Fi(e.y, Hi)
+ var No = { min: 0, max: 0 }
+ function zo(e) {
+ return Bo(e.x, No) && Bo(e.y, No)
}
- function Fi(e, t) {
+ function Bo(e, t) {
return e.min === t.min && e.max === t.max
}
- var Vi = { duration: 0.45, ease: [0.4, 0, 0.1, 1] }
- function Ui(e, t, n) {
+ var Ho = { duration: 0.45, ease: [0.4, 0, 0.1, 1] }
+ function Fo(e, t, n) {
return e || (!e && !(t || n))
}
- var Gi = n(9870),
- qi = (function (e) {
+ var Vo = n(49870),
+ Wo = (function (e) {
function t() {
return (null !== e && e.apply(this, arguments)) || this
}
return (
- (0, r.ZT)(t, e),
+ (0, r.__extends)(t, e),
(t.prototype.componentDidMount = function () {
var e = this.props,
t = e.syncLayout,
n = e.framerSyncLayout,
r = e.visualElement
- ;(0, Gi.Md)(t) && t.register(r),
- (0, Gi.Md)(n) && n.register(r),
+ ;(0, Vo.Md)(t) && t.register(r),
+ (0, Vo.Md)(n) && n.register(r),
r.onUnmount(function () {
- ;(0, Gi.Md)(t) && t.remove(r), (0, Gi.Md)(n) && n.remove(r)
+ ;(0, Vo.Md)(t) && t.remove(r), (0, Vo.Md)(n) && n.remove(r)
})
}),
(t.prototype.getSnapshotBeforeUpdate = function () {
var e = this.props,
t = e.syncLayout,
n = e.visualElement
- return (0, Gi.Md)(t) ? t.syncUpdate() : ((0, ai.x7)(n), t.add(n)), null
+ return (0, Vo.Md)(t) ? t.syncUpdate() : ((0, ro.x7)(n), t.add(n)), null
}),
(t.prototype.componentDidUpdate = function () {
var e = this.props.syncLayout
- ;(0, Gi.Md)(e) || e.flush()
+ ;(0, Vo.Md)(e) || e.flush()
}),
(t.prototype.render = function () {
return null
}),
t
)
- })(i.Component)
- var Wi = {
+ })(o.Component)
+ var Uo = {
measureLayout: function (e) {
- var t = (0, i.useContext)(Gi.WH),
- n = (0, i.useContext)(Gi.bg)
- return i.createElement(qi, (0, r.pi)({}, e, { syncLayout: t, framerSyncLayout: n }))
+ var t = (0, o.useContext)(Vo.WH),
+ n = (0, o.useContext)(Vo.bg)
+ return o.createElement(Wo, (0, r.__assign)({}, e, { syncLayout: t, framerSyncLayout: n }))
},
layoutAnimation: function (e) {
- var t = (0, r.CR)(p(), 2)[1]
- return i.createElement(Ii, (0, r.pi)({}, e, { safeToRemove: t }))
+ var t = (0, r.__read)(p(), 2)[1]
+ return o.createElement(Do, (0, r.__assign)({}, e, { safeToRemove: t }))
},
}
- function Ki() {
+ function Go() {
return {
isHydrated: !1,
- layout: (0, qr.VZ)(),
- layoutCorrected: (0, qr.VZ)(),
+ layout: (0, Vr.VZ)(),
+ layoutCorrected: (0, Vr.VZ)(),
treeScale: { x: 1, y: 1 },
- delta: (0, qr.pY)(),
- deltaFinal: (0, qr.pY)(),
+ delta: (0, Vr.pY)(),
+ deltaFinal: (0, Vr.pY)(),
deltaTransform: '',
}
}
- var Zi = Ki()
- function $i(e, t, n) {
+ var qo = Go()
+ function Ko(e, t, n) {
var r = e.x,
- i = e.y,
- o = 'translate3d(' + r.translate / t.x + 'px, ' + i.translate / t.y + 'px, 0) '
+ o = e.y,
+ i = 'translate3d(' + r.translate / t.x + 'px, ' + o.translate / t.y + 'px, 0) '
if (n) {
var a = n.rotate,
s = n.rotateX,
u = n.rotateY
- a && (o += 'rotate(' + a + ') '),
- s && (o += 'rotateX(' + s + ') '),
- u && (o += 'rotateY(' + u + ') ')
+ a && (i += 'rotate(' + a + ') '),
+ s && (i += 'rotateX(' + s + ') '),
+ u && (i += 'rotateY(' + u + ') ')
}
- return (o += 'scale(' + r.scale + ', ' + i.scale + ')'), n || o !== Yi ? o : ''
+ return (i += 'scale(' + r.scale + ', ' + o.scale + ')'), n || i !== Xo ? i : ''
}
- function Xi(e) {
+ function Zo(e) {
var t = e.deltaFinal
return 100 * t.x.origin + '% ' + 100 * t.y.origin + '% 0'
}
- var Yi = $i(Zi.delta, Zi.treeScale, { x: 1, y: 1 }),
- Qi = [
+ var Xo = Ko(qo.delta, qo.treeScale, { x: 1, y: 1 }),
+ $o = [
'LayoutMeasure',
'BeforeLayoutMeasure',
'LayoutUpdate',
@@ -20613,62 +34255,62 @@
'SetAxisTarget',
'Unmount',
]
- function Ji(e, t, n, r) {
- var i,
- o,
+ function Yo(e, t, n, r) {
+ var o,
+ i,
a = e.delta,
s = e.layout,
u = e.layoutCorrected,
- l = e.treeScale,
- c = t.target
- ;(o = s),
- di((i = u).x, o.x),
- di(i.y, o.y),
+ c = e.treeScale,
+ l = t.target
+ ;(i = s),
+ uo((o = u).x, i.x),
+ uo(o.y, i.y),
(function (e, t, n) {
var r = n.length
if (r) {
- var i, o
+ var o, i
t.x = t.y = 1
for (var a = 0; a < r; a++)
- (o = (i = n[a]).getLayoutState().delta),
- (t.x *= o.x.scale),
- (t.y *= o.y.scale),
- vi(e, o),
- ci(i) && bi(e, e, i.getLatestValues())
+ (i = (o = n[a]).getLayoutState().delta),
+ (t.x *= i.x.scale),
+ (t.y *= i.y.scale),
+ ho(e, i),
+ so(o) && go(e, e, o.getLatestValues())
}
- })(u, l, n),
- ri(a, u, c, r)
+ })(u, c, n),
+ eo(a, u, l, r)
}
- var eo = n(519),
- to = (function () {
+ var Qo = n(519),
+ Jo = (function () {
function e() {
;(this.children = []), (this.isDirty = !1)
}
return (
(e.prototype.add = function (e) {
- cr(this.children, e), (this.isDirty = !0)
+ sr(this.children, e), (this.isDirty = !0)
}),
(e.prototype.remove = function (e) {
- dr(this.children, e), (this.isDirty = !0)
+ ur(this.children, e), (this.isDirty = !0)
}),
(e.prototype.forEach = function (e) {
- this.isDirty && this.children.sort(eo._),
+ this.isDirty && this.children.sort(Qo._),
(this.isDirty = !1),
this.children.forEach(e)
}),
e
)
})()
- var no = function (e) {
+ var ei = function (e) {
var t = e.treeType,
n = void 0 === t ? '' : t,
- i = e.build,
- o = e.getBaseTarget,
+ o = e.build,
+ i = e.getBaseTarget,
a = e.makeTargetAnimatable,
s = e.measureViewportBox,
u = e.render,
- l = e.readValueFromInstance,
- c = e.resetTransform,
+ c = e.readValueFromInstance,
+ l = e.resetTransform,
d = e.restoreTransform,
f = e.removeValueFromRenderState,
h = e.sortNodePosition,
@@ -20681,16 +34323,16 @@
b = e.visualState
void 0 === t && (t = {})
var w,
+ _,
x,
- E,
k,
- _,
- O,
+ E,
+ T,
C = b.latestValues,
P = b.renderState,
- M = (function () {
- var e = Qi.map(function () {
- return new fr()
+ j = (function () {
+ var e = $o.map(function () {
+ return new cr()
}),
t = {},
n = {
@@ -20700,48 +34342,48 @@
})
},
updatePropListeners: function (e) {
- return Qi.forEach(function (r) {
- var i
- null === (i = t[r]) || void 0 === i || i.call(t)
- var o = 'on' + r,
- a = e[o]
- a && (t[r] = n[o](a))
+ return $o.forEach(function (r) {
+ var o
+ null === (o = t[r]) || void 0 === o || o.call(t)
+ var i = 'on' + r,
+ a = e[i]
+ a && (t[r] = n[i](a))
})
},
}
return (
e.forEach(function (e, t) {
- ;(n['on' + Qi[t]] = function (t) {
+ ;(n['on' + $o[t]] = function (t) {
return e.add(t)
}),
- (n['notify' + Qi[t]] = function () {
+ (n['notify' + $o[t]] = function () {
for (var t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n]
- return e.notify.apply(e, (0, r.ev)([], (0, r.CR)(t)))
+ return e.notify.apply(e, (0, r.__spreadArray)([], (0, r.__read)(t)))
})
}),
n
)
})(),
- R = {
+ I = {
isEnabled: !1,
isHydrated: !1,
isTargetLocked: !1,
- target: (0, qr.VZ)(),
- targetFinal: (0, qr.VZ)(),
- },
- j = R,
- D = C,
- L = Ki(),
- N = !1,
- I = new Map(),
+ target: (0, Vr.VZ)(),
+ targetFinal: (0, Vr.VZ)(),
+ },
+ A = I,
+ R = C,
+ D = Go(),
+ L = !1,
+ N = new Map(),
z = new Map(),
- H = {},
- B = (0, r.pi)({}, C)
+ B = {},
+ H = (0, r.__assign)({}, C)
function F() {
w &&
(Y.isProjectionReady() &&
- (bi(j.targetFinal, j.target, D),
- ri(L.deltaFinal, L.layoutCorrected, j.targetFinal, C)),
+ (go(A.targetFinal, A.target, R),
+ eo(D.deltaFinal, D.layoutCorrected, A.targetFinal, C)),
V(),
u(w, P))
}
@@ -20751,34 +34393,36 @@
var n = k.getCrossfadeState(Y)
n && (e = n)
}
- i(Y, P, e, j, L, t, m)
+ o(Y, P, e, A, D, t, m)
}
- function U() {
- M.notifyUpdate(C)
+ function W() {
+ j.notifyUpdate(C)
}
- function G() {
- Y.layoutTree.forEach(io)
+ function U() {
+ Y.layoutTree.forEach(ni)
}
- var W = p(m)
- for (var K in W) {
- var Z = W[K]
- void 0 !== C[K] && q(Z) && Z.set(C[K], !1)
+ var q = p(m)
+ for (var K in q) {
+ var Z = q[K]
+ void 0 !== C[K] && G(Z) && Z.set(C[K], !1)
}
- var $ = S(m),
- X = A(m),
- Y = (0, r.pi)(
- (0, r.pi)(
+ var X = M(m),
+ $ = S(m),
+ Y = (0, r.__assign)(
+ (0, r.__assign)(
{
treeType: n,
current: null,
depth: v ? v.depth + 1 : 0,
parent: v,
children: new Set(),
- path: v ? (0, r.ev)((0, r.ev)([], (0, r.CR)(v.path)), [v]) : [],
- layoutTree: v ? v.layoutTree : new to(),
+ path: v
+ ? (0, r.__spreadArray)((0, r.__spreadArray)([], (0, r.__read)(v.path)), [v])
+ : [],
+ layoutTree: v ? v.layoutTree : new Jo(),
presenceId: g,
- projection: R,
- variantChildren: X ? new Set() : void 0,
+ projection: I,
+ variantChildren: $ ? new Set() : void 0,
isVisible: void 0,
manuallyAnimateOnMount: Boolean(
null === v || void 0 === v ? void 0 : v.isMounted(),
@@ -20790,25 +34434,25 @@
mount: function (e) {
;(w = Y.current = e),
Y.pointTo(Y),
- X &&
+ $ &&
v &&
- !$ &&
- (O = null === v || void 0 === v ? void 0 : v.addVariantChild(Y)),
+ !X &&
+ (T = null === v || void 0 === v ? void 0 : v.addVariantChild(Y)),
null === v || void 0 === v || v.children.add(Y)
},
unmount: function () {
- An.qY.update(U),
- An.qY.render(F),
- An.qY.preRender(Y.updateLayoutProjection),
+ Tn.qY.update(W),
+ Tn.qY.render(F),
+ Tn.qY.preRender(Y.updateLayoutProjection),
z.forEach(function (e) {
return e()
}),
Y.stopLayoutAnimation(),
Y.layoutTree.remove(Y),
- null === O || void 0 === O || O(),
+ null === T || void 0 === T || T(),
null === v || void 0 === v || v.children.delete(Y),
- null === E || void 0 === E || E(),
- M.clearAllListeners()
+ null === x || void 0 === x || x(),
+ j.clearAllListeners()
},
addVariantChild: function (e) {
var t,
@@ -20825,12 +34469,12 @@
return h && n === e.treeType ? h(Y.getInstance(), e.getInstance()) : 0
},
getClosestVariantNode: function () {
- return X ? Y : null === v || void 0 === v ? void 0 : v.getClosestVariantNode()
+ return $ ? Y : null === v || void 0 === v ? void 0 : v.getClosestVariantNode()
},
scheduleUpdateLayoutProjection: v
? v.scheduleUpdateLayoutProjection
: function () {
- return An.ZP.preRender(Y.updateTreeLayoutProjection, !1, !0)
+ return Tn.ZP.preRender(Y.updateTreeLayoutProjection, !1, !0)
},
getLayoutId: function () {
return m.layoutId
@@ -20855,11 +34499,11 @@
},
addValue: function (e, t) {
Y.hasValue(e) && Y.removeValue(e),
- I.set(e, t),
+ N.set(e, t),
(C[e] = t.get()),
(function (e, t) {
var n = t.onChange(function (t) {
- ;(C[e] = t), m.onUpdate && An.ZP.update(U, !1, !0)
+ ;(C[e] = t), m.onUpdate && Tn.ZP.update(W, !1, !0)
}),
r = t.onRenderRequest(Y.scheduleRender)
z.set(e, function () {
@@ -20869,70 +34513,70 @@
},
removeValue: function (e) {
var t
- I.delete(e),
+ N.delete(e),
null === (t = z.get(e)) || void 0 === t || t(),
z.delete(e),
delete C[e],
f(e, P)
},
hasValue: function (e) {
- return I.has(e)
+ return N.has(e)
},
getValue: function (e, t) {
- var n = I.get(e)
- return void 0 === n && void 0 !== t && ((n = pr(t)), Y.addValue(e, n)), n
+ var n = N.get(e)
+ return void 0 === n && void 0 !== t && ((n = dr(t)), Y.addValue(e, n)), n
},
forEachValue: function (e) {
- return I.forEach(e)
+ return N.forEach(e)
},
readValue: function (e) {
var n
- return null !== (n = C[e]) && void 0 !== n ? n : l(w, e, t)
+ return null !== (n = C[e]) && void 0 !== n ? n : c(w, e, t)
},
setBaseTarget: function (e, t) {
- B[e] = t
+ H[e] = t
},
getBaseTarget: function (e) {
- if (o) {
- var t = o(m, e)
- if (void 0 !== t && !q(t)) return t
+ if (i) {
+ var t = i(m, e)
+ if (void 0 !== t && !G(t)) return t
}
- return B[e]
+ return H[e]
},
},
- M,
+ j,
),
{
build: function () {
return V(), P
},
scheduleRender: function () {
- An.ZP.render(F, !1, !0)
+ Tn.ZP.render(F, !1, !0)
},
syncRender: F,
setProps: function (e) {
;(m = e),
- M.updatePropListeners(e),
- (H = (function (e, t, n) {
+ j.updatePropListeners(e),
+ (B = (function (e, t, n) {
var r
- for (var i in t) {
- var o = t[i],
- a = n[i]
- if (q(o)) e.addValue(i, o)
- else if (q(a)) e.addValue(i, pr(o))
- else if (a !== o)
- if (e.hasValue(i)) {
- var s = e.getValue(i)
- !s.hasAnimated && s.set(o)
+ for (var o in t) {
+ var i = t[o],
+ a = n[o]
+ if (G(i)) e.addValue(o, i)
+ else if (G(a)) e.addValue(o, dr(i))
+ else if (a !== i)
+ if (e.hasValue(o)) {
+ var s = e.getValue(o)
+ !s.hasAnimated && s.set(i)
} else
e.addValue(
- i,
- pr(null !== (r = e.getStaticValue(i)) && void 0 !== r ? r : o),
+ o,
+ dr(null !== (r = e.getStaticValue(o)) && void 0 !== r ? r : i),
)
}
- for (var i in n) void 0 === t[i] && e.removeValue(i)
+ for (var o in n) void 0 === t[o] && e.removeValue(o)
return t
- })(Y, p(m), H))
+ })(Y, p(m), B))
},
getProps: function () {
return m
@@ -20947,45 +34591,45 @@
getVariantContext: function (e) {
if ((void 0 === e && (e = !1), e))
return null === v || void 0 === v ? void 0 : v.getVariantContext()
- if (!$) {
+ if (!X) {
var t = (null === v || void 0 === v ? void 0 : v.getVariantContext()) || {}
return void 0 !== m.initial && (t.initial = m.initial), t
}
- for (var n = {}, r = 0; r < so; r++) {
- var i = ao[r],
- o = m[i]
- ;(T(o) || !1 === o) && (n[i] = o)
+ for (var n = {}, r = 0; r < ii; r++) {
+ var o = oi[r],
+ i = m[o]
+ ;(O(i) || !1 === i) && (n[o] = i)
}
return n
},
enableLayoutProjection: function () {
- ;(R.isEnabled = !0), Y.layoutTree.add(Y)
+ ;(I.isEnabled = !0), Y.layoutTree.add(Y)
},
lockProjectionTarget: function () {
- R.isTargetLocked = !0
+ I.isTargetLocked = !0
},
unlockProjectionTarget: function () {
- Y.stopLayoutAnimation(), (R.isTargetLocked = !1)
+ Y.stopLayoutAnimation(), (I.isTargetLocked = !1)
},
getLayoutState: function () {
- return L
+ return D
},
setCrossfader: function (e) {
k = e
},
isProjectionReady: function () {
- return R.isEnabled && R.isHydrated && L.isHydrated
+ return I.isEnabled && I.isHydrated && D.isHydrated
},
startLayoutAnimation: function (e, t, n) {
void 0 === n && (n = !1)
var r = Y.getProjectionAnimationProgress()[e],
- i = n ? R.relativeTarget[e] : R.target[e],
- o = i.min,
- a = i.max - o
+ o = n ? I.relativeTarget[e] : I.target[e],
+ i = o.min,
+ a = o.max - i
return (
r.clearListeners(),
- r.set(o),
- r.set(o),
+ r.set(i),
+ r.set(i),
r.onChange(function (t) {
Y.setProjectionTargetAxis(e, t, t + a, n)
}),
@@ -21000,75 +34644,75 @@
measureViewportBox: function (e) {
void 0 === e && (e = !0)
var n = s(w, t)
- return e || Ei(n, C), n
+ return e || wo(n, C), n
},
getProjectionAnimationProgress: function () {
- return _ || (_ = { x: pr(0), y: pr(0) }), _
+ return E || (E = { x: dr(0), y: dr(0) }), E
},
setProjectionTargetAxis: function (e, t, n, r) {
- var i
+ var o
void 0 === r && (r = !1),
r
- ? (R.relativeTarget || (R.relativeTarget = (0, qr.VZ)()),
- (i = R.relativeTarget[e]))
- : ((R.relativeTarget = void 0), (i = R.target[e])),
- (R.isHydrated = !0),
- (i.min = t),
- (i.max = n),
- (N = !0),
- M.notifySetAxisTarget()
+ ? (I.relativeTarget || (I.relativeTarget = (0, Vr.VZ)()),
+ (o = I.relativeTarget[e]))
+ : ((I.relativeTarget = void 0), (o = I.target[e])),
+ (I.isHydrated = !0),
+ (o.min = t),
+ (o.max = n),
+ (L = !0),
+ j.notifySetAxisTarget()
},
rebaseProjectionTarget: function (e, t) {
- void 0 === t && (t = L.layout)
+ void 0 === t && (t = D.layout)
var n = Y.getProjectionAnimationProgress(),
r = n.x,
- i = n.y,
- o =
- !R.relativeTarget && !R.isTargetLocked && !r.isAnimating() && !i.isAnimating()
- ;(e || o) &&
+ o = n.y,
+ i =
+ !I.relativeTarget && !I.isTargetLocked && !r.isAnimating() && !o.isAnimating()
+ ;(e || i) &&
Wr(function (e) {
var n = t[e],
r = n.min,
- i = n.max
- Y.setProjectionTargetAxis(e, r, i)
+ o = n.max
+ Y.setProjectionTargetAxis(e, r, o)
})
},
notifyLayoutReady: function (e) {
!(function (e) {
var t = e.getProjectionParent()
if (t) {
- var n = ui(t.getLayoutState().layout, e.getLayoutState().layout)
+ var n = io(t.getLayoutState().layout, e.getLayoutState().layout)
Wr(function (t) {
e.setProjectionTargetAxis(t, n[t].min, n[t].max, !0)
})
} else e.rebaseProjectionTarget()
})(Y),
- Y.notifyLayoutUpdate(L.layout, Y.prevViewportBox || L.layout, e)
+ Y.notifyLayoutUpdate(D.layout, Y.prevViewportBox || D.layout, e)
},
resetTransform: function () {
- return c(Y, w, m)
+ return l(Y, w, m)
},
restoreTransform: function () {
return d(w, P)
},
updateLayoutProjection: function () {
if (Y.isProjectionReady()) {
- var e = L.delta,
- t = L.treeScale,
+ var e = D.delta,
+ t = D.treeScale,
n = t.x,
r = t.y,
- i = L.deltaTransform
- Ji(L, j, Y.path, C), N && Y.notifyViewportBoxUpdate(j.target, e), (N = !1)
- var o = $i(e, t)
- ;(o === i && n === t.x && r === t.y) || Y.scheduleRender(),
- (L.deltaTransform = o)
+ o = D.deltaTransform
+ Yo(D, A, Y.path, C), L && Y.notifyViewportBoxUpdate(A.target, e), (L = !1)
+ var i = Ko(e, t)
+ ;(i === o && n === t.x && r === t.y) || Y.scheduleRender(),
+ (D.deltaTransform = i)
}
},
updateTreeLayoutProjection: function () {
- Y.layoutTree.forEach(ro), An.ZP.preRender(G, !1, !0)
+ Y.layoutTree.forEach(ti), Tn.ZP.preRender(U, !1, !0)
},
getProjectionParent: function () {
- if (void 0 === x) {
+ if (void 0 === _) {
for (var e = !1, t = Y.path.length - 1; t >= 0; t--) {
var n = Y.path[t]
if (n.projection.isEnabled) {
@@ -21076,67 +34720,67 @@
break
}
}
- x = e
+ _ = e
}
- return x
+ return _
},
resolveRelativeTargetBox: function () {
var e = Y.getProjectionParent()
if (
- R.relativeTarget &&
+ I.relativeTarget &&
e &&
((function (e, t) {
- oi(e.target.x, e.relativeTarget.x, t.target.x),
- oi(e.target.y, e.relativeTarget.y, t.target.y)
- })(R, e.projection),
- ci(e))
+ no(e.target.x, e.relativeTarget.x, t.target.x),
+ no(e.target.y, e.relativeTarget.y, t.target.y)
+ })(I, e.projection),
+ so(e))
) {
- var t = R.target
- bi(t, t, e.getLatestValues())
+ var t = I.target
+ go(t, t, e.getLatestValues())
}
},
shouldResetTransform: function () {
return Boolean(m._layoutResetTransform)
},
pointTo: function (e) {
- ;(j = e.projection),
- (D = e.getLatestValues()),
- null === E || void 0 === E || E(),
- (E = mt(
+ ;(A = e.projection),
+ (R = e.getLatestValues()),
+ null === x || void 0 === x || x(),
+ (x = vt(
e.onSetAxisTarget(Y.scheduleUpdateLayoutProjection),
e.onLayoutAnimationComplete(function () {
var e
Y.isPresent
- ? (Y.presence = Ai.z.Present)
+ ? (Y.presence = Co.z.Present)
: null === (e = Y.layoutSafeToRemove) || void 0 === e || e.call(Y)
}),
))
},
isPresent: !0,
- presence: Ai.z.Entering,
+ presence: Co.z.Entering,
},
)
return Y
}
}
- function ro(e) {
+ function ti(e) {
e.resolveRelativeTargetBox()
}
- function io(e) {
+ function ni(e) {
e.updateLayoutProjection()
}
- var oo,
- ao = (0, r.ev)(['initial'], (0, r.CR)(Cr)),
- so = ao.length,
- uo = new Set(['width', 'height', 'top', 'left', 'right', 'bottom', 'x', 'y']),
- lo = function (e) {
- return uo.has(e)
+ var ri,
+ oi = (0, r.__spreadArray)(['initial'], (0, r.__read)(Er)),
+ ii = oi.length,
+ ai = new Set(['width', 'height', 'top', 'left', 'right', 'bottom', 'x', 'y']),
+ si = function (e) {
+ return ai.has(e)
},
- co = function (e, t) {
+ ui = function (e, t) {
e.set(t, !1), e.set(t)
},
- fo = function (e) {
- return e === le || e === oe
+ ci = function (e) {
+ return e === ue || e === oe
}
!(function (e) {
;(e.width = 'width'),
@@ -21145,25 +34789,25 @@
(e.right = 'right'),
(e.top = 'top'),
(e.bottom = 'bottom')
- })(oo || (oo = {}))
- var ho = function (e, t) {
+ })(ri || (ri = {}))
+ var li = function (e, t) {
return parseFloat(e.split(', ')[t])
},
- po = function (e, t) {
+ di = function (e, t) {
return function (n, r) {
- var i = r.transform
- if ('none' === i || !i) return 0
- var o = i.match(/^matrix3d\((.+)\)$/)
- if (o) return ho(o[1], t)
- var a = i.match(/^matrix\((.+)\)$/)
- return a ? ho(a[1], e) : 0
+ var o = r.transform
+ if ('none' === o || !o) return 0
+ var i = o.match(/^matrix3d\((.+)\)$/)
+ if (i) return li(i[1], t)
+ var a = o.match(/^matrix\((.+)\)$/)
+ return a ? li(a[1], e) : 0
}
},
- vo = new Set(['x', 'y', 'z']),
- mo = z.filter(function (e) {
- return !vo.has(e)
+ fi = new Set(['x', 'y', 'z']),
+ hi = z.filter(function (e) {
+ return !fi.has(e)
})
- var go = {
+ var pi = {
width: function (e) {
var t = e.x
return t.max - t.min
@@ -21190,49 +34834,49 @@
r = t.left
return parseFloat(r) + (n.max - n.min)
},
- x: po(4, 13),
- y: po(5, 14),
+ x: di(4, 13),
+ y: di(5, 14),
},
- yo = function (e, t, n, i) {
+ vi = function (e, t, n, o) {
void 0 === n && (n = {}),
- void 0 === i && (i = {}),
- (t = (0, r.pi)({}, t)),
- (i = (0, r.pi)({}, i))
- var o = Object.keys(t).filter(lo),
+ void 0 === o && (o = {}),
+ (t = (0, r.__assign)({}, t)),
+ (o = (0, r.__assign)({}, o))
+ var i = Object.keys(t).filter(si),
a = [],
s = !1,
u = []
if (
- (o.forEach(function (r) {
- var o = e.getValue(r)
+ (i.forEach(function (r) {
+ var i = e.getValue(r)
if (e.hasValue(r)) {
- var l,
- c = n[r],
+ var c,
+ l = n[r],
d = t[r],
- f = gr(c)
- if (He(d))
+ f = pr(l)
+ if (ze(d))
for (var h = d.length, p = null === d[0] ? 1 : 0; p < h; p++)
- l ? gr(d[p]) : (l = gr(d[p])) === f || (fo(f) && fo(l))
- else l = gr(d)
- if (f !== l)
- if (fo(f) && fo(l)) {
- var v = o.get()
- 'string' === typeof v && o.set(parseFloat(v)),
+ c ? pr(d[p]) : (c = pr(d[p])) === f || (ci(f) && ci(c))
+ else c = pr(d)
+ if (f !== c)
+ if (ci(f) && ci(c)) {
+ var v = i.get()
+ 'string' === typeof v && i.set(parseFloat(v)),
'string' === typeof d
? (t[r] = parseFloat(d))
- : Array.isArray(d) && l === oe && (t[r] = d.map(parseFloat))
+ : Array.isArray(d) && c === oe && (t[r] = d.map(parseFloat))
} else
(null === f || void 0 === f ? void 0 : f.transform) &&
- (null === l || void 0 === l ? void 0 : l.transform) &&
- (0 === c || 0 === d)
- ? 0 === c
- ? o.set(l.transform(c))
+ (null === c || void 0 === c ? void 0 : c.transform) &&
+ (0 === l || 0 === d)
+ ? 0 === l
+ ? i.set(c.transform(l))
: (t[r] = f.transform(d))
: (s ||
((a = (function (e) {
var t = []
return (
- mo.forEach(function (n) {
+ hi.forEach(function (n) {
var r = e.getValue(n)
void 0 !== r &&
(t.push([n, r.get()]), r.set(n.startsWith('scale') ? 1 : 0))
@@ -21243,30 +34887,30 @@
})(e)),
(s = !0)),
u.push(r),
- (i[r] = void 0 !== i[r] ? i[r] : t[r]),
- co(o, d))
+ (o[r] = void 0 !== o[r] ? o[r] : t[r]),
+ ui(i, d))
}
}),
u.length)
) {
- var l = (function (e, t, n) {
+ var c = (function (e, t, n) {
var r = t.measureViewportBox(),
- i = t.getInstance(),
- o = getComputedStyle(i),
- a = o.display,
+ o = t.getInstance(),
+ i = getComputedStyle(o),
+ a = i.display,
s = {
- top: o.top,
- left: o.left,
- bottom: o.bottom,
- right: o.right,
- transform: o.transform,
+ top: i.top,
+ left: i.left,
+ bottom: i.bottom,
+ right: i.right,
+ transform: i.transform,
}
'none' === a && t.setStaticValue('display', e.display || 'block'), t.syncRender()
var u = t.measureViewportBox()
return (
n.forEach(function (n) {
- var i = t.getValue(n)
- co(i, go[n](r, s)), (e[n] = go[n](u, o))
+ var o = t.getValue(n)
+ ui(o, pi[n](r, s)), (e[n] = pi[n](u, i))
}),
e
)
@@ -21274,59 +34918,59 @@
return (
a.length &&
a.forEach(function (t) {
- var n = (0, r.CR)(t, 2),
- i = n[0],
- o = n[1]
- e.getValue(i).set(o)
+ var n = (0, r.__read)(t, 2),
+ o = n[0],
+ i = n[1]
+ e.getValue(o).set(i)
}),
e.syncRender(),
- { target: l, transitionEnd: i }
+ { target: c, transitionEnd: o }
)
}
- return { target: t, transitionEnd: i }
+ return { target: t, transitionEnd: o }
}
- function bo(e, t, n, r) {
+ function mi(e, t, n, r) {
return (function (e) {
- return Object.keys(e).some(lo)
+ return Object.keys(e).some(si)
})(t)
- ? yo(e, t, n, r)
+ ? vi(e, t, n, r)
: { target: t, transitionEnd: r }
}
- var wo = function (e, t, n, i) {
- var o = (function (e, t, n) {
- var i,
- o = (0, r._T)(t, []),
+ var gi = function (e, t, n, o) {
+ var i = (function (e, t, n) {
+ var o,
+ i = (0, r.__rest)(t, []),
a = e.getInstance()
- if (!(a instanceof HTMLElement)) return { target: o, transitionEnd: n }
- for (var s in (n && (n = (0, r.pi)({}, n)),
+ if (!(a instanceof HTMLElement)) return { target: i, transitionEnd: n }
+ for (var s in (n && (n = (0, r.__assign)({}, n)),
e.forEachValue(function (e) {
var t = e.get()
- if (Pi(t)) {
- var n = Ri(t, a)
+ if (Mo(t)) {
+ var n = Po(t, a)
n && e.set(n)
}
}),
- o)) {
- var u = o[s]
- if (Pi(u)) {
- var l = Ri(u, a)
- l && ((o[s] = l), n && ((null !== (i = n[s]) && void 0 !== i) || (n[s] = u)))
+ i)) {
+ var u = i[s]
+ if (Mo(u)) {
+ var c = Po(u, a)
+ c && ((i[s] = c), n && ((null !== (o = n[s]) && void 0 !== o) || (n[s] = u)))
}
}
- return { target: o, transitionEnd: n }
- })(e, t, i)
- return bo(e, (t = o.target), n, (i = o.transitionEnd))
+ return { target: i, transitionEnd: n }
+ })(e, t, o)
+ return mi(e, (t = i.target), n, (o = i.transitionEnd))
}
- var xo = {
+ var yi = {
treeType: 'dom',
readValueFromInstance: function (e, t) {
if (F(t)) {
- var n = tr(t)
+ var n = Qn(t)
return (n && n.default) || 0
}
var r,
- i = ((r = e), window.getComputedStyle(r))
- return (K(t) ? i.getPropertyValue(t) : i[t]) || 0
+ o = ((r = e), window.getComputedStyle(r))
+ return (K(t) ? o.getPropertyValue(t) : o[t]) || 0
},
sortNodePosition: function (e, t) {
return 2 & e.compareDocumentPosition(t) ? 1 : -1
@@ -21336,7 +34980,7 @@
return null === (n = e.style) || void 0 === n ? void 0 : n[t]
},
measureViewportBox: function (e, t) {
- return Qr(e, t.transformPagePoint)
+ return Xr(e, t.transformPagePoint)
},
resetTransform: function (e, t, n) {
var r = n.transformTemplate
@@ -21350,107 +34994,107 @@
r = t.style
delete n[e], delete r[e]
},
- makeTargetAnimatable: function (e, t, n, i) {
- var o = n.transformValues
- void 0 === i && (i = !0)
+ makeTargetAnimatable: function (e, t, n, o) {
+ var i = n.transformValues
+ void 0 === o && (o = !0)
var a = t.transition,
s = t.transitionEnd,
- u = (0, r._T)(t, ['transition', 'transitionEnd']),
- l = (function (e, t, n) {
+ u = (0, r.__rest)(t, ['transition', 'transitionEnd']),
+ c = (function (e, t, n) {
var r,
- i,
- o = {}
+ o,
+ i = {}
for (var a in e)
- o[a] =
- null !== (r = Er(a, t)) && void 0 !== r
+ i[a] =
+ null !== (r = br(a, t)) && void 0 !== r
? r
- : null === (i = n.getValue(a)) || void 0 === i
+ : null === (o = n.getValue(a)) || void 0 === o
? void 0
- : i.get()
- return o
+ : o.get()
+ return i
})(u, a || {}, e)
- if ((o && (s && (s = o(s)), u && (u = o(u)), l && (l = o(l))), i)) {
+ if ((i && (s && (s = i(s)), u && (u = i(u)), c && (c = i(c))), o)) {
!(function (e, t, n) {
var r,
- i,
o,
+ i,
a,
s = Object.keys(t).filter(function (t) {
return !e.hasValue(t)
}),
u = s.length
if (u)
- for (var l = 0; l < u; l++) {
- var c = s[l],
- d = t[c],
+ for (var c = 0; c < u; c++) {
+ var l = s[c],
+ d = t[l],
f = null
Array.isArray(d) && (f = d[0]),
null === f &&
(f =
- null !== (i = null !== (r = n[c]) && void 0 !== r ? r : e.readValue(c)) &&
- void 0 !== i
- ? i
- : t[c]),
+ null !== (o = null !== (r = n[l]) && void 0 !== r ? r : e.readValue(l)) &&
+ void 0 !== o
+ ? o
+ : t[l]),
void 0 !== f &&
null !== f &&
('string' === typeof f && /^\-?\d*\.?\d+$/.test(f)
? (f = parseFloat(f))
- : !br(f) && Qt.test(d) && (f = nr(c, d)),
- e.addValue(c, pr(f)),
- (null !== (o = (a = n)[c]) && void 0 !== o) || (a[c] = f),
- e.setBaseTarget(c, f))
+ : !mr(f) && Xt.test(d) && (f = Jn(l, d)),
+ e.addValue(l, dr(f)),
+ (null !== (i = (a = n)[l]) && void 0 !== i) || (a[l] = f),
+ e.setBaseTarget(l, f))
}
- })(e, u, l)
- var c = wo(e, u, l, s)
- ;(s = c.transitionEnd), (u = c.target)
+ })(e, u, c)
+ var l = gi(e, u, c, s)
+ ;(s = l.transitionEnd), (u = l.target)
}
- return (0, r.pi)({ transition: a, transitionEnd: s }, u)
+ return (0, r.__assign)({ transition: a, transitionEnd: s }, u)
},
- scrapeMotionValuesFromProps: Ne,
- build: function (e, t, n, r, i, o, a) {
+ scrapeMotionValuesFromProps: De,
+ build: function (e, t, n, r, o, i, a) {
void 0 !== e.isVisible && (t.style.visibility = e.isVisible ? 'visible' : 'hidden')
- var s = r.isEnabled && i.isHydrated
- pe(t, n, r, i, o, a.transformTemplate, s ? $i : void 0, s ? Xi : void 0)
+ var s = r.isEnabled && o.isHydrated
+ he(t, n, r, o, i, a.transformTemplate, s ? Ko : void 0, s ? Zo : void 0)
},
- render: je,
+ render: Ie,
},
- Eo = no(xo),
- ko = no(
- (0, r.pi)((0, r.pi)({}, xo), {
+ bi = ei(yi),
+ wi = ei(
+ (0, r.__assign)((0, r.__assign)({}, yi), {
getBaseTarget: function (e, t) {
return e[t]
},
readValueFromInstance: function (e, t) {
var n
return F(t)
- ? (null === (n = tr(t)) || void 0 === n ? void 0 : n.default) || 0
- : ((t = De.has(t) ? t : Re(t)), e.getAttribute(t))
+ ? (null === (n = Qn(t)) || void 0 === n ? void 0 : n.default) || 0
+ : ((t = Ae.has(t) ? t : je(t)), e.getAttribute(t))
},
- scrapeMotionValuesFromProps: Ie,
- build: function (e, t, n, r, i, o, a) {
- var s = r.isEnabled && i.isHydrated
- Ce(t, n, r, i, o, a.transformTemplate, s ? $i : void 0, s ? Xi : void 0)
+ scrapeMotionValuesFromProps: Le,
+ build: function (e, t, n, r, o, i, a) {
+ var s = r.isEnabled && o.isHydrated
+ Te(t, n, r, o, i, a.transformTemplate, s ? Ko : void 0, s ? Zo : void 0)
},
- render: Le,
+ render: Re,
}),
),
- _o = function (e, t) {
- return L(e)
- ? ko(t, { enableHardwareAcceleration: !1 })
- : Eo(t, { enableHardwareAcceleration: !0 })
- },
- To = (0, r.pi)((0, r.pi)((0, r.pi)((0, r.pi)({}, jr), yt), Si), Wi),
- Oo = j(function (e, t) {
- return (function (e, t, n, i) {
- var o = t.forwardMotionProps,
- a = void 0 !== o && o,
- s = L(e) ? Ge : We
+ _i = function (e, t) {
+ return D(e)
+ ? wi(t, { enableHardwareAcceleration: !1 })
+ : bi(t, { enableHardwareAcceleration: !0 })
+ },
+ xi = (0, r.__assign)((0, r.__assign)((0, r.__assign)((0, r.__assign)({}, Pr), gt), To), Uo),
+ ki = A(function (e, t) {
+ return (function (e, t, n, o) {
+ var i = t.forwardMotionProps,
+ a = void 0 !== i && i,
+ s = D(e) ? We : Ge
return (0,
- r.pi)((0, r.pi)({}, s), { preloadedFeatures: n, useRender: Pe(a), createVisualElement: i, Component: e })
- })(e, t, To, _o)
+ r.__assign)((0, r.__assign)({}, s), { preloadedFeatures: n, useRender: Se(a), createVisualElement: o, Component: e })
+ })(e, t, xi, _i)
})
},
- 8839: function (e, t, n) {
+ 58839: function (e, t, n) {
'use strict'
n.d(t, {
kv: function () {
@@ -21460,15 +35104,15 @@
return u
},
x7: function () {
- return c
+ return l
},
de: function () {
- return l
+ return c
},
})
var r = n(9839),
- i = n(3327),
- o = n(519)
+ o = n(93327),
+ i = n(519)
function a(e) {
return e.projection.isEnabled || e.shouldResetTransform()
}
@@ -21482,42 +35126,42 @@
n = function (e) {
a(e) && t.push(e), e.children.forEach(n)
}
- return e.children.forEach(n), t.sort(o._)
+ return e.children.forEach(n), t.sort(i._)
}
- function l(e) {
+ function c(e) {
if (!e.shouldResetTransform()) {
var t = e.getLayoutState()
e.notifyBeforeLayoutMeasure(t.layout),
(t.isHydrated = !0),
(t.layout = e.measureViewportBox()),
- (t.layoutCorrected = (0, i.nP)(t.layout)),
+ (t.layoutCorrected = (0, o.nP)(t.layout)),
e.notifyLayoutMeasure(t.layout, e.prevViewportBox || t.layout),
r.ZP.update(function () {
return e.rebaseProjectionTarget()
})
}
}
- function c(e) {
+ function l(e) {
e.shouldResetTransform() ||
((e.prevViewportBox = e.measureViewportBox(!1)),
e.rebaseProjectionTarget(!1, e.prevViewportBox))
}
},
- 7565: function (e, t, n) {
+ 27565: function (e, t, n) {
'use strict'
n.d(t, {
U: function () {
- return o
+ return i
},
R: function () {
return a
},
})
var r = new Set()
- function i(e, t, n) {
+ function o(e, t, n) {
e[n] || (e[n] = []), e[n].push(t)
}
- function o(e) {
+ function i(e) {
return (
r.add(e),
function () {
@@ -21530,18 +35174,18 @@
var e = 0,
t = [[]],
n = [],
- o = function (n) {
- return i(t, n, e)
+ i = function (n) {
+ return o(t, n, e)
},
a = function (t) {
- i(n, t, e), e++
+ o(n, t, e), e++
}
r.forEach(function (t) {
- t(o, a), (e = 0)
+ t(i, a), (e = 0)
}),
r.clear()
- for (var u = n.length, l = 0; l <= u; l++)
- t[l] && t[l].forEach(s), n[l] && n[l].forEach(s)
+ for (var u = n.length, c = 0; c <= u; c++)
+ t[c] && t[c].forEach(s), n[c] && n[c].forEach(s)
}
}
var s = function (e) {
@@ -21559,7 +35203,7 @@
return e.depth - t.depth
}
},
- 3327: function (e, t, n) {
+ 93327: function (e, t, n) {
'use strict'
n.d(t, {
VZ: function () {
@@ -21569,10 +35213,10 @@
return a
},
RX: function () {
- return o
+ return i
},
nP: function () {
- return l
+ return c
},
pY: function () {
return d
@@ -21581,11 +35225,11 @@
return s
},
})
- var r = n(1439)
- function i(e) {
+ var r = n(70655)
+ function o(e) {
return e
}
- function o(e) {
+ function i(e) {
var t = e.top
return { x: { min: e.left, max: e.right }, y: { min: t, max: e.bottom } }
}
@@ -21597,33 +35241,33 @@
function s(e, t) {
var n = e.top,
r = e.left,
- o = e.bottom,
+ i = e.bottom,
a = e.right
- void 0 === t && (t = i)
+ void 0 === t && (t = o)
var s = t({ x: r, y: n }),
- u = t({ x: a, y: o })
+ u = t({ x: a, y: i })
return { top: s.y, left: s.x, bottom: u.y, right: u.x }
}
function u() {
return { x: { min: 0, max: 1 }, y: { min: 0, max: 1 } }
}
- function l(e) {
- return { x: (0, r.pi)({}, e.x), y: (0, r.pi)({}, e.y) }
+ function c(e) {
+ return { x: (0, r.__assign)({}, e.x), y: (0, r.__assign)({}, e.y) }
}
- var c = { translate: 0, scale: 1, origin: 0, originPoint: 0 }
+ var l = { translate: 0, scale: 1, origin: 0, originPoint: 0 }
function d() {
- return { x: (0, r.pi)({}, c), y: (0, r.pi)({}, c) }
+ return { x: (0, r.__assign)({}, l), y: (0, r.__assign)({}, l) }
}
},
- 5930: function (e, t, n) {
+ 45930: function (e, t, n) {
'use strict'
n.d(t, {
h: function () {
- return i
+ return o
},
})
- var r = n(7294)
- function i(e) {
+ var r = n(67294)
+ function o(e) {
var t = (0, r.useRef)(null)
return null === t.current && (t.current = e()), t.current
}
@@ -21632,11 +35276,11 @@
'use strict'
n.d(t, {
z: function () {
- return i
+ return o
},
})
- var r = n(7294)
- function i(e) {
+ var r = n(67294)
+ function o(e) {
return (0, r.useEffect)(function () {
return function () {
return e()
@@ -21644,97 +35288,6 @@
}, [])
}
},
- 1439: function (e, t, n) {
- 'use strict'
- n.d(t, {
- ZT: function () {
- return i
- },
- pi: function () {
- return o
- },
- _T: function () {
- return a
- },
- CR: function () {
- return s
- },
- ev: function () {
- return u
- },
- })
- var r = function (e, t) {
- return (r =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (e, t) {
- e.__proto__ = t
- }) ||
- function (e, t) {
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
- })(e, t)
- }
- function i(e, t) {
- if ('function' !== typeof t && null !== t)
- throw new TypeError('Class extends value ' + String(t) + ' is not a constructor or null')
- function n() {
- this.constructor = e
- }
- r(e, t),
- (e.prototype = null === t ? Object.create(t) : ((n.prototype = t.prototype), new n()))
- }
- var o = function () {
- return (o =
- Object.assign ||
- function (e) {
- for (var t, n = 1, r = arguments.length; n < r; n++)
- for (var i in (t = arguments[n]))
- Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i])
- return e
- }).apply(this, arguments)
- }
- function a(e, t) {
- var n = {}
- for (var r in e)
- Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r])
- if (null != e && 'function' === typeof Object.getOwnPropertySymbols) {
- var i = 0
- for (r = Object.getOwnPropertySymbols(e); i < r.length; i++)
- t.indexOf(r[i]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(e, r[i]) &&
- (n[r[i]] = e[r[i]])
- }
- return n
- }
- Object.create
- function s(e, t) {
- var n = 'function' === typeof Symbol && e[Symbol.iterator]
- if (!n) return e
- var r,
- i,
- o = n.call(e),
- a = []
- try {
- for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; ) a.push(r.value)
- } catch (s) {
- i = { error: s }
- } finally {
- try {
- r && !r.done && (n = o.return) && n.call(o)
- } finally {
- if (i) throw i.error
- }
- }
- return a
- }
- function u(e, t, n) {
- if (n || 2 === arguments.length)
- for (var r, i = 0, o = t.length; i < o; i++)
- (!r && i in t) || (r || (r = Array.prototype.slice.call(t, 0, i)), (r[i] = t[i]))
- return e.concat(r || t)
- }
- Object.create
- },
9839: function (e, t, n) {
'use strict'
n.d(t, {
@@ -21752,7 +35305,7 @@
},
})
var r = (1 / 60) * 1e3,
- i =
+ o =
'undefined' !== typeof performance
? function () {
return performance.now()
@@ -21760,50 +35313,50 @@
: function () {
return Date.now()
},
- o =
+ i =
'undefined' !== typeof window
? function (e) {
return window.requestAnimationFrame(e)
}
: function (e) {
return setTimeout(function () {
- return e(i())
+ return e(o())
}, r)
}
var a = !0,
s = !1,
u = !1,
- l = { delta: 0, timestamp: 0 },
- c = ['read', 'update', 'preRender', 'render', 'postRender'],
- d = c.reduce(function (e, t) {
+ c = { delta: 0, timestamp: 0 },
+ l = ['read', 'update', 'preRender', 'render', 'postRender'],
+ d = l.reduce(function (e, t) {
return (
(e[t] = (function (e) {
var t = [],
n = [],
r = 0,
- i = !1,
- o = new WeakSet(),
+ o = !1,
+ i = new WeakSet(),
a = {
schedule: function (e, a, s) {
void 0 === a && (a = !1), void 0 === s && (s = !1)
- var u = s && i,
- l = u ? t : n
+ var u = s && o,
+ c = u ? t : n
return (
- a && o.add(e), -1 === l.indexOf(e) && (l.push(e), u && i && (r = t.length)), e
+ a && i.add(e), -1 === c.indexOf(e) && (c.push(e), u && o && (r = t.length)), e
)
},
cancel: function (e) {
var t = n.indexOf(e)
- ;-1 !== t && n.splice(t, 1), o.delete(e)
+ ;-1 !== t && n.splice(t, 1), i.delete(e)
},
process: function (s) {
var u
- if (((i = !0), (t = (u = [n, t])[0]), ((n = u[1]).length = 0), (r = t.length)))
- for (var l = 0; l < r; l++) {
- var c = t[l]
- c(s), o.has(c) && (a.schedule(c), e())
+ if (((o = !0), (t = (u = [n, t])[0]), ((n = u[1]).length = 0), (r = t.length)))
+ for (var c = 0; c < r; c++) {
+ var l = t[c]
+ l(s), i.has(l) && (a.schedule(l), e())
}
- i = !1
+ o = !1
},
}
return a
@@ -21813,7 +35366,7 @@
e
)
}, {}),
- f = c.reduce(function (e, t) {
+ f = l.reduce(function (e, t) {
var n = d[t]
return (
(e[t] = function (e, t, r) {
@@ -21824,38 +35377,147 @@
e
)
}, {}),
- h = c.reduce(function (e, t) {
+ h = l.reduce(function (e, t) {
return (e[t] = d[t].cancel), e
}, {}),
- p = c.reduce(function (e, t) {
+ p = l.reduce(function (e, t) {
return (
(e[t] = function () {
- return d[t].process(l)
+ return d[t].process(c)
}),
e
)
}, {}),
v = function (e) {
- return d[e].process(l)
+ return d[e].process(c)
},
m = function (e) {
;(s = !1),
- (l.delta = a ? r : Math.max(Math.min(e - l.timestamp, 40), 1)),
- (l.timestamp = e),
+ (c.delta = a ? r : Math.max(Math.min(e - c.timestamp, 40), 1)),
+ (c.timestamp = e),
(u = !0),
- c.forEach(v),
+ l.forEach(v),
(u = !1),
- s && ((a = !1), o(m))
+ s && ((a = !1), i(m))
},
g = function () {
- ;(s = !0), (a = !0), u || o(m)
+ ;(s = !0), (a = !0), u || i(m)
},
y = function () {
- return l
+ return c
},
b = f
},
- 3405: function (e) {
+ 84839: function (e, t) {
+ 'use strict'
+ Object.defineProperty(t, '__esModule', { value: !0 })
+ var n = (1 / 60) * 1e3,
+ r =
+ 'undefined' !== typeof performance
+ ? function () {
+ return performance.now()
+ }
+ : function () {
+ return Date.now()
+ },
+ o =
+ 'undefined' !== typeof window
+ ? function (e) {
+ return window.requestAnimationFrame(e)
+ }
+ : function (e) {
+ return setTimeout(function () {
+ return e(r())
+ }, n)
+ }
+ var i = !0,
+ a = !1,
+ s = !1,
+ u = { delta: 0, timestamp: 0 },
+ c = ['read', 'update', 'preRender', 'render', 'postRender'],
+ l = c.reduce(function (e, t) {
+ return (
+ (e[t] = (function (e) {
+ var t = [],
+ n = [],
+ r = 0,
+ o = !1,
+ i = new WeakSet(),
+ a = {
+ schedule: function (e, a, s) {
+ void 0 === a && (a = !1), void 0 === s && (s = !1)
+ var u = s && o,
+ c = u ? t : n
+ return (
+ a && i.add(e), -1 === c.indexOf(e) && (c.push(e), u && o && (r = t.length)), e
+ )
+ },
+ cancel: function (e) {
+ var t = n.indexOf(e)
+ ;-1 !== t && n.splice(t, 1), i.delete(e)
+ },
+ process: function (s) {
+ var u
+ if (((o = !0), (t = (u = [n, t])[0]), ((n = u[1]).length = 0), (r = t.length)))
+ for (var c = 0; c < r; c++) {
+ var l = t[c]
+ l(s), i.has(l) && (a.schedule(l), e())
+ }
+ o = !1
+ },
+ }
+ return a
+ })(function () {
+ return (a = !0)
+ })),
+ e
+ )
+ }, {}),
+ d = c.reduce(function (e, t) {
+ var n = l[t]
+ return (
+ (e[t] = function (e, t, r) {
+ return (
+ void 0 === t && (t = !1), void 0 === r && (r = !1), a || m(), n.schedule(e, t, r)
+ )
+ }),
+ e
+ )
+ }, {}),
+ f = c.reduce(function (e, t) {
+ return (e[t] = l[t].cancel), e
+ }, {}),
+ h = c.reduce(function (e, t) {
+ return (
+ (e[t] = function () {
+ return l[t].process(u)
+ }),
+ e
+ )
+ }, {}),
+ p = function (e) {
+ return l[e].process(u)
+ },
+ v = function (e) {
+ ;(a = !1),
+ (u.delta = i ? n : Math.max(Math.min(e - u.timestamp, 40), 1)),
+ (u.timestamp = e),
+ (s = !0),
+ c.forEach(p),
+ (s = !1),
+ a && ((i = !1), o(v))
+ },
+ m = function () {
+ ;(a = !0), (i = !0), s || o(v)
+ }
+ ;(t.cancelSync = f),
+ (t.default = d),
+ (t.flushSync = h),
+ (t.getFrameData = function () {
+ return u
+ })
+ },
+ 23405: function (e) {
e.exports = function (e) {
return [...e].reduce((e, [t, n]) => ((e[t] = n), e), {})
}
@@ -21866,23 +35528,23 @@
if (null == e) return {}
var n,
r,
- i = (function (e, t) {
+ o = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, t)
if (Object.getOwnPropertySymbols) {
- var o = Object.getOwnPropertySymbols(e)
- for (r = 0; r < o.length; r++)
- (n = o[r]),
+ var i = Object.getOwnPropertySymbols(e)
+ for (r = 0; r < i.length; r++)
+ (n = i[r]),
t.indexOf(n) >= 0 ||
- (Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]))
+ (Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]))
}
- return i
+ return o
}
function r(e, t) {
return (
@@ -21893,28 +35555,28 @@
var n = e && (('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator'])
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
- o(e, t) ||
+ i(e, t) ||
(function () {
throw new TypeError(
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
@@ -21922,7 +35584,7 @@
})()
)
}
- function i(e) {
+ function o(e) {
return (
(function (e) {
if (Array.isArray(e)) return a(e)
@@ -21934,7 +35596,7 @@
)
return Array.from(e)
})(e) ||
- o(e) ||
+ i(e) ||
(function () {
throw new TypeError(
'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
@@ -21942,7 +35604,7 @@
})()
)
}
- function o(e, t) {
+ function i(e, t) {
if (e) {
if ('string' === typeof e) return a(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
@@ -21977,76 +35639,76 @@
t.Z = function () {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [],
t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
- o = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2],
+ i = !(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2],
a = arguments.length > 3 && void 0 !== arguments[3] && arguments[3],
u = (t instanceof Array ? (t.length ? t : [void 0]) : [t]).map(function (e) {
return { keyAccessor: e, isProp: !(e instanceof Function) }
}),
- l = e.reduce(function (e, t) {
+ c = e.reduce(function (e, t) {
var r = e,
- i = t
+ o = t
return (
u.forEach(function (e, t) {
var a,
- l = e.keyAccessor
+ c = e.keyAccessor
if (e.isProp) {
- var c = i,
- d = c[l],
- f = n(c, [l].map(s))
- ;(a = d), (i = f)
- } else a = l(i, t)
+ var l = o,
+ d = l[c],
+ f = n(l, [c].map(s))
+ ;(a = d), (o = f)
+ } else a = c(o, t)
t + 1 < u.length
? (r.hasOwnProperty(a) || (r[a] = {}), (r = r[a]))
- : o
- ? (r.hasOwnProperty(a) || (r[a] = []), r[a].push(i))
- : (r[a] = i)
+ : i
+ ? (r.hasOwnProperty(a) || (r[a] = []), r[a].push(o))
+ : (r[a] = o)
}),
e
)
}, {})
- o instanceof Function &&
+ i instanceof Function &&
(function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1
n === u.length
? Object.keys(t).forEach(function (e) {
- return (t[e] = o(t[e]))
+ return (t[e] = i(t[e]))
})
: Object.values(t).forEach(function (t) {
return e(t, n + 1)
})
- })(l)
- var c = l
+ })(c)
+ var l = c
return (
a &&
- ((c = []),
+ ((l = []),
(function e(t) {
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : []
n.length === u.length
- ? c.push({ keys: n, vals: t })
+ ? l.push({ keys: n, vals: t })
: Object.entries(t).forEach(function (t) {
- var o = r(t, 2),
- a = o[0],
- s = o[1]
- return e(s, [].concat(i(n), [a]))
+ var i = r(t, 2),
+ a = i[0],
+ s = i[1]
+ return e(s, [].concat(o(n), [a]))
})
- })(l),
- t instanceof Array && 0 === t.length && 1 === c.length && (c[0].keys = [])),
- c
+ })(c),
+ t instanceof Array && 0 === t.length && 1 === l.length && (l[0].keys = [])),
+ l
)
}
},
- 6808: function (e, t, n) {
- var r, i
- !(function (o) {
+ 36808: function (e, t, n) {
+ var r, o
+ !(function (i) {
if (
- (void 0 === (i = 'function' === typeof (r = o) ? r.call(t, n, t, e) : r) ||
- (e.exports = i),
+ (void 0 === (o = 'function' === typeof (r = i) ? r.call(t, n, t, e) : r) ||
+ (e.exports = o),
!0,
- (e.exports = o()),
+ (e.exports = i()),
!!0)
) {
var a = window.Cookies,
- s = (window.Cookies = o())
+ s = (window.Cookies = i())
s.noConflict = function () {
return (window.Cookies = a), s
}
@@ -22063,16 +35725,16 @@
return e.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent)
}
return (function n(r) {
- function i() {}
- function o(t, n, o) {
+ function o() {}
+ function i(t, n, i) {
if ('undefined' !== typeof document) {
- 'number' === typeof (o = e({ path: '/' }, i.defaults, o)).expires &&
- (o.expires = new Date(1 * new Date() + 864e5 * o.expires)),
- (o.expires = o.expires ? o.expires.toUTCString() : '')
+ 'number' === typeof (i = e({ path: '/' }, o.defaults, i)).expires &&
+ (i.expires = new Date(1 * new Date() + 864e5 * i.expires)),
+ (i.expires = i.expires ? i.expires.toUTCString() : '')
try {
var a = JSON.stringify(n)
;/^[\{\[]/.test(a) && (n = a)
- } catch (l) {}
+ } catch (c) {}
;(n = r.write
? r.write(n, t)
: encodeURIComponent(String(n)).replace(
@@ -22083,56 +35745,56 @@
.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)
.replace(/[\(\)]/g, escape))
var s = ''
- for (var u in o)
- o[u] && ((s += '; ' + u), !0 !== o[u] && (s += '=' + o[u].split(';')[0]))
+ for (var u in i)
+ i[u] && ((s += '; ' + u), !0 !== i[u] && (s += '=' + i[u].split(';')[0]))
return (document.cookie = t + '=' + n + s)
}
}
function a(e, n) {
if ('undefined' !== typeof document) {
for (
- var i = {}, o = document.cookie ? document.cookie.split('; ') : [], a = 0;
- a < o.length;
+ var o = {}, i = document.cookie ? document.cookie.split('; ') : [], a = 0;
+ a < i.length;
a++
) {
- var s = o[a].split('='),
+ var s = i[a].split('='),
u = s.slice(1).join('=')
n || '"' !== u.charAt(0) || (u = u.slice(1, -1))
try {
- var l = t(s[0])
- if (((u = (r.read || r)(u, l) || t(u)), n))
+ var c = t(s[0])
+ if (((u = (r.read || r)(u, c) || t(u)), n))
try {
u = JSON.parse(u)
- } catch (c) {}
- if (((i[l] = u), e === l)) break
- } catch (c) {}
+ } catch (l) {}
+ if (((o[c] = u), e === c)) break
+ } catch (l) {}
}
- return e ? i[e] : i
+ return e ? o[e] : o
}
}
return (
- (i.set = o),
- (i.get = function (e) {
+ (o.set = i),
+ (o.get = function (e) {
return a(e, !1)
}),
- (i.getJSON = function (e) {
+ (o.getJSON = function (e) {
return a(e, !0)
}),
- (i.remove = function (t, n) {
- o(t, '', e(n, { expires: -1 }))
+ (o.remove = function (t, n) {
+ i(t, '', e(n, { expires: -1 }))
}),
- (i.defaults = {}),
- (i.withConverter = n),
- i
+ (o.defaults = {}),
+ (o.withConverter = n),
+ o
)
})(function () {})
})
},
- 4858: function (e, t, n) {
+ 44858: function (e, t, n) {
'use strict'
- var r = n(296),
- i = n.n(r)
- function o(e, t) {
+ var r = n(20296),
+ o = n.n(r)
+ function i(e, t) {
return (
(function (e) {
if (Array.isArray(e)) return e
@@ -22141,26 +35803,26 @@
var n = e && (('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator'])
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
(function (e, t) {
if (!e) return
@@ -22185,16 +35847,16 @@
}
var s = function e(t, n) {
var r = n.default,
- i = void 0 === r ? null : r,
- o = n.triggerUpdate,
- a = void 0 === o || o,
+ o = void 0 === r ? null : r,
+ i = n.triggerUpdate,
+ a = void 0 === i || i,
s = n.onChange,
u = void 0 === s ? function (e, t) {} : s
!(function (e, t) {
if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function')
})(this, e),
(this.name = t),
- (this.defaultVal = i),
+ (this.defaultVal = o),
(this.triggerUpdate = a),
(this.onChange = u)
}
@@ -22209,9 +35871,9 @@
r = e.props,
a = void 0 === r ? {} : r,
u = e.methods,
- l = void 0 === u ? {} : u,
- c = e.aliases,
- d = void 0 === c ? {} : c,
+ c = void 0 === u ? {} : u,
+ l = e.aliases,
+ d = void 0 === l ? {} : l,
f = e.init,
h = void 0 === f ? function () {} : f,
p = e.update,
@@ -22229,38 +35891,38 @@
var s = function (e, n) {
h.call(a, e, t, n), (t.initialised = !0)
},
- u = i()(function () {
+ u = o()(function () {
t.initialised && (v.call(a, t, r), (r = {}))
}, 1)
return (
m.forEach(function (e) {
a[e.name] = (function (e) {
var n = e.name,
- i = e.triggerUpdate,
- o = void 0 !== i && i,
+ o = e.triggerUpdate,
+ i = void 0 !== o && o,
s = e.onChange,
- l = void 0 === s ? function (e, t) {} : s,
- c = e.defaultVal,
- d = void 0 === c ? null : c
+ c = void 0 === s ? function (e, t) {} : s,
+ l = e.defaultVal,
+ d = void 0 === l ? null : l
return function (e) {
- var i = t[n]
- if (!arguments.length) return i
+ var o = t[n]
+ if (!arguments.length) return o
var s = void 0 === e ? d : e
return (
- (t[n] = s), l.call(a, s, t, i), !r.hasOwnProperty(n) && (r[n] = i), o && u(), a
+ (t[n] = s), c.call(a, s, t, o), !r.hasOwnProperty(n) && (r[n] = o), i && u(), a
)
}
})(e)
}),
- Object.keys(l).forEach(function (e) {
+ Object.keys(c).forEach(function (e) {
a[e] = function () {
- for (var n, r = arguments.length, i = new Array(r), o = 0; o < r; o++)
- i[o] = arguments[o]
- return (n = l[e]).call.apply(n, [a, t].concat(i))
+ for (var n, r = arguments.length, o = new Array(r), i = 0; i < r; i++)
+ o[i] = arguments[i]
+ return (n = c[e]).call.apply(n, [a, t].concat(o))
}
}),
Object.entries(d).forEach(function (e) {
- var t = o(e, 2),
+ var t = i(e, 2),
n = t[0],
r = t[1]
return (a[n] = a[r])
@@ -22280,16 +35942,16 @@
}
}
},
- 3096: function (e, t, n) {
+ 93096: function (e, t, n) {
var r = 'Expected a function',
- i = /^\s+|\s+$/g,
- o = /^[-+]0x[0-9a-f]+$/i,
+ o = /^\s+|\s+$/g,
+ i = /^[-+]0x[0-9a-f]+$/i,
a = /^0b[01]+$/i,
s = /^0o[0-7]+$/i,
u = parseInt,
- l = 'object' == typeof n.g && n.g && n.g.Object === Object && n.g,
- c = 'object' == typeof self && self && self.Object === Object && self,
- d = l || c || Function('return this')(),
+ c = 'object' == typeof n.g && n.g && n.g.Object === Object && n.g,
+ l = 'object' == typeof self && self && self.Object === Object && self,
+ d = c || l || Function('return this')(),
f = Object.prototype.toString,
h = Math.max,
p = Math.min,
@@ -22297,51 +35959,51 @@
return d.Date.now()
}
function m(e, t, n) {
- var i,
- o,
+ var o,
+ i,
a,
s,
u,
- l,
- c = 0,
+ c,
+ l = 0,
d = !1,
f = !1,
m = !0
if ('function' != typeof e) throw new TypeError(r)
function b(t) {
- var n = i,
- r = o
- return (i = o = void 0), (c = t), (s = e.apply(r, n))
+ var n = o,
+ r = i
+ return (o = i = void 0), (l = t), (s = e.apply(r, n))
}
function w(e) {
- return (c = e), (u = setTimeout(E, t)), d ? b(e) : s
+ return (l = e), (u = setTimeout(x, t)), d ? b(e) : s
}
- function x(e) {
- var n = e - l
- return void 0 === l || n >= t || n < 0 || (f && e - c >= a)
+ function _(e) {
+ var n = e - c
+ return void 0 === c || n >= t || n < 0 || (f && e - l >= a)
}
- function E() {
+ function x() {
var e = v()
- if (x(e)) return k(e)
+ if (_(e)) return k(e)
u = setTimeout(
- E,
+ x,
(function (e) {
- var n = t - (e - l)
- return f ? p(n, a - (e - c)) : n
+ var n = t - (e - c)
+ return f ? p(n, a - (e - l)) : n
})(e),
)
}
function k(e) {
- return (u = void 0), m && i ? b(e) : ((i = o = void 0), s)
+ return (u = void 0), m && o ? b(e) : ((o = i = void 0), s)
}
- function _() {
+ function E() {
var e = v(),
- n = x(e)
- if (((i = arguments), (o = this), (l = e), n)) {
- if (void 0 === u) return w(l)
- if (f) return (u = setTimeout(E, t)), b(l)
+ n = _(e)
+ if (((o = arguments), (i = this), (c = e), n)) {
+ if (void 0 === u) return w(c)
+ if (f) return (u = setTimeout(x, t)), b(c)
}
- return void 0 === u && (u = setTimeout(E, t)), s
+ return void 0 === u && (u = setTimeout(x, t)), s
}
return (
(t = y(t) || 0),
@@ -22349,13 +36011,13 @@
((d = !!n.leading),
(a = (f = 'maxWait' in n) ? h(y(n.maxWait) || 0, t) : a),
(m = 'trailing' in n ? !!n.trailing : m)),
- (_.cancel = function () {
- void 0 !== u && clearTimeout(u), (c = 0), (i = l = o = u = void 0)
+ (E.cancel = function () {
+ void 0 !== u && clearTimeout(u), (l = 0), (o = c = i = u = void 0)
}),
- (_.flush = function () {
+ (E.flush = function () {
return void 0 === u ? s : k(v())
}),
- _
+ E
)
}
function g(e) {
@@ -22381,20 +36043,247 @@
e = g(t) ? t + '' : t
}
if ('string' != typeof e) return 0 === e ? e : +e
- e = e.replace(i, '')
+ e = e.replace(o, '')
var n = a.test(e)
- return n || s.test(e) ? u(e.slice(2), n ? 2 : 8) : o.test(e) ? NaN : +e
+ return n || s.test(e) ? u(e.slice(2), n ? 2 : 8) : i.test(e) ? NaN : +e
}
e.exports = function (e, t, n) {
- var i = !0,
- o = !0
+ var o = !0,
+ i = !0
if ('function' != typeof e) throw new TypeError(r)
return (
g(n) &&
- ((i = 'leading' in n ? !!n.leading : i), (o = 'trailing' in n ? !!n.trailing : o)),
- m(e, t, { leading: i, maxWait: t, trailing: o })
+ ((o = 'leading' in n ? !!n.leading : o), (i = 'trailing' in n ? !!n.trailing : i)),
+ m(e, t, { leading: o, maxWait: t, trailing: i })
+ )
+ }
+ },
+ 90233: function (e, t, n) {
+ 'use strict'
+ n.r(t),
+ n.d(t, {
+ rankings: function () {
+ return a
+ },
+ })
+ var r = n(22122),
+ o = n(76826),
+ i = n.n(o),
+ a = {
+ CASE_SENSITIVE_EQUAL: 9,
+ EQUAL: 8,
+ STARTS_WITH: 7,
+ WORD_STARTS_WITH: 6,
+ STRING_CASE: 5,
+ STRING_CASE_ACRONYM: 4,
+ CONTAINS: 3,
+ ACRONYM: 2,
+ MATCHES: 1,
+ NO_MATCH: 0,
+ },
+ s = { CAMEL: 0.8, PASCAL: 0.6, KEBAB: 0.4, SNAKE: 0.2, NO_CASE: 0 }
+ ;(c.rankings = a), (c.caseRankings = s)
+ var u = function (e, t) {
+ return String(e.rankedItem).localeCompare(t.rankedItem)
+ }
+ function c(e, t, n) {
+ void 0 === n && (n = {})
+ var r = n,
+ o = r.keys,
+ i = r.threshold,
+ s = void 0 === i ? a.MATCHES : i,
+ c = r.baseSort,
+ d = void 0 === c ? u : c
+ return e
+ .reduce(function (e, r, i) {
+ var u = (function (e, t, n, r) {
+ if (!t)
+ return {
+ rankedItem: e,
+ rank: l(e, n, r),
+ keyIndex: -1,
+ keyThreshold: r.threshold,
+ }
+ return (function (e, t) {
+ return t.reduce(function (t, n) {
+ var r = (function (e, t) {
+ 'object' === typeof t && (t = t.key)
+ var n
+ n =
+ 'function' === typeof t
+ ? t(e)
+ : -1 !== t.indexOf('.')
+ ? t.split('.').reduce(function (e, t) {
+ return e ? e[t] : null
+ }, e)
+ : e[t]
+ return null != n ? [].concat(n) : null
+ })(e, n)
+ return (
+ r &&
+ r.forEach(function (e) {
+ t.push({ itemValue: e, attributes: f(n) })
+ }),
+ t
+ )
+ }, [])
+ })(e, t).reduce(
+ function (e, t, o) {
+ var i = e.rank,
+ s = e.rankedItem,
+ u = e.keyIndex,
+ c = e.keyThreshold,
+ d = t.itemValue,
+ f = t.attributes,
+ h = l(d, n, r),
+ p = s,
+ v = f.minRanking,
+ m = f.maxRanking,
+ g = f.threshold
+ return (
+ h < v && h >= a.MATCHES ? (h = v) : h > m && (h = m),
+ h > i && ((i = h), (u = o), (c = g), (p = d)),
+ { rankedItem: p, rank: i, keyIndex: u, keyThreshold: c }
+ )
+ },
+ { rank: a.NO_MATCH, keyIndex: -1, keyThreshold: r.threshold },
+ )
+ })(r, o, t, n),
+ c = u.rankedItem,
+ d = u.rank,
+ h = u.keyIndex,
+ p = u.keyThreshold
+ d >= (void 0 === p ? s : p) &&
+ e.push({ rankedItem: c, item: r, rank: d, index: i, keyIndex: h })
+ return e
+ }, [])
+ .sort(function (e, t) {
+ return (function (e, t, n) {
+ var r = -1,
+ o = 1,
+ i = e.rank,
+ a = e.keyIndex,
+ s = t.rank,
+ u = t.keyIndex
+ return i === s ? (a === u ? n(e, t) : a < u ? r : o) : i > s ? r : o
+ })(e, t, d)
+ })
+ .map(function (e) {
+ return e.item
+ })
+ }
+ function l(e, t, n) {
+ if (((e = d(e, n)), (t = d(t, n)).length > e.length)) return a.NO_MATCH
+ if (e === t) return a.CASE_SENSITIVE_EQUAL
+ var r = (function (e) {
+ var t = e.toLowerCase() !== e,
+ n = e.indexOf('-') >= 0,
+ r = e.indexOf('_') >= 0
+ if (!t && !r && n) return s.KEBAB
+ if (!t && r && !n) return s.SNAKE
+ if (t && !n && !r) {
+ return e[0].toUpperCase() === e[0] ? s.PASCAL : s.CAMEL
+ }
+ return s.NO_CASE
+ })(e),
+ o = (function (e, t, n) {
+ var r = e.toLowerCase().indexOf(t.toLowerCase())
+ switch (n) {
+ case s.SNAKE:
+ return '_' === e[r - 1]
+ case s.KEBAB:
+ return '-' === e[r - 1]
+ case s.PASCAL:
+ case s.CAMEL:
+ return -1 !== r && e[r] === e[r].toUpperCase()
+ default:
+ return !1
+ }
+ })(e, t, r),
+ i = (function (e, t, n) {
+ var r = null
+ switch (n) {
+ case s.SNAKE:
+ r = '_'
+ break
+ case s.KEBAB:
+ r = '-'
+ break
+ case s.PASCAL:
+ case s.CAMEL:
+ r = /(?=[A-Z])/
+ break
+ default:
+ r = null
+ }
+ var o = e.split(r)
+ return t
+ .toLowerCase()
+ .split('')
+ .reduce(function (e, t, n) {
+ var r = o[n]
+ return e && r && r[0].toLowerCase() === t
+ }, !0)
+ })(e, t, r)
+ return (e = e.toLowerCase()) === (t = t.toLowerCase())
+ ? a.EQUAL + r
+ : 0 === e.indexOf(t)
+ ? a.STARTS_WITH + r
+ : -1 !== e.indexOf(' ' + t)
+ ? a.WORD_STARTS_WITH + r
+ : o
+ ? a.STRING_CASE + r
+ : r > 0 && i
+ ? a.STRING_CASE_ACRONYM + r
+ : -1 !== e.indexOf(t)
+ ? a.CONTAINS + r
+ : 1 === t.length
+ ? a.NO_MATCH
+ : -1 !==
+ (function (e) {
+ var t = ''
+ return (
+ e.split(' ').forEach(function (e) {
+ e.split('-').forEach(function (e) {
+ t += e.substr(0, 1)
+ })
+ }),
+ t
+ )
+ })(e).indexOf(t)
+ ? a.ACRONYM + r
+ : (function (e, t) {
+ var n = 0,
+ r = 0
+ function o(e, t, r) {
+ for (var o = r; o < t.length; o++) {
+ if (t[o] === e) return (n += 1), o + 1
+ }
+ return -1
+ }
+ function i(e) {
+ var r = n / t.length
+ return a.MATCHES + r * (1 / e)
+ }
+ var s = o(t[0], e, 0)
+ if (s < 0) return a.NO_MATCH
+ r = s
+ for (var u = 1; u < t.length; u++) {
+ if (!((r = o(t[u], e, r)) > -1)) return a.NO_MATCH
+ }
+ return i(r - s)
+ })(e, t)
+ }
+ function d(e, t) {
+ return (e = '' + e), t.keepDiacritics || (e = i()(e)), e
+ }
+ function f(e) {
+ return (
+ 'string' === typeof e && (e = { key: e }),
+ (0, r.Z)({ maxRanking: 1 / 0, minRanking: -1 / 0 }, e)
)
}
+ t.default = c
},
3752: function (e, t, n) {
'use strict'
@@ -22405,27 +36294,27 @@
Array.isArray(e) ||
(n = (function (e, t) {
if (!e) return
- if ('string' === typeof e) return i(e, t)
+ if ('string' === typeof e) return o(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
'Object' === n && e.constructor && (n = e.constructor.name)
if ('Map' === n || 'Set' === n) return Array.from(e)
if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return i(e, t)
+ return o(e, t)
})(e)) ||
(t && e && 'number' === typeof e.length)
) {
n && (e = n)
var r = 0,
- o = function () {}
+ i = function () {}
return {
- s: o,
+ s: i,
n: function () {
return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] }
},
e: function (e) {
throw e
},
- f: o,
+ f: i,
}
}
throw new TypeError(
@@ -22455,50 +36344,50 @@
},
}
}
- function i(e, t) {
+ function o(e, t) {
;(null == t || t > e.length) && (t = e.length)
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
}
- function o(e, t) {
+ function i(e, t) {
var n
if (void 0 === t) {
- var i,
- o = r(e)
+ var o,
+ i = r(e)
try {
- for (o.s(); !(i = o.n()).done; ) {
- var a = i.value
+ for (i.s(); !(o = i.n()).done; ) {
+ var a = o.value
null != a && (n < a || (void 0 === n && a >= a)) && (n = a)
}
} catch (d) {
- o.e(d)
+ i.e(d)
} finally {
- o.f()
+ i.f()
}
} else {
var s,
u = -1,
- l = r(e)
+ c = r(e)
try {
- for (l.s(); !(s = l.n()).done; ) {
- var c = s.value
- null != (c = t(c, ++u, e)) && (n < c || (void 0 === n && c >= c)) && (n = c)
+ for (c.s(); !(s = c.n()).done; ) {
+ var l = s.value
+ null != (l = t(l, ++u, e)) && (n < l || (void 0 === n && l >= l)) && (n = l)
}
} catch (d) {
- l.e(d)
+ c.e(d)
} finally {
- l.f()
+ c.f()
}
}
return n
}
n.d(t, {
Z: function () {
- return o
+ return i
},
})
},
- 6701: function (e, t, n) {
+ 86701: function (e, t, n) {
'use strict'
function r(e, t) {
var n
@@ -22507,27 +36396,27 @@
Array.isArray(e) ||
(n = (function (e, t) {
if (!e) return
- if ('string' === typeof e) return i(e, t)
+ if ('string' === typeof e) return o(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
'Object' === n && e.constructor && (n = e.constructor.name)
if ('Map' === n || 'Set' === n) return Array.from(e)
if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return i(e, t)
+ return o(e, t)
})(e)) ||
(t && e && 'number' === typeof e.length)
) {
n && (e = n)
var r = 0,
- o = function () {}
+ i = function () {}
return {
- s: o,
+ s: i,
n: function () {
return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] }
},
e: function (e) {
throw e
},
- f: o,
+ f: i,
}
}
throw new TypeError(
@@ -22557,83 +36446,83 @@
},
}
}
- function i(e, t) {
+ function o(e, t) {
;(null == t || t > e.length) && (t = e.length)
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
}
- function o(e, t) {
+ function i(e, t) {
var n
if (void 0 === t) {
- var i,
- o = r(e)
+ var o,
+ i = r(e)
try {
- for (o.s(); !(i = o.n()).done; ) {
- var a = i.value
+ for (i.s(); !(o = i.n()).done; ) {
+ var a = o.value
null != a && (n > a || (void 0 === n && a >= a)) && (n = a)
}
} catch (d) {
- o.e(d)
+ i.e(d)
} finally {
- o.f()
+ i.f()
}
} else {
var s,
u = -1,
- l = r(e)
+ c = r(e)
try {
- for (l.s(); !(s = l.n()).done; ) {
- var c = s.value
- null != (c = t(c, ++u, e)) && (n > c || (void 0 === n && c >= c)) && (n = c)
+ for (c.s(); !(s = c.n()).done; ) {
+ var l = s.value
+ null != (l = t(l, ++u, e)) && (n > l || (void 0 === n && l >= l)) && (n = l)
}
} catch (d) {
- l.e(d)
+ c.e(d)
} finally {
- l.f()
+ c.f()
}
}
return n
}
n.d(t, {
Z: function () {
- return o
+ return i
},
})
},
- 4275: function (e, t, n) {
+ 14275: function (e, t, n) {
'use strict'
function r(e, t, n) {
if (isNaN(t)) return e
var r,
- i,
o,
+ i,
a,
s,
u,
- l = e._root,
- c = { data: n },
+ c = e._root,
+ l = { data: n },
d = e._x0,
f = e._x1
- if (!l) return (e._root = c), e
- for (; l.length; )
- if (((a = t >= (i = (d + f) / 2)) ? (d = i) : (f = i), (r = l), !(l = l[(s = +a)])))
- return (r[s] = c), e
- if (t === (o = +e._x.call(null, l.data)))
- return (c.next = l), r ? (r[s] = c) : (e._root = c), e
+ if (!c) return (e._root = l), e
+ for (; c.length; )
+ if (((a = t >= (o = (d + f) / 2)) ? (d = o) : (f = o), (r = c), !(c = c[(s = +a)])))
+ return (r[s] = l), e
+ if (t === (i = +e._x.call(null, c.data)))
+ return (l.next = c), r ? (r[s] = l) : (e._root = l), e
do {
;(r = r ? (r[s] = new Array(2)) : (e._root = new Array(2))),
- (a = t >= (i = (d + f) / 2)) ? (d = i) : (f = i)
- } while ((s = +a) === (u = +(o >= i)))
- return (r[u] = l), (r[s] = c), e
+ (a = t >= (o = (d + f) / 2)) ? (d = o) : (f = o)
+ } while ((s = +a) === (u = +(i >= o)))
+ return (r[u] = c), (r[s] = l), e
}
- function i(e, t, n) {
+ function o(e, t, n) {
;(this.node = e), (this.x0 = t), (this.x1 = n)
}
- function o(e) {
+ function i(e) {
return e[0]
}
function a(e, t) {
- var n = new s(null == t ? o : t, NaN, NaN)
+ var n = new s(null == t ? i : t, NaN, NaN)
return null == e ? n : n.addAll(e)
}
function s(e, t, n) {
@@ -22648,8 +36537,8 @@
return a
},
})
- var l = (a.prototype = s.prototype)
- ;(l.copy = function () {
+ var c = (a.prototype = s.prototype)
+ ;(c.copy = function () {
var e,
t,
n = new s(this._x, this._x0, this._x1),
@@ -22657,50 +36546,50 @@
if (!r) return n
if (!r.length) return (n._root = u(r)), n
for (e = [{ source: r, target: (n._root = new Array(2)) }]; (r = e.pop()); )
- for (var i = 0; i < 2; ++i)
- (t = r.source[i]) &&
+ for (var o = 0; o < 2; ++o)
+ (t = r.source[o]) &&
(t.length
- ? e.push({ source: t, target: (r.target[i] = new Array(2)) })
- : (r.target[i] = u(t)))
+ ? e.push({ source: t, target: (r.target[o] = new Array(2)) })
+ : (r.target[o] = u(t)))
return n
}),
- (l.add = function (e) {
+ (c.add = function (e) {
var t = +this._x.call(null, e)
return r(this.cover(t), t, e)
}),
- (l.addAll = function (e) {
+ (c.addAll = function (e) {
var t,
n,
- i = e.length,
- o = new Array(i),
+ o = e.length,
+ i = new Array(o),
a = 1 / 0,
s = -1 / 0
- for (t = 0; t < i; ++t)
+ for (t = 0; t < o; ++t)
isNaN((n = +this._x.call(null, e[t]))) ||
- ((o[t] = n), n < a && (a = n), n > s && (s = n))
+ ((i[t] = n), n < a && (a = n), n > s && (s = n))
if (a > s) return this
- for (this.cover(a).cover(s), t = 0; t < i; ++t) r(this, o[t], e[t])
+ for (this.cover(a).cover(s), t = 0; t < o; ++t) r(this, i[t], e[t])
return this
}),
- (l.cover = function (e) {
+ (c.cover = function (e) {
if (isNaN((e = +e))) return this
var t = this._x0,
n = this._x1
if (isNaN(t)) n = (t = Math.floor(e)) + 1
else {
- for (var r, i, o = n - t || 1, a = this._root; t > e || e >= n; )
- switch (((i = +(e < t)), ((r = new Array(2))[i] = a), (a = r), (o *= 2), i)) {
+ for (var r, o, i = n - t || 1, a = this._root; t > e || e >= n; )
+ switch (((o = +(e < t)), ((r = new Array(2))[o] = a), (a = r), (i *= 2), o)) {
case 0:
- n = t + o
+ n = t + i
break
case 1:
- t = n - o
+ t = n - i
}
this._root && this._root.length && (this._root = a)
}
return (this._x0 = t), (this._x1 = n), this
}),
- (l.data = function () {
+ (c.data = function () {
var e = []
return (
this.visit(function (t) {
@@ -22712,87 +36601,87 @@
e
)
}),
- (l.extent = function (e) {
+ (c.extent = function (e) {
return arguments.length
? this.cover(+e[0][0]).cover(+e[1][0])
: isNaN(this._x0)
? void 0
: [[this._x0], [this._x1]]
}),
- (l.find = function (e, t) {
+ (c.find = function (e, t) {
var n,
r,
- o,
+ i,
a,
s,
u = this._x0,
- l = this._x1,
- c = [],
+ c = this._x1,
+ l = [],
d = this._root
for (
- d && c.push(new i(d, u, l)), null == t ? (t = 1 / 0) : ((u = e - t), (l = e + t));
- (a = c.pop());
+ d && l.push(new o(d, u, c)), null == t ? (t = 1 / 0) : ((u = e - t), (c = e + t));
+ (a = l.pop());
)
- if (!(!(d = a.node) || (r = a.x0) > l || (o = a.x1) < u))
+ if (!(!(d = a.node) || (r = a.x0) > c || (i = a.x1) < u))
if (d.length) {
- var f = (r + o) / 2
- c.push(new i(d[1], f, o), new i(d[0], r, f)),
+ var f = (r + i) / 2
+ l.push(new o(d[1], f, i), new o(d[0], r, f)),
(s = +(e >= f)) &&
- ((a = c[c.length - 1]),
- (c[c.length - 1] = c[c.length - 1 - s]),
- (c[c.length - 1 - s] = a))
+ ((a = l[l.length - 1]),
+ (l[l.length - 1] = l[l.length - 1 - s]),
+ (l[l.length - 1 - s] = a))
} else {
var h = Math.abs(e - +this._x.call(null, d.data))
- h < t && ((t = h), (u = e - h), (l = e + h), (n = d.data))
+ h < t && ((t = h), (u = e - h), (c = e + h), (n = d.data))
}
return n
}),
- (l.remove = function (e) {
- if (isNaN((o = +this._x.call(null, e)))) return this
+ (c.remove = function (e) {
+ if (isNaN((i = +this._x.call(null, e)))) return this
var t,
n,
r,
- i,
o,
+ i,
a,
s,
u,
- l,
- c = this._root,
+ c,
+ l = this._root,
d = this._x0,
f = this._x1
- if (!c) return this
- if (c.length)
+ if (!l) return this
+ if (l.length)
for (;;) {
- if (((s = o >= (a = (d + f) / 2)) ? (d = a) : (f = a), (t = c), !(c = c[(u = +s)])))
+ if (((s = i >= (a = (d + f) / 2)) ? (d = a) : (f = a), (t = l), !(l = l[(u = +s)])))
return this
- if (!c.length) break
- t[(u + 1) & 1] && ((n = t), (l = u))
+ if (!l.length) break
+ t[(u + 1) & 1] && ((n = t), (c = u))
}
- for (; c.data !== e; ) if (((r = c), !(c = c.next))) return this
+ for (; l.data !== e; ) if (((r = l), !(l = l.next))) return this
return (
- (i = c.next) && delete c.next,
+ (o = l.next) && delete l.next,
r
- ? (i ? (r.next = i) : delete r.next, this)
+ ? (o ? (r.next = o) : delete r.next, this)
: t
- ? (i ? (t[u] = i) : delete t[u],
- (c = t[0] || t[1]) &&
- c === (t[1] || t[0]) &&
- !c.length &&
- (n ? (n[l] = c) : (this._root = c)),
+ ? (o ? (t[u] = o) : delete t[u],
+ (l = t[0] || t[1]) &&
+ l === (t[1] || t[0]) &&
+ !l.length &&
+ (n ? (n[c] = l) : (this._root = l)),
this)
- : ((this._root = i), this)
+ : ((this._root = o), this)
)
}),
- (l.removeAll = function (e) {
+ (c.removeAll = function (e) {
for (var t = 0, n = e.length; t < n; ++t) this.remove(e[t])
return this
}),
- (l.root = function () {
+ (c.root = function () {
return this._root
}),
- (l.size = function () {
+ (c.size = function () {
var e = 0
return (
this.visit(function (t) {
@@ -22804,43 +36693,43 @@
e
)
}),
- (l.visit = function (e) {
+ (c.visit = function (e) {
var t,
n,
r,
- o,
+ i,
a = [],
s = this._root
- for (s && a.push(new i(s, this._x0, this._x1)); (t = a.pop()); )
- if (!e((s = t.node), (r = t.x0), (o = t.x1)) && s.length) {
- var u = (r + o) / 2
- ;(n = s[1]) && a.push(new i(n, u, o)), (n = s[0]) && a.push(new i(n, r, u))
+ for (s && a.push(new o(s, this._x0, this._x1)); (t = a.pop()); )
+ if (!e((s = t.node), (r = t.x0), (i = t.x1)) && s.length) {
+ var u = (r + i) / 2
+ ;(n = s[1]) && a.push(new o(n, u, i)), (n = s[0]) && a.push(new o(n, r, u))
}
return this
}),
- (l.visitAfter = function (e) {
+ (c.visitAfter = function (e) {
var t,
n = [],
r = []
- for (this._root && n.push(new i(this._root, this._x0, this._x1)); (t = n.pop()); ) {
- var o = t.node
- if (o.length) {
+ for (this._root && n.push(new o(this._root, this._x0, this._x1)); (t = n.pop()); ) {
+ var i = t.node
+ if (i.length) {
var a,
s = t.x0,
u = t.x1,
- l = (s + u) / 2
- ;(a = o[0]) && n.push(new i(a, s, l)), (a = o[1]) && n.push(new i(a, l, u))
+ c = (s + u) / 2
+ ;(a = i[0]) && n.push(new o(a, s, c)), (a = i[1]) && n.push(new o(a, c, u))
}
r.push(t)
}
for (; (t = r.pop()); ) e(t.node, t.x0, t.x1)
return this
}),
- (l.x = function (e) {
+ (c.x = function (e) {
return arguments.length ? ((this._x = e), this) : this._x
})
},
- 7137: function (e, t) {
+ 77137: function (e, t) {
'use strict'
var n = { value: function () {} }
function r() {
@@ -22849,12 +36738,12 @@
throw new Error('illegal type: ' + e)
r[e] = []
}
- return new i(r)
+ return new o(r)
}
- function i(e) {
+ function o(e) {
this._ = e
}
- function o(e, t) {
+ function i(e, t) {
return e
.trim()
.split(/^|\s+/)
@@ -22867,89 +36756,89 @@
})
}
function a(e, t) {
- for (var n, r = 0, i = e.length; r < i; ++r) if ((n = e[r]).name === t) return n.value
+ for (var n, r = 0, o = e.length; r < o; ++r) if ((n = e[r]).name === t) return n.value
}
function s(e, t, r) {
- for (var i = 0, o = e.length; i < o; ++i)
- if (e[i].name === t) {
- ;(e[i] = n), (e = e.slice(0, i).concat(e.slice(i + 1)))
+ for (var o = 0, i = e.length; o < i; ++o)
+ if (e[o].name === t) {
+ ;(e[o] = n), (e = e.slice(0, o).concat(e.slice(o + 1)))
break
}
return null != r && e.push({ name: t, value: r }), e
}
- ;(i.prototype = r.prototype =
+ ;(o.prototype = r.prototype =
{
- constructor: i,
+ constructor: o,
on: function (e, t) {
var n,
r = this._,
- i = o(e + '', r),
+ o = i(e + '', r),
u = -1,
- l = i.length
+ c = o.length
if (!(arguments.length < 2)) {
if (null != t && 'function' !== typeof t) throw new Error('invalid callback: ' + t)
- for (; ++u < l; )
- if ((n = (e = i[u]).type)) r[n] = s(r[n], e.name, t)
+ for (; ++u < c; )
+ if ((n = (e = o[u]).type)) r[n] = s(r[n], e.name, t)
else if (null == t) for (n in r) r[n] = s(r[n], e.name, null)
return this
}
- for (; ++u < l; ) if ((n = (e = i[u]).type) && (n = a(r[n], e.name))) return n
+ for (; ++u < c; ) if ((n = (e = o[u]).type) && (n = a(r[n], e.name))) return n
},
copy: function () {
var e = {},
t = this._
for (var n in t) e[n] = t[n].slice()
- return new i(e)
+ return new o(e)
},
call: function (e, t) {
if ((n = arguments.length - 2) > 0)
- for (var n, r, i = new Array(n), o = 0; o < n; ++o) i[o] = arguments[o + 2]
+ for (var n, r, o = new Array(n), i = 0; i < n; ++i) o[i] = arguments[i + 2]
if (!this._.hasOwnProperty(e)) throw new Error('unknown type: ' + e)
- for (o = 0, n = (r = this._[e]).length; o < n; ++o) r[o].value.apply(t, i)
+ for (i = 0, n = (r = this._[e]).length; i < n; ++i) r[i].value.apply(t, o)
},
apply: function (e, t, n) {
if (!this._.hasOwnProperty(e)) throw new Error('unknown type: ' + e)
- for (var r = this._[e], i = 0, o = r.length; i < o; ++i) r[i].value.apply(t, n)
+ for (var r = this._[e], o = 0, i = r.length; o < i; ++o) r[o].value.apply(t, n)
},
}),
(t.Z = r)
},
- 216: function (e, t, n) {
+ 20216: function (e, t, n) {
'use strict'
function r(e, t, n) {
var r,
- i = 1
- function o() {
- var o,
+ o = 1
+ function i() {
+ var i,
a,
s = r.length,
u = 0,
- l = 0,
- c = 0
- for (o = 0; o < s; ++o) (u += (a = r[o]).x || 0), (l += a.y || 0), (c += a.z || 0)
- for (u = (u / s - e) * i, l = (l / s - t) * i, c = (c / s - n) * i, o = 0; o < s; ++o)
- (a = r[o]), u && (a.x -= u), l && (a.y -= l), c && (a.z -= c)
+ c = 0,
+ l = 0
+ for (i = 0; i < s; ++i) (u += (a = r[i]).x || 0), (c += a.y || 0), (l += a.z || 0)
+ for (u = (u / s - e) * o, c = (c / s - t) * o, l = (l / s - n) * o, i = 0; i < s; ++i)
+ (a = r[i]), u && (a.x -= u), c && (a.y -= c), l && (a.z -= l)
}
return (
null == e && (e = 0),
null == t && (t = 0),
null == n && (n = 0),
- (o.initialize = function (e) {
+ (i.initialize = function (e) {
r = e
}),
- (o.x = function (t) {
- return arguments.length ? ((e = +t), o) : e
+ (i.x = function (t) {
+ return arguments.length ? ((e = +t), i) : e
}),
- (o.y = function (e) {
- return arguments.length ? ((t = +e), o) : t
+ (i.y = function (e) {
+ return arguments.length ? ((t = +e), i) : t
}),
- (o.z = function (e) {
- return arguments.length ? ((n = +e), o) : n
+ (i.z = function (e) {
+ return arguments.length ? ((n = +e), i) : n
}),
- (o.strength = function (e) {
- return arguments.length ? ((i = +e), o) : i
+ (i.strength = function (e) {
+ return arguments.length ? ((o = +e), i) : o
}),
- o
+ i
)
}
n.d(t, {
@@ -22958,7 +36847,7 @@
},
})
},
- 9437: function (e, t, n) {
+ 29437: function (e, t, n) {
'use strict'
function r(e) {
return function () {
@@ -22982,16 +36871,16 @@
},
})
},
- 5560: function (e, t, n) {
+ 15560: function (e, t, n) {
'use strict'
n.d(t, {
Z: function () {
return s
},
})
- var r = n(9437),
- i = n(8246)
- function o(e) {
+ var r = n(29437),
+ o = n(8246)
+ function i(e) {
return e.index
}
function a(e, t) {
@@ -23004,51 +36893,51 @@
n,
s,
u,
- l,
c,
+ l,
d,
- f = o,
+ f = i,
h = function (e) {
- return 1 / Math.min(l[e.source.index], l[e.target.index])
+ return 1 / Math.min(c[e.source.index], c[e.target.index])
},
p = (0, r.Z)(30),
v = 1
function m(r) {
- for (var o = 0, a = e.length; o < v; ++o)
- for (var s, l, f, h, p, m = 0, g = 0, y = 0, b = 0; m < a; ++m)
- (l = (s = e[m]).source),
- (g = (f = s.target).x + f.vx - l.x - l.vx || (0, i.Z)(d)),
- u > 1 && (y = f.y + f.vy - l.y - l.vy || (0, i.Z)(d)),
- u > 2 && (b = f.z + f.vz - l.z - l.vz || (0, i.Z)(d)),
+ for (var i = 0, a = e.length; i < v; ++i)
+ for (var s, c, f, h, p, m = 0, g = 0, y = 0, b = 0; m < a; ++m)
+ (c = (s = e[m]).source),
+ (g = (f = s.target).x + f.vx - c.x - c.vx || (0, o.Z)(d)),
+ u > 1 && (y = f.y + f.vy - c.y - c.vy || (0, o.Z)(d)),
+ u > 2 && (b = f.z + f.vz - c.z - c.vz || (0, o.Z)(d)),
(g *= h = (((h = Math.sqrt(g * g + y * y + b * b)) - n[m]) / h) * r * t[m]),
(y *= h),
(b *= h),
- (f.vx -= g * (p = c[m])),
+ (f.vx -= g * (p = l[m])),
u > 1 && (f.vy -= y * p),
u > 2 && (f.vz -= b * p),
- (l.vx += g * (p = 1 - p)),
- u > 1 && (l.vy += y * p),
- u > 2 && (l.vz += b * p)
+ (c.vx += g * (p = 1 - p)),
+ u > 1 && (c.vy += y * p),
+ u > 2 && (c.vz += b * p)
}
function g() {
if (s) {
var r,
- i,
- o = s.length,
+ o,
+ i = s.length,
u = e.length,
d = new Map(
s.map(function (e, t) {
return [f(e, t, s), e]
}),
)
- for (r = 0, l = new Array(o); r < u; ++r)
- ((i = e[r]).index = r),
- 'object' !== typeof i.source && (i.source = a(d, i.source)),
- 'object' !== typeof i.target && (i.target = a(d, i.target)),
- (l[i.source.index] = (l[i.source.index] || 0) + 1),
- (l[i.target.index] = (l[i.target.index] || 0) + 1)
- for (r = 0, c = new Array(u); r < u; ++r)
- (i = e[r]), (c[r] = l[i.source.index] / (l[i.source.index] + l[i.target.index]))
+ for (r = 0, c = new Array(i); r < u; ++r)
+ ((o = e[r]).index = r),
+ 'object' !== typeof o.source && (o.source = a(d, o.source)),
+ 'object' !== typeof o.target && (o.target = a(d, o.target)),
+ (c[o.source.index] = (c[o.source.index] || 0) + 1),
+ (c[o.target.index] = (c[o.target.index] || 0) + 1)
+ for (r = 0, l = new Array(u); r < u; ++r)
+ (o = e[r]), (l[r] = c[o.source.index] / (c[o.source.index] + c[o.target.index]))
;(t = new Array(u)), y(), (n = new Array(u)), b()
}
}
@@ -23093,25 +36982,25 @@
)
}
},
- 2405: function (e, t, n) {
+ 92405: function (e, t, n) {
'use strict'
n.d(t, {
Z: function () {
- return l
+ return c
},
})
- var r = n(4275),
- i = n(54),
- o = n(8357),
- a = n(9437),
+ var r = n(14275),
+ o = n(60054),
+ i = n(78357),
+ a = n(29437),
s = n(8246),
- u = n(4505)
- function l() {
+ u = n(54505)
+ function c() {
var e,
t,
n,
- l,
c,
+ l,
d,
f = (0, a.Z)(-30),
h = 1,
@@ -23119,17 +37008,17 @@
v = 0.81
function m(a) {
var s,
- l = e.length,
+ c = e.length,
d = (
1 === t
? (0, r.Z)(e, u.x)
: 2 === t
- ? (0, i.Z)(e, u.x, u.y)
+ ? (0, o.Z)(e, u.x, u.y)
: 3 === t
- ? (0, o.Z)(e, u.x, u.y, u.z)
+ ? (0, i.Z)(e, u.x, u.y, u.z)
: null
).visitAfter(y)
- for (c = a, s = 0; s < l; ++s) (n = e[s]), d.visit(b)
+ for (l = a, s = 0; s < c; ++s) (n = e[s]), d.visit(b)
}
function g() {
if (e) {
@@ -23142,23 +37031,23 @@
function y(e) {
var n,
r,
- i,
o,
+ i,
a,
s,
u = 0,
- l = 0,
- c = e.length
- if (c) {
- for (i = o = a = s = 0; s < c; ++s)
+ c = 0,
+ l = e.length
+ if (l) {
+ for (o = i = a = s = 0; s < l; ++s)
(n = e[s]) &&
(r = Math.abs(n.value)) &&
((u += n.value),
- (l += r),
- (i += r * (n.x || 0)),
- (o += r * (n.y || 0)),
+ (c += r),
+ (o += r * (n.x || 0)),
+ (i += r * (n.y || 0)),
(a += r * (n.z || 0)))
- ;(u *= Math.sqrt(4 / c)), (e.x = i / l), t > 1 && (e.y = o / l), t > 2 && (e.z = a / l)
+ ;(u *= Math.sqrt(4 / l)), (e.x = o / c), t > 1 && (e.y = i / c), t > 2 && (e.z = a / c)
} else {
;((n = e).x = n.data.x), t > 1 && (n.y = n.data.y), t > 2 && (n.z = n.data.z)
do {
@@ -23167,9 +37056,9 @@
}
e.value = u
}
- function b(e, r, i, o, a) {
+ function b(e, r, o, i, a) {
if (!e.value) return !0
- var u = [i, o, a][t - 1],
+ var u = [o, i, a][t - 1],
f = e.x - n.x,
m = t > 1 ? e.y - n.y : 0,
g = t > 2 ? e.z - n.z : 0,
@@ -23178,24 +37067,24 @@
if ((y * y) / v < b)
return (
b < p &&
- (0 === f && (b += (f = (0, s.Z)(l)) * f),
- t > 1 && 0 === m && (b += (m = (0, s.Z)(l)) * m),
- t > 2 && 0 === g && (b += (g = (0, s.Z)(l)) * g),
+ (0 === f && (b += (f = (0, s.Z)(c)) * f),
+ t > 1 && 0 === m && (b += (m = (0, s.Z)(c)) * m),
+ t > 2 && 0 === g && (b += (g = (0, s.Z)(c)) * g),
b < h && (b = Math.sqrt(h * b)),
- (n.vx += (f * e.value * c) / b),
- t > 1 && (n.vy += (m * e.value * c) / b),
- t > 2 && (n.vz += (g * e.value * c) / b)),
+ (n.vx += (f * e.value * l) / b),
+ t > 1 && (n.vy += (m * e.value * l) / b),
+ t > 2 && (n.vz += (g * e.value * l) / b)),
!0
)
if (!(e.length || b >= p)) {
;(e.data !== n || e.next) &&
- (0 === f && (b += (f = (0, s.Z)(l)) * f),
- t > 1 && 0 === m && (b += (m = (0, s.Z)(l)) * m),
- t > 2 && 0 === g && (b += (g = (0, s.Z)(l)) * g),
+ (0 === f && (b += (f = (0, s.Z)(c)) * f),
+ t > 1 && 0 === m && (b += (m = (0, s.Z)(c)) * m),
+ t > 2 && 0 === g && (b += (g = (0, s.Z)(c)) * g),
b < h && (b = Math.sqrt(h * b)))
do {
e.data !== n &&
- ((y = (d[e.data.index] * c) / b),
+ ((y = (d[e.data.index] * l) / b),
(n.vx += f * y),
t > 1 && (n.vy += m * y),
t > 2 && (n.vz += g * y))
@@ -23205,14 +37094,14 @@
return (
(m.initialize = function (n) {
e = n
- for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
- i[o - 1] = arguments[o]
- ;(l =
- i.find(function (e) {
+ for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
+ o[i - 1] = arguments[i]
+ ;(c =
+ o.find(function (e) {
return 'function' === typeof e
}) || Math.random),
(t =
- i.find(function (e) {
+ o.find(function (e) {
return [1, 2, 3].includes(e)
}) || 2),
g()
@@ -23233,46 +37122,46 @@
)
}
},
- 6917: function (e, t, n) {
+ 16917: function (e, t, n) {
'use strict'
n.d(t, {
Z: function () {
- return i
+ return o
},
})
- var r = n(9437)
- function i(e, t, n, i) {
- var o,
+ var r = n(29437)
+ function o(e, t, n, o) {
+ var i,
a,
s,
u,
- l = (0, r.Z)(0.1)
- function c(e) {
- for (var r = 0, l = o.length; r < l; ++r) {
- var c = o[r],
- d = c.x - t || 1e-6,
- f = (c.y || 0) - n || 1e-6,
- h = (c.z || 0) - i || 1e-6,
+ c = (0, r.Z)(0.1)
+ function l(e) {
+ for (var r = 0, c = i.length; r < c; ++r) {
+ var l = i[r],
+ d = l.x - t || 1e-6,
+ f = (l.y || 0) - n || 1e-6,
+ h = (l.z || 0) - o || 1e-6,
p = Math.sqrt(d * d + f * f + h * h),
v = ((u[r] - p) * s[r] * e) / p
- ;(c.vx += d * v), a > 1 && (c.vy += f * v), a > 2 && (c.vz += h * v)
+ ;(l.vx += d * v), a > 1 && (l.vy += f * v), a > 2 && (l.vz += h * v)
}
}
function d() {
- if (o) {
+ if (i) {
var t,
- n = o.length
+ n = i.length
for (s = new Array(n), u = new Array(n), t = 0; t < n; ++t)
- (u[t] = +e(o[t], t, o)), (s[t] = isNaN(u[t]) ? 0 : +l(o[t], t, o))
+ (u[t] = +e(i[t], t, i)), (s[t] = isNaN(u[t]) ? 0 : +c(i[t], t, i))
}
}
return (
'function' !== typeof e && (e = (0, r.Z)(+e)),
null == t && (t = 0),
null == n && (n = 0),
- null == i && (i = 0),
- (c.initialize = function (e) {
- o = e
+ null == o && (o = 0),
+ (l.initialize = function (e) {
+ i = e
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r]
;(a =
@@ -23281,26 +37170,26 @@
}) || 2),
d()
}),
- (c.strength = function (e) {
- return arguments.length ? ((l = 'function' === typeof e ? e : (0, r.Z)(+e)), d(), c) : l
+ (l.strength = function (e) {
+ return arguments.length ? ((c = 'function' === typeof e ? e : (0, r.Z)(+e)), d(), l) : c
}),
- (c.radius = function (t) {
- return arguments.length ? ((e = 'function' === typeof t ? t : (0, r.Z)(+t)), d(), c) : e
+ (l.radius = function (t) {
+ return arguments.length ? ((e = 'function' === typeof t ? t : (0, r.Z)(+t)), d(), l) : e
}),
- (c.x = function (e) {
- return arguments.length ? ((t = +e), c) : t
+ (l.x = function (e) {
+ return arguments.length ? ((t = +e), l) : t
}),
- (c.y = function (e) {
- return arguments.length ? ((n = +e), c) : n
+ (l.y = function (e) {
+ return arguments.length ? ((n = +e), l) : n
}),
- (c.z = function (e) {
- return arguments.length ? ((i = +e), c) : i
+ (l.z = function (e) {
+ return arguments.length ? ((o = +e), l) : o
}),
- c
+ l
)
}
},
- 4505: function (e, t, n) {
+ 54505: function (e, t, n) {
'use strict'
n.d(t, {
Z: function () {
@@ -23316,9 +37205,9 @@
return u
},
})
- var r = n(7137),
- i = n(513),
- o = 4294967296
+ var r = n(77137),
+ o = n(513),
+ i = 4294967296
function a(e) {
return e.x
}
@@ -23328,8 +37217,8 @@
function u(e) {
return e.z
}
- var l = Math.PI * (3 - Math.sqrt(5)),
- c = (20 * Math.PI) / (9 + Math.sqrt(221))
+ var c = Math.PI * (3 - Math.sqrt(5)),
+ l = (20 * Math.PI) / (9 + Math.sqrt(221))
function d(e, t) {
t = t || 2
var n,
@@ -23340,12 +37229,12 @@
f = 0,
h = 0.6,
p = new Map(),
- v = (0, i.HT)(y),
+ v = (0, o.HT)(y),
m = (0, r.Z)('tick', 'end'),
g = (function () {
var e = 1
return function () {
- return (e = (1664525 * e + 1013904223) % o) / o
+ return (e = (1664525 * e + 1013904223) % i) / i
}
})()
function y() {
@@ -23353,8 +37242,8 @@
}
function b(t) {
var r,
- i,
- o = e.length
+ o,
+ i = e.length
void 0 === t && (t = 1)
for (var u = 0; u < t; ++u)
for (
@@ -23363,12 +37252,12 @@
e(s)
}),
r = 0;
- r < o;
+ r < i;
++r
)
- null == (i = e[r]).fx ? (i.x += i.vx *= h) : ((i.x = i.fx), (i.vx = 0)),
- a > 1 && (null == i.fy ? (i.y += i.vy *= h) : ((i.y = i.fy), (i.vy = 0))),
- a > 2 && (null == i.fz ? (i.z += i.vz *= h) : ((i.z = i.fz), (i.vz = 0)))
+ null == (o = e[r]).fx ? (o.x += o.vx *= h) : ((o.x = o.fx), (o.vx = 0)),
+ a > 1 && (null == o.fy ? (o.y += o.vy *= h) : ((o.y = o.fy), (o.vy = 0))),
+ a > 2 && (null == o.fz ? (o.z += o.vz *= h) : ((o.z = o.fz), (o.vz = 0)))
return n
}
function w() {
@@ -23380,22 +37269,22 @@
null != t.fz && (t.z = t.fz),
isNaN(t.x) || (a > 1 && isNaN(t.y)) || (a > 2 && isNaN(t.z)))
) {
- var i = 10 * (a > 2 ? Math.cbrt(0.5 + n) : a > 1 ? Math.sqrt(0.5 + n) : n),
- o = n * l,
- s = n * c
+ var o = 10 * (a > 2 ? Math.cbrt(0.5 + n) : a > 1 ? Math.sqrt(0.5 + n) : n),
+ i = n * c,
+ s = n * l
1 === a
- ? (t.x = i)
+ ? (t.x = o)
: 2 === a
- ? ((t.x = i * Math.cos(o)), (t.y = i * Math.sin(o)))
- : ((t.x = i * Math.sin(o) * Math.cos(s)),
- (t.y = i * Math.cos(o)),
- (t.z = i * Math.sin(o) * Math.sin(s)))
+ ? ((t.x = o * Math.cos(i)), (t.y = o * Math.sin(i)))
+ : ((t.x = o * Math.sin(i) * Math.cos(s)),
+ (t.y = o * Math.cos(i)),
+ (t.z = o * Math.sin(i) * Math.sin(s)))
}
;(isNaN(t.vx) || (a > 1 && isNaN(t.vy)) || (a > 2 && isNaN(t.vz))) &&
((t.vx = 0), a > 1 && (t.vy = 0), a > 2 && (t.vz = 0))
}
}
- function x(t) {
+ function _(t) {
return t.initialize && t.initialize(e, g, a), t
}
return (
@@ -23411,11 +37300,11 @@
},
numDimensions: function (e) {
return arguments.length
- ? ((a = Math.min(3, Math.max(1, Math.round(e)))), p.forEach(x), n)
+ ? ((a = Math.min(3, Math.max(1, Math.round(e)))), p.forEach(_), n)
: a
},
nodes: function (t) {
- return arguments.length ? ((e = t), w(), p.forEach(x), n) : e
+ return arguments.length ? ((e = t), w(), p.forEach(_), n) : e
},
alpha: function (e) {
return arguments.length ? ((s = +e), n) : s
@@ -23433,30 +37322,30 @@
return arguments.length ? ((h = 1 - e), n) : 1 - h
},
randomSource: function (e) {
- return arguments.length ? ((g = e), p.forEach(x), n) : g
+ return arguments.length ? ((g = e), p.forEach(_), n) : g
},
force: function (e, t) {
- return arguments.length > 1 ? (null == t ? p.delete(e) : p.set(e, x(t)), n) : p.get(e)
+ return arguments.length > 1 ? (null == t ? p.delete(e) : p.set(e, _(t)), n) : p.get(e)
},
find: function () {
var t,
n,
r,
- i,
o,
+ i,
s,
u = Array.prototype.slice.call(arguments),
- l = u.shift() || 0,
- c = (a > 1 ? u.shift() : null) || 0,
+ c = u.shift() || 0,
+ l = (a > 1 ? u.shift() : null) || 0,
d = (a > 2 ? u.shift() : null) || 0,
f = u.shift() || 1 / 0,
h = 0,
p = e.length
for (f *= f, h = 0; h < p; ++h)
- (i =
- (t = l - (o = e[h]).x) * t +
- (n = c - (o.y || 0)) * n +
- (r = d - (o.z || 0)) * r) < f && ((s = o), (f = i))
+ (o =
+ (t = c - (i = e[h]).x) * t +
+ (n = l - (i.y || 0)) * n +
+ (r = d - (i.z || 0)) * r) < f && ((s = i), (f = o))
return s
},
on: function (e, t) {
@@ -23466,16 +37355,16 @@
)
}
},
- 8357: function (e, t, n) {
+ 78357: function (e, t, n) {
'use strict'
- function r(e, t, n, r, i) {
+ function r(e, t, n, r, o) {
if (isNaN(t) || isNaN(n) || isNaN(r)) return e
- var o,
+ var i,
a,
s,
u,
- l,
c,
+ l,
d,
f,
h,
@@ -23483,50 +37372,50 @@
v,
m,
g = e._root,
- y = { data: i },
+ y = { data: o },
b = e._x0,
w = e._y0,
- x = e._z0,
- E = e._x1,
+ _ = e._z0,
+ x = e._x1,
k = e._y1,
- _ = e._z1
+ E = e._z1
if (!g) return (e._root = y), e
for (; g.length; )
if (
- ((f = t >= (a = (b + E) / 2)) ? (b = a) : (E = a),
+ ((f = t >= (a = (b + x) / 2)) ? (b = a) : (x = a),
(h = n >= (s = (w + k) / 2)) ? (w = s) : (k = s),
- (p = r >= (u = (x + _) / 2)) ? (x = u) : (_ = u),
- (o = g),
+ (p = r >= (u = (_ + E) / 2)) ? (_ = u) : (E = u),
+ (i = g),
!(g = g[(v = (p << 2) | (h << 1) | f)]))
)
- return (o[v] = y), e
+ return (i[v] = y), e
if (
- ((l = +e._x.call(null, g.data)),
- (c = +e._y.call(null, g.data)),
+ ((c = +e._x.call(null, g.data)),
+ (l = +e._y.call(null, g.data)),
(d = +e._z.call(null, g.data)),
- t === l && n === c && r === d)
+ t === c && n === l && r === d)
)
- return (y.next = g), o ? (o[v] = y) : (e._root = y), e
+ return (y.next = g), i ? (i[v] = y) : (e._root = y), e
do {
- ;(o = o ? (o[v] = new Array(8)) : (e._root = new Array(8))),
- (f = t >= (a = (b + E) / 2)) ? (b = a) : (E = a),
+ ;(i = i ? (i[v] = new Array(8)) : (e._root = new Array(8))),
+ (f = t >= (a = (b + x) / 2)) ? (b = a) : (x = a),
(h = n >= (s = (w + k) / 2)) ? (w = s) : (k = s),
- (p = r >= (u = (x + _) / 2)) ? (x = u) : (_ = u)
+ (p = r >= (u = (_ + E) / 2)) ? (_ = u) : (E = u)
} while (
- (v = (p << 2) | (h << 1) | f) === (m = ((d >= u) << 2) | ((c >= s) << 1) | (l >= a))
+ (v = (p << 2) | (h << 1) | f) === (m = ((d >= u) << 2) | ((l >= s) << 1) | (c >= a))
)
- return (o[m] = g), (o[v] = y), e
+ return (i[m] = g), (i[v] = y), e
}
- function i(e, t, n, r, i, o, a) {
+ function o(e, t, n, r, o, i, a) {
;(this.node = e),
(this.x0 = t),
(this.y0 = n),
(this.z0 = r),
- (this.x1 = i),
- (this.y1 = o),
+ (this.x1 = o),
+ (this.y1 = i),
(this.z1 = a)
}
- function o(e) {
+ function i(e) {
return e[0]
}
function a(e) {
@@ -23536,8 +37425,8 @@
return e[2]
}
function u(e, t, n, r) {
- var i = new l(
- null == t ? o : t,
+ var o = new c(
+ null == t ? i : t,
null == n ? a : n,
null == r ? s : r,
NaN,
@@ -23547,21 +37436,21 @@
NaN,
NaN,
)
- return null == e ? i : i.addAll(e)
+ return null == e ? o : o.addAll(e)
}
- function l(e, t, n, r, i, o, a, s, u) {
+ function c(e, t, n, r, o, i, a, s, u) {
;(this._x = e),
(this._y = t),
(this._z = n),
(this._x0 = r),
- (this._y0 = i),
- (this._z0 = o),
+ (this._y0 = o),
+ (this._z0 = i),
(this._x1 = a),
(this._y1 = s),
(this._z1 = u),
(this._root = void 0)
}
- function c(e) {
+ function l(e) {
for (var t = { data: e.data }, n = t; (e = e.next); ) n = n.next = { data: e.data }
return t
}
@@ -23570,11 +37459,11 @@
return u
},
})
- var d = (u.prototype = l.prototype)
+ var d = (u.prototype = c.prototype)
;(d.copy = function () {
var e,
t,
- n = new l(
+ n = new c(
this._x,
this._y,
this._z,
@@ -23587,31 +37476,31 @@
),
r = this._root
if (!r) return n
- if (!r.length) return (n._root = c(r)), n
+ if (!r.length) return (n._root = l(r)), n
for (e = [{ source: r, target: (n._root = new Array(8)) }]; (r = e.pop()); )
- for (var i = 0; i < 8; ++i)
- (t = r.source[i]) &&
+ for (var o = 0; o < 8; ++o)
+ (t = r.source[o]) &&
(t.length
- ? e.push({ source: t, target: (r.target[i] = new Array(8)) })
- : (r.target[i] = c(t)))
+ ? e.push({ source: t, target: (r.target[o] = new Array(8)) })
+ : (r.target[o] = l(t)))
return n
}),
(d.add = function (e) {
var t = +this._x.call(null, e),
n = +this._y.call(null, e),
- i = +this._z.call(null, e)
- return r(this.cover(t, n, i), t, n, i, e)
+ o = +this._z.call(null, e)
+ return r(this.cover(t, n, o), t, n, o, e)
}),
(d.addAll = function (e) {
var t,
n,
- i,
o,
+ i,
a,
s = e.length,
u = new Array(s),
- l = new Array(s),
c = new Array(s),
+ l = new Array(s),
d = 1 / 0,
f = 1 / 0,
h = 1 / 0,
@@ -23619,78 +37508,78 @@
v = -1 / 0,
m = -1 / 0
for (n = 0; n < s; ++n)
- isNaN((i = +this._x.call(null, (t = e[n])))) ||
- isNaN((o = +this._y.call(null, t))) ||
+ isNaN((o = +this._x.call(null, (t = e[n])))) ||
+ isNaN((i = +this._y.call(null, t))) ||
isNaN((a = +this._z.call(null, t))) ||
- ((u[n] = i),
- (l[n] = o),
- (c[n] = a),
- i < d && (d = i),
- i > p && (p = i),
- o < f && (f = o),
- o > v && (v = o),
+ ((u[n] = o),
+ (c[n] = i),
+ (l[n] = a),
+ o < d && (d = o),
+ o > p && (p = o),
+ i < f && (f = i),
+ i > v && (v = i),
a < h && (h = a),
a > m && (m = a))
if (d > p || f > v || h > m) return this
for (this.cover(d, f, h).cover(p, v, m), n = 0; n < s; ++n)
- r(this, u[n], l[n], c[n], e[n])
+ r(this, u[n], c[n], l[n], e[n])
return this
}),
(d.cover = function (e, t, n) {
if (isNaN((e = +e)) || isNaN((t = +t)) || isNaN((n = +n))) return this
var r = this._x0,
- i = this._y0,
- o = this._z0,
+ o = this._y0,
+ i = this._z0,
a = this._x1,
s = this._y1,
u = this._z1
if (isNaN(r))
(a = (r = Math.floor(e)) + 1),
- (s = (i = Math.floor(t)) + 1),
- (u = (o = Math.floor(n)) + 1)
+ (s = (o = Math.floor(t)) + 1),
+ (u = (i = Math.floor(n)) + 1)
else {
for (
- var l, c, d = a - r || 1, f = this._root;
- r > e || e >= a || i > t || t >= s || o > n || n >= u;
+ var c, l, d = a - r || 1, f = this._root;
+ r > e || e >= a || o > t || t >= s || i > n || n >= u;
)
switch (
- ((c = ((n < o) << 2) | ((t < i) << 1) | (e < r)),
- ((l = new Array(8))[c] = f),
- (f = l),
+ ((l = ((n < i) << 2) | ((t < o) << 1) | (e < r)),
+ ((c = new Array(8))[l] = f),
+ (f = c),
(d *= 2),
- c)
+ l)
) {
case 0:
- ;(a = r + d), (s = i + d), (u = o + d)
+ ;(a = r + d), (s = o + d), (u = i + d)
break
case 1:
- ;(r = a - d), (s = i + d), (u = o + d)
+ ;(r = a - d), (s = o + d), (u = i + d)
break
case 2:
- ;(a = r + d), (i = s - d), (u = o + d)
+ ;(a = r + d), (o = s - d), (u = i + d)
break
case 3:
- ;(r = a - d), (i = s - d), (u = o + d)
+ ;(r = a - d), (o = s - d), (u = i + d)
break
case 4:
- ;(a = r + d), (s = i + d), (o = u - d)
+ ;(a = r + d), (s = o + d), (i = u - d)
break
case 5:
- ;(r = a - d), (s = i + d), (o = u - d)
+ ;(r = a - d), (s = o + d), (i = u - d)
break
case 6:
- ;(a = r + d), (i = s - d), (o = u - d)
+ ;(a = r + d), (o = s - d), (i = u - d)
break
case 7:
- ;(r = a - d), (i = s - d), (o = u - d)
+ ;(r = a - d), (o = s - d), (i = u - d)
}
this._root && this._root.length && (this._root = f)
}
return (
(this._x0 = r),
- (this._y0 = i),
- (this._z0 = o),
+ (this._y0 = o),
+ (this._z0 = i),
(this._x1 = a),
(this._y1 = s),
(this._z1 = u),
@@ -23720,12 +37609,12 @@
]
}),
(d.find = function (e, t, n, r) {
- var o,
+ var i,
a,
s,
u,
- l,
c,
+ l,
d,
f,
h,
@@ -23736,9 +37625,9 @@
y = this._y1,
b = this._z1,
w = [],
- x = this._root
+ _ = this._root
for (
- x && w.push(new i(x, p, v, m, g, y, b)),
+ _ && w.push(new o(_, p, v, m, g, y, b)),
null == r
? (r = 1 / 0)
: ((p = e - r),
@@ -23753,54 +37642,54 @@
)
if (
!(
- !(x = f.node) ||
+ !(_ = f.node) ||
(a = f.x0) > g ||
(s = f.y0) > y ||
(u = f.z0) > b ||
- (l = f.x1) < p ||
- (c = f.y1) < v ||
+ (c = f.x1) < p ||
+ (l = f.y1) < v ||
(d = f.z1) < m
)
)
- if (x.length) {
- var E = (a + l) / 2,
- k = (s + c) / 2,
- _ = (u + d) / 2
+ if (_.length) {
+ var x = (a + c) / 2,
+ k = (s + l) / 2,
+ E = (u + d) / 2
w.push(
- new i(x[7], E, k, _, l, c, d),
- new i(x[6], a, k, _, E, c, d),
- new i(x[5], E, s, _, l, k, d),
- new i(x[4], a, s, _, E, k, d),
- new i(x[3], E, k, u, l, c, _),
- new i(x[2], a, k, u, E, c, _),
- new i(x[1], E, s, u, l, k, _),
- new i(x[0], a, s, u, E, k, _),
+ new o(_[7], x, k, E, c, l, d),
+ new o(_[6], a, k, E, x, l, d),
+ new o(_[5], x, s, E, c, k, d),
+ new o(_[4], a, s, E, x, k, d),
+ new o(_[3], x, k, u, c, l, E),
+ new o(_[2], a, k, u, x, l, E),
+ new o(_[1], x, s, u, c, k, E),
+ new o(_[0], a, s, u, x, k, E),
),
- (h = ((n >= _) << 2) | ((t >= k) << 1) | (e >= E)) &&
+ (h = ((n >= E) << 2) | ((t >= k) << 1) | (e >= x)) &&
((f = w[w.length - 1]),
(w[w.length - 1] = w[w.length - 1 - h]),
(w[w.length - 1 - h] = f))
} else {
- var T = e - +this._x.call(null, x.data),
- O = t - +this._y.call(null, x.data),
- C = n - +this._z.call(null, x.data),
- S = T * T + O * O + C * C
- if (S < r) {
- var A = Math.sqrt((r = S))
- ;(p = e - A),
- (v = t - A),
- (m = n - A),
- (g = e + A),
- (y = t + A),
- (b = n + A),
- (o = x.data)
+ var O = e - +this._x.call(null, _.data),
+ T = t - +this._y.call(null, _.data),
+ C = n - +this._z.call(null, _.data),
+ M = O * O + T * T + C * C
+ if (M < r) {
+ var S = Math.sqrt((r = M))
+ ;(p = e - S),
+ (v = t - S),
+ (m = n - S),
+ (g = e + S),
+ (y = t + S),
+ (b = n + S),
+ (i = _.data)
}
}
- return o
+ return i
}),
(d.remove = function (e) {
if (
- isNaN((o = +this._x.call(null, e))) ||
+ isNaN((i = +this._x.call(null, e))) ||
isNaN((a = +this._y.call(null, e))) ||
isNaN((s = +this._z.call(null, e)))
)
@@ -23808,13 +37697,13 @@
var t,
n,
r,
- i,
o,
+ i,
a,
s,
u,
- l,
c,
+ l,
d,
f,
h,
@@ -23825,15 +37714,15 @@
y = this._y0,
b = this._z0,
w = this._x1,
- x = this._y1,
- E = this._z1
+ _ = this._y1,
+ x = this._z1
if (!m) return this
if (m.length)
for (;;) {
if (
- ((d = o >= (u = (g + w) / 2)) ? (g = u) : (w = u),
- (f = a >= (l = (y + x) / 2)) ? (y = l) : (x = l),
- (h = s >= (c = (b + E) / 2)) ? (b = c) : (E = c),
+ ((d = i >= (u = (g + w) / 2)) ? (g = u) : (w = u),
+ (f = a >= (c = (y + _) / 2)) ? (y = c) : (_ = c),
+ (h = s >= (l = (b + x) / 2)) ? (b = l) : (x = l),
(t = m),
!(m = m[(p = (h << 2) | (f << 1) | d)]))
)
@@ -23850,17 +37739,17 @@
}
for (; m.data !== e; ) if (((r = m), !(m = m.next))) return this
return (
- (i = m.next) && delete m.next,
+ (o = m.next) && delete m.next,
r
- ? (i ? (r.next = i) : delete r.next, this)
+ ? (o ? (r.next = o) : delete r.next, this)
: t
- ? (i ? (t[p] = i) : delete t[p],
+ ? (o ? (t[p] = o) : delete t[p],
(m = t[0] || t[1] || t[2] || t[3] || t[4] || t[5] || t[6] || t[7]) &&
m === (t[7] || t[6] || t[5] || t[4] || t[3] || t[2] || t[1] || t[0]) &&
!m.length &&
(n ? (n[v] = m) : (this._root = m)),
this)
- : ((this._root = i), this)
+ : ((this._root = o), this)
)
}),
(d.removeAll = function (e) {
@@ -23886,41 +37775,41 @@
var t,
n,
r,
- o,
+ i,
a,
s,
u,
- l,
- c = [],
+ c,
+ l = [],
d = this._root
for (
- d && c.push(new i(d, this._x0, this._y0, this._z0, this._x1, this._y1, this._z1));
- (t = c.pop());
+ d && l.push(new o(d, this._x0, this._y0, this._z0, this._x1, this._y1, this._z1));
+ (t = l.pop());
)
if (
!e(
(d = t.node),
(r = t.x0),
- (o = t.y0),
+ (i = t.y0),
(a = t.z0),
(s = t.x1),
(u = t.y1),
- (l = t.z1),
+ (c = t.z1),
) &&
d.length
) {
var f = (r + s) / 2,
- h = (o + u) / 2,
- p = (a + l) / 2
- ;(n = d[7]) && c.push(new i(n, f, h, p, s, u, l)),
- (n = d[6]) && c.push(new i(n, r, h, p, f, u, l)),
- (n = d[5]) && c.push(new i(n, f, o, p, s, h, l)),
- (n = d[4]) && c.push(new i(n, r, o, p, f, h, l)),
- (n = d[3]) && c.push(new i(n, f, h, a, s, u, p)),
- (n = d[2]) && c.push(new i(n, r, h, a, f, u, p)),
- (n = d[1]) && c.push(new i(n, f, o, a, s, h, p)),
- (n = d[0]) && c.push(new i(n, r, o, a, f, h, p))
+ h = (i + u) / 2,
+ p = (a + c) / 2
+ ;(n = d[7]) && l.push(new o(n, f, h, p, s, u, c)),
+ (n = d[6]) && l.push(new o(n, r, h, p, f, u, c)),
+ (n = d[5]) && l.push(new o(n, f, i, p, s, h, c)),
+ (n = d[4]) && l.push(new o(n, r, i, p, f, h, c)),
+ (n = d[3]) && l.push(new o(n, f, h, a, s, u, p)),
+ (n = d[2]) && l.push(new o(n, r, h, a, f, u, p)),
+ (n = d[1]) && l.push(new o(n, f, i, a, s, h, p)),
+ (n = d[0]) && l.push(new o(n, r, i, a, f, h, p))
}
return this
}),
@@ -23930,30 +37819,30 @@
r = []
for (
this._root &&
- n.push(new i(this._root, this._x0, this._y0, this._z0, this._x1, this._y1, this._z1));
+ n.push(new o(this._root, this._x0, this._y0, this._z0, this._x1, this._y1, this._z1));
(t = n.pop());
) {
- var o = t.node
- if (o.length) {
+ var i = t.node
+ if (i.length) {
var a,
s = t.x0,
u = t.y0,
- l = t.z0,
- c = t.x1,
+ c = t.z0,
+ l = t.x1,
d = t.y1,
f = t.z1,
- h = (s + c) / 2,
+ h = (s + l) / 2,
p = (u + d) / 2,
- v = (l + f) / 2
- ;(a = o[0]) && n.push(new i(a, s, u, l, h, p, v)),
- (a = o[1]) && n.push(new i(a, h, u, l, c, p, v)),
- (a = o[2]) && n.push(new i(a, s, p, l, h, d, v)),
- (a = o[3]) && n.push(new i(a, h, p, l, c, d, v)),
- (a = o[4]) && n.push(new i(a, s, u, v, h, p, f)),
- (a = o[5]) && n.push(new i(a, h, u, v, c, p, f)),
- (a = o[6]) && n.push(new i(a, s, p, v, h, d, f)),
- (a = o[7]) && n.push(new i(a, h, p, v, c, d, f))
+ v = (c + f) / 2
+ ;(a = i[0]) && n.push(new o(a, s, u, c, h, p, v)),
+ (a = i[1]) && n.push(new o(a, h, u, c, l, p, v)),
+ (a = i[2]) && n.push(new o(a, s, p, c, h, d, v)),
+ (a = i[3]) && n.push(new o(a, h, p, c, l, d, v)),
+ (a = i[4]) && n.push(new o(a, s, u, v, h, p, f)),
+ (a = i[5]) && n.push(new o(a, h, u, v, l, p, f)),
+ (a = i[6]) && n.push(new o(a, s, p, v, h, d, f)),
+ (a = i[7]) && n.push(new o(a, h, p, v, l, d, f))
}
r.push(t)
}
@@ -23970,17 +37859,17 @@
return arguments.length ? ((this._z = e), this) : this._z
})
},
- 54: function (e, t, n) {
+ 60054: function (e, t, n) {
'use strict'
function r(e, t, n, r) {
if (isNaN(t) || isNaN(n)) return e
- var i,
- o,
+ var o,
+ i,
a,
s,
u,
- l,
c,
+ l,
d,
f,
h = e._root,
@@ -23992,44 +37881,44 @@
if (!h) return (e._root = p), e
for (; h.length; )
if (
- ((l = t >= (o = (v + g) / 2)) ? (v = o) : (g = o),
- (c = n >= (a = (m + y) / 2)) ? (m = a) : (y = a),
- (i = h),
- !(h = h[(d = (c << 1) | l)]))
+ ((c = t >= (i = (v + g) / 2)) ? (v = i) : (g = i),
+ (l = n >= (a = (m + y) / 2)) ? (m = a) : (y = a),
+ (o = h),
+ !(h = h[(d = (l << 1) | c)]))
)
- return (i[d] = p), e
+ return (o[d] = p), e
if (((s = +e._x.call(null, h.data)), (u = +e._y.call(null, h.data)), t === s && n === u))
- return (p.next = h), i ? (i[d] = p) : (e._root = p), e
+ return (p.next = h), o ? (o[d] = p) : (e._root = p), e
do {
- ;(i = i ? (i[d] = new Array(4)) : (e._root = new Array(4))),
- (l = t >= (o = (v + g) / 2)) ? (v = o) : (g = o),
- (c = n >= (a = (m + y) / 2)) ? (m = a) : (y = a)
- } while ((d = (c << 1) | l) === (f = ((u >= a) << 1) | (s >= o)))
- return (i[f] = h), (i[d] = p), e
+ ;(o = o ? (o[d] = new Array(4)) : (e._root = new Array(4))),
+ (c = t >= (i = (v + g) / 2)) ? (v = i) : (g = i),
+ (l = n >= (a = (m + y) / 2)) ? (m = a) : (y = a)
+ } while ((d = (l << 1) | c) === (f = ((u >= a) << 1) | (s >= i)))
+ return (o[f] = h), (o[d] = p), e
}
- function i(e, t, n, r, i) {
- ;(this.node = e), (this.x0 = t), (this.y0 = n), (this.x1 = r), (this.y1 = i)
+ function o(e, t, n, r, o) {
+ ;(this.node = e), (this.x0 = t), (this.y0 = n), (this.x1 = r), (this.y1 = o)
}
- function o(e) {
+ function i(e) {
return e[0]
}
function a(e) {
return e[1]
}
function s(e, t, n) {
- var r = new u(null == t ? o : t, null == n ? a : n, NaN, NaN, NaN, NaN)
+ var r = new u(null == t ? i : t, null == n ? a : n, NaN, NaN, NaN, NaN)
return null == e ? r : r.addAll(e)
}
- function u(e, t, n, r, i, o) {
+ function u(e, t, n, r, o, i) {
;(this._x = e),
(this._y = t),
(this._x0 = n),
(this._y0 = r),
- (this._x1 = i),
- (this._y1 = o),
+ (this._x1 = o),
+ (this._y1 = i),
(this._root = void 0)
}
- function l(e) {
+ function c(e) {
for (var t = { data: e.data }, n = t; (e = e.next); ) n = n.next = { data: e.data }
return t
}
@@ -24038,81 +37927,81 @@
return s
},
})
- var c = (s.prototype = u.prototype)
- ;(c.copy = function () {
+ var l = (s.prototype = u.prototype)
+ ;(l.copy = function () {
var e,
t,
n = new u(this._x, this._y, this._x0, this._y0, this._x1, this._y1),
r = this._root
if (!r) return n
- if (!r.length) return (n._root = l(r)), n
+ if (!r.length) return (n._root = c(r)), n
for (e = [{ source: r, target: (n._root = new Array(4)) }]; (r = e.pop()); )
- for (var i = 0; i < 4; ++i)
- (t = r.source[i]) &&
+ for (var o = 0; o < 4; ++o)
+ (t = r.source[o]) &&
(t.length
- ? e.push({ source: t, target: (r.target[i] = new Array(4)) })
- : (r.target[i] = l(t)))
+ ? e.push({ source: t, target: (r.target[o] = new Array(4)) })
+ : (r.target[o] = c(t)))
return n
}),
- (c.add = function (e) {
+ (l.add = function (e) {
var t = +this._x.call(null, e),
n = +this._y.call(null, e)
return r(this.cover(t, n), t, n, e)
}),
- (c.addAll = function (e) {
+ (l.addAll = function (e) {
var t,
n,
- i,
o,
+ i,
a = e.length,
s = new Array(a),
u = new Array(a),
- l = 1 / 0,
c = 1 / 0,
+ l = 1 / 0,
d = -1 / 0,
f = -1 / 0
for (n = 0; n < a; ++n)
- isNaN((i = +this._x.call(null, (t = e[n])))) ||
- isNaN((o = +this._y.call(null, t))) ||
- ((s[n] = i),
- (u[n] = o),
- i < l && (l = i),
- i > d && (d = i),
+ isNaN((o = +this._x.call(null, (t = e[n])))) ||
+ isNaN((i = +this._y.call(null, t))) ||
+ ((s[n] = o),
+ (u[n] = i),
o < c && (c = o),
- o > f && (f = o))
- if (l > d || c > f) return this
- for (this.cover(l, c).cover(d, f), n = 0; n < a; ++n) r(this, s[n], u[n], e[n])
+ o > d && (d = o),
+ i < l && (l = i),
+ i > f && (f = i))
+ if (c > d || l > f) return this
+ for (this.cover(c, l).cover(d, f), n = 0; n < a; ++n) r(this, s[n], u[n], e[n])
return this
}),
- (c.cover = function (e, t) {
+ (l.cover = function (e, t) {
if (isNaN((e = +e)) || isNaN((t = +t))) return this
var n = this._x0,
r = this._y0,
- i = this._x1,
- o = this._y1
- if (isNaN(n)) (i = (n = Math.floor(e)) + 1), (o = (r = Math.floor(t)) + 1)
+ o = this._x1,
+ i = this._y1
+ if (isNaN(n)) (o = (n = Math.floor(e)) + 1), (i = (r = Math.floor(t)) + 1)
else {
- for (var a, s, u = i - n || 1, l = this._root; n > e || e >= i || r > t || t >= o; )
+ for (var a, s, u = o - n || 1, c = this._root; n > e || e >= o || r > t || t >= i; )
switch (
- ((s = ((t < r) << 1) | (e < n)), ((a = new Array(4))[s] = l), (l = a), (u *= 2), s)
+ ((s = ((t < r) << 1) | (e < n)), ((a = new Array(4))[s] = c), (c = a), (u *= 2), s)
) {
case 0:
- ;(i = n + u), (o = r + u)
+ ;(o = n + u), (i = r + u)
break
case 1:
- ;(n = i - u), (o = r + u)
+ ;(n = o - u), (i = r + u)
break
case 2:
- ;(i = n + u), (r = o - u)
+ ;(o = n + u), (r = i - u)
break
case 3:
- ;(n = i - u), (r = o - u)
+ ;(n = o - u), (r = i - u)
}
- this._root && this._root.length && (this._root = l)
+ this._root && this._root.length && (this._root = c)
}
- return (this._x0 = n), (this._y0 = r), (this._x1 = i), (this._y1 = o), this
+ return (this._x0 = n), (this._y0 = r), (this._x1 = o), (this._y1 = i), this
}),
- (c.data = function () {
+ (l.data = function () {
var e = []
return (
this.visit(function (t) {
@@ -24124,7 +38013,7 @@
e
)
}),
- (c.extent = function (e) {
+ (l.extent = function (e) {
return arguments.length
? this.cover(+e[0][0], +e[0][1]).cover(+e[1][0], +e[1][1])
: isNaN(this._x0)
@@ -24134,14 +38023,14 @@
[this._x1, this._y1],
]
}),
- (c.find = function (e, t, n) {
+ (l.find = function (e, t, n) {
var r,
- o,
+ i,
a,
s,
u,
- l,
c,
+ l,
d = this._x0,
f = this._y0,
h = this._x1,
@@ -24149,59 +38038,59 @@
v = [],
m = this._root
for (
- m && v.push(new i(m, d, f, h, p)),
+ m && v.push(new o(m, d, f, h, p)),
null == n
? (n = 1 / 0)
: ((d = e - n), (f = t - n), (h = e + n), (p = t + n), (n *= n));
- (l = v.pop());
+ (c = v.pop());
)
if (
!(
- !(m = l.node) ||
- (o = l.x0) > h ||
- (a = l.y0) > p ||
- (s = l.x1) < d ||
- (u = l.y1) < f
+ !(m = c.node) ||
+ (i = c.x0) > h ||
+ (a = c.y0) > p ||
+ (s = c.x1) < d ||
+ (u = c.y1) < f
)
)
if (m.length) {
- var g = (o + s) / 2,
+ var g = (i + s) / 2,
y = (a + u) / 2
v.push(
- new i(m[3], g, y, s, u),
- new i(m[2], o, y, g, u),
- new i(m[1], g, a, s, y),
- new i(m[0], o, a, g, y),
+ new o(m[3], g, y, s, u),
+ new o(m[2], i, y, g, u),
+ new o(m[1], g, a, s, y),
+ new o(m[0], i, a, g, y),
),
- (c = ((t >= y) << 1) | (e >= g)) &&
- ((l = v[v.length - 1]),
- (v[v.length - 1] = v[v.length - 1 - c]),
- (v[v.length - 1 - c] = l))
+ (l = ((t >= y) << 1) | (e >= g)) &&
+ ((c = v[v.length - 1]),
+ (v[v.length - 1] = v[v.length - 1 - l]),
+ (v[v.length - 1 - l] = c))
} else {
var b = e - +this._x.call(null, m.data),
w = t - +this._y.call(null, m.data),
- x = b * b + w * w
- if (x < n) {
- var E = Math.sqrt((n = x))
- ;(d = e - E), (f = t - E), (h = e + E), (p = t + E), (r = m.data)
+ _ = b * b + w * w
+ if (_ < n) {
+ var x = Math.sqrt((n = _))
+ ;(d = e - x), (f = t - x), (h = e + x), (p = t + x), (r = m.data)
}
}
return r
}),
- (c.remove = function (e) {
- if (isNaN((o = +this._x.call(null, e))) || isNaN((a = +this._y.call(null, e))))
+ (l.remove = function (e) {
+ if (isNaN((i = +this._x.call(null, e))) || isNaN((a = +this._y.call(null, e))))
return this
var t,
n,
r,
- i,
o,
+ i,
a,
s,
u,
- l,
c,
+ l,
d,
f,
h = this._root,
@@ -24213,10 +38102,10 @@
if (h.length)
for (;;) {
if (
- ((l = o >= (s = (p + m) / 2)) ? (p = s) : (m = s),
- (c = a >= (u = (v + g) / 2)) ? (v = u) : (g = u),
+ ((c = i >= (s = (p + m) / 2)) ? (p = s) : (m = s),
+ (l = a >= (u = (v + g) / 2)) ? (v = u) : (g = u),
(t = h),
- !(h = h[(d = (c << 1) | l)]))
+ !(h = h[(d = (l << 1) | c)]))
)
return this
if (!h.length) break
@@ -24224,27 +38113,27 @@
}
for (; h.data !== e; ) if (((r = h), !(h = h.next))) return this
return (
- (i = h.next) && delete h.next,
+ (o = h.next) && delete h.next,
r
- ? (i ? (r.next = i) : delete r.next, this)
+ ? (o ? (r.next = o) : delete r.next, this)
: t
- ? (i ? (t[d] = i) : delete t[d],
+ ? (o ? (t[d] = o) : delete t[d],
(h = t[0] || t[1] || t[2] || t[3]) &&
h === (t[3] || t[2] || t[1] || t[0]) &&
!h.length &&
(n ? (n[f] = h) : (this._root = h)),
this)
- : ((this._root = i), this)
+ : ((this._root = o), this)
)
}),
- (c.removeAll = function (e) {
+ (l.removeAll = function (e) {
for (var t = 0, n = e.length; t < n; ++t) this.remove(e[t])
return this
}),
- (c.root = function () {
+ (l.root = function () {
return this._root
}),
- (c.size = function () {
+ (l.size = function () {
var e = 0
return (
this.visit(function (t) {
@@ -24256,62 +38145,62 @@
e
)
}),
- (c.visit = function (e) {
+ (l.visit = function (e) {
var t,
n,
r,
- o,
+ i,
a,
s,
u = [],
- l = this._root
- for (l && u.push(new i(l, this._x0, this._y0, this._x1, this._y1)); (t = u.pop()); )
- if (!e((l = t.node), (r = t.x0), (o = t.y0), (a = t.x1), (s = t.y1)) && l.length) {
- var c = (r + a) / 2,
- d = (o + s) / 2
- ;(n = l[3]) && u.push(new i(n, c, d, a, s)),
- (n = l[2]) && u.push(new i(n, r, d, c, s)),
- (n = l[1]) && u.push(new i(n, c, o, a, d)),
- (n = l[0]) && u.push(new i(n, r, o, c, d))
+ c = this._root
+ for (c && u.push(new o(c, this._x0, this._y0, this._x1, this._y1)); (t = u.pop()); )
+ if (!e((c = t.node), (r = t.x0), (i = t.y0), (a = t.x1), (s = t.y1)) && c.length) {
+ var l = (r + a) / 2,
+ d = (i + s) / 2
+ ;(n = c[3]) && u.push(new o(n, l, d, a, s)),
+ (n = c[2]) && u.push(new o(n, r, d, l, s)),
+ (n = c[1]) && u.push(new o(n, l, i, a, d)),
+ (n = c[0]) && u.push(new o(n, r, i, l, d))
}
return this
}),
- (c.visitAfter = function (e) {
+ (l.visitAfter = function (e) {
var t,
n = [],
r = []
for (
- this._root && n.push(new i(this._root, this._x0, this._y0, this._x1, this._y1));
+ this._root && n.push(new o(this._root, this._x0, this._y0, this._x1, this._y1));
(t = n.pop());
) {
- var o = t.node
- if (o.length) {
+ var i = t.node
+ if (i.length) {
var a,
s = t.x0,
u = t.y0,
- l = t.x1,
- c = t.y1,
- d = (s + l) / 2,
- f = (u + c) / 2
- ;(a = o[0]) && n.push(new i(a, s, u, d, f)),
- (a = o[1]) && n.push(new i(a, d, u, l, f)),
- (a = o[2]) && n.push(new i(a, s, f, d, c)),
- (a = o[3]) && n.push(new i(a, d, f, l, c))
+ c = t.x1,
+ l = t.y1,
+ d = (s + c) / 2,
+ f = (u + l) / 2
+ ;(a = i[0]) && n.push(new o(a, s, u, d, f)),
+ (a = i[1]) && n.push(new o(a, d, u, c, f)),
+ (a = i[2]) && n.push(new o(a, s, f, d, l)),
+ (a = i[3]) && n.push(new o(a, d, f, c, l))
}
r.push(t)
}
for (; (t = r.pop()); ) e(t.node, t.x0, t.y0, t.x1, t.y1)
return this
}),
- (c.x = function (e) {
+ (l.x = function (e) {
return arguments.length ? ((this._x = e), this) : this._x
}),
- (c.y = function (e) {
+ (l.y = function (e) {
return arguments.length ? ((this._y = e), this) : this._y
})
},
- 2816: function (e, t, n) {
+ 47646: function (e, t, n) {
'use strict'
n.d(t, {
Z: function () {
@@ -24324,7 +38213,7 @@
return n
})('a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928')
},
- 2462: function (e, t, n) {
+ 72462: function (e, t, n) {
'use strict'
n.d(t, {
Z: function () {
@@ -24341,24 +38230,24 @@
for (const [n, r] of e) this.set(n, r)
}
get(e) {
- return super.get(i(this, e))
+ return super.get(o(this, e))
}
has(e) {
- return super.has(i(this, e))
+ return super.has(o(this, e))
}
set(e, t) {
- return super.set(o(this, e), t)
+ return super.set(i(this, e), t)
}
delete(e) {
return super.delete(a(this, e))
}
}
Set
- function i({ _intern: e, _key: t }, n) {
+ function o({ _intern: e, _key: t }, n) {
const r = t(n)
return e.has(r) ? e.get(r) : n
}
- function o({ _intern: e, _key: t }, n) {
+ function i({ _intern: e, _key: t }, n) {
const r = t(n)
return e.has(r) ? e.get(r) : (e.set(r, n), n)
}
@@ -24381,41 +38270,41 @@
}
return this
}
- function l(e, t) {
+ function c(e, t) {
var n
if ('undefined' === typeof Symbol || null == e[Symbol.iterator]) {
if (
Array.isArray(e) ||
(n = (function (e, t) {
if (!e) return
- if ('string' === typeof e) return c(e, t)
+ if ('string' === typeof e) return l(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
'Object' === n && e.constructor && (n = e.constructor.name)
if ('Map' === n || 'Set' === n) return Array.from(e)
if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return c(e, t)
+ return l(e, t)
})(e)) ||
(t && e && 'number' === typeof e.length)
) {
n && (e = n)
var r = 0,
- i = function () {}
+ o = function () {}
return {
- s: i,
+ s: o,
n: function () {
return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] }
},
e: function (e) {
throw e
},
- f: i,
+ f: o,
}
}
throw new TypeError(
'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
)
}
- var o,
+ var i,
a = !0,
s = !1
return {
@@ -24427,18 +38316,18 @@
return (a = e.done), e
},
e: function (e) {
- ;(s = !0), (o = e)
+ ;(s = !0), (i = e)
},
f: function () {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw o
+ if (s) throw i
}
},
}
}
- function c(e, t) {
+ function l(e, t) {
;(null == t || t > e.length) && (t = e.length)
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
@@ -24448,24 +38337,24 @@
var e = new r(),
t = [],
n = [],
- i = d
- function o(r) {
- var o = e.get(r)
- if (void 0 === o) {
- if (i !== d) return i
- e.set(r, (o = t.push(r) - 1))
+ o = d
+ function i(r) {
+ var i = e.get(r)
+ if (void 0 === i) {
+ if (o !== d) return o
+ e.set(r, (i = t.push(r) - 1))
}
- return n[o % n.length]
+ return n[i % n.length]
}
return (
- (o.domain = function (n) {
+ (i.domain = function (n) {
if (!arguments.length) return t.slice()
;(t = []), (e = new r())
- var i,
- a = l(n)
+ var o,
+ a = c(n)
try {
- for (a.s(); !(i = a.n()).done; ) {
- var s = i.value
+ for (a.s(); !(o = a.n()).done; ) {
+ var s = o.value
e.has(s) || e.set(s, t.push(s) - 1)
}
} catch (u) {
@@ -24473,19 +38362,19 @@
} finally {
a.f()
}
- return o
+ return i
}),
- (o.range = function (e) {
- return arguments.length ? ((n = Array.from(e)), o) : n.slice()
+ (i.range = function (e) {
+ return arguments.length ? ((n = Array.from(e)), i) : n.slice()
}),
- (o.unknown = function (e) {
- return arguments.length ? ((i = e), o) : i
+ (i.unknown = function (e) {
+ return arguments.length ? ((o = e), i) : o
}),
- (o.copy = function () {
- return f(t, n).unknown(i)
+ (i.copy = function () {
+ return f(t, n).unknown(o)
}),
- u.apply(o, arguments),
- o
+ u.apply(i, arguments),
+ i
)
}
},
@@ -24503,13 +38392,13 @@
},
})
var r,
- i,
- o = 0,
+ o,
+ i = 0,
a = 0,
s = 0,
u = 0,
- l = 0,
c = 0,
+ l = 0,
d = 'object' === typeof performance && performance.now ? performance : Date,
f = window.requestAnimationFrame
? window.requestAnimationFrame.bind(window)
@@ -24517,10 +38406,10 @@
setTimeout(e, 17)
}
function h() {
- return l || (f(p), (l = d.now() + c))
+ return c || (f(p), (c = d.now() + l))
}
function p() {
- l = 0
+ c = 0
}
function v() {
this._call = this._time = this._next = null
@@ -24530,47 +38419,47 @@
return r.restart(e, t, n), r
}
function g() {
- ;(l = (u = d.now()) + c), (o = a = 0)
+ ;(c = (u = d.now()) + l), (i = a = 0)
try {
!(function () {
- h(), ++o
- for (var e, t = r; t; ) (e = l - t._time) >= 0 && t._call.call(void 0, e), (t = t._next)
- --o
+ h(), ++i
+ for (var e, t = r; t; ) (e = c - t._time) >= 0 && t._call.call(void 0, e), (t = t._next)
+ --i
})()
} finally {
- ;(o = 0),
+ ;(i = 0),
(function () {
var e,
t,
n = r,
- o = 1 / 0
+ i = 1 / 0
for (; n; )
n._call
- ? (o > n._time && (o = n._time), (e = n), (n = n._next))
+ ? (i > n._time && (i = n._time), (e = n), (n = n._next))
: ((t = n._next), (n._next = null), (n = e ? (e._next = t) : (r = t)))
- ;(i = e), b(o)
+ ;(o = e), b(i)
})(),
- (l = 0)
+ (c = 0)
}
}
function y() {
var e = d.now(),
t = e - u
- t > 1e3 && ((c -= t), (u = e))
+ t > 1e3 && ((l -= t), (u = e))
}
function b(e) {
- o ||
+ i ||
(a && (a = clearTimeout(a)),
- e - l > 24
- ? (e < 1 / 0 && (a = setTimeout(g, e - d.now() - c)), s && (s = clearInterval(s)))
- : (s || ((u = d.now()), (s = setInterval(y, 1e3))), (o = 1), f(g)))
+ e - c > 24
+ ? (e < 1 / 0 && (a = setTimeout(g, e - d.now() - l)), s && (s = clearInterval(s)))
+ : (s || ((u = d.now()), (s = setInterval(y, 1e3))), (i = 1), f(g)))
}
v.prototype = m.prototype = {
constructor: v,
restart: function (e, t, n) {
if ('function' !== typeof e) throw new TypeError('callback is not a function')
;(n = (null == n ? h() : +n) + (null == t ? 0 : +t)),
- this._next || i === this || (i ? (i._next = this) : (r = this), (i = this)),
+ this._next || o === this || (o ? (o._next = this) : (r = this), (o = this)),
(this._call = e),
(this._time = n),
b()
@@ -24580,7 +38469,178 @@
},
}
},
- 4245: function (e) {
+ 75093: function (e, t, n) {
+ 'use strict'
+ function r(e, t) {
+ ;(null == t || t > e.length) && (t = e.length)
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
+ return r
+ }
+ n.d(t, {
+ Z: function () {
+ return r
+ },
+ })
+ },
+ 92447: function (e, t, n) {
+ 'use strict'
+ function r(e, t, n, r, o, i, a) {
+ try {
+ var s = e[i](a),
+ u = s.value
+ } catch (c) {
+ return void n(c)
+ }
+ s.done ? t(u) : Promise.resolve(u).then(r, o)
+ }
+ function o(e) {
+ return function () {
+ var t = this,
+ n = arguments
+ return new Promise(function (o, i) {
+ var a = e.apply(t, n)
+ function s(e) {
+ r(a, o, i, s, u, 'next', e)
+ }
+ function u(e) {
+ r(a, o, i, s, u, 'throw', e)
+ }
+ s(void 0)
+ })
+ }
+ }
+ n.d(t, {
+ Z: function () {
+ return o
+ },
+ })
+ },
+ 38347: function (e, t, n) {
+ 'use strict'
+ function r(e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = (function (e, t) {
+ if (null == e) return {}
+ var n,
+ r,
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
+ })(e, t)
+ if (Object.getOwnPropertySymbols) {
+ var i = Object.getOwnPropertySymbols(e)
+ for (r = 0; r < i.length; r++)
+ (n = i[r]),
+ t.indexOf(n) >= 0 ||
+ (Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]))
+ }
+ return o
+ }
+ n.d(t, {
+ Z: function () {
+ return r
+ },
+ })
+ },
+ 64121: function (e, t, n) {
+ 'use strict'
+ n.d(t, {
+ Z: function () {
+ return o
+ },
+ })
+ var r = n(40355)
+ function o(e, t) {
+ return (
+ (function (e) {
+ if (Array.isArray(e)) return e
+ })(e) ||
+ (function (e, t) {
+ if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) {
+ var n = [],
+ r = !0,
+ o = !1,
+ i = void 0
+ try {
+ for (
+ var a, s = e[Symbol.iterator]();
+ !(r = (a = s.next()).done) && (n.push(a.value), !t || n.length !== t);
+ r = !0
+ );
+ } catch (u) {
+ ;(o = !0), (i = u)
+ } finally {
+ try {
+ r || null == s.return || s.return()
+ } finally {
+ if (o) throw i
+ }
+ }
+ return n
+ }
+ })(e, t) ||
+ (0, r.Z)(e, t) ||
+ (function () {
+ throw new TypeError(
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
+ )
+ })()
+ )
+ }
+ },
+ 59999: function (e, t, n) {
+ 'use strict'
+ n.d(t, {
+ Z: function () {
+ return i
+ },
+ })
+ var r = n(75093)
+ var o = n(40355)
+ function i(e) {
+ return (
+ (function (e) {
+ if (Array.isArray(e)) return (0, r.Z)(e)
+ })(e) ||
+ (function (e) {
+ if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e)
+ })(e) ||
+ (0, o.Z)(e) ||
+ (function () {
+ throw new TypeError(
+ 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
+ )
+ })()
+ )
+ }
+ },
+ 40355: function (e, t, n) {
+ 'use strict'
+ n.d(t, {
+ Z: function () {
+ return o
+ },
+ })
+ var r = n(75093)
+ function o(e, t) {
+ if (e) {
+ if ('string' === typeof e) return (0, r.Z)(e, t)
+ var n = Object.prototype.toString.call(e).slice(8, -1)
+ return (
+ 'Object' === n && e.constructor && (n = e.constructor.name),
+ 'Map' === n || 'Set' === n
+ ? Array.from(e)
+ : 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
+ ? (0, r.Z)(e, t)
+ : void 0
+ )
+ }
+ }
+ },
+ 84245: function (e) {
e.exports = function (e) {
!(function (e) {
if (!e) throw new Error('Eventify cannot use falsy object as events subject')
@@ -24593,26 +38653,26 @@
var t = (function (e) {
var t = Object.create(null)
return {
- on: function (n, r, i) {
+ on: function (n, r, o) {
if ('function' !== typeof r) throw new Error('callback is expected to be a function')
- var o = t[n]
- return o || (o = t[n] = []), o.push({ callback: r, ctx: i }), e
+ var i = t[n]
+ return i || (i = t[n] = []), i.push({ callback: r, ctx: o }), e
},
off: function (n, r) {
if ('undefined' === typeof n) return (t = Object.create(null)), e
if (t[n])
if ('function' !== typeof r) delete t[n]
else
- for (var i = t[n], o = 0; o < i.length; ++o) i[o].callback === r && i.splice(o, 1)
+ for (var o = t[n], i = 0; i < o.length; ++i) o[i].callback === r && o.splice(i, 1)
return e
},
fire: function (n) {
var r,
- i = t[n]
- if (!i) return e
+ o = t[n]
+ if (!o) return e
arguments.length > 1 && (r = Array.prototype.splice.call(arguments, 1))
- for (var o = 0; o < i.length; ++o) {
- var a = i[o]
+ for (var i = 0; i < o.length; ++i) {
+ var a = o[i]
a.callback.apply(a.ctx, r)
}
return e
@@ -24622,10 +38682,10 @@
return (e.on = t.on), (e.off = t.off), (e.fire = t.fire), e
}
},
- 6505: function (e, t, n) {
+ 16505: function (e, t, n) {
;(e.exports = function (e, t) {
if (!e) throw new Error('Graph structure cannot be undefined')
- var o = ((t && t.createSimulator) || n(5818))(t)
+ var i = ((t && t.createSimulator) || n(45818))(t)
if (Array.isArray(t)) throw new Error('Physics settings is expected to be an object')
var a = function (t) {
var n = e.getLinks(t)
@@ -24634,28 +38694,28 @@
t && 'function' === typeof t.nodeMass && (a = t.nodeMass)
var s = new Map(),
u = {},
- l = 0,
- c = o.settings.springTransform || i
- ;(l = 0),
+ c = 0,
+ l = i.settings.springTransform || o
+ ;(c = 0),
e.forEachNode(function (e) {
- m(e.id), (l += 1)
+ m(e.id), (c += 1)
}),
e.forEachLink(y),
e.on('changed', v)
var d = !1,
f = {
step: function () {
- if (0 === l) return h(!0), !0
- var e = o.step()
+ if (0 === c) return h(!0), !0
+ var e = i.step()
;(f.lastMove = e), f.fire('step')
- var t = e / l <= 0.01
+ var t = e / c <= 0.01
return h(t), t
},
getNodePosition: function (e) {
- return x(e).pos
+ return _(e).pos
},
setNodePosition: function (e) {
- var t = x(e)
+ var t = _(e)
t.setPosition.apply(t, Array.prototype.slice.call(arguments, 1))
},
getLinkPosition: function (e) {
@@ -24663,14 +38723,14 @@
if (t) return { from: t.from.pos, to: t.to.pos }
},
getGraphRect: function () {
- return o.getBBox()
+ return i.getBBox()
},
forEachBody: p,
pinNode: function (e, t) {
- x(e.id).isPinned = !!t
+ _(e.id).isPinned = !!t
},
isNodePinned: function (e) {
- return x(e.id).isPinned
+ return _(e.id).isPinned
},
dispose: function () {
e.off('changed', v), f.fire('disposed')
@@ -24682,9 +38742,9 @@
var r
if (void 0 === n) r = 'object' !== typeof t ? t : t.id
else {
- var i = e.hasLink(t, n)
- if (!i) return
- r = i.id
+ var o = e.hasLink(t, n)
+ if (!o) return
+ r = o.id
}
return u[r]
},
@@ -24698,7 +38758,7 @@
Math.sqrt(e * e + t * t)
)
},
- simulator: o,
+ simulator: i,
graph: e,
lastMove: 0,
}
@@ -24717,28 +38777,28 @@
? (r.node && m(r.node.id), r.link && y(r.link))
: 'remove' === r.changeType && (r.node && g(r.node), r.link && b(r.link))
}
- l = e.getNodesCount()
+ c = e.getNodesCount()
}
function m(t) {
var n = s.get(t)
if (!n) {
var r = e.getNode(t)
if (!r) throw new Error('initBody() was called with unknown node id')
- var i = r.position
- if (!i) {
+ var o = r.position
+ if (!o) {
var a = (function (e) {
var t = []
if (!e.links) return t
for (var n = Math.min(e.links.length, 2), r = 0; r < n; ++r) {
- var i = e.links[r],
- o = i.fromId !== e.id ? s.get(i.fromId) : s.get(i.toId)
- o && o.pos && t.push(o)
+ var o = e.links[r],
+ i = o.fromId !== e.id ? s.get(o.fromId) : s.get(o.toId)
+ i && i.pos && t.push(i)
}
return t
})(r)
- i = o.getBestNewBodyPosition(a)
+ o = i.getBestNewBodyPosition(a)
}
- ;((n = o.addBodyAt(i)).id = t),
+ ;((n = i.addBodyAt(o)).id = t),
s.set(t, n),
w(t),
(function (e) {
@@ -24749,21 +38809,21 @@
function g(e) {
var t = e.id,
n = s.get(t)
- n && (s.delete(t), o.removeBody(n))
+ n && (s.delete(t), i.removeBody(n))
}
function y(e) {
w(e.fromId), w(e.toId)
var t = s.get(e.fromId),
n = s.get(e.toId),
- r = o.addSpring(t, n, e.length)
- c(e, r), (u[e.id] = r)
+ r = i.addSpring(t, n, e.length)
+ l(e, r), (u[e.id] = r)
}
function b(t) {
var n = u[t.id]
if (n) {
var r = e.getNode(t.fromId),
- i = e.getNode(t.toId)
- r && w(r.id), i && w(i.id), delete u[t.id], o.removeSpring(n)
+ o = e.getNode(t.toId)
+ r && w(r.id), o && w(o.id), delete u[t.id], i.removeSpring(n)
}
}
function w(e) {
@@ -24771,40 +38831,40 @@
if (((t.mass = a(e)), Number.isNaN(t.mass)))
throw new Error('Node mass should be a number')
}
- function x(e) {
+ function _(e) {
var t = s.get(e)
return t || (m(e), (t = s.get(e))), t
}
}),
- (e.exports.simulator = n(5818))
- var r = n(4245)
- function i() {}
+ (e.exports.simulator = n(45818))
+ var r = n(84245)
+ function o() {}
},
- 5189: function (e, t, n) {
- const r = n(6422)
+ 15189: function (e, t, n) {
+ const r = n(16422)
e.exports = function (e) {
return function (t, n) {
- let i = (n && n.indent) || 0,
- o = n && void 0 !== n.join ? n.join : '\n',
- a = Array(i + 1).join(' '),
+ let o = (n && n.indent) || 0,
+ i = n && void 0 !== n.join ? n.join : '\n',
+ a = Array(o + 1).join(' '),
s = []
for (let u = 0; u < e; ++u) {
let e = r(u),
n = 0 === u ? '' : a
s.push(n + t.replace(/{var}/g, e))
}
- return s.join(o)
+ return s.join(i)
}
}
},
- 891: function (e, t, n) {
+ 30891: function (e, t, n) {
;(e.exports = function (e) {
- let t = i(e)
+ let t = o(e)
return new Function('bodies', 'settings', 'random', t)
}),
- (e.exports.generateFunctionBody = i)
- const r = n(5189)
- function i(e) {
+ (e.exports.generateFunctionBody = o)
+ const r = n(15189)
+ function o(e) {
let t = r(e)
return `\n var boundingBox = {\n ${t('min_{var}: 0, max_{var}: 0,', {
indent: 4,
@@ -24842,11 +38902,11 @@
}
},
6410: function (e, t, n) {
- const r = n(5189)
- function i(e, t) {
- return `\n${a(e, t)}\n${o(e)}\nreturn {Body: Body, Vector: Vector};\n`
+ const r = n(15189)
+ function o(e, t) {
+ return `\n${a(e, t)}\n${i(e)}\nreturn {Body: Body, Vector: Vector};\n`
}
- function o(e) {
+ function i(e) {
let t = r(e),
n = t('{var}', { join: ', ' })
return `\nfunction Body(${n}) {\n this.isPinned = false;\n this.pos = new Vector(${n});\n this.force = new Vector();\n this.velocity = new Vector();\n this.mass = 1;\n\n this.springCount = 0;\n this.springLength = 0;\n}\n\nBody.prototype.reset = function() {\n this.force.reset();\n this.springCount = 0;\n this.springLength = 0;\n}\n\nBody.prototype.setPosition = function (${n}) {\n ${t(
@@ -24856,15 +38916,15 @@
}
function a(e, t) {
let n = r(e),
- i = ''
+ o = ''
return (
t &&
- (i = `${n(
+ (o = `${n(
"\n var v{var};\nObject.defineProperty(this, '{var}', {\n set: function(v) { \n if (!Number.isFinite(v)) throw new Error('Cannot set non-numbers to {var}');\n v{var} = v; \n },\n get: function() { return v{var}; }\n});",
)}`),
`function Vector(${n('{var}', {
join: ', ',
- })}) {\n ${i}\n if (typeof arguments[0] === 'object') {\n // could be another vector\n let v = arguments[0];\n ${n(
+ })}) {\n ${o}\n if (typeof arguments[0] === 'object') {\n // could be another vector\n let v = arguments[0];\n ${n(
'if (!Number.isFinite(v.{var})) throw new Error("Expected value is not a finite number at Vector constructor ({var})");',
{ indent: 4 },
)}\n ${n('this.{var} = v.{var};', { indent: 4 })}\n } else {\n ${n(
@@ -24876,17 +38936,17 @@
)
}
;(e.exports = function (e, t) {
- let n = i(e, t),
+ let n = o(e, t),
{ Body: r } = new Function(n)()
return r
}),
- (e.exports.generateCreateBodyFunctionBody = i),
+ (e.exports.generateCreateBodyFunctionBody = o),
(e.exports.getVectorCode = a),
- (e.exports.getBodyCode = o)
+ (e.exports.getBodyCode = i)
},
- 6647: function (e, t, n) {
- const r = n(5189)
- function i(e) {
+ 36647: function (e, t, n) {
+ const r = n(15189)
+ function o(e) {
return `\n if (!Number.isFinite(options.dragCoefficient)) throw new Error('dragCoefficient is not a finite number');\n\n return {\n update: function(body) {\n ${r(
e,
)('body.force.{var} -= options.dragCoefficient * body.velocity.{var};', {
@@ -24894,14 +38954,14 @@
})}\n }\n };\n`
}
;(e.exports = function (e) {
- let t = i(e)
+ let t = o(e)
return new Function('options', t)
}),
- (e.exports.generateCreateDragForceFunctionBody = i)
+ (e.exports.generateCreateDragForceFunctionBody = o)
},
- 4079: function (e, t, n) {
- const r = n(5189)
- function i(e) {
+ 34079: function (e, t, n) {
+ const r = n(15189)
+ function o(e) {
let t = r(e)
return `\n if (!Number.isFinite(options.springCoefficient)) throw new Error('Spring coefficient is not a number');\n if (!Number.isFinite(options.springLength)) throw new Error('Spring length is not a number');\n\n return {\n /**\n * Updates forces acting on a spring\n */\n update: function (spring) {\n var body1 = spring.from;\n var body2 = spring.to;\n var length = spring.length < 0 ? options.springLength : spring.length;\n ${t(
'var d{var} = body2.pos.{var} - body1.pos.{var};',
@@ -24921,14 +38981,14 @@
)};\n body2.springCount += 1;\n body2.springLength += r;\n }\n };\n`
}
;(e.exports = function (e) {
- let t = i(e)
+ let t = o(e)
return new Function('options', 'random', t)
}),
- (e.exports.generateCreateSpringForceFunctionBody = i)
+ (e.exports.generateCreateSpringForceFunctionBody = o)
},
- 1763: function (e, t, n) {
- const r = n(5189)
- function i(e) {
+ 51763: function (e, t, n) {
+ const r = n(15189)
+ function o(e) {
let t = r(e)
return `\n var length = bodies.length;\n if (length === 0) return 0;\n\n ${t(
'var d{var} = 0, t{var} = 0;',
@@ -24951,18 +39011,18 @@
)})/length;\n`
}
;(e.exports = function (e) {
- let t = i(e)
+ let t = o(e)
return new Function('bodies', 'timeStep', 'adaptiveTimeStepWeight', t)
}),
- (e.exports.generateIntegratorFunctionBody = i)
+ (e.exports.generateIntegratorFunctionBody = o)
},
1584: function (e, t, n) {
- const r = n(5189),
- i = n(6422)
- function o(e) {
+ const r = n(15189),
+ o = n(16422)
+ function i(e) {
let t = r(e),
n = Math.pow(2, e)
- return `\n${c()}\n${l(e)}\n${a(e)}\n${u(e)}\n${s(
+ return `\n${l()}\n${c(e)}\n${a(e)}\n${u(e)}\n${s(
e,
)}\n\nfunction createQuadTree(options, random) {\n options = options || {};\n options.gravity = typeof options.gravity === 'number' ? options.gravity : -1;\n options.theta = typeof options.theta === 'number' ? options.theta : 0.8;\n\n var gravity = options.gravity;\n var updateQueue = [];\n var insertStack = new InsertStack();\n var theta = options.theta;\n\n var nodesCache = [];\n var currentInCache = 0;\n var root = newNode();\n\n return {\n insertBodies: insertBodies,\n\n /**\n * Gets root node if it is present\n */\n getRoot: function() {\n return root;\n },\n\n updateBodyForce: update,\n\n options: function(newOptions) {\n if (newOptions) {\n if (typeof newOptions.gravity === 'number') {\n gravity = newOptions.gravity;\n }\n if (typeof newOptions.theta === 'number') {\n theta = newOptions.theta;\n }\n\n return this;\n }\n\n return {\n gravity: gravity,\n theta: theta\n };\n }\n };\n\n function newNode() {\n // To avoid pressure on GC we reuse nodes.\n var node = nodesCache[currentInCache];\n if (node) {\n${(function (
e,
@@ -25002,9 +39062,9 @@
{ indent: 10 },
)}\n r = Math.sqrt(${t('d{var} * d{var}', {
join: ' + ',
- })});\n }\n // If s / r < \u03b8, treat this internal node as a single body, and calculate the\n // force it exerts on sourceBody, and add this amount to sourceBody's net force.\n if ((node.max_${i(
+ })});\n }\n // If s / r < \u03b8, treat this internal node as a single body, and calculate the\n // force it exerts on sourceBody, and add this amount to sourceBody's net force.\n if ((node.max_${o(
0,
- )} - node.min_${i(
+ )} - node.min_${o(
0,
)}) / r < theta) {\n // in the if statement above we consider node's width only\n // because the region was made into square during tree creation.\n // Thus there is no difference between using width or height.\n v = gravity * node.mass * sourceBody.mass / (r * r * r);\n ${t(
'f{var} += v * d{var};',
@@ -25051,11 +39111,11 @@
})}\n\n${(function (t) {
let n = [],
r = Array(t + 1).join(' ')
- for (let o = 0; o < e; ++o)
- n.push(r + `if (${i(o)} > max_${i(o)}) {`),
- n.push(r + ` quadIdx = quadIdx + ${Math.pow(2, o)};`),
- n.push(r + ` min_${i(o)} = max_${i(o)};`),
- n.push(r + ` max_${i(o)} = node.max_${i(o)};`),
+ for (let i = 0; i < e; ++i)
+ n.push(r + `if (${o(i)} > max_${o(i)}) {`),
+ n.push(r + ` quadIdx = quadIdx + ${Math.pow(2, i)};`),
+ n.push(r + ` min_${o(i)} = max_${o(i)};`),
+ n.push(r + ` max_${o(i)} = node.max_${o(i)};`),
n.push(r + '}')
return n.join('\n')
})(
@@ -25098,7 +39158,7 @@
return t.join('\n')
})()}\n return null;\n}`
}
- function l(e) {
+ function c(e) {
let t = r(e),
n = Math.pow(2, e)
return `\nfunction QuadNode() {\n // body stored inside this node. In quad tree only leaf nodes (by construction)\n // contain bodies:\n this.body = null;\n\n // Child nodes are stored in quads. Each quad is presented by number:\n // 0 | 1\n // -----\n // 2 | 3\n${(function (
@@ -25117,30 +39177,30 @@
{ indent: 2 },
)}\n}\n`
}
- function c() {
+ function l() {
return '\n/**\n * Our implementation of QuadTree is non-recursive to avoid GC hit\n * This data structure represent stack of elements\n * which we are trying to insert into quad tree.\n */\nfunction InsertStack () {\n this.stack = [];\n this.popIdx = 0;\n}\n\nInsertStack.prototype = {\n isEmpty: function() {\n return this.popIdx === 0;\n },\n push: function (node, body) {\n var item = this.stack[this.popIdx];\n if (!item) {\n // we are trying to avoid memory pressure: create new element\n // only when absolutely necessary\n this.stack[this.popIdx] = new InsertStackElement(node, body);\n } else {\n item.node = node;\n item.body = body;\n }\n ++this.popIdx;\n },\n pop: function () {\n if (this.popIdx > 0) {\n return this.stack[--this.popIdx];\n }\n },\n reset: function () {\n this.popIdx = 0;\n }\n};\n\nfunction InsertStackElement(node, body) {\n this.node = node; // QuadTree node\n this.body = body; // physical body which needs to be inserted to node\n}\n'
}
;(e.exports = function (e) {
- let t = o(e)
+ let t = i(e)
return new Function(t)()
}),
- (e.exports.generateQuadTreeFunctionBody = o),
- (e.exports.getInsertStackCode = c),
- (e.exports.getQuadNodeCode = l),
+ (e.exports.generateQuadTreeFunctionBody = i),
+ (e.exports.getInsertStackCode = l),
+ (e.exports.getQuadNodeCode = c),
(e.exports.isSamePosition = a),
(e.exports.getChildBodyCode = u),
(e.exports.setChildBodyCode = s)
},
- 6422: function (e) {
+ 16422: function (e) {
e.exports = function (e) {
return 0 === e ? 'x' : 1 === e ? 'y' : 2 === e ? 'z' : 'c' + (e + 1)
}
},
- 5818: function (e, t, n) {
+ 45818: function (e, t, n) {
e.exports = function (e) {
- var t = n(8403),
- d = n(5510),
- f = n(4245)
+ var t = n(68403),
+ d = n(35510),
+ f = n(84245)
if (e) {
if (void 0 !== e.springCoeff)
throw new Error('springCoeff was renamed to springCoefficient')
@@ -25157,18 +39217,18 @@
dimensions: 2,
debug: !1,
})
- var h = l[e.dimensions]
+ var h = c[e.dimensions]
if (!h) {
var p = e.dimensions
;(h = {
Body: r(p, e.debug),
- createQuadTree: i(p),
- createBounds: o(p),
+ createQuadTree: o(p),
+ createBounds: i(p),
createDragForce: a(p),
createSpringForce: s(p),
integrate: u(p),
}),
- (l[p] = h)
+ (c[p] = h)
}
var v = h.Body,
m = h.createQuadTree,
@@ -25176,68 +39236,68 @@
y = h.createDragForce,
b = h.createSpringForce,
w = h.integrate,
- x = n(8712).random(42),
- E = [],
+ _ = n(78712).random(42),
+ x = [],
k = [],
- _ = m(e, x),
- T = g(E, e, x),
- O = b(e, x),
+ E = m(e, _),
+ O = g(x, e, _),
+ T = b(e, _),
C = y(e),
- S = [],
- A = new Map(),
+ M = [],
+ S = new Map(),
P = 0
- j('nbody', function () {
- if (0 === E.length) return
- _.insertBodies(E)
- var e = E.length
+ A('nbody', function () {
+ if (0 === x.length) return
+ E.insertBodies(x)
+ var e = x.length
for (; e--; ) {
- var t = E[e]
- t.isPinned || (t.reset(), _.updateBodyForce(t), C.update(t))
+ var t = x[e]
+ t.isPinned || (t.reset(), E.updateBodyForce(t), C.update(t))
}
}),
- j('spring', function () {
+ A('spring', function () {
var e = k.length
- for (; e--; ) O.update(k[e])
+ for (; e--; ) T.update(k[e])
})
- var M = {
- bodies: E,
- quadTree: _,
+ var j = {
+ bodies: x,
+ quadTree: E,
springs: k,
settings: e,
- addForce: j,
+ addForce: A,
removeForce: function (e) {
- var t = S.indexOf(A.get(e))
+ var t = M.indexOf(S.get(e))
if (t < 0) return
- S.splice(t, 1), A.delete(e)
+ M.splice(t, 1), S.delete(e)
},
getForces: function () {
- return A
+ return S
},
step: function () {
- for (var t = 0; t < S.length; ++t) S[t](P)
- var n = w(E, e.timeStep, e.adaptiveTimeStepWeight)
+ for (var t = 0; t < M.length; ++t) M[t](P)
+ var n = w(x, e.timeStep, e.adaptiveTimeStepWeight)
return (P += 1), n
},
addBody: function (e) {
if (!e) throw new Error('Body is required')
- return E.push(e), e
+ return x.push(e), e
},
addBodyAt: function (e) {
if (!e) throw new Error('Body position is required')
var t = ((e) => new v(e))(e)
- return E.push(t), t
+ return x.push(t), t
},
removeBody: function (e) {
if (e) {
- var t = E.indexOf(e)
- if (!(t < 0)) return E.splice(t, 1), 0 === E.length && T.reset(), !0
+ var t = x.indexOf(e)
+ if (!(t < 0)) return x.splice(t, 1), 0 === x.length && O.reset(), !0
}
},
- addSpring: function (e, n, r, i) {
+ addSpring: function (e, n, r, o) {
if (!e || !n) throw new Error('Cannot add null spring to force simulator')
'number' !== typeof r && (r = -1)
- var o = new t(e, n, r, i >= 0 ? i : -1)
- return k.push(o), o
+ var i = new t(e, n, r, o >= 0 ? o : -1)
+ return k.push(i), i
},
getTotalMovement: function () {
return 0
@@ -25249,46 +39309,46 @@
}
},
getBestNewBodyPosition: function (e) {
- return T.getBestNewPosition(e)
+ return O.getBestNewPosition(e)
},
- getBBox: R,
- getBoundingBox: R,
+ getBBox: I,
+ getBoundingBox: I,
invalidateBBox: function () {
console.warn(
'invalidateBBox() is deprecated, bounds always recomputed on `getBBox()` call',
)
},
gravity: function (t) {
- return void 0 !== t ? ((e.gravity = t), _.options({ gravity: t }), this) : e.gravity
+ return void 0 !== t ? ((e.gravity = t), E.options({ gravity: t }), this) : e.gravity
},
theta: function (t) {
- return void 0 !== t ? ((e.theta = t), _.options({ theta: t }), this) : e.theta
+ return void 0 !== t ? ((e.theta = t), E.options({ theta: t }), this) : e.theta
},
- random: x,
+ random: _,
}
return (
(function (e, t) {
- for (var n in e) c(e, t, n)
- })(e, M),
- f(M),
- M
+ for (var n in e) l(e, t, n)
+ })(e, j),
+ f(j),
+ j
)
- function R() {
- return T.update(), T.box
+ function I() {
+ return O.update(), O.box
}
- function j(e, t) {
- if (A.has(e)) throw new Error('Force ' + e + ' is already added')
- A.set(e, t), S.push(t)
+ function A(e, t) {
+ if (S.has(e)) throw new Error('Force ' + e + ' is already added')
+ S.set(e, t), M.push(t)
}
}
var r = n(6410),
- i = n(1584),
- o = n(891),
- a = n(6647),
- s = n(4079),
- u = n(1763),
- l = {}
- function c(e, t, n) {
+ o = n(1584),
+ i = n(30891),
+ a = n(36647),
+ s = n(34079),
+ u = n(51763),
+ c = {}
+ function l(e, t, n) {
if (e.hasOwnProperty(n) && 'function' !== typeof t[n]) {
var r = Number.isFinite(e[n])
t[n] = r
@@ -25306,12 +39366,12 @@
}
}
},
- 8403: function (e) {
+ 68403: function (e) {
e.exports = function (e, t, n, r) {
;(this.from = e), (this.to = t), (this.length = n), (this.coefficient = r)
}
},
- 4736: function (e, t, n) {
+ 54736: function (e, t, n) {
e.exports = function (e) {
'uniqueLinkId' in (e = e || {}) &&
(console.warn(
@@ -25327,16 +39387,16 @@
)
var t = new Map(),
n = [],
- l = {},
- c = 0,
+ c = {},
+ l = 0,
d = e.multigraph
? function (e, t, n) {
var r = u(e, t),
- i = l.hasOwnProperty(r)
- if (i || O(e, t)) {
- i || (l[r] = 0)
- var o = '@' + ++l[r]
- r = u(e + o, t + o)
+ o = c.hasOwnProperty(r)
+ if (o || T(e, t)) {
+ o || (c[r] = 0)
+ var i = '@' + ++c[r]
+ r = u(e + i, t + i)
}
return new s(e, t, n, r)
}
@@ -25353,41 +39413,41 @@
addNode: w,
addLink: function (e, t, r) {
v()
- var i = x(e) || w(e),
- o = x(t) || w(t),
+ var o = _(e) || w(e),
+ i = _(t) || w(t),
s = d(e, t, r)
- n.push(s), a(i, s), e !== t && a(o, s)
+ n.push(s), a(o, s), e !== t && a(i, s)
return h(s, 'add'), m(), s
},
- removeLink: T,
- removeNode: E,
- getNode: x,
+ removeLink: O,
+ removeNode: x,
+ getNode: _,
getNodeCount: k,
- getLinkCount: _,
- getLinksCount: _,
+ getLinkCount: E,
+ getLinksCount: E,
getNodesCount: k,
getLinks: function (e) {
- var t = x(e)
+ var t = _(e)
return t ? t.links : null
},
forEachNode: P,
forEachLinkedNode: function (e, n, r) {
- var i = x(e)
- if (i && i.links && 'function' === typeof n)
+ var o = _(e)
+ if (o && o.links && 'function' === typeof n)
return r
? (function (e, n, r) {
- for (var i = 0; i < e.length; ++i) {
- var o = e[i]
- if (o.fromId === n && r(t.get(o.toId), o)) return !0
+ for (var o = 0; o < e.length; ++o) {
+ var i = e[o]
+ if (i.fromId === n && r(t.get(i.toId), i)) return !0
}
- })(i.links, e, n)
+ })(o.links, e, n)
: (function (e, n, r) {
- for (var i = 0; i < e.length; ++i) {
- var o = e[i],
- a = o.fromId === n ? o.toId : o.fromId
- if (r(t.get(a), o)) return !0
+ for (var o = 0; o < e.length; ++o) {
+ var i = e[o],
+ a = i.fromId === n ? i.toId : i.fromId
+ if (r(t.get(a), i)) return !0
}
- })(i.links, e, n)
+ })(o.links, e, n)
},
forEachLink: function (e) {
var t, r
@@ -25398,13 +39458,13 @@
clear: function () {
v(),
P(function (e) {
- E(e.id)
+ x(e.id)
}),
m()
},
- hasLink: O,
- hasNode: x,
- getLink: O,
+ hasLink: T,
+ hasNode: _,
+ getLink: T,
}
return (
r(g),
@@ -25412,8 +39472,8 @@
var e = g.on
function t() {
return (
- (g.beginUpdate = v = S),
- (g.endUpdate = m = A),
+ (g.beginUpdate = v = M),
+ (g.endUpdate = m = S),
(h = y),
(p = b),
(g.on = e),
@@ -25433,65 +39493,65 @@
function w(e, n) {
if (void 0 === e) throw new Error('Invalid node identifier')
v()
- var r = x(e)
+ var r = _(e)
return (
- r ? ((r.data = n), p(r, 'update')) : ((r = new o(e, n)), p(r, 'add')),
+ r ? ((r.data = n), p(r, 'update')) : ((r = new i(e, n)), p(r, 'add')),
t.set(e, r),
m(),
r
)
}
- function x(e) {
+ function _(e) {
return t.get(e)
}
- function E(e) {
- var n = x(e)
+ function x(e) {
+ var n = _(e)
if (!n) return !1
v()
var r = n.links
if (r) {
n.links = null
- for (var i = 0; i < r.length; ++i) T(r[i])
+ for (var o = 0; o < r.length; ++o) O(r[o])
}
return t.delete(e), p(n, 'remove'), m(), !0
}
function k() {
return t.size
}
- function _() {
+ function E() {
return n.length
}
- function T(e) {
+ function O(e) {
if (!e) return !1
- var t = i(e, n)
+ var t = o(e, n)
if (t < 0) return !1
v(), n.splice(t, 1)
- var r = x(e.fromId),
- o = x(e.toId)
+ var r = _(e.fromId),
+ i = _(e.toId)
return (
- r && (t = i(e, r.links)) >= 0 && r.links.splice(t, 1),
- o && (t = i(e, o.links)) >= 0 && o.links.splice(t, 1),
+ r && (t = o(e, r.links)) >= 0 && r.links.splice(t, 1),
+ i && (t = o(e, i.links)) >= 0 && i.links.splice(t, 1),
h(e, 'remove'),
m(),
!0
)
}
- function O(e, t) {
+ function T(e, t) {
var n,
- r = x(e)
+ r = _(e)
if (!r || !r.links) return null
for (n = 0; n < r.links.length; ++n) {
- var i = r.links[n]
- if (i.fromId === e && i.toId === t) return i
+ var o = r.links[n]
+ if (o.fromId === e && o.toId === t) return o
}
return null
}
function C() {}
- function S() {
- c += 1
+ function M() {
+ l += 1
}
- function A() {
- 0 === (c -= 1) && f.length > 0 && (g.fire('changed', f), (f.length = 0))
+ function S() {
+ 0 === (l -= 1) && f.length > 0 && (g.fire('changed', f), (f.length = 0))
}
function P(e) {
if ('function' !== typeof e)
@@ -25502,8 +39562,8 @@
}
}
}
- var r = n(4245)
- function i(e, t) {
+ var r = n(84245)
+ function o(e, t) {
if (!t) return -1
if (t.indexOf) return t.indexOf(e)
var n,
@@ -25511,7 +39571,7 @@
for (n = 0; n < r; n += 1) if (t[n] === e) return n
return -1
}
- function o(e, t) {
+ function i(e, t) {
;(this.id = e), (this.links = null), (this.data = t)
}
function a(e, t) {
@@ -25524,21 +39584,21 @@
return e.toString() + '\ud83d\udc49 ' + t.toString()
}
},
- 5510: function (e) {
+ 35510: function (e) {
e.exports = function e(t, n) {
var r
t || (t = {})
if (n)
for (r in n)
if (n.hasOwnProperty(r)) {
- var i = t.hasOwnProperty(r),
- o = typeof n[r]
- !i || typeof t[r] !== o ? (t[r] = n[r]) : 'object' === o && (t[r] = e(t[r], n[r]))
+ var o = t.hasOwnProperty(r),
+ i = typeof n[r]
+ !o || typeof t[r] !== i ? (t[r] = n[r]) : 'object' === i && (t[r] = e(t[r], n[r]))
}
return t
}
},
- 8712: function (e) {
+ 78712: function (e) {
function t(e) {
return new n('number' === typeof e ? e : +new Date())
}
@@ -25551,7 +39611,7 @@
Math.pow((1 / Math.E) * (e + 1 / (12 * e - 1 / (10 * e))), e)
)
}
- function i() {
+ function o() {
var e = this.seed
return (
(e =
@@ -25585,15 +39645,15 @@
throw new Error('customRandom does not match expected API: next() function is missing')
return {
forEach: function (t) {
- var n, i, o
+ var n, o, i
for (n = e.length - 1; n > 0; --n)
- (i = r.next(n + 1)), (o = e[i]), (e[i] = e[n]), (e[n] = o), t(o)
+ (o = r.next(n + 1)), (i = e[o]), (e[o] = e[n]), (e[n] = i), t(i)
e.length && t(e[0])
},
shuffle: function () {
- var t, n, i
+ var t, n, o
for (t = e.length - 1; t > 0; --t)
- (n = r.next(t + 1)), (i = e[n]), (e[n] = e[t]), (e[t] = i)
+ (n = r.next(t + 1)), (o = e[n]), (e[n] = e[t]), (e[t] = o)
return e
},
}
@@ -25601,8 +39661,8 @@
(n.prototype.next = function (e) {
return Math.floor(this.nextDouble() * e)
}),
- (n.prototype.nextDouble = i),
- (n.prototype.uniform = i),
+ (n.prototype.nextDouble = o),
+ (n.prototype.uniform = o),
(n.prototype.gaussian = function () {
var e, t, n
do {
@@ -25620,9 +39680,9 @@
})
},
75: function (e, t, n) {
- var r = n(4155)
+ var r = n(34155)
;(function () {
- var t, n, i, o, a, s
+ var t, n, o, i, a, s
'undefined' !== typeof performance && null !== performance && performance.now
? (e.exports = function () {
return performance.now()
@@ -25632,50 +39692,50 @@
return (t() - a) / 1e6
}),
(n = r.hrtime),
- (o = (t = function () {
+ (i = (t = function () {
var e
return 1e9 * (e = n())[0] + e[1]
})()),
(s = 1e9 * r.uptime()),
- (a = o - s))
+ (a = i - s))
: Date.now
? ((e.exports = function () {
- return Date.now() - i
+ return Date.now() - o
}),
- (i = Date.now()))
+ (o = Date.now()))
: ((e.exports = function () {
- return new Date().getTime() - i
+ return new Date().getTime() - o
}),
- (i = new Date().getTime()))
+ (o = new Date().getTime()))
}.call(this))
},
- 7236: function (e) {
+ 87236: function (e) {
var t = null,
n = ['Webkit', 'Moz', 'O', 'ms']
e.exports = function (e) {
t || (t = document.createElement('div'))
var r = t.style
if (e in r) return e
- for (var i = e.charAt(0).toUpperCase() + e.slice(1), o = n.length; o >= 0; o--) {
- var a = n[o] + i
+ for (var o = e.charAt(0).toUpperCase() + e.slice(1), i = n.length; i >= 0; i--) {
+ var a = n[i] + o
if (a in r) return a
}
return !1
}
},
- 4155: function (e) {
+ 34155: function (e) {
var t,
n,
r = (e.exports = {})
- function i() {
+ function o() {
throw new Error('setTimeout has not been defined')
}
- function o() {
+ function i() {
throw new Error('clearTimeout has not been defined')
}
function a(e) {
if (t === setTimeout) return setTimeout(e, 0)
- if ((t === i || !t) && setTimeout) return (t = setTimeout), setTimeout(e, 0)
+ if ((t === o || !t) && setTimeout) return (t = setTimeout), setTimeout(e, 0)
try {
return t(e, 0)
} catch (n) {
@@ -25688,36 +39748,36 @@
}
!(function () {
try {
- t = 'function' === typeof setTimeout ? setTimeout : i
+ t = 'function' === typeof setTimeout ? setTimeout : o
} catch (e) {
- t = i
+ t = o
}
try {
- n = 'function' === typeof clearTimeout ? clearTimeout : o
+ n = 'function' === typeof clearTimeout ? clearTimeout : i
} catch (e) {
- n = o
+ n = i
}
})()
var s,
u = [],
- l = !1,
- c = -1
+ c = !1,
+ l = -1
function d() {
- l && s && ((l = !1), s.length ? (u = s.concat(u)) : (c = -1), u.length && f())
+ c && s && ((c = !1), s.length ? (u = s.concat(u)) : (l = -1), u.length && f())
}
function f() {
- if (!l) {
+ if (!c) {
var e = a(d)
- l = !0
+ c = !0
for (var t = u.length; t; ) {
- for (s = u, u = []; ++c < t; ) s && s[c].run()
- ;(c = -1), (t = u.length)
+ for (s = u, u = []; ++l < t; ) s && s[l].run()
+ ;(l = -1), (t = u.length)
}
;(s = null),
- (l = !1),
+ (c = !1),
(function (e) {
if (n === clearTimeout) return clearTimeout(e)
- if ((n === o || !n) && clearTimeout) return (n = clearTimeout), clearTimeout(e)
+ if ((n === i || !n) && clearTimeout) return (n = clearTimeout), clearTimeout(e)
try {
n(e)
} catch (t) {
@@ -25737,7 +39797,7 @@
;(r.nextTick = function (e) {
var t = new Array(arguments.length - 1)
if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]
- u.push(new h(e, t)), 1 !== u.length || l || a(f)
+ u.push(new h(e, t)), 1 !== u.length || c || a(f)
}),
(h.prototype.run = function () {
this.fun.apply(null, this.array)
@@ -25773,35 +39833,35 @@
return 0
})
},
- 4087: function (e, t, n) {
+ 54087: function (e, t, n) {
for (
var r = n(75),
- i = 'undefined' === typeof window ? n.g : window,
- o = ['moz', 'webkit'],
+ o = 'undefined' === typeof window ? n.g : window,
+ i = ['moz', 'webkit'],
a = 'AnimationFrame',
- s = i['request' + a],
- u = i['cancel' + a] || i['cancelRequest' + a],
- l = 0;
- !s && l < o.length;
- l++
+ s = o['request' + a],
+ u = o['cancel' + a] || o['cancelRequest' + a],
+ c = 0;
+ !s && c < i.length;
+ c++
)
- (s = i[o[l] + 'Request' + a]), (u = i[o[l] + 'Cancel' + a] || i[o[l] + 'CancelRequest' + a])
+ (s = o[i[c] + 'Request' + a]), (u = o[i[c] + 'Cancel' + a] || o[i[c] + 'CancelRequest' + a])
if (!s || !u) {
- var c = 0,
+ var l = 0,
d = 0,
f = []
;(s = function (e) {
if (0 === f.length) {
var t = r(),
- n = Math.max(0, 16.666666666666668 - (t - c))
- ;(c = n + t),
+ n = Math.max(0, 16.666666666666668 - (t - l))
+ ;(l = n + t),
setTimeout(function () {
var e = f.slice(0)
f.length = 0
for (var t = 0; t < e.length; t++)
if (!e[t].cancelled)
try {
- e[t].callback(c)
+ e[t].callback(l)
} catch (n) {
setTimeout(function () {
throw n
@@ -25816,16 +39876,16 @@
})
}
;(e.exports = function (e) {
- return s.call(i, e)
+ return s.call(o, e)
}),
(e.exports.cancel = function () {
- u.apply(i, arguments)
+ u.apply(o, arguments)
}),
(e.exports.polyfill = function (e) {
- e || (e = i), (e.requestAnimationFrame = s), (e.cancelAnimationFrame = u)
+ e || (e = o), (e.requestAnimationFrame = s), (e.cancelAnimationFrame = u)
})
},
- 3485: function (e, t, n) {
+ 33485: function (e, t, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r =
@@ -25843,38 +39903,38 @@
(t.renderTrackHorizontalDefault = function (e) {
var t = e.style,
n = s(e, ['style']),
- i = r({}, t, { right: 2, bottom: 2, left: 2, borderRadius: 3 })
- return a.default.createElement('div', r({ style: i }, n))
+ o = r({}, t, { right: 2, bottom: 2, left: 2, borderRadius: 3 })
+ return a.default.createElement('div', r({ style: o }, n))
}),
(t.renderTrackVerticalDefault = function (e) {
var t = e.style,
n = s(e, ['style']),
- i = r({}, t, { right: 2, bottom: 2, top: 2, borderRadius: 3 })
- return a.default.createElement('div', r({ style: i }, n))
+ o = r({}, t, { right: 2, bottom: 2, top: 2, borderRadius: 3 })
+ return a.default.createElement('div', r({ style: o }, n))
}),
(t.renderThumbHorizontalDefault = function (e) {
var t = e.style,
n = s(e, ['style']),
- i = r({}, t, {
+ o = r({}, t, {
cursor: 'pointer',
borderRadius: 'inherit',
backgroundColor: 'rgba(0,0,0,.2)',
})
- return a.default.createElement('div', r({ style: i }, n))
+ return a.default.createElement('div', r({ style: o }, n))
}),
(t.renderThumbVerticalDefault = function (e) {
var t = e.style,
n = s(e, ['style']),
- i = r({}, t, {
+ o = r({}, t, {
cursor: 'pointer',
borderRadius: 'inherit',
backgroundColor: 'rgba(0,0,0,.2)',
})
- return a.default.createElement('div', r({ style: i }, n))
+ return a.default.createElement('div', r({ style: o }, n))
})
- var i,
- o = n(7294),
- a = (i = o) && i.__esModule ? i : { default: i }
+ var o,
+ i = n(67294),
+ a = (o = i) && o.__esModule ? o : { default: o }
function s(e, t) {
var n = {}
for (var r in e)
@@ -25882,7 +39942,7 @@
return n
}
},
- 6164: function (e, t, n) {
+ 36164: function (e, t, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
var r =
@@ -25894,7 +39954,7 @@
}
return e
},
- i = (function () {
+ o = (function () {
function e(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n]
@@ -25908,18 +39968,18 @@
return n && e(t.prototype, n), r && e(t, r), t
}
})(),
- o = n(4087),
- a = g(o),
- s = g(n(3879)),
- u = n(7294),
- l = g(n(5697)),
- c = g(n(7928)),
- d = g(n(6445)),
- f = g(n(8309)),
- h = g(n(1608)),
- p = g(n(7114)),
- v = n(8285),
- m = n(3485)
+ i = n(54087),
+ a = g(i),
+ s = g(n(53879)),
+ u = n(67294),
+ c = g(n(45697)),
+ l = g(n(77928)),
+ d = g(n(66445)),
+ f = g(n(18309)),
+ h = g(n(51608)),
+ p = g(n(43840)),
+ v = n(58285),
+ m = n(33485)
function g(e) {
return e && e.__esModule ? e : { default: e }
}
@@ -25935,11 +39995,11 @@
function t(e) {
var n
y(this, t)
- for (var r = arguments.length, i = Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
- i[o - 1] = arguments[o]
+ for (var r = arguments.length, o = Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
+ o[i - 1] = arguments[i]
var a = b(
this,
- (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this, e].concat(i)),
+ (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this, e].concat(o)),
)
return (
(a.getScrollLeft = a.getScrollLeft.bind(a)),
@@ -25984,7 +40044,7 @@
})),
t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : (e.__proto__ = t))
})(t, e),
- i(t, [
+ o(t, [
{
key: 'componentDidMount',
value: function () {
@@ -26007,7 +40067,7 @@
key: 'componentWillUnmount',
value: function () {
this.removeListeners(),
- (0, o.cancel)(this.requestFrame),
+ (0, i.cancel)(this.requestFrame),
clearTimeout(this.hideTracksTimeout),
clearInterval(this.detectScrollingInterval)
},
@@ -26055,23 +40115,23 @@
t = e.scrollLeft,
n = void 0 === t ? 0 : t,
r = e.scrollTop,
- i = void 0 === r ? 0 : r,
- o = e.scrollWidth,
- a = void 0 === o ? 0 : o,
+ o = void 0 === r ? 0 : r,
+ i = e.scrollWidth,
+ a = void 0 === i ? 0 : i,
s = e.scrollHeight,
u = void 0 === s ? 0 : s,
- l = e.clientWidth,
- c = void 0 === l ? 0 : l,
+ c = e.clientWidth,
+ l = void 0 === c ? 0 : c,
d = e.clientHeight,
f = void 0 === d ? 0 : d
return {
- left: n / (a - c) || 0,
- top: i / (u - f) || 0,
+ left: n / (a - l) || 0,
+ top: o / (u - f) || 0,
scrollLeft: n,
- scrollTop: i,
+ scrollTop: o,
scrollWidth: a,
scrollHeight: u,
- clientWidth: c,
+ clientWidth: l,
clientHeight: f,
}
},
@@ -26083,10 +40143,10 @@
t = e.thumbSize,
n = e.thumbMinSize,
r = this.view,
- i = r.scrollWidth,
- o = r.clientWidth,
+ o = r.scrollWidth,
+ i = r.clientWidth,
a = (0, h.default)(this.trackHorizontal),
- s = Math.ceil((o / i) * a)
+ s = Math.ceil((i / o) * a)
return a <= s ? 0 : t || Math.max(s, n)
},
},
@@ -26097,10 +40157,10 @@
t = e.thumbSize,
n = e.thumbMinSize,
r = this.view,
- i = r.scrollHeight,
- o = r.clientHeight,
+ o = r.scrollHeight,
+ i = r.clientHeight,
a = (0, p.default)(this.trackVertical),
- s = Math.ceil((o / i) * a)
+ s = Math.ceil((i / o) * a)
return a <= s ? 0 : t || Math.max(s, n)
},
},
@@ -26174,7 +40234,7 @@
t = this.trackHorizontal,
n = this.trackVertical,
r = this.thumbHorizontal,
- i = this.thumbVertical
+ o = this.thumbVertical
e.addEventListener('scroll', this.handleScroll),
(0, d.default)() &&
(t.addEventListener('mouseenter', this.handleTrackMouseEnter),
@@ -26184,7 +40244,7 @@
n.addEventListener('mouseleave', this.handleTrackMouseLeave),
n.addEventListener('mousedown', this.handleVerticalTrackMouseDown),
r.addEventListener('mousedown', this.handleHorizontalThumbMouseDown),
- i.addEventListener('mousedown', this.handleVerticalThumbMouseDown),
+ o.addEventListener('mousedown', this.handleVerticalThumbMouseDown),
window.addEventListener('resize', this.handleWindowResize))
}
},
@@ -26197,7 +40257,7 @@
t = this.trackHorizontal,
n = this.trackVertical,
r = this.thumbHorizontal,
- i = this.thumbVertical
+ o = this.thumbVertical
e.removeEventListener('scroll', this.handleScroll),
(0, d.default)() &&
(t.removeEventListener('mouseenter', this.handleTrackMouseEnter),
@@ -26207,7 +40267,7 @@
n.removeEventListener('mouseleave', this.handleTrackMouseLeave),
n.removeEventListener('mousedown', this.handleVerticalTrackMouseDown),
r.removeEventListener('mousedown', this.handleHorizontalThumbMouseDown),
- i.removeEventListener('mousedown', this.handleVerticalThumbMouseDown),
+ o.removeEventListener('mousedown', this.handleVerticalThumbMouseDown),
window.removeEventListener('resize', this.handleWindowResize),
this.teardownDragging())
}
@@ -26219,12 +40279,12 @@
var t = this,
n = this.props,
r = n.onScroll,
- i = n.onScrollFrame
+ o = n.onScrollFrame
r && r(e),
this.update(function (e) {
var n = e.scrollLeft,
r = e.scrollTop
- ;(t.viewScrollLeft = n), (t.viewScrollTop = r), i && i(e)
+ ;(t.viewScrollLeft = n), (t.viewScrollTop = r), o && o(e)
}),
this.detectScrolling()
},
@@ -26268,9 +40328,9 @@
var t = e.target,
n = e.clientX,
r = t.getBoundingClientRect().left,
- i = this.getThumbHorizontalWidth(),
- o = Math.abs(r - n) - i / 2
- this.view.scrollLeft = this.getScrollLeftForOffset(o)
+ o = this.getThumbHorizontalWidth(),
+ i = Math.abs(r - n) - o / 2
+ this.view.scrollLeft = this.getScrollLeftForOffset(i)
},
},
{
@@ -26280,9 +40340,9 @@
var t = e.target,
n = e.clientY,
r = t.getBoundingClientRect().top,
- i = this.getThumbVerticalHeight(),
- o = Math.abs(r - n) - i / 2
- this.view.scrollTop = this.getScrollTopForOffset(o)
+ o = this.getThumbVerticalHeight(),
+ i = Math.abs(r - n) - o / 2
+ this.view.scrollTop = this.getScrollTopForOffset(i)
},
},
{
@@ -26292,8 +40352,8 @@
var t = e.target,
n = e.clientX,
r = t.offsetWidth,
- i = t.getBoundingClientRect().left
- this.prevPageX = r - (n - i)
+ o = t.getBoundingClientRect().left
+ this.prevPageX = r - (n - o)
},
},
{
@@ -26303,8 +40363,8 @@
var t = e.target,
n = e.clientY,
r = t.offsetHeight,
- i = t.getBoundingClientRect().top
- this.prevPageY = r - (n - i)
+ o = t.getBoundingClientRect().top
+ this.prevPageY = r - (n - o)
},
},
{
@@ -26344,11 +40404,11 @@
}
if (this.prevPageY) {
var r = e.clientY,
- i =
+ o =
-this.trackVertical.getBoundingClientRect().top +
r -
(this.getThumbVerticalHeight() - this.prevPageY)
- this.view.scrollTop = this.getScrollTopForOffset(i)
+ this.view.scrollTop = this.getScrollTopForOffset(o)
}
return !1
},
@@ -26457,28 +40517,28 @@
var t = this.props,
n = t.onUpdate,
r = t.hideTracksWhenNotNeeded,
- i = this.getValues()
+ o = this.getValues()
if ((0, d.default)()) {
- var o = i.scrollLeft,
- a = i.clientWidth,
- u = i.scrollWidth,
- l = (0, h.default)(this.trackHorizontal),
- c = this.getThumbHorizontalWidth(),
- f = { width: c, transform: 'translateX(' + (o / (u - a)) * (l - c) + 'px)' },
- v = i.scrollTop,
- m = i.clientHeight,
- g = i.scrollHeight,
+ var i = o.scrollLeft,
+ a = o.clientWidth,
+ u = o.scrollWidth,
+ c = (0, h.default)(this.trackHorizontal),
+ l = this.getThumbHorizontalWidth(),
+ f = { width: l, transform: 'translateX(' + (i / (u - a)) * (c - l) + 'px)' },
+ v = o.scrollTop,
+ m = o.clientHeight,
+ g = o.scrollHeight,
y = (0, p.default)(this.trackVertical),
b = this.getThumbVerticalHeight(),
w = { height: b, transform: 'translateY(' + (v / (g - m)) * (y - b) + 'px)' }
if (r) {
- var x = { visibility: u > a ? 'visible' : 'hidden' },
- E = { visibility: g > m ? 'visible' : 'hidden' }
- ;(0, s.default)(this.trackHorizontal, x), (0, s.default)(this.trackVertical, E)
+ var _ = { visibility: u > a ? 'visible' : 'hidden' },
+ x = { visibility: g > m ? 'visible' : 'hidden' }
+ ;(0, s.default)(this.trackHorizontal, _), (0, s.default)(this.trackVertical, x)
}
;(0, s.default)(this.thumbHorizontal, f), (0, s.default)(this.thumbVertical, w)
}
- n && n(i), 'function' === typeof e && e(i)
+ n && n(o), 'function' === typeof e && e(o)
},
},
{
@@ -26487,17 +40547,17 @@
var e = this,
t = (0, d.default)(),
n = this.props,
- i =
+ o =
(n.onScroll,
n.onScrollFrame,
n.onScrollStart,
n.onScrollStop,
n.onUpdate,
n.renderView),
- o = n.renderTrackHorizontal,
+ i = n.renderTrackHorizontal,
a = n.renderTrackVertical,
s = n.renderThumbHorizontal,
- l = n.renderThumbVertical,
+ c = n.renderThumbVertical,
f = n.tagName,
h = (n.hideTracksWhenNotNeeded, n.autoHide),
p = (n.autoHideTimeout, n.autoHideDuration),
@@ -26506,8 +40566,8 @@
y = n.autoHeightMin,
b = n.autoHeightMax,
w = n.style,
- x = n.children,
- E = (function (e, t) {
+ _ = n.children,
+ x = (function (e, t) {
var n = {}
for (var r in e)
t.indexOf(r) >= 0 ||
@@ -26539,58 +40599,58 @@
'children',
]),
k = this.state.didMountUniversal,
- _ = r(
+ E = r(
{},
v.containerStyleDefault,
g && r({}, v.containerStyleAutoHeight, { minHeight: y, maxHeight: b }),
w,
),
- T = r(
+ O = r(
{},
v.viewStyleDefault,
{ marginRight: t ? -t : 0, marginBottom: t ? -t : 0 },
g &&
r({}, v.viewStyleAutoHeight, {
- minHeight: (0, c.default)(y) ? 'calc(' + y + ' + ' + t + 'px)' : y + t,
- maxHeight: (0, c.default)(b) ? 'calc(' + b + ' + ' + t + 'px)' : b + t,
+ minHeight: (0, l.default)(y) ? 'calc(' + y + ' + ' + t + 'px)' : y + t,
+ maxHeight: (0, l.default)(b) ? 'calc(' + b + ' + ' + t + 'px)' : b + t,
}),
g && m && !k && { minHeight: y, maxHeight: b },
m && !k && v.viewStyleUniversalInitial,
),
- O = { transition: 'opacity ' + p + 'ms', opacity: 0 },
+ T = { transition: 'opacity ' + p + 'ms', opacity: 0 },
C = r(
{},
v.trackHorizontalStyleDefault,
- h && O,
+ h && T,
(!t || (m && !k)) && { display: 'none' },
),
- S = r(
+ M = r(
{},
v.trackVerticalStyleDefault,
- h && O,
+ h && T,
(!t || (m && !k)) && { display: 'none' },
)
return (0, u.createElement)(
f,
- r({}, E, {
- style: _,
+ r({}, x, {
+ style: E,
ref: function (t) {
e.container = t
},
}),
[
(0, u.cloneElement)(
- i({ style: T }),
+ o({ style: O }),
{
key: 'view',
ref: function (t) {
e.view = t
},
},
- x,
+ _,
),
(0, u.cloneElement)(
- o({ style: C }),
+ i({ style: C }),
{
key: 'trackHorizontal',
ref: function (t) {
@@ -26604,14 +40664,14 @@
}),
),
(0, u.cloneElement)(
- a({ style: S }),
+ a({ style: M }),
{
key: 'trackVertical',
ref: function (t) {
e.trackVertical = t
},
},
- (0, u.cloneElement)(l({ style: v.thumbVerticalStyleDefault }), {
+ (0, u.cloneElement)(c({ style: v.thumbVerticalStyleDefault }), {
ref: function (t) {
e.thumbVertical = t
},
@@ -26627,29 +40687,29 @@
})(u.Component)
;(t.default = w),
(w.propTypes = {
- onScroll: l.default.func,
- onScrollFrame: l.default.func,
- onScrollStart: l.default.func,
- onScrollStop: l.default.func,
- onUpdate: l.default.func,
- renderView: l.default.func,
- renderTrackHorizontal: l.default.func,
- renderTrackVertical: l.default.func,
- renderThumbHorizontal: l.default.func,
- renderThumbVertical: l.default.func,
- tagName: l.default.string,
- thumbSize: l.default.number,
- thumbMinSize: l.default.number,
- hideTracksWhenNotNeeded: l.default.bool,
- autoHide: l.default.bool,
- autoHideTimeout: l.default.number,
- autoHideDuration: l.default.number,
- autoHeight: l.default.bool,
- autoHeightMin: l.default.oneOfType([l.default.number, l.default.string]),
- autoHeightMax: l.default.oneOfType([l.default.number, l.default.string]),
- universal: l.default.bool,
- style: l.default.object,
- children: l.default.node,
+ onScroll: c.default.func,
+ onScrollFrame: c.default.func,
+ onScrollStart: c.default.func,
+ onScrollStop: c.default.func,
+ onUpdate: c.default.func,
+ renderView: c.default.func,
+ renderTrackHorizontal: c.default.func,
+ renderTrackVertical: c.default.func,
+ renderThumbHorizontal: c.default.func,
+ renderThumbVertical: c.default.func,
+ tagName: c.default.string,
+ thumbSize: c.default.number,
+ thumbMinSize: c.default.number,
+ hideTracksWhenNotNeeded: c.default.bool,
+ autoHide: c.default.bool,
+ autoHideTimeout: c.default.number,
+ autoHideDuration: c.default.number,
+ autoHeight: c.default.bool,
+ autoHeightMin: c.default.oneOfType([c.default.number, c.default.string]),
+ autoHeightMax: c.default.oneOfType([c.default.number, c.default.string]),
+ universal: c.default.bool,
+ style: c.default.object,
+ children: c.default.node,
}),
(w.defaultProps = {
renderView: m.renderViewDefault,
@@ -26669,7 +40729,7 @@
universal: !1,
})
},
- 8285: function (e, t) {
+ 58285: function (e, t) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 })
;(t.containerStyleDefault = {
@@ -26707,36 +40767,36 @@
(t.disableSelectStyle = { userSelect: 'none' }),
(t.disableSelectStyleReset = { userSelect: '' })
},
- 6658: function (e, t, n) {
+ 86658: function (e, t, n) {
'use strict'
var r,
- i = n(6164),
- o = (r = i) && r.__esModule ? r : { default: r }
- ;(t.ZP = o.default), o.default
+ o = n(36164),
+ i = (r = o) && r.__esModule ? r : { default: r }
+ ;(t.ZP = i.default), i.default
},
- 7114: function (e, t) {
+ 43840: function (e, t) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.default = function (e) {
var t = e.clientHeight,
n = getComputedStyle(e),
r = n.paddingTop,
- i = n.paddingBottom
- return t - parseFloat(r) - parseFloat(i)
+ o = n.paddingBottom
+ return t - parseFloat(r) - parseFloat(o)
})
},
- 1608: function (e, t) {
+ 51608: function (e, t) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.default = function (e) {
var t = e.clientWidth,
n = getComputedStyle(e),
r = n.paddingLeft,
- i = n.paddingRight
- return t - parseFloat(r) - parseFloat(i)
+ o = n.paddingRight
+ return t - parseFloat(r) - parseFloat(o)
})
},
- 6445: function (e, t, n) {
+ 66445: function (e, t, n) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.default = function () {
@@ -26744,7 +40804,7 @@
if (e && !1 !== a) return a
if ('undefined' !== typeof document) {
var t = document.createElement('div')
- ;(0, o.default)(t, {
+ ;(0, i.default)(t, {
width: 100,
height: 100,
position: 'absolute',
@@ -26759,52 +40819,52 @@
return a || 0
})
var r,
- i = n(3879),
- o = (r = i) && r.__esModule ? r : { default: r }
+ o = n(53879),
+ i = (r = o) && r.__esModule ? r : { default: r }
var a = !1
},
- 7928: function (e, t) {
+ 77928: function (e, t) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.default = function (e) {
return 'string' === typeof e
})
},
- 8309: function (e, t) {
+ 18309: function (e, t) {
'use strict'
Object.defineProperty(t, '__esModule', { value: !0 }),
(t.default = function () {
return !1
})
},
- 9590: function (e) {
+ 69590: function (e) {
var t = 'undefined' !== typeof Element,
n = 'function' === typeof Map,
r = 'function' === typeof Set,
- i = 'function' === typeof ArrayBuffer && !!ArrayBuffer.isView
- function o(e, a) {
+ o = 'function' === typeof ArrayBuffer && !!ArrayBuffer.isView
+ function i(e, a) {
if (e === a) return !0
if (e && a && 'object' == typeof e && 'object' == typeof a) {
if (e.constructor !== a.constructor) return !1
- var s, u, l, c
+ var s, u, c, l
if (Array.isArray(e)) {
if ((s = e.length) != a.length) return !1
- for (u = s; 0 !== u--; ) if (!o(e[u], a[u])) return !1
+ for (u = s; 0 !== u--; ) if (!i(e[u], a[u])) return !1
return !0
}
if (n && e instanceof Map && a instanceof Map) {
if (e.size !== a.size) return !1
- for (c = e.entries(); !(u = c.next()).done; ) if (!a.has(u.value[0])) return !1
- for (c = e.entries(); !(u = c.next()).done; )
- if (!o(u.value[1], a.get(u.value[0]))) return !1
+ for (l = e.entries(); !(u = l.next()).done; ) if (!a.has(u.value[0])) return !1
+ for (l = e.entries(); !(u = l.next()).done; )
+ if (!i(u.value[1], a.get(u.value[0]))) return !1
return !0
}
if (r && e instanceof Set && a instanceof Set) {
if (e.size !== a.size) return !1
- for (c = e.entries(); !(u = c.next()).done; ) if (!a.has(u.value[0])) return !1
+ for (l = e.entries(); !(u = l.next()).done; ) if (!a.has(u.value[0])) return !1
return !0
}
- if (i && ArrayBuffer.isView(e) && ArrayBuffer.isView(a)) {
+ if (o && ArrayBuffer.isView(e) && ArrayBuffer.isView(a)) {
if ((s = e.length) != a.length) return !1
for (u = s; 0 !== u--; ) if (e[u] !== a[u]) return !1
return !0
@@ -26812,13 +40872,13 @@
if (e.constructor === RegExp) return e.source === a.source && e.flags === a.flags
if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === a.valueOf()
if (e.toString !== Object.prototype.toString) return e.toString() === a.toString()
- if ((s = (l = Object.keys(e)).length) !== Object.keys(a).length) return !1
- for (u = s; 0 !== u--; ) if (!Object.prototype.hasOwnProperty.call(a, l[u])) return !1
+ if ((s = (c = Object.keys(e)).length) !== Object.keys(a).length) return !1
+ for (u = s; 0 !== u--; ) if (!Object.prototype.hasOwnProperty.call(a, c[u])) return !1
if (t && e instanceof Element) return !1
for (u = s; 0 !== u--; )
if (
- (('_owner' !== l[u] && '__v' !== l[u] && '__o' !== l[u]) || !e.$$typeof) &&
- !o(e[l[u]], a[l[u]])
+ (('_owner' !== c[u] && '__v' !== c[u] && '__o' !== c[u]) || !e.$$typeof) &&
+ !i(e[c[u]], a[c[u]])
)
return !1
return !0
@@ -26827,7 +40887,7 @@
}
e.exports = function (e, t) {
try {
- return o(e, t)
+ return i(e, t)
} catch (n) {
if ((n.message || '').match(/stack|recursion/i))
return console.warn('react-fast-compare cannot handle circular refs'), !1
@@ -26835,18 +40895,18 @@
}
}
},
- 1957: function (e, n, r) {
+ 61957: function (e, n, r) {
'use strict'
r.d(n, {
f$: function () {
- return Bo
+ return Hi
},
s6: function () {
- return Ho
+ return Bi
},
})
- var i = r(7294)
- function o(e, t, n) {
+ var o = r(67294)
+ function i(e, t, n) {
return (
t in e
? Object.defineProperty(e, t, {
@@ -26868,26 +40928,26 @@
var n = e && (('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator'])
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
u(e, t) ||
(function () {
@@ -26900,7 +40960,7 @@
function s(e) {
return (
(function (e) {
- if (Array.isArray(e)) return l(e)
+ if (Array.isArray(e)) return c(e)
})(e) ||
(function (e) {
if (
@@ -26919,24 +40979,24 @@
}
function u(e, t) {
if (e) {
- if ('string' === typeof e) return l(e, t)
+ if ('string' === typeof e) return c(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
return (
'Object' === n && e.constructor && (n = e.constructor.name),
'Map' === n || 'Set' === n
? Array.from(e)
: 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
- ? l(e, t)
+ ? c(e, t)
: void 0
)
}
}
- function l(e, t) {
+ function c(e, t) {
;(null == t || t > e.length) && (t = e.length)
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
}
- var c = function (e, t) {
+ var l = function (e, t) {
var n = new Set(t)
return Object.assign.apply(
Object,
@@ -26949,13 +41009,13 @@
})
.map(function (e) {
var t = a(e, 2)
- return o({}, t[0], t[1])
+ return i({}, t[0], t[1])
}),
),
),
)
},
- d = r(3405),
+ d = r(23405),
f = r.n(d)
function h(e) {
return (h =
@@ -26981,26 +41041,26 @@
var n = e && (('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator'])
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
m(e, t) ||
(function () {
@@ -27059,7 +41119,7 @@
initPropNames: (arguments.length <= 3 ? void 0 : arguments[3]) || void 0,
},
r = n.wrapperElementType,
- o = void 0 === r ? 'div' : r,
+ i = void 0 === r ? 'div' : r,
a = n.nodeMapper,
s =
void 0 === a
@@ -27068,18 +41128,18 @@
}
: a,
u = n.methodNames,
- l = void 0 === u ? [] : u,
+ c = void 0 === u ? [] : u,
d = n.initPropNames,
m = void 0 === d ? [] : d
- return (0, i.forwardRef)(function (t, n) {
- var r = (0, i.useRef)(),
- a = p((0, i.useState)({}), 2),
+ return (0, o.forwardRef)(function (t, n) {
+ var r = (0, o.useRef)(),
+ a = p((0, o.useState)({}), 2),
u = a[0],
d = a[1]
- ;(0, i.useEffect)(function () {
+ ;(0, o.useEffect)(function () {
return d(t)
})
- var h = (0, i.useMemo)(function () {
+ var h = (0, o.useMemo)(function () {
var n = f()(
m
.filter(function (e) {
@@ -27091,13 +41151,13 @@
)
return e(n)
}, [])
- ;(0, i.useLayoutEffect)(function () {
+ ;(0, o.useLayoutEffect)(function () {
h(s(r.current))
}, []),
- (0, i.useEffect)(function () {
+ (0, o.useEffect)(function () {
return h._destructor instanceof Function ? h._destructor : void 0
}, [])
- var g = (0, i.useCallback)(
+ var g = (0, o.useCallback)(
function (e) {
for (
var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1;
@@ -27109,7 +41169,7 @@
},
[h],
),
- y = c(t, [].concat(v(l), v(m)))
+ y = l(t, [].concat(v(c), v(m)))
return (
Object.keys(y)
.filter(function (e) {
@@ -27118,9 +41178,9 @@
.forEach(function (e) {
return g(e, t[e])
}),
- (0, i.useImperativeHandle)(n, function () {
+ (0, o.useImperativeHandle)(n, function () {
return f()(
- l.map(function (e) {
+ c.map(function (e) {
return [
e,
function () {
@@ -27132,13 +41192,13 @@
}),
)
}),
- i.createElement(o, { ref: r })
+ o.createElement(i, { ref: r })
)
})
},
- b = (r(5569), r(401), r(1359), r(4858)),
- w = r(2539)
- function x(e, t) {
+ b = (r(75569), r(60401), r(31359), r(44858)),
+ w = r(92539)
+ function _(e, t) {
var n = Object.keys(e)
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e)
@@ -27150,16 +41210,16 @@
}
return n
}
- function E(e) {
+ function x(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {}
t % 2
- ? x(Object(n), !0).forEach(function (t) {
+ ? _(Object(n), !0).forEach(function (t) {
k(e, t, n[t])
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
- : x(Object(n)).forEach(function (t) {
+ : _(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
})
}
@@ -27178,7 +41238,7 @@
e
)
}
- function _(e, t) {
+ function E(e, t) {
return (
(function (e) {
if (Array.isArray(e)) return e
@@ -27190,28 +41250,28 @@
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator']
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
- O(e, t) ||
+ T(e, t) ||
(function () {
throw new TypeError(
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
@@ -27219,7 +41279,7 @@
})()
)
}
- function T(e) {
+ function O(e) {
return (
(function (e) {
if (Array.isArray(e)) return C(e)
@@ -27231,7 +41291,7 @@
)
return Array.from(e)
})(e) ||
- O(e) ||
+ T(e) ||
(function () {
throw new TypeError(
'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
@@ -27239,7 +41299,7 @@
})()
)
}
- function O(e, t) {
+ function T(e, t) {
if (e) {
if ('string' === typeof e) return C(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
@@ -27263,15 +41323,15 @@
var n = t.insertAt
if (e && 'undefined' !== typeof document) {
var r = document.head || document.getElementsByTagName('head')[0],
- i = document.createElement('style')
- ;(i.type = 'text/css'),
- 'top' === n && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i),
- i.styleSheet ? (i.styleSheet.cssText = e) : i.appendChild(document.createTextNode(e))
+ o = document.createElement('style')
+ ;(o.type = 'text/css'),
+ 'top' === n && r.firstChild ? r.insertBefore(o, r.firstChild) : r.appendChild(o),
+ o.styleSheet ? (o.styleSheet.cssText = e) : o.appendChild(document.createTextNode(e))
}
})(
'.graph-nav-info {\n position: absolute;\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n font-family: Sans-serif;\n z-index: 1000;\n}',
)
- var S = (0, b.Z)({
+ var M = (0, b.Z)({
props: {
width: {
default: window.innerWidth,
@@ -27352,13 +41412,13 @@
onEngineTick: {},
onEngineStop: {},
},
- methods: E(
- E(
+ methods: x(
+ x(
{},
Object.assign.apply(
Object,
[{}].concat(
- T(
+ O(
[
'getGraphBbox',
'emitParticle',
@@ -27370,13 +41430,13 @@
for (
var n = t.forcegraph.components.forcegraph,
r = arguments.length,
- i = new Array(r > 1 ? r - 1 : 0),
- o = 1;
- o < r;
- o++
+ o = new Array(r > 1 ? r - 1 : 0),
+ i = 1;
+ i < r;
+ i++
)
- i[o - 1] = arguments[o]
- var a = n[e].apply(n, i)
+ o[i - 1] = arguments[i]
+ var a = n[e].apply(n, o)
return a === n ? this : a
})
}),
@@ -27403,8 +41463,8 @@
(t.navInfo.textContent = 'Mouse drag: look, gamepad/arrow/wasd keys: move')
var n,
r,
- i,
o,
+ i,
a,
s = document.createElement('a-scene')
s.setAttribute('embedded', ''),
@@ -27417,18 +41477,18 @@
r.setAttribute('camera', ''),
r.setAttribute('position', '0 0 0'),
r.setAttribute('look-controls', 'reverseMouseDrag: false; pointerLockEnabled: false'),
- r.appendChild((i = document.createElement('a-text'))),
- i.setAttribute('position', '0 -0.3 -1'),
- i.setAttribute('width', 2),
- i.setAttribute('align', 'center'),
- i.setAttribute('color', 'lavender'),
- i.setAttribute('value', ''),
r.appendChild((o = document.createElement('a-text'))),
- o.setAttribute('position', '0 -0.4 -1'),
- o.setAttribute('width', 1.3),
+ o.setAttribute('position', '0 -0.3 -1'),
+ o.setAttribute('width', 2),
o.setAttribute('align', 'center'),
o.setAttribute('color', 'lavender'),
o.setAttribute('value', ''),
+ r.appendChild((i = document.createElement('a-text'))),
+ i.setAttribute('position', '0 -0.4 -1'),
+ i.setAttribute('width', 1.3),
+ i.setAttribute('align', 'center'),
+ i.setAttribute('color', 'lavender'),
+ i.setAttribute('value', ''),
s.appendChild((a = document.createElement('a-entity'))),
a.setAttribute('cursor', 'rayOrigin: mouse; mouseCursorStylesEnabled: true'),
a.setAttribute('raycaster', 'objects: [forcegraph]; interval: 100'),
@@ -27448,14 +41508,14 @@
'forcegraph',
Object.assign.apply(
Object,
- T(
+ O(
['node', 'link'].map(function (e) {
var n = { node: 'Node', link: 'Link' }[e]
return k({}, 'on'.concat(n, 'Hover'), function (r, a) {
var s = (r && (0, w.default)(t[''.concat(e, 'Label')])(r)) || '',
u = (r && (0, w.default)(t[''.concat(e, 'Desc')])(r)) || ''
- i.setAttribute('value', s),
- o.setAttribute('value', u),
+ o.setAttribute('value', s),
+ i.setAttribute('value', u),
t['on'.concat(n, 'Hover')] && t['on'.concat(n, 'Hover')](r, a)
})
}),
@@ -27523,24 +41583,24 @@
r = Object.assign.apply(
Object,
[{}].concat(
- T(
+ O(
Object.entries(e)
.filter(function (e) {
- var r = _(e, 2),
- i = r[0],
- o = r[1]
+ var r = E(e, 2),
+ o = r[0],
+ i = r[1]
return (
- t.hasOwnProperty(i) && -1 !== n.indexOf(i) && void 0 !== o && null !== o
+ t.hasOwnProperty(o) && -1 !== n.indexOf(o) && void 0 !== i && null !== i
)
})
.map(function (e) {
- var t = _(e, 2)
+ var t = E(e, 2)
return k({}, t[0], t[1])
}),
),
- T(
+ O(
Object.entries(e.graphData).map(function (e) {
- var t = _(e, 2)
+ var t = E(e, 2)
return k({}, t[0], t[1])
}),
),
@@ -27549,9 +41609,9 @@
e.forcegraph.setAttribute('forcegraph', r)
},
}),
- A = r(5697),
- P = r.n(A)
- function M(e, t) {
+ S = r(45697),
+ P = r.n(S)
+ function j(e, t) {
var n = Object.keys(e)
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e)
@@ -27563,22 +41623,22 @@
}
return n
}
- function R(e) {
+ function I(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {}
t % 2
- ? M(Object(n), !0).forEach(function (t) {
- j(e, t, n[t])
+ ? j(Object(n), !0).forEach(function (t) {
+ A(e, t, n[t])
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
- : M(Object(n)).forEach(function (t) {
+ : j(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
})
}
return e
}
- function j(e, t, n) {
+ function A(e, t, n) {
return (
t in e
? Object.defineProperty(e, t, {
@@ -27591,7 +41651,7 @@
e
)
}
- function D(e, t) {
+ function R(e, t) {
return (
(function (e) {
if (Array.isArray(e)) return e
@@ -27603,28 +41663,28 @@
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator']
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
- N(e, t) ||
+ L(e, t) ||
(function () {
throw new TypeError(
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
@@ -27632,10 +41692,10 @@
})()
)
}
- function L(e) {
+ function D(e) {
return (
(function (e) {
- if (Array.isArray(e)) return I(e)
+ if (Array.isArray(e)) return N(e)
})(e) ||
(function (e) {
if (
@@ -27644,7 +41704,7 @@
)
return Array.from(e)
})(e) ||
- N(e) ||
+ L(e) ||
(function () {
throw new TypeError(
'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
@@ -27652,21 +41712,21 @@
})()
)
}
- function N(e, t) {
+ function L(e, t) {
if (e) {
- if ('string' === typeof e) return I(e, t)
+ if ('string' === typeof e) return N(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
return (
'Object' === n && e.constructor && (n = e.constructor.name),
'Map' === n || 'Set' === n
? Array.from(e)
: 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
- ? I(e, t)
+ ? N(e, t)
: void 0
)
}
}
- function I(e, t) {
+ function N(e, t) {
;(null == t || t > e.length) && (t = e.length)
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
@@ -27736,13 +41796,13 @@
onEngineTick: {},
onEngineStop: {},
},
- methods: R(
- R(
+ methods: I(
+ I(
{},
Object.assign.apply(
Object,
[{}].concat(
- L(
+ D(
[
'getGraphBbox',
'emitParticle',
@@ -27750,17 +41810,17 @@
'd3ReheatSimulation',
'refresh',
].map(function (e) {
- return j({}, e, function (t) {
+ return A({}, e, function (t) {
for (
var n = t.forcegraph.components.forcegraph,
r = arguments.length,
- i = new Array(r > 1 ? r - 1 : 0),
- o = 1;
- o < r;
- o++
+ o = new Array(r > 1 ? r - 1 : 0),
+ i = 1;
+ i < r;
+ i++
)
- i[o - 1] = arguments[o]
- var a = n[e].apply(n, i)
+ o[i - 1] = arguments[i]
+ var a = n[e].apply(n, o)
return a === n ? this : a
})
}),
@@ -27778,29 +41838,29 @@
init: function (e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
r = n.markerAttrs,
- i = void 0 === r ? { preset: 'hiro' } : r
+ o = void 0 === r ? { preset: 'hiro' } : r
;(e.innerHTML = ''),
(t.container = document.createElement('div')),
e.appendChild(t.container)
- var o = document.createElement('a-scene')
- o.setAttribute('embedded', ''), o.setAttribute('arjs', 'debugUIEnabled: false;')
+ var i = document.createElement('a-scene')
+ i.setAttribute('embedded', ''), i.setAttribute('arjs', 'debugUIEnabled: false;')
var a,
s = document.createElement('a-marker')
- Object.entries(i).forEach(function (e) {
- var t = D(e, 2),
+ Object.entries(o).forEach(function (e) {
+ var t = R(e, 2),
n = t[0],
r = t[1]
return s.setAttribute(n, r)
}),
- o.appendChild(s),
- o.appendChild((a = document.createElement('a-entity'))),
+ i.appendChild(s),
+ i.appendChild((a = document.createElement('a-entity'))),
a.setAttribute('cursor'),
a.setAttribute('raycaster', 'objects: [forcegraph]'),
(t.forcegraph = document.createElement('a-entity')),
t.forcegraph.setAttribute('forcegraph', null),
s.appendChild(t.forcegraph)
var u = document.createElement('a-entity')
- u.setAttribute('camera', ''), o.appendChild(u), t.container.appendChild(o)
+ u.setAttribute('camera', ''), i.appendChild(u), t.container.appendChild(i)
},
update: function (e, t) {
t.hasOwnProperty('width') && e.width && (e.container.style.width = e.width),
@@ -27808,7 +41868,7 @@
t.hasOwnProperty('glScale') &&
e.forcegraph.setAttribute(
'scale',
- L(new Array(3))
+ D(new Array(3))
.map(function () {
return 1 / e.glScale
})
@@ -27874,25 +41934,25 @@
r = Object.assign.apply(
Object,
[{}].concat(
- L(
+ D(
Object.entries(e)
.filter(function (e) {
- var r = D(e, 2),
- i = r[0],
- o = r[1]
+ var r = R(e, 2),
+ o = r[0],
+ i = r[1]
return (
- t.hasOwnProperty(i) && -1 !== n.indexOf(i) && void 0 !== o && null !== o
+ t.hasOwnProperty(o) && -1 !== n.indexOf(o) && void 0 !== i && null !== i
)
})
.map(function (e) {
- var t = D(e, 2)
- return j({}, t[0], t[1])
+ var t = R(e, 2)
+ return A({}, t[0], t[1])
}),
),
- L(
+ D(
Object.entries(e.graphData).map(function (e) {
- var t = D(e, 2)
- return j({}, t[0], t[1])
+ var t = R(e, 2)
+ return A({}, t[0], t[1])
}),
),
),
@@ -27900,91 +41960,91 @@
e.forcegraph.setAttribute('forcegraph', r)
},
}),
- H = r(2212)
- const B = new H.JOQ(),
- F = new H.iMs(),
- V = new H.FM8(),
- U = new H.Pa4(),
- G = new H.Pa4(),
- q = new H.Pa4(),
- W = new H.yGw()
- class K extends H.pBf {
+ B = r(2212)
+ const H = new B.JOQ(),
+ F = new B.iMs(),
+ V = new B.FM8(),
+ W = new B.Pa4(),
+ U = new B.Pa4(),
+ G = new B.Pa4(),
+ q = new B.yGw()
+ class K extends B.pBf {
constructor(e, t, n) {
super(), (n.style.touchAction = 'none')
let r = null,
- i = null
- const o = [],
+ o = null
+ const i = [],
a = this
function s() {
- n.addEventListener('pointermove', l),
- n.addEventListener('pointerdown', c),
+ n.addEventListener('pointermove', c),
+ n.addEventListener('pointerdown', l),
n.addEventListener('pointerup', d),
n.addEventListener('pointerleave', d)
}
function u() {
- n.removeEventListener('pointermove', l),
- n.removeEventListener('pointerdown', c),
+ n.removeEventListener('pointermove', c),
+ n.removeEventListener('pointerdown', l),
n.removeEventListener('pointerup', d),
n.removeEventListener('pointerleave', d),
(n.style.cursor = '')
}
- function l(s) {
+ function c(s) {
if (!1 !== a.enabled) {
if ((f(s), F.setFromCamera(V, t), r))
return (
- F.ray.intersectPlane(B, G) && r.position.copy(G.sub(U).applyMatrix4(W)),
+ F.ray.intersectPlane(H, U) && r.position.copy(U.sub(W).applyMatrix4(q)),
void a.dispatchEvent({ type: 'drag', object: r })
)
if ('mouse' === s.pointerType || 'pen' === s.pointerType)
if (
- ((o.length = 0),
+ ((i.length = 0),
F.setFromCamera(V, t),
- F.intersectObjects(e, !0, o),
- o.length > 0)
+ F.intersectObjects(e, !0, i),
+ i.length > 0)
) {
- const e = o[0].object
- B.setFromNormalAndCoplanarPoint(
- t.getWorldDirection(B.normal),
- q.setFromMatrixPosition(e.matrixWorld),
+ const e = i[0].object
+ H.setFromNormalAndCoplanarPoint(
+ t.getWorldDirection(H.normal),
+ G.setFromMatrixPosition(e.matrixWorld),
),
- i !== e &&
- null !== i &&
- (a.dispatchEvent({ type: 'hoveroff', object: i }),
+ o !== e &&
+ null !== o &&
+ (a.dispatchEvent({ type: 'hoveroff', object: o }),
(n.style.cursor = 'auto'),
- (i = null)),
- i !== e &&
+ (o = null)),
+ o !== e &&
(a.dispatchEvent({ type: 'hoveron', object: e }),
(n.style.cursor = 'pointer'),
- (i = e))
+ (o = e))
} else
- null !== i &&
- (a.dispatchEvent({ type: 'hoveroff', object: i }),
+ null !== o &&
+ (a.dispatchEvent({ type: 'hoveroff', object: o }),
(n.style.cursor = 'auto'),
- (i = null))
+ (o = null))
}
}
- function c(i) {
+ function l(o) {
!1 !== a.enabled &&
- (f(i),
- (o.length = 0),
+ (f(o),
+ (i.length = 0),
F.setFromCamera(V, t),
- F.intersectObjects(e, !0, o),
- o.length > 0 &&
- ((r = !0 === a.transformGroup ? e[0] : o[0].object),
- B.setFromNormalAndCoplanarPoint(
- t.getWorldDirection(B.normal),
- q.setFromMatrixPosition(r.matrixWorld),
+ F.intersectObjects(e, !0, i),
+ i.length > 0 &&
+ ((r = !0 === a.transformGroup ? e[0] : i[0].object),
+ H.setFromNormalAndCoplanarPoint(
+ t.getWorldDirection(H.normal),
+ G.setFromMatrixPosition(r.matrixWorld),
),
- F.ray.intersectPlane(B, G) &&
- (W.copy(r.parent.matrixWorld).invert(),
- U.copy(G).sub(q.setFromMatrixPosition(r.matrixWorld))),
+ F.ray.intersectPlane(H, U) &&
+ (q.copy(r.parent.matrixWorld).invert(),
+ W.copy(U).sub(G.setFromMatrixPosition(r.matrixWorld))),
(n.style.cursor = 'move'),
a.dispatchEvent({ type: 'dragstart', object: r })))
}
function d() {
!1 !== a.enabled &&
(r && (a.dispatchEvent({ type: 'dragend', object: r }), (r = null)),
- (n.style.cursor = i ? 'pointer' : 'auto'))
+ (n.style.cursor = o ? 'pointer' : 'auto'))
}
function f(e) {
const t = n.getBoundingClientRect()
@@ -28004,11 +42064,11 @@
})
}
}
- var Z = r(1398)
- const $ = { type: 'change' },
- X = { type: 'start' },
+ var Z = r(81398)
+ const X = { type: 'change' },
+ $ = { type: 'start' },
Y = { type: 'end' }
- class Q extends H.pBf {
+ class Q extends B.pBf {
constructor(e, t) {
super(),
void 0 === t &&
@@ -28021,8 +42081,8 @@
)
const n = this,
r = -1,
- i = 0,
- o = 1,
+ o = 0,
+ i = 1,
a = 2,
s = 3,
u = 4
@@ -28042,26 +42102,26 @@
(this.minDistance = 0),
(this.maxDistance = 1 / 0),
(this.keys = ['KeyA', 'KeyS', 'KeyD']),
- (this.mouseButtons = { LEFT: H.RsA.ROTATE, MIDDLE: H.RsA.DOLLY, RIGHT: H.RsA.PAN }),
- (this.target = new H.Pa4())
- const l = 1e-6,
- c = new H.Pa4()
+ (this.mouseButtons = { LEFT: B.RsA.ROTATE, MIDDLE: B.RsA.DOLLY, RIGHT: B.RsA.PAN }),
+ (this.target = new B.Pa4())
+ const c = 1e-6,
+ l = new B.Pa4()
let d = 1,
f = r,
h = r,
p = 0,
v = 0,
m = 0
- const g = new H.Pa4(),
- y = new H.FM8(),
- b = new H.FM8(),
- w = new H.Pa4(),
- x = new H.FM8(),
- E = new H.FM8(),
- k = new H.FM8(),
- _ = new H.FM8(),
- T = [],
- O = {}
+ const g = new B.Pa4(),
+ y = new B.FM8(),
+ b = new B.FM8(),
+ w = new B.Pa4(),
+ _ = new B.FM8(),
+ x = new B.FM8(),
+ k = new B.FM8(),
+ E = new B.FM8(),
+ O = [],
+ T = {}
;(this.target0 = this.target.clone()),
(this.position0 = this.object.position.clone()),
(this.up0 = this.object.up.clone()),
@@ -28075,7 +42135,7 @@
(n.screen.height = e.height)
})
const C = (function () {
- const e = new H.FM8()
+ const e = new B.FM8()
return function (t, r) {
return (
e.set((t - n.screen.left) / n.screen.width, (r - n.screen.top) / n.screen.height),
@@ -28083,8 +42143,8 @@
)
}
})(),
- S = (function () {
- const e = new H.FM8()
+ M = (function () {
+ const e = new B.FM8()
return function (t, r) {
return (
e.set(
@@ -28095,39 +42155,39 @@
)
}
})()
- function A(e) {
+ function S(e) {
!1 !== n.enabled &&
- (0 === T.length &&
+ (0 === O.length &&
(n.domElement.ownerDocument.addEventListener('pointermove', P),
- n.domElement.ownerDocument.addEventListener('pointerup', M)),
+ n.domElement.ownerDocument.addEventListener('pointerup', j)),
(function (e) {
- T.push(e)
+ O.push(e)
})(e),
'touch' === e.pointerType
? (function (e) {
- switch ((z(e), T.length)) {
+ switch ((z(e), O.length)) {
case 1:
- ;(f = s), b.copy(S(T[0].pageX, T[0].pageY)), y.copy(b)
+ ;(f = s), b.copy(M(O[0].pageX, O[0].pageY)), y.copy(b)
break
default:
f = u
- const e = T[0].pageX - T[1].pageX,
- t = T[0].pageY - T[1].pageY
+ const e = O[0].pageX - O[1].pageX,
+ t = O[0].pageY - O[1].pageY
v = p = Math.sqrt(e * e + t * t)
- const n = (T[0].pageX + T[1].pageX) / 2,
- r = (T[0].pageY + T[1].pageY) / 2
- k.copy(C(n, r)), _.copy(k)
+ const n = (O[0].pageX + O[1].pageX) / 2,
+ r = (O[0].pageY + O[1].pageY) / 2
+ k.copy(C(n, r)), E.copy(k)
}
- n.dispatchEvent(X)
+ n.dispatchEvent($)
})(e)
: (function (e) {
if (f === r)
switch (e.button) {
case n.mouseButtons.LEFT:
- f = i
+ f = o
break
case n.mouseButtons.MIDDLE:
- f = o
+ f = i
break
case n.mouseButtons.RIGHT:
f = a
@@ -28136,129 +42196,129 @@
f = r
}
const t = h !== r ? h : f
- t !== i || n.noRotate
- ? t !== o || n.noZoom
- ? t !== a || n.noPan || (k.copy(C(e.pageX, e.pageY)), _.copy(k))
- : (x.copy(C(e.pageX, e.pageY)), E.copy(x))
- : (b.copy(S(e.pageX, e.pageY)), y.copy(b))
+ t !== o || n.noRotate
+ ? t !== i || n.noZoom
+ ? t !== a || n.noPan || (k.copy(C(e.pageX, e.pageY)), E.copy(k))
+ : (_.copy(C(e.pageX, e.pageY)), x.copy(_))
+ : (b.copy(M(e.pageX, e.pageY)), y.copy(b))
n.domElement.ownerDocument.addEventListener('pointermove', P),
- n.domElement.ownerDocument.addEventListener('pointerup', M),
- n.dispatchEvent(X)
+ n.domElement.ownerDocument.addEventListener('pointerup', j),
+ n.dispatchEvent($)
})(e))
}
function P(e) {
!1 !== n.enabled &&
('touch' === e.pointerType
? (function (e) {
- switch ((z(e), T.length)) {
+ switch ((z(e), O.length)) {
case 1:
- y.copy(b), b.copy(S(e.pageX, e.pageY))
+ y.copy(b), b.copy(M(e.pageX, e.pageY))
break
default:
const t = (function (e) {
- const t = e.pointerId === T[0].pointerId ? T[1] : T[0]
- return O[t.pointerId]
+ const t = e.pointerId === O[0].pointerId ? O[1] : O[0]
+ return T[t.pointerId]
})(e),
n = e.pageX - t.x,
r = e.pageY - t.y
v = Math.sqrt(n * n + r * r)
- const i = (e.pageX + t.x) / 2,
- o = (e.pageY + t.y) / 2
- _.copy(C(i, o))
+ const o = (e.pageX + t.x) / 2,
+ i = (e.pageY + t.y) / 2
+ E.copy(C(o, i))
}
})(e)
: (function (e) {
const t = h !== r ? h : f
- t !== i || n.noRotate
- ? t !== o || n.noZoom
- ? t !== a || n.noPan || _.copy(C(e.pageX, e.pageY))
- : E.copy(C(e.pageX, e.pageY))
- : (y.copy(b), b.copy(S(e.pageX, e.pageY)))
+ t !== o || n.noRotate
+ ? t !== i || n.noZoom
+ ? t !== a || n.noPan || E.copy(C(e.pageX, e.pageY))
+ : x.copy(C(e.pageX, e.pageY))
+ : (y.copy(b), b.copy(M(e.pageX, e.pageY)))
})(e))
}
- function M(e) {
+ function j(e) {
!1 !== n.enabled &&
('touch' === e.pointerType
? (function (e) {
- switch (T.length) {
+ switch (O.length) {
case 0:
f = r
break
case 1:
- ;(f = s), b.copy(S(e.pageX, e.pageY)), y.copy(b)
+ ;(f = s), b.copy(M(e.pageX, e.pageY)), y.copy(b)
}
n.dispatchEvent(Y)
})(e)
: ((f = r),
n.domElement.ownerDocument.removeEventListener('pointermove', P),
- n.domElement.ownerDocument.removeEventListener('pointerup', M),
+ n.domElement.ownerDocument.removeEventListener('pointerup', j),
n.dispatchEvent(Y)),
- I(e),
- 0 === T.length &&
+ N(e),
+ 0 === O.length &&
(n.domElement.ownerDocument.removeEventListener('pointermove', P),
- n.domElement.ownerDocument.removeEventListener('pointerup', M)))
+ n.domElement.ownerDocument.removeEventListener('pointerup', j)))
}
- function R(e) {
- I(e)
+ function I(e) {
+ N(e)
}
- function j(e) {
+ function A(e) {
!1 !== n.enabled &&
- (window.removeEventListener('keydown', j),
+ (window.removeEventListener('keydown', A),
h === r &&
- (e.code !== n.keys[i] || n.noRotate
- ? e.code !== n.keys[o] || n.noZoom
+ (e.code !== n.keys[o] || n.noRotate
+ ? e.code !== n.keys[i] || n.noZoom
? e.code !== n.keys[a] || n.noPan || (h = a)
- : (h = o)
- : (h = i)))
+ : (h = i)
+ : (h = o)))
}
- function D() {
- !1 !== n.enabled && ((h = r), window.addEventListener('keydown', j))
+ function R() {
+ !1 !== n.enabled && ((h = r), window.addEventListener('keydown', A))
}
- function L(e) {
+ function D(e) {
if (!1 !== n.enabled && !0 !== n.noZoom) {
switch ((e.preventDefault(), e.deltaMode)) {
case 2:
- x.y -= 0.025 * e.deltaY
+ _.y -= 0.025 * e.deltaY
break
case 1:
- x.y -= 0.01 * e.deltaY
+ _.y -= 0.01 * e.deltaY
break
default:
- x.y -= 25e-5 * e.deltaY
+ _.y -= 25e-5 * e.deltaY
}
- n.dispatchEvent(X), n.dispatchEvent(Y)
+ n.dispatchEvent($), n.dispatchEvent(Y)
}
}
- function N(e) {
+ function L(e) {
!1 !== n.enabled && e.preventDefault()
}
- function I(e) {
- delete O[e.pointerId]
- for (let t = 0; t < T.length; t++)
- if (T[t].pointerId == e.pointerId) return void T.splice(t, 1)
+ function N(e) {
+ delete T[e.pointerId]
+ for (let t = 0; t < O.length; t++)
+ if (O[t].pointerId == e.pointerId) return void O.splice(t, 1)
}
function z(e) {
- let t = O[e.pointerId]
- void 0 === t && ((t = new H.FM8()), (O[e.pointerId] = t)), t.set(e.pageX, e.pageY)
+ let t = T[e.pointerId]
+ void 0 === t && ((t = new B.FM8()), (T[e.pointerId] = t)), t.set(e.pageX, e.pageY)
}
;(this.rotateCamera = (function () {
- const e = new H.Pa4(),
- t = new H._fP(),
- r = new H.Pa4(),
- i = new H.Pa4(),
- o = new H.Pa4(),
- a = new H.Pa4()
+ const e = new B.Pa4(),
+ t = new B._fP(),
+ r = new B.Pa4(),
+ o = new B.Pa4(),
+ i = new B.Pa4(),
+ a = new B.Pa4()
return function () {
a.set(b.x - y.x, b.y - y.y, 0)
let s = a.length()
s
? (g.copy(n.object.position).sub(n.target),
r.copy(g).normalize(),
- i.copy(n.object.up).normalize(),
- o.crossVectors(i, r).normalize(),
- i.setLength(b.y - y.y),
- o.setLength(b.x - y.x),
- a.copy(i.add(o)),
+ o.copy(n.object.up).normalize(),
+ i.crossVectors(o, r).normalize(),
+ o.setLength(b.y - y.y),
+ i.setLength(b.x - y.x),
+ a.copy(o.add(i)),
e.crossVectors(a, g).normalize(),
(s *= n.rotateSpeed),
t.setFromAxisAngle(e, s),
@@ -28286,7 +42346,7 @@
: n.object.isOrthographicCamera
? ((n.object.zoom *= e), n.object.updateProjectionMatrix())
: console.warn('THREE.TrackballControls: Unsupported camera type'))
- : ((e = 1 + (E.y - x.y) * n.zoomSpeed),
+ : ((e = 1 + (x.y - _.y) * n.zoomSpeed),
1 !== e &&
e > 0 &&
(n.object.isPerspectiveCamera
@@ -28294,14 +42354,14 @@
: n.object.isOrthographicCamera
? ((n.object.zoom /= e), n.object.updateProjectionMatrix())
: console.warn('THREE.TrackballControls: Unsupported camera type')),
- n.staticMoving ? x.copy(E) : (x.y += (E.y - x.y) * this.dynamicDampingFactor))
+ n.staticMoving ? _.copy(x) : (_.y += (x.y - _.y) * this.dynamicDampingFactor))
}),
(this.panCamera = (function () {
- const e = new H.FM8(),
- t = new H.Pa4(),
- r = new H.Pa4()
+ const e = new B.FM8(),
+ t = new B.Pa4(),
+ r = new B.Pa4()
return function () {
- if ((e.copy(_).sub(k), e.lengthSq())) {
+ if ((e.copy(E).sub(k), e.lengthSq())) {
if (n.object.isOrthographicCamera) {
const t =
(n.object.right - n.object.left) / n.object.zoom / n.domElement.clientWidth,
@@ -28315,17 +42375,17 @@
n.object.position.add(r),
n.target.add(r),
n.staticMoving
- ? k.copy(_)
- : k.add(e.subVectors(_, k).multiplyScalar(n.dynamicDampingFactor))
+ ? k.copy(E)
+ : k.add(e.subVectors(E, k).multiplyScalar(n.dynamicDampingFactor))
}
}
})()),
(this.checkDistances = function () {
;(n.noZoom && n.noPan) ||
(g.lengthSq() > n.maxDistance * n.maxDistance &&
- (n.object.position.addVectors(n.target, g.setLength(n.maxDistance)), x.copy(E)),
+ (n.object.position.addVectors(n.target, g.setLength(n.maxDistance)), _.copy(x)),
g.lengthSq() < n.minDistance * n.minDistance &&
- (n.object.position.addVectors(n.target, g.setLength(n.minDistance)), x.copy(E)))
+ (n.object.position.addVectors(n.target, g.setLength(n.minDistance)), _.copy(x)))
}),
(this.update = function () {
g.subVectors(n.object.position, n.target),
@@ -28336,12 +42396,12 @@
n.object.isPerspectiveCamera
? (n.checkDistances(),
n.object.lookAt(n.target),
- c.distanceToSquared(n.object.position) > l &&
- (n.dispatchEvent($), c.copy(n.object.position)))
+ l.distanceToSquared(n.object.position) > c &&
+ (n.dispatchEvent(X), l.copy(n.object.position)))
: n.object.isOrthographicCamera
? (n.object.lookAt(n.target),
- (c.distanceToSquared(n.object.position) > l || d !== n.object.zoom) &&
- (n.dispatchEvent($), c.copy(n.object.position), (d = n.object.zoom)))
+ (l.distanceToSquared(n.object.position) > c || d !== n.object.zoom) &&
+ (n.dispatchEvent(X), l.copy(n.object.position), (d = n.object.zoom)))
: console.warn('THREE.TrackballControls: Unsupported camera type')
}),
(this.reset = function () {
@@ -28354,24 +42414,24 @@
n.object.updateProjectionMatrix(),
g.subVectors(n.object.position, n.target),
n.object.lookAt(n.target),
- n.dispatchEvent($),
- c.copy(n.object.position),
+ n.dispatchEvent(X),
+ l.copy(n.object.position),
(d = n.object.zoom)
}),
(this.dispose = function () {
- n.domElement.removeEventListener('contextmenu', N),
- n.domElement.removeEventListener('pointerdown', A),
- n.domElement.removeEventListener('pointercancel', R),
- n.domElement.removeEventListener('wheel', L),
- window.removeEventListener('keydown', j),
- window.removeEventListener('keyup', D)
- }),
- this.domElement.addEventListener('contextmenu', N),
- this.domElement.addEventListener('pointerdown', A),
- this.domElement.addEventListener('pointercancel', R),
- this.domElement.addEventListener('wheel', L, { passive: !1 }),
- window.addEventListener('keydown', j),
- window.addEventListener('keyup', D),
+ n.domElement.removeEventListener('contextmenu', L),
+ n.domElement.removeEventListener('pointerdown', S),
+ n.domElement.removeEventListener('pointercancel', I),
+ n.domElement.removeEventListener('wheel', D),
+ window.removeEventListener('keydown', A),
+ window.removeEventListener('keyup', R)
+ }),
+ this.domElement.addEventListener('contextmenu', L),
+ this.domElement.addEventListener('pointerdown', S),
+ this.domElement.addEventListener('pointercancel', I),
+ this.domElement.addEventListener('wheel', D, { passive: !1 }),
+ window.addEventListener('keydown', A),
+ window.addEventListener('keyup', R),
this.handleResize(),
this.update()
}
@@ -28379,7 +42439,7 @@
const J = { type: 'change' },
ee = { type: 'start' },
te = { type: 'end' }
- class ne extends H.pBf {
+ class ne extends B.pBf {
constructor(e, t) {
super(),
void 0 === t &&
@@ -28394,7 +42454,7 @@
(this.domElement = t),
(this.domElement.style.touchAction = 'none'),
(this.enabled = !0),
- (this.target = new H.Pa4()),
+ (this.target = new B.Pa4()),
(this.minDistance = 0),
(this.maxDistance = 1 / 0),
(this.minZoom = 0),
@@ -28421,8 +42481,8 @@
RIGHT: 'ArrowRight',
BOTTOM: 'ArrowDown',
}),
- (this.mouseButtons = { LEFT: H.RsA.ROTATE, MIDDLE: H.RsA.DOLLY, RIGHT: H.RsA.PAN }),
- (this.touches = { ONE: H.QmN.ROTATE, TWO: H.QmN.DOLLY_PAN }),
+ (this.mouseButtons = { LEFT: B.RsA.ROTATE, MIDDLE: B.RsA.DOLLY, RIGHT: B.RsA.PAN }),
+ (this.touches = { ONE: B.QmN.ROTATE, TWO: B.QmN.DOLLY_PAN }),
(this.target0 = this.target.clone()),
(this.position0 = this.object.position.clone()),
(this.zoom0 = this.object.zoom),
@@ -28434,7 +42494,7 @@
return a.theta
}),
(this.listenToKeyEvents = function (e) {
- e.addEventListener('keydown', G), (this._domElementKeyEvents = e)
+ e.addEventListener('keydown', U), (this._domElementKeyEvents = e)
}),
(this.saveState = function () {
n.target0.copy(n.target),
@@ -28448,21 +42508,21 @@
n.object.updateProjectionMatrix(),
n.dispatchEvent(J),
n.update(),
- (i = r.NONE)
+ (o = r.NONE)
}),
(this.update = (function () {
- const t = new H.Pa4(),
- d = new H._fP().setFromUnitVectors(e.up, new H.Pa4(0, 1, 0)),
+ const t = new B.Pa4(),
+ d = new B._fP().setFromUnitVectors(e.up, new B.Pa4(0, 1, 0)),
f = d.clone().invert(),
- h = new H.Pa4(),
- p = new H._fP(),
+ h = new B.Pa4(),
+ p = new B._fP(),
v = 2 * Math.PI
return function () {
const e = n.object.position
t.copy(e).sub(n.target),
t.applyQuaternion(d),
a.setFromVector3(t),
- n.autoRotate && i === r.NONE && k(((2 * Math.PI) / 60 / 60) * n.autoRotateSpeed),
+ n.autoRotate && o === r.NONE && k(((2 * Math.PI) / 60 / 60) * n.autoRotateSpeed),
n.enableDamping
? ((a.theta += s.theta * n.dampingFactor), (a.phi += s.phi * n.dampingFactor))
: ((a.theta += s.theta), (a.phi += s.phi))
@@ -28484,8 +42544,8 @@
(a.radius *= u),
(a.radius = Math.max(n.minDistance, Math.min(n.maxDistance, a.radius))),
!0 === n.enableDamping
- ? n.target.addScaledVector(l, n.dampingFactor)
- : n.target.add(l),
+ ? n.target.addScaledVector(c, n.dampingFactor)
+ : n.target.add(c),
t.setFromSpherical(a),
t.applyQuaternion(f),
e.copy(n.target).add(t),
@@ -28493,31 +42553,31 @@
!0 === n.enableDamping
? ((s.theta *= 1 - n.dampingFactor),
(s.phi *= 1 - n.dampingFactor),
- l.multiplyScalar(1 - n.dampingFactor))
- : (s.set(0, 0, 0), l.set(0, 0, 0)),
+ c.multiplyScalar(1 - n.dampingFactor))
+ : (s.set(0, 0, 0), c.set(0, 0, 0)),
(u = 1),
!!(
- c ||
- h.distanceToSquared(n.object.position) > o ||
- 8 * (1 - p.dot(n.object.quaternion)) > o
+ l ||
+ h.distanceToSquared(n.object.position) > i ||
+ 8 * (1 - p.dot(n.object.quaternion)) > i
) &&
(n.dispatchEvent(J),
h.copy(n.object.position),
p.copy(n.object.quaternion),
- (c = !1),
+ (l = !1),
!0)
)
}
})()),
(this.dispose = function () {
- n.domElement.removeEventListener('contextmenu', q),
+ n.domElement.removeEventListener('contextmenu', G),
n.domElement.removeEventListener('pointerdown', z),
n.domElement.removeEventListener('pointercancel', V),
- n.domElement.removeEventListener('wheel', U),
- n.domElement.ownerDocument.removeEventListener('pointermove', B),
+ n.domElement.removeEventListener('wheel', W),
+ n.domElement.ownerDocument.removeEventListener('pointermove', H),
n.domElement.ownerDocument.removeEventListener('pointerup', F),
null !== n._domElementKeyEvents &&
- n._domElementKeyEvents.removeEventListener('keydown', G)
+ n._domElementKeyEvents.removeEventListener('keydown', U)
})
const n = this,
r = {
@@ -28530,68 +42590,68 @@
TOUCH_DOLLY_PAN: 5,
TOUCH_DOLLY_ROTATE: 6,
}
- let i = r.NONE
- const o = 1e-6,
- a = new H.$V(),
- s = new H.$V()
+ let o = r.NONE
+ const i = 1e-6,
+ a = new B.$V(),
+ s = new B.$V()
let u = 1
- const l = new H.Pa4()
- let c = !1
- const d = new H.FM8(),
- f = new H.FM8(),
- h = new H.FM8(),
- p = new H.FM8(),
- v = new H.FM8(),
- m = new H.FM8(),
- g = new H.FM8(),
- y = new H.FM8(),
- b = new H.FM8(),
+ const c = new B.Pa4()
+ let l = !1
+ const d = new B.FM8(),
+ f = new B.FM8(),
+ h = new B.FM8(),
+ p = new B.FM8(),
+ v = new B.FM8(),
+ m = new B.FM8(),
+ g = new B.FM8(),
+ y = new B.FM8(),
+ b = new B.FM8(),
w = [],
- x = {}
- function E() {
+ _ = {}
+ function x() {
return Math.pow(0.95, n.zoomSpeed)
}
function k(e) {
s.theta -= e
}
- function _(e) {
+ function E(e) {
s.phi -= e
}
- const T = (function () {
- const e = new H.Pa4()
+ const O = (function () {
+ const e = new B.Pa4()
return function (t, n) {
- e.setFromMatrixColumn(n, 0), e.multiplyScalar(-t), l.add(e)
+ e.setFromMatrixColumn(n, 0), e.multiplyScalar(-t), c.add(e)
}
})(),
- O = (function () {
- const e = new H.Pa4()
+ T = (function () {
+ const e = new B.Pa4()
return function (t, r) {
!0 === n.screenSpacePanning
? e.setFromMatrixColumn(r, 1)
: (e.setFromMatrixColumn(r, 0), e.crossVectors(n.object.up, e)),
e.multiplyScalar(t),
- l.add(e)
+ c.add(e)
}
})(),
C = (function () {
- const e = new H.Pa4()
+ const e = new B.Pa4()
return function (t, r) {
- const i = n.domElement
+ const o = n.domElement
if (n.object.isPerspectiveCamera) {
- const o = n.object.position
- e.copy(o).sub(n.target)
+ const i = n.object.position
+ e.copy(i).sub(n.target)
let a = e.length()
;(a *= Math.tan(((n.object.fov / 2) * Math.PI) / 180)),
- T((2 * t * a) / i.clientHeight, n.object.matrix),
- O((2 * r * a) / i.clientHeight, n.object.matrix)
+ O((2 * t * a) / o.clientHeight, n.object.matrix),
+ T((2 * r * a) / o.clientHeight, n.object.matrix)
} else
n.object.isOrthographicCamera
- ? (T(
- (t * (n.object.right - n.object.left)) / n.object.zoom / i.clientWidth,
+ ? (O(
+ (t * (n.object.right - n.object.left)) / n.object.zoom / o.clientWidth,
n.object.matrix,
),
- O(
- (r * (n.object.top - n.object.bottom)) / n.object.zoom / i.clientHeight,
+ T(
+ (r * (n.object.top - n.object.bottom)) / n.object.zoom / o.clientHeight,
n.object.matrix,
))
: (console.warn(
@@ -28600,25 +42660,25 @@
(n.enablePan = !1))
}
})()
- function S(e) {
+ function M(e) {
n.object.isPerspectiveCamera
? (u /= e)
: n.object.isOrthographicCamera
? ((n.object.zoom = Math.max(n.minZoom, Math.min(n.maxZoom, n.object.zoom * e))),
n.object.updateProjectionMatrix(),
- (c = !0))
+ (l = !0))
: (console.warn(
'WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.',
),
(n.enableZoom = !1))
}
- function A(e) {
+ function S(e) {
n.object.isPerspectiveCamera
? (u *= e)
: n.object.isOrthographicCamera
? ((n.object.zoom = Math.max(n.minZoom, Math.min(n.maxZoom, n.object.zoom / e))),
n.object.updateProjectionMatrix(),
- (c = !0))
+ (l = !0))
: (console.warn(
'WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled.',
),
@@ -28627,10 +42687,10 @@
function P(e) {
d.set(e.clientX, e.clientY)
}
- function M(e) {
+ function j(e) {
p.set(e.clientX, e.clientY)
}
- function R() {
+ function I() {
if (1 === w.length) d.set(w[0].pageX, w[0].pageY)
else {
const e = 0.5 * (w[0].pageX + w[1].pageX),
@@ -28638,7 +42698,7 @@
d.set(e, t)
}
}
- function j() {
+ function A() {
if (1 === w.length) p.set(w[0].pageX, w[0].pageY)
else {
const e = 0.5 * (w[0].pageX + w[1].pageX),
@@ -28646,13 +42706,13 @@
p.set(e, t)
}
}
- function D() {
+ function R() {
const e = w[0].pageX - w[1].pageX,
t = w[0].pageY - w[1].pageY,
n = Math.sqrt(e * e + t * t)
g.set(0, n)
}
- function L(e) {
+ function D(e) {
if (1 == w.length) f.set(e.pageX, e.pageY)
else {
const t = Z(e),
@@ -28663,10 +42723,10 @@
h.subVectors(f, d).multiplyScalar(n.rotateSpeed)
const t = n.domElement
k((2 * Math.PI * h.x) / t.clientHeight),
- _((2 * Math.PI * h.y) / t.clientHeight),
+ E((2 * Math.PI * h.y) / t.clientHeight),
d.copy(f)
}
- function N(e) {
+ function L(e) {
if (1 === w.length) v.set(e.pageX, e.pageY)
else {
const t = Z(e),
@@ -28676,17 +42736,17 @@
}
m.subVectors(v, p).multiplyScalar(n.panSpeed), C(m.x, m.y), p.copy(v)
}
- function I(e) {
+ function N(e) {
const t = Z(e),
r = e.pageX - t.x,
- i = e.pageY - t.y,
- o = Math.sqrt(r * r + i * i)
- y.set(0, o), b.set(0, Math.pow(y.y / g.y, n.zoomSpeed)), S(b.y), g.copy(y)
+ o = e.pageY - t.y,
+ i = Math.sqrt(r * r + o * o)
+ y.set(0, i), b.set(0, Math.pow(y.y / g.y, n.zoomSpeed)), M(b.y), g.copy(y)
}
function z(e) {
!1 !== n.enabled &&
(0 === w.length &&
- (n.domElement.ownerDocument.addEventListener('pointermove', B),
+ (n.domElement.ownerDocument.addEventListener('pointermove', H),
n.domElement.ownerDocument.addEventListener('pointerup', F)),
(function (e) {
w.push(e)
@@ -28696,36 +42756,36 @@
switch ((K(e), w.length)) {
case 1:
switch (n.touches.ONE) {
- case H.QmN.ROTATE:
+ case B.QmN.ROTATE:
if (!1 === n.enableRotate) return
- R(), (i = r.TOUCH_ROTATE)
+ I(), (o = r.TOUCH_ROTATE)
break
- case H.QmN.PAN:
+ case B.QmN.PAN:
if (!1 === n.enablePan) return
- j(), (i = r.TOUCH_PAN)
+ A(), (o = r.TOUCH_PAN)
break
default:
- i = r.NONE
+ o = r.NONE
}
break
case 2:
switch (n.touches.TWO) {
- case H.QmN.DOLLY_PAN:
+ case B.QmN.DOLLY_PAN:
if (!1 === n.enableZoom && !1 === n.enablePan) return
- n.enableZoom && D(), n.enablePan && j(), (i = r.TOUCH_DOLLY_PAN)
+ n.enableZoom && R(), n.enablePan && A(), (o = r.TOUCH_DOLLY_PAN)
break
- case H.QmN.DOLLY_ROTATE:
+ case B.QmN.DOLLY_ROTATE:
if (!1 === n.enableZoom && !1 === n.enableRotate) return
- n.enableZoom && D(), n.enableRotate && R(), (i = r.TOUCH_DOLLY_ROTATE)
+ n.enableZoom && R(), n.enableRotate && I(), (o = r.TOUCH_DOLLY_ROTATE)
break
default:
- i = r.NONE
+ o = r.NONE
}
break
default:
- i = r.NONE
+ o = r.NONE
}
- i !== r.NONE && n.dispatchEvent(ee)
+ o !== r.NONE && n.dispatchEvent(ee)
})(e)
: (function (e) {
let t
@@ -28743,71 +42803,71 @@
t = -1
}
switch (t) {
- case H.RsA.DOLLY:
+ case B.RsA.DOLLY:
if (!1 === n.enableZoom) return
!(function (e) {
g.set(e.clientX, e.clientY)
})(e),
- (i = r.DOLLY)
+ (o = r.DOLLY)
break
- case H.RsA.ROTATE:
+ case B.RsA.ROTATE:
if (e.ctrlKey || e.metaKey || e.shiftKey) {
if (!1 === n.enablePan) return
- M(e), (i = r.PAN)
+ j(e), (o = r.PAN)
} else {
if (!1 === n.enableRotate) return
- P(e), (i = r.ROTATE)
+ P(e), (o = r.ROTATE)
}
break
- case H.RsA.PAN:
+ case B.RsA.PAN:
if (e.ctrlKey || e.metaKey || e.shiftKey) {
if (!1 === n.enableRotate) return
- P(e), (i = r.ROTATE)
+ P(e), (o = r.ROTATE)
} else {
if (!1 === n.enablePan) return
- M(e), (i = r.PAN)
+ j(e), (o = r.PAN)
}
break
default:
- i = r.NONE
+ o = r.NONE
}
- i !== r.NONE && n.dispatchEvent(ee)
+ o !== r.NONE && n.dispatchEvent(ee)
})(e))
}
- function B(e) {
+ function H(e) {
!1 !== n.enabled &&
('touch' === e.pointerType
? (function (e) {
- switch ((K(e), i)) {
+ switch ((K(e), o)) {
case r.TOUCH_ROTATE:
if (!1 === n.enableRotate) return
- L(e), n.update()
+ D(e), n.update()
break
case r.TOUCH_PAN:
if (!1 === n.enablePan) return
- N(e), n.update()
+ L(e), n.update()
break
case r.TOUCH_DOLLY_PAN:
if (!1 === n.enableZoom && !1 === n.enablePan) return
!(function (e) {
- n.enableZoom && I(e), n.enablePan && N(e)
+ n.enableZoom && N(e), n.enablePan && L(e)
})(e),
n.update()
break
case r.TOUCH_DOLLY_ROTATE:
if (!1 === n.enableZoom && !1 === n.enableRotate) return
!(function (e) {
- n.enableZoom && I(e), n.enableRotate && L(e)
+ n.enableZoom && N(e), n.enableRotate && D(e)
})(e),
n.update()
break
default:
- i = r.NONE
+ o = r.NONE
}
})(e)
: (function (e) {
if (!1 === n.enabled) return
- switch (i) {
+ switch (o) {
case r.ROTATE:
if (!1 === n.enableRotate) return
!(function (e) {
@@ -28815,7 +42875,7 @@
h.subVectors(f, d).multiplyScalar(n.rotateSpeed)
const t = n.domElement
k((2 * Math.PI * h.x) / t.clientHeight),
- _((2 * Math.PI * h.y) / t.clientHeight),
+ E((2 * Math.PI * h.y) / t.clientHeight),
d.copy(f),
n.update()
})(e)
@@ -28825,7 +42885,7 @@
!(function (e) {
y.set(e.clientX, e.clientY),
b.subVectors(y, g),
- b.y > 0 ? S(E()) : b.y < 0 && A(E()),
+ b.y > 0 ? M(x()) : b.y < 0 && S(x()),
g.copy(y),
n.update()
})(e)
@@ -28846,27 +42906,27 @@
!1 !== n.enabled &&
(e.pointerType,
n.dispatchEvent(te),
- (i = r.NONE),
- W(e),
+ (o = r.NONE),
+ q(e),
0 === w.length &&
- (n.domElement.ownerDocument.removeEventListener('pointermove', B),
+ (n.domElement.ownerDocument.removeEventListener('pointermove', H),
n.domElement.ownerDocument.removeEventListener('pointerup', F)))
}
function V(e) {
- W(e)
+ q(e)
}
- function U(e) {
+ function W(e) {
!1 === n.enabled ||
!1 === n.enableZoom ||
- (i !== r.NONE && i !== r.ROTATE) ||
+ (o !== r.NONE && o !== r.ROTATE) ||
(e.preventDefault(),
n.dispatchEvent(ee),
(function (e) {
- e.deltaY < 0 ? A(E()) : e.deltaY > 0 && S(E()), n.update()
+ e.deltaY < 0 ? S(x()) : e.deltaY > 0 && M(x()), n.update()
})(e),
n.dispatchEvent(te))
}
- function G(e) {
+ function U(e) {
!1 !== n.enabled &&
!1 !== n.enablePan &&
(function (e) {
@@ -28887,31 +42947,31 @@
t && (e.preventDefault(), n.update())
})(e)
}
- function q(e) {
+ function G(e) {
!1 !== n.enabled && e.preventDefault()
}
- function W(e) {
- delete x[e.pointerId]
+ function q(e) {
+ delete _[e.pointerId]
for (let t = 0; t < w.length; t++)
if (w[t].pointerId == e.pointerId) return void w.splice(t, 1)
}
function K(e) {
- let t = x[e.pointerId]
- void 0 === t && ((t = new H.FM8()), (x[e.pointerId] = t)), t.set(e.pageX, e.pageY)
+ let t = _[e.pointerId]
+ void 0 === t && ((t = new B.FM8()), (_[e.pointerId] = t)), t.set(e.pageX, e.pageY)
}
function Z(e) {
const t = e.pointerId === w[0].pointerId ? w[1] : w[0]
- return x[t.pointerId]
+ return _[t.pointerId]
}
- n.domElement.addEventListener('contextmenu', q),
+ n.domElement.addEventListener('contextmenu', G),
n.domElement.addEventListener('pointerdown', z),
n.domElement.addEventListener('pointercancel', V),
- n.domElement.addEventListener('wheel', U, { passive: !1 }),
+ n.domElement.addEventListener('wheel', W, { passive: !1 }),
this.update()
}
}
const re = { type: 'change' }
- class ie extends H.pBf {
+ class oe extends B.pBf {
constructor(e, t) {
super(),
void 0 === t &&
@@ -28927,9 +42987,9 @@
(this.autoForward = !1)
const n = this,
r = 1e-6,
- i = new H._fP(),
- o = new H.Pa4()
- ;(this.tmpQuaternion = new H._fP()),
+ o = new B._fP(),
+ i = new B.Pa4()
+ ;(this.tmpQuaternion = new B._fP()),
(this.mouseStatus = 0),
(this.moveState = {
up: 0,
@@ -28945,8 +43005,8 @@
rollLeft: 0,
rollRight: 0,
}),
- (this.moveVector = new H.Pa4(0, 0, 0)),
- (this.rotationVector = new H.Pa4(0, 0, 0)),
+ (this.moveVector = new B.Pa4(0, 0, 0)),
+ (this.rotationVector = new B.Pa4(0, 0, 0)),
(this.keydown = function (e) {
if (!e.altKey) {
switch (e.code) {
@@ -29085,9 +43145,9 @@
.set(n.rotationVector.x * a, n.rotationVector.y * a, n.rotationVector.z * a, 1)
.normalize(),
n.object.quaternion.multiply(n.tmpQuaternion),
- (o.distanceToSquared(n.object.position) > r ||
- 8 * (1 - i.dot(n.object.quaternion)) > r) &&
- (n.dispatchEvent(re), i.copy(n.object.quaternion), o.copy(n.object.position))
+ (i.distanceToSquared(n.object.position) > r ||
+ 8 * (1 - o.dot(n.object.quaternion)) > r) &&
+ (n.dispatchEvent(re), o.copy(n.object.quaternion), i.copy(n.object.position))
}),
(this.updateMovementVector = function () {
const e = this.moveState.forward || (this.autoForward && !this.moveState.back) ? 1 : 0
@@ -29109,29 +43169,29 @@
: { size: [window.innerWidth, window.innerHeight], offset: [0, 0] }
}),
(this.dispose = function () {
- this.domElement.removeEventListener('contextmenu', oe),
+ this.domElement.removeEventListener('contextmenu', ie),
this.domElement.removeEventListener('mousedown', s),
this.domElement.removeEventListener('mousemove', a),
this.domElement.removeEventListener('mouseup', u),
- window.removeEventListener('keydown', l),
- window.removeEventListener('keyup', c)
+ window.removeEventListener('keydown', c),
+ window.removeEventListener('keyup', l)
})
const a = this.mousemove.bind(this),
s = this.mousedown.bind(this),
u = this.mouseup.bind(this),
- l = this.keydown.bind(this),
- c = this.keyup.bind(this)
- this.domElement.addEventListener('contextmenu', oe),
+ c = this.keydown.bind(this),
+ l = this.keyup.bind(this)
+ this.domElement.addEventListener('contextmenu', ie),
this.domElement.addEventListener('mousemove', a),
this.domElement.addEventListener('mousedown', s),
this.domElement.addEventListener('mouseup', u),
- window.addEventListener('keydown', l),
- window.addEventListener('keyup', c),
+ window.addEventListener('keydown', c),
+ window.addEventListener('keyup', l),
this.updateMovementVector(),
this.updateRotationVector()
}
}
- function oe(e) {
+ function ie(e) {
e.preventDefault()
}
var ae = {
@@ -29150,13 +43210,13 @@
console.error('THREE.Pass: .render() must be implemented in derived pass.')
}
}
- const ue = new H.iKG(-1, 1, 1, -1, 0, 1),
- le = new H.u9r()
- le.setAttribute('position', new H.a$l([-1, 3, 0, -1, -1, 0, 3, -1, 0], 3)),
- le.setAttribute('uv', new H.a$l([0, 2, 0, 0, 2, 0], 2))
- class ce {
+ const ue = new B.iKG(-1, 1, 1, -1, 0, 1),
+ ce = new B.u9r()
+ ce.setAttribute('position', new B.a$l([-1, 3, 0, -1, -1, 0, 3, -1, 0], 3)),
+ ce.setAttribute('uv', new B.a$l([0, 2, 0, 0, 2, 0], 2))
+ class le {
constructor(e) {
- this._mesh = new H.Kj0(le, e)
+ this._mesh = new B.Kj0(ce, e)
}
dispose() {
this._mesh.geometry.dispose()
@@ -29175,17 +43235,17 @@
constructor(e, t) {
super(),
(this.textureID = void 0 !== t ? t : 'tDiffuse'),
- e instanceof H.jyz
+ e instanceof B.jyz
? ((this.uniforms = e.uniforms), (this.material = e))
: e &&
- ((this.uniforms = H.rDY.clone(e.uniforms)),
- (this.material = new H.jyz({
+ ((this.uniforms = B.rDY.clone(e.uniforms)),
+ (this.material = new B.jyz({
defines: Object.assign({}, e.defines),
uniforms: this.uniforms,
vertexShader: e.vertexShader,
fragmentShader: e.fragmentShader,
}))),
- (this.fsQuad = new ce(this.material))
+ (this.fsQuad = new le(this.material))
}
render(e, t, n) {
this.uniforms[this.textureID] && (this.uniforms[this.textureID].value = n.texture),
@@ -29208,30 +43268,30 @@
}
render(e, t, n) {
const r = e.getContext(),
- i = e.state
- let o, a
- i.buffers.color.setMask(!1),
- i.buffers.depth.setMask(!1),
- i.buffers.color.setLocked(!0),
- i.buffers.depth.setLocked(!0),
- this.inverse ? ((o = 0), (a = 1)) : ((o = 1), (a = 0)),
- i.buffers.stencil.setTest(!0),
- i.buffers.stencil.setOp(r.REPLACE, r.REPLACE, r.REPLACE),
- i.buffers.stencil.setFunc(r.ALWAYS, o, 4294967295),
- i.buffers.stencil.setClear(a),
- i.buffers.stencil.setLocked(!0),
+ o = e.state
+ let i, a
+ o.buffers.color.setMask(!1),
+ o.buffers.depth.setMask(!1),
+ o.buffers.color.setLocked(!0),
+ o.buffers.depth.setLocked(!0),
+ this.inverse ? ((i = 0), (a = 1)) : ((i = 1), (a = 0)),
+ o.buffers.stencil.setTest(!0),
+ o.buffers.stencil.setOp(r.REPLACE, r.REPLACE, r.REPLACE),
+ o.buffers.stencil.setFunc(r.ALWAYS, i, 4294967295),
+ o.buffers.stencil.setClear(a),
+ o.buffers.stencil.setLocked(!0),
e.setRenderTarget(n),
this.clear && e.clear(),
e.render(this.scene, this.camera),
e.setRenderTarget(t),
this.clear && e.clear(),
e.render(this.scene, this.camera),
- i.buffers.color.setLocked(!1),
- i.buffers.depth.setLocked(!1),
- i.buffers.stencil.setLocked(!1),
- i.buffers.stencil.setFunc(r.EQUAL, 1, 4294967295),
- i.buffers.stencil.setOp(r.KEEP, r.KEEP, r.KEEP),
- i.buffers.stencil.setLocked(!0)
+ o.buffers.color.setLocked(!1),
+ o.buffers.depth.setLocked(!1),
+ o.buffers.stencil.setLocked(!1),
+ o.buffers.stencil.setFunc(r.EQUAL, 1, 4294967295),
+ o.buffers.stencil.setOp(r.KEEP, r.KEEP, r.KEEP),
+ o.buffers.stencil.setLocked(!0)
}
}
class he extends se {
@@ -29245,12 +43305,12 @@
class pe {
constructor(e, t) {
if (((this.renderer = e), void 0 === t)) {
- const n = { minFilter: H.wem, magFilter: H.wem, format: H.wk1 },
- r = e.getSize(new H.FM8())
+ const n = { minFilter: B.wem, magFilter: B.wem, format: B.wk1 },
+ r = e.getSize(new B.FM8())
;(this._pixelRatio = e.getPixelRatio()),
(this._width = r.width),
(this._height = r.height),
- ((t = new H.dd2(
+ ((t = new B.dd2(
this._width * this._pixelRatio,
this._height * this._pixelRatio,
n,
@@ -29266,7 +43326,7 @@
void 0 === ae && console.error('THREE.EffectComposer relies on CopyShader'),
void 0 === de && console.error('THREE.EffectComposer relies on ShaderPass'),
(this.copyPass = new de(ae)),
- (this.clock = new H.SUY())
+ (this.clock = new B.SUY())
}
swapBuffers() {
const e = this.readBuffer
@@ -29292,7 +43352,7 @@
void 0 === e && (e = this.clock.getDelta())
const t = this.renderer.getRenderTarget()
let n = !1
- for (let r = 0, i = this.passes.length; r < i; r++) {
+ for (let r = 0, o = this.passes.length; r < o; r++) {
const t = this.passes[r]
if (!1 !== t.enabled) {
if (
@@ -29316,7 +43376,7 @@
}
reset(e) {
if (void 0 === e) {
- const t = this.renderer.getSize(new H.FM8())
+ const t = this.renderer.getSize(new B.FM8())
;(this._pixelRatio = this.renderer.getPixelRatio()),
(this._width = t.width),
(this._height = t.height),
@@ -29337,46 +43397,46 @@
const n = this._width * this._pixelRatio,
r = this._height * this._pixelRatio
this.renderTarget1.setSize(n, r), this.renderTarget2.setSize(n, r)
- for (let i = 0; i < this.passes.length; i++) this.passes[i].setSize(n, r)
+ for (let o = 0; o < this.passes.length; o++) this.passes[o].setSize(n, r)
}
setPixelRatio(e) {
;(this._pixelRatio = e), this.setSize(this._width, this._height)
}
}
- new H.iKG(-1, 1, 1, -1, 0, 1)
- const ve = new H.u9r()
- ve.setAttribute('position', new H.a$l([-1, 3, 0, -1, -1, 0, 3, -1, 0], 3)),
- ve.setAttribute('uv', new H.a$l([0, 2, 0, 0, 2, 0], 2))
+ new B.iKG(-1, 1, 1, -1, 0, 1)
+ const ve = new B.u9r()
+ ve.setAttribute('position', new B.a$l([-1, 3, 0, -1, -1, 0, 3, -1, 0], 3)),
+ ve.setAttribute('uv', new B.a$l([0, 2, 0, 0, 2, 0], 2))
class me extends se {
- constructor(e, t, n, r, i) {
+ constructor(e, t, n, r, o) {
super(),
(this.scene = e),
(this.camera = t),
(this.overrideMaterial = n),
(this.clearColor = r),
- (this.clearAlpha = void 0 !== i ? i : 0),
+ (this.clearAlpha = void 0 !== o ? o : 0),
(this.clear = !0),
(this.clearDepth = !1),
(this.needsSwap = !1),
- (this._oldClearColor = new H.Ilk())
+ (this._oldClearColor = new B.Ilk())
}
render(e, t, n) {
const r = e.autoClear
- let i, o
+ let o, i
;(e.autoClear = !1),
void 0 !== this.overrideMaterial &&
- ((o = this.scene.overrideMaterial),
+ ((i = this.scene.overrideMaterial),
(this.scene.overrideMaterial = this.overrideMaterial)),
this.clearColor &&
(e.getClearColor(this._oldClearColor),
- (i = e.getClearAlpha()),
+ (o = e.getClearAlpha()),
e.setClearColor(this.clearColor, this.clearAlpha)),
this.clearDepth && e.clearDepth(),
e.setRenderTarget(this.renderToScreen ? null : n),
this.clear && e.clear(e.autoClearColor, e.autoClearDepth, e.autoClearStencil),
e.render(this.scene, this.camera),
- this.clearColor && e.setClearColor(this._oldClearColor, i),
- void 0 !== this.overrideMaterial && (this.scene.overrideMaterial = o),
+ this.clearColor && e.setClearColor(this._oldClearColor, o),
+ void 0 !== this.overrideMaterial && (this.scene.overrideMaterial = i),
(e.autoClear = r)
}
}
@@ -29415,19 +43475,19 @@
return !1
}
}
- function xe(e, t, n) {
- return (xe = we()
+ function _e(e, t, n) {
+ return (_e = we()
? Reflect.construct
: function (e, t, n) {
var r = [null]
r.push.apply(r, t)
- var i = new (Function.bind.apply(e, r))()
- return n && ye(i, n.prototype), i
+ var o = new (Function.bind.apply(e, r))()
+ return n && ye(o, n.prototype), o
}).apply(null, arguments)
}
- function Ee(e) {
+ function xe(e) {
var t = 'function' === typeof Map ? new Map() : void 0
- return (Ee = function (e) {
+ return (xe = function (e) {
if (null === e || ((n = e), -1 === Function.toString.call(n).indexOf('[native code]')))
return e
var n
@@ -29438,7 +43498,7 @@
t.set(e, r)
}
function r() {
- return xe(e, arguments, be(this).constructor)
+ return _e(e, arguments, be(this).constructor)
}
return (
(r.prototype = Object.create(e.prototype, {
@@ -29471,34 +43531,34 @@
ye(t, n),
r
)
- })(Ee(Error))
- function _e(e) {
+ })(xe(Error))
+ function Ee(e) {
return Math.round(255 * e)
}
- function Te(e, t, n) {
- return _e(e) + ',' + _e(t) + ',' + _e(n)
+ function Oe(e, t, n) {
+ return Ee(e) + ',' + Ee(t) + ',' + Ee(n)
}
- function Oe(e, t, n, r) {
- if ((void 0 === r && (r = Te), 0 === t)) return r(n, n, n)
- var i = (((e % 360) + 360) % 360) / 60,
- o = (1 - Math.abs(2 * n - 1)) * t,
- a = o * (1 - Math.abs((i % 2) - 1)),
+ function Te(e, t, n, r) {
+ if ((void 0 === r && (r = Oe), 0 === t)) return r(n, n, n)
+ var o = (((e % 360) + 360) % 360) / 60,
+ i = (1 - Math.abs(2 * n - 1)) * t,
+ a = i * (1 - Math.abs((o % 2) - 1)),
s = 0,
u = 0,
- l = 0
- i >= 0 && i < 1
- ? ((s = o), (u = a))
- : i >= 1 && i < 2
- ? ((s = a), (u = o))
- : i >= 2 && i < 3
- ? ((u = o), (l = a))
- : i >= 3 && i < 4
- ? ((u = a), (l = o))
- : i >= 4 && i < 5
- ? ((s = a), (l = o))
- : i >= 5 && i < 6 && ((s = o), (l = a))
- var c = n - o / 2
- return r(s + c, u + c, l + c)
+ c = 0
+ o >= 0 && o < 1
+ ? ((s = i), (u = a))
+ : o >= 1 && o < 2
+ ? ((s = a), (u = i))
+ : o >= 2 && o < 3
+ ? ((u = i), (c = a))
+ : o >= 3 && o < 4
+ ? ((u = a), (c = i))
+ : o >= 4 && o < 5
+ ? ((s = a), (c = i))
+ : o >= 5 && o < 6 && ((s = i), (c = a))
+ var l = n - i / 2
+ return r(s + l, u + l, c + l)
}
var Ce = {
aliceblue: 'f0f8ff',
@@ -29650,31 +43710,31 @@
yellow: 'ff0',
yellowgreen: '9acd32',
}
- var Se = /^#[a-fA-F0-9]{6}$/,
- Ae = /^#[a-fA-F0-9]{8}$/,
+ var Me = /^#[a-fA-F0-9]{6}$/,
+ Se = /^#[a-fA-F0-9]{8}$/,
Pe = /^#[a-fA-F0-9]{3}$/,
- Me = /^#[a-fA-F0-9]{4}$/,
- Re = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,
- je =
+ je = /^#[a-fA-F0-9]{4}$/,
+ Ie = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,
+ Ae =
/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,
- De =
+ Re =
/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,
- Le =
+ De =
/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i
- function Ne(e) {
+ function Le(e) {
if ('string' !== typeof e) throw new ke(3)
var t = (function (e) {
if ('string' !== typeof e) return e
var t = e.toLowerCase()
return Ce[t] ? '#' + Ce[t] : e
})(e)
- if (t.match(Se))
+ if (t.match(Me))
return {
red: parseInt('' + t[1] + t[2], 16),
green: parseInt('' + t[3] + t[4], 16),
blue: parseInt('' + t[5] + t[6], 16),
}
- if (t.match(Ae)) {
+ if (t.match(Se)) {
var n = parseFloat((parseInt('' + t[7] + t[8], 16) / 255).toFixed(2))
return {
red: parseInt('' + t[1] + t[2], 16),
@@ -29689,7 +43749,7 @@
green: parseInt('' + t[2] + t[2], 16),
blue: parseInt('' + t[3] + t[3], 16),
}
- if (t.match(Me)) {
+ if (t.match(je)) {
var r = parseFloat((parseInt('' + t[4] + t[4], 16) / 255).toFixed(2))
return {
red: parseInt('' + t[1] + t[1], 16),
@@ -29698,32 +43758,32 @@
alpha: r,
}
}
- var i = Re.exec(t)
- if (i)
- return {
- red: parseInt('' + i[1], 10),
- green: parseInt('' + i[2], 10),
- blue: parseInt('' + i[3], 10),
- }
- var o = je.exec(t.substring(0, 50))
+ var o = Ie.exec(t)
if (o)
return {
red: parseInt('' + o[1], 10),
green: parseInt('' + o[2], 10),
blue: parseInt('' + o[3], 10),
- alpha: parseFloat('' + o[4]),
}
- var a = De.exec(t)
+ var i = Ae.exec(t.substring(0, 50))
+ if (i)
+ return {
+ red: parseInt('' + i[1], 10),
+ green: parseInt('' + i[2], 10),
+ blue: parseInt('' + i[3], 10),
+ alpha: parseFloat('' + i[4]),
+ }
+ var a = Re.exec(t)
if (a) {
var s =
'rgb(' +
- Oe(
+ Te(
parseInt('' + a[1], 10),
parseInt('' + a[2], 10) / 100,
parseInt('' + a[3], 10) / 100,
) +
')',
- u = Re.exec(s)
+ u = Ie.exec(s)
if (!u) throw new ke(4, t, s)
return {
red: parseInt('' + u[1], 10),
@@ -29731,28 +43791,28 @@
blue: parseInt('' + u[3], 10),
}
}
- var l = Le.exec(t.substring(0, 50))
- if (l) {
- var c =
+ var c = De.exec(t.substring(0, 50))
+ if (c) {
+ var l =
'rgb(' +
- Oe(
- parseInt('' + l[1], 10),
- parseInt('' + l[2], 10) / 100,
- parseInt('' + l[3], 10) / 100,
+ Te(
+ parseInt('' + c[1], 10),
+ parseInt('' + c[2], 10) / 100,
+ parseInt('' + c[3], 10) / 100,
) +
')',
- d = Re.exec(c)
- if (!d) throw new ke(4, t, c)
+ d = Ie.exec(l)
+ if (!d) throw new ke(4, t, l)
return {
red: parseInt('' + d[1], 10),
green: parseInt('' + d[2], 10),
blue: parseInt('' + d[3], 10),
- alpha: parseFloat('' + l[4]),
+ alpha: parseFloat('' + c[4]),
}
}
throw new ke(5)
}
- var Ie = function (e) {
+ var Ne = function (e) {
return 7 === e.length && e[1] === e[2] && e[3] === e[4] && e[5] === e[6]
? '#' + e[1] + e[3] + e[5]
: e
@@ -29761,17 +43821,17 @@
var t = e.toString(16)
return 1 === t.length ? '0' + t : t
}
- function He(e, t, n) {
+ function Be(e, t, n) {
if ('number' === typeof e && 'number' === typeof t && 'number' === typeof n)
- return Ie('#' + ze(e) + ze(t) + ze(n))
+ return Ne('#' + ze(e) + ze(t) + ze(n))
if ('object' === typeof e && void 0 === t && void 0 === n)
- return Ie('#' + ze(e.red) + ze(e.green) + ze(e.blue))
+ return Ne('#' + ze(e.red) + ze(e.green) + ze(e.blue))
throw new ke(6)
}
- function Be(e, t, n, r) {
+ function He(e, t, n, r) {
if ('string' === typeof e && 'number' === typeof t) {
- var i = Ne(e)
- return 'rgba(' + i.red + ',' + i.green + ',' + i.blue + ',' + t + ')'
+ var o = Le(e)
+ return 'rgba(' + o.red + ',' + o.green + ',' + o.blue + ',' + t + ')'
}
if (
'number' === typeof e &&
@@ -29779,10 +43839,10 @@
'number' === typeof n &&
'number' === typeof r
)
- return r >= 1 ? He(e, t, n) : 'rgba(' + e + ',' + t + ',' + n + ',' + r + ')'
+ return r >= 1 ? Be(e, t, n) : 'rgba(' + e + ',' + t + ',' + n + ',' + r + ')'
if ('object' === typeof e && void 0 === t && void 0 === n && void 0 === r)
return e.alpha >= 1
- ? He(e.red, e.green, e.blue)
+ ? Be(e.red, e.green, e.blue)
: 'rgba(' + e.red + ',' + e.green + ',' + e.blue + ',' + e.alpha + ')'
throw new ke(7)
}
@@ -29795,15 +43855,15 @@
function Ve(e) {
return Fe(e, e.length, [])
}
- function Ue(e, t, n) {
+ function We(e, t, n) {
return Math.max(e, Math.min(t, n))
}
- function Ge(e, t) {
+ function Ue(e, t) {
if ('transparent' === t) return t
- var n = Ne(t)
- return Be(
+ var n = Le(t)
+ return He(
ge({}, n, {
- alpha: Ue(
+ alpha: We(
0,
1,
(100 * ('number' === typeof n.alpha ? n.alpha : 1) + 100 * parseFloat(e)) / 100,
@@ -29811,8 +43871,8 @@
}),
)
}
- var qe = Ve(Ge)
- var We = r(6194)
+ var Ge = Ve(Ue)
+ var qe = r(36194)
function Ke(e, t, n) {
return (
t in e
@@ -29838,28 +43898,28 @@
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator']
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
- Xe(e, t) ||
+ $e(e, t) ||
(function () {
throw new TypeError(
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
@@ -29867,7 +43927,7 @@
})()
)
}
- function $e(e) {
+ function Xe(e) {
return (
(function (e) {
if (Array.isArray(e)) return Ye(e)
@@ -29879,7 +43939,7 @@
)
return Array.from(e)
})(e) ||
- Xe(e) ||
+ $e(e) ||
(function () {
throw new TypeError(
'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
@@ -29887,7 +43947,7 @@
})()
)
}
- function Xe(e, t) {
+ function $e(e, t) {
if (e) {
if ('string' === typeof e) return Ye(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
@@ -29911,10 +43971,10 @@
var n = t.insertAt
if (e && 'undefined' !== typeof document) {
var r = document.head || document.getElementsByTagName('head')[0],
- i = document.createElement('style')
- ;(i.type = 'text/css'),
- 'top' === n && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i),
- i.styleSheet ? (i.styleSheet.cssText = e) : i.appendChild(document.createTextNode(e))
+ o = document.createElement('style')
+ ;(o.type = 'text/css'),
+ 'top' === n && r.firstChild ? r.insertBefore(o, r.firstChild) : r.appendChild(o),
+ o.styleSheet ? (o.styleSheet.cssText = e) : o.appendChild(document.createTextNode(e))
}
})(
'.scene-nav-info {\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n}\n\n.scene-tooltip {\n color: lavender;\n font-size: 15px;\n}\n\n.scene-nav-info, .scene-tooltip {\n position: absolute;\n font-family: sans-serif;\n pointer-events: none;\n}\n\n.scene-container canvas:focus {\n outline: none;\n}',
@@ -29922,24 +43982,24 @@
var Qe = window.THREE
? window.THREE
: {
- WebGLRenderer: H.CP7,
- Scene: H.xsS,
- PerspectiveCamera: H.cPb,
- Raycaster: H.iMs,
- TextureLoader: H.dpR,
- Vector2: H.FM8,
- Vector3: H.Pa4,
- Box3: H.ZzF,
- Color: H.Ilk,
- Mesh: H.Kj0,
- SphereGeometry: H.xo$,
- MeshBasicMaterial: H.vBJ,
- BackSide: H._Li,
- EventDispatcher: H.pBf,
- MOUSE: H.RsA,
- Quaternion: H._fP,
- Spherical: H.$V,
- Clock: H.SUY,
+ WebGLRenderer: B.CP7,
+ Scene: B.xsS,
+ PerspectiveCamera: B.cPb,
+ Raycaster: B.iMs,
+ TextureLoader: B.dpR,
+ Vector2: B.FM8,
+ Vector3: B.Pa4,
+ Box3: B.ZzF,
+ Color: B.Ilk,
+ Mesh: B.Kj0,
+ SphereGeometry: B.xo$,
+ MeshBasicMaterial: B.vBJ,
+ BackSide: B._Li,
+ EventDispatcher: B.pBf,
+ MOUSE: B.RsA,
+ Quaternion: B._fP,
+ Spherical: B.$V,
+ Clock: B.SUY,
},
Je = (0, b.Z)({
props: {
@@ -30018,7 +44078,7 @@
(e.toolTipElem.innerHTML = (t && (0, w.default)(e.tooltipContent)(t)) || ''),
(e.hoverObj = t))
}
- We.ZP.update()
+ qe.ZP.update()
}
return this
},
@@ -30027,41 +44087,41 @@
return { x: t.x, y: t.y }
},
cameraPosition: function (e, t, n, r) {
- var i = e.camera
+ var o = e.camera
if (t && e.initialised) {
- var o = t,
+ var i = t,
a = n || { x: 0, y: 0, z: 0 }
if (r) {
- var s = Object.assign({}, i.position),
+ var s = Object.assign({}, o.position),
u = d()
- new We.ZP.Tween(s)
- .to(o, r)
- .easing(We.ZP.Easing.Quadratic.Out)
- .onUpdate(l)
+ new qe.ZP.Tween(s)
+ .to(i, r)
+ .easing(qe.ZP.Easing.Quadratic.Out)
+ .onUpdate(c)
.start(),
- new We.ZP.Tween(u)
+ new qe.ZP.Tween(u)
.to(a, r / 3)
- .easing(We.ZP.Easing.Quadratic.Out)
- .onUpdate(c)
+ .easing(qe.ZP.Easing.Quadratic.Out)
+ .onUpdate(l)
.start()
- } else l(o), c(a)
+ } else c(i), l(a)
return this
}
- return Object.assign({}, i.position, { lookAt: d() })
- function l(e) {
+ return Object.assign({}, o.position, { lookAt: d() })
+ function c(e) {
var t = e.x,
n = e.y,
r = e.z
- void 0 !== t && (i.position.x = t),
- void 0 !== n && (i.position.y = n),
- void 0 !== r && (i.position.z = r)
+ void 0 !== t && (o.position.x = t),
+ void 0 !== n && (o.position.y = n),
+ void 0 !== r && (o.position.z = r)
}
- function c(t) {
+ function l(t) {
e.controls.target = new Qe.Vector3(t.x, t.y, t.z)
}
function d() {
return Object.assign(
- new Qe.Vector3(0, 0, -1e3).applyQuaternion(i.quaternion).add(i.position),
+ new Qe.Vector3(0, 0, -1e3).applyQuaternion(o.quaternion).add(o.position),
)
}
},
@@ -30070,47 +44130,47 @@
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0,
n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 10,
r = arguments.length,
- i = new Array(r > 3 ? r - 3 : 0),
- o = 3;
- o < r;
- o++
+ o = new Array(r > 3 ? r - 3 : 0),
+ i = 3;
+ i < r;
+ i++
)
- i[o - 3] = arguments[o]
- return this.fitToBbox(this.getBbox.apply(this, i), t, n)
+ o[i - 3] = arguments[i]
+ return this.fitToBbox(this.getBbox.apply(this, o), t, n)
},
fitToBbox: function (e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0,
r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 10,
- i = e.camera
+ o = e.camera
if (t) {
- var o = new Qe.Vector3(0, 0, 0),
+ var i = new Qe.Vector3(0, 0, 0),
a =
2 *
Math.max.apply(
Math,
- $e(
+ Xe(
Object.entries(t).map(function (e) {
var t = Ze(e, 2),
n = t[0],
r = t[1]
return Math.max.apply(
Math,
- $e(
+ Xe(
r.map(function (e) {
- return Math.abs(o[n] - e)
+ return Math.abs(i[n] - e)
}),
),
)
}),
),
),
- s = (1 - (2 * r) / e.height) * i.fov,
+ s = (1 - (2 * r) / e.height) * o.fov,
u = a / Math.atan((s * Math.PI) / 180),
- l = u / i.aspect,
- c = Math.max(u, l)
- if (c > 0) {
- var d = o.clone().sub(i.position).normalize().multiplyScalar(-c)
- this.cameraPosition(d, o, n)
+ c = u / o.aspect,
+ l = Math.max(u, c)
+ if (l > 0) {
+ var d = i.clone().sub(o.position).normalize().multiplyScalar(-l)
+ this.cameraPosition(d, i, n)
}
}
return this
@@ -30130,7 +44190,7 @@
}),
Object.assign.apply(
Object,
- $e(
+ Xe(
['x', 'y', 'z'].map(function (e) {
return Ke({}, e, [n.min[e], n.max[e]])
}),
@@ -30139,25 +44199,25 @@
: null
},
getScreenCoords: function (e, t, n, r) {
- var i = new Qe.Vector3(t, n, r)
+ var o = new Qe.Vector3(t, n, r)
return (
- i.project(this.camera()),
- { x: ((i.x + 1) * e.width) / 2, y: (-(i.y - 1) * e.height) / 2 }
+ o.project(this.camera()),
+ { x: ((o.x + 1) * e.width) / 2, y: (-(o.y - 1) * e.height) / 2 }
)
},
getSceneCoords: function (e, t, n) {
var r = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 0,
- i = new Qe.Vector2((t / e.width) * 2 - 1, (-n / e.height) * 2 + 1),
- o = new Qe.Raycaster()
- return o.setFromCamera(i, e.camera), Object.assign({}, o.ray.at(r, new Qe.Vector3()))
+ o = new Qe.Vector2((t / e.width) * 2 - 1, (-n / e.height) * 2 + 1),
+ i = new Qe.Raycaster()
+ return i.setFromCamera(o, e.camera), Object.assign({}, i.ray.at(r, new Qe.Vector3()))
},
intersectingObjects: function (e, t, n) {
var r = new Qe.Vector2((t / e.width) * 2 - 1, (-n / e.height) * 2 + 1),
- i = new Qe.Raycaster()
+ o = new Qe.Raycaster()
return (
- (i.params.Line.threshold = e.lineHoverPrecision),
- i.setFromCamera(r, e.camera),
- i.intersectObjects(e.objects, !0)
+ (o.params.Line.threshold = e.lineHoverPrecision),
+ o.setFromCamera(r, e.camera),
+ o.intersectObjects(e.objects, !0)
)
},
renderer: function (e) {
@@ -30189,13 +44249,13 @@
init: function (e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
r = n.controlType,
- i = void 0 === r ? 'trackball' : r,
- o = n.rendererConfig,
- a = void 0 === o ? {} : o,
+ o = void 0 === r ? 'trackball' : r,
+ i = n.rendererConfig,
+ a = void 0 === i ? {} : i,
s = n.extraRenderers,
u = void 0 === s ? [] : s,
- l = n.waitForLoadComplete,
- c = void 0 === l || l
+ c = n.waitForLoadComplete,
+ l = void 0 === c || c
;(e.innerHTML = ''),
e.appendChild((t.container = document.createElement('div'))),
(t.container.className = 'scene-container'),
@@ -30207,7 +44267,7 @@
orbit: 'Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan',
trackball: 'Left-click: rotate, Mouse-wheel/middle-click: zoom, Right-click: pan',
fly: 'WASD: move, R|F: up | down, Q|E: roll, up|down: pitch, left|right: yaw',
- }[i] || ''),
+ }[o] || ''),
(t.navInfo.style.display = t.showNavInfo ? null : 'none'),
(t.toolTipElem = document.createElement('div')),
t.toolTipElem.classList.add('scene-tooltip'),
@@ -30280,15 +44340,15 @@
}),
(t.postProcessingComposer = new pe(t.renderer)),
t.postProcessingComposer.addPass(new me(t.scene, t.camera)),
- (t.controls = new { trackball: Q, orbit: ne, fly: ie }[i](
+ (t.controls = new { trackball: Q, orbit: ne, fly: oe }[o](
t.camera,
t.renderer.domElement,
)),
- 'fly' === i &&
+ 'fly' === o &&
((t.controls.movementSpeed = 300),
(t.controls.rollSpeed = Math.PI / 6),
(t.controls.dragToLook = !0)),
- ('trackball' !== i && 'orbit' !== i) ||
+ ('trackball' !== o && 'orbit' !== o) ||
((t.controls.minDistance = 0.1),
(t.controls.maxDistance = t.skyRadius),
t.controls.addEventListener('start', function () {
@@ -30301,7 +44361,7 @@
;(t.controlsEngaged = !1), (t.controlsDragging = !1)
})),
[t.renderer, t.postProcessingComposer]
- .concat($e(t.extraRenderers))
+ .concat(Xe(t.extraRenderers))
.forEach(function (e) {
return e.setSize(t.width, t.height)
}),
@@ -30310,7 +44370,7 @@
(t.camera.position.z = 1e3),
t.scene.add((t.skysphere = new Qe.Mesh())),
(t.skysphere.visible = !1),
- (t.loadComplete = t.scene.visible = !c),
+ (t.loadComplete = t.scene.visible = !l),
(window.scene = t.scene)
},
update: function (e, t) {
@@ -30321,7 +44381,7 @@
((e.container.style.width = e.width),
(e.container.style.height = e.height),
[e.renderer, e.postProcessingComposer]
- .concat($e(e.extraRenderers))
+ .concat(Xe(e.extraRenderers))
.forEach(function (t) {
return t.setSize(e.width, e.height)
}),
@@ -30337,9 +44397,9 @@
(e.skysphere.geometry = new Qe.SphereGeometry(e.skyRadius))),
t.hasOwnProperty('backgroundColor'))
) {
- var n = Ne(e.backgroundColor).alpha
+ var n = Le(e.backgroundColor).alpha
void 0 === n && (n = 1),
- e.renderer.setClearColor(new Qe.Color(qe(1, e.backgroundColor)), n)
+ e.renderer.setClearColor(new Qe.Color(Ge(1, e.backgroundColor)), n)
}
function r() {
e.loadComplete = e.scene.visible = !0
@@ -30412,7 +44472,7 @@
function rt(e) {
return (
(function (e) {
- if (Array.isArray(e)) return it(e)
+ if (Array.isArray(e)) return ot(e)
})(e) ||
(function (e) {
if (
@@ -30423,12 +44483,12 @@
})(e) ||
(function (e, t) {
if (!e) return
- if ('string' === typeof e) return it(e, t)
+ if ('string' === typeof e) return ot(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
'Object' === n && e.constructor && (n = e.constructor.name)
if ('Map' === n || 'Set' === n) return Array.from(e)
if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return it(e, t)
+ return ot(e, t)
})(e) ||
(function () {
throw new TypeError(
@@ -30437,12 +44497,12 @@
})()
)
}
- function it(e, t) {
+ function ot(e, t) {
;(null == t || t > e.length) && (t = e.length)
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
}
- function ot(e, t) {
+ function it(e, t) {
var n = new t()
return {
linkProp: function (t) {
@@ -30457,12 +44517,12 @@
linkMethod: function (t) {
return function (n) {
for (
- var r = n[e], i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1;
- a < i;
+ var r = n[e], o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), a = 1;
+ a < o;
a++
)
- o[a - 1] = arguments[a]
- var s = r[t].apply(r, o)
+ i[a - 1] = arguments[a]
+ var s = r[t].apply(r, i)
return s === r ? this : s
}
},
@@ -30473,18 +44533,18 @@
var n = t.insertAt
if (e && 'undefined' !== typeof document) {
var r = document.head || document.getElementsByTagName('head')[0],
- i = document.createElement('style')
- ;(i.type = 'text/css'),
- 'top' === n && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i),
- i.styleSheet ? (i.styleSheet.cssText = e) : i.appendChild(document.createTextNode(e))
+ o = document.createElement('style')
+ ;(o.type = 'text/css'),
+ 'top' === n && r.firstChild ? r.insertBefore(o, r.firstChild) : r.appendChild(o),
+ o.styleSheet ? (o.styleSheet.cssText = e) : o.appendChild(document.createTextNode(e))
}
})(
'.graph-info-msg {\n top: 50%;\n width: 100%;\n text-align: center;\n color: lavender;\n opacity: 0.7;\n font-size: 22px;\n position: absolute;\n font-family: Sans-serif;\n}\n\n.scene-container .clickable {\n cursor: pointer;\n}\n\n.scene-container .grabbable {\n cursor: move;\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n\n.scene-container .grabbable:active {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n}',
)
var at = window.THREE
? window.THREE
- : { AmbientLight: H.Mig, DirectionalLight: H.Ox3, Vector3: H.Pa4 },
- st = ot('forceGraph', Z.default),
+ : { AmbientLight: B.Mig, DirectionalLight: B.Ox3, Vector3: B.Pa4 },
+ st = it('forceGraph', Z.default),
ut = Object.assign.apply(
Object,
rt(
@@ -30544,7 +44604,7 @@
}),
),
),
- lt = Object.assign.apply(
+ ct = Object.assign.apply(
Object,
rt(
['refresh', 'getGraphBbox', 'd3Force', 'd3ReheatSimulation', 'emitParticle'].map(
@@ -30554,13 +44614,13 @@
),
),
),
- ct = ot('renderObjs', Je),
+ lt = it('renderObjs', Je),
dt = Object.assign.apply(
Object,
rt(
['width', 'height', 'backgroundColor', 'showNavInfo', 'enablePointerInteraction'].map(
function (e) {
- return nt({}, e, ct.linkProp(e))
+ return nt({}, e, lt.linkProp(e))
},
),
),
@@ -30569,12 +44629,12 @@
Object,
rt(
['cameraPosition', 'postProcessingComposer'].map(function (e) {
- return nt({}, e, ct.linkMethod(e))
+ return nt({}, e, lt.linkMethod(e))
}),
).concat([
{
- graph2ScreenCoords: ct.linkMethod('getScreenCoords'),
- screen2GraphCoords: ct.linkMethod('getSceneCoords'),
+ graph2ScreenCoords: lt.linkMethod('getScreenCoords'),
+ screen2GraphCoords: lt.linkMethod('getSceneCoords'),
},
]),
)
@@ -30624,13 +44684,13 @@
{
zoomToFit: function (e, t, n) {
for (
- var r, i = arguments.length, o = new Array(i > 3 ? i - 3 : 0), a = 3;
- a < i;
+ var r, o = arguments.length, i = new Array(o > 3 ? o - 3 : 0), a = 3;
+ a < o;
a++
)
- o[a - 3] = arguments[a]
+ i[a - 3] = arguments[a]
return (
- e.renderObjs.fitToBbox((r = e.forceGraph).getGraphBbox.apply(r, o), t, n), this
+ e.renderObjs.fitToBbox((r = e.forceGraph).getGraphBbox.apply(r, i), t, n), this
)
},
pauseAnimation: function (e) {
@@ -30669,7 +44729,7 @@
this.pauseAnimation(), this.graphData({ nodes: [], links: [] })
},
},
- lt,
+ ct,
),
ft,
),
@@ -30689,11 +44749,11 @@
var n = document.createElement('div')
t.container.appendChild(n), t.renderObjs(n)
var r,
- i = t.renderObjs.camera(),
- o = t.renderObjs.renderer(),
+ o = t.renderObjs.camera(),
+ i = t.renderObjs.renderer(),
a = t.renderObjs.controls()
;(a.enabled = !!t.enableNavigationControls),
- (t.lastSetCameraZ = i.position.z),
+ (t.lastSetCameraZ = o.position.z),
t.container.appendChild((r = document.createElement('div'))),
(r.className = 'graph-info-msg'),
(r.textContent = ''),
@@ -30706,12 +44766,12 @@
})
.onUpdate(function () {
;(t.graphData = t.forceGraph.graphData()),
- 0 === i.position.x &&
- 0 === i.position.y &&
- i.position.z === t.lastSetCameraZ &&
+ 0 === o.position.x &&
+ 0 === o.position.y &&
+ o.position.z === t.lastSetCameraZ &&
t.graphData.nodes.length &&
- (i.lookAt(t.forceGraph.position),
- (t.lastSetCameraZ = i.position.z = 170 * Math.cbrt(t.graphData.nodes.length)))
+ (o.lookAt(t.forceGraph.position),
+ (t.lastSetCameraZ = o.position.z = 170 * Math.cbrt(t.graphData.nodes.length)))
})
.onFinishUpdate(function () {
if (t._dragControls) {
@@ -30730,8 +44790,8 @@
.filter(function (e) {
return e
}),
- i,
- o.domElement,
+ o,
+ i.domElement,
))
n.addEventListener('dragstart', function (e) {
;(a.enabled = !1),
@@ -30744,15 +44804,15 @@
['x', 'y', 'z'].forEach(function (e) {
return (t['f'.concat(e)] = t[e])
}),
- o.domElement.classList.add('grabbable')
+ i.domElement.classList.add('grabbable')
}),
n.addEventListener('drag', function (e) {
var n = ht(e.object)
if (!e.object.hasOwnProperty('__graphObjType')) {
var r = e.object.__initialPos,
- i = e.object.__prevPos,
- o = e.object.position
- n.position.add(o.clone().sub(i)), i.copy(o), o.copy(r)
+ o = e.object.__prevPos,
+ i = e.object.position
+ n.position.add(i.clone().sub(o)), o.copy(i), i.copy(r)
}
var a = n.__data,
s = n.position,
@@ -30769,13 +44829,13 @@
var r = ht(e.object).__data
r.__disposeControlsAfterDrag &&
(n.dispose(), delete r.__disposeControlsAfterDrag)
- var i = r.__initialFixedPos,
+ var o = r.__initialFixedPos,
s = r.__initialPos,
u = { x: s.x - r.x, y: s.y - r.y, z: s.z - r.z }
- i &&
+ o &&
(['x', 'y', 'z'].forEach(function (e) {
var t = 'f'.concat(e)
- void 0 === i[t] && delete r[t]
+ void 0 === o[t] && delete r[t]
}),
delete r.__initialFixedPos,
delete r.__initialPos,
@@ -30788,7 +44848,7 @@
a.domElement.ownerDocument.dispatchEvent(
new PointerEvent('pointerup', { pointerType: 'touch' }),
)),
- o.domElement.classList.remove('grabbable')
+ i.domElement.classList.remove('grabbable')
})
}
}),
@@ -30803,10 +44863,10 @@
if (!n) return 1
var r = ht(t)
if (!r) return -1
- var i = function (e) {
+ var o = function (e) {
return 'node' === e.__graphObjType
}
- return i(r) - i(n)
+ return o(r) - o(n)
})
.tooltipContent(function (e) {
var n = ht(e)
@@ -30819,18 +44879,18 @@
var n = ht(e)
if (n !== t.hoverObj) {
var r = t.hoverObj ? t.hoverObj.__graphObjType : null,
- i = t.hoverObj ? t.hoverObj.__data : null,
+ o = t.hoverObj ? t.hoverObj.__data : null,
a = n ? n.__graphObjType : null,
s = n ? n.__data : null
if (r && r !== a) {
var u = t['on'.concat('node' === r ? 'Node' : 'Link', 'Hover')]
- u && u(null, i)
+ u && u(null, o)
}
if (a) {
- var l = t['on'.concat('node' === a ? 'Node' : 'Link', 'Hover')]
- l && l(s, r === a ? i : null)
+ var c = t['on'.concat('node' === a ? 'Node' : 'Link', 'Hover')]
+ c && c(s, r === a ? o : null)
}
- o.domElement.classList[
+ i.domElement.classList[
(n && t['on'.concat('node' === a ? 'Node' : 'Link', 'Click')]) ||
(!n && t.onBackgroundClick)
? 'add'
@@ -30843,22 +44903,22 @@
.onClick(function (e, n) {
var r = ht(e)
if (r) {
- var i = t['on'.concat('node' === r.__graphObjType ? 'Node' : 'Link', 'Click')]
- i && i(r.__data, n)
+ var o = t['on'.concat('node' === r.__graphObjType ? 'Node' : 'Link', 'Click')]
+ o && o(r.__data, n)
} else t.onBackgroundClick && t.onBackgroundClick(n)
})
.onRightClick(function (e, n) {
var r = ht(e)
if (r) {
- var i =
+ var o =
t['on'.concat('node' === r.__graphObjType ? 'Node' : 'Link', 'RightClick')]
- i && i(r.__data, n)
+ o && o(r.__data, n)
} else t.onBackgroundRightClick && t.onBackgroundRightClick(n)
}),
this._animationCycle()
},
}),
- vt = r(6156)
+ vt = r(26265)
function mt() {}
function gt(e) {
return null == e
@@ -30880,106 +44940,106 @@
return this.querySelectorAll(e)
}
}
- function xt(e) {
+ function _t(e) {
return function () {
return this.matches(e)
}
}
- function Et(e) {
+ function xt(e) {
return function (t) {
return t.matches(e)
}
}
var kt = Array.prototype.find
- function _t() {
+ function Et() {
return this.firstElementChild
}
- var Tt = Array.prototype.filter
- function Ot() {
+ var Ot = Array.prototype.filter
+ function Tt() {
return Array.from(this.children)
}
function Ct(e) {
return new Array(e.length)
}
- function St(e, t) {
+ function Mt(e, t) {
;(this.ownerDocument = e.ownerDocument),
(this.namespaceURI = e.namespaceURI),
(this._next = null),
(this._parent = e),
(this.__data__ = t)
}
- function At(e) {
+ function St(e) {
return function () {
return e
}
}
- function Pt(e, t, n, r, i, o) {
- for (var a, s = 0, u = t.length, l = o.length; s < l; ++s)
- (a = t[s]) ? ((a.__data__ = o[s]), (r[s] = a)) : (n[s] = new St(e, o[s]))
- for (; s < u; ++s) (a = t[s]) && (i[s] = a)
+ function Pt(e, t, n, r, o, i) {
+ for (var a, s = 0, u = t.length, c = i.length; s < c; ++s)
+ (a = t[s]) ? ((a.__data__ = i[s]), (r[s] = a)) : (n[s] = new Mt(e, i[s]))
+ for (; s < u; ++s) (a = t[s]) && (o[s] = a)
}
- function Mt(e, t, n, r, i, o, a) {
+ function jt(e, t, n, r, o, i, a) {
var s,
u,
- l,
- c = new Map(),
+ c,
+ l = new Map(),
d = t.length,
- f = o.length,
+ f = i.length,
h = new Array(d)
for (s = 0; s < d; ++s)
(u = t[s]) &&
- ((h[s] = l = a.call(u, u.__data__, s, t) + ''), c.has(l) ? (i[s] = u) : c.set(l, u))
+ ((h[s] = c = a.call(u, u.__data__, s, t) + ''), l.has(c) ? (o[s] = u) : l.set(c, u))
for (s = 0; s < f; ++s)
- (l = a.call(e, o[s], s, o) + ''),
- (u = c.get(l))
- ? ((r[s] = u), (u.__data__ = o[s]), c.delete(l))
- : (n[s] = new St(e, o[s]))
- for (s = 0; s < d; ++s) (u = t[s]) && c.get(h[s]) === u && (i[s] = u)
+ (c = a.call(e, i[s], s, i) + ''),
+ (u = l.get(c))
+ ? ((r[s] = u), (u.__data__ = i[s]), l.delete(c))
+ : (n[s] = new Mt(e, i[s]))
+ for (s = 0; s < d; ++s) (u = t[s]) && l.get(h[s]) === u && (o[s] = u)
}
- function Rt(e) {
+ function It(e) {
return e.__data__
}
- function jt(e) {
+ function At(e) {
return 'object' === typeof e && 'length' in e ? e : Array.from(e)
}
- function Dt(e, t) {
+ function Rt(e, t) {
return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN
}
- function Lt(e, t) {
+ function Dt(e, t) {
var n
if ('undefined' === typeof Symbol || null == e[Symbol.iterator]) {
if (
Array.isArray(e) ||
(n = (function (e, t) {
if (!e) return
- if ('string' === typeof e) return Nt(e, t)
+ if ('string' === typeof e) return Lt(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
'Object' === n && e.constructor && (n = e.constructor.name)
if ('Map' === n || 'Set' === n) return Array.from(e)
if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return Nt(e, t)
+ return Lt(e, t)
})(e)) ||
(t && e && 'number' === typeof e.length)
) {
n && (e = n)
var r = 0,
- i = function () {}
+ o = function () {}
return {
- s: i,
+ s: o,
n: function () {
return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] }
},
e: function (e) {
throw e
},
- f: i,
+ f: o,
}
}
throw new TypeError(
'Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
)
}
- var o,
+ var i,
a = !0,
s = !1
return {
@@ -30991,24 +45051,24 @@
return (a = e.done), e
},
e: function (e) {
- ;(s = !0), (o = e)
+ ;(s = !0), (i = e)
},
f: function () {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw o
+ if (s) throw i
}
},
}
}
- function Nt(e, t) {
+ function Lt(e, t) {
;(null == t || t > e.length) && (t = e.length)
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
}
- St.prototype = {
- constructor: St,
+ Mt.prototype = {
+ constructor: Mt,
appendChild: function (e) {
return this._parent.insertBefore(e, this._next)
},
@@ -31022,15 +45082,15 @@
return this._parent.querySelectorAll(e)
},
}
- var It = 'http://www.w3.org/1999/xhtml',
+ var Nt = 'http://www.w3.org/1999/xhtml',
zt = {
svg: 'http://www.w3.org/2000/svg',
- xhtml: It,
+ xhtml: Nt,
xlink: 'http://www.w3.org/1999/xlink',
xml: 'http://www.w3.org/XML/1998/namespace',
xmlns: 'http://www.w3.org/2000/xmlns/',
}
- function Ht(e) {
+ function Bt(e) {
var t = (e += ''),
n = t.indexOf(':')
return (
@@ -31038,7 +45098,7 @@
zt.hasOwnProperty(t) ? { space: zt[t], local: e } : e
)
}
- function Bt(e) {
+ function Ht(e) {
return function () {
this.removeAttribute(e)
}
@@ -31053,18 +45113,18 @@
this.setAttribute(e, t)
}
}
- function Ut(e, t) {
+ function Wt(e, t) {
return function () {
this.setAttributeNS(e.space, e.local, t)
}
}
- function Gt(e, t) {
+ function Ut(e, t) {
return function () {
var n = t.apply(this, arguments)
null == n ? this.removeAttribute(e) : this.setAttribute(e, n)
}
}
- function qt(e, t) {
+ function Gt(e, t) {
return function () {
var n = t.apply(this, arguments)
null == n
@@ -31072,7 +45132,7 @@
: this.setAttributeNS(e.space, e.local, n)
}
}
- function Wt(e) {
+ function qt(e) {
return (
(e.ownerDocument && e.ownerDocument.defaultView) || (e.document && e) || e.defaultView
)
@@ -31087,14 +45147,14 @@
this.style.setProperty(e, t, n)
}
}
- function $t(e, t, n) {
+ function Xt(e, t, n) {
return function () {
var r = t.apply(this, arguments)
null == r ? this.style.removeProperty(e) : this.style.setProperty(e, r, n)
}
}
- function Xt(e, t) {
- return e.style.getPropertyValue(t) || Wt(e).getComputedStyle(e, null).getPropertyValue(t)
+ function $t(e, t) {
+ return e.style.getPropertyValue(t) || qt(e).getComputedStyle(e, null).getPropertyValue(t)
}
function Yt(e) {
return function () {
@@ -31122,10 +45182,10 @@
;(this._node = e), (this._names = en(e.getAttribute('class') || ''))
}
function rn(e, t) {
- for (var n = tn(e), r = -1, i = t.length; ++r < i; ) n.add(t[r])
+ for (var n = tn(e), r = -1, o = t.length; ++r < o; ) n.add(t[r])
}
function on(e, t) {
- for (var n = tn(e), r = -1, i = t.length; ++r < i; ) n.remove(t[r])
+ for (var n = tn(e), r = -1, o = t.length; ++r < o; ) n.remove(t[r])
}
function an(e) {
return function () {
@@ -31142,10 +45202,10 @@
;(t.apply(this, arguments) ? rn : on)(this, e)
}
}
- function ln() {
+ function cn() {
this.textContent = ''
}
- function cn(e) {
+ function ln(e) {
return function () {
this.textContent = e
}
@@ -31180,7 +45240,7 @@
return function () {
var t = this.ownerDocument,
n = this.namespaceURI
- return n === It && t.documentElement.namespaceURI === It
+ return n === Nt && t.documentElement.namespaceURI === Nt
? t.createElement(e)
: t.createElementNS(n, e)
}
@@ -31191,17 +45251,17 @@
}
}
function bn(e) {
- var t = Ht(e)
+ var t = Bt(e)
return (t.local ? yn : gn)(t)
}
function wn() {
return null
}
- function xn() {
+ function _n() {
var e = this.parentNode
e && e.removeChild(this)
}
- function En() {
+ function xn() {
var e = this.cloneNode(!1),
t = this.parentNode
return t ? t.insertBefore(e, this.nextSibling) : e
@@ -31211,7 +45271,7 @@
t = this.parentNode
return t ? t.insertBefore(e, this.nextSibling) : e
}
- function _n(e) {
+ function En(e) {
return e
.trim()
.split(/^|\s+/)
@@ -31221,58 +45281,58 @@
return n >= 0 && ((t = e.slice(n + 1)), (e = e.slice(0, n))), { type: e, name: t }
})
}
- function Tn(e) {
+ function On(e) {
return function () {
var t = this.__on
if (t) {
- for (var n, r = 0, i = -1, o = t.length; r < o; ++r)
+ for (var n, r = 0, o = -1, i = t.length; r < i; ++r)
(n = t[r]),
(e.type && n.type !== e.type) || n.name !== e.name
- ? (t[++i] = n)
+ ? (t[++o] = n)
: this.removeEventListener(n.type, n.listener, n.options)
- ++i ? (t.length = i) : delete this.__on
+ ++o ? (t.length = o) : delete this.__on
}
}
}
- function On(e, t, n) {
+ function Tn(e, t, n) {
return function () {
var r,
- i = this.__on,
- o = (function (e) {
+ o = this.__on,
+ i = (function (e) {
return function (t) {
e.call(this, t, this.__data__)
}
})(t)
- if (i)
- for (var a = 0, s = i.length; a < s; ++a)
- if ((r = i[a]).type === e.type && r.name === e.name)
+ if (o)
+ for (var a = 0, s = o.length; a < s; ++a)
+ if ((r = o[a]).type === e.type && r.name === e.name)
return (
this.removeEventListener(r.type, r.listener, r.options),
- this.addEventListener(r.type, (r.listener = o), (r.options = n)),
+ this.addEventListener(r.type, (r.listener = i), (r.options = n)),
void (r.value = t)
)
- this.addEventListener(e.type, o, n),
- (r = { type: e.type, name: e.name, value: t, listener: o, options: n }),
- i ? i.push(r) : (this.__on = [r])
+ this.addEventListener(e.type, i, n),
+ (r = { type: e.type, name: e.name, value: t, listener: i, options: n }),
+ o ? o.push(r) : (this.__on = [r])
}
}
function Cn(e, t, n) {
- var r = Wt(e),
- i = r.CustomEvent
- 'function' === typeof i
- ? (i = new i(t, n))
- : ((i = r.document.createEvent('Event')),
+ var r = qt(e),
+ o = r.CustomEvent
+ 'function' === typeof o
+ ? (o = new o(t, n))
+ : ((o = r.document.createEvent('Event')),
n
- ? (i.initEvent(t, n.bubbles, n.cancelable), (i.detail = n.detail))
- : i.initEvent(t, !1, !1)),
- e.dispatchEvent(i)
+ ? (o.initEvent(t, n.bubbles, n.cancelable), (o.detail = n.detail))
+ : o.initEvent(t, !1, !1)),
+ e.dispatchEvent(o)
}
- function Sn(e, t) {
+ function Mn(e, t) {
return function () {
return Cn(this, e, t)
}
}
- function An(e, t) {
+ function Sn(e, t) {
return function () {
return Cn(this, e, t.apply(this, arguments))
}
@@ -31291,12 +45351,12 @@
return this._names.indexOf(e) >= 0
},
}
- var Pn = r(7757),
- Mn = r.n(Pn),
- Rn = Mn().mark(jn)
- function jn() {
- var e, t, n, r, i, o, a
- return Mn().wrap(
+ var Pn = r(809),
+ jn = r.n(Pn),
+ In = jn().mark(An)
+ function An() {
+ var e, t, n, r, o, i, a
+ return jn().wrap(
function (s) {
for (;;)
switch ((s.prev = s.next)) {
@@ -31307,19 +45367,19 @@
s.next = 13
break
}
- ;(r = e[t]), (i = 0), (o = r.length)
+ ;(r = e[t]), (o = 0), (i = r.length)
case 3:
- if (!(i < o)) {
+ if (!(o < i)) {
s.next = 10
break
}
- if (!(a = r[i])) {
+ if (!(a = r[o])) {
s.next = 7
break
}
return (s.next = 7), a
case 7:
- ++i, (s.next = 3)
+ ++o, (s.next = 3)
break
case 10:
++t, (s.next = 1)
@@ -31329,28 +45389,28 @@
return s.stop()
}
},
- Rn,
+ In,
this,
)
}
- var Dn = [null]
- function Ln(e, t) {
+ var Rn = [null]
+ function Dn(e, t) {
;(this._groups = e), (this._parents = t)
}
- function Nn() {
- return new Ln([[document.documentElement]], Dn)
+ function Ln() {
+ return new Dn([[document.documentElement]], Rn)
}
- Ln.prototype = Nn.prototype = (0, vt.Z)(
+ Dn.prototype = Ln.prototype = (0, vt.Z)(
{
- constructor: Ln,
+ constructor: Dn,
select: function (e) {
'function' !== typeof e && (e = gt(e))
- for (var t = this._groups, n = t.length, r = new Array(n), i = 0; i < n; ++i)
- for (var o, a, s = t[i], u = s.length, l = (r[i] = new Array(u)), c = 0; c < u; ++c)
- (o = s[c]) &&
- (a = e.call(o, o.__data__, c, s)) &&
- ('__data__' in o && (a.__data__ = o.__data__), (l[c] = a))
- return new Ln(r, this._parents)
+ for (var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; ++o)
+ for (var i, a, s = t[o], u = s.length, c = (r[o] = new Array(u)), l = 0; l < u; ++l)
+ (i = s[l]) &&
+ (a = e.call(i, i.__data__, l, s)) &&
+ ('__data__' in i && (a.__data__ = i.__data__), (c[l] = a))
+ return new Dn(r, this._parents)
},
selectAll: function (e) {
e =
@@ -31361,83 +45421,83 @@
}
})(e)
: wt(e)
- for (var t = this._groups, n = t.length, r = [], i = [], o = 0; o < n; ++o)
- for (var a, s = t[o], u = s.length, l = 0; l < u; ++l)
- (a = s[l]) && (r.push(e.call(a, a.__data__, l, s)), i.push(a))
- return new Ln(r, i)
+ for (var t = this._groups, n = t.length, r = [], o = [], i = 0; i < n; ++i)
+ for (var a, s = t[i], u = s.length, c = 0; c < u; ++c)
+ (a = s[c]) && (r.push(e.call(a, a.__data__, c, s)), o.push(a))
+ return new Dn(r, o)
},
selectChild: function (e) {
return this.select(
null == e
- ? _t
+ ? Et
: (function (e) {
return function () {
return kt.call(this.children, e)
}
- })('function' === typeof e ? e : Et(e)),
+ })('function' === typeof e ? e : xt(e)),
)
},
selectChildren: function (e) {
return this.selectAll(
null == e
- ? Ot
+ ? Tt
: (function (e) {
return function () {
- return Tt.call(this.children, e)
+ return Ot.call(this.children, e)
}
- })('function' === typeof e ? e : Et(e)),
+ })('function' === typeof e ? e : xt(e)),
)
},
filter: function (e) {
- 'function' !== typeof e && (e = xt(e))
- for (var t = this._groups, n = t.length, r = new Array(n), i = 0; i < n; ++i)
- for (var o, a = t[i], s = a.length, u = (r[i] = []), l = 0; l < s; ++l)
- (o = a[l]) && e.call(o, o.__data__, l, a) && u.push(o)
- return new Ln(r, this._parents)
+ 'function' !== typeof e && (e = _t(e))
+ for (var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; ++o)
+ for (var i, a = t[o], s = a.length, u = (r[o] = []), c = 0; c < s; ++c)
+ (i = a[c]) && e.call(i, i.__data__, c, a) && u.push(i)
+ return new Dn(r, this._parents)
},
data: function (e, t) {
- if (!arguments.length) return Array.from(this, Rt)
- var n = t ? Mt : Pt,
+ if (!arguments.length) return Array.from(this, It)
+ var n = t ? jt : Pt,
r = this._parents,
- i = this._groups
- 'function' !== typeof e && (e = At(e))
+ o = this._groups
+ 'function' !== typeof e && (e = St(e))
for (
- var o = i.length, a = new Array(o), s = new Array(o), u = new Array(o), l = 0;
- l < o;
- ++l
+ var i = o.length, a = new Array(i), s = new Array(i), u = new Array(i), c = 0;
+ c < i;
+ ++c
) {
- var c = r[l],
- d = i[l],
+ var l = r[c],
+ d = o[c],
f = d.length,
- h = jt(e.call(c, c && c.__data__, l, r)),
+ h = At(e.call(l, l && l.__data__, c, r)),
p = h.length,
- v = (s[l] = new Array(p)),
- m = (a[l] = new Array(p)),
- g = (u[l] = new Array(f))
- n(c, d, v, m, g, h, t)
- for (var y, b, w = 0, x = 0; w < p; ++w)
+ v = (s[c] = new Array(p)),
+ m = (a[c] = new Array(p)),
+ g = (u[c] = new Array(f))
+ n(l, d, v, m, g, h, t)
+ for (var y, b, w = 0, _ = 0; w < p; ++w)
if ((y = v[w])) {
- for (w >= x && (x = w + 1); !(b = m[x]) && ++x < p; );
+ for (w >= _ && (_ = w + 1); !(b = m[_]) && ++_ < p; );
y._next = b || null
}
}
- return ((a = new Ln(a, r))._enter = s), (a._exit = u), a
+ return ((a = new Dn(a, r))._enter = s), (a._exit = u), a
},
enter: function () {
- return new Ln(this._enter || this._groups.map(Ct), this._parents)
+ return new Dn(this._enter || this._groups.map(Ct), this._parents)
},
exit: function () {
- return new Ln(this._exit || this._groups.map(Ct), this._parents)
+ return new Dn(this._exit || this._groups.map(Ct), this._parents)
},
join: function (e, t, n) {
var r = this.enter(),
- i = this,
- o = this.exit()
+ o = this,
+ i = this.exit()
return (
'function' === typeof e ? (r = e(r)) && (r = r.selection()) : (r = r.append(e + '')),
- null != t && (i = t(i)) && (i = i.selection()),
- null == n ? o.remove() : n(o),
- r && i ? r.merge(i).order() : i
+ null != t && (o = t(o)) && (o = o.selection()),
+ null == n ? i.remove() : n(i),
+ r && o ? r.merge(o).order() : o
)
},
merge: function (e) {
@@ -31445,30 +45505,30 @@
var t = e.selection ? e.selection() : e,
n = this._groups,
r = t._groups,
- i = n.length,
- o = r.length,
- a = Math.min(i, o),
- s = new Array(i),
+ o = n.length,
+ i = r.length,
+ a = Math.min(o, i),
+ s = new Array(o),
u = 0;
u < a;
++u
)
for (
- var l, c = n[u], d = r[u], f = c.length, h = (s[u] = new Array(f)), p = 0;
+ var c, l = n[u], d = r[u], f = l.length, h = (s[u] = new Array(f)), p = 0;
p < f;
++p
)
- (l = c[p] || d[p]) && (h[p] = l)
- for (; u < i; ++u) s[u] = n[u]
- return new Ln(s, this._parents)
+ (c = l[p] || d[p]) && (h[p] = c)
+ for (; u < o; ++u) s[u] = n[u]
+ return new Dn(s, this._parents)
},
selection: function () {
return this
},
order: function () {
for (var e = this._groups, t = -1, n = e.length; ++t < n; )
- for (var r, i = e[t], o = i.length - 1, a = i[o]; --o >= 0; )
- (r = i[o]) &&
+ for (var r, o = e[t], i = o.length - 1, a = o[i]; --i >= 0; )
+ (r = o[i]) &&
(a && 4 ^ r.compareDocumentPosition(a) && a.parentNode.insertBefore(r, a),
(a = r))
return this
@@ -31477,13 +45537,13 @@
function t(t, n) {
return t && n ? e(t.__data__, n.__data__) : !t - !n
}
- e || (e = Dt)
- for (var n = this._groups, r = n.length, i = new Array(r), o = 0; o < r; ++o) {
- for (var a, s = n[o], u = s.length, l = (i[o] = new Array(u)), c = 0; c < u; ++c)
- (a = s[c]) && (l[c] = a)
- l.sort(t)
+ e || (e = Rt)
+ for (var n = this._groups, r = n.length, o = new Array(r), i = 0; i < r; ++i) {
+ for (var a, s = n[i], u = s.length, c = (o[i] = new Array(u)), l = 0; l < u; ++l)
+ (a = s[l]) && (c[l] = a)
+ c.sort(t)
}
- return new Ln(i, this._parents).order()
+ return new Dn(o, this._parents).order()
},
call: function () {
var e = arguments[0]
@@ -31494,8 +45554,8 @@
},
node: function () {
for (var e = this._groups, t = 0, n = e.length; t < n; ++t)
- for (var r = e[t], i = 0, o = r.length; i < o; ++i) {
- var a = r[i]
+ for (var r = e[t], o = 0, i = r.length; o < i; ++o) {
+ var a = r[o]
if (a) return a
}
return null
@@ -31503,7 +45563,7 @@
size: function () {
var e,
t = 0,
- n = Lt(this)
+ n = Dt(this)
try {
for (n.s(); !(e = n.n()).done; ) {
e.value
@@ -31521,12 +45581,12 @@
},
each: function (e) {
for (var t = this._groups, n = 0, r = t.length; n < r; ++n)
- for (var i, o = t[n], a = 0, s = o.length; a < s; ++a)
- (i = o[a]) && e.call(i, i.__data__, a, o)
+ for (var o, i = t[n], a = 0, s = i.length; a < s; ++a)
+ (o = i[a]) && e.call(o, o.__data__, a, i)
return this
},
attr: function (e, t) {
- var n = Ht(e)
+ var n = Bt(e)
if (arguments.length < 2) {
var r = this.node()
return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n)
@@ -31535,22 +45595,22 @@
(null == t
? n.local
? Ft
- : Bt
+ : Ht
: 'function' === typeof t
? n.local
- ? qt
- : Gt
+ ? Gt
+ : Ut
: n.local
- ? Ut
+ ? Wt
: Vt)(n, t),
)
},
style: function (e, t, n) {
return arguments.length > 1
? this.each(
- (null == t ? Kt : 'function' === typeof t ? $t : Zt)(e, t, null == n ? '' : n),
+ (null == t ? Kt : 'function' === typeof t ? Xt : Zt)(e, t, null == n ? '' : n),
)
- : Xt(this.node(), e)
+ : $t(this.node(), e)
},
property: function (e, t) {
return arguments.length > 1
@@ -31560,15 +45620,15 @@
classed: function (e, t) {
var n = en(e + '')
if (arguments.length < 2) {
- for (var r = tn(this.node()), i = -1, o = n.length; ++i < o; )
- if (!r.contains(n[i])) return !1
+ for (var r = tn(this.node()), o = -1, i = n.length; ++o < i; )
+ if (!r.contains(n[o])) return !1
return !0
}
return this.each(('function' === typeof t ? un : t ? an : sn)(n, t))
},
text: function (e) {
return arguments.length
- ? this.each(null == e ? ln : ('function' === typeof e ? dn : cn)(e))
+ ? this.each(null == e ? cn : ('function' === typeof e ? dn : ln)(e))
: this.node().textContent
},
html: function (e) {
@@ -31596,63 +45656,63 @@
})
},
remove: function () {
- return this.each(xn)
+ return this.each(_n)
},
clone: function (e) {
- return this.select(e ? kn : En)
+ return this.select(e ? kn : xn)
},
datum: function (e) {
return arguments.length ? this.property('__data__', e) : this.node().__data__
},
on: function (e, t, n) {
var r,
- i,
- o = _n(e + ''),
- a = o.length
+ o,
+ i = En(e + ''),
+ a = i.length
if (!(arguments.length < 2)) {
- for (s = t ? On : Tn, r = 0; r < a; ++r) this.each(s(o[r], t, n))
+ for (s = t ? Tn : On, r = 0; r < a; ++r) this.each(s(i[r], t, n))
return this
}
var s = this.node().__on
if (s)
- for (var u, l = 0, c = s.length; l < c; ++l)
- for (r = 0, u = s[l]; r < a; ++r)
- if ((i = o[r]).type === u.type && i.name === u.name) return u.value
+ for (var u, c = 0, l = s.length; c < l; ++c)
+ for (r = 0, u = s[c]; r < a; ++r)
+ if ((o = i[r]).type === u.type && o.name === u.name) return u.value
},
dispatch: function (e, t) {
- return this.each(('function' === typeof t ? An : Sn)(e, t))
+ return this.each(('function' === typeof t ? Sn : Mn)(e, t))
},
},
Symbol.iterator,
- jn,
+ An,
)
- var In = Nn
+ var Nn = Ln
function zn(e) {
return 'string' === typeof e
- ? new Ln([[document.querySelector(e)]], [document.documentElement])
- : new Ln([[e]], Dn)
+ ? new Dn([[document.querySelector(e)]], [document.documentElement])
+ : new Dn([[e]], Rn)
}
- var Hn = r(7137),
- Bn = { passive: !1 },
+ var Bn = r(77137),
+ Hn = { passive: !1 },
Fn = { capture: !0, passive: !1 }
function Vn(e) {
e.stopImmediatePropagation()
}
- function Un(e) {
+ function Wn(e) {
e.preventDefault(), e.stopImmediatePropagation()
}
- function Gn(e) {
+ function Un(e) {
var t = e.document.documentElement,
- n = zn(e).on('dragstart.drag', Un, Fn)
+ n = zn(e).on('dragstart.drag', Wn, Fn)
'onselectstart' in t
- ? n.on('selectstart.drag', Un, Fn)
+ ? n.on('selectstart.drag', Wn, Fn)
: ((t.__noselect = t.style.MozUserSelect), (t.style.MozUserSelect = 'none'))
}
- function qn(e, t) {
+ function Gn(e, t) {
var n = e.document.documentElement,
r = zn(e).on('dragstart.drag', null)
t &&
- (r.on('click.drag', Un, Fn),
+ (r.on('click.drag', Wn, Fn),
setTimeout(function () {
r.on('click.drag', null)
}, 0)),
@@ -31660,56 +45720,56 @@
? r.on('selectstart.drag', null)
: ((n.style.MozUserSelect = n.__noselect), delete n.__noselect)
}
- function Wn(e) {
+ function qn(e) {
return ((e = Math.exp(e)) + 1 / e) / 2
}
var Kn = (function e(t, n, r) {
- function i(e, i) {
- var o,
+ function o(e, o) {
+ var i,
a,
s = e[0],
u = e[1],
- l = e[2],
- c = i[0],
- d = i[1],
- f = i[2],
- h = c - s,
+ c = e[2],
+ l = o[0],
+ d = o[1],
+ f = o[2],
+ h = l - s,
p = d - u,
v = h * h + p * p
if (v < 1e-12)
- (a = Math.log(f / l) / t),
- (o = function (e) {
- return [s + e * h, u + e * p, l * Math.exp(t * e * a)]
+ (a = Math.log(f / c) / t),
+ (i = function (e) {
+ return [s + e * h, u + e * p, c * Math.exp(t * e * a)]
})
else {
var m = Math.sqrt(v),
- g = (f * f - l * l + r * v) / (2 * l * n * m),
- y = (f * f - l * l - r * v) / (2 * f * n * m),
+ g = (f * f - c * c + r * v) / (2 * c * n * m),
+ y = (f * f - c * c - r * v) / (2 * f * n * m),
b = Math.log(Math.sqrt(g * g + 1) - g),
w = Math.log(Math.sqrt(y * y + 1) - y)
;(a = (w - b) / t),
- (o = function (e) {
+ (i = function (e) {
var r,
- i = e * a,
- o = Wn(b),
- c =
- (l / (n * m)) *
- (o * ((r = t * i + b), ((r = Math.exp(2 * r)) - 1) / (r + 1)) -
+ o = e * a,
+ i = qn(b),
+ l =
+ (c / (n * m)) *
+ (i * ((r = t * o + b), ((r = Math.exp(2 * r)) - 1) / (r + 1)) -
(function (e) {
return ((e = Math.exp(e)) - 1 / e) / 2
})(b))
- return [s + c * h, u + c * p, (l * o) / Wn(t * i + b)]
+ return [s + l * h, u + l * p, (c * i) / qn(t * o + b)]
})
}
- return (o.duration = (1e3 * a * t) / Math.SQRT2), o
+ return (i.duration = (1e3 * a * t) / Math.SQRT2), i
}
return (
- (i.rho = function (t) {
+ (o.rho = function (t) {
var n = Math.max(0.001, +t),
r = n * n
return e(n, r, r * r)
}),
- i
+ o
)
})(Math.SQRT2, 2, 4)
function Zn(e, t) {
@@ -31731,15 +45791,15 @@
)
}
if (t.getBoundingClientRect) {
- var i = t.getBoundingClientRect()
- return [e.clientX - i.left - t.clientLeft, e.clientY - i.top - t.clientTop]
+ var o = t.getBoundingClientRect()
+ return [e.clientX - o.left - t.clientLeft, e.clientY - o.top - t.clientTop]
}
}
return [e.pageX, e.pageY]
}
- var $n = r(513)
- function Xn(e, t, n) {
- var r = new $n.B7()
+ var Xn = r(513)
+ function $n(e, t, n) {
+ var r = new Xn.B7()
return (
(t = null == t ? 0 : +t),
r.restart(
@@ -31752,78 +45812,78 @@
r
)
}
- var Yn = (0, Hn.Z)('start', 'end', 'cancel', 'interrupt'),
+ var Yn = (0, Bn.Z)('start', 'end', 'cancel', 'interrupt'),
Qn = []
- function Jn(e, t, n, r, i, o) {
+ function Jn(e, t, n, r, o, i) {
var a = e.__transition
if (a) {
if (n in a) return
} else e.__transition = {}
!(function (e, t, n) {
var r,
- i = e.__transition
- function o(e) {
+ o = e.__transition
+ function i(e) {
;(n.state = 1), n.timer.restart(a, n.delay, n.time), n.delay <= e && a(e - n.delay)
}
- function a(o) {
- var l, c, d, f
+ function a(i) {
+ var c, l, d, f
if (1 !== n.state) return u()
- for (l in i)
- if ((f = i[l]).name === n.name) {
- if (3 === f.state) return Xn(a)
+ for (c in o)
+ if ((f = o[c]).name === n.name) {
+ if (3 === f.state) return $n(a)
4 === f.state
? ((f.state = 6),
f.timer.stop(),
f.on.call('interrupt', e, e.__data__, f.index, f.group),
- delete i[l])
- : +l < t &&
+ delete o[c])
+ : +c < t &&
((f.state = 6),
f.timer.stop(),
f.on.call('cancel', e, e.__data__, f.index, f.group),
- delete i[l])
+ delete o[c])
}
if (
- (Xn(function () {
- 3 === n.state && ((n.state = 4), n.timer.restart(s, n.delay, n.time), s(o))
+ ($n(function () {
+ 3 === n.state && ((n.state = 4), n.timer.restart(s, n.delay, n.time), s(i))
}),
(n.state = 2),
n.on.call('start', e, e.__data__, n.index, n.group),
2 === n.state)
) {
- for (n.state = 3, r = new Array((d = n.tween.length)), l = 0, c = -1; l < d; ++l)
- (f = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && (r[++c] = f)
- r.length = c + 1
+ for (n.state = 3, r = new Array((d = n.tween.length)), c = 0, l = -1; c < d; ++c)
+ (f = n.tween[c].value.call(e, e.__data__, n.index, n.group)) && (r[++l] = f)
+ r.length = l + 1
}
}
function s(t) {
for (
- var i =
+ var o =
t < n.duration
? n.ease.call(null, t / n.duration)
: (n.timer.restart(u), (n.state = 5), 1),
- o = -1,
+ i = -1,
a = r.length;
- ++o < a;
+ ++i < a;
)
- r[o].call(e, i)
+ r[i].call(e, o)
5 === n.state && (n.on.call('end', e, e.__data__, n.index, n.group), u())
}
function u() {
- for (var r in ((n.state = 6), n.timer.stop(), delete i[t], i)) return
+ for (var r in ((n.state = 6), n.timer.stop(), delete o[t], o)) return
delete e.__transition
}
- ;(i[t] = n), (n.timer = (0, $n.HT)(o, 0, n.time))
+ ;(o[t] = n), (n.timer = (0, Xn.HT)(i, 0, n.time))
})(e, n, {
name: t,
index: r,
- group: i,
+ group: o,
on: Yn,
tween: Qn,
- time: o.time,
- delay: o.delay,
- duration: o.duration,
- ease: o.ease,
+ time: i.time,
+ delay: i.delay,
+ duration: i.duration,
+ ease: i.ease,
timer: null,
state: 0,
})
@@ -31846,26 +45906,26 @@
function rr(e, t) {
var n,
r,
- i,
- o = e.__transition,
+ o,
+ i = e.__transition,
a = !0
- if (o) {
- for (i in ((t = null == t ? null : t + ''), o))
- (n = o[i]).name === t
+ if (i) {
+ for (o in ((t = null == t ? null : t + ''), i))
+ (n = i[o]).name === t
? ((r = n.state > 2 && n.state < 5),
(n.state = 6),
n.timer.stop(),
n.on.call(r ? 'interrupt' : 'cancel', e, e.__data__, n.index, n.group),
- delete o[i])
+ delete i[o])
: (a = !1)
a && delete e.__transition
}
}
- var ir,
- or = r(6033),
+ var or,
+ ir = r(16033),
ar = 180 / Math.PI,
sr = { translateX: 0, translateY: 0, rotate: 0, skewX: 0, scaleX: 1, scaleY: 1 }
- function ur(e, t, n, r, i, o) {
+ function ur(e, t, n, r, o, i) {
var a, s, u
return (
(a = Math.sqrt(e * e + t * t)) && ((e /= a), (t /= a)),
@@ -31873,8 +45933,8 @@
(s = Math.sqrt(n * n + r * r)) && ((n /= s), (r /= s), (u /= s)),
e * r < t * n && ((e = -e), (t = -t), (u = -u), (a = -a)),
{
- translateX: i,
- translateY: o,
+ translateX: o,
+ translateY: i,
rotate: Math.atan2(t, e) * ar,
skewX: Math.atan(u) * ar,
scaleX: a,
@@ -31882,40 +45942,40 @@
}
)
}
- function lr(e, t, n, r) {
- function i(e) {
+ function cr(e, t, n, r) {
+ function o(e) {
return e.length ? e.pop() + ' ' : ''
}
- return function (o, a) {
+ return function (i, a) {
var s = [],
u = []
return (
- (o = e(o)),
+ (i = e(i)),
(a = e(a)),
- (function (e, r, i, o, a, s) {
- if (e !== i || r !== o) {
+ (function (e, r, o, i, a, s) {
+ if (e !== o || r !== i) {
var u = a.push('translate(', null, t, null, n)
- s.push({ i: u - 4, x: (0, or.Z)(e, i) }, { i: u - 2, x: (0, or.Z)(r, o) })
- } else (i || o) && a.push('translate(' + i + t + o + n)
- })(o.translateX, o.translateY, a.translateX, a.translateY, s, u),
- (function (e, t, n, o) {
+ s.push({ i: u - 4, x: (0, ir.Z)(e, o) }, { i: u - 2, x: (0, ir.Z)(r, i) })
+ } else (o || i) && a.push('translate(' + o + t + i + n)
+ })(i.translateX, i.translateY, a.translateX, a.translateY, s, u),
+ (function (e, t, n, i) {
e !== t
? (e - t > 180 ? (t += 360) : t - e > 180 && (e += 360),
- o.push({ i: n.push(i(n) + 'rotate(', null, r) - 2, x: (0, or.Z)(e, t) }))
- : t && n.push(i(n) + 'rotate(' + t + r)
- })(o.rotate, a.rotate, s, u),
- (function (e, t, n, o) {
+ i.push({ i: n.push(o(n) + 'rotate(', null, r) - 2, x: (0, ir.Z)(e, t) }))
+ : t && n.push(o(n) + 'rotate(' + t + r)
+ })(i.rotate, a.rotate, s, u),
+ (function (e, t, n, i) {
e !== t
- ? o.push({ i: n.push(i(n) + 'skewX(', null, r) - 2, x: (0, or.Z)(e, t) })
- : t && n.push(i(n) + 'skewX(' + t + r)
- })(o.skewX, a.skewX, s, u),
- (function (e, t, n, r, o, a) {
+ ? i.push({ i: n.push(o(n) + 'skewX(', null, r) - 2, x: (0, ir.Z)(e, t) })
+ : t && n.push(o(n) + 'skewX(' + t + r)
+ })(i.skewX, a.skewX, s, u),
+ (function (e, t, n, r, i, a) {
if (e !== n || t !== r) {
- var s = o.push(i(o) + 'scale(', null, ',', null, ')')
- a.push({ i: s - 4, x: (0, or.Z)(e, n) }, { i: s - 2, x: (0, or.Z)(t, r) })
- } else (1 === n && 1 === r) || o.push(i(o) + 'scale(' + n + ',' + r + ')')
- })(o.scaleX, o.scaleY, a.scaleX, a.scaleY, s, u),
- (o = a = null),
+ var s = i.push(o(i) + 'scale(', null, ',', null, ')')
+ a.push({ i: s - 4, x: (0, ir.Z)(e, n) }, { i: s - 2, x: (0, ir.Z)(t, r) })
+ } else (1 === n && 1 === r) || i.push(o(i) + 'scale(' + n + ',' + r + ')')
+ })(i.scaleX, i.scaleY, a.scaleX, a.scaleY, s, u),
+ (i = a = null),
function (e) {
for (var t, n = -1, r = u.length; ++n < r; ) s[(t = u[n]).i] = t.x(e)
return s.join('')
@@ -31923,7 +45983,7 @@
)
}
}
- var cr = lr(
+ var lr = cr(
function (e) {
var t = new ('function' === typeof DOMMatrix ? DOMMatrix : WebKitCSSMatrix)(e + '')
return t.isIdentity ? sr : ur(t.a, t.b, t.c, t.d, t.e, t.f)
@@ -31932,13 +45992,13 @@
'px)',
'deg)',
),
- dr = lr(
+ dr = cr(
function (e) {
return null == e
? sr
- : (ir || (ir = document.createElementNS('http://www.w3.org/2000/svg', 'g')),
- ir.setAttribute('transform', e),
- (e = ir.transform.baseVal.consolidate())
+ : (or || (or = document.createElementNS('http://www.w3.org/2000/svg', 'g')),
+ or.setAttribute('transform', e),
+ (e = or.transform.baseVal.consolidate())
? ur((e = e.matrix).a, e.b, e.c, e.d, e.e, e.f)
: sr)
},
@@ -31949,33 +46009,33 @@
function fr(e, t) {
var n, r
return function () {
- var i = tr(this, e),
- o = i.tween
- if (o !== n)
- for (var a = 0, s = (r = n = o).length; a < s; ++a)
+ var o = tr(this, e),
+ i = o.tween
+ if (i !== n)
+ for (var a = 0, s = (r = n = i).length; a < s; ++a)
if (r[a].name === t) {
;(r = r.slice()).splice(a, 1)
break
}
- i.tween = r
+ o.tween = r
}
}
function hr(e, t, n) {
- var r, i
+ var r, o
if ('function' !== typeof n) throw new Error()
return function () {
- var o = tr(this, e),
- a = o.tween
+ var i = tr(this, e),
+ a = i.tween
if (a !== r) {
- i = (r = a).slice()
- for (var s = { name: t, value: n }, u = 0, l = i.length; u < l; ++u)
- if (i[u].name === t) {
- i[u] = s
+ o = (r = a).slice()
+ for (var s = { name: t, value: n }, u = 0, c = o.length; u < c; ++u)
+ if (o[u].name === t) {
+ o[u] = s
break
}
- u === l && i.push(s)
+ u === c && o.push(s)
}
- o.tween = i
+ i.tween = o
}
}
function pr(e, t, n) {
@@ -31990,14 +46050,14 @@
}
)
}
- var vr = r(6374),
- mr = r(3028),
- gr = r(370)
+ var vr = r(76374),
+ mr = r(73028),
+ gr = r(10370)
function yr(e, t) {
var n
return (
'number' === typeof t
- ? or.Z
+ ? ir.Z
: t instanceof vr.ZP
? mr.ZP
: (n = (0, vr.ZP)(t))
@@ -32015,26 +46075,26 @@
this.removeAttributeNS(e.space, e.local)
}
}
- function xr(e, t, n) {
+ function _r(e, t, n) {
var r,
- i,
- o = n + ''
+ o,
+ i = n + ''
return function () {
var a = this.getAttribute(e)
- return a === o ? null : a === r ? i : (i = t((r = a), n))
+ return a === i ? null : a === r ? o : (o = t((r = a), n))
}
}
- function Er(e, t, n) {
+ function xr(e, t, n) {
var r,
- i,
- o = n + ''
+ o,
+ i = n + ''
return function () {
var a = this.getAttributeNS(e.space, e.local)
- return a === o ? null : a === r ? i : (i = t((r = a), n))
+ return a === i ? null : a === r ? o : (o = t((r = a), n))
}
}
function kr(e, t, n) {
- var r, i, o
+ var r, o, i
return function () {
var a,
s,
@@ -32042,14 +46102,14 @@
if (null != u)
return (a = this.getAttribute(e)) === (s = u + '')
? null
- : a === r && s === i
- ? o
- : ((i = s), (o = t((r = a), u)))
+ : a === r && s === o
+ ? i
+ : ((o = s), (i = t((r = a), u)))
this.removeAttribute(e)
}
}
- function _r(e, t, n) {
- var r, i, o
+ function Er(e, t, n) {
+ var r, o, i
return function () {
var a,
s,
@@ -32057,39 +46117,39 @@
if (null != u)
return (a = this.getAttributeNS(e.space, e.local)) === (s = u + '')
? null
- : a === r && s === i
- ? o
- : ((i = s), (o = t((r = a), u)))
+ : a === r && s === o
+ ? i
+ : ((o = s), (i = t((r = a), u)))
this.removeAttributeNS(e.space, e.local)
}
}
- function Tr(e, t) {
+ function Or(e, t) {
return function (n) {
this.setAttribute(e, t.call(this, n))
}
}
- function Or(e, t) {
+ function Tr(e, t) {
return function (n) {
this.setAttributeNS(e.space, e.local, t.call(this, n))
}
}
function Cr(e, t) {
var n, r
- function i() {
- var i = t.apply(this, arguments)
- return i !== r && (n = (r = i) && Or(e, i)), n
+ function o() {
+ var o = t.apply(this, arguments)
+ return o !== r && (n = (r = o) && Tr(e, o)), n
}
- return (i._value = t), i
+ return (o._value = t), o
}
- function Sr(e, t) {
+ function Mr(e, t) {
var n, r
- function i() {
- var i = t.apply(this, arguments)
- return i !== r && (n = (r = i) && Tr(e, i)), n
+ function o() {
+ var o = t.apply(this, arguments)
+ return o !== r && (n = (r = o) && Or(e, o)), n
}
- return (i._value = t), i
+ return (o._value = t), o
}
- function Ar(e, t) {
+ function Sr(e, t) {
return function () {
er(this, e).delay = +t.apply(this, arguments)
}
@@ -32102,12 +46162,12 @@
}
)
}
- function Mr(e, t) {
+ function jr(e, t) {
return function () {
tr(this, e).duration = +t.apply(this, arguments)
}
}
- function Rr(e, t) {
+ function Ir(e, t) {
return (
(t = +t),
function () {
@@ -32115,16 +46175,16 @@
}
)
}
- function jr(e, t) {
+ function Ar(e, t) {
if ('function' !== typeof t) throw new Error()
return function () {
tr(this, e).ease = t
}
}
- function Dr(e, t, n) {
+ function Rr(e, t, n) {
var r,
- i,
- o = (function (e) {
+ o,
+ i = (function (e) {
return (e + '')
.trim()
.split(/^|\s+/)
@@ -32136,40 +46196,40 @@
? er
: tr
return function () {
- var a = o(this, e),
+ var a = i(this, e),
s = a.on
- s !== r && (i = (r = s).copy()).on(t, n), (a.on = i)
+ s !== r && (o = (r = s).copy()).on(t, n), (a.on = o)
}
}
- var Lr = In.prototype.constructor
- function Nr(e) {
+ var Dr = Nn.prototype.constructor
+ function Lr(e) {
return function () {
this.style.removeProperty(e)
}
}
- function Ir(e, t, n) {
+ function Nr(e, t, n) {
return function (r) {
this.style.setProperty(e, t.call(this, r), n)
}
}
function zr(e, t, n) {
- var r, i
- function o() {
- var o = t.apply(this, arguments)
- return o !== i && (r = (i = o) && Ir(e, o, n)), r
+ var r, o
+ function i() {
+ var i = t.apply(this, arguments)
+ return i !== o && (r = (o = i) && Nr(e, i, n)), r
}
- return (o._value = t), o
+ return (i._value = t), i
}
- function Hr(e) {
+ function Br(e) {
return function (t) {
this.textContent = e.call(this, t)
}
}
- function Br(e) {
+ function Hr(e) {
var t, n
function r() {
var r = e.apply(this, arguments)
- return r !== n && (t = (n = r) && Hr(r)), t
+ return r !== n && (t = (n = r) && Br(r)), t
}
return (r._value = e), r
}
@@ -32177,12 +46237,12 @@
function Vr(e, t, n, r) {
;(this._groups = e), (this._parents = t), (this._name = n), (this._id = r)
}
- function Ur() {
+ function Wr() {
return ++Fr
}
- var Gr = In.prototype
+ var Ur = Nn.prototype
Vr.prototype = function (e) {
- return In().transition(e)
+ return Nn().transition(e)
}.prototype = (0, vt.Z)(
{
constructor: Vr,
@@ -32190,39 +46250,39 @@
var t = this._name,
n = this._id
'function' !== typeof e && (e = gt(e))
- for (var r = this._groups, i = r.length, o = new Array(i), a = 0; a < i; ++a)
- for (var s, u, l = r[a], c = l.length, d = (o[a] = new Array(c)), f = 0; f < c; ++f)
- (s = l[f]) &&
- (u = e.call(s, s.__data__, f, l)) &&
+ for (var r = this._groups, o = r.length, i = new Array(o), a = 0; a < o; ++a)
+ for (var s, u, c = r[a], l = c.length, d = (i[a] = new Array(l)), f = 0; f < l; ++f)
+ (s = c[f]) &&
+ (u = e.call(s, s.__data__, f, c)) &&
('__data__' in s && (u.__data__ = s.__data__),
(d[f] = u),
Jn(d[f], t, n, f, d, nr(s, n)))
- return new Vr(o, this._parents, t, n)
+ return new Vr(i, this._parents, t, n)
},
selectAll: function (e) {
var t = this._name,
n = this._id
'function' !== typeof e && (e = wt(e))
- for (var r = this._groups, i = r.length, o = [], a = [], s = 0; s < i; ++s)
- for (var u, l = r[s], c = l.length, d = 0; d < c; ++d)
- if ((u = l[d])) {
+ for (var r = this._groups, o = r.length, i = [], a = [], s = 0; s < o; ++s)
+ for (var u, c = r[s], l = c.length, d = 0; d < l; ++d)
+ if ((u = c[d])) {
for (
- var f, h = e.call(u, u.__data__, d, l), p = nr(u, n), v = 0, m = h.length;
+ var f, h = e.call(u, u.__data__, d, c), p = nr(u, n), v = 0, m = h.length;
v < m;
++v
)
(f = h[v]) && Jn(f, t, n, v, h, p)
- o.push(h), a.push(u)
+ i.push(h), a.push(u)
}
- return new Vr(o, a, t, n)
+ return new Vr(i, a, t, n)
},
- selectChild: Gr.selectChild,
- selectChildren: Gr.selectChildren,
+ selectChild: Ur.selectChild,
+ selectChildren: Ur.selectChildren,
filter: function (e) {
- 'function' !== typeof e && (e = xt(e))
- for (var t = this._groups, n = t.length, r = new Array(n), i = 0; i < n; ++i)
- for (var o, a = t[i], s = a.length, u = (r[i] = []), l = 0; l < s; ++l)
- (o = a[l]) && e.call(o, o.__data__, l, a) && u.push(o)
+ 'function' !== typeof e && (e = _t(e))
+ for (var t = this._groups, n = t.length, r = new Array(n), o = 0; o < n; ++o)
+ for (var i, a = t[o], s = a.length, u = (r[o] = []), c = 0; c < s; ++c)
+ (i = a[c]) && e.call(i, i.__data__, c, a) && u.push(i)
return new Vr(r, this._parents, this._name, this._id)
},
merge: function (e) {
@@ -32231,63 +46291,63 @@
var t = this._groups,
n = e._groups,
r = t.length,
- i = n.length,
- o = Math.min(r, i),
+ o = n.length,
+ i = Math.min(r, o),
a = new Array(r),
s = 0;
- s < o;
+ s < i;
++s
)
for (
- var u, l = t[s], c = n[s], d = l.length, f = (a[s] = new Array(d)), h = 0;
+ var u, c = t[s], l = n[s], d = c.length, f = (a[s] = new Array(d)), h = 0;
h < d;
++h
)
- (u = l[h] || c[h]) && (f[h] = u)
+ (u = c[h] || l[h]) && (f[h] = u)
for (; s < r; ++s) a[s] = t[s]
return new Vr(a, this._parents, this._name, this._id)
},
selection: function () {
- return new Lr(this._groups, this._parents)
+ return new Dr(this._groups, this._parents)
},
transition: function () {
for (
- var e = this._name, t = this._id, n = Ur(), r = this._groups, i = r.length, o = 0;
- o < i;
- ++o
+ var e = this._name, t = this._id, n = Wr(), r = this._groups, o = r.length, i = 0;
+ i < o;
+ ++i
)
- for (var a, s = r[o], u = s.length, l = 0; l < u; ++l)
- if ((a = s[l])) {
- var c = nr(a, t)
- Jn(a, e, n, l, s, {
- time: c.time + c.delay + c.duration,
+ for (var a, s = r[i], u = s.length, c = 0; c < u; ++c)
+ if ((a = s[c])) {
+ var l = nr(a, t)
+ Jn(a, e, n, c, s, {
+ time: l.time + l.delay + l.duration,
delay: 0,
- duration: c.duration,
- ease: c.ease,
+ duration: l.duration,
+ ease: l.ease,
})
}
return new Vr(r, this._parents, e, n)
},
- call: Gr.call,
- nodes: Gr.nodes,
- node: Gr.node,
- size: Gr.size,
- empty: Gr.empty,
- each: Gr.each,
+ call: Ur.call,
+ nodes: Ur.nodes,
+ node: Ur.node,
+ size: Ur.size,
+ empty: Ur.empty,
+ each: Ur.each,
on: function (e, t) {
var n = this._id
- return arguments.length < 2 ? nr(this.node(), n).on.on(e) : this.each(Dr(n, e, t))
+ return arguments.length < 2 ? nr(this.node(), n).on.on(e) : this.each(Rr(n, e, t))
},
attr: function (e, t) {
- var n = Ht(e),
+ var n = Bt(e),
r = 'transform' === n ? dr : yr
return this.attrTween(
e,
'function' === typeof t
- ? (n.local ? _r : kr)(n, r, pr(this, 'attr.' + e, t))
+ ? (n.local ? Er : kr)(n, r, pr(this, 'attr.' + e, t))
: null == t
? (n.local ? wr : br)(n)
- : (n.local ? Er : xr)(n, r, t),
+ : (n.local ? xr : _r)(n, r, t),
)
},
attrTween: function (e, t) {
@@ -32295,35 +46355,35 @@
if (arguments.length < 2) return (n = this.tween(n)) && n._value
if (null == t) return this.tween(n, null)
if ('function' !== typeof t) throw new Error()
- var r = Ht(e)
- return this.tween(n, (r.local ? Cr : Sr)(r, t))
+ var r = Bt(e)
+ return this.tween(n, (r.local ? Cr : Mr)(r, t))
},
style: function (e, t, n) {
- var r = 'transform' === (e += '') ? cr : yr
+ var r = 'transform' === (e += '') ? lr : yr
return null == t
? this.styleTween(
e,
(function (e, t) {
- var n, r, i
+ var n, r, o
return function () {
- var o = Xt(this, e),
- a = (this.style.removeProperty(e), Xt(this, e))
- return o === a ? null : o === n && a === r ? i : (i = t((n = o), (r = a)))
+ var i = $t(this, e),
+ a = (this.style.removeProperty(e), $t(this, e))
+ return i === a ? null : i === n && a === r ? o : (o = t((n = i), (r = a)))
}
})(e, r),
- ).on('end.style.' + e, Nr(e))
+ ).on('end.style.' + e, Lr(e))
: 'function' === typeof t
? this.styleTween(
e,
(function (e, t, n) {
- var r, i, o
+ var r, o, i
return function () {
- var a = Xt(this, e),
+ var a = $t(this, e),
s = n(this),
u = s + ''
return (
- null == s && (this.style.removeProperty(e), (u = s = Xt(this, e))),
- a === u ? null : a === r && u === i ? o : ((i = u), (o = t((r = a), s)))
+ null == s && (this.style.removeProperty(e), (u = s = $t(this, e))),
+ a === u ? null : a === r && u === o ? i : ((o = u), (i = t((r = a), s)))
)
}
})(e, r, pr(this, 'style.' + e, t)),
@@ -32331,15 +46391,15 @@
(function (e, t) {
var n,
r,
- i,
o,
+ i,
a = 'style.' + t,
s = 'end.' + a
return function () {
var u = tr(this, e),
- l = u.on,
- c = null == u.value[a] ? o || (o = Nr(t)) : void 0
- ;(l === n && i === c) || (r = (n = l).copy()).on(s, (i = c)), (u.on = r)
+ c = u.on,
+ l = null == u.value[a] ? i || (i = Lr(t)) : void 0
+ ;(c === n && o === l) || (r = (n = c).copy()).on(s, (o = l)), (u.on = r)
}
})(this._id, e),
)
@@ -32347,11 +46407,11 @@
e,
(function (e, t, n) {
var r,
- i,
- o = n + ''
+ o,
+ i = n + ''
return function () {
- var a = Xt(this, e)
- return a === o ? null : a === r ? i : (i = t((r = a), n))
+ var a = $t(this, e)
+ return a === i ? null : a === r ? o : (o = t((r = a), n))
}
})(e, r, t),
n,
@@ -32386,7 +46446,7 @@
if (arguments.length < 1) return (t = this.tween(t)) && t._value
if (null == e) return this.tween(t, null)
if ('function' !== typeof e) throw new Error()
- return this.tween(t, Br(e))
+ return this.tween(t, Hr(e))
},
remove: function () {
return this.on(
@@ -32403,8 +46463,8 @@
tween: function (e, t) {
var n = this._id
if (((e += ''), arguments.length < 2)) {
- for (var r, i = nr(this.node(), n).tween, o = 0, a = i.length; o < a; ++o)
- if ((r = i[o]).name === e) return r.value
+ for (var r, o = nr(this.node(), n).tween, i = 0, a = o.length; i < a; ++i)
+ if ((r = o[i]).name === e) return r.value
return null
}
return this.each((null == t ? fr : hr)(n, e, t))
@@ -32412,18 +46472,18 @@
delay: function (e) {
var t = this._id
return arguments.length
- ? this.each(('function' === typeof e ? Ar : Pr)(t, e))
+ ? this.each(('function' === typeof e ? Sr : Pr)(t, e))
: nr(this.node(), t).delay
},
duration: function (e) {
var t = this._id
return arguments.length
- ? this.each(('function' === typeof e ? Mr : Rr)(t, e))
+ ? this.each(('function' === typeof e ? jr : Ir)(t, e))
: nr(this.node(), t).duration
},
ease: function (e) {
var t = this._id
- return arguments.length ? this.each(jr(t, e)) : nr(this.node(), t).ease
+ return arguments.length ? this.each(Ar(t, e)) : nr(this.node(), t).ease
},
easeVarying: function (e) {
if ('function' !== typeof e) throw new Error()
@@ -32442,29 +46502,29 @@
t,
n = this,
r = n._id,
- i = n.size()
- return new Promise(function (o, a) {
+ o = n.size()
+ return new Promise(function (i, a) {
var s = { value: a },
u = {
value: function () {
- 0 === --i && o()
+ 0 === --o && i()
},
}
n.each(function () {
var n = tr(this, r),
- i = n.on
- i !== e &&
- ((t = (e = i).copy())._.cancel.push(s), t._.interrupt.push(s), t._.end.push(u)),
+ o = n.on
+ o !== e &&
+ ((t = (e = o).copy())._.cancel.push(s), t._.interrupt.push(s), t._.end.push(u)),
(n.on = t)
}),
- 0 === i && o()
+ 0 === o && i()
})
},
},
Symbol.iterator,
- Gr[Symbol.iterator],
+ Ur[Symbol.iterator],
)
- var qr = {
+ var Gr = {
time: null,
delay: 0,
duration: 250,
@@ -32472,24 +46532,24 @@
return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2
},
}
- function Wr(e, t) {
+ function qr(e, t) {
for (var n; !(n = e.__transition) || !(n = n[t]); )
if (!(e = e.parentNode)) throw new Error('transition '.concat(t, ' not found'))
return n
}
- ;(In.prototype.interrupt = function (e) {
+ ;(Nn.prototype.interrupt = function (e) {
return this.each(function () {
rr(this, e)
})
}),
- (In.prototype.transition = function (e) {
+ (Nn.prototype.transition = function (e) {
var t, n
e instanceof Vr
? ((t = e._id), (e = e._name))
- : ((t = Ur()), ((n = qr).time = (0, $n.zO)()), (e = null == e ? null : e + ''))
- for (var r = this._groups, i = r.length, o = 0; o < i; ++o)
- for (var a, s = r[o], u = s.length, l = 0; l < u; ++l)
- (a = s[l]) && Jn(a, e, t, l, s, n || Wr(a, t))
+ : ((t = Wr()), ((n = Gr).time = (0, Xn.zO)()), (e = null == e ? null : e + ''))
+ for (var r = this._groups, o = r.length, i = 0; i < o; ++i)
+ for (var a, s = r[i], u = s.length, c = 0; c < u; ++c)
+ (a = s[c]) && Jn(a, e, t, c, s, n || qr(a, t))
return new Vr(r, this._parents, e, t)
})
var Kr = function (e) {
@@ -32500,28 +46560,28 @@
function Zr(e, t) {
var n = t.sourceEvent,
r = t.target,
- i = t.transform,
- o = t.dispatch
+ o = t.transform,
+ i = t.dispatch
Object.defineProperties(this, {
type: { value: e, enumerable: !0, configurable: !0 },
sourceEvent: { value: n, enumerable: !0, configurable: !0 },
target: { value: r, enumerable: !0, configurable: !0 },
- transform: { value: i, enumerable: !0, configurable: !0 },
- _: { value: o },
+ transform: { value: o, enumerable: !0, configurable: !0 },
+ _: { value: i },
})
}
- function $r(e, t, n) {
+ function Xr(e, t, n) {
;(this.k = e), (this.x = t), (this.y = n)
}
- $r.prototype = {
- constructor: $r,
+ Xr.prototype = {
+ constructor: Xr,
scale: function (e) {
- return 1 === e ? this : new $r(this.k * e, this.x, this.y)
+ return 1 === e ? this : new Xr(this.k * e, this.x, this.y)
},
translate: function (e, t) {
return (0 === e) & (0 === t)
? this
- : new $r(this.k, this.x + this.k * e, this.y + this.k * t)
+ : new Xr(this.k, this.x + this.k * e, this.y + this.k * t)
},
apply: function (e) {
return [e[0] * this.k + this.x, e[1] * this.k + this.y]
@@ -32551,9 +46611,9 @@
return 'translate(' + this.x + ',' + this.y + ') scale(' + this.k + ')'
},
}
- var Xr = new $r(1, 0, 0)
+ var $r = new Xr(1, 0, 0)
function Yr(e) {
- for (; !e.__zoom; ) if (!(e = e.parentNode)) return Xr
+ for (; !e.__zoom; ) if (!(e = e.parentNode)) return $r
return e.__zoom
}
function Qr(e) {
@@ -32562,10 +46622,10 @@
function Jr(e) {
e.preventDefault(), e.stopImmediatePropagation()
}
- function ei(e) {
+ function eo(e) {
return (!e.ctrlKey || 'wheel' === e.type) && !e.button
}
- function ti() {
+ function to() {
var e = this
return e instanceof SVGElement
? (e = e.ownerSVGElement || e).hasAttribute('viewBox')
@@ -32582,143 +46642,143 @@
[e.clientWidth, e.clientHeight],
]
}
- function ni() {
- return this.__zoom || Xr
+ function no() {
+ return this.__zoom || $r
}
- function ri(e) {
+ function ro(e) {
return (
-e.deltaY * (1 === e.deltaMode ? 0.05 : e.deltaMode ? 1 : 0.002) * (e.ctrlKey ? 10 : 1)
)
}
- function ii() {
+ function oo() {
return navigator.maxTouchPoints || 'ontouchstart' in this
}
- function oi(e, t, n) {
+ function io(e, t, n) {
var r = e.invertX(t[0][0]) - n[0][0],
- i = e.invertX(t[1][0]) - n[1][0],
- o = e.invertY(t[0][1]) - n[0][1],
+ o = e.invertX(t[1][0]) - n[1][0],
+ i = e.invertY(t[0][1]) - n[0][1],
a = e.invertY(t[1][1]) - n[1][1]
return e.translate(
- i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i),
- a > o ? (o + a) / 2 : Math.min(0, o) || Math.max(0, a),
+ o > r ? (r + o) / 2 : Math.min(0, r) || Math.max(0, o),
+ a > i ? (i + a) / 2 : Math.min(0, i) || Math.max(0, a),
)
}
- function ai() {
+ function ao() {
var e,
t,
n,
- r = ei,
- i = ti,
- o = oi,
- a = ri,
- s = ii,
+ r = eo,
+ o = to,
+ i = io,
+ a = ro,
+ s = oo,
u = [0, 1 / 0],
- l = [
+ c = [
[-1 / 0, -1 / 0],
[1 / 0, 1 / 0],
],
- c = 250,
+ l = 250,
d = Kn,
- f = (0, Hn.Z)('start', 'zoom', 'end'),
+ f = (0, Bn.Z)('start', 'zoom', 'end'),
h = 500,
p = 0,
v = 10
function m(e) {
- e.property('__zoom', ni)
+ e.property('__zoom', no)
.on('wheel.zoom', k, { passive: !1 })
- .on('mousedown.zoom', _)
- .on('dblclick.zoom', T)
+ .on('mousedown.zoom', E)
+ .on('dblclick.zoom', O)
.filter(s)
- .on('touchstart.zoom', O)
+ .on('touchstart.zoom', T)
.on('touchmove.zoom', C)
- .on('touchend.zoom touchcancel.zoom', S)
+ .on('touchend.zoom touchcancel.zoom', M)
.style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)')
}
function g(e, t) {
- return (t = Math.max(u[0], Math.min(u[1], t))) === e.k ? e : new $r(t, e.x, e.y)
+ return (t = Math.max(u[0], Math.min(u[1], t))) === e.k ? e : new Xr(t, e.x, e.y)
}
function y(e, t, n) {
var r = t[0] - n[0] * e.k,
- i = t[1] - n[1] * e.k
- return r === e.x && i === e.y ? e : new $r(e.k, r, i)
+ o = t[1] - n[1] * e.k
+ return r === e.x && o === e.y ? e : new Xr(e.k, r, o)
}
function b(e) {
return [(+e[0][0] + +e[1][0]) / 2, (+e[0][1] + +e[1][1]) / 2]
}
function w(e, t, n, r) {
e.on('start.zoom', function () {
- x(this, arguments).event(r).start()
+ _(this, arguments).event(r).start()
})
.on('interrupt.zoom end.zoom', function () {
- x(this, arguments).event(r).end()
+ _(this, arguments).event(r).end()
})
.tween('zoom', function () {
var e = this,
- o = arguments,
- a = x(e, o).event(r),
- s = i.apply(e, o),
- u = null == n ? b(s) : 'function' === typeof n ? n.apply(e, o) : n,
- l = Math.max(s[1][0] - s[0][0], s[1][1] - s[0][1]),
- c = e.__zoom,
- f = 'function' === typeof t ? t.apply(e, o) : t,
- h = d(c.invert(u).concat(l / c.k), f.invert(u).concat(l / f.k))
+ i = arguments,
+ a = _(e, i).event(r),
+ s = o.apply(e, i),
+ u = null == n ? b(s) : 'function' === typeof n ? n.apply(e, i) : n,
+ c = Math.max(s[1][0] - s[0][0], s[1][1] - s[0][1]),
+ l = e.__zoom,
+ f = 'function' === typeof t ? t.apply(e, i) : t,
+ h = d(l.invert(u).concat(c / l.k), f.invert(u).concat(c / f.k))
return function (e) {
if (1 === e) e = f
else {
var t = h(e),
- n = l / t[2]
- e = new $r(n, u[0] - t[0] * n, u[1] - t[1] * n)
+ n = c / t[2]
+ e = new Xr(n, u[0] - t[0] * n, u[1] - t[1] * n)
}
a.zoom(null, e)
}
})
}
- function x(e, t, n) {
- return (!n && e.__zooming) || new E(e, t)
+ function _(e, t, n) {
+ return (!n && e.__zooming) || new x(e, t)
}
- function E(e, t) {
+ function x(e, t) {
;(this.that = e),
(this.args = t),
(this.active = 0),
(this.sourceEvent = null),
- (this.extent = i.apply(e, t)),
+ (this.extent = o.apply(e, t)),
(this.taps = 0)
}
function k(e) {
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
- n[i - 1] = arguments[i]
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
+ n[o - 1] = arguments[o]
if (r.apply(this, arguments)) {
- var s = x(this, n).event(e),
- c = this.__zoom,
- d = Math.max(u[0], Math.min(u[1], c.k * Math.pow(2, a.apply(this, arguments)))),
+ var s = _(this, n).event(e),
+ l = this.__zoom,
+ d = Math.max(u[0], Math.min(u[1], l.k * Math.pow(2, a.apply(this, arguments)))),
f = Zn(e)
if (s.wheel)
(s.mouse[0][0] === f[0] && s.mouse[0][1] === f[1]) ||
- (s.mouse[1] = c.invert((s.mouse[0] = f))),
+ (s.mouse[1] = l.invert((s.mouse[0] = f))),
clearTimeout(s.wheel)
else {
- if (c.k === d) return
- ;(s.mouse = [f, c.invert(f)]), rr(this), s.start()
+ if (l.k === d) return
+ ;(s.mouse = [f, l.invert(f)]), rr(this), s.start()
}
Jr(e),
(s.wheel = setTimeout(h, 150)),
- s.zoom('mouse', o(y(g(c, d), s.mouse[0], s.mouse[1]), s.extent, l))
+ s.zoom('mouse', i(y(g(l, d), s.mouse[0], s.mouse[1]), s.extent, c))
}
function h() {
;(s.wheel = null), s.end()
}
}
- function _(e) {
- for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
- i[a - 1] = arguments[a]
+ function E(e) {
+ for (var t = arguments.length, o = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
+ o[a - 1] = arguments[a]
if (!n && r.apply(this, arguments)) {
var s = e.currentTarget,
- u = x(this, i, !0).event(e),
- c = zn(e.view).on('mousemove.zoom', v, !0).on('mouseup.zoom', m, !0),
+ u = _(this, o, !0).event(e),
+ l = zn(e.view).on('mousemove.zoom', v, !0).on('mouseup.zoom', m, !0),
d = Zn(e, s),
f = e.clientX,
h = e.clientY
- Gn(e.view), Qr(e), (u.mouse = [d, this.__zoom.invert(d)]), rr(this), u.start()
+ Un(e.view), Qr(e), (u.mouse = [d, this.__zoom.invert(d)]), rr(this), u.start()
}
function v(e) {
if ((Jr(e), !u.moved)) {
@@ -32728,14 +46788,14 @@
}
u.event(e).zoom(
'mouse',
- o(y(u.that.__zoom, (u.mouse[0] = Zn(e, s)), u.mouse[1]), u.extent, l),
+ i(y(u.that.__zoom, (u.mouse[0] = Zn(e, s)), u.mouse[1]), u.extent, c),
)
}
function m(e) {
- c.on('mousemove.zoom mouseup.zoom', null), qn(e.view, u.moved), Jr(e), u.event(e).end()
+ l.on('mousemove.zoom mouseup.zoom', null), Gn(e.view, u.moved), Jr(e), u.event(e).end()
}
}
- function T(e) {
+ function O(e) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
n[a - 1] = arguments[a]
if (r.apply(this, arguments)) {
@@ -32743,33 +46803,33 @@
u = Zn(e.changedTouches ? e.changedTouches[0] : e, this),
d = s.invert(u),
f = s.k * (e.shiftKey ? 0.5 : 2),
- h = o(y(g(s, f), u, d), i.apply(this, n), l)
+ h = i(y(g(s, f), u, d), o.apply(this, n), c)
Jr(e),
- c > 0
- ? zn(this).transition().duration(c).call(w, h, u, e)
+ l > 0
+ ? zn(this).transition().duration(l).call(w, h, u, e)
: zn(this).call(m.transform, h, u, e)
}
}
- function O(n) {
- for (var i = arguments.length, o = new Array(i > 1 ? i - 1 : 0), a = 1; a < i; a++)
- o[a - 1] = arguments[a]
+ function T(n) {
+ for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), a = 1; a < o; a++)
+ i[a - 1] = arguments[a]
if (r.apply(this, arguments)) {
var s,
u,
- l,
c,
+ l,
d = n.touches,
f = d.length,
- p = x(this, o, n.changedTouches.length === f).event(n)
+ p = _(this, i, n.changedTouches.length === f).event(n)
for (Qr(n), u = 0; u < f; ++u)
- (c = [(c = Zn((l = d[u]), this)), this.__zoom.invert(c), l.identifier]),
+ (l = [(l = Zn((c = d[u]), this)), this.__zoom.invert(l), c.identifier]),
p.touch0
- ? p.touch1 || p.touch0[2] === c[2] || ((p.touch1 = c), (p.taps = 0))
- : ((p.touch0 = c), (s = !0), (p.taps = 1 + !!e))
+ ? p.touch1 || p.touch0[2] === l[2] || ((p.touch1 = l), (p.taps = 0))
+ : ((p.touch0 = l), (s = !0), (p.taps = 1 + !!e))
e && (e = clearTimeout(e)),
s &&
(p.taps < 2 &&
- ((t = c[0]),
+ ((t = l[0]),
(e = setTimeout(function () {
e = null
}, h))),
@@ -32781,44 +46841,44 @@
if (this.__zooming) {
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
n[r - 1] = arguments[r]
- var i,
+ var o,
a,
s,
u,
- c = x(this, n).event(e),
+ l = _(this, n).event(e),
d = e.changedTouches,
f = d.length
- for (Jr(e), i = 0; i < f; ++i)
- (s = Zn((a = d[i]), this)),
- c.touch0 && c.touch0[2] === a.identifier
- ? (c.touch0[0] = s)
- : c.touch1 && c.touch1[2] === a.identifier && (c.touch1[0] = s)
- if (((a = c.that.__zoom), c.touch1)) {
- var h = c.touch0[0],
- p = c.touch0[1],
- v = c.touch1[0],
- m = c.touch1[1],
+ for (Jr(e), o = 0; o < f; ++o)
+ (s = Zn((a = d[o]), this)),
+ l.touch0 && l.touch0[2] === a.identifier
+ ? (l.touch0[0] = s)
+ : l.touch1 && l.touch1[2] === a.identifier && (l.touch1[0] = s)
+ if (((a = l.that.__zoom), l.touch1)) {
+ var h = l.touch0[0],
+ p = l.touch0[1],
+ v = l.touch1[0],
+ m = l.touch1[1],
b = (b = v[0] - h[0]) * b + (b = v[1] - h[1]) * b,
w = (w = m[0] - p[0]) * w + (w = m[1] - p[1]) * w
;(a = g(a, Math.sqrt(b / w))),
(s = [(h[0] + v[0]) / 2, (h[1] + v[1]) / 2]),
(u = [(p[0] + m[0]) / 2, (p[1] + m[1]) / 2])
} else {
- if (!c.touch0) return
- ;(s = c.touch0[0]), (u = c.touch0[1])
+ if (!l.touch0) return
+ ;(s = l.touch0[0]), (u = l.touch0[1])
}
- c.zoom('touch', o(y(a, s, u), c.extent, l))
+ l.zoom('touch', i(y(a, s, u), l.extent, c))
}
}
- function S(e) {
- for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
- i[o - 1] = arguments[o]
+ function M(e) {
+ for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
+ o[i - 1] = arguments[i]
if (this.__zooming) {
var a,
s,
- u = x(this, i).event(e),
- l = e.changedTouches,
- c = l.length
+ u = _(this, o).event(e),
+ c = e.changedTouches,
+ l = c.length
for (
Qr(e),
n && clearTimeout(n),
@@ -32826,10 +46886,10 @@
n = null
}, h),
a = 0;
- a < c;
+ a < l;
++a
)
- (s = l[a]),
+ (s = c[a]),
u.touch0 && u.touch0[2] === s.identifier
? delete u.touch0
: u.touch1 && u.touch1[2] === s.identifier && delete u.touch1
@@ -32846,12 +46906,12 @@
}
return (
(m.transform = function (e, t, n, r) {
- var i = e.selection ? e.selection() : e
- i.property('__zoom', ni),
- e !== i
+ var o = e.selection ? e.selection() : e
+ o.property('__zoom', no),
+ e !== o
? w(e, t, n, r)
- : i.interrupt().each(function () {
- x(this, arguments)
+ : o.interrupt().each(function () {
+ _(this, arguments)
.event(r)
.start()
.zoom(null, 'function' === typeof t ? t.apply(this, arguments) : t)
@@ -32874,12 +46934,12 @@
m.transform(
e,
function () {
- var e = i.apply(this, arguments),
+ var e = o.apply(this, arguments),
r = this.__zoom,
a = null == n ? b(e) : 'function' === typeof n ? n.apply(this, arguments) : n,
s = r.invert(a),
u = 'function' === typeof t ? t.apply(this, arguments) : t
- return o(y(g(r, u), a, s), e, l)
+ return i(y(g(r, u), a, s), e, c)
},
n,
r,
@@ -32889,13 +46949,13 @@
m.transform(
e,
function () {
- return o(
+ return i(
this.__zoom.translate(
'function' === typeof t ? t.apply(this, arguments) : t,
'function' === typeof n ? n.apply(this, arguments) : n,
),
- i.apply(this, arguments),
- l,
+ o.apply(this, arguments),
+ c,
)
},
null,
@@ -32906,25 +46966,26 @@
m.transform(
e,
function () {
- var e = i.apply(this, arguments),
+ var e = o.apply(this, arguments),
a = this.__zoom,
s = null == r ? b(e) : 'function' === typeof r ? r.apply(this, arguments) : r
- return o(
- Xr.translate(s[0], s[1])
+ return i(
+ $r
+ .translate(s[0], s[1])
.scale(a.k)
.translate(
'function' === typeof t ? -t.apply(this, arguments) : -t,
'function' === typeof n ? -n.apply(this, arguments) : -n,
),
e,
- l,
+ c,
)
},
r,
a,
)
}),
- (E.prototype = {
+ (x.prototype = {
event: function (e) {
return e && (this.sourceEvent = e), this
},
@@ -32971,7 +47032,7 @@
}),
(m.extent = function (e) {
return arguments.length
- ? ((i =
+ ? ((o =
'function' === typeof e
? e
: Kr([
@@ -32979,28 +47040,28 @@
[+e[1][0], +e[1][1]],
])),
m)
- : i
+ : o
}),
(m.scaleExtent = function (e) {
return arguments.length ? ((u[0] = +e[0]), (u[1] = +e[1]), m) : [u[0], u[1]]
}),
(m.translateExtent = function (e) {
return arguments.length
- ? ((l[0][0] = +e[0][0]),
- (l[1][0] = +e[1][0]),
- (l[0][1] = +e[0][1]),
- (l[1][1] = +e[1][1]),
+ ? ((c[0][0] = +e[0][0]),
+ (c[1][0] = +e[1][0]),
+ (c[0][1] = +e[0][1]),
+ (c[1][1] = +e[1][1]),
m)
: [
- [l[0][0], l[0][1]],
- [l[1][0], l[1][1]],
+ [c[0][0], c[0][1]],
+ [c[1][0], c[1][1]],
]
}),
(m.constrain = function (e) {
- return arguments.length ? ((o = e), m) : o
+ return arguments.length ? ((i = e), m) : i
}),
(m.duration = function (e) {
- return arguments.length ? ((c = +e), m) : c
+ return arguments.length ? ((l = +e), m) : l
}),
(m.interpolate = function (e) {
return arguments.length ? ((d = e), m) : d
@@ -33018,63 +47079,63 @@
m
)
}
- Yr.prototype = $r.prototype
- var si = function (e) {
+ Yr.prototype = Xr.prototype
+ var so = function (e) {
return function () {
return e
}
}
- function ui(e, t) {
+ function uo(e, t) {
var n = t.sourceEvent,
r = t.subject,
- i = t.target,
- o = t.identifier,
+ o = t.target,
+ i = t.identifier,
a = t.active,
s = t.x,
u = t.y,
- l = t.dx,
- c = t.dy,
+ c = t.dx,
+ l = t.dy,
d = t.dispatch
Object.defineProperties(this, {
type: { value: e, enumerable: !0, configurable: !0 },
sourceEvent: { value: n, enumerable: !0, configurable: !0 },
subject: { value: r, enumerable: !0, configurable: !0 },
- target: { value: i, enumerable: !0, configurable: !0 },
- identifier: { value: o, enumerable: !0, configurable: !0 },
+ target: { value: o, enumerable: !0, configurable: !0 },
+ identifier: { value: i, enumerable: !0, configurable: !0 },
active: { value: a, enumerable: !0, configurable: !0 },
x: { value: s, enumerable: !0, configurable: !0 },
y: { value: u, enumerable: !0, configurable: !0 },
- dx: { value: l, enumerable: !0, configurable: !0 },
- dy: { value: c, enumerable: !0, configurable: !0 },
+ dx: { value: c, enumerable: !0, configurable: !0 },
+ dy: { value: l, enumerable: !0, configurable: !0 },
_: { value: d },
})
}
- function li(e) {
+ function co(e) {
return !e.ctrlKey && !e.button
}
- function ci() {
+ function lo() {
return this.parentNode
}
- function di(e, t) {
+ function fo(e, t) {
return null == t ? { x: e.x, y: e.y } : t
}
- function fi() {
+ function ho() {
return navigator.maxTouchPoints || 'ontouchstart' in this
}
- ui.prototype.on = function () {
+ uo.prototype.on = function () {
var e = this._.on.apply(this._, arguments)
return e === this._ ? this : e
}
- var hi = r(6701),
- pi = r(3752),
- vi = r(3096),
- mi = r.n(vi),
- gi = r(7621),
- yi = r.n(gi)
- function bi(e, t) {
+ var po = r(86701),
+ vo = r(3752),
+ mo = r(93096),
+ go = r.n(mo),
+ yo = r(17621),
+ bo = r.n(yo)
+ function wo(e, t) {
if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function')
}
- function wi(e, t) {
+ function _o(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n]
;(r.enumerable = r.enumerable || !1),
@@ -33083,22 +47144,22 @@
Object.defineProperty(e, r.key, r)
}
}
- function xi(e) {
+ function xo(e) {
return (
(function (e) {
- if (Array.isArray(e)) return Ei(e)
+ if (Array.isArray(e)) return ko(e)
})(e) ||
(function (e) {
if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e)
})(e) ||
(function (e, t) {
if (!e) return
- if ('string' === typeof e) return Ei(e, t)
+ if ('string' === typeof e) return ko(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
'Object' === n && e.constructor && (n = e.constructor.name)
if ('Map' === n || 'Set' === n) return Array.from(e)
if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return Ei(e, t)
+ return ko(e, t)
})(e) ||
(function () {
throw new TypeError(
@@ -33107,21 +47168,21 @@
})()
)
}
- function Ei(e, t) {
+ function ko(e, t) {
;(null == t || t > e.length) && (t = e.length)
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
}
- var ki = function (e, t, n) {
+ var Eo = function (e, t, n) {
return (e << 16) + (t << 8) + n
},
- _i = function (e, t) {
+ Oo = function (e, t) {
return (123 * e) % Math.pow(2, t)
},
- Ti = (function () {
+ To = (function () {
function e() {
var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 6
- bi(this, e), (this.csBits = t), (this.registry = ['__reserved for background__'])
+ wo(this, e), (this.csBits = t), (this.registry = ['__reserved for background__'])
}
var t, n, r
return (
@@ -33133,11 +47194,11 @@
if (this.registry.length >= Math.pow(2, 24 - this.csBits)) return null
var t,
n = this.registry.length,
- r = _i(n, this.csBits),
- i =
+ r = Oo(n, this.csBits),
+ o =
((t = n + (r << (24 - this.csBits))),
'#'.concat(Math.min(t, Math.pow(2, 24)).toString(16).padStart(6, '0')))
- return this.registry.push(e), i
+ return this.registry.push(e), o
},
},
{
@@ -33146,42 +47207,42 @@
var t =
'string' === typeof e
? (function (e) {
- var t = yi()(e).toRgb(),
+ var t = bo()(e).toRgb(),
n = t.r,
r = t.g,
- i = t.b
- return ki(n, r, i)
+ o = t.b
+ return Eo(n, r, o)
})(e)
- : ki.apply(void 0, xi(e))
+ : Eo.apply(void 0, xo(e))
if (!t) return null
var n = t & (Math.pow(2, 24 - this.csBits) - 1),
r = (t >> (24 - this.csBits)) & (Math.pow(2, this.csBits) - 1)
- return _i(n, this.csBits) !== r || n >= this.registry.length
+ return Oo(n, this.csBits) !== r || n >= this.registry.length
? null
: this.registry[n]
},
},
- ]) && wi(t.prototype, n),
- r && wi(t, r),
+ ]) && _o(t.prototype, n),
+ r && _o(t, r),
e
)
})(),
- Oi = r(4505),
- Ci = r(5560),
- Si = r(2405),
- Ai = r(216),
- Pi = r(6917)
- const { abs: Mi, cos: Ri, sin: ji, acos: Di, atan2: Li, sqrt: Ni, pow: Ii } = Math
- function zi(e) {
- return e < 0 ? -Ii(-e, 1 / 3) : Ii(e, 1 / 3)
- }
- const Hi = Math.PI,
- Bi = 2 * Hi,
- Fi = Hi / 2,
- Vi = Number.MAX_SAFE_INTEGER || 9007199254740991,
- Ui = Number.MIN_SAFE_INTEGER || -9007199254740991,
- Gi = { x: 0, y: 0, z: 0 },
- qi = {
+ Co = r(54505),
+ Mo = r(15560),
+ So = r(92405),
+ Po = r(20216),
+ jo = r(16917)
+ const { abs: Io, cos: Ao, sin: Ro, acos: Do, atan2: Lo, sqrt: No, pow: zo } = Math
+ function Bo(e) {
+ return e < 0 ? -zo(-e, 1 / 3) : zo(e, 1 / 3)
+ }
+ const Ho = Math.PI,
+ Fo = 2 * Ho,
+ Vo = Ho / 2,
+ Wo = Number.MAX_SAFE_INTEGER || 9007199254740991,
+ Uo = Number.MIN_SAFE_INTEGER || -9007199254740991,
+ Go = { x: 0, y: 0, z: 0 },
+ qo = {
Tvalues: [
-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163,
-0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451,
@@ -33201,35 +47262,35 @@
arcfn: function (e, t) {
const n = t(e)
let r = n.x * n.x + n.y * n.y
- return 'undefined' !== typeof n.z && (r += n.z * n.z), Ni(r)
+ return 'undefined' !== typeof n.z && (r += n.z * n.z), No(r)
},
compute: function (e, t, n) {
if (0 === e) return (t[0].t = 0), t[0]
const r = t.length - 1
if (1 === e) return (t[r].t = 1), t[r]
- const i = 1 - e
- let o = t
+ const o = 1 - e
+ let i = t
if (0 === r) return (t[0].t = e), t[0]
if (1 === r) {
- const t = { x: i * o[0].x + e * o[1].x, y: i * o[0].y + e * o[1].y, t: e }
- return n && (t.z = i * o[0].z + e * o[1].z), t
+ const t = { x: o * i[0].x + e * i[1].x, y: o * i[0].y + e * i[1].y, t: e }
+ return n && (t.z = o * i[0].z + e * i[1].z), t
}
if (r < 4) {
let t,
a,
s,
- u = i * i,
- l = e * e,
- c = 0
+ u = o * o,
+ c = e * e,
+ l = 0
2 === r
- ? ((o = [o[0], o[1], o[2], Gi]), (t = u), (a = i * e * 2), (s = l))
- : 3 === r && ((t = u * i), (a = u * e * 3), (s = i * l * 3), (c = e * l))
+ ? ((i = [i[0], i[1], i[2], Go]), (t = u), (a = o * e * 2), (s = c))
+ : 3 === r && ((t = u * o), (a = u * e * 3), (s = o * c * 3), (l = e * c))
const d = {
- x: t * o[0].x + a * o[1].x + s * o[2].x + c * o[3].x,
- y: t * o[0].y + a * o[1].y + s * o[2].y + c * o[3].y,
+ x: t * i[0].x + a * i[1].x + s * i[2].x + l * i[3].x,
+ y: t * i[0].y + a * i[1].y + s * i[2].y + l * i[3].y,
t: e,
}
- return n && (d.z = t * o[0].z + a * o[1].z + s * o[2].z + c * o[3].z), d
+ return n && (d.z = t * i[0].z + a * i[1].z + s * i[2].z + l * i[3].z), d
}
const a = JSON.parse(JSON.stringify(t))
for (; a.length > 1; ) {
@@ -33244,46 +47305,46 @@
return (a[0].t = e), a[0]
},
computeWithRatios: function (e, t, n, r) {
- const i = 1 - e,
- o = n,
+ const o = 1 - e,
+ i = n,
a = t
let s,
- u = o[0],
- l = o[1],
- c = o[2],
- d = o[3]
+ u = i[0],
+ c = i[1],
+ l = i[2],
+ d = i[3]
return (
- (u *= i),
- (l *= e),
+ (u *= o),
+ (c *= e),
2 === a.length
- ? ((s = u + l),
+ ? ((s = u + c),
{
- x: (u * a[0].x + l * a[1].x) / s,
- y: (u * a[0].y + l * a[1].y) / s,
- z: !!r && (u * a[0].z + l * a[1].z) / s,
+ x: (u * a[0].x + c * a[1].x) / s,
+ y: (u * a[0].y + c * a[1].y) / s,
+ z: !!r && (u * a[0].z + c * a[1].z) / s,
t: e,
})
- : ((u *= i),
- (l *= 2 * i),
- (c *= e * e),
+ : ((u *= o),
+ (c *= 2 * o),
+ (l *= e * e),
3 === a.length
- ? ((s = u + l + c),
+ ? ((s = u + c + l),
{
- x: (u * a[0].x + l * a[1].x + c * a[2].x) / s,
- y: (u * a[0].y + l * a[1].y + c * a[2].y) / s,
- z: !!r && (u * a[0].z + l * a[1].z + c * a[2].z) / s,
+ x: (u * a[0].x + c * a[1].x + l * a[2].x) / s,
+ y: (u * a[0].y + c * a[1].y + l * a[2].y) / s,
+ z: !!r && (u * a[0].z + c * a[1].z + l * a[2].z) / s,
t: e,
})
- : ((u *= i),
- (l *= 1.5 * i),
- (c *= 3 * i),
+ : ((u *= o),
+ (c *= 1.5 * o),
+ (l *= 3 * o),
(d *= e * e * e),
4 === a.length
- ? ((s = u + l + c + d),
+ ? ((s = u + c + l + d),
{
- x: (u * a[0].x + l * a[1].x + c * a[2].x + d * a[3].x) / s,
- y: (u * a[0].y + l * a[1].y + c * a[2].y + d * a[3].y) / s,
- z: !!r && (u * a[0].z + l * a[1].z + c * a[2].z + d * a[3].z) / s,
+ x: (u * a[0].x + c * a[1].x + l * a[2].x + d * a[3].x) / s,
+ y: (u * a[0].y + c * a[1].y + l * a[2].y + d * a[3].y) / s,
+ z: !!r && (u * a[0].z + c * a[1].z + l * a[2].z + d * a[3].z) / s,
t: e,
})
: void 0))
@@ -33291,31 +47352,31 @@
},
derive: function (e, t) {
const n = []
- for (let r = e, i = r.length, o = i - 1; i > 1; i--, o--) {
+ for (let r = e, o = r.length, i = o - 1; o > 1; o--, i--) {
const e = []
- for (let n, i = 0; i < o; i++)
- (n = { x: o * (r[i + 1].x - r[i].x), y: o * (r[i + 1].y - r[i].y) }),
- t && (n.z = o * (r[i + 1].z - r[i].z)),
+ for (let n, o = 0; o < i; o++)
+ (n = { x: i * (r[o + 1].x - r[o].x), y: i * (r[o + 1].y - r[o].y) }),
+ t && (n.z = i * (r[o + 1].z - r[o].z)),
e.push(n)
n.push(e), (r = e)
}
return n
},
between: function (e, t, n) {
- return (t <= e && e <= n) || qi.approximately(e, t) || qi.approximately(e, n)
+ return (t <= e && e <= n) || qo.approximately(e, t) || qo.approximately(e, n)
},
approximately: function (e, t, n) {
- return Mi(e - t) <= (n || 1e-6)
+ return Io(e - t) <= (n || 1e-6)
},
length: function (e) {
- const t = qi.Tvalues.length
+ const t = qo.Tvalues.length
let n = 0
- for (let r, i = 0; i < t; i++)
- (r = 0.5 * qi.Tvalues[i] + 0.5), (n += qi.Cvalues[i] * qi.arcfn(r, e))
+ for (let r, o = 0; o < t; o++)
+ (r = 0.5 * qo.Tvalues[o] + 0.5), (n += qo.Cvalues[o] * qo.arcfn(r, e))
return 0.5 * n
},
- map: function (e, t, n, r, i) {
- return r + (i - r) * ((e - t) / (n - t))
+ map: function (e, t, n, r, o) {
+ return r + (o - r) * ((e - t) / (n - t))
},
lerp: function (e, t, n) {
const r = { x: t.x + e * (n.x - t.x), y: t.y + e * (n.y - t.y) }
@@ -33326,17 +47387,17 @@
return 'undefined' !== typeof e.z && (t += '/' + e.z), t
},
pointsToString: function (e) {
- return '[' + e.map(qi.pointToString).join(', ') + ']'
+ return '[' + e.map(qo.pointToString).join(', ') + ']'
},
copy: function (e) {
return JSON.parse(JSON.stringify(e))
},
angle: function (e, t, n) {
const r = t.x - e.x,
- i = t.y - e.y,
- o = n.x - e.x,
+ o = t.y - e.y,
+ i = n.x - e.x,
a = n.y - e.y
- return Li(r * a - i * o, r * o + i * a)
+ return Lo(r * a - o * i, r * i + o * a)
},
round: function (e, t) {
const n = '' + e,
@@ -33346,87 +47407,87 @@
dist: function (e, t) {
const n = e.x - t.x,
r = e.y - t.y
- return Ni(n * n + r * r)
+ return No(n * n + r * r)
},
closest: function (e, t) {
let n,
r,
- i = Ii(2, 63)
+ o = zo(2, 63)
return (
- e.forEach(function (e, o) {
- ;(r = qi.dist(t, e)), r < i && ((i = r), (n = o))
+ e.forEach(function (e, i) {
+ ;(r = qo.dist(t, e)), r < o && ((o = r), (n = i))
}),
- { mdist: i, mpos: n }
+ { mdist: o, mpos: n }
)
},
abcratio: function (e, t) {
if (2 !== t && 3 !== t) return !1
if ('undefined' === typeof e) e = 0.5
else if (0 === e || 1 === e) return e
- const n = Ii(e, t) + Ii(1 - e, t)
- return Mi((n - 1) / n)
+ const n = zo(e, t) + zo(1 - e, t)
+ return Io((n - 1) / n)
},
projectionratio: function (e, t) {
if (2 !== t && 3 !== t) return !1
if ('undefined' === typeof e) e = 0.5
else if (0 === e || 1 === e) return e
- const n = Ii(1 - e, t)
- return n / (Ii(e, t) + n)
+ const n = zo(1 - e, t)
+ return n / (zo(e, t) + n)
},
- lli8: function (e, t, n, r, i, o, a, s) {
- const u = (e - n) * (o - s) - (t - r) * (i - a)
+ lli8: function (e, t, n, r, o, i, a, s) {
+ const u = (e - n) * (i - s) - (t - r) * (o - a)
return (
0 != u && {
- x: ((e * r - t * n) * (i - a) - (e - n) * (i * s - o * a)) / u,
- y: ((e * r - t * n) * (o - s) - (t - r) * (i * s - o * a)) / u,
+ x: ((e * r - t * n) * (o - a) - (e - n) * (o * s - i * a)) / u,
+ y: ((e * r - t * n) * (i - s) - (t - r) * (o * s - i * a)) / u,
}
)
},
lli4: function (e, t, n, r) {
- const i = e.x,
- o = e.y,
+ const o = e.x,
+ i = e.y,
a = t.x,
s = t.y,
u = n.x,
- l = n.y,
- c = r.x,
+ c = n.y,
+ l = r.x,
d = r.y
- return qi.lli8(i, o, a, s, u, l, c, d)
+ return qo.lli8(o, i, a, s, u, c, l, d)
},
lli: function (e, t) {
- return qi.lli4(e, e.c, t, t.c)
+ return qo.lli4(e, e.c, t, t.c)
},
makeline: function (e, t) {
const n = e.x,
r = e.y,
- i = t.x,
- o = t.y,
- a = (i - n) / 3,
- s = (o - r) / 3
- return new to(n, r, n + a, r + s, n + 2 * a, r + 2 * s, i, o)
+ o = t.x,
+ i = t.y,
+ a = (o - n) / 3,
+ s = (i - r) / 3
+ return new ni(n, r, n + a, r + s, n + 2 * a, r + 2 * s, o, i)
},
findbbox: function (e) {
- let t = Vi,
- n = Vi,
- r = Ui,
- i = Ui
+ let t = Wo,
+ n = Wo,
+ r = Uo,
+ o = Uo
return (
e.forEach(function (e) {
- const o = e.bbox()
- t > o.x.min && (t = o.x.min),
- n > o.y.min && (n = o.y.min),
- r < o.x.max && (r = o.x.max),
- i < o.y.max && (i = o.y.max)
+ const i = e.bbox()
+ t > i.x.min && (t = i.x.min),
+ n > i.y.min && (n = i.y.min),
+ r < i.x.max && (r = i.x.max),
+ o < i.y.max && (o = i.y.max)
}),
{
x: { min: t, mid: (t + r) / 2, max: r, size: r - t },
- y: { min: n, mid: (n + i) / 2, max: i, size: i - n },
+ y: { min: n, mid: (n + o) / 2, max: o, size: o - n },
}
)
},
- shapeintersections: function (e, t, n, r, i) {
- if (!qi.bboxoverlap(t, r)) return []
- const o = [],
+ shapeintersections: function (e, t, n, r, o) {
+ if (!qo.bboxoverlap(t, r)) return []
+ const i = [],
a = [e.startcap, e.forward, e.back, e.endcap],
s = [n.startcap, n.forward, n.back, n.endcap]
return (
@@ -33434,26 +47495,26 @@
t.virtual ||
s.forEach(function (r) {
if (r.virtual) return
- const a = t.intersects(r, i)
- a.length > 0 && ((a.c1 = t), (a.c2 = r), (a.s1 = e), (a.s2 = n), o.push(a))
+ const a = t.intersects(r, o)
+ a.length > 0 && ((a.c1 = t), (a.c2 = r), (a.s1 = e), (a.s2 = n), i.push(a))
})
}),
- o
+ i
)
},
makeshape: function (e, t, n) {
const r = t.points.length,
- i = e.points.length,
- o = qi.makeline(t.points[r - 1], e.points[0]),
- a = qi.makeline(e.points[i - 1], t.points[0]),
+ o = e.points.length,
+ i = qo.makeline(t.points[r - 1], e.points[0]),
+ a = qo.makeline(e.points[o - 1], t.points[0]),
s = {
- startcap: o,
+ startcap: i,
forward: e,
back: t,
endcap: a,
- bbox: qi.findbbox([o, e, t, a]),
+ bbox: qo.findbbox([i, e, t, a]),
intersections: function (e) {
- return qi.shapeintersections(s, s.bbox, e, e.bbox, n)
+ return qo.shapeintersections(s, s.bbox, e, e.bbox, n)
},
}
return s
@@ -33461,87 +47522,87 @@
getminmax: function (e, t, n) {
if (!n) return { min: 0, max: 0 }
let r,
- i,
- o = Vi,
- a = Ui
+ o,
+ i = Wo,
+ a = Uo
;-1 === n.indexOf(0) && (n = [0].concat(n)), -1 === n.indexOf(1) && n.push(1)
for (let s = 0, u = n.length; s < u; s++)
- (r = n[s]), (i = e.get(r)), i[t] < o && (o = i[t]), i[t] > a && (a = i[t])
- return { min: o, mid: (o + a) / 2, max: a, size: a - o }
+ (r = n[s]), (o = e.get(r)), o[t] < i && (i = o[t]), o[t] > a && (a = o[t])
+ return { min: i, mid: (i + a) / 2, max: a, size: a - i }
},
align: function (e, t) {
const n = t.p1.x,
r = t.p1.y,
- i = -Li(t.p2.y - r, t.p2.x - n)
+ o = -Lo(t.p2.y - r, t.p2.x - n)
return e.map(function (e) {
return {
- x: (e.x - n) * Ri(i) - (e.y - r) * ji(i),
- y: (e.x - n) * ji(i) + (e.y - r) * Ri(i),
+ x: (e.x - n) * Ao(o) - (e.y - r) * Ro(o),
+ y: (e.x - n) * Ro(o) + (e.y - r) * Ao(o),
}
})
},
roots: function (e, t) {
t = t || { p1: { x: 0, y: 0 }, p2: { x: 1, y: 0 } }
const n = e.length - 1,
- r = qi.align(e, t),
- i = function (e) {
+ r = qo.align(e, t),
+ o = function (e) {
return 0 <= e && e <= 1
}
if (2 === n) {
const e = r[0].y,
t = r[1].y,
n = r[2].y,
- o = e - 2 * t + n
- if (0 !== o) {
- const r = -Ni(t * t - e * n),
+ i = e - 2 * t + n
+ if (0 !== i) {
+ const r = -No(t * t - e * n),
a = -e + t
- return [-(r + a) / o, -(-r + a) / o].filter(i)
+ return [-(r + a) / i, -(-r + a) / i].filter(o)
}
- return t !== n && 0 === o ? [(2 * t - n) / (2 * t - 2 * n)].filter(i) : []
+ return t !== n && 0 === i ? [(2 * t - n) / (2 * t - 2 * n)].filter(o) : []
}
- const o = r[0].y,
+ const i = r[0].y,
a = r[1].y,
s = r[2].y
- let u = 3 * a - o - 3 * s + r[3].y,
- l = 3 * o - 6 * a + 3 * s,
- c = -3 * o + 3 * a,
- d = o
- if (qi.approximately(u, 0)) {
- if (qi.approximately(l, 0)) return qi.approximately(c, 0) ? [] : [-d / c].filter(i)
- const e = Ni(c * c - 4 * l * d),
- t = 2 * l
- return [(e - c) / t, (-c - e) / t].filter(i)
- }
- ;(l /= u), (c /= u), (d /= u)
- const f = (3 * c - l * l) / 3,
+ let u = 3 * a - i - 3 * s + r[3].y,
+ c = 3 * i - 6 * a + 3 * s,
+ l = -3 * i + 3 * a,
+ d = i
+ if (qo.approximately(u, 0)) {
+ if (qo.approximately(c, 0)) return qo.approximately(l, 0) ? [] : [-d / l].filter(o)
+ const e = No(l * l - 4 * c * d),
+ t = 2 * c
+ return [(e - l) / t, (-l - e) / t].filter(o)
+ }
+ ;(c /= u), (l /= u), (d /= u)
+ const f = (3 * l - c * c) / 3,
h = f / 3,
- p = (2 * l * l * l - 9 * l * c + 27 * d) / 27,
+ p = (2 * c * c * c - 9 * c * l + 27 * d) / 27,
v = p / 2,
m = v * v + h * h * h
- let g, y, b, w, x
+ let g, y, b, w, _
if (m < 0) {
const e = -f / 3,
- t = Ni(e * e * e),
+ t = No(e * e * e),
n = -p / (2 * t),
- r = Di(n < -1 ? -1 : n > 1 ? 1 : n),
- o = 2 * zi(t)
+ r = Do(n < -1 ? -1 : n > 1 ? 1 : n),
+ i = 2 * Bo(t)
return (
- (b = o * Ri(r / 3) - l / 3),
- (w = o * Ri((r + Bi) / 3) - l / 3),
- (x = o * Ri((r + 2 * Bi) / 3) - l / 3),
- [b, w, x].filter(i)
+ (b = i * Ao(r / 3) - c / 3),
+ (w = i * Ao((r + Fo) / 3) - c / 3),
+ (_ = i * Ao((r + 2 * Fo) / 3) - c / 3),
+ [b, w, _].filter(o)
)
}
if (0 === m)
return (
- (g = v < 0 ? zi(-v) : -zi(v)),
- (b = 2 * g - l / 3),
- (w = -g - l / 3),
- [b, w].filter(i)
+ (g = v < 0 ? Bo(-v) : -Bo(v)),
+ (b = 2 * g - c / 3),
+ (w = -g - c / 3),
+ [b, w].filter(o)
)
{
- const e = Ni(m)
- return (g = zi(-v + e)), (y = zi(v + e)), [g - y - l / 3].filter(i)
+ const e = No(m)
+ return (g = Bo(-v + e)), (y = Bo(v + e)), [g - y - c / 3].filter(o)
}
},
droots: function (e) {
@@ -33549,13 +47610,13 @@
const t = e[0],
n = e[1],
r = e[2],
- i = t - 2 * n + r
- if (0 !== i) {
- const e = -Ni(n * n - t * r),
- o = -t + n
- return [-(e + o) / i, -(-e + o) / i]
+ o = t - 2 * n + r
+ if (0 !== o) {
+ const e = -No(n * n - t * r),
+ i = -t + n
+ return [-(e + i) / o, -(-e + i) / o]
}
- return n !== r && 0 === i ? [(2 * n - r) / (2 * (n - r))] : []
+ return n !== r && 0 === o ? [(2 * n - r) / (2 * (n - r))] : []
}
if (2 === e.length) {
const t = e[0],
@@ -33564,70 +47625,70 @@
}
return []
},
- curvature: function (e, t, n, r, i) {
- let o,
+ curvature: function (e, t, n, r, o) {
+ let i,
a,
s,
u,
- l = 0,
- c = 0
- const d = qi.compute(e, t),
- f = qi.compute(e, n),
+ c = 0,
+ l = 0
+ const d = qo.compute(e, t),
+ f = qo.compute(e, n),
h = d.x * d.x + d.y * d.y
if (
(r
- ? ((o = Ni(
- Ii(d.y * f.z - f.y * d.z, 2) +
- Ii(d.z * f.x - f.z * d.x, 2) +
- Ii(d.x * f.y - f.x * d.y, 2),
+ ? ((i = No(
+ zo(d.y * f.z - f.y * d.z, 2) +
+ zo(d.z * f.x - f.z * d.x, 2) +
+ zo(d.x * f.y - f.x * d.y, 2),
)),
- (a = Ii(h + d.z * d.z, 1.5)))
- : ((o = d.x * f.y - d.y * f.x), (a = Ii(h, 1.5))),
- 0 === o || 0 === a)
+ (a = zo(h + d.z * d.z, 1.5)))
+ : ((i = d.x * f.y - d.y * f.x), (a = zo(h, 1.5))),
+ 0 === i || 0 === a)
)
return { k: 0, r: 0 }
- if (((l = o / a), (c = a / o), !i)) {
- const i = qi.curvature(e - 0.001, t, n, r, !0).k,
- o = qi.curvature(e + 0.001, t, n, r, !0).k
- ;(u = (o - l + (l - i)) / 2), (s = (Mi(o - l) + Mi(l - i)) / 2)
+ if (((c = i / a), (l = a / i), !o)) {
+ const o = qo.curvature(e - 0.001, t, n, r, !0).k,
+ i = qo.curvature(e + 0.001, t, n, r, !0).k
+ ;(u = (i - c + (c - o)) / 2), (s = (Io(i - c) + Io(c - o)) / 2)
}
- return { k: l, r: c, dk: u, adk: s }
+ return { k: c, r: l, dk: u, adk: s }
},
inflections: function (e) {
if (e.length < 4) return []
- const t = qi.align(e, { p1: e[0], p2: e.slice(-1)[0] }),
+ const t = qo.align(e, { p1: e[0], p2: e.slice(-1)[0] }),
n = t[2].x * t[1].y,
r = t[3].x * t[1].y,
- i = t[1].x * t[2].y,
- o = 18 * (-3 * n + 2 * r + 3 * i - t[3].x * t[2].y),
- a = 18 * (3 * n - r - 3 * i),
- s = 18 * (i - n)
- if (qi.approximately(o, 0)) {
- if (!qi.approximately(a, 0)) {
+ o = t[1].x * t[2].y,
+ i = 18 * (-3 * n + 2 * r + 3 * o - t[3].x * t[2].y),
+ a = 18 * (3 * n - r - 3 * o),
+ s = 18 * (o - n)
+ if (qo.approximately(i, 0)) {
+ if (!qo.approximately(a, 0)) {
let e = -s / a
if (0 <= e && e <= 1) return [e]
}
return []
}
- const u = a * a - 4 * o * s,
- l = Math.sqrt(u),
- c = 2 * o
- return qi.approximately(c, 0)
+ const u = a * a - 4 * i * s,
+ c = Math.sqrt(u),
+ l = 2 * i
+ return qo.approximately(l, 0)
? []
- : [(l - a) / c, -(a + l) / c].filter(function (e) {
+ : [(c - a) / l, -(a + c) / l].filter(function (e) {
return 0 <= e && e <= 1
})
},
bboxoverlap: function (e, t) {
const n = ['x', 'y'],
r = n.length
- for (let i, o, a, s, u = 0; u < r; u++)
+ for (let o, i, a, s, u = 0; u < r; u++)
if (
- ((i = n[u]),
- (o = e[i].mid),
- (a = t[i].mid),
- (s = (e[i].size + t[i].size) / 2),
- Mi(o - a) >= s)
+ ((o = n[u]),
+ (i = e[o].mid),
+ (a = t[o].mid),
+ (s = (e[o].size + t[o].size) / 2),
+ Io(i - a) >= s)
)
return !1
return !0
@@ -33648,67 +47709,67 @@
},
pairiteration: function (e, t, n) {
const r = e.bbox(),
- i = t.bbox(),
- o = 1e5,
+ o = t.bbox(),
+ i = 1e5,
a = n || 0.5
- if (r.x.size + r.y.size < a && i.x.size + i.y.size < a)
+ if (r.x.size + r.y.size < a && o.x.size + o.y.size < a)
return [
- (((o * (e._t1 + e._t2)) / 2) | 0) / o + '/' + (((o * (t._t1 + t._t2)) / 2) | 0) / o,
+ (((i * (e._t1 + e._t2)) / 2) | 0) / i + '/' + (((i * (t._t1 + t._t2)) / 2) | 0) / i,
]
let s = e.split(0.5),
u = t.split(0.5),
- l = [
+ c = [
{ left: s.left, right: u.left },
{ left: s.left, right: u.right },
{ left: s.right, right: u.right },
{ left: s.right, right: u.left },
]
- l = l.filter(function (e) {
- return qi.bboxoverlap(e.left.bbox(), e.right.bbox())
+ c = c.filter(function (e) {
+ return qo.bboxoverlap(e.left.bbox(), e.right.bbox())
})
- let c = []
+ let l = []
return (
- 0 === l.length ||
- (l.forEach(function (e) {
- c = c.concat(qi.pairiteration(e.left, e.right, a))
+ 0 === c.length ||
+ (c.forEach(function (e) {
+ l = l.concat(qo.pairiteration(e.left, e.right, a))
}),
- (c = c.filter(function (e, t) {
- return c.indexOf(e) === t
+ (l = l.filter(function (e, t) {
+ return l.indexOf(e) === t
}))),
- c
+ l
)
},
getccenter: function (e, t, n) {
const r = t.x - e.x,
- i = t.y - e.y,
- o = n.x - t.x,
+ o = t.y - e.y,
+ i = n.x - t.x,
a = n.y - t.y,
- s = r * Ri(Fi) - i * ji(Fi),
- u = r * ji(Fi) + i * Ri(Fi),
- l = o * Ri(Fi) - a * ji(Fi),
- c = o * ji(Fi) + a * Ri(Fi),
+ s = r * Ao(Vo) - o * Ro(Vo),
+ u = r * Ro(Vo) + o * Ao(Vo),
+ c = i * Ao(Vo) - a * Ro(Vo),
+ l = i * Ro(Vo) + a * Ao(Vo),
d = (e.x + t.x) / 2,
f = (e.y + t.y) / 2,
h = (t.x + n.x) / 2,
p = (t.y + n.y) / 2,
v = d + s,
m = f + u,
- g = h + l,
- y = p + c,
- b = qi.lli8(d, f, v, m, h, p, g, y),
- w = qi.dist(b, e)
- let x,
- E = Li(e.y - b.y, e.x - b.x),
- k = Li(t.y - b.y, t.x - b.x),
- _ = Li(n.y - b.y, n.x - b.x)
+ g = h + c,
+ y = p + l,
+ b = qo.lli8(d, f, v, m, h, p, g, y),
+ w = qo.dist(b, e)
+ let _,
+ x = Lo(e.y - b.y, e.x - b.x),
+ k = Lo(t.y - b.y, t.x - b.x),
+ E = Lo(n.y - b.y, n.x - b.x)
return (
- E < _
- ? ((E > k || k > _) && (E += Bi), E > _ && ((x = _), (_ = E), (E = x)))
- : _ < k && k < E
- ? ((x = _), (_ = E), (E = x))
- : (_ += Bi),
- (b.s = E),
- (b.e = _),
+ x < E
+ ? ((x > k || k > E) && (x += Fo), x > E && ((_ = E), (E = x), (x = _)))
+ : E < k && k < x
+ ? ((_ = E), (E = x), (x = _))
+ : (E += Fo),
+ (b.s = x),
+ (b.e = E),
(b.r = w),
b
)
@@ -33717,7 +47778,7 @@
return e - t
},
}
- class Wi {
+ class Ko {
constructor(e) {
;(this.curves = []),
(this._3d = !1),
@@ -33731,7 +47792,7 @@
'[' +
this.curves
.map(function (e) {
- return qi.pointsToString(e.points)
+ return qo.pointsToString(e.points)
})
.join(', ') +
']'
@@ -33754,7 +47815,7 @@
}
bbox() {
const e = this.curves
- for (var t = e[0].bbox(), n = 1; n < e.length; n++) qi.expandbox(t, e[n].bbox())
+ for (var t = e[0].bbox(), n = 1; n < e.length; n++) qo.expandbox(t, e[n].bbox())
return t
}
offset(e) {
@@ -33763,13 +47824,13 @@
this.curves.forEach(function (n) {
t.push(...n.offset(e))
}),
- new Wi(t)
+ new Ko(t)
)
}
}
- const { abs: Ki, min: Zi, max: $i, cos: Xi, sin: Yi, acos: Qi, sqrt: Ji } = Math,
- eo = Math.PI
- class to {
+ const { abs: Zo, min: Xo, max: $o, cos: Yo, sin: Qo, acos: Jo, sqrt: ei } = Math,
+ ti = Math.PI
+ class ni {
constructor(e) {
let t = e && e.forEach ? e : Array.from(arguments).slice(),
n = !1
@@ -33784,7 +47845,7 @@
(t = e)
}
let r = !1
- const i = t.length
+ const o = t.length
if (n) {
if (n > 4) {
if (1 !== arguments.length)
@@ -33793,70 +47854,70 @@
)
r = !0
}
- } else if (6 !== i && 8 !== i && 9 !== i && 12 !== i && 1 !== arguments.length)
+ } else if (6 !== o && 8 !== o && 9 !== o && 12 !== o && 1 !== arguments.length)
throw new Error('Only new Bezier(point[]) is accepted for 4th and higher order curves')
- const o = (this._3d =
- (!r && (9 === i || 12 === i)) || (e && e[0] && 'undefined' !== typeof e[0].z)),
+ const i = (this._3d =
+ (!r && (9 === o || 12 === o)) || (e && e[0] && 'undefined' !== typeof e[0].z)),
a = (this.points = [])
- for (let d = 0, f = o ? 3 : 2; d < i; d += f) {
+ for (let d = 0, f = i ? 3 : 2; d < o; d += f) {
var s = { x: t[d], y: t[d + 1] }
- o && (s.z = t[d + 2]), a.push(s)
+ i && (s.z = t[d + 2]), a.push(s)
}
const u = (this.order = a.length - 1),
- l = (this.dims = ['x', 'y'])
- o && l.push('z'), (this.dimlen = l.length)
- const c = qi.align(a, { p1: a[0], p2: a[u] })
- ;(this._linear = !c.some((e) => Ki(e.y) > 1e-4)),
+ c = (this.dims = ['x', 'y'])
+ i && c.push('z'), (this.dimlen = c.length)
+ const l = qo.align(a, { p1: a[0], p2: a[u] })
+ ;(this._linear = !l.some((e) => Zo(e.y) > 1e-4)),
(this._lut = []),
(this._t1 = 0),
(this._t2 = 1),
this.update()
}
static quadraticFromPoints(e, t, n, r) {
- if (('undefined' === typeof r && (r = 0.5), 0 === r)) return new to(t, t, n)
- if (1 === r) return new to(e, t, t)
- const i = to.getABC(2, e, t, n, r)
- return new to(e, i.A, n)
+ if (('undefined' === typeof r && (r = 0.5), 0 === r)) return new ni(t, t, n)
+ if (1 === r) return new ni(e, t, t)
+ const o = ni.getABC(2, e, t, n, r)
+ return new ni(e, o.A, n)
}
- static cubicFromPoints(e, t, n, r, i) {
+ static cubicFromPoints(e, t, n, r, o) {
'undefined' === typeof r && (r = 0.5)
- const o = to.getABC(3, e, t, n, r)
- 'undefined' === typeof i && (i = qi.dist(t, o.C))
- const a = (i * (1 - r)) / r,
- s = qi.dist(e, n),
+ const i = ni.getABC(3, e, t, n, r)
+ 'undefined' === typeof o && (o = qo.dist(t, i.C))
+ const a = (o * (1 - r)) / r,
+ s = qo.dist(e, n),
u = (n.x - e.x) / s,
- l = (n.y - e.y) / s,
- c = i * u,
- d = i * l,
+ c = (n.y - e.y) / s,
+ l = o * u,
+ d = o * c,
f = a * u,
- h = a * l,
- p = t.x - c,
+ h = a * c,
+ p = t.x - l,
v = t.y - d,
m = t.x + f,
g = t.y + h,
- y = o.A,
+ y = i.A,
b = y.x + (p - y.x) / (1 - r),
w = y.y + (v - y.y) / (1 - r),
- x = y.x + (m - y.x) / r,
- E = y.y + (g - y.y) / r,
+ _ = y.x + (m - y.x) / r,
+ x = y.y + (g - y.y) / r,
k = { x: e.x + (b - e.x) / r, y: e.y + (w - e.y) / r },
- _ = { x: n.x + (x - n.x) / (1 - r), y: n.y + (E - n.y) / (1 - r) }
- return new to(e, k, _, n)
+ E = { x: n.x + (_ - n.x) / (1 - r), y: n.y + (x - n.y) / (1 - r) }
+ return new ni(e, k, E, n)
}
static getUtils() {
- return qi
+ return qo
}
getUtils() {
- return to.getUtils()
+ return ni.getUtils()
}
static get PolyBezier() {
- return Wi
+ return Ko
}
valueOf() {
return this.toString()
}
toString() {
- return qi.pointsToString(this.points)
+ return qo.pointsToString(this.points)
}
toSVG() {
if (this._3d) return !1
@@ -33882,22 +47943,22 @@
}
update() {
;(this._lut = []),
- (this.dpoints = qi.derive(this.points, this._3d)),
+ (this.dpoints = qo.derive(this.points, this._3d)),
this.computedirection()
}
computedirection() {
const e = this.points,
- t = qi.angle(e[0], e[this.order], e[1])
+ t = qo.angle(e[0], e[this.order], e[1])
this.clockwise = t > 0
}
length() {
- return qi.length(this.derivative.bind(this))
+ return qo.length(this.derivative.bind(this))
}
- static getABC(e = 2, t, n, r, i = 0.5) {
- const o = qi.projectionratio(i, e),
- a = 1 - o,
- s = { x: o * t.x + a * r.x, y: o * t.y + a * r.y },
- u = qi.abcratio(i, e)
+ static getABC(e = 2, t, n, r, o = 0.5) {
+ const i = qo.projectionratio(o, e),
+ a = 1 - i,
+ s = { x: i * t.x + a * r.x, y: i * t.y + a * r.y },
+ u = qo.abcratio(o, e)
return {
A: { x: n.x + (n.x - s.x) / u, y: n.y + (n.y - s.y) / u },
B: n,
@@ -33910,7 +47971,7 @@
t = t || this.get(e)
let n = this.points[0],
r = this.points[this.order]
- return to.getABC(this.order, n, t, r, e)
+ return ni.getABC(this.order, n, t, r, e)
}
getLUT(e) {
if ((this.verify(), (e = e || 100), this._lut.length === e)) return this._lut
@@ -33922,27 +47983,27 @@
on(e, n) {
n = n || 5
const r = this.getLUT(),
- i = []
- for (let t, o = 0, a = 0; o < r.length; o++)
- (t = r[o]), qi.dist(t, e) < n && (i.push(t), (a += o / r.length))
- return !!i.length && (t /= i.length)
+ o = []
+ for (let t, i = 0, a = 0; i < r.length; i++)
+ (t = r[i]), qo.dist(t, e) < n && (o.push(t), (a += i / r.length))
+ return !!o.length && (t /= o.length)
}
project(e) {
const t = this.getLUT(),
n = t.length - 1,
- r = qi.closest(t, e),
- i = r.mpos,
- o = (i - 1) / n,
- a = (i + 1) / n,
+ r = qo.closest(t, e),
+ o = r.mpos,
+ i = (o - 1) / n,
+ a = (o + 1) / n,
s = 0.1 / n
let u,
- l,
- c = r.mdist,
- d = o,
+ c,
+ l = r.mdist,
+ d = i,
f = d
- for (c += 1; d < a + s; d += s)
- (u = this.compute(d)), (l = qi.dist(e, u)), l < c && ((c = l), (f = d))
- return (f = f < 0 ? 0 : f > 1 ? 1 : f), (u = this.compute(f)), (u.t = f), (u.d = c), u
+ for (l += 1; d < a + s; d += s)
+ (u = this.compute(d)), (c = qo.dist(e, u)), c < l && ((l = c), (f = d))
+ return (f = f < 0 ? 0 : f > 1 ? 1 : f), (u = this.compute(f)), (u.t = f), (u.d = l), u
}
get(e) {
return this.compute(e)
@@ -33952,69 +48013,69 @@
}
compute(e) {
return this.ratios
- ? qi.computeWithRatios(e, this.points, this.ratios, this._3d)
- : qi.compute(e, this.points, this._3d, this.ratios)
+ ? qo.computeWithRatios(e, this.points, this.ratios, this._3d)
+ : qo.compute(e, this.points, this._3d, this.ratios)
}
raise() {
const e = this.points,
t = [e[0]],
n = e.length
- for (let r, i, o = 1; o < n; o++)
- (r = e[o]),
- (i = e[o - 1]),
- (t[o] = {
- x: ((n - o) / n) * r.x + (o / n) * i.x,
- y: ((n - o) / n) * r.y + (o / n) * i.y,
+ for (let r, o, i = 1; i < n; i++)
+ (r = e[i]),
+ (o = e[i - 1]),
+ (t[i] = {
+ x: ((n - i) / n) * r.x + (i / n) * o.x,
+ y: ((n - i) / n) * r.y + (i / n) * o.y,
})
- return (t[n] = e[n - 1]), new to(t)
+ return (t[n] = e[n - 1]), new ni(t)
}
derivative(e) {
- return qi.compute(e, this.dpoints[0], this._3d)
+ return qo.compute(e, this.dpoints[0], this._3d)
}
dderivative(e) {
- return qi.compute(e, this.dpoints[1], this._3d)
+ return qo.compute(e, this.dpoints[1], this._3d)
}
align() {
let e = this.points
- return new to(qi.align(e, { p1: e[0], p2: e[e.length - 1] }))
+ return new ni(qo.align(e, { p1: e[0], p2: e[e.length - 1] }))
}
curvature(e) {
- return qi.curvature(e, this.dpoints[0], this.dpoints[1], this._3d)
+ return qo.curvature(e, this.dpoints[0], this.dpoints[1], this._3d)
}
inflections() {
- return qi.inflections(this.points)
+ return qo.inflections(this.points)
}
normal(e) {
return this._3d ? this.__normal3(e) : this.__normal2(e)
}
__normal2(e) {
const t = this.derivative(e),
- n = Ji(t.x * t.x + t.y * t.y)
+ n = ei(t.x * t.x + t.y * t.y)
return { x: -t.y / n, y: t.x / n }
}
__normal3(e) {
const t = this.derivative(e),
n = this.derivative(e + 0.01),
- r = Ji(t.x * t.x + t.y * t.y + t.z * t.z),
- i = Ji(n.x * n.x + n.y * n.y + n.z * n.z)
- ;(t.x /= r), (t.y /= r), (t.z /= r), (n.x /= i), (n.y /= i), (n.z /= i)
- const o = {
+ r = ei(t.x * t.x + t.y * t.y + t.z * t.z),
+ o = ei(n.x * n.x + n.y * n.y + n.z * n.z)
+ ;(t.x /= r), (t.y /= r), (t.z /= r), (n.x /= o), (n.y /= o), (n.z /= o)
+ const i = {
x: n.y * t.z - n.z * t.y,
y: n.z * t.x - n.x * t.z,
z: n.x * t.y - n.y * t.x,
},
- a = Ji(o.x * o.x + o.y * o.y + o.z * o.z)
- ;(o.x /= a), (o.y /= a), (o.z /= a)
+ a = ei(i.x * i.x + i.y * i.y + i.z * i.z)
+ ;(i.x /= a), (i.y /= a), (i.z /= a)
const s = [
- o.x * o.x,
- o.x * o.y - o.z,
- o.x * o.z + o.y,
- o.x * o.y + o.z,
- o.y * o.y,
- o.y * o.z - o.x,
- o.x * o.z - o.y,
- o.y * o.z + o.x,
- o.z * o.z,
+ i.x * i.x,
+ i.x * i.y - i.z,
+ i.x * i.z + i.y,
+ i.x * i.y + i.z,
+ i.y * i.y,
+ i.y * i.z - i.x,
+ i.x * i.z - i.y,
+ i.y * i.z + i.x,
+ i.z * i.z,
]
return {
x: s[0] * t.x + s[1] * t.y + s[2] * t.z,
@@ -34026,15 +48087,15 @@
let t = this.points,
n = [],
r = [],
- i = 0
+ o = 0
for (
- r[i++] = t[0], r[i++] = t[1], r[i++] = t[2], 3 === this.order && (r[i++] = t[3]);
+ r[o++] = t[0], r[o++] = t[1], r[o++] = t[2], 3 === this.order && (r[o++] = t[3]);
t.length > 1;
) {
n = []
- for (let o, a = 0, s = t.length - 1; a < s; a++)
- (o = qi.lerp(e, t[a], t[a + 1])), (r[i++] = o), n.push(o)
+ for (let i, a = 0, s = t.length - 1; a < s; a++)
+ (i = qo.lerp(e, t[a], t[a + 1])), (r[o++] = i), n.push(i)
t = n
}
return r
@@ -34045,17 +48106,17 @@
const n = this.hull(e),
r = {
left:
- 2 === this.order ? new to([n[0], n[3], n[5]]) : new to([n[0], n[4], n[7], n[9]]),
+ 2 === this.order ? new ni([n[0], n[3], n[5]]) : new ni([n[0], n[4], n[7], n[9]]),
right:
- 2 === this.order ? new to([n[5], n[4], n[2]]) : new to([n[9], n[8], n[6], n[3]]),
+ 2 === this.order ? new ni([n[5], n[4], n[2]]) : new ni([n[9], n[8], n[6], n[3]]),
span: n,
}
return (
- (r.left._t1 = qi.map(0, 0, 1, this._t1, this._t2)),
- (r.left._t2 = qi.map(e, 0, 1, this._t1, this._t2)),
- (r.right._t1 = qi.map(e, 0, 1, this._t1, this._t2)),
- (r.right._t2 = qi.map(1, 0, 1, this._t1, this._t2)),
- t ? ((t = qi.map(t, e, 1, 0, 1)), r.right.split(t).left) : r
+ (r.left._t1 = qo.map(0, 0, 1, this._t1, this._t2)),
+ (r.left._t2 = qo.map(e, 0, 1, this._t1, this._t2)),
+ (r.right._t1 = qo.map(e, 0, 1, this._t1, this._t2)),
+ (r.right._t2 = qo.map(1, 0, 1, this._t1, this._t2)),
+ t ? ((t = qo.map(t, e, 1, 0, 1)), r.right.split(t).left) : r
)
}
extrema() {
@@ -34067,17 +48128,17 @@
let r = function (e) {
return e[n]
},
- i = this.dpoints[0].map(r)
- ;(e[n] = qi.droots(i)),
+ o = this.dpoints[0].map(r)
+ ;(e[n] = qo.droots(o)),
3 === this.order &&
- ((i = this.dpoints[1].map(r)), (e[n] = e[n].concat(qi.droots(i)))),
+ ((o = this.dpoints[1].map(r)), (e[n] = e[n].concat(qo.droots(o)))),
(e[n] = e[n].filter(function (e) {
return e >= 0 && e <= 1
})),
- (t = t.concat(e[n].sort(qi.numberSort)))
+ (t = t.concat(e[n].sort(qo.numberSort)))
}.bind(this),
),
- (e.values = t.sort(qi.numberSort).filter(function (e, n) {
+ (e.values = t.sort(qo.numberSort).filter(function (e, n) {
return t.indexOf(e) === n
})),
e
@@ -34089,7 +48150,7 @@
return (
this.dims.forEach(
function (n) {
- t[n] = qi.getminmax(this, n, e[n])
+ t[n] = qo.getminmax(this, n, e[n])
}.bind(this),
),
t
@@ -34098,14 +48159,14 @@
overlaps(e) {
const t = this.bbox(),
n = e.bbox()
- return qi.bboxoverlap(t, n)
+ return qo.bboxoverlap(t, n)
}
offset(e, t) {
if ('undefined' !== typeof t) {
const n = this.get(e),
r = this.normal(e),
- i = { c: n, n: r, x: n.x + r.x * t, y: n.y + r.y * t }
- return this._3d && (i.z = n.z + r.z * t), i
+ o = { c: n, n: r, x: n.x + r.x * t, y: n.y + r.y * t }
+ return this._3d && (o.z = n.z + r.z * t), o
}
if (this._linear) {
const t = this.normal(0),
@@ -34113,7 +48174,7 @@
const r = { x: n.x + e * t.x, y: n.y + e * t.y }
return n.z && t.z && (r.z = n.z + e * t.z), r
})
- return [new to(n)]
+ return [new ni(n)]
}
return this.reduce().map(function (t) {
return t._linear ? t.offset(e)[0] : t.scale(e)
@@ -34121,22 +48182,22 @@
}
simple() {
if (3 === this.order) {
- const e = qi.angle(this.points[0], this.points[3], this.points[1]),
- t = qi.angle(this.points[0], this.points[3], this.points[2])
+ const e = qo.angle(this.points[0], this.points[3], this.points[1]),
+ t = qo.angle(this.points[0], this.points[3], this.points[2])
if ((e > 0 && t < 0) || (e < 0 && t > 0)) return !1
}
const e = this.normal(0),
t = this.normal(1)
let n = e.x * t.x + e.y * t.y
- return this._3d && (n += e.z * t.z), Ki(Qi(n)) < eo / 3
+ return this._3d && (n += e.z * t.z), Zo(Jo(n)) < ti / 3
}
reduce() {
let e,
t,
n = 0,
r = 0,
- i = 0.01,
- o = [],
+ o = 0.01,
+ i = [],
a = [],
s = this.extrema().values
for (
@@ -34147,23 +48208,23 @@
e < s.length;
e++
)
- (r = s[e]), (t = this.split(n, r)), (t._t1 = n), (t._t2 = r), o.push(t), (n = r)
+ (r = s[e]), (t = this.split(n, r)), (t._t1 = n), (t._t2 = r), i.push(t), (n = r)
return (
- o.forEach(function (e) {
+ i.forEach(function (e) {
for (n = 0, r = 0; r <= 1; )
- for (r = n + i; r <= 1.01; r += i)
+ for (r = n + o; r <= 1.01; r += o)
if (((t = e.split(n, r)), !t.simple())) {
- if (((r -= i), Ki(n - r) < i)) return []
+ if (((r -= o), Zo(n - r) < o)) return []
;(t = e.split(n, r)),
- (t._t1 = qi.map(n, 0, 1, e._t1, e._t2)),
- (t._t2 = qi.map(r, 0, 1, e._t1, e._t2)),
+ (t._t1 = qo.map(n, 0, 1, e._t1, e._t2)),
+ (t._t2 = qo.map(r, 0, 1, e._t1, e._t2)),
a.push(t),
(n = r)
break
}
n < 1 &&
((t = e.split(n, 1)),
- (t._t1 = qi.map(n, 0, 1, e._t1, e._t2)),
+ (t._t1 = qo.map(n, 0, 1, e._t1, e._t2)),
(t._t2 = e._t2),
a.push(t))
}),
@@ -34175,64 +48236,64 @@
let n = !1
if (('function' === typeof e && (n = e), n && 2 === t)) return this.raise().scale(n)
const r = this.clockwise,
- i = n ? n(0) : e,
- o = n ? n(1) : e,
+ o = n ? n(0) : e,
+ i = n ? n(1) : e,
a = [this.offset(0, 10), this.offset(1, 10)],
s = this.points,
u = [],
- l = qi.lli4(a[0], a[0].c, a[1], a[1].c)
- if (!l) throw new Error('cannot scale this curve. Try reducing it first.')
+ c = qo.lli4(a[0], a[0].c, a[1], a[1].c)
+ if (!c) throw new Error('cannot scale this curve. Try reducing it first.')
return (
[0, 1].forEach(function (e) {
- const n = (u[e * t] = qi.copy(s[e * t]))
- ;(n.x += (e ? o : i) * a[e].n.x), (n.y += (e ? o : i) * a[e].n.y)
+ const n = (u[e * t] = qo.copy(s[e * t]))
+ ;(n.x += (e ? i : o) * a[e].n.x), (n.y += (e ? i : o) * a[e].n.y)
}),
n
- ? ([0, 1].forEach(function (i) {
- if (2 !== t || !i) {
- var o = s[i + 1],
- a = { x: o.x - l.x, y: o.y - l.y },
- c = n ? n((i + 1) / t) : e
- n && !r && (c = -c)
- var d = Ji(a.x * a.x + a.y * a.y)
- ;(a.x /= d), (a.y /= d), (u[i + 1] = { x: o.x + c * a.x, y: o.y + c * a.y })
+ ? ([0, 1].forEach(function (o) {
+ if (2 !== t || !o) {
+ var i = s[o + 1],
+ a = { x: i.x - c.x, y: i.y - c.y },
+ l = n ? n((o + 1) / t) : e
+ n && !r && (l = -l)
+ var d = ei(a.x * a.x + a.y * a.y)
+ ;(a.x /= d), (a.y /= d), (u[o + 1] = { x: i.x + l * a.x, y: i.y + l * a.y })
}
}),
- new to(u))
+ new ni(u))
: ([0, 1].forEach((e) => {
if (2 === t && e) return
const n = u[e * t],
r = this.derivative(e),
- i = { x: n.x + r.x, y: n.y + r.y }
- u[e + 1] = qi.lli4(n, i, l, s[e + 1])
+ o = { x: n.x + r.x, y: n.y + r.y }
+ u[e + 1] = qo.lli4(n, o, c, s[e + 1])
}),
- new to(u))
+ new ni(u))
)
}
outline(e, t, n, r) {
t = 'undefined' === typeof t ? e : t
- const i = this.reduce(),
- o = i.length,
+ const o = this.reduce(),
+ i = o.length,
a = []
let s,
u = [],
- l = 0,
- c = this.length()
+ c = 0,
+ l = this.length()
const d = 'undefined' !== typeof n && 'undefined' !== typeof r
- function f(e, t, n, r, i) {
- return function (o) {
+ function f(e, t, n, r, o) {
+ return function (i) {
const a = r / n,
- s = (r + i) / n,
+ s = (r + o) / n,
u = t - e
- return qi.map(o, 0, 1, e + a * u, e + s * u)
+ return qo.map(i, 0, 1, e + a * u, e + s * u)
}
}
- i.forEach(function (i) {
- const o = i.length()
+ o.forEach(function (o) {
+ const i = o.length()
d
- ? (a.push(i.scale(f(e, n, c, l, o))), u.push(i.scale(f(-t, -r, c, l, o))))
- : (a.push(i.scale(e)), u.push(i.scale(-t))),
- (l += o)
+ ? (a.push(o.scale(f(e, n, l, c, i))), u.push(o.scale(f(-t, -r, l, c, i))))
+ : (a.push(o.scale(e)), u.push(o.scale(-t))),
+ (c += i)
}),
(u = u
.map(function (e) {
@@ -34244,51 +48305,51 @@
})
.reverse())
const h = a[0].points[0],
- p = a[o - 1].points[a[o - 1].points.length - 1],
- v = u[o - 1].points[u[o - 1].points.length - 1],
+ p = a[i - 1].points[a[i - 1].points.length - 1],
+ v = u[i - 1].points[u[i - 1].points.length - 1],
m = u[0].points[0],
- g = qi.makeline(v, h),
- y = qi.makeline(p, m),
+ g = qo.makeline(v, h),
+ y = qo.makeline(p, m),
b = [g].concat(a).concat([y]).concat(u)
b.length
- return new Wi(b)
+ return new Ko(b)
}
outlineshapes(e, t, n) {
t = t || e
const r = this.outline(e, t).curves,
- i = []
- for (let o = 1, a = r.length; o < a / 2; o++) {
- const e = qi.makeshape(r[o], r[a - o], n)
- ;(e.startcap.virtual = o > 1), (e.endcap.virtual = o < a / 2 - 1), i.push(e)
+ o = []
+ for (let i = 1, a = r.length; i < a / 2; i++) {
+ const e = qo.makeshape(r[i], r[a - i], n)
+ ;(e.startcap.virtual = i > 1), (e.endcap.virtual = i < a / 2 - 1), o.push(e)
}
- return i
+ return o
}
intersects(e, t) {
return e
? e.p1 && e.p2
? this.lineIntersects(e)
- : (e instanceof to && (e = e.reduce()), this.curveintersects(this.reduce(), e, t))
+ : (e instanceof ni && (e = e.reduce()), this.curveintersects(this.reduce(), e, t))
: this.selfintersects(t)
}
lineIntersects(e) {
- const t = Zi(e.p1.x, e.p2.x),
- n = Zi(e.p1.y, e.p2.y),
- r = $i(e.p1.x, e.p2.x),
- i = $i(e.p1.y, e.p2.y)
- return qi.roots(this.points, e).filter((e) => {
- var o = this.get(e)
- return qi.between(o.x, t, r) && qi.between(o.y, n, i)
+ const t = Xo(e.p1.x, e.p2.x),
+ n = Xo(e.p1.y, e.p2.y),
+ r = $o(e.p1.x, e.p2.x),
+ o = $o(e.p1.y, e.p2.y)
+ return qo.roots(this.points, e).filter((e) => {
+ var i = this.get(e)
+ return qo.between(i.x, t, r) && qo.between(i.y, n, o)
})
}
selfintersects(e) {
const t = this.reduce(),
n = t.length - 2,
r = []
- for (let i, o, a, s = 0; s < n; s++)
- (o = t.slice(s, s + 1)),
+ for (let o, i, a, s = 0; s < n; s++)
+ (i = t.slice(s, s + 1)),
(a = t.slice(s + 2)),
- (i = this.curveintersects(o, a, e)),
- r.push(...i)
+ (o = this.curveintersects(i, a, e)),
+ r.push(...o)
return r
}
curveintersects(e, t, n) {
@@ -34298,79 +48359,79 @@
e.overlaps(t) && r.push({ left: e, right: t })
})
})
- let i = []
+ let o = []
return (
r.forEach(function (e) {
- const t = qi.pairiteration(e.left, e.right, n)
- t.length > 0 && (i = i.concat(t))
+ const t = qo.pairiteration(e.left, e.right, n)
+ t.length > 0 && (o = o.concat(t))
}),
- i
+ o
)
}
arcs(e) {
return (e = e || 0.5), this._iterate(e, [])
}
_error(e, t, n, r) {
- const i = (r - n) / 4,
- o = this.get(n + i),
- a = this.get(r - i),
- s = qi.dist(e, t),
- u = qi.dist(e, o),
- l = qi.dist(e, a)
- return Ki(u - s) + Ki(l - s)
+ const o = (r - n) / 4,
+ i = this.get(n + o),
+ a = this.get(r - o),
+ s = qo.dist(e, t),
+ u = qo.dist(e, i),
+ c = qo.dist(e, a)
+ return Zo(u - s) + Zo(c - s)
}
_iterate(e, t) {
let n,
r = 0,
- i = 1
+ o = 1
do {
- ;(n = 0), (i = 1)
- let o,
+ ;(n = 0), (o = 1)
+ let i,
a,
s,
u,
- l,
- c = this.get(r),
+ c,
+ l = this.get(r),
d = !1,
f = !1,
- h = i,
+ h = o,
p = 1,
v = 0
do {
if (
((f = d),
(u = s),
- (h = (r + i) / 2),
+ (h = (r + o) / 2),
v++,
- (o = this.get(h)),
- (a = this.get(i)),
- (s = qi.getccenter(c, o, a)),
- (s.interval = { start: r, end: i }),
- (d = this._error(s, c, r, i) <= e),
- (l = f && !d),
- l || (p = i),
+ (i = this.get(h)),
+ (a = this.get(o)),
+ (s = qo.getccenter(l, i, a)),
+ (s.interval = { start: r, end: o }),
+ (d = this._error(s, l, r, o) <= e),
+ (c = f && !d),
+ c || (p = o),
d)
) {
- if (i >= 1) {
- if (((s.interval.end = p = 1), (u = s), i > 1)) {
- let e = { x: s.x + s.r * Xi(s.e), y: s.y + s.r * Yi(s.e) }
- s.e += qi.angle({ x: s.x, y: s.y }, e, this.get(1))
+ if (o >= 1) {
+ if (((s.interval.end = p = 1), (u = s), o > 1)) {
+ let e = { x: s.x + s.r * Yo(s.e), y: s.y + s.r * Qo(s.e) }
+ s.e += qo.angle({ x: s.x, y: s.y }, e, this.get(1))
}
break
}
- i += (i - r) / 2
- } else i = h
- } while (!l && n++ < 100)
+ o += (o - r) / 2
+ } else o = h
+ } while (!c && n++ < 100)
if (n >= 100) break
;(u = u || s), t.push(u), (r = p)
- } while (i < 1)
+ } while (o < 1)
return t
}
}
- var no = r(1527),
- ro = r(2462),
- io = r(2816)
- function oo(e, t) {
+ var ri = r(1527),
+ oi = r(72462),
+ ii = r(47646)
+ function ai(e, t) {
var n = Object.keys(e)
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e)
@@ -34382,23 +48443,23 @@
}
return n
}
- function ao(e) {
+ function si(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {}
t % 2
- ? oo(Object(n), !0).forEach(function (t) {
- uo(e, t, n[t])
+ ? ai(Object(n), !0).forEach(function (t) {
+ ci(e, t, n[t])
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
- : oo(Object(n)).forEach(function (t) {
+ : ai(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
})
}
return e
}
- function so(e) {
- return (so =
+ function ui(e) {
+ return (ui =
'function' === typeof Symbol && 'symbol' === typeof Symbol.iterator
? function (e) {
return typeof e
@@ -34412,7 +48473,7 @@
: typeof e
})(e)
}
- function uo(e, t, n) {
+ function ci(e, t, n) {
return (
t in e
? Object.defineProperty(e, t, {
@@ -34425,14 +48486,14 @@
e
)
}
- function lo(e, t) {
- return (lo =
+ function li(e, t) {
+ return (li =
Object.setPrototypeOf ||
function (e, t) {
return (e.__proto__ = t), e
})(e, t)
}
- function co() {
+ function di() {
if ('undefined' === typeof Reflect || !Reflect.construct) return !1
if (Reflect.construct.sham) return !1
if ('function' === typeof Proxy) return !0
@@ -34442,17 +48503,17 @@
return !1
}
}
- function fo(e, t, n) {
- return (fo = co()
+ function fi(e, t, n) {
+ return (fi = di()
? Reflect.construct
: function (e, t, n) {
var r = [null]
r.push.apply(r, t)
- var i = new (Function.bind.apply(e, r))()
- return n && lo(i, n.prototype), i
+ var o = new (Function.bind.apply(e, r))()
+ return n && li(o, n.prototype), o
}).apply(null, arguments)
}
- function ho(e, t) {
+ function hi(e, t) {
return (
(function (e) {
if (Array.isArray(e)) return e
@@ -34464,28 +48525,28 @@
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator']
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
- vo(e, t) ||
+ vi(e, t) ||
(function () {
throw new TypeError(
'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
@@ -34493,10 +48554,10 @@
})()
)
}
- function po(e) {
+ function pi(e) {
return (
(function (e) {
- if (Array.isArray(e)) return mo(e)
+ if (Array.isArray(e)) return mi(e)
})(e) ||
(function (e) {
if (
@@ -34505,7 +48566,7 @@
)
return Array.from(e)
})(e) ||
- vo(e) ||
+ vi(e) ||
(function () {
throw new TypeError(
'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
@@ -34513,21 +48574,21 @@
})()
)
}
- function vo(e, t) {
+ function vi(e, t) {
if (e) {
- if ('string' === typeof e) return mo(e, t)
+ if ('string' === typeof e) return mi(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
return (
'Object' === n && e.constructor && (n = e.constructor.name),
'Map' === n || 'Set' === n
? Array.from(e)
: 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
- ? mo(e, t)
+ ? mi(e, t)
: void 0
)
}
}
- function mo(e, t) {
+ function mi(e, t) {
;(null == t || t > e.length) && (t = e.length)
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
@@ -34537,16 +48598,16 @@
var n = t.insertAt
if (e && 'undefined' !== typeof document) {
var r = document.head || document.getElementsByTagName('head')[0],
- i = document.createElement('style')
- ;(i.type = 'text/css'),
- 'top' === n && r.firstChild ? r.insertBefore(i, r.firstChild) : r.appendChild(i),
- i.styleSheet ? (i.styleSheet.cssText = e) : i.appendChild(document.createTextNode(e))
+ o = document.createElement('style')
+ ;(o.type = 'text/css'),
+ 'top' === n && r.firstChild ? r.insertBefore(o, r.firstChild) : r.appendChild(o),
+ o.styleSheet ? (o.styleSheet.cssText = e) : o.appendChild(document.createTextNode(e))
}
})(
'.force-graph-container canvas {\n display: block;\n user-select: none;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.force-graph-container .graph-tooltip {\n position: absolute;\n transform: translate(-50%, 25px);\n font-family: sans-serif;\n font-size: 16px;\n padding: 4px;\n border-radius: 3px;\n color: #eee;\n background: rgba(0,0,0,0.65);\n visibility: hidden; /* by default */\n}\n\n.force-graph-container .clickable {\n cursor: pointer;\n}\n\n.force-graph-container .grabbable {\n cursor: move;\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n}\n\n.force-graph-container .grabbable:active {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n}\n',
)
- var go = (0, ro.Z)(io.Z)
- function yo(e, t, n) {
+ var gi = (0, oi.Z)(ii.Z)
+ function yi(e, t, n) {
t &&
'string' === typeof n &&
e
@@ -34554,13 +48615,13 @@
return !e[n]
})
.forEach(function (e) {
- e[n] = go(t(e))
+ e[n] = gi(t(e))
})
}
- var bo = function (e, t) {
+ var bi = function (e, t) {
return t.onNeedsRedraw && t.onNeedsRedraw()
},
- wo = (0, b.Z)({
+ wi = (0, b.Z)({
props: {
graphData: {
default: { nodes: [], links: [] },
@@ -34583,39 +48644,39 @@
},
},
onDagError: { triggerUpdate: !1 },
- nodeRelSize: { default: 4, triggerUpdate: !1, onChange: bo },
+ nodeRelSize: { default: 4, triggerUpdate: !1, onChange: bi },
nodeId: { default: 'id' },
- nodeVal: { default: 'val', triggerUpdate: !1, onChange: bo },
- nodeColor: { default: 'color', triggerUpdate: !1, onChange: bo },
+ nodeVal: { default: 'val', triggerUpdate: !1, onChange: bi },
+ nodeColor: { default: 'color', triggerUpdate: !1, onChange: bi },
nodeAutoColorBy: {},
- nodeCanvasObject: { triggerUpdate: !1, onChange: bo },
+ nodeCanvasObject: { triggerUpdate: !1, onChange: bi },
nodeCanvasObjectMode: {
default: function () {
return 'replace'
},
triggerUpdate: !1,
- onChange: bo,
+ onChange: bi,
},
- nodeVisibility: { default: !0, triggerUpdate: !1, onChange: bo },
+ nodeVisibility: { default: !0, triggerUpdate: !1, onChange: bi },
linkSource: { default: 'source' },
linkTarget: { default: 'target' },
- linkVisibility: { default: !0, triggerUpdate: !1, onChange: bo },
- linkColor: { default: 'color', triggerUpdate: !1, onChange: bo },
+ linkVisibility: { default: !0, triggerUpdate: !1, onChange: bi },
+ linkColor: { default: 'color', triggerUpdate: !1, onChange: bi },
linkAutoColorBy: {},
- linkLineDash: { triggerUpdate: !1, onChange: bo },
- linkWidth: { default: 1, triggerUpdate: !1, onChange: bo },
- linkCurvature: { default: 0, triggerUpdate: !1, onChange: bo },
- linkCanvasObject: { triggerUpdate: !1, onChange: bo },
+ linkLineDash: { triggerUpdate: !1, onChange: bi },
+ linkWidth: { default: 1, triggerUpdate: !1, onChange: bi },
+ linkCurvature: { default: 0, triggerUpdate: !1, onChange: bi },
+ linkCanvasObject: { triggerUpdate: !1, onChange: bi },
linkCanvasObjectMode: {
default: function () {
return 'replace'
},
triggerUpdate: !1,
- onChange: bo,
+ onChange: bi,
},
- linkDirectionalArrowLength: { default: 0, triggerUpdate: !1, onChange: bo },
- linkDirectionalArrowColor: { triggerUpdate: !1, onChange: bo },
- linkDirectionalArrowRelPos: { default: 0.5, triggerUpdate: !1, onChange: bo },
+ linkDirectionalArrowLength: { default: 0, triggerUpdate: !1, onChange: bi },
+ linkDirectionalArrowColor: { triggerUpdate: !1, onChange: bi },
+ linkDirectionalArrowRelPos: { default: 0.5, triggerUpdate: !1, onChange: bi },
linkDirectionalParticles: { default: 0 },
linkDirectionalParticleSpeed: { default: 0.01, triggerUpdate: !1 },
linkDirectionalParticleWidth: { default: 4, triggerUpdate: !1 },
@@ -34679,66 +48740,66 @@
var t = (0, w.default)(e.linkVisibility),
n = (0, w.default)(e.linkColor),
r = (0, w.default)(e.linkWidth),
- i = (0, w.default)(e.linkLineDash),
- o = (0, w.default)(e.linkCurvature),
+ o = (0, w.default)(e.linkLineDash),
+ i = (0, w.default)(e.linkCurvature),
a = (0, w.default)(e.linkCanvasObjectMode),
s = e.ctx,
u = 2 * e.isShadow,
- l = e.graphData.links.filter(t)
- l.forEach(function (e) {
- var t = o(e)
+ c = e.graphData.links.filter(t)
+ c.forEach(function (e) {
+ var t = i(e)
if (!t) return void (e.__controlPoints = null)
var n = e.source,
r = e.target
if (!n || !r || !n.hasOwnProperty('x') || !r.hasOwnProperty('x')) return
- var i = Math.sqrt(Math.pow(r.x - n.x, 2) + Math.pow(r.y - n.y, 2))
- if (i > 0) {
+ var o = Math.sqrt(Math.pow(r.x - n.x, 2) + Math.pow(r.y - n.y, 2))
+ if (o > 0) {
var a = Math.atan2(r.y - n.y, r.x - n.x),
- s = i * t,
+ s = o * t,
u = {
x: (n.x + r.x) / 2 + s * Math.cos(a - Math.PI / 2),
y: (n.y + r.y) / 2 + s * Math.sin(a - Math.PI / 2),
}
e.__controlPoints = [u.x, u.y]
} else {
- var l = 70 * t
- e.__controlPoints = [r.x, r.y - l, r.x + l, r.y]
+ var c = 70 * t
+ e.__controlPoints = [r.x, r.y - c, r.x + c, r.y]
}
})
- var c = [],
+ var l = [],
d = [],
- f = l
+ f = c
if (e.linkCanvasObject) {
var h = [],
p = []
- l.forEach(function (e) {
- return ({ before: c, after: d, replace: h }[a(e)] || p).push(e)
+ c.forEach(function (e) {
+ return ({ before: l, after: d, replace: h }[a(e)] || p).push(e)
}),
- (f = [].concat(po(c), d, p)),
- (c = c.concat(h))
+ (f = [].concat(pi(l), d, p)),
+ (l = l.concat(h))
}
s.save(),
- c.forEach(function (t) {
+ l.forEach(function (t) {
return e.linkCanvasObject(t, s, e.globalScale)
}),
s.restore()
- var v = (0, no.Z)(f, [n, r, i])
+ var v = (0, ri.Z)(f, [n, r, o])
s.save(),
Object.entries(v).forEach(function (t) {
- var n = ho(t, 2),
+ var n = hi(t, 2),
r = n[0],
- o = n[1],
+ i = n[1],
a = r && 'undefined' !== r ? r : 'rgba(0,0,0,0.15)'
- Object.entries(o).forEach(function (t) {
- var n = ho(t, 2),
+ Object.entries(i).forEach(function (t) {
+ var n = hi(t, 2),
r = n[0],
- o = n[1],
- l = (r || 1) / e.globalScale + u
- Object.entries(o).forEach(function (e) {
- var t = ho(e, 2)
+ i = n[1],
+ c = (r || 1) / e.globalScale + u
+ Object.entries(i).forEach(function (e) {
+ var t = hi(e, 2)
t[0]
var n = t[1],
- r = i(n[0])
+ r = o(n[0])
s.beginPath(),
n.forEach(function (e) {
var t = e.source,
@@ -34749,13 +48810,13 @@
r
? s[2 === r.length ? 'quadraticCurveTo' : 'bezierCurveTo'].apply(
s,
- po(r).concat([n.x, n.y]),
+ pi(r).concat([n.x, n.y]),
)
: s.lineTo(n.x, n.y)
}
}),
(s.strokeStyle = a),
- (s.lineWidth = l),
+ (s.lineWidth = c),
s.setLineDash(r || []),
s.stroke()
})
@@ -34773,47 +48834,47 @@
var t = (0, w.default)(e.linkDirectionalArrowLength),
n = (0, w.default)(e.linkDirectionalArrowRelPos),
r = (0, w.default)(e.linkVisibility),
- i = (0, w.default)(e.linkDirectionalArrowColor || e.linkColor),
- o = (0, w.default)(e.nodeVal),
+ o = (0, w.default)(e.linkDirectionalArrowColor || e.linkColor),
+ i = (0, w.default)(e.nodeVal),
a = e.ctx
a.save(),
e.graphData.links.filter(r).forEach(function (r) {
var s = t(r)
if (s && !(s < 0)) {
var u = r.source,
- l = r.target
- if (u && l && u.hasOwnProperty('x') && l.hasOwnProperty('x')) {
- var c = Math.sqrt(Math.max(0, o(u) || 1)) * e.nodeRelSize,
- d = Math.sqrt(Math.max(0, o(l) || 1)) * e.nodeRelSize,
+ c = r.target
+ if (u && c && u.hasOwnProperty('x') && c.hasOwnProperty('x')) {
+ var l = Math.sqrt(Math.max(0, i(u) || 1)) * e.nodeRelSize,
+ d = Math.sqrt(Math.max(0, i(c) || 1)) * e.nodeRelSize,
f = Math.min(1, Math.max(0, n(r))),
- h = i(r) || 'rgba(0,0,0,0.28)',
+ h = o(r) || 'rgba(0,0,0,0.28)',
p = s / 1.6 / 2,
v =
r.__controlPoints &&
- fo(to, [u.x, u.y].concat(po(r.__controlPoints), [l.x, l.y])),
+ fi(ni, [u.x, u.y].concat(pi(r.__controlPoints), [c.x, c.y])),
m = v
? function (e) {
return v.get(e)
}
: function (e) {
return {
- x: u.x + (l.x - u.x) * e || 0,
- y: u.y + (l.y - u.y) * e || 0,
+ x: u.x + (c.x - u.x) * e || 0,
+ y: u.y + (c.y - u.y) * e || 0,
}
},
g = v
? v.length()
- : Math.sqrt(Math.pow(l.x - u.x, 2) + Math.pow(l.y - u.y, 2)),
- y = c + s + (g - c - d - s) * f,
+ : Math.sqrt(Math.pow(c.x - u.x, 2) + Math.pow(c.y - u.y, 2)),
+ y = l + s + (g - l - d - s) * f,
b = m(y / g),
w = m((y - s) / g),
- x = m((y - 0.8 * s) / g),
- E = Math.atan2(b.y - w.y, b.x - w.x) - Math.PI / 2
+ _ = m((y - 0.8 * s) / g),
+ x = Math.atan2(b.y - w.y, b.x - w.x) - Math.PI / 2
a.beginPath(),
a.moveTo(b.x, b.y),
- a.lineTo(w.x + p * Math.cos(E), w.y + p * Math.sin(E)),
- a.lineTo(x.x, x.y),
- a.lineTo(w.x - p * Math.cos(E), w.y - p * Math.sin(E)),
+ a.lineTo(w.x + p * Math.cos(x), w.y + p * Math.sin(x)),
+ a.lineTo(_.x, _.y),
+ a.lineTo(w.x - p * Math.cos(x), w.y - p * Math.sin(x)),
(a.fillStyle = h),
a.fill()
}
@@ -34826,23 +48887,23 @@
var t = (0, w.default)(e.linkDirectionalParticles),
n = (0, w.default)(e.linkDirectionalParticleSpeed),
r = (0, w.default)(e.linkDirectionalParticleWidth),
- i = (0, w.default)(e.linkVisibility),
- o = (0, w.default)(e.linkDirectionalParticleColor || e.linkColor),
+ o = (0, w.default)(e.linkVisibility),
+ i = (0, w.default)(e.linkDirectionalParticleColor || e.linkColor),
a = e.ctx
a.save(),
- e.graphData.links.filter(i).forEach(function (i) {
- var s = t(i)
- if (i.hasOwnProperty('__photons') && i.__photons.length) {
- var u = i.source,
- l = i.target
- if (u && l && u.hasOwnProperty('x') && l.hasOwnProperty('x')) {
- var c = n(i),
- d = i.__photons || [],
- f = Math.max(0, r(i) / 2) / Math.sqrt(e.globalScale),
- h = o(i) || 'rgba(0,0,0,0.28)'
+ e.graphData.links.filter(o).forEach(function (o) {
+ var s = t(o)
+ if (o.hasOwnProperty('__photons') && o.__photons.length) {
+ var u = o.source,
+ c = o.target
+ if (u && c && u.hasOwnProperty('x') && c.hasOwnProperty('x')) {
+ var l = n(o),
+ d = o.__photons || [],
+ f = Math.max(0, r(o) / 2) / Math.sqrt(e.globalScale),
+ h = i(o) || 'rgba(0,0,0,0.28)'
a.fillStyle = h
- var p = i.__controlPoints
- ? fo(to, [u.x, u.y].concat(po(i.__controlPoints), [l.x, l.y]))
+ var p = o.__controlPoints
+ ? fi(ni, [u.x, u.y].concat(pi(o.__controlPoints), [c.x, c.y]))
: null,
v = 0,
m = !1
@@ -34852,7 +48913,7 @@
(e.hasOwnProperty('__progressRatio') ||
(e.__progressRatio = t ? 0 : v / s),
!t && v++,
- (e.__progressRatio += c),
+ (e.__progressRatio += l),
e.__progressRatio >= 1)
) {
if (t) return void (m = !0)
@@ -34861,11 +48922,11 @@
var n = e.__progressRatio,
r = p
? p.get(n)
- : { x: u.x + (l.x - u.x) * n || 0, y: u.y + (l.y - u.y) * n || 0 }
+ : { x: u.x + (c.x - u.x) * n || 0, y: u.y + (c.y - u.y) * n || 0 }
a.beginPath(), a.arc(r.x, r.y, f, 0, 2 * Math.PI, !1), a.fill()
}),
m &&
- (i.__photons = i.__photons.filter(function (e) {
+ (o.__photons = o.__photons.filter(function (e) {
return !e.__singleHop || e.__progressRatio <= 1
}))
}
@@ -34877,29 +48938,29 @@
var t = (0, w.default)(e.nodeVisibility),
n = (0, w.default)(e.nodeVal),
r = (0, w.default)(e.nodeColor),
- i = (0, w.default)(e.nodeCanvasObjectMode),
- o = e.ctx,
+ o = (0, w.default)(e.nodeCanvasObjectMode),
+ i = e.ctx,
a = e.isShadow / e.globalScale,
s = e.graphData.nodes.filter(t)
- o.save(),
+ i.save(),
s.forEach(function (t) {
- var s = i(t)
+ var s = o(t)
if (
!e.nodeCanvasObject ||
('before' !== s && 'replace' !== s) ||
- (e.nodeCanvasObject(t, o, e.globalScale), 'replace' !== s)
+ (e.nodeCanvasObject(t, i, e.globalScale), 'replace' !== s)
) {
var u = Math.sqrt(Math.max(0, n(t) || 1)) * e.nodeRelSize + a
- o.beginPath(),
- o.arc(t.x, t.y, u, 0, 2 * Math.PI, !1),
- (o.fillStyle = r(t) || 'rgba(31, 120, 180, 0.92)'),
- o.fill(),
+ i.beginPath(),
+ i.arc(t.x, t.y, u, 0, 2 * Math.PI, !1),
+ (i.fillStyle = r(t) || 'rgba(31, 120, 180, 0.92)'),
+ i.fill(),
e.nodeCanvasObject &&
'after' === s &&
e.nodeCanvasObject(t, e.ctx, e.globalScale)
- } else o.restore()
+ } else i.restore()
}),
- o.restore()
+ i.restore()
})(),
this
)
@@ -34913,10 +48974,10 @@
},
stateInit: function () {
return {
- forceLayout: (0, Oi.Z)()
- .force('link', (0, Ci.Z)())
- .force('charge', (0, Si.Z)())
- .force('center', (0, Ai.Z)())
+ forceLayout: (0, Co.Z)()
+ .force('link', (0, Mo.Z)())
+ .force('charge', (0, So.Z)())
+ .force('center', (0, Po.Z)())
.force('dagRadial', null)
.stop(),
engineRunning: !1,
@@ -34930,9 +48991,9 @@
((e.engineRunning = !1),
e.onUpdate(),
null !== e.nodeAutoColorBy &&
- yo(e.graphData.nodes, (0, w.default)(e.nodeAutoColorBy), e.nodeColor),
+ yi(e.graphData.nodes, (0, w.default)(e.nodeAutoColorBy), e.nodeColor),
null !== e.linkAutoColorBy &&
- yo(e.graphData.links, (0, w.default)(e.linkAutoColorBy), e.linkColor),
+ yi(e.graphData.links, (0, w.default)(e.linkAutoColorBy), e.linkColor),
e.graphData.links.forEach(function (t) {
;(t.source = t[e.linkSource]), (t.target = t[e.linkTarget])
}),
@@ -34942,7 +49003,7 @@
e.graphData.links.forEach(function (e) {
var n = Math.round(Math.abs(t(e)))
n
- ? (e.__photons = po(Array(n)).map(function () {
+ ? (e.__photons = pi(Array(n)).map(function () {
return {}
}))
: delete e.__photons
@@ -34961,15 +49022,15 @@
(function (e, t) {
var n = e.nodes,
r = e.links,
- i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
- o = i.nodeFilter,
+ o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
+ i = o.nodeFilter,
a =
- void 0 === o
+ void 0 === i
? function () {
return !0
}
- : o,
- s = i.onLoopError,
+ : i,
+ s = o.onLoopError,
u =
void 0 === s
? function (e) {
@@ -34979,38 +49040,38 @@
)
}
: s,
- l = {}
+ c = {}
n.forEach(function (e) {
- return (l[t(e)] = { data: e, out: [], depth: -1, skip: !a(e) })
+ return (c[t(e)] = { data: e, out: [], depth: -1, skip: !a(e) })
}),
r.forEach(function (e) {
var n = e.source,
r = e.target,
- i = u(n),
- o = u(r)
- if (!l.hasOwnProperty(i)) throw 'Missing source node with id: '.concat(i)
- if (!l.hasOwnProperty(o)) throw 'Missing target node with id: '.concat(o)
- var a = l[i],
- s = l[o]
+ o = u(n),
+ i = u(r)
+ if (!c.hasOwnProperty(o)) throw 'Missing source node with id: '.concat(o)
+ if (!c.hasOwnProperty(i)) throw 'Missing target node with id: '.concat(i)
+ var a = c[o],
+ s = c[i]
function u(e) {
- return 'object' === so(e) ? t(e) : e
+ return 'object' === ui(e) ? t(e) : e
}
a.out.push(s)
})
- var c = []
+ var l = []
return (
- d(Object.values(l)),
+ d(Object.values(c)),
Object.assign.apply(
Object,
[{}].concat(
- po(
- Object.entries(l)
+ pi(
+ Object.entries(c)
.filter(function (e) {
- return !ho(e, 2)[1].skip
+ return !hi(e, 2)[1].skip
})
.map(function (e) {
- var t = ho(e, 2)
- return uo({}, t[0], t[1].depth)
+ var t = hi(e, 2)
+ return ci({}, t[0], t[1].depth)
}),
),
),
@@ -35020,35 +49081,35 @@
for (
var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0,
- i = 0,
- o = e.length;
- i < o;
- i++
+ o = 0,
+ i = e.length;
+ o < i;
+ o++
) {
- var a = e[i]
+ var a = e[o]
if (-1 !== n.indexOf(a))
if (
'continue' ===
(function () {
- var e = [].concat(po(n.slice(n.indexOf(a))), [a]).map(function (e) {
+ var e = [].concat(pi(n.slice(n.indexOf(a))), [a]).map(function (e) {
return t(e.data)
})
return (
- c.some(function (t) {
+ l.some(function (t) {
return (
t.length === e.length &&
t.every(function (t, n) {
return t === e[n]
})
)
- }) || (c.push(e), u(e)),
+ }) || (l.push(e), u(e)),
'continue'
)
})()
)
continue
r > a.depth &&
- ((a.depth = r), d(a.out, [].concat(po(n), [a]), r + (a.skip ? 0 : 1)))
+ ((a.depth = r), d(a.out, [].concat(pi(n), [a]), r + (a.skip ? 0 : 1)))
}
}
})(
@@ -35058,16 +49119,16 @@
},
{ nodeFilter: e.dagNodeFilter, onLoopError: e.onDagError || void 0 },
),
- i = Math.max.apply(Math, po(Object.values(r || []))),
- o =
+ o = Math.max.apply(Math, pi(Object.values(r || []))),
+ i =
e.dagLevelDistance ||
- (e.graphData.nodes.length / (i || 1)) *
+ (e.graphData.nodes.length / (o || 1)) *
2 *
(-1 !== ['radialin', 'radialout'].indexOf(e.dagMode) ? 0.7 : 1)
if (e.dagMode) {
var a = function (t, n) {
return function (a) {
- return t ? (r[a[e.nodeId]] - i / 2) * o * (n ? -1 : 1) : void 0
+ return t ? (r[a[e.nodeId]] - o / 2) * i * (n ? -1 : 1) : void 0
}
},
s = a(-1 !== ['lr', 'rl'].indexOf(e.dagMode), 'rl' === e.dagMode),
@@ -35079,24 +49140,24 @@
e.forceLayout.force(
'dagRadial',
-1 !== ['radialin', 'radialout'].indexOf(e.dagMode)
- ? (0, Pi.Z)(function (t) {
+ ? (0, jo.Z)(function (t) {
var n = r[t[e.nodeId]] || -1
- return ('radialin' === e.dagMode ? i - n : n) * o
+ return ('radialin' === e.dagMode ? o - n : n) * i
}).strength(function (t) {
return e.dagNodeFilter(t) ? 1 : 0
})
: null,
)
for (
- var l = 0;
- l < e.warmupTicks && !(e.d3AlphaMin > 0 && e.forceLayout.alpha() < e.d3AlphaMin);
- l++
+ var c = 0;
+ c < e.warmupTicks && !(e.d3AlphaMin > 0 && e.forceLayout.alpha() < e.d3AlphaMin);
+ c++
)
e.forceLayout.tick()
this.resetCountdown(), e.onFinishUpdate()
},
})
- function xo(e, t) {
+ function _i(e, t) {
var n = e instanceof Array ? e : [e],
r = new t()
return {
@@ -35113,14 +49174,14 @@
},
linkMethod: function (e) {
return function (t) {
- for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), o = 1; o < r; o++)
- i[o - 1] = arguments[o]
+ for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
+ o[i - 1] = arguments[i]
var a = []
return (
n.forEach(function (n) {
var r = t[n],
- o = r[e].apply(r, i)
- o !== r && a.push(o)
+ i = r[e].apply(r, o)
+ i !== r && a.push(i)
}),
a.length ? a[0] : this
)
@@ -35128,11 +49189,11 @@
},
}
}
- var Eo = xo('forceGraph', wo),
- ko = xo(['forceGraph', 'shadowGraph'], wo),
- _o = Object.assign.apply(
+ var xi = _i('forceGraph', wi),
+ ki = _i(['forceGraph', 'shadowGraph'], wi),
+ Ei = Object.assign.apply(
Object,
- po(
+ pi(
[
'nodeColor',
'nodeAutoColorBy',
@@ -35164,10 +49225,10 @@
'onEngineTick',
'onEngineStop',
].map(function (e) {
- return uo({}, e, Eo.linkProp(e))
+ return ci({}, e, xi.linkProp(e))
}),
).concat(
- po(
+ pi(
[
'nodeRelSize',
'nodeId',
@@ -35178,20 +49239,20 @@
'linkVisibility',
'linkCurvature',
].map(function (e) {
- return uo({}, e, ko.linkProp(e))
+ return ci({}, e, ki.linkProp(e))
}),
),
),
),
- To = Object.assign.apply(
+ Oi = Object.assign.apply(
Object,
- po(
+ pi(
['d3Force', 'd3ReheatSimulation', 'emitParticle'].map(function (e) {
- return uo({}, e, Eo.linkMethod(e))
+ return ci({}, e, xi.linkMethod(e))
}),
),
)
- function Oo(e) {
+ function Ti(e) {
if (e.canvas) {
var t = e.canvas.width,
n = e.canvas.height
@@ -35199,39 +49260,39 @@
var r = window.devicePixelRatio
;(t /= r),
(n /= r),
- [e.canvas, e.shadowCanvas].forEach(function (i) {
- ;(i.style.width = ''.concat(e.width, 'px')),
- (i.style.height = ''.concat(e.height, 'px')),
- (i.width = e.width * r),
- (i.height = e.height * r),
- t || n || i.getContext('2d').scale(r, r)
+ [e.canvas, e.shadowCanvas].forEach(function (o) {
+ ;(o.style.width = ''.concat(e.width, 'px')),
+ (o.style.height = ''.concat(e.height, 'px')),
+ (o.width = e.width * r),
+ (o.height = e.height * r),
+ t || n || o.getContext('2d').scale(r, r)
})
- var i = Yr(e.canvas).k
- e.zoom.translateBy(e.zoom.__baseElem, (e.width - t) / 2 / i, (e.height - n) / 2 / i),
+ var o = Yr(e.canvas).k
+ e.zoom.translateBy(e.zoom.__baseElem, (e.width - t) / 2 / o, (e.height - n) / 2 / o),
(e.needsRedraw = !0)
}
}
- function Co(e) {
+ function Ci(e) {
var t = window.devicePixelRatio
e.setTransform(t, 0, 0, t, 0, 0)
}
- function So(e, t, n) {
- e.save(), Co(e), e.clearRect(0, 0, t, n), e.restore()
+ function Mi(e, t, n) {
+ e.save(), Ci(e), e.clearRect(0, 0, t, n), e.restore()
}
- var Ao = (0, b.Z)({
- props: ao(
+ var Si = (0, b.Z)({
+ props: si(
{
width: {
default: window.innerWidth,
onChange: function (e, t) {
- return Oo(t)
+ return Ti(t)
},
triggerUpdate: !1,
},
height: {
default: window.innerHeight,
onChange: function (e, t) {
- return Oo(t)
+ return Ti(t)
},
triggerUpdate: !1,
},
@@ -35332,10 +49393,10 @@
onRenderFramePre: { triggerUpdate: !1 },
onRenderFramePost: { triggerUpdate: !1 },
},
- _o,
+ Ei,
),
aliases: { stopAnimation: 'pauseAnimation' },
- methods: ao(
+ methods: si(
{
graph2ScreenCoords: function (e, t, n) {
var r = Yr(e.canvas)
@@ -35348,24 +49409,24 @@
centerAt: function (e, t, n, r) {
if (!e.canvas) return null
if (void 0 !== t || void 0 !== n) {
- var i = Object.assign(
+ var o = Object.assign(
{},
void 0 !== t ? { x: t } : {},
void 0 !== n ? { y: n } : {},
)
return (
r
- ? new We.ZP.Tween(o())
- .to(i, r)
- .easing(We.ZP.Easing.Quadratic.Out)
+ ? new qe.ZP.Tween(i())
+ .to(o, r)
+ .easing(qe.ZP.Easing.Quadratic.Out)
.onUpdate(a)
.start()
- : a(i),
+ : a(o),
this
)
}
- return o()
- function o() {
+ return i()
+ function i() {
var t = Yr(e.canvas)
return { x: (e.width / 2 - t.x) / t.k, y: (e.height / 2 - t.y) / t.k }
}
@@ -35374,8 +49435,8 @@
r = t.y
e.zoom.translateTo(
e.zoom.__baseElem,
- void 0 === n ? o().x : n,
- void 0 === r ? o().y : r,
+ void 0 === n ? i().x : n,
+ void 0 === r ? i().y : r,
),
(e.needsRedraw = !0)
}
@@ -35384,21 +49445,21 @@
return e.canvas
? void 0 !== t
? (n
- ? new We.ZP.Tween({ k: r() })
+ ? new qe.ZP.Tween({ k: r() })
.to({ k: t }, n)
- .easing(We.ZP.Easing.Quadratic.Out)
+ .easing(qe.ZP.Easing.Quadratic.Out)
.onUpdate(function (e) {
- return i(e.k)
+ return o(e.k)
})
.start()
- : i(t),
+ : o(t),
this)
: r()
: null
function r() {
return Yr(e.canvas).k
}
- function i(t) {
+ function o(t) {
e.zoom.scaleTo(e.zoom.__baseElem, t), (e.needsRedraw = !0)
}
},
@@ -35407,13 +49468,13 @@
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0,
n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 10,
r = arguments.length,
- i = new Array(r > 3 ? r - 3 : 0),
- o = 3;
- o < r;
- o++
+ o = new Array(r > 3 ? r - 3 : 0),
+ i = 3;
+ i < r;
+ i++
)
- i[o - 3] = arguments[o]
- var a = this.getGraphBbox.apply(this, i)
+ o[i - 3] = arguments[i]
+ var a = this.getGraphBbox.apply(this, o)
if (a) {
var s = { x: (a.x[0] + a.x[1]) / 2, y: (a.y[0] + a.y[1]) / 2 },
u = Math.max(
@@ -35439,24 +49500,24 @@
r = function (t) {
return Math.sqrt(Math.max(0, n(t) || 1)) * e.nodeRelSize
},
- i = e.graphData.nodes.filter(t).map(function (e) {
+ o = e.graphData.nodes.filter(t).map(function (e) {
return { x: e.x, y: e.y, r: r(e) }
})
- return i.length
+ return o.length
? {
x: [
- (0, hi.Z)(i, function (e) {
+ (0, po.Z)(o, function (e) {
return e.x - e.r
}),
- (0, pi.Z)(i, function (e) {
+ (0, vo.Z)(o, function (e) {
return e.x + e.r
}),
],
y: [
- (0, hi.Z)(i, function (e) {
+ (0, po.Z)(o, function (e) {
return e.y - e.r
}),
- (0, pi.Z)(i, function (e) {
+ (0, vo.Z)(o, function (e) {
return e.y + e.r
}),
],
@@ -35478,19 +49539,19 @@
this.pauseAnimation(), this.graphData({ nodes: [], links: [] })
},
},
- To,
+ Oi,
),
stateInit: function () {
return {
lastSetZoom: 1,
- zoom: ai(),
- forceGraph: new wo(),
- shadowGraph: new wo()
+ zoom: ao(),
+ forceGraph: new wi(),
+ shadowGraph: new wi()
.cooldownTicks(0)
.nodeColor('__indexColor')
.linkColor('__indexColor')
.isShadow(!0),
- colorTracker: new Ti(),
+ colorTracker: new To(),
}
},
init: function (e, t) {
@@ -35504,12 +49565,12 @@
n.appendChild(t.canvas),
(t.shadowCanvas = document.createElement('canvas'))
var r = t.canvas.getContext('2d'),
- i = t.shadowCanvas.getContext('2d'),
- o = { x: -1e12, y: -1e12 },
+ o = t.shadowCanvas.getContext('2d'),
+ i = { x: -1e12, y: -1e12 },
a = function () {
var e = null,
n = window.devicePixelRatio,
- r = o.x > 0 && o.y > 0 ? i.getImageData(o.x * n, o.y * n, 1, 1) : null
+ r = i.x > 0 && i.y > 0 ? o.getImageData(i.x * n, i.y * n, 1, 1) : null
return r && (e = t.colorTracker.lookup(r.data)), e
}
zn(t.canvas).call(
@@ -35518,29 +49579,29 @@
t,
n,
r,
- i = li,
- o = ci,
- a = di,
- s = fi,
+ o = co,
+ i = lo,
+ a = fo,
+ s = ho,
u = {},
- l = (0, Hn.Z)('start', 'drag', 'end'),
- c = 0,
+ c = (0, Bn.Z)('start', 'drag', 'end'),
+ l = 0,
d = 0
function f(e) {
e.on('mousedown.drag', h)
.filter(s)
.on('touchstart.drag', m)
- .on('touchmove.drag', g, Bn)
+ .on('touchmove.drag', g, Hn)
.on('touchend.drag touchcancel.drag', y)
.style('touch-action', 'none')
.style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)')
}
function h(a, s) {
- if (!r && i.call(this, a, s)) {
- var u = b(this, o.call(this, a, s), a, s, 'mouse')
+ if (!r && o.call(this, a, s)) {
+ var u = b(this, i.call(this, a, s), a, s, 'mouse')
u &&
(zn(a.view).on('mousemove.drag', p, Fn).on('mouseup.drag', v, Fn),
- Gn(a.view),
+ Un(a.view),
Vn(a),
(n = !1),
(e = a.clientX),
@@ -35549,25 +49610,25 @@
}
}
function p(r) {
- if ((Un(r), !n)) {
- var i = r.clientX - e,
- o = r.clientY - t
- n = i * i + o * o > d
+ if ((Wn(r), !n)) {
+ var o = r.clientX - e,
+ i = r.clientY - t
+ n = o * o + i * i > d
}
u.mouse('drag', r)
}
function v(e) {
zn(e.view).on('mousemove.drag mouseup.drag', null),
- qn(e.view, n),
- Un(e),
+ Gn(e.view, n),
+ Wn(e),
u.mouse('end', e)
}
function m(e, t) {
- if (i.call(this, e, t)) {
+ if (o.call(this, e, t)) {
var n,
r,
a = e.changedTouches,
- s = o.call(this, e, t),
+ s = i.call(this, e, t),
u = a.length
for (n = 0; n < u; ++n)
(r = b(this, s, e, t, a[n].identifier, a[n])) && (Vn(e), r('start', e, a[n]))
@@ -35577,40 +49638,40 @@
var t,
n,
r = e.changedTouches,
- i = r.length
- for (t = 0; t < i; ++t) (n = u[r[t].identifier]) && (Un(e), n('drag', e, r[t]))
+ o = r.length
+ for (t = 0; t < o; ++t) (n = u[r[t].identifier]) && (Wn(e), n('drag', e, r[t]))
}
function y(e) {
var t,
n,
- i = e.changedTouches,
- o = i.length
+ o = e.changedTouches,
+ i = o.length
for (
r && clearTimeout(r),
r = setTimeout(function () {
r = null
}, 500),
t = 0;
- t < o;
+ t < i;
++t
)
- (n = u[i[t].identifier]) && (Vn(e), n('end', e, i[t]))
+ (n = u[o[t].identifier]) && (Vn(e), n('end', e, o[t]))
}
- function b(e, t, n, r, i, o) {
+ function b(e, t, n, r, o, i) {
var s,
d,
h,
- p = l.copy(),
- v = Zn(o || n, t)
+ p = c.copy(),
+ v = Zn(i || n, t)
if (
null !=
(h = a.call(
e,
- new ui('beforestart', {
+ new uo('beforestart', {
sourceEvent: n,
target: f,
- identifier: i,
- active: c,
+ identifier: o,
+ active: l,
x: v[0],
y: v[1],
dx: 0,
@@ -35623,26 +49684,26 @@
return (
(s = h.x - v[0] || 0),
(d = h.y - v[1] || 0),
- function n(o, a, l) {
+ function n(i, a, c) {
var m,
g = v
- switch (o) {
+ switch (i) {
case 'start':
- ;(u[i] = n), (m = c++)
+ ;(u[o] = n), (m = l++)
break
case 'end':
- delete u[i], --c
+ delete u[o], --l
case 'drag':
- ;(v = Zn(l || a, t)), (m = c)
+ ;(v = Zn(c || a, t)), (m = l)
}
p.call(
- o,
+ i,
e,
- new ui(o, {
+ new uo(i, {
sourceEvent: a,
subject: h,
target: f,
- identifier: i,
+ identifier: o,
active: m,
x: v[0] + s,
y: v[1] + d,
@@ -35657,20 +49718,20 @@
}
return (
(f.filter = function (e) {
- return arguments.length ? ((i = 'function' === typeof e ? e : si(!!e)), f) : i
+ return arguments.length ? ((o = 'function' === typeof e ? e : so(!!e)), f) : o
}),
(f.container = function (e) {
- return arguments.length ? ((o = 'function' === typeof e ? e : si(e)), f) : o
+ return arguments.length ? ((i = 'function' === typeof e ? e : so(e)), f) : i
}),
(f.subject = function (e) {
- return arguments.length ? ((a = 'function' === typeof e ? e : si(e)), f) : a
+ return arguments.length ? ((a = 'function' === typeof e ? e : so(e)), f) : a
}),
(f.touchable = function (e) {
- return arguments.length ? ((s = 'function' === typeof e ? e : si(!!e)), f) : s
+ return arguments.length ? ((s = 'function' === typeof e ? e : so(!!e)), f) : s
}),
(f.on = function () {
- var e = l.on.apply(l, arguments)
- return e === l ? f : e
+ var e = c.on.apply(c, arguments)
+ return e === c ? f : e
}),
(f.clickDistance = function (e) {
return arguments.length ? ((d = (e = +e) * e), f) : Math.sqrt(d)
@@ -35692,11 +49753,11 @@
.on('drag', function (e) {
var n = e.subject,
r = n.__initialDragPos,
- i = e,
- o = Yr(t.canvas).k,
- a = { x: r.x + (i.x - r.x) / o - n.x, y: r.y + (i.y - r.y) / o - n.y }
+ o = e,
+ i = Yr(t.canvas).k,
+ a = { x: r.x + (o.x - r.x) / i - n.x, y: r.y + (o.y - r.y) / i - n.y }
;['x', 'y'].forEach(function (e) {
- return (n['f'.concat(e)] = n[e] = r[e] + (i[e] - r[e]) / o)
+ return (n['f'.concat(e)] = n[e] = r[e] + (o[e] - r[e]) / i)
}),
t.forceGraph.d3AlphaTarget(0.3).resetCountdown(),
(t.isPointerDragging = !0),
@@ -35706,14 +49767,14 @@
.on('end', function (e) {
var n = e.subject,
r = n.__initialDragPos,
- i = { x: n.x - r.x, y: n.y - r.y }
+ o = { x: n.x - r.x, y: n.y - r.y }
void 0 === r.fx && (n.fx = void 0),
void 0 === r.fy && (n.fy = void 0),
delete n.__initialDragPos,
t.forceGraph.d3AlphaTarget(0).resetCountdown(),
t.canvas.classList.remove('grabbable'),
(t.isPointerDragging = !1),
- n.__dragged && (delete n.__dragged, t.onNodeDragEnd(n, i))
+ n.__dragged && (delete n.__dragged, t.onNodeDragEnd(n, o))
}),
),
t.zoom((t.zoom.__baseElem = zn(t.canvas))),
@@ -35729,16 +49790,16 @@
})
.on('zoom', function (e) {
var n = e.transform
- ;[r, i].forEach(function (e) {
- Co(e), e.translate(n.x, n.y), e.scale(n.k, n.k)
+ ;[r, o].forEach(function (e) {
+ Ci(e), e.translate(n.x, n.y), e.scale(n.k, n.k)
}),
- t.onZoom(ao({}, n)),
+ t.onZoom(si({}, n)),
(t.needsRedraw = !0)
})
.on('end', function (e) {
- return t.onZoomEnd(ao({}, e.transform))
+ return t.onZoomEnd(si({}, e.transform))
}),
- Oo(t),
+ Ti(t),
t.forceGraph
.onNeedsRedraw(function () {
return (t.needsRedraw = !0)
@@ -35770,16 +49831,16 @@
return Math.abs(e) > 1
})) &&
(t.isPointerDragging = !0)
- var i = (function (e) {
+ var o = (function (e) {
var t = e.getBoundingClientRect(),
n = window.pageXOffset || document.documentElement.scrollLeft,
r = window.pageYOffset || document.documentElement.scrollTop
return { top: t.top + r, left: t.left + n }
})(n)
- ;(o.x = r.pageX - i.left),
- (o.y = r.pageY - i.top),
- (s.style.top = ''.concat(o.y, 'px')),
- (s.style.left = ''.concat(o.x, 'px'))
+ ;(i.x = r.pageX - o.left),
+ (i.y = r.pageY - o.top),
+ (s.style.top = ''.concat(i.y, 'px')),
+ (s.style.left = ''.concat(i.x, 'px'))
},
{ passive: !0 },
)
@@ -35798,8 +49859,8 @@
} else t.onBackgroundClick && t.onBackgroundClick.apply(t, n)
if (2 === e.button)
if (t.hoverObj) {
- var i = t['on'.concat(t.hoverObj.type, 'RightClick')]
- i && i.apply(void 0, [t.hoverObj.d].concat(n))
+ var o = t['on'.concat(t.hoverObj.type, 'RightClick')]
+ o && o.apply(void 0, [t.hoverObj.d].concat(n))
} else t.onBackgroundRightClick && t.onBackgroundRightClick.apply(t, n)
})
}
@@ -35813,9 +49874,9 @@
)
}),
t.forceGraph(r),
- t.shadowGraph(i)
- var u = mi()(function () {
- So(i, t.width, t.height),
+ t.shadowGraph(o)
+ var u = go()(function () {
+ Mi(o, t.width, t.height),
t.shadowGraph.linkWidth(function (e) {
return (0, w.default)(t.linkWidth)(e) + t.linkHoverPrecision
})
@@ -35831,45 +49892,45 @@
return e.__photons && e.__photons.length
})
if (((t.needsRedraw = !1), t.enablePointerInteraction)) {
- var i = t.isPointerDragging ? null : a()
- if (i !== t.hoverObj) {
- var o = t.hoverObj,
- l = o ? o.type : null,
- c = i ? i.type : null
- if (l && l !== c) {
- var d = t['on'.concat(l, 'Hover')]
- d && d(null, o.d)
+ var o = t.isPointerDragging ? null : a()
+ if (o !== t.hoverObj) {
+ var i = t.hoverObj,
+ c = i ? i.type : null,
+ l = o ? o.type : null
+ if (c && c !== l) {
+ var d = t['on'.concat(c, 'Hover')]
+ d && d(null, i.d)
}
- if (c) {
- var f = t['on'.concat(c, 'Hover')]
- f && f(i.d, l === c ? o.d : null)
+ if (l) {
+ var f = t['on'.concat(l, 'Hover')]
+ f && f(o.d, c === l ? i.d : null)
}
var h =
- (i && (0, w.default)(t[''.concat(i.type.toLowerCase(), 'Label')])(i.d)) || ''
+ (o && (0, w.default)(t[''.concat(o.type.toLowerCase(), 'Label')])(o.d)) || ''
;(s.style.visibility = h ? 'visible' : 'hidden'),
(s.innerHTML = h),
t.canvas.classList[
- (i && t['on'.concat(c, 'Click')]) || (!i && t.onBackgroundClick)
+ (o && t['on'.concat(l, 'Click')]) || (!o && t.onBackgroundClick)
? 'add'
: 'remove'
]('clickable'),
- (t.hoverObj = i)
+ (t.hoverObj = o)
}
n && u()
}
if (n) {
- So(r, t.width, t.height)
+ Mi(r, t.width, t.height)
var p = Yr(t.canvas).k
t.onRenderFramePre && t.onRenderFramePre(r, p),
t.forceGraph.globalScale(p).tickFrame(),
t.onRenderFramePost && t.onRenderFramePost(r, p)
}
- We.ZP.update(), (t.animationFrameRequestId = requestAnimationFrame(e))
+ qe.ZP.update(), (t.animationFrameRequestId = requestAnimationFrame(e))
})()
},
update: function (e) {},
}),
- Po = {
+ Pi = {
width: P().number,
height: P().number,
graphData: P().shape({
@@ -35917,7 +49978,7 @@
onEngineStop: P().func,
getGraphBbox: P().func,
},
- Mo = {
+ ji = {
zoomToFit: P().func,
onNodeRightClick: P().func,
onNodeDrag: P().func,
@@ -35929,7 +49990,7 @@
enablePointerInteraction: P().bool,
enableNodeDrag: P().bool,
},
- Ro = {
+ Ii = {
showNavInfo: P().bool,
nodeOpacity: P().number,
nodeResolution: P().number,
@@ -35948,7 +50009,7 @@
ngraphPhysics: P().object,
numDimensions: P().oneOf([1, 2, 3]),
},
- jo = Object.assign({}, Po, Mo, {
+ Ai = Object.assign({}, Pi, ji, {
linkLineDash: P().oneOfType([P().arrayOf(P().number), P().string, P().func]),
nodeCanvasObjectMode: P().oneOfType([P().string, P().func]),
nodeCanvasObject: P().func,
@@ -35966,31 +50027,31 @@
onRenderFramePre: P().func,
onRenderFramePost: P().func,
}),
- Do = Object.assign({}, Po, Mo, Ro, {
+ Ri = Object.assign({}, Pi, ji, Ii, {
enableNavigationControls: P().bool,
controlType: P().oneOf(['trackball', 'orbit', 'fly']),
rendererConfig: P().object,
extraRenderers: P().arrayOf(P().shape({ render: P().func.isRequired })),
}),
- Lo = Object.assign({}, Po, Ro, {
+ Di = Object.assign({}, Pi, Ii, {
nodeDesc: P().oneOfType([P().string, P().func]),
linkDesc: P().oneOfType([P().string, P().func]),
}),
- No = Object.assign({}, Po, Ro, {
+ Li = Object.assign({}, Pi, Ii, {
markerAttrs: P().object,
yOffset: P().number,
glScale: P().number,
})
- const Io = y(S, {
+ const Ni = y(M, {
methodNames: ['getGraphBbox', 'emitParticle', 'd3Force', 'd3ReheatSimulation', 'refresh'],
})
- ;(Io.displayName = 'ForceGraphVR'), (Io.propTypes = Lo)
- const zo = y(z, {
+ ;(Ni.displayName = 'ForceGraphVR'), (Ni.propTypes = Di)
+ const zi = y(z, {
methodNames: ['getGraphBbox', 'emitParticle', 'd3Force', 'd3ReheatSimulation', 'refresh'],
initPropNames: ['markerAttrs'],
})
- ;(zo.displayName = 'ForceGraphAR'), (zo.propTypes = No)
- const Ho = y(pt, {
+ ;(zi.displayName = 'ForceGraphAR'), (zi.propTypes = Li)
+ const Bi = y(pt, {
methodNames: [
'emitParticle',
'd3Force',
@@ -36012,8 +50073,8 @@
],
initPropNames: ['controlType', 'rendererConfig', 'extraRenderers'],
})
- ;(Ho.displayName = 'ForceGraph3D'), (Ho.propTypes = Do)
- const Bo = y(Ao, {
+ ;(Bi.displayName = 'ForceGraph3D'), (Bi.propTypes = Ri)
+ const Hi = y(Si, {
methodNames: [
'emitParticle',
'd3Force',
@@ -36029,9 +50090,1101 @@
'graph2ScreenCoords',
],
})
- ;(Bo.displayName = 'ForceGraph2D'), (Bo.propTypes = jo)
+ ;(Hi.displayName = 'ForceGraph2D'), (Hi.propTypes = Ai)
+ },
+ 37763: function (e, t, n) {
+ e.exports = (function (e) {
+ var t = {}
+ function n(r) {
+ if (t[r]) return t[r].exports
+ var o = (t[r] = { exports: {}, id: r, loaded: !1 })
+ return e[r].call(o.exports, o, o.exports, n), (o.loaded = !0), o.exports
+ }
+ return (n.m = e), (n.c = t), (n.p = ''), n(0)
+ })([
+ function (e, t, n) {
+ e.exports = n(1)
+ },
+ function (e, t, n) {
+ 'use strict'
+ Object.defineProperty(t, '__esModule', { value: !0 })
+ var r,
+ o = n(2),
+ i = (r = o) && r.__esModule ? r : { default: r }
+ ;(t.default = i.default), (e.exports = t.default)
+ },
+ function (e, t, n) {
+ 'use strict'
+ Object.defineProperty(t, '__esModule', { value: !0 })
+ var r =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var n = arguments[t]
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r])
+ }
+ return e
+ }
+ function o(e) {
+ return e && e.__esModule ? e : { default: e }
+ }
+ t.default = c
+ var i = n(3),
+ a = o(n(4)),
+ s = n(14),
+ u = o(n(15))
+ function c(e) {
+ var t = e.activeClassName,
+ n = void 0 === t ? '' : t,
+ o = e.activeIndex,
+ a = void 0 === o ? -1 : o,
+ c = e.activeStyle,
+ l = e.autoEscape,
+ d = e.caseSensitive,
+ f = void 0 !== d && d,
+ h = e.className,
+ p = e.findChunks,
+ v = e.highlightClassName,
+ m = void 0 === v ? '' : v,
+ g = e.highlightStyle,
+ y = void 0 === g ? {} : g,
+ b = e.highlightTag,
+ w = void 0 === b ? 'mark' : b,
+ _ = e.sanitize,
+ x = e.searchWords,
+ k = e.textToHighlight,
+ E = e.unhighlightClassName,
+ O = void 0 === E ? '' : E,
+ T = e.unhighlightStyle,
+ C = (function (e, t) {
+ var n = {}
+ for (var r in e)
+ t.indexOf(r) >= 0 || (Object.prototype.hasOwnProperty.call(e, r) && (n[r] = e[r]))
+ return n
+ })(e, [
+ 'activeClassName',
+ 'activeIndex',
+ 'activeStyle',
+ 'autoEscape',
+ 'caseSensitive',
+ 'className',
+ 'findChunks',
+ 'highlightClassName',
+ 'highlightStyle',
+ 'highlightTag',
+ 'sanitize',
+ 'searchWords',
+ 'textToHighlight',
+ 'unhighlightClassName',
+ 'unhighlightStyle',
+ ]),
+ M = (0, i.findAll)({
+ autoEscape: l,
+ caseSensitive: f,
+ findChunks: p,
+ sanitize: _,
+ searchWords: x,
+ textToHighlight: k,
+ }),
+ S = w,
+ P = -1,
+ j = '',
+ I = void 0,
+ A = (0, u.default)(function (e) {
+ var t = {}
+ for (var n in e) t[n.toLowerCase()] = e[n]
+ return t
+ })
+ return (0, s.createElement)(
+ 'span',
+ r({ className: h }, C, {
+ children: M.map(function (e, t) {
+ var r = k.substr(e.start, e.end - e.start)
+ if (e.highlight) {
+ P++
+ var o = void 0
+ o = 'object' === typeof m ? (f ? m[r] : (m = A(m))[r.toLowerCase()]) : m
+ var i = P === +a
+ ;(j = o + ' ' + (i ? n : '')),
+ (I = !0 === i && null != c ? Object.assign({}, y, c) : y)
+ var u = { children: r, className: j, key: t, style: I }
+ return (
+ 'string' !== typeof S && (u.highlightIndex = P), (0, s.createElement)(S, u)
+ )
+ }
+ return (0,
+ s.createElement)('span', { children: r, className: O, key: t, style: T })
+ }),
+ }),
+ )
+ }
+ ;(c.propTypes = {
+ activeClassName: a.default.string,
+ activeIndex: a.default.number,
+ activeStyle: a.default.object,
+ autoEscape: a.default.bool,
+ className: a.default.string,
+ findChunks: a.default.func,
+ highlightClassName: a.default.oneOfType([a.default.object, a.default.string]),
+ highlightStyle: a.default.object,
+ highlightTag: a.default.oneOfType([a.default.node, a.default.func, a.default.string]),
+ sanitize: a.default.func,
+ searchWords: a.default.arrayOf(
+ a.default.oneOfType([a.default.string, a.default.instanceOf(RegExp)]),
+ ).isRequired,
+ textToHighlight: a.default.string.isRequired,
+ unhighlightClassName: a.default.string,
+ unhighlightStyle: a.default.object,
+ }),
+ (e.exports = t.default)
+ },
+ function (e, t) {
+ e.exports = (function (e) {
+ var t = {}
+ function n(r) {
+ if (t[r]) return t[r].exports
+ var o = (t[r] = { exports: {}, id: r, loaded: !1 })
+ return e[r].call(o.exports, o, o.exports, n), (o.loaded = !0), o.exports
+ }
+ return (n.m = e), (n.c = t), (n.p = ''), n(0)
+ })([
+ function (e, t, n) {
+ e.exports = n(1)
+ },
+ function (e, t, n) {
+ 'use strict'
+ Object.defineProperty(t, '__esModule', { value: !0 })
+ var r = n(2)
+ Object.defineProperty(t, 'combineChunks', {
+ enumerable: !0,
+ get: function () {
+ return r.combineChunks
+ },
+ }),
+ Object.defineProperty(t, 'fillInChunks', {
+ enumerable: !0,
+ get: function () {
+ return r.fillInChunks
+ },
+ }),
+ Object.defineProperty(t, 'findAll', {
+ enumerable: !0,
+ get: function () {
+ return r.findAll
+ },
+ }),
+ Object.defineProperty(t, 'findChunks', {
+ enumerable: !0,
+ get: function () {
+ return r.findChunks
+ },
+ })
+ },
+ function (e, t) {
+ 'use strict'
+ Object.defineProperty(t, '__esModule', { value: !0 })
+ t.findAll = function (e) {
+ var t = e.autoEscape,
+ i = e.caseSensitive,
+ a = void 0 !== i && i,
+ s = e.findChunks,
+ u = void 0 === s ? r : s,
+ c = e.sanitize,
+ l = e.searchWords,
+ d = e.textToHighlight
+ return o({
+ chunksToHighlight: n({
+ chunks: u({
+ autoEscape: t,
+ caseSensitive: a,
+ sanitize: c,
+ searchWords: l,
+ textToHighlight: d,
+ }),
+ }),
+ totalLength: d ? d.length : 0,
+ })
+ }
+ var n = (t.combineChunks = function (e) {
+ var t = e.chunks
+ return (t = t
+ .sort(function (e, t) {
+ return e.start - t.start
+ })
+ .reduce(function (e, t) {
+ if (0 === e.length) return [t]
+ var n = e.pop()
+ if (t.start <= n.end) {
+ var r = Math.max(n.end, t.end)
+ e.push({ start: n.start, end: r })
+ } else e.push(n, t)
+ return e
+ }, []))
+ }),
+ r = function (e) {
+ var t = e.autoEscape,
+ n = e.caseSensitive,
+ r = e.sanitize,
+ o = void 0 === r ? i : r,
+ a = e.searchWords,
+ s = e.textToHighlight
+ return (
+ (s = o(s)),
+ a
+ .filter(function (e) {
+ return e
+ })
+ .reduce(function (e, r) {
+ ;(r = o(r)),
+ t && (r = r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&'))
+ for (var i = new RegExp(r, n ? 'g' : 'gi'), a = void 0; (a = i.exec(s)); ) {
+ var u = a.index,
+ c = i.lastIndex
+ c > u && e.push({ start: u, end: c }),
+ a.index == i.lastIndex && i.lastIndex++
+ }
+ return e
+ }, [])
+ )
+ }
+ t.findChunks = r
+ var o = (t.fillInChunks = function (e) {
+ var t = e.chunksToHighlight,
+ n = e.totalLength,
+ r = [],
+ o = function (e, t, n) {
+ t - e > 0 && r.push({ start: e, end: t, highlight: n })
+ }
+ if (0 === t.length) o(0, n, !1)
+ else {
+ var i = 0
+ t.forEach(function (e) {
+ o(i, e.start, !1), o(e.start, e.end, !0), (i = e.end)
+ }),
+ o(i, n, !1)
+ }
+ return r
+ })
+ function i(e) {
+ return e
+ }
+ },
+ ])
+ },
+ function (e, t, n) {
+ ;(function (t) {
+ if ('production' !== t.env.NODE_ENV) {
+ var r =
+ ('function' === typeof Symbol && Symbol.for && Symbol.for('react.element')) || 60103
+ e.exports = n(6)(function (e) {
+ return 'object' === typeof e && null !== e && e.$$typeof === r
+ }, !0)
+ } else e.exports = n(13)()
+ }.call(t, n(5)))
+ },
+ function (e, t) {
+ var n,
+ r,
+ o = (e.exports = {})
+ function i() {
+ throw new Error('setTimeout has not been defined')
+ }
+ function a() {
+ throw new Error('clearTimeout has not been defined')
+ }
+ function s(e) {
+ if (n === setTimeout) return setTimeout(e, 0)
+ if ((n === i || !n) && setTimeout) return (n = setTimeout), setTimeout(e, 0)
+ try {
+ return n(e, 0)
+ } catch (t) {
+ try {
+ return n.call(null, e, 0)
+ } catch (t) {
+ return n.call(this, e, 0)
+ }
+ }
+ }
+ !(function () {
+ try {
+ n = 'function' === typeof setTimeout ? setTimeout : i
+ } catch (e) {
+ n = i
+ }
+ try {
+ r = 'function' === typeof clearTimeout ? clearTimeout : a
+ } catch (e) {
+ r = a
+ }
+ })()
+ var u,
+ c = [],
+ l = !1,
+ d = -1
+ function f() {
+ l && u && ((l = !1), u.length ? (c = u.concat(c)) : (d = -1), c.length && h())
+ }
+ function h() {
+ if (!l) {
+ var e = s(f)
+ l = !0
+ for (var t = c.length; t; ) {
+ for (u = c, c = []; ++d < t; ) u && u[d].run()
+ ;(d = -1), (t = c.length)
+ }
+ ;(u = null),
+ (l = !1),
+ (function (e) {
+ if (r === clearTimeout) return clearTimeout(e)
+ if ((r === a || !r) && clearTimeout) return (r = clearTimeout), clearTimeout(e)
+ try {
+ r(e)
+ } catch (t) {
+ try {
+ return r.call(null, e)
+ } catch (t) {
+ return r.call(this, e)
+ }
+ }
+ })(e)
+ }
+ }
+ function p(e, t) {
+ ;(this.fun = e), (this.array = t)
+ }
+ function v() {}
+ ;(o.nextTick = function (e) {
+ var t = new Array(arguments.length - 1)
+ if (arguments.length > 1)
+ for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]
+ c.push(new p(e, t)), 1 !== c.length || l || s(h)
+ }),
+ (p.prototype.run = function () {
+ this.fun.apply(null, this.array)
+ }),
+ (o.title = 'browser'),
+ (o.browser = !0),
+ (o.env = {}),
+ (o.argv = []),
+ (o.version = ''),
+ (o.versions = {}),
+ (o.on = v),
+ (o.addListener = v),
+ (o.once = v),
+ (o.off = v),
+ (o.removeListener = v),
+ (o.removeAllListeners = v),
+ (o.emit = v),
+ (o.prependListener = v),
+ (o.prependOnceListener = v),
+ (o.listeners = function (e) {
+ return []
+ }),
+ (o.binding = function (e) {
+ throw new Error('process.binding is not supported')
+ }),
+ (o.cwd = function () {
+ return '/'
+ }),
+ (o.chdir = function (e) {
+ throw new Error('process.chdir is not supported')
+ }),
+ (o.umask = function () {
+ return 0
+ })
+ },
+ function (e, t, n) {
+ ;(function (t) {
+ 'use strict'
+ var r = n(7),
+ o = n(8),
+ i = n(9),
+ a = n(10),
+ s = n(11),
+ u = n(12)
+ e.exports = function (e, n) {
+ var c = 'function' === typeof Symbol && Symbol.iterator
+ var l = '<<anonymous>>',
+ d = {
+ array: v('array'),
+ bool: v('boolean'),
+ func: v('function'),
+ number: v('number'),
+ object: v('object'),
+ string: v('string'),
+ symbol: v('symbol'),
+ any: p(r.thatReturnsNull),
+ arrayOf: function (e) {
+ return p(function (t, n, r, o, i) {
+ if ('function' !== typeof e)
+ return new h(
+ 'Property `' +
+ i +
+ '` of component `' +
+ r +
+ '` has invalid PropType notation inside arrayOf.',
+ )
+ var a = t[n]
+ if (!Array.isArray(a))
+ return new h(
+ 'Invalid ' +
+ o +
+ ' `' +
+ i +
+ '` of type `' +
+ g(a) +
+ '` supplied to `' +
+ r +
+ '`, expected an array.',
+ )
+ for (var u = 0; u < a.length; u++) {
+ var c = e(a, u, r, o, i + '[' + u + ']', s)
+ if (c instanceof Error) return c
+ }
+ return null
+ })
+ },
+ element: p(function (t, n, r, o, i) {
+ var a = t[n]
+ return e(a)
+ ? null
+ : new h(
+ 'Invalid ' +
+ o +
+ ' `' +
+ i +
+ '` of type `' +
+ g(a) +
+ '` supplied to `' +
+ r +
+ '`, expected a single ReactElement.',
+ )
+ }),
+ instanceOf: function (e) {
+ return p(function (t, n, r, o, i) {
+ if (!(t[n] instanceof e)) {
+ var a = e.name || l
+ return new h(
+ 'Invalid ' +
+ o +
+ ' `' +
+ i +
+ '` of type `' +
+ (((s = t[n]).constructor && s.constructor.name
+ ? s.constructor.name
+ : l) +
+ '` supplied to `') +
+ r +
+ '`, expected instance of `' +
+ a +
+ '`.',
+ )
+ }
+ var s
+ return null
+ })
+ },
+ node: p(function (e, t, n, r, o) {
+ return m(e[t])
+ ? null
+ : new h(
+ 'Invalid ' +
+ r +
+ ' `' +
+ o +
+ '` supplied to `' +
+ n +
+ '`, expected a ReactNode.',
+ )
+ }),
+ objectOf: function (e) {
+ return p(function (t, n, r, o, i) {
+ if ('function' !== typeof e)
+ return new h(
+ 'Property `' +
+ i +
+ '` of component `' +
+ r +
+ '` has invalid PropType notation inside objectOf.',
+ )
+ var a = t[n],
+ u = g(a)
+ if ('object' !== u)
+ return new h(
+ 'Invalid ' +
+ o +
+ ' `' +
+ i +
+ '` of type `' +
+ u +
+ '` supplied to `' +
+ r +
+ '`, expected an object.',
+ )
+ for (var c in a)
+ if (a.hasOwnProperty(c)) {
+ var l = e(a, c, r, o, i + '.' + c, s)
+ if (l instanceof Error) return l
+ }
+ return null
+ })
+ },
+ oneOf: function (e) {
+ if (!Array.isArray(e))
+ return (
+ 'production' !== t.env.NODE_ENV &&
+ i(
+ !1,
+ 'Invalid argument supplied to oneOf, expected an instance of array.',
+ ),
+ r.thatReturnsNull
+ )
+ return p(function (t, n, r, o, i) {
+ for (var a = t[n], s = 0; s < e.length; s++) if (f(a, e[s])) return null
+ return new h(
+ 'Invalid ' +
+ o +
+ ' `' +
+ i +
+ '` of value `' +
+ a +
+ '` supplied to `' +
+ r +
+ '`, expected one of ' +
+ JSON.stringify(e) +
+ '.',
+ )
+ })
+ },
+ oneOfType: function (e) {
+ if (!Array.isArray(e))
+ return (
+ 'production' !== t.env.NODE_ENV &&
+ i(
+ !1,
+ 'Invalid argument supplied to oneOfType, expected an instance of array.',
+ ),
+ r.thatReturnsNull
+ )
+ for (var n = 0; n < e.length; n++) {
+ var o = e[n]
+ if ('function' !== typeof o)
+ return (
+ i(
+ !1,
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.',
+ b(o),
+ n,
+ ),
+ r.thatReturnsNull
+ )
+ }
+ return p(function (t, n, r, o, i) {
+ for (var a = 0; a < e.length; a++)
+ if (null == (0, e[a])(t, n, r, o, i, s)) return null
+ return new h('Invalid ' + o + ' `' + i + '` supplied to `' + r + '`.')
+ })
+ },
+ shape: function (e) {
+ return p(function (t, n, r, o, i) {
+ var a = t[n],
+ u = g(a)
+ if ('object' !== u)
+ return new h(
+ 'Invalid ' +
+ o +
+ ' `' +
+ i +
+ '` of type `' +
+ u +
+ '` supplied to `' +
+ r +
+ '`, expected `object`.',
+ )
+ for (var c in e) {
+ var l = e[c]
+ if (l) {
+ var d = l(a, c, r, o, i + '.' + c, s)
+ if (d) return d
+ }
+ }
+ return null
+ })
+ },
+ exact: function (e) {
+ return p(function (t, n, r, o, i) {
+ var u = t[n],
+ c = g(u)
+ if ('object' !== c)
+ return new h(
+ 'Invalid ' +
+ o +
+ ' `' +
+ i +
+ '` of type `' +
+ c +
+ '` supplied to `' +
+ r +
+ '`, expected `object`.',
+ )
+ var l = a({}, t[n], e)
+ for (var d in l) {
+ var f = e[d]
+ if (!f)
+ return new h(
+ 'Invalid ' +
+ o +
+ ' `' +
+ i +
+ '` key `' +
+ d +
+ '` supplied to `' +
+ r +
+ '`.\nBad object: ' +
+ JSON.stringify(t[n], null, ' ') +
+ '\nValid keys: ' +
+ JSON.stringify(Object.keys(e), null, ' '),
+ )
+ var p = f(u, d, r, o, i + '.' + d, s)
+ if (p) return p
+ }
+ return null
+ })
+ },
+ }
+ function f(e, t) {
+ return e === t ? 0 !== e || 1 / e === 1 / t : e !== e && t !== t
+ }
+ function h(e) {
+ ;(this.message = e), (this.stack = '')
+ }
+ function p(e) {
+ if ('production' !== t.env.NODE_ENV)
+ var r = {},
+ a = 0
+ function u(u, c, d, f, p, v, m) {
+ if (((f = f || l), (v = v || d), m !== s))
+ if (n)
+ o(
+ !1,
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types',
+ )
+ else if ('production' !== t.env.NODE_ENV && 'undefined' !== typeof console) {
+ var g = f + ':' + d
+ !r[g] &&
+ a < 3 &&
+ (i(
+ !1,
+ 'You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.',
+ v,
+ f,
+ ),
+ (r[g] = !0),
+ a++)
+ }
+ return null == c[d]
+ ? u
+ ? null === c[d]
+ ? new h(
+ 'The ' +
+ p +
+ ' `' +
+ v +
+ '` is marked as required in `' +
+ f +
+ '`, but its value is `null`.',
+ )
+ : new h(
+ 'The ' +
+ p +
+ ' `' +
+ v +
+ '` is marked as required in `' +
+ f +
+ '`, but its value is `undefined`.',
+ )
+ : null
+ : e(c, d, f, p, v)
+ }
+ var c = u.bind(null, !1)
+ return (c.isRequired = u.bind(null, !0)), c
+ }
+ function v(e) {
+ return p(function (t, n, r, o, i, a) {
+ var s = t[n]
+ return g(s) !== e
+ ? new h(
+ 'Invalid ' +
+ o +
+ ' `' +
+ i +
+ '` of type `' +
+ y(s) +
+ '` supplied to `' +
+ r +
+ '`, expected `' +
+ e +
+ '`.',
+ )
+ : null
+ })
+ }
+ function m(t) {
+ switch (typeof t) {
+ case 'number':
+ case 'string':
+ case 'undefined':
+ return !0
+ case 'boolean':
+ return !t
+ case 'object':
+ if (Array.isArray(t)) return t.every(m)
+ if (null === t || e(t)) return !0
+ var n = (function (e) {
+ var t = e && ((c && e[c]) || e['@@iterator'])
+ if ('function' === typeof t) return t
+ })(t)
+ if (!n) return !1
+ var r,
+ o = n.call(t)
+ if (n !== t.entries) {
+ for (; !(r = o.next()).done; ) if (!m(r.value)) return !1
+ } else
+ for (; !(r = o.next()).done; ) {
+ var i = r.value
+ if (i && !m(i[1])) return !1
+ }
+ return !0
+ default:
+ return !1
+ }
+ }
+ function g(e) {
+ var t = typeof e
+ return Array.isArray(e)
+ ? 'array'
+ : e instanceof RegExp
+ ? 'object'
+ : (function (e, t) {
+ return (
+ 'symbol' === e ||
+ 'Symbol' === t['@@toStringTag'] ||
+ ('function' === typeof Symbol && t instanceof Symbol)
+ )
+ })(t, e)
+ ? 'symbol'
+ : t
+ }
+ function y(e) {
+ if ('undefined' === typeof e || null === e) return '' + e
+ var t = g(e)
+ if ('object' === t) {
+ if (e instanceof Date) return 'date'
+ if (e instanceof RegExp) return 'regexp'
+ }
+ return t
+ }
+ function b(e) {
+ var t = y(e)
+ switch (t) {
+ case 'array':
+ case 'object':
+ return 'an ' + t
+ case 'boolean':
+ case 'date':
+ case 'regexp':
+ return 'a ' + t
+ default:
+ return t
+ }
+ }
+ return (h.prototype = Error.prototype), (d.checkPropTypes = u), (d.PropTypes = d), d
+ }
+ }.call(t, n(5)))
+ },
+ function (e, t) {
+ 'use strict'
+ function n(e) {
+ return function () {
+ return e
+ }
+ }
+ var r = function () {}
+ ;(r.thatReturns = n),
+ (r.thatReturnsFalse = n(!1)),
+ (r.thatReturnsTrue = n(!0)),
+ (r.thatReturnsNull = n(null)),
+ (r.thatReturnsThis = function () {
+ return this
+ }),
+ (r.thatReturnsArgument = function (e) {
+ return e
+ }),
+ (e.exports = r)
+ },
+ function (e, t, n) {
+ ;(function (t) {
+ 'use strict'
+ var n = function (e) {}
+ 'production' !== t.env.NODE_ENV &&
+ (n = function (e) {
+ if (void 0 === e) throw new Error('invariant requires an error message argument')
+ }),
+ (e.exports = function (e, t, r, o, i, a, s, u) {
+ if ((n(t), !e)) {
+ var c
+ if (void 0 === t)
+ c = new Error(
+ 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.',
+ )
+ else {
+ var l = [r, o, i, a, s, u],
+ d = 0
+ ;(c = new Error(
+ t.replace(/%s/g, function () {
+ return l[d++]
+ }),
+ )).name = 'Invariant Violation'
+ }
+ throw ((c.framesToPop = 1), c)
+ }
+ })
+ }.call(t, n(5)))
+ },
+ function (e, t, n) {
+ ;(function (t) {
+ 'use strict'
+ var r = n(7)
+ if ('production' !== t.env.NODE_ENV) {
+ var o = function (e) {
+ for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
+ n[r - 1] = arguments[r]
+ var o = 0,
+ i =
+ 'Warning: ' +
+ e.replace(/%s/g, function () {
+ return n[o++]
+ })
+ 'undefined' !== typeof console && console.error(i)
+ try {
+ throw new Error(i)
+ } catch (a) {}
+ }
+ r = function (e, t) {
+ if (void 0 === t)
+ throw new Error(
+ '`warning(condition, format, ...args)` requires a warning message argument',
+ )
+ if (0 !== t.indexOf('Failed Composite propType: ') && !e) {
+ for (var n = arguments.length, r = Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
+ r[i - 2] = arguments[i]
+ o.apply(void 0, [t].concat(r))
+ }
+ }
+ }
+ e.exports = r
+ }.call(t, n(5)))
+ },
+ function (e, t) {
+ 'use strict'
+ var n = Object.getOwnPropertySymbols,
+ r = Object.prototype.hasOwnProperty,
+ o = Object.prototype.propertyIsEnumerable
+ function i(e) {
+ if (null === e || void 0 === e)
+ throw new TypeError('Object.assign cannot be called with null or undefined')
+ return Object(e)
+ }
+ e.exports = (function () {
+ try {
+ if (!Object.assign) return !1
+ var e = new String('abc')
+ if (((e[5] = 'de'), '5' === Object.getOwnPropertyNames(e)[0])) return !1
+ for (var t = {}, n = 0; n < 10; n++) t['_' + String.fromCharCode(n)] = n
+ if (
+ '0123456789' !==
+ Object.getOwnPropertyNames(t)
+ .map(function (e) {
+ return t[e]
+ })
+ .join('')
+ )
+ return !1
+ var r = {}
+ return (
+ 'abcdefghijklmnopqrst'.split('').forEach(function (e) {
+ r[e] = e
+ }),
+ 'abcdefghijklmnopqrst' === Object.keys(Object.assign({}, r)).join('')
+ )
+ } catch (o) {
+ return !1
+ }
+ })()
+ ? Object.assign
+ : function (e, t) {
+ for (var a, s, u = i(e), c = 1; c < arguments.length; c++) {
+ for (var l in (a = Object(arguments[c]))) r.call(a, l) && (u[l] = a[l])
+ if (n) {
+ s = n(a)
+ for (var d = 0; d < s.length; d++) o.call(a, s[d]) && (u[s[d]] = a[s[d]])
+ }
+ }
+ return u
+ }
+ },
+ function (e, t) {
+ 'use strict'
+ e.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'
+ },
+ function (e, t, n) {
+ ;(function (t) {
+ 'use strict'
+ if ('production' !== t.env.NODE_ENV)
+ var r = n(8),
+ o = n(9),
+ i = n(11),
+ a = {}
+ e.exports = function (e, n, s, u, c) {
+ if ('production' !== t.env.NODE_ENV)
+ for (var l in e)
+ if (e.hasOwnProperty(l)) {
+ var d
+ try {
+ r(
+ 'function' === typeof e[l],
+ '%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.',
+ u || 'React class',
+ s,
+ l,
+ typeof e[l],
+ ),
+ (d = e[l](n, l, u, s, null, i))
+ } catch (h) {
+ d = h
+ }
+ if (
+ (o(
+ !d || d instanceof Error,
+ '%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).',
+ u || 'React class',
+ s,
+ l,
+ typeof d,
+ ),
+ d instanceof Error && !(d.message in a))
+ ) {
+ a[d.message] = !0
+ var f = c ? c() : ''
+ o(!1, 'Failed %s type: %s%s', s, d.message, null != f ? f : '')
+ }
+ }
+ }
+ }.call(t, n(5)))
+ },
+ function (e, t, n) {
+ 'use strict'
+ var r = n(7),
+ o = n(8),
+ i = n(11)
+ e.exports = function () {
+ function e(e, t, n, r, a, s) {
+ s !== i &&
+ o(
+ !1,
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types',
+ )
+ }
+ function t() {
+ return e
+ }
+ e.isRequired = e
+ var n = {
+ array: e,
+ bool: e,
+ func: e,
+ number: e,
+ object: e,
+ string: e,
+ symbol: e,
+ any: e,
+ arrayOf: t,
+ element: e,
+ instanceOf: t,
+ node: e,
+ objectOf: t,
+ oneOf: t,
+ oneOfType: t,
+ shape: t,
+ exact: t,
+ }
+ return (n.checkPropTypes = r), (n.PropTypes = n), n
+ }
+ },
+ function (e, t) {
+ e.exports = n(67294)
+ },
+ function (e, t) {
+ 'use strict'
+ var n = function (e, t) {
+ return e === t
+ }
+ e.exports = function (e) {
+ var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : n,
+ r = void 0,
+ o = [],
+ i = void 0,
+ a = !1,
+ s = function (e, n) {
+ return t(e, o[n])
+ },
+ u = function () {
+ for (var t = arguments.length, n = Array(t), u = 0; u < t; u++) n[u] = arguments[u]
+ return a && r === this && n.length === o.length && n.every(s)
+ ? i
+ : ((a = !0), (r = this), (o = n), (i = e.apply(this, n)))
+ }
+ return u
+ }
+ },
+ ])
+ },
+ 49909: function (e, t, n) {
+ 'use strict'
+ Object.defineProperty(t, '__esModule', { value: !0 })
+ var r = n(67294)
+ t.default = function (e, t, n) {
+ var o = r.useRef(void 0)
+ ;(o.current && n(t, o.current)) || (o.current = t), r.useEffect(e, o.current)
+ }
+ },
+ 96705: function (e, t, n) {
+ 'use strict'
+ Object.defineProperty(t, '__esModule', { value: !0 })
+ var r = n(70655),
+ o = n(85987),
+ i = r.__importDefault(n(49909))
+ t.default = function (e, t) {
+ i.default(e, t, o.isDeepEqual)
+ }
},
- 2003: function (e, t) {
+ 85987: function (e, t, n) {
+ 'use strict'
+ Object.defineProperty(t, '__esModule', { value: !0 }),
+ (t.isDeepEqual = t.off = t.on = t.isClient = void 0)
+ var r = n(70655).__importDefault(n(38252))
+ ;(t.isClient = 'object' === typeof window),
+ (t.on = function (e) {
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]
+ return e.addEventListener.apply(e, t)
+ }),
+ (t.off = function (e) {
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]
+ return e.removeEventListener.apply(e, t)
+ }),
+ (t.isDeepEqual = r.default)
+ },
+ 22003: function (e, t) {
'use strict'
var n = function (e, t) {
return (n =
@@ -36051,28 +51204,28 @@
n(e, t),
(e.prototype = null === t ? Object.create(t) : ((r.prototype = t.prototype), new r()))
}
- function i(e, t) {
+ function o(e, t) {
var n = 'function' === typeof Symbol && e[Symbol.iterator]
if (!n) return e
var r,
- i,
- o = n.call(e),
+ o,
+ i = n.call(e),
a = []
try {
- for (; (void 0 === t || t-- > 0) && !(r = o.next()).done; ) a.push(r.value)
+ for (; (void 0 === t || t-- > 0) && !(r = i.next()).done; ) a.push(r.value)
} catch (s) {
- i = { error: s }
+ o = { error: s }
} finally {
try {
- r && !r.done && (n = o.return) && n.call(o)
+ r && !r.done && (n = i.return) && n.call(i)
} finally {
- if (i) throw i.error
+ if (o) throw o.error
}
}
return a
}
- function o() {
- for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(i(arguments[t]))
+ function i() {
+ for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(o(arguments[t]))
return e
}
var a = function (e, t) {
@@ -36088,15 +51241,15 @@
u = (function (e) {
function t(t, n, r) {
void 0 === t && (t = 1e3), void 0 === n && (n = '')
- var i = e.call(this, 'close', r) || this
- return (i.wasClean = !0), (i.code = t), (i.reason = n), i
+ var o = e.call(this, 'close', r) || this
+ return (o.wasClean = !0), (o.code = t), (o.reason = n), o
}
return r(t, e), t
})(a),
- l = function () {
+ c = function () {
if ('undefined' !== typeof WebSocket) return WebSocket
},
- c = {
+ l = {
maxReconnectionDelay: 1e4,
minReconnectionDelay: 1e3 + 4e3 * Math.random(),
minUptime: 5e3,
@@ -36125,7 +51278,7 @@
(this._handleOpen = function (e) {
r._debug('open event')
var t = r._options.minUptime,
- n = void 0 === t ? c.minUptime : t
+ n = void 0 === t ? l.minUptime : t
clearTimeout(r._connectTimeout),
(r._uptimeTimeout = setTimeout(function () {
return r._acceptOpen()
@@ -36320,7 +51473,7 @@
this._debug('send', e), this._ws.send(e)
else {
var t = this._options.maxEnqueuedMessages,
- n = void 0 === t ? c.maxEnqueuedMessages : t
+ n = void 0 === t ? l.maxEnqueuedMessages : t
this._messageQueue.length < n &&
(this._debug('enqueue', e), this._messageQueue.push(e))
}
@@ -36335,7 +51488,7 @@
if (r)
try {
for (
- var i = (function (e) {
+ var o = (function (e) {
var t = 'function' === typeof Symbol && e[Symbol.iterator],
n = 0
return t
@@ -36349,18 +51502,18 @@
},
}
})(r),
- o = i.next();
- !o.done;
- o = i.next()
+ i = o.next();
+ !i.done;
+ i = o.next()
) {
- var a = o.value
+ var a = i.value
this._callEventListener(e, a)
}
} catch (s) {
t = { error: s }
} finally {
try {
- o && !o.done && (n = i.return) && n.call(i)
+ i && !i.done && (n = o.return) && n.call(o)
} finally {
if (t) throw t.error
}
@@ -36375,19 +51528,19 @@
}),
(e.prototype._debug = function () {
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]
- this._options.debug && console.log.apply(console, o(['RWS>'], e))
+ this._options.debug && console.log.apply(console, i(['RWS>'], e))
}),
(e.prototype._getNextDelay = function () {
var e = this._options,
t = e.reconnectionDelayGrowFactor,
- n = void 0 === t ? c.reconnectionDelayGrowFactor : t,
+ n = void 0 === t ? l.reconnectionDelayGrowFactor : t,
r = e.minReconnectionDelay,
- i = void 0 === r ? c.minReconnectionDelay : r,
- o = e.maxReconnectionDelay,
- a = void 0 === o ? c.maxReconnectionDelay : o,
+ o = void 0 === r ? l.minReconnectionDelay : r,
+ i = e.maxReconnectionDelay,
+ a = void 0 === i ? l.maxReconnectionDelay : i,
s = 0
return (
- this._retryCount > 0 && (s = i * Math.pow(n, this._retryCount - 1)) > a && (s = a),
+ this._retryCount > 0 && (s = o * Math.pow(n, this._retryCount - 1)) > a && (s = a),
this._debug('next delay', s),
s
)
@@ -36413,11 +51566,11 @@
this._connectLock = !0
var t = this._options,
n = t.maxRetries,
- r = void 0 === n ? c.maxRetries : n,
- i = t.connectionTimeout,
- o = void 0 === i ? c.connectionTimeout : i,
+ r = void 0 === n ? l.maxRetries : n,
+ o = t.connectionTimeout,
+ i = void 0 === o ? l.connectionTimeout : o,
a = t.WebSocket,
- s = void 0 === a ? l() : a
+ s = void 0 === a ? c() : a
if (this._retryCount >= r)
this._debug('max retries reached', this._retryCount, '>=', r)
else {
@@ -36442,7 +51595,7 @@
e._addListeners(),
(e._connectTimeout = setTimeout(function () {
return e._handleTimeout()
- }, o)))
+ }, i)))
})
}
}
@@ -36488,7 +51641,423 @@
})()
t.Z = d
},
- 1398: function (e, t, n) {
+ 76826: function (e) {
+ var t = {
+ '\xc0': 'A',
+ '\xc1': 'A',
+ '\xc2': 'A',
+ '\xc3': 'A',
+ '\xc4': 'A',
+ '\xc5': 'A',
+ '\u1ea4': 'A',
+ '\u1eae': 'A',
+ '\u1eb2': 'A',
+ '\u1eb4': 'A',
+ '\u1eb6': 'A',
+ '\xc6': 'AE',
+ '\u1ea6': 'A',
+ '\u1eb0': 'A',
+ '\u0202': 'A',
+ '\xc7': 'C',
+ '\u1e08': 'C',
+ '\xc8': 'E',
+ '\xc9': 'E',
+ '\xca': 'E',
+ '\xcb': 'E',
+ '\u1ebe': 'E',
+ '\u1e16': 'E',
+ '\u1ec0': 'E',
+ '\u1e14': 'E',
+ '\u1e1c': 'E',
+ '\u0206': 'E',
+ '\xcc': 'I',
+ '\xcd': 'I',
+ '\xce': 'I',
+ '\xcf': 'I',
+ '\u1e2e': 'I',
+ '\u020a': 'I',
+ '\xd0': 'D',
+ '\xd1': 'N',
+ '\xd2': 'O',
+ '\xd3': 'O',
+ '\xd4': 'O',
+ '\xd5': 'O',
+ '\xd6': 'O',
+ '\xd8': 'O',
+ '\u1ed0': 'O',
+ '\u1e4c': 'O',
+ '\u1e52': 'O',
+ '\u020e': 'O',
+ '\xd9': 'U',
+ '\xda': 'U',
+ '\xdb': 'U',
+ '\xdc': 'U',
+ '\xdd': 'Y',
+ '\xe0': 'a',
+ '\xe1': 'a',
+ '\xe2': 'a',
+ '\xe3': 'a',
+ '\xe4': 'a',
+ '\xe5': 'a',
+ '\u1ea5': 'a',
+ '\u1eaf': 'a',
+ '\u1eb3': 'a',
+ '\u1eb5': 'a',
+ '\u1eb7': 'a',
+ '\xe6': 'ae',
+ '\u1ea7': 'a',
+ '\u1eb1': 'a',
+ '\u0203': 'a',
+ '\xe7': 'c',
+ '\u1e09': 'c',
+ '\xe8': 'e',
+ '\xe9': 'e',
+ '\xea': 'e',
+ '\xeb': 'e',
+ '\u1ebf': 'e',
+ '\u1e17': 'e',
+ '\u1ec1': 'e',
+ '\u1e15': 'e',
+ '\u1e1d': 'e',
+ '\u0207': 'e',
+ '\xec': 'i',
+ '\xed': 'i',
+ '\xee': 'i',
+ '\xef': 'i',
+ '\u1e2f': 'i',
+ '\u020b': 'i',
+ '\xf0': 'd',
+ '\xf1': 'n',
+ '\xf2': 'o',
+ '\xf3': 'o',
+ '\xf4': 'o',
+ '\xf5': 'o',
+ '\xf6': 'o',
+ '\xf8': 'o',
+ '\u1ed1': 'o',
+ '\u1e4d': 'o',
+ '\u1e53': 'o',
+ '\u020f': 'o',
+ '\xf9': 'u',
+ '\xfa': 'u',
+ '\xfb': 'u',
+ '\xfc': 'u',
+ '\xfd': 'y',
+ '\xff': 'y',
+ '\u0100': 'A',
+ '\u0101': 'a',
+ '\u0102': 'A',
+ '\u0103': 'a',
+ '\u0104': 'A',
+ '\u0105': 'a',
+ '\u0106': 'C',
+ '\u0107': 'c',
+ '\u0108': 'C',
+ '\u0109': 'c',
+ '\u010a': 'C',
+ '\u010b': 'c',
+ '\u010c': 'C',
+ '\u010d': 'c',
+ 'C\u0306': 'C',
+ 'c\u0306': 'c',
+ '\u010e': 'D',
+ '\u010f': 'd',
+ '\u0110': 'D',
+ '\u0111': 'd',
+ '\u0112': 'E',
+ '\u0113': 'e',
+ '\u0114': 'E',
+ '\u0115': 'e',
+ '\u0116': 'E',
+ '\u0117': 'e',
+ '\u0118': 'E',
+ '\u0119': 'e',
+ '\u011a': 'E',
+ '\u011b': 'e',
+ '\u011c': 'G',
+ '\u01f4': 'G',
+ '\u011d': 'g',
+ '\u01f5': 'g',
+ '\u011e': 'G',
+ '\u011f': 'g',
+ '\u0120': 'G',
+ '\u0121': 'g',
+ '\u0122': 'G',
+ '\u0123': 'g',
+ '\u0124': 'H',
+ '\u0125': 'h',
+ '\u0126': 'H',
+ '\u0127': 'h',
+ '\u1e2a': 'H',
+ '\u1e2b': 'h',
+ '\u0128': 'I',
+ '\u0129': 'i',
+ '\u012a': 'I',
+ '\u012b': 'i',
+ '\u012c': 'I',
+ '\u012d': 'i',
+ '\u012e': 'I',
+ '\u012f': 'i',
+ '\u0130': 'I',
+ '\u0131': 'i',
+ '\u0132': 'IJ',
+ '\u0133': 'ij',
+ '\u0134': 'J',
+ '\u0135': 'j',
+ '\u0136': 'K',
+ '\u0137': 'k',
+ '\u1e30': 'K',
+ '\u1e31': 'k',
+ 'K\u0306': 'K',
+ 'k\u0306': 'k',
+ '\u0139': 'L',
+ '\u013a': 'l',
+ '\u013b': 'L',
+ '\u013c': 'l',
+ '\u013d': 'L',
+ '\u013e': 'l',
+ '\u013f': 'L',
+ '\u0140': 'l',
+ '\u0141': 'l',
+ '\u0142': 'l',
+ '\u1e3e': 'M',
+ '\u1e3f': 'm',
+ 'M\u0306': 'M',
+ 'm\u0306': 'm',
+ '\u0143': 'N',
+ '\u0144': 'n',
+ '\u0145': 'N',
+ '\u0146': 'n',
+ '\u0147': 'N',
+ '\u0148': 'n',
+ '\u0149': 'n',
+ 'N\u0306': 'N',
+ 'n\u0306': 'n',
+ '\u014c': 'O',
+ '\u014d': 'o',
+ '\u014e': 'O',
+ '\u014f': 'o',
+ '\u0150': 'O',
+ '\u0151': 'o',
+ '\u0152': 'OE',
+ '\u0153': 'oe',
+ 'P\u0306': 'P',
+ 'p\u0306': 'p',
+ '\u0154': 'R',
+ '\u0155': 'r',
+ '\u0156': 'R',
+ '\u0157': 'r',
+ '\u0158': 'R',
+ '\u0159': 'r',
+ 'R\u0306': 'R',
+ 'r\u0306': 'r',
+ '\u0212': 'R',
+ '\u0213': 'r',
+ '\u015a': 'S',
+ '\u015b': 's',
+ '\u015c': 'S',
+ '\u015d': 's',
+ '\u015e': 'S',
+ '\u0218': 'S',
+ '\u0219': 's',
+ '\u015f': 's',
+ '\u0160': 'S',
+ '\u0161': 's',
+ '\u0162': 'T',
+ '\u0163': 't',
+ '\u021b': 't',
+ '\u021a': 'T',
+ '\u0164': 'T',
+ '\u0165': 't',
+ '\u0166': 'T',
+ '\u0167': 't',
+ 'T\u0306': 'T',
+ 't\u0306': 't',
+ '\u0168': 'U',
+ '\u0169': 'u',
+ '\u016a': 'U',
+ '\u016b': 'u',
+ '\u016c': 'U',
+ '\u016d': 'u',
+ '\u016e': 'U',
+ '\u016f': 'u',
+ '\u0170': 'U',
+ '\u0171': 'u',
+ '\u0172': 'U',
+ '\u0173': 'u',
+ '\u0216': 'U',
+ '\u0217': 'u',
+ 'V\u0306': 'V',
+ 'v\u0306': 'v',
+ '\u0174': 'W',
+ '\u0175': 'w',
+ '\u1e82': 'W',
+ '\u1e83': 'w',
+ 'X\u0306': 'X',
+ 'x\u0306': 'x',
+ '\u0176': 'Y',
+ '\u0177': 'y',
+ '\u0178': 'Y',
+ 'Y\u0306': 'Y',
+ 'y\u0306': 'y',
+ '\u0179': 'Z',
+ '\u017a': 'z',
+ '\u017b': 'Z',
+ '\u017c': 'z',
+ '\u017d': 'Z',
+ '\u017e': 'z',
+ '\u017f': 's',
+ '\u0192': 'f',
+ '\u01a0': 'O',
+ '\u01a1': 'o',
+ '\u01af': 'U',
+ '\u01b0': 'u',
+ '\u01cd': 'A',
+ '\u01ce': 'a',
+ '\u01cf': 'I',
+ '\u01d0': 'i',
+ '\u01d1': 'O',
+ '\u01d2': 'o',
+ '\u01d3': 'U',
+ '\u01d4': 'u',
+ '\u01d5': 'U',
+ '\u01d6': 'u',
+ '\u01d7': 'U',
+ '\u01d8': 'u',
+ '\u01d9': 'U',
+ '\u01da': 'u',
+ '\u01db': 'U',
+ '\u01dc': 'u',
+ '\u1ee8': 'U',
+ '\u1ee9': 'u',
+ '\u1e78': 'U',
+ '\u1e79': 'u',
+ '\u01fa': 'A',
+ '\u01fb': 'a',
+ '\u01fc': 'AE',
+ '\u01fd': 'ae',
+ '\u01fe': 'O',
+ '\u01ff': 'o',
+ '\xde': 'TH',
+ '\xfe': 'th',
+ '\u1e54': 'P',
+ '\u1e55': 'p',
+ '\u1e64': 'S',
+ '\u1e65': 's',
+ 'X\u0301': 'X',
+ 'x\u0301': 'x',
+ '\u0403': '\u0413',
+ '\u0453': '\u0433',
+ '\u040c': '\u041a',
+ '\u045c': '\u043a',
+ 'A\u030b': 'A',
+ 'a\u030b': 'a',
+ 'E\u030b': 'E',
+ 'e\u030b': 'e',
+ 'I\u030b': 'I',
+ 'i\u030b': 'i',
+ '\u01f8': 'N',
+ '\u01f9': 'n',
+ '\u1ed2': 'O',
+ '\u1ed3': 'o',
+ '\u1e50': 'O',
+ '\u1e51': 'o',
+ '\u1eea': 'U',
+ '\u1eeb': 'u',
+ '\u1e80': 'W',
+ '\u1e81': 'w',
+ '\u1ef2': 'Y',
+ '\u1ef3': 'y',
+ '\u0200': 'A',
+ '\u0201': 'a',
+ '\u0204': 'E',
+ '\u0205': 'e',
+ '\u0208': 'I',
+ '\u0209': 'i',
+ '\u020c': 'O',
+ '\u020d': 'o',
+ '\u0210': 'R',
+ '\u0211': 'r',
+ '\u0214': 'U',
+ '\u0215': 'u',
+ 'B\u030c': 'B',
+ 'b\u030c': 'b',
+ '\u010c\u0323': 'C',
+ '\u010d\u0323': 'c',
+ '\xca\u030c': 'E',
+ '\xea\u030c': 'e',
+ 'F\u030c': 'F',
+ 'f\u030c': 'f',
+ '\u01e6': 'G',
+ '\u01e7': 'g',
+ '\u021e': 'H',
+ '\u021f': 'h',
+ 'J\u030c': 'J',
+ '\u01f0': 'j',
+ '\u01e8': 'K',
+ '\u01e9': 'k',
+ 'M\u030c': 'M',
+ 'm\u030c': 'm',
+ 'P\u030c': 'P',
+ 'p\u030c': 'p',
+ 'Q\u030c': 'Q',
+ 'q\u030c': 'q',
+ '\u0158\u0329': 'R',
+ '\u0159\u0329': 'r',
+ '\u1e66': 'S',
+ '\u1e67': 's',
+ 'V\u030c': 'V',
+ 'v\u030c': 'v',
+ 'W\u030c': 'W',
+ 'w\u030c': 'w',
+ 'X\u030c': 'X',
+ 'x\u030c': 'x',
+ 'Y\u030c': 'Y',
+ 'y\u030c': 'y',
+ 'A\u0327': 'A',
+ 'a\u0327': 'a',
+ 'B\u0327': 'B',
+ 'b\u0327': 'b',
+ '\u1e10': 'D',
+ '\u1e11': 'd',
+ '\u0228': 'E',
+ '\u0229': 'e',
+ '\u0190\u0327': 'E',
+ '\u025b\u0327': 'e',
+ '\u1e28': 'H',
+ '\u1e29': 'h',
+ 'I\u0327': 'I',
+ 'i\u0327': 'i',
+ '\u0197\u0327': 'I',
+ '\u0268\u0327': 'i',
+ 'M\u0327': 'M',
+ 'm\u0327': 'm',
+ 'O\u0327': 'O',
+ 'o\u0327': 'o',
+ 'Q\u0327': 'Q',
+ 'q\u0327': 'q',
+ 'U\u0327': 'U',
+ 'u\u0327': 'u',
+ 'X\u0327': 'X',
+ 'x\u0327': 'x',
+ 'Z\u0327': 'Z',
+ 'z\u0327': 'z',
+ },
+ n = Object.keys(t).join('|'),
+ r = new RegExp(n, 'g'),
+ o = new RegExp(n, ''),
+ i = function (e) {
+ return e.replace(r, function (e) {
+ return t[e]
+ })
+ }
+ ;(e.exports = i),
+ (e.exports.has = function (e) {
+ return !!e.match(o)
+ }),
+ (e.exports.remove = i)
+ },
+ 81398: function (e, t, n) {
'use strict'
n.r(t),
n.d(t, {
@@ -36497,18 +52066,18 @@
},
})
var r = n(2212),
- i = n(4505),
- o = n(5560),
- a = n(2405),
- s = n(216),
- u = n(6917),
- l = n(4736),
- c = n.n(l),
- d = n(6505),
+ o = n(54505),
+ i = n(15560),
+ a = n(92405),
+ s = n(20216),
+ u = n(16917),
+ c = n(54736),
+ l = n.n(c),
+ d = n(16505),
f = n.n(d),
- h = n(4858),
- p = n(2539),
- v = n(6701),
+ h = n(44858),
+ p = n(92539),
+ v = n(86701),
m = n(3752),
g = n(1527)
function y(e, t) {
@@ -36540,25 +52109,25 @@
if (null == e) return {}
var n,
r,
- i = (function (e, t) {
+ o = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, t)
if (Object.getOwnPropertySymbols) {
- var o = Object.getOwnPropertySymbols(e)
- for (r = 0; r < o.length; r++)
- (n = o[r]),
+ var i = Object.getOwnPropertySymbols(e)
+ for (r = 0; r < i.length; r++)
+ (n = i[r]),
t.indexOf(n) >= 0 ||
- (Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]))
+ (Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]))
}
- return i
+ return o
}
- function x(e, t) {
+ function _(e, t) {
return (
(function (e) {
if (Array.isArray(e)) return e
@@ -36567,26 +52136,26 @@
var n = e && (('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator'])
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
k(e, t) ||
(function () {
@@ -36596,10 +52165,10 @@
})()
)
}
- function E(e) {
+ function x(e) {
return (
(function (e) {
- if (Array.isArray(e)) return _(e)
+ if (Array.isArray(e)) return E(e)
})(e) ||
(function (e) {
if (
@@ -36618,59 +52187,59 @@
}
function k(e, t) {
if (e) {
- if ('string' === typeof e) return _(e, t)
+ if ('string' === typeof e) return E(e, t)
var n = Object.prototype.toString.call(e).slice(8, -1)
return (
'Object' === n && e.constructor && (n = e.constructor.name),
'Map' === n || 'Set' === n
? Array.from(e)
: 'Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)
- ? _(e, t)
+ ? E(e, t)
: void 0
)
}
}
- function _(e, t) {
+ function E(e, t) {
;(null == t || t > e.length) && (t = e.length)
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
}
- function T(e, t, n) {
+ function O(e, t, n) {
var r = n.objBindAttr,
- i = void 0 === r ? '__obj' : r,
- o = n.dataBindAttr,
- a = void 0 === o ? '__data' : o,
+ o = void 0 === r ? '__obj' : r,
+ i = n.dataBindAttr,
+ a = void 0 === i ? '__data' : i,
s = n.idAccessor,
u = n.purge,
- l = void 0 !== u && u,
- c = function (e) {
+ c = void 0 !== u && u,
+ l = function (e) {
return e.hasOwnProperty(a)
},
d = t.filter(function (e) {
- return !c(e)
+ return !l(e)
}),
- f = t.filter(c).map(function (e) {
+ f = t.filter(l).map(function (e) {
return e[a]
}),
- h = l
+ h = c
? { enter: e, exit: f, update: [] }
: (function (e, t, n) {
var r = { enter: [], update: [], exit: [] }
if (n) {
- var i = (0, g.Z)(e, n, !1),
- o = (0, g.Z)(t, n, !1),
- a = Object.assign({}, i, o)
+ var o = (0, g.Z)(e, n, !1),
+ i = (0, g.Z)(t, n, !1),
+ a = Object.assign({}, o, i)
Object.entries(a).forEach(function (e) {
- var t = x(e, 2),
+ var t = _(e, 2),
n = t[0],
a = t[1],
- s = i.hasOwnProperty(n) ? (o.hasOwnProperty(n) ? 'update' : 'exit') : 'enter'
- r[s].push('update' === s ? [i[n], o[n]] : a)
+ s = o.hasOwnProperty(n) ? (i.hasOwnProperty(n) ? 'update' : 'exit') : 'enter'
+ r[s].push('update' === s ? [o[n], i[n]] : a)
})
} else {
var s = new Set(e),
u = new Set(t)
- new Set([].concat(E(s), E(u))).forEach(function (e) {
+ new Set([].concat(x(s), x(u))).forEach(function (e) {
var t = s.has(e) ? (u.has(e) ? 'update' : 'exit') : 'enter'
r[t].push('update' === t ? [e, e] : e)
})
@@ -36679,37 +52248,37 @@
})(f, e, s)
return (
(h.update = h.update.map(function (e) {
- var t = x(e, 2),
+ var t = _(e, 2),
n = t[0],
r = t[1]
- return n !== r && ((r[i] = n[i]), (r[i][a] = r)), r
+ return n !== r && ((r[o] = n[o]), (r[o][a] = r)), r
})),
(h.exit = h.exit.concat(
d.map(function (e) {
- return b({}, i, e)
+ return b({}, o, e)
}),
)),
h
)
}
- var O = function (e, t, n, r, i) {
- var o = i.createObj,
+ var T = function (e, t, n, r, o) {
+ var i = o.createObj,
a =
- void 0 === o
+ void 0 === i
? function (e) {
return {}
}
- : o,
- s = i.updateObj,
+ : i,
+ s = o.updateObj,
u = void 0 === s ? function (e, t) {} : s,
- l = i.exitObj,
- c = void 0 === l ? function (e) {} : l,
- d = i.objBindAttr,
+ c = o.exitObj,
+ l = void 0 === c ? function (e) {} : c,
+ d = o.objBindAttr,
f = void 0 === d ? '__obj' : d,
- h = i.dataBindAttr,
+ h = o.dataBindAttr,
p = void 0 === h ? '__data' : h,
- v = w(i, ['createObj', 'updateObj', 'exitObj', 'objBindAttr', 'dataBindAttr']),
- m = T(
+ v = w(o, ['createObj', 'updateObj', 'exitObj', 'objBindAttr', 'dataBindAttr']),
+ m = O(
e,
t,
(function (e) {
@@ -36729,10 +52298,10 @@
})({ objBindAttr: f, dataBindAttr: p }, v),
),
g = m.enter,
- x = m.update
+ _ = m.update
m.exit.forEach(function (e) {
var t = e[f]
- delete e[f], c(t), r(t)
+ delete e[f], l(t), r(t)
})
var k = (function (e) {
var t = []
@@ -36749,14 +52318,14 @@
var t = e[f]
t && ((t[p] = e), u(t, e))
})
- })([].concat(E(g), E(x))),
+ })([].concat(x(g), x(_))),
k.forEach(n)
},
- C = n(2462),
- S = n(2816),
- A = n(7621),
- P = n.n(A)
- function M(e, t) {
+ C = n(72462),
+ M = n(47646),
+ S = n(17621),
+ P = n.n(S)
+ function j(e, t) {
var n = Object.keys(e)
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e)
@@ -36768,23 +52337,23 @@
}
return n
}
- function R(e) {
+ function I(e) {
for (var t = 1; t < arguments.length; t++) {
var n = null != arguments[t] ? arguments[t] : {}
t % 2
- ? M(Object(n), !0).forEach(function (t) {
- L(e, t, n[t])
+ ? j(Object(n), !0).forEach(function (t) {
+ D(e, t, n[t])
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
- : M(Object(n)).forEach(function (t) {
+ : j(Object(n)).forEach(function (t) {
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
})
}
return e
}
- function j(e) {
- return (j =
+ function A(e) {
+ return (A =
'function' === typeof Symbol && 'symbol' === typeof Symbol.iterator
? function (e) {
return typeof e
@@ -36798,10 +52367,10 @@
: typeof e
})(e)
}
- function D(e, t) {
+ function R(e, t) {
if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function')
}
- function L(e, t, n) {
+ function D(e, t, n) {
return (
t in e
? Object.defineProperty(e, t, {
@@ -36814,7 +52383,7 @@
e
)
}
- function N(e, t) {
+ function L(e, t) {
if ('function' !== typeof t && null !== t)
throw new TypeError('Super expression must either be null or a function')
;(e.prototype = Object.create(t && t.prototype, {
@@ -36822,8 +52391,8 @@
})),
t && z(e, t)
}
- function I(e) {
- return (I = Object.setPrototypeOf
+ function N(e) {
+ return (N = Object.setPrototypeOf
? Object.getPrototypeOf
: function (e) {
return e.__proto__ || Object.getPrototypeOf(e)
@@ -36836,7 +52405,7 @@
return (e.__proto__ = t), e
})(e, t)
}
- function H() {
+ function B() {
if ('undefined' === typeof Reflect || !Reflect.construct) return !1
if (Reflect.construct.sham) return !1
if ('function' === typeof Proxy) return !0
@@ -36846,59 +52415,59 @@
return !1
}
}
- function B(e, t, n) {
- return (B = H()
+ function H(e, t, n) {
+ return (H = B()
? Reflect.construct
: function (e, t, n) {
var r = [null]
r.push.apply(r, t)
- var i = new (Function.bind.apply(e, r))()
- return n && z(i, n.prototype), i
+ var o = new (Function.bind.apply(e, r))()
+ return n && z(o, n.prototype), o
}).apply(null, arguments)
}
function F(e, t) {
if (null == e) return {}
var n,
r,
- i = (function (e, t) {
+ o = (function (e, t) {
if (null == e) return {}
var n,
r,
- i = {},
- o = Object.keys(e)
- for (r = 0; r < o.length; r++) (n = o[r]), t.indexOf(n) >= 0 || (i[n] = e[n])
- return i
+ o = {},
+ i = Object.keys(e)
+ for (r = 0; r < i.length; r++) (n = i[r]), t.indexOf(n) >= 0 || (o[n] = e[n])
+ return o
})(e, t)
if (Object.getOwnPropertySymbols) {
- var o = Object.getOwnPropertySymbols(e)
- for (r = 0; r < o.length; r++)
- (n = o[r]),
+ var i = Object.getOwnPropertySymbols(e)
+ for (r = 0; r < i.length; r++)
+ (n = i[r]),
t.indexOf(n) >= 0 ||
- (Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]))
+ (Object.prototype.propertyIsEnumerable.call(e, n) && (o[n] = e[n]))
}
- return i
+ return o
}
function V(e) {
if (void 0 === e)
throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e
}
- function U(e, t) {
+ function W(e, t) {
return !t || ('object' !== typeof t && 'function' !== typeof t) ? V(e) : t
}
- function G(e) {
- var t = H()
+ function U(e) {
+ var t = B()
return function () {
var n,
- r = I(e)
+ r = N(e)
if (t) {
- var i = I(this).constructor
- n = Reflect.construct(r, arguments, i)
+ var o = N(this).constructor
+ n = Reflect.construct(r, arguments, o)
} else n = r.apply(this, arguments)
- return U(this, n)
+ return W(this, n)
}
}
- function q(e, t) {
+ function G(e, t) {
return (
(function (e) {
if (Array.isArray(e)) return e
@@ -36910,26 +52479,26 @@
: ('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator']
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
K(e, t) ||
(function () {
@@ -36939,7 +52508,7 @@
})()
)
}
- function W(e) {
+ function q(e) {
return (
(function (e) {
if (Array.isArray(e)) return Z(e)
@@ -36978,42 +52547,42 @@
for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
return r
}
- var $ = function e(t) {
+ var X = function e(t) {
t instanceof Array ? t.forEach(e) : (t.map && t.map.dispose(), t.dispose())
},
- X = function e(t) {
+ $ = function e(t) {
t.geometry && t.geometry.dispose(),
- t.material && $(t.material),
+ t.material && X(t.material),
t.texture && t.texture.dispose(),
t.children && t.children.forEach(e)
},
Y = function (e) {
for (; e.children.length; ) {
var t = e.children[0]
- e.remove(t), X(t)
+ e.remove(t), $(t)
}
},
Q = ['objFilter']
function J(e, t) {
var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
r = n.objFilter,
- i =
+ o =
void 0 === r
? function () {
return !0
}
: r,
- o = F(n, Q)
- return O(
+ i = F(n, Q)
+ return T(
e,
- t.children.filter(i),
+ t.children.filter(o),
function (e) {
return t.add(e)
},
function (e) {
t.remove(e), Y(e)
},
- R({ objBindAttr: '__threeObj' }, o),
+ I({ objBindAttr: '__threeObj' }, i),
)
}
var ee = function (e) {
@@ -37022,7 +52591,7 @@
te = function (e) {
return isNaN(e) ? P()(e).getAlpha() : 1
},
- ne = (0, C.Z)(S.Z)
+ ne = (0, C.Z)(M.Z)
function re(e, t, n) {
t &&
'string' === typeof n &&
@@ -37034,7 +52603,7 @@
e[n] = ne(t(e))
})
}
- var ie = window.THREE
+ var oe = window.THREE
? window.THREE
: {
Group: r.ZAu,
@@ -37055,29 +52624,29 @@
CubicBezierCurve3: r.yj7,
Box3: r.ZzF,
},
- oe = { graph: c(), forcelayout: f() },
- ae = new ie.BufferGeometry().setAttribute ? 'setAttribute' : 'addAttribute',
- se = new ie.BufferGeometry().applyMatrix4 ? 'applyMatrix4' : 'applyMatrix'
+ ie = { graph: l(), forcelayout: f() },
+ ae = new oe.BufferGeometry().setAttribute ? 'setAttribute' : 'addAttribute',
+ se = new oe.BufferGeometry().applyMatrix4 ? 'applyMatrix4' : 'applyMatrix'
var ue = (function (e) {
var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : Object,
n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2],
r = (function (t) {
- N(i, t)
- var r = G(i)
- function i() {
+ L(o, t)
+ var r = U(o)
+ function o() {
var t
- D(this, i)
- for (var o = arguments.length, a = new Array(o), s = 0; s < o; s++)
+ R(this, o)
+ for (var i = arguments.length, a = new Array(i), s = 0; s < i; s++)
a[s] = arguments[s]
return (
((t = r.call.apply(r, [this].concat(a))).__kapsuleInstance = e().apply(
void 0,
- [].concat(W(n ? [V(t)] : []), a),
+ [].concat(q(n ? [V(t)] : []), a),
)),
t
)
}
- return i
+ return o
})(t)
return (
Object.keys(e()).forEach(function (e) {
@@ -37247,86 +52816,86 @@
e.graphData.nodes.forEach(function (n) {
var r = n.__threeObj
if (r) {
- var i = t ? n : e.layout.getNodePosition(n[e.nodeId])
- ;(r.position.x = i.x), (r.position.y = i.y || 0), (r.position.z = i.z || 0)
+ var o = t ? n : e.layout.getNodePosition(n[e.nodeId])
+ ;(r.position.x = o.x), (r.position.y = o.y || 0), (r.position.z = o.z || 0)
}
})
var n = (0, p.default)(e.linkWidth),
r = (0, p.default)(e.linkCurvature),
- i = (0, p.default)(e.linkCurveRotation),
- o = (0, p.default)(e.linkThreeObjectExtend)
+ o = (0, p.default)(e.linkCurveRotation),
+ i = (0, p.default)(e.linkThreeObjectExtend)
function a(n) {
- var o = t
+ var i = t
? n
: e.layout.getLinkPosition(e.layout.graph.getLink(n.source, n.target).id),
- a = o[t ? 'source' : 'from'],
- s = o[t ? 'target' : 'to']
+ a = i[t ? 'source' : 'from'],
+ s = i[t ? 'target' : 'to']
if (a && s && a.hasOwnProperty('x') && s.hasOwnProperty('x')) {
var u = r(n)
if (u) {
- var l,
- c = new ie.Vector3(a.x, a.y || 0, a.z || 0),
- d = new ie.Vector3(s.x, s.y || 0, s.z || 0),
- f = c.distanceTo(d),
- h = i(n)
+ var c,
+ l = new oe.Vector3(a.x, a.y || 0, a.z || 0),
+ d = new oe.Vector3(s.x, s.y || 0, s.z || 0),
+ f = l.distanceTo(d),
+ h = o(n)
if (f > 0) {
var p = s.x - a.x,
v = s.y - a.y || 0,
- m = new ie.Vector3().subVectors(d, c),
+ m = new oe.Vector3().subVectors(d, l),
g = m
.clone()
.multiplyScalar(u)
.cross(
0 !== p || 0 !== v
- ? new ie.Vector3(0, 0, 1)
- : new ie.Vector3(0, 1, 0),
+ ? new oe.Vector3(0, 0, 1)
+ : new oe.Vector3(0, 1, 0),
)
.applyAxisAngle(m.normalize(), h)
- .add(new ie.Vector3().addVectors(c, d).divideScalar(2))
- l = new ie.QuadraticBezierCurve3(c, g, d)
+ .add(new oe.Vector3().addVectors(l, d).divideScalar(2))
+ c = new oe.QuadraticBezierCurve3(l, g, d)
} else {
var y = 70 * u,
b = -h,
w = b + Math.PI / 2
- l = new ie.CubicBezierCurve3(
- c,
- new ie.Vector3(y * Math.cos(w), y * Math.sin(w), 0).add(c),
- new ie.Vector3(y * Math.cos(b), y * Math.sin(b), 0).add(c),
+ c = new oe.CubicBezierCurve3(
+ l,
+ new oe.Vector3(y * Math.cos(w), y * Math.sin(w), 0).add(l),
+ new oe.Vector3(y * Math.cos(b), y * Math.sin(b), 0).add(l),
d,
)
}
- n.__curve = l
+ n.__curve = c
} else n.__curve = null
}
}
e.graphData.links.forEach(function (r) {
- var i = r.__lineObj
- if (i) {
+ var o = r.__lineObj
+ if (o) {
var s = t
? r
: e.layout.getLinkPosition(
e.layout.graph.getLink(r.source, r.target).id,
),
u = s[t ? 'source' : 'from'],
- l = s[t ? 'target' : 'to']
- if (u && l && u.hasOwnProperty('x') && l.hasOwnProperty('x')) {
+ c = s[t ? 'target' : 'to']
+ if (u && c && u.hasOwnProperty('x') && c.hasOwnProperty('x')) {
a(r)
- var c = o(r)
+ var l = i(r)
if (
!e.linkPositionUpdate ||
!e.linkPositionUpdate(
- c ? i.children[1] : i,
+ l ? o.children[1] : o,
{
start: { x: u.x, y: u.y, z: u.z },
- end: { x: l.x, y: l.y, z: l.z },
+ end: { x: c.x, y: c.y, z: c.z },
},
r,
) ||
- c
+ l
) {
var d = 30,
f = r.__curve,
- h = i.children.length ? i.children[0] : i
+ h = o.children.length ? o.children[0] : o
if ('Line' === h.type) {
if (f) h.geometry.setFromPoints(f.getPoints(d))
else {
@@ -37334,14 +52903,14 @@
;(p && p.array && 6 === p.array.length) ||
h.geometry[ae](
'position',
- (p = new ie.BufferAttribute(new Float32Array(6), 3)),
+ (p = new oe.BufferAttribute(new Float32Array(6), 3)),
),
(p.array[0] = u.x),
(p.array[1] = u.y || 0),
(p.array[2] = u.z || 0),
- (p.array[3] = l.x),
- (p.array[4] = l.y || 0),
- (p.array[5] = l.z || 0),
+ (p.array[3] = c.x),
+ (p.array[4] = c.y || 0),
+ (p.array[5] = c.z || 0),
(p.needsUpdate = !0)
}
h.geometry.computeBoundingSphere()
@@ -37352,12 +52921,12 @@
h.rotation.set(0, 0, 0),
h.scale.set(1, 1, 1))
var v = Math.ceil(10 * n(r)) / 10 / 2,
- m = new ie.TubeBufferGeometry(f, d, v, e.linkResolution, !1)
+ m = new oe.TubeBufferGeometry(f, d, v, e.linkResolution, !1)
h.geometry.dispose(), (h.geometry = m)
} else {
if (!h.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)) {
var g = Math.ceil(10 * n(r)) / 10 / 2,
- y = new ie.CylinderBufferGeometry(
+ y = new oe.CylinderBufferGeometry(
g,
g,
1,
@@ -37365,18 +52934,18 @@
1,
!1,
)
- y[se](new ie.Matrix4().makeTranslation(0, 0.5, 0)),
- y[se](new ie.Matrix4().makeRotationX(Math.PI / 2)),
+ y[se](new oe.Matrix4().makeTranslation(0, 0.5, 0)),
+ y[se](new oe.Matrix4().makeRotationX(Math.PI / 2)),
h.geometry.dispose(),
(h.geometry = y)
}
- var b = new ie.Vector3(u.x, u.y || 0, u.z || 0),
- w = new ie.Vector3(l.x, l.y || 0, l.z || 0),
- x = b.distanceTo(w)
+ var b = new oe.Vector3(u.x, u.y || 0, u.z || 0),
+ w = new oe.Vector3(c.x, c.y || 0, c.z || 0),
+ _ = b.distanceTo(w)
;(h.position.x = b.x),
(h.position.y = b.y),
(h.position.z = b.z),
- (h.scale.z = x),
+ (h.scale.z = _),
h.parent.localToWorld(w),
h.lookAt(w)
}
@@ -37388,54 +52957,54 @@
(function () {
var n = (0, p.default)(e.linkDirectionalArrowRelPos),
r = (0, p.default)(e.linkDirectionalArrowLength),
- i = (0, p.default)(e.nodeVal)
- e.graphData.links.forEach(function (o) {
- var a = o.__arrowObj
+ o = (0, p.default)(e.nodeVal)
+ e.graphData.links.forEach(function (i) {
+ var a = i.__arrowObj
if (a) {
var s = t
- ? o
- : e.layout.getLinkPosition(e.layout.graph.getLink(o.source, o.target).id),
+ ? i
+ : e.layout.getLinkPosition(e.layout.graph.getLink(i.source, i.target).id),
u = s[t ? 'source' : 'from'],
- l = s[t ? 'target' : 'to']
- if (u && l && u.hasOwnProperty('x') && l.hasOwnProperty('x')) {
- var c = Math.sqrt(Math.max(0, i(u) || 1)) * e.nodeRelSize,
- d = Math.sqrt(Math.max(0, i(l) || 1)) * e.nodeRelSize,
- f = r(o),
- h = n(o),
- p = o.__curve
+ c = s[t ? 'target' : 'to']
+ if (u && c && u.hasOwnProperty('x') && c.hasOwnProperty('x')) {
+ var l = Math.sqrt(Math.max(0, o(u) || 1)) * e.nodeRelSize,
+ d = Math.sqrt(Math.max(0, o(c) || 1)) * e.nodeRelSize,
+ f = r(i),
+ h = n(i),
+ p = i.__curve
? function (e) {
- return o.__curve.getPoint(e)
+ return i.__curve.getPoint(e)
}
: function (e) {
var t = function (e, t, n, r) {
return t[e] + (n[e] - t[e]) * r || 0
}
return {
- x: t('x', u, l, e),
- y: t('y', u, l, e),
- z: t('z', u, l, e),
+ x: t('x', u, c, e),
+ y: t('y', u, c, e),
+ z: t('z', u, c, e),
}
},
- v = o.__curve
- ? o.__curve.getLength()
+ v = i.__curve
+ ? i.__curve.getLength()
: Math.sqrt(
['x', 'y', 'z']
.map(function (e) {
- return Math.pow((l[e] || 0) - (u[e] || 0), 2)
+ return Math.pow((c[e] || 0) - (u[e] || 0), 2)
})
.reduce(function (e, t) {
return e + t
}, 0),
),
- m = c + f + (v - c - d - f) * h,
+ m = l + f + (v - l - d - f) * h,
g = p(m / v),
y = p((m - f) / v)
;['x', 'y', 'z'].forEach(function (e) {
return (a.position[e] = y[e])
})
- var b = B(
- ie.Vector3,
- W(
+ var b = H(
+ oe.Vector3,
+ q(
['x', 'y', 'z'].map(function (e) {
return g[e]
}),
@@ -37449,17 +53018,17 @@
(function () {
var n = (0, p.default)(e.linkDirectionalParticleSpeed)
e.graphData.links.forEach(function (r) {
- var i = r.__photonsObj && r.__photonsObj.children,
- o = r.__singleHopPhotonsObj && r.__singleHopPhotonsObj.children
- if ((o && o.length) || (i && i.length)) {
+ var o = r.__photonsObj && r.__photonsObj.children,
+ i = r.__singleHopPhotonsObj && r.__singleHopPhotonsObj.children
+ if ((i && i.length) || (o && o.length)) {
var a = t
? r
: e.layout.getLinkPosition(e.layout.graph.getLink(r.source, r.target).id),
s = a[t ? 'source' : 'from'],
u = a[t ? 'target' : 'to']
if (s && u && s.hasOwnProperty('x') && u.hasOwnProperty('x')) {
- var l = n(r),
- c = r.__curve
+ var c = n(r),
+ l = r.__curve
? function (e) {
return r.__curve.getPoint(e)
}
@@ -37473,21 +53042,21 @@
z: t('z', s, u, e),
}
}
- ;[].concat(W(i || []), W(o || [])).forEach(function (e, t) {
+ ;[].concat(q(o || []), q(i || [])).forEach(function (e, t) {
var n = 'singleHopPhotons' === e.parent.__linkThreeObjType
if (
(e.hasOwnProperty('__progressRatio') ||
- (e.__progressRatio = n ? 0 : t / i.length),
- (e.__progressRatio += l),
+ (e.__progressRatio = n ? 0 : t / o.length),
+ (e.__progressRatio += c),
e.__progressRatio >= 1)
) {
if (n) return e.parent.remove(e), void Y(e)
e.__progressRatio = e.__progressRatio % 1
}
var r = e.__progressRatio,
- o = c(r)
+ i = l(r)
;['x', 'y', 'z'].forEach(function (t) {
- return (e.position[t] = o[t])
+ return (e.position[t] = i[t])
})
})
}
@@ -37500,21 +53069,21 @@
emitParticle: function (e, t) {
if (t) {
if (!t.__singleHopPhotonsObj) {
- var n = new ie.Group()
+ var n = new oe.Group()
;(n.__linkThreeObjType = 'singleHopPhotons'),
(t.__singleHopPhotonsObj = n),
e.graphScene.add(n)
}
var r = (0, p.default)(e.linkDirectionalParticleWidth),
- i = Math.ceil(10 * r(t)) / 10 / 2,
- o = e.linkDirectionalParticleResolution,
- a = new ie.SphereBufferGeometry(i, o, o),
+ o = Math.ceil(10 * r(t)) / 10 / 2,
+ i = e.linkDirectionalParticleResolution,
+ a = new oe.SphereBufferGeometry(o, i, i),
s = (0, p.default)(e.linkColor),
u = (0, p.default)(e.linkDirectionalParticleColor)(t) || s(t) || '#f0f0f0',
- l = new ie.Color(ee(u)),
- c = 3 * e.linkOpacity,
- d = new ie.MeshLambertMaterial({ color: l, transparent: !0, opacity: c })
- t.__singleHopPhotonsObj.add(new ie.Mesh(a, d))
+ c = new oe.Color(ee(u)),
+ l = 3 * e.linkOpacity,
+ d = new oe.MeshLambertMaterial({ color: c, transparent: !0, opacity: l })
+ t.__singleHopPhotonsObj.add(new oe.Mesh(a, d))
}
return this
},
@@ -37530,12 +53099,12 @@
var r = []
if (n.geometry) {
n.geometry.computeBoundingBox()
- var i = new ie.Box3()
- i.copy(n.geometry.boundingBox).applyMatrix4(n.matrixWorld), r.push(i)
+ var o = new oe.Box3()
+ o.copy(n.geometry.boundingBox).applyMatrix4(n.matrixWorld), r.push(o)
}
return r.concat.apply(
r,
- W(
+ q(
(n.children || [])
.filter(function (e) {
return (
@@ -37550,9 +53119,9 @@
return n.length
? Object.assign.apply(
Object,
- W(
+ q(
['x', 'y', 'z'].map(function (e) {
- return L({}, e, [
+ return D({}, e, [
(0, v.Z)(n, function (t) {
return t.min[e]
}),
@@ -37568,8 +53137,8 @@
},
stateInit: function () {
return {
- d3ForceLayout: (0, i.Z)()
- .force('link', (0, o.Z)())
+ d3ForceLayout: (0, o.Z)()
+ .force('link', (0, i.Z)())
.force('charge', (0, a.Z)())
.force('center', (0, s.Z)())
.force('dagRadial', null)
@@ -37609,12 +53178,12 @@
]))
) {
var r = (0, p.default)(e.nodeThreeObject),
- i = (0, p.default)(e.nodeThreeObjectExtend),
- o = (0, p.default)(e.nodeVal),
+ o = (0, p.default)(e.nodeThreeObjectExtend),
+ i = (0, p.default)(e.nodeVal),
a = (0, p.default)(e.nodeColor),
s = (0, p.default)(e.nodeVisibility),
- l = {},
- c = {}
+ c = {},
+ l = {}
J(e.graphData.nodes.filter(s), e.graphScene, {
purge: e._flushObjects || n(['nodeThreeObject', 'nodeThreeObjectExtend']),
objFilter: function (e) {
@@ -37622,42 +53191,42 @@
},
createObj: function (t) {
var n,
- o = r(t),
- a = i(t)
+ i = r(t),
+ a = o(t)
return (
- o && e.nodeThreeObject === o && (o = o.clone()),
- o && !a
- ? (n = o)
- : (((n = new ie.Mesh()).__graphDefaultObj = !0), o && a && n.add(o)),
+ i && e.nodeThreeObject === i && (i = i.clone()),
+ i && !a
+ ? (n = i)
+ : (((n = new oe.Mesh()).__graphDefaultObj = !0), i && a && n.add(i)),
(n.__graphObjType = 'node'),
n
)
},
updateObj: function (t, n) {
if (t.__graphDefaultObj) {
- var r = o(n) || 1,
- i = Math.cbrt(r) * e.nodeRelSize,
+ var r = i(n) || 1,
+ o = Math.cbrt(r) * e.nodeRelSize,
s = e.nodeResolution
;(t.geometry.type.match(/^Sphere(Buffer)?Geometry$/) &&
- t.geometry.parameters.radius === i &&
+ t.geometry.parameters.radius === o &&
t.geometry.parameters.widthSegments === s) ||
- (l.hasOwnProperty(r) || (l[r] = new ie.SphereBufferGeometry(i, s, s)),
+ (c.hasOwnProperty(r) || (c[r] = new oe.SphereBufferGeometry(o, s, s)),
t.geometry.dispose(),
- (t.geometry = l[r]))
+ (t.geometry = c[r]))
var u = a(n),
- d = new ie.Color(ee(u || '#ffffaa')),
+ d = new oe.Color(ee(u || '#ffffaa')),
f = e.nodeOpacity * te(u)
;('MeshLambertMaterial' === t.material.type &&
t.material.color.equals(d) &&
t.material.opacity === f) ||
- (c.hasOwnProperty(u) ||
- (c[u] = new ie.MeshLambertMaterial({
+ (l.hasOwnProperty(u) ||
+ (l[u] = new oe.MeshLambertMaterial({
color: d,
transparent: !0,
opacity: f,
})),
t.material.dispose(),
- (t.material = c[u]))
+ (t.material = l[u]))
}
},
})
@@ -37692,9 +53261,9 @@
y = {},
b = {},
w = {},
- x = e.graphData.links.filter(v)
+ _ = e.graphData.links.filter(v)
if (
- (J(x, e.graphScene, {
+ (J(_, e.graphScene, {
objBindAttr: '__lineObj',
purge:
e._flushObjects || n(['linkThreeObject', 'linkThreeObjectExtend', 'linkWidth']),
@@ -37704,20 +53273,20 @@
createObj: function (t) {
var n,
r,
- i = d(t),
- o = f(t)
- if ((i && e.linkThreeObject === i && (i = i.clone()), !i || o))
- if (!!g(t)) n = new ie.Mesh()
+ o = d(t),
+ i = f(t)
+ if ((o && e.linkThreeObject === o && (o = o.clone()), !o || i))
+ if (!!g(t)) n = new oe.Mesh()
else {
- var a = new ie.BufferGeometry()
- a[ae]('position', new ie.BufferAttribute(new Float32Array(6), 3)),
- (n = new ie.Line(a))
+ var a = new oe.BufferGeometry()
+ a[ae]('position', new oe.BufferAttribute(new Float32Array(6), 3)),
+ (n = new oe.Line(a))
}
return (
- i
- ? o
- ? (((r = new ie.Group()).__graphDefaultObj = !0), r.add(n), r.add(i))
- : (r = i)
+ o
+ ? i
+ ? (((r = new oe.Group()).__graphDefaultObj = !0), r.add(n), r.add(o))
+ : (r = o)
: ((r = n).__graphDefaultObj = !0),
(r.renderOrder = 10),
(r.__graphObjType = 'link'),
@@ -37727,47 +53296,47 @@
updateObj: function (t, n) {
if (t.__graphDefaultObj) {
var r = t.children.length ? t.children[0] : t,
- i = Math.ceil(10 * g(n)) / 10,
- o = !!i
- if (o) {
- var a = i / 2,
+ o = Math.ceil(10 * g(n)) / 10,
+ i = !!o
+ if (i) {
+ var a = o / 2,
s = e.linkResolution
if (
!r.geometry.type.match(/^Cylinder(Buffer)?Geometry$/) ||
r.geometry.parameters.radiusTop !== a ||
r.geometry.parameters.radialSegments !== s
) {
- if (!y.hasOwnProperty(i)) {
- var u = new ie.CylinderBufferGeometry(a, a, 1, s, 1, !1)
- u[se](new ie.Matrix4().makeTranslation(0, 0.5, 0)),
- u[se](new ie.Matrix4().makeRotationX(Math.PI / 2)),
- (y[i] = u)
+ if (!y.hasOwnProperty(o)) {
+ var u = new oe.CylinderBufferGeometry(a, a, 1, s, 1, !1)
+ u[se](new oe.Matrix4().makeTranslation(0, 0.5, 0)),
+ u[se](new oe.Matrix4().makeRotationX(Math.PI / 2)),
+ (y[o] = u)
}
- r.geometry.dispose(), (r.geometry = y[i])
+ r.geometry.dispose(), (r.geometry = y[o])
}
}
- var l = h(n)
- if (l) r.material = l
+ var c = h(n)
+ if (c) r.material = c
else {
- var c = m(n),
- d = new ie.Color(ee(c || '#f0f0f0')),
- f = e.linkOpacity * te(c),
- p = o ? 'MeshLambertMaterial' : 'LineBasicMaterial'
+ var l = m(n),
+ d = new oe.Color(ee(l || '#f0f0f0')),
+ f = e.linkOpacity * te(l),
+ p = i ? 'MeshLambertMaterial' : 'LineBasicMaterial'
if (
r.material.type !== p ||
!r.material.color.equals(d) ||
r.material.opacity !== f
) {
- var v = o ? b : w
- v.hasOwnProperty(c) ||
- (v[c] = new ie[p]({
+ var v = i ? b : w
+ v.hasOwnProperty(l) ||
+ (v[l] = new oe[p]({
color: d,
transparent: f < 1,
opacity: f,
depthWrite: f >= 1,
})),
r.material.dispose(),
- (r.material = v[c])
+ (r.material = v[l])
}
}
}
@@ -37775,80 +53344,80 @@
}),
e.linkDirectionalArrowLength || t.hasOwnProperty('linkDirectionalArrowLength'))
) {
- var E = (0, p.default)(e.linkDirectionalArrowLength),
+ var x = (0, p.default)(e.linkDirectionalArrowLength),
k = (0, p.default)(e.linkDirectionalArrowColor)
- J(x.filter(E), e.graphScene, {
+ J(_.filter(x), e.graphScene, {
objBindAttr: '__arrowObj',
objFilter: function (e) {
return 'arrow' === e.__linkThreeObjType
},
createObj: function () {
- var e = new ie.Mesh(void 0, new ie.MeshLambertMaterial({ transparent: !0 }))
+ var e = new oe.Mesh(void 0, new oe.MeshLambertMaterial({ transparent: !0 }))
return (e.__linkThreeObjType = 'arrow'), e
},
updateObj: function (t, n) {
- var r = E(n),
- i = e.linkDirectionalArrowResolution
+ var r = x(n),
+ o = e.linkDirectionalArrowResolution
if (
!t.geometry.type.match(/^Cone(Buffer)?Geometry$/) ||
t.geometry.parameters.height !== r ||
- t.geometry.parameters.radialSegments !== i
+ t.geometry.parameters.radialSegments !== o
) {
- var o = new ie.ConeBufferGeometry(0.25 * r, r, i)
- o.translate(0, r / 2, 0),
- o.rotateX(Math.PI / 2),
+ var i = new oe.ConeBufferGeometry(0.25 * r, r, o)
+ i.translate(0, r / 2, 0),
+ i.rotateX(Math.PI / 2),
t.geometry.dispose(),
- (t.geometry = o)
+ (t.geometry = i)
}
- ;(t.material.color = new ie.Color(k(n) || m(n) || '#f0f0f0')),
+ ;(t.material.color = new oe.Color(k(n) || m(n) || '#f0f0f0')),
(t.material.opacity = 3 * e.linkOpacity)
},
})
}
if (e.linkDirectionalParticles || t.hasOwnProperty('linkDirectionalParticles')) {
- var _ = (0, p.default)(e.linkDirectionalParticles),
- T = (0, p.default)(e.linkDirectionalParticleWidth),
- O = (0, p.default)(e.linkDirectionalParticleColor),
+ var E = (0, p.default)(e.linkDirectionalParticles),
+ O = (0, p.default)(e.linkDirectionalParticleWidth),
+ T = (0, p.default)(e.linkDirectionalParticleColor),
C = {},
- S = {}
- J(x.filter(_), e.graphScene, {
+ M = {}
+ J(_.filter(E), e.graphScene, {
objBindAttr: '__photonsObj',
objFilter: function (e) {
return 'photons' === e.__linkThreeObjType
},
createObj: function () {
- var e = new ie.Group()
+ var e = new oe.Group()
return (e.__linkThreeObjType = 'photons'), e
},
updateObj: function (t, n) {
var r,
- i = Math.round(Math.abs(_(n))),
- o = !!t.children.length && t.children[0],
- a = Math.ceil(10 * T(n)) / 10 / 2,
+ o = Math.round(Math.abs(E(n))),
+ i = !!t.children.length && t.children[0],
+ a = Math.ceil(10 * O(n)) / 10 / 2,
s = e.linkDirectionalParticleResolution
- o &&
- o.geometry.parameters.radius === a &&
- o.geometry.parameters.widthSegments === s
- ? (r = o.geometry)
- : (S.hasOwnProperty(a) || (S[a] = new ie.SphereBufferGeometry(a, s, s)),
- (r = S[a]),
- o && o.geometry.dispose())
+ i &&
+ i.geometry.parameters.radius === a &&
+ i.geometry.parameters.widthSegments === s
+ ? (r = i.geometry)
+ : (M.hasOwnProperty(a) || (M[a] = new oe.SphereBufferGeometry(a, s, s)),
+ (r = M[a]),
+ i && i.geometry.dispose())
var u,
- l = O(n) || m(n) || '#f0f0f0',
- c = new ie.Color(ee(l)),
+ c = T(n) || m(n) || '#f0f0f0',
+ l = new oe.Color(ee(c)),
d = 3 * e.linkOpacity
- o && o.material.color.equals(c) && o.material.opacity === d
- ? (u = o.material)
- : (C.hasOwnProperty(l) ||
- (C[l] = new ie.MeshLambertMaterial({
- color: c,
+ i && i.material.color.equals(l) && i.material.opacity === d
+ ? (u = i.material)
+ : (C.hasOwnProperty(c) ||
+ (C[c] = new oe.MeshLambertMaterial({
+ color: l,
transparent: !0,
opacity: d,
})),
- (u = C[l]),
- o && o.material.dispose()),
+ (u = C[c]),
+ i && i.material.dispose()),
J(
- W(new Array(i)).map(function (e, t) {
+ q(new Array(o)).map(function (e, t) {
return { idx: t }
}),
t,
@@ -37857,7 +53426,7 @@
return e.idx
},
createObj: function () {
- return new ie.Mesh(r, u)
+ return new oe.Mesh(r, u)
},
updateObj: function (e) {
;(e.geometry = r), (e.material = u)
@@ -37886,33 +53455,35 @@
e.graphData.links.forEach(function (t) {
;(t.source = t[e.linkSource]), (t.target = t[e.linkTarget])
})
- var A,
+ var S,
P = 'ngraph' !== e.forceEngine
if (P) {
- ;(A = e.d3ForceLayout)
+ ;(S = e.d3ForceLayout)
.stop()
.alpha(1)
.numDimensions(e.numDimensions)
.nodes(e.graphData.nodes)
- var M = e.d3ForceLayout.force('link')
- M &&
- M.id(function (t) {
- return t[e.nodeId]
- }).links(e.graphData.links)
- var D =
+ var j = e.d3ForceLayout.force('link')
+ j &&
+ j
+ .id(function (t) {
+ return t[e.nodeId]
+ })
+ .links(e.graphData.links)
+ var R =
e.dagMode &&
(function (e, t) {
var n = e.nodes,
r = e.links,
- i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
- o = i.nodeFilter,
+ o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
+ i = o.nodeFilter,
a =
- void 0 === o
+ void 0 === i
? function () {
return !0
}
- : o,
- s = i.onLoopError,
+ : i,
+ s = o.onLoopError,
u =
void 0 === s
? function (e) {
@@ -37922,38 +53493,38 @@
)
}
: s,
- l = {}
+ c = {}
n.forEach(function (e) {
- return (l[t(e)] = { data: e, out: [], depth: -1, skip: !a(e) })
+ return (c[t(e)] = { data: e, out: [], depth: -1, skip: !a(e) })
}),
r.forEach(function (e) {
var n = e.source,
r = e.target,
- i = u(n),
- o = u(r)
- if (!l.hasOwnProperty(i)) throw 'Missing source node with id: '.concat(i)
- if (!l.hasOwnProperty(o)) throw 'Missing target node with id: '.concat(o)
- var a = l[i],
- s = l[o]
+ o = u(n),
+ i = u(r)
+ if (!c.hasOwnProperty(o)) throw 'Missing source node with id: '.concat(o)
+ if (!c.hasOwnProperty(i)) throw 'Missing target node with id: '.concat(i)
+ var a = c[o],
+ s = c[i]
function u(e) {
- return 'object' === j(e) ? t(e) : e
+ return 'object' === A(e) ? t(e) : e
}
a.out.push(s)
})
- var c = []
+ var l = []
return (
- d(Object.values(l)),
+ d(Object.values(c)),
Object.assign.apply(
Object,
[{}].concat(
- W(
- Object.entries(l)
+ q(
+ Object.entries(c)
.filter(function (e) {
- return !q(e, 2)[1].skip
+ return !G(e, 2)[1].skip
})
.map(function (e) {
- var t = q(e, 2)
- return L({}, t[0], t[1].depth)
+ var t = G(e, 2)
+ return D({}, t[0], t[1].depth)
}),
),
),
@@ -37964,35 +53535,35 @@
var n =
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0,
- i = 0,
- o = e.length;
- i < o;
- i++
+ o = 0,
+ i = e.length;
+ o < i;
+ o++
) {
- var a = e[i]
+ var a = e[o]
if (-1 !== n.indexOf(a))
if (
'continue' ===
(function () {
- var e = [].concat(W(n.slice(n.indexOf(a))), [a]).map(function (e) {
+ var e = [].concat(q(n.slice(n.indexOf(a))), [a]).map(function (e) {
return t(e.data)
})
return (
- c.some(function (t) {
+ l.some(function (t) {
return (
t.length === e.length &&
t.every(function (t, n) {
return t === e[n]
})
)
- }) || (c.push(e), u(e)),
+ }) || (l.push(e), u(e)),
'continue'
)
})()
)
continue
r > a.depth &&
- ((a.depth = r), d(a.out, [].concat(W(n), [a]), r + (a.skip ? 0 : 1)))
+ ((a.depth = r), d(a.out, [].concat(q(n), [a]), r + (a.skip ? 0 : 1)))
}
}
})(
@@ -38002,57 +53573,57 @@
},
{ nodeFilter: e.dagNodeFilter, onLoopError: e.onDagError || void 0 },
),
- N = Math.max.apply(Math, W(Object.values(D || []))),
- I =
+ L = Math.max.apply(Math, q(Object.values(R || []))),
+ N =
e.dagLevelDistance ||
- (e.graphData.nodes.length / (N || 1)) *
+ (e.graphData.nodes.length / (L || 1)) *
2 *
(-1 !== ['radialin', 'radialout'].indexOf(e.dagMode) ? 0.7 : 1)
if (e.dagMode) {
var z = function (t, n) {
return function (r) {
- return t ? (D[r[e.nodeId]] - N / 2) * I * (n ? -1 : 1) : void 0
+ return t ? (R[r[e.nodeId]] - L / 2) * N * (n ? -1 : 1) : void 0
}
},
- H = z(-1 !== ['lr', 'rl'].indexOf(e.dagMode), 'rl' === e.dagMode),
- B = z(-1 !== ['td', 'bu'].indexOf(e.dagMode), 'td' === e.dagMode),
+ B = z(-1 !== ['lr', 'rl'].indexOf(e.dagMode), 'rl' === e.dagMode),
+ H = z(-1 !== ['td', 'bu'].indexOf(e.dagMode), 'td' === e.dagMode),
F = z(-1 !== ['zin', 'zout'].indexOf(e.dagMode), 'zout' === e.dagMode)
e.graphData.nodes.filter(e.dagNodeFilter).forEach(function (e) {
- ;(e.fx = H(e)), (e.fy = B(e)), (e.fz = F(e))
+ ;(e.fx = B(e)), (e.fy = H(e)), (e.fz = F(e))
})
}
e.d3ForceLayout.force(
'dagRadial',
-1 !== ['radialin', 'radialout'].indexOf(e.dagMode)
? (0, u.Z)(function (t) {
- var n = D[t[e.nodeId]] || -1
- return ('radialin' === e.dagMode ? N - n : n) * I
+ var n = R[t[e.nodeId]] || -1
+ return ('radialin' === e.dagMode ? L - n : n) * N
}).strength(function (t) {
return e.dagNodeFilter(t) ? 1 : 0
})
: null,
)
} else {
- var V = oe.graph()
+ var V = ie.graph()
e.graphData.nodes.forEach(function (t) {
V.addNode(t[e.nodeId])
}),
e.graphData.links.forEach(function (e) {
V.addLink(e.source, e.target)
}),
- ((A = oe.forcelayout(
+ ((S = ie.forcelayout(
V,
- R({ dimensions: e.numDimensions }, e.ngraphPhysics),
+ I({ dimensions: e.numDimensions }, e.ngraphPhysics),
)).graph = V)
}
for (
- var U = 0;
- U < e.warmupTicks &&
+ var W = 0;
+ W < e.warmupTicks &&
!(P && e.d3AlphaMin > 0 && e.d3ForceLayout.alpha() < e.d3AlphaMin);
- U++
+ W++
)
- A[P ? 'tick' : 'step']()
- ;(e.layout = A), this.resetCountdown()
+ S[P ? 'tick' : 'step']()
+ ;(e.layout = S), this.resetCountdown()
}
;(e.engineRunning = !0), e.onFinishUpdate()
},
@@ -38061,7 +53632,7 @@
!0,
)
},
- 6594: function (e, t, n) {
+ 56594: function (e, t, n) {
'use strict'
n.r(t),
n.d(t, {
@@ -38100,10 +53671,10 @@
e.forEach(function (e) {
t.includes(e) && n.push(e)
})
- for (var r = n[1], i = n[0], o = e.slice(); o[0] !== r; ) o.push(o.shift())
- for (var a = 0, s = t.slice(); s[0] !== i; )
+ for (var r = n[1], o = n[0], i = e.slice(); i[0] !== r; ) i.push(i.shift())
+ for (var a = 0, s = t.slice(); s[0] !== o; )
if ((s.push(s.shift()), a++ > 10)) throw new Error('Unexpected state')
- return s.shift(), s.pop(), o.concat(s)
+ return s.shift(), s.pop(), i.concat(s)
}),
(r.setPolygonCentroid = function (e, t) {
var n = new THREE.Vector3(),
@@ -38115,55 +53686,55 @@
e.centroid.copy(n)
}),
(r.cleanPolygon = function (e, t) {
- for (var n = [], r = t.vertices, i = 0; i < e.vertexIds.length; i++) {
- var o,
+ for (var n = [], r = t.vertices, o = 0; o < e.vertexIds.length; o++) {
+ var i,
a,
s,
- u = r[e.vertexIds[i]]
- 0 === i
- ? ((o = e.vertexIds[1]), (a = e.vertexIds[e.vertexIds.length - 1]))
- : i === e.vertexIds.length - 1
- ? ((o = e.vertexIds[0]), (a = e.vertexIds[e.vertexIds.length - 2]))
- : ((o = e.vertexIds[i + 1]), (a = e.vertexIds[i - 1])),
+ u = r[e.vertexIds[o]]
+ 0 === o
+ ? ((i = e.vertexIds[1]), (a = e.vertexIds[e.vertexIds.length - 1]))
+ : o === e.vertexIds.length - 1
+ ? ((i = e.vertexIds[0]), (a = e.vertexIds[e.vertexIds.length - 2]))
+ : ((i = e.vertexIds[o + 1]), (a = e.vertexIds[o - 1])),
(s = r[a])
- var l = r[o].clone().sub(u),
- c = s.clone().sub(u),
- d = l.angleTo(c)
+ var c = r[i].clone().sub(u),
+ l = s.clone().sub(u),
+ d = c.angleTo(l)
if (d > Math.PI - 0.01 && d < Math.PI + 0.01) {
var f = []
e.neighbours.forEach(function (t) {
- t.vertexIds.includes(e.vertexIds[i]) || f.push(t)
+ t.vertexIds.includes(e.vertexIds[o]) || f.push(t)
}),
(e.neighbours = f)
- } else n.push(e.vertexIds[i])
+ } else n.push(e.vertexIds[o])
}
;(e.vertexIds = n), this.setPolygonCentroid(e, t)
}),
(r.isConvex = function (e, t) {
var n = t.vertices
if (e.vertexIds.length < 3) return !1
- for (var r = !0, i = [], o = 0; o < e.vertexIds.length; o++) {
+ for (var r = !0, o = [], i = 0; i < e.vertexIds.length; i++) {
var a,
s,
- u = n[e.vertexIds[o]]
- 0 === o
+ u = n[e.vertexIds[i]]
+ 0 === i
? ((a = n[e.vertexIds[1]]), (s = n[e.vertexIds[e.vertexIds.length - 1]]))
- : o === e.vertexIds.length - 1
+ : i === e.vertexIds.length - 1
? ((a = n[e.vertexIds[0]]), (s = n[e.vertexIds[e.vertexIds.length - 2]]))
- : ((a = n[e.vertexIds[o + 1]]), (s = n[e.vertexIds[o - 1]]))
- var l = a.clone().sub(u),
- c = s.clone().sub(u),
- d = l.angleTo(c)
+ : ((a = n[e.vertexIds[i + 1]]), (s = n[e.vertexIds[i - 1]]))
+ var c = a.clone().sub(u),
+ l = s.clone().sub(u),
+ d = c.angleTo(l)
if (d === Math.PI || 0 === d) return !1
- var f = l.cross(c).y
- i.push(f)
+ var f = c.cross(l).y
+ o.push(f)
}
return (
- i.forEach(function (e) {
+ o.forEach(function (e) {
0 === e && (r = !1)
}),
- i.forEach(
- i[0] > 0
+ o.forEach(
+ o[0] > 0
? function (e) {
e < 0 && (r = !1)
}
@@ -38177,25 +53748,25 @@
(r.distanceToSquared = function (e, t) {
var n = e.x - t.x,
r = e.y - t.y,
- i = e.z - t.z
- return n * n + r * r + i * i
+ o = e.z - t.z
+ return n * n + r * r + o * o
}),
(r.isPointInPoly = function (e, t) {
- for (var n = !1, r = -1, i = e.length, o = i - 1; ++r < i; o = r)
- ((e[r].z <= t.z && t.z < e[o].z) || (e[o].z <= t.z && t.z < e[r].z)) &&
- t.x < ((e[o].x - e[r].x) * (t.z - e[r].z)) / (e[o].z - e[r].z) + e[r].x &&
+ for (var n = !1, r = -1, o = e.length, i = o - 1; ++r < o; i = r)
+ ((e[r].z <= t.z && t.z < e[i].z) || (e[i].z <= t.z && t.z < e[r].z)) &&
+ t.x < ((e[i].x - e[r].x) * (t.z - e[r].z)) / (e[i].z - e[r].z) + e[r].x &&
(n = !n)
return n
}),
(r.isVectorInPolygon = function (e, t, n) {
var r = 1e5,
- i = -1e5,
- o = []
+ o = -1e5,
+ i = []
return (
t.vertexIds.forEach(function (e) {
- ;(r = Math.min(n[e].y, r)), (i = Math.max(n[e].y, i)), o.push(n[e])
+ ;(r = Math.min(n[e].y, r)), (o = Math.max(n[e].y, o)), i.push(n[e])
}),
- !!(e.y < i + 0.5 && e.y > r - 0.5 && this.isPointInPoly(o, e))
+ !!(e.y < o + 0.5 && e.y > r - 0.5 && this.isPointInPoly(i, e))
)
}),
(r.triarea2 = function (e, t, n) {
@@ -38204,31 +53775,31 @@
(r.vequal = function (e, t) {
return this.distanceToSquared(e, t) < 1e-5
})
- var i = function (e) {
+ var o = function (e) {
;(this.content = []), (this.scoreFunction = e)
}
- ;(i.prototype.push = function (e) {
+ ;(o.prototype.push = function (e) {
this.content.push(e), this.sinkDown(this.content.length - 1)
}),
- (i.prototype.pop = function () {
+ (o.prototype.pop = function () {
var e = this.content[0],
t = this.content.pop()
return this.content.length > 0 && ((this.content[0] = t), this.bubbleUp(0)), e
}),
- (i.prototype.remove = function (e) {
+ (o.prototype.remove = function (e) {
var t = this.content.indexOf(e),
n = this.content.pop()
t !== this.content.length - 1 &&
((this.content[t] = n),
this.scoreFunction(n) < this.scoreFunction(e) ? this.sinkDown(t) : this.bubbleUp(t))
}),
- (i.prototype.size = function () {
+ (o.prototype.size = function () {
return this.content.length
}),
- (i.prototype.rescoreElement = function (e) {
+ (o.prototype.rescoreElement = function (e) {
this.sinkDown(this.content.indexOf(e))
}),
- (i.prototype.sinkDown = function (e) {
+ (o.prototype.sinkDown = function (e) {
for (var t = this.content[e]; e > 0; ) {
var n = ((e + 1) >> 1) - 1,
r = this.content[n]
@@ -38236,23 +53807,23 @@
;(this.content[n] = t), (this.content[e] = r), (e = n)
}
}),
- (i.prototype.bubbleUp = function (e) {
+ (o.prototype.bubbleUp = function (e) {
for (var t = this.content.length, n = this.content[e], r = this.scoreFunction(n); ; ) {
- var i = (e + 1) << 1,
- o = i - 1,
+ var o = (e + 1) << 1,
+ i = o - 1,
a = null,
s = void 0
if (
- (o < t && (s = this.scoreFunction(this.content[o])) < r && (a = o),
- i < t && this.scoreFunction(this.content[i]) < (null === a ? r : s) && (a = i),
+ (i < t && (s = this.scoreFunction(this.content[i])) < r && (a = i),
+ o < t && this.scoreFunction(this.content[o]) < (null === a ? r : s) && (a = o),
null === a)
)
break
;(this.content[e] = this.content[a]), (this.content[a] = n), (e = a)
}
})
- var o = function () {}
- ;(o.init = function (e) {
+ var i = function () {}
+ ;(i.init = function (e) {
for (var t = 0; t < e.length; t++) {
var n = e[t]
;(n.f = 0),
@@ -38264,7 +53835,7 @@
(n.parent = null)
}
}),
- (o.cleanUp = function (e) {
+ (i.cleanUp = function (e) {
for (var t = 0; t < e.length; t++) {
var n = e[t]
delete n.f,
@@ -38276,43 +53847,43 @@
delete n.parent
}
}),
- (o.heap = function () {
- return new i(function (e) {
+ (i.heap = function () {
+ return new o(function (e) {
return e.f
})
}),
- (o.search = function (e, t, n) {
+ (i.search = function (e, t, n) {
this.init(e)
var r = this.heap()
for (r.push(t); r.size() > 0; ) {
- var i = r.pop()
- if (i === n) {
- for (var o = i, a = []; o.parent; ) a.push(o), (o = o.parent)
+ var o = r.pop()
+ if (o === n) {
+ for (var i = o, a = []; i.parent; ) a.push(i), (i = i.parent)
return this.cleanUp(a), a.reverse()
}
- i.closed = !0
- for (var s = this.neighbours(e, i), u = 0, l = s.length; u < l; u++) {
- var c = s[u]
- if (!c.closed) {
- var d = i.g + c.cost,
- f = c.visited
- if (!f || d < c.g) {
- if (((c.visited = !0), (c.parent = i), !c.centroid || !n.centroid))
+ o.closed = !0
+ for (var s = this.neighbours(e, o), u = 0, c = s.length; u < c; u++) {
+ var l = s[u]
+ if (!l.closed) {
+ var d = o.g + l.cost,
+ f = l.visited
+ if (!f || d < l.g) {
+ if (((l.visited = !0), (l.parent = o), !l.centroid || !n.centroid))
throw new Error('Unexpected state')
- ;(c.h = c.h || this.heuristic(c.centroid, n.centroid)),
- (c.g = d),
- (c.f = c.g + c.h),
- f ? r.rescoreElement(c) : r.push(c)
+ ;(l.h = l.h || this.heuristic(l.centroid, n.centroid)),
+ (l.g = d),
+ (l.f = l.g + l.h),
+ f ? r.rescoreElement(l) : r.push(l)
}
}
}
}
return []
}),
- (o.heuristic = function (e, t) {
+ (i.heuristic = function (e, t) {
return r.distanceToSquared(e, t)
}),
- (o.neighbours = function (e, t) {
+ (i.neighbours = function (e, t) {
for (var n = [], r = 0; r < t.neighbours.length; r++) n.push(e[t.neighbours[r]])
return n
})
@@ -38321,42 +53892,42 @@
;(s.buildZone = function (e) {
var t = this,
n = this._buildNavigationMesh(e),
- i = {}
+ o = {}
n.vertices.forEach(function (e) {
;(e.x = r.roundNumber(e.x, 2)),
(e.y = r.roundNumber(e.y, 2)),
(e.z = r.roundNumber(e.z, 2))
}),
- (i.vertices = n.vertices)
- var o = this._buildPolygonGroups(n)
- i.groups = []
+ (o.vertices = n.vertices)
+ var i = this._buildPolygonGroups(n)
+ o.groups = []
var a = function (e, t) {
for (var n = 0; n < e.length; n++) if (t === e[n]) return n
}
return (
- o.forEach(function (e) {
+ i.forEach(function (e) {
var n = []
- e.forEach(function (i) {
- var o = i.neighbours.map(function (t) {
+ e.forEach(function (o) {
+ var i = o.neighbours.map(function (t) {
return a(e, t)
}),
- s = i.neighbours.map(function (e) {
- return t._getSharedVerticesInOrder(i, e)
+ s = o.neighbours.map(function (e) {
+ return t._getSharedVerticesInOrder(o, e)
})
- ;(i.centroid.x = r.roundNumber(i.centroid.x, 2)),
- (i.centroid.y = r.roundNumber(i.centroid.y, 2)),
- (i.centroid.z = r.roundNumber(i.centroid.z, 2)),
+ ;(o.centroid.x = r.roundNumber(o.centroid.x, 2)),
+ (o.centroid.y = r.roundNumber(o.centroid.y, 2)),
+ (o.centroid.z = r.roundNumber(o.centroid.z, 2)),
n.push({
- id: a(e, i),
- neighbours: o,
- vertexIds: i.vertexIds,
- centroid: i.centroid,
+ id: a(e, o),
+ neighbours: i,
+ vertexIds: o.vertexIds,
+ centroid: o.centroid,
portals: s,
})
}),
- i.groups.push(n)
+ o.groups.push(n)
}),
- i
+ o
)
}),
(s._buildNavigationMesh = function (e) {
@@ -38381,24 +53952,24 @@
}),
(s._buildPolygonNeighbours = function (e, t, n) {
var r = new Set(),
- i = n.get(e.vertexIds[0]),
- o = n.get(e.vertexIds[1]),
+ o = n.get(e.vertexIds[0]),
+ i = n.get(e.vertexIds[1]),
a = n.get(e.vertexIds[2])
- i.forEach(function (e) {
- ;(o.has(e) || a.has(e)) && r.add(t.polygons[e])
+ o.forEach(function (e) {
+ ;(i.has(e) || a.has(e)) && r.add(t.polygons[e])
}),
- o.forEach(function (e) {
+ i.forEach(function (e) {
a.has(e) && r.add(t.polygons[e])
}),
(e.neighbours = Array.from(r))
}),
(s._buildPolygonsFromGeometry = function (e) {
for (
- var t = this, n = [], r = e.vertices, i = e.faceVertexUvs, o = new Map(), s = 0;
+ var t = this, n = [], r = e.vertices, o = e.faceVertexUvs, i = new Map(), s = 0;
s < r.length;
s++
)
- o.set(s, new Set())
+ i.set(s, new Set())
e.faces.forEach(function (e) {
n.push({
id: a++,
@@ -38407,14 +53978,14 @@
normal: e.normal,
neighbours: [],
}),
- o.get(e.a).add(n.length - 1),
- o.get(e.b).add(n.length - 1),
- o.get(e.c).add(n.length - 1)
+ i.get(e.a).add(n.length - 1),
+ i.get(e.b).add(n.length - 1),
+ i.get(e.c).add(n.length - 1)
})
- var u = { polygons: n, vertices: r, faceVertexUvs: i }
+ var u = { polygons: n, vertices: r, faceVertexUvs: o }
return (
n.forEach(function (e) {
- t._buildPolygonNeighbours(e, u, o)
+ t._buildPolygonNeighbours(e, u, i)
}),
u
)
@@ -38422,22 +53993,22 @@
(s._getSharedVerticesInOrder = function (e, t) {
var n = e.vertexIds,
r = t.vertexIds,
- i = new Set()
+ o = new Set()
if (
(n.forEach(function (e) {
- r.includes(e) && i.add(e)
+ r.includes(e) && o.add(e)
}),
- i.size < 2)
+ o.size < 2)
)
return []
- i.has(n[0]) && i.has(n[n.length - 1]) && n.push(n.shift()),
- i.has(r[0]) && i.has(r[r.length - 1]) && r.push(r.shift())
- var o = []
+ o.has(n[0]) && o.has(n[n.length - 1]) && n.push(n.shift()),
+ o.has(r[0]) && o.has(r[r.length - 1]) && r.push(r.shift())
+ var i = []
return (
n.forEach(function (e) {
- r.includes(e) && o.push(e)
+ r.includes(e) && i.push(e)
}),
- o
+ i
)
})
var u = function () {
@@ -38450,39 +54021,39 @@
var e,
t,
n,
- i = this.portals,
- o = [],
+ o = this.portals,
+ i = [],
a = 0,
s = 0,
u = 0
- ;(t = i[0].left), (n = i[0].right), o.push((e = i[0].left))
- for (var l = 1; l < i.length; l++) {
- var c = i[l].left,
- d = i[l].right
+ ;(t = o[0].left), (n = o[0].right), i.push((e = o[0].left))
+ for (var c = 1; c < o.length; c++) {
+ var l = o[c].left,
+ d = o[c].right
if (r.triarea2(e, n, d) <= 0) {
if (!(r.vequal(e, n) || r.triarea2(e, t, d) > 0)) {
- o.push(t), (t = e = t), (n = e), (s = a = s), (u = a), (l = a)
+ i.push(t), (t = e = t), (n = e), (s = a = s), (u = a), (c = a)
continue
}
- ;(n = d), (u = l)
+ ;(n = d), (u = c)
}
- if (r.triarea2(e, t, c) >= 0) {
- if (!(r.vequal(e, t) || r.triarea2(e, n, c) < 0)) {
- o.push(n), (t = e = n), (n = e), (s = a = u), (u = a), (l = a)
+ if (r.triarea2(e, t, l) >= 0) {
+ if (!(r.vequal(e, t) || r.triarea2(e, n, l) < 0)) {
+ i.push(n), (t = e = n), (n = e), (s = a = u), (u = a), (c = a)
continue
}
- ;(t = c), (s = l)
+ ;(t = l), (s = c)
}
}
return (
- (0 !== o.length && r.vequal(o[o.length - 1], i[i.length - 1].left)) ||
- o.push(i[i.length - 1].left),
- (this.path = o),
- o
+ (0 !== i.length && r.vequal(i[i.length - 1], o[o.length - 1].left)) ||
+ i.push(o[o.length - 1].left),
+ (this.path = i),
+ i
)
})
- var l,
- c,
+ var c,
+ l,
d,
f,
h,
@@ -38499,60 +54070,60 @@
(v.prototype.getGroup = function (e, t) {
if (!this.zones[e]) return null
var n = null,
- i = Math.pow(50, 2)
+ o = Math.pow(50, 2)
return (
- this.zones[e].groups.forEach(function (e, o) {
+ this.zones[e].groups.forEach(function (e, i) {
e.forEach(function (e) {
var a = r.distanceToSquared(e.centroid, t)
- a < i && ((n = o), (i = a))
+ a < o && ((n = i), (o = a))
})
}),
n
)
}),
- (v.prototype.getRandomNode = function (e, t, n, i) {
+ (v.prototype.getRandomNode = function (e, t, n, o) {
if (!this.zones[e]) return new THREE.Vector3()
- ;(n = n || null), (i = i || 0)
- var o = []
+ ;(n = n || null), (o = o || 0)
+ var i = []
return (
this.zones[e].groups[t].forEach(function (e) {
- n && i
- ? r.distanceToSquared(n, e.centroid) < i * i && o.push(e.centroid)
- : o.push(e.centroid)
+ n && o
+ ? r.distanceToSquared(n, e.centroid) < o * o && i.push(e.centroid)
+ : i.push(e.centroid)
}),
- r.sample(o) || new THREE.Vector3()
+ r.sample(i) || new THREE.Vector3()
)
}),
- (v.prototype.getClosestNode = function (e, t, n, i) {
- void 0 === i && (i = !1)
- var o = this.zones[t].vertices,
+ (v.prototype.getClosestNode = function (e, t, n, o) {
+ void 0 === o && (o = !1)
+ var i = this.zones[t].vertices,
a = null,
s = 1 / 0
return (
this.zones[t].groups[n].forEach(function (t) {
var n = r.distanceToSquared(t.centroid, e)
- n < s && (!i || r.isVectorInPolygon(e, t, o)) && ((a = t), (s = n))
+ n < s && (!o || r.isVectorInPolygon(e, t, i)) && ((a = t), (s = n))
}),
a
)
}),
(v.prototype.findPath = function (e, t, n, r) {
- var i = this.zones[n].groups[r],
+ var o = this.zones[n].groups[r],
a = this.zones[n].vertices,
s = this.getClosestNode(e, n, r),
- l = this.getClosestNode(t, n, r, !0)
- if (!s || !l) return null
- var c = o.search(i, s, l),
+ c = this.getClosestNode(t, n, r, !0)
+ if (!s || !c) return null
+ var l = i.search(o, s, c),
d = function (e, t) {
for (var n = 0; n < e.neighbours.length; n++)
if (e.neighbours[n] === t.id) return e.portals[n]
},
f = new u()
f.push(e)
- for (var h = 0; h < c.length; h++) {
- var p = c[h + 1]
+ for (var h = 0; h < l.length; h++) {
+ var p = l[h + 1]
if (p) {
- var v = d(c[h], p)
+ var v = d(l[h], p)
f.push(a[v[0]], a[v[1]])
}
}
@@ -38567,22 +54138,22 @@
(f = new THREE.Plane()),
(h = new THREE.Triangle()),
(p = new THREE.Vector3()),
- function (e, t, n, r, i, o) {
+ function (e, t, n, r, o, i) {
var a = this.zones[r].vertices,
- s = this.zones[r].groups[i],
+ s = this.zones[r].groups[o],
u = [n],
v = {}
;(v[n.id] = 0),
- (l = void 0),
+ (c = void 0),
p.set(0, 0, 0),
- (c = 1 / 0),
+ (l = 1 / 0),
f.setFromCoplanarPoints(a[n.vertexIds[0]], a[n.vertexIds[1]], a[n.vertexIds[2]]),
f.projectPoint(t, d),
t.copy(d)
for (var m = u.pop(); m; m = u.pop()) {
h.set(a[m.vertexIds[0]], a[m.vertexIds[1]], a[m.vertexIds[2]]),
h.closestPointToPoint(t, d),
- d.distanceToSquared(t) < c && ((l = m), p.copy(d), (c = d.distanceToSquared(t)))
+ d.distanceToSquared(t) < l && ((c = m), p.copy(d), (l = d.distanceToSquared(t)))
var g = v[m]
if (!(g > 2))
for (var y = 0; y < m.neighbours.length; y++) {
@@ -38590,16 +54161,16 @@
b.id in v || (u.push(b), (v[b.id] = g + 1))
}
}
- return o.copy(p), l
+ return i.copy(p), c
}))
},
- 1122: function (e, t, n) {
+ 31122: function (e, t, n) {
'use strict'
var r = n(2212)
- function i(e, t) {
+ function o(e, t) {
if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function')
}
- function o(e, t) {
+ function i(e, t) {
for (var n = 0; n < t.length; n++) {
var r = t[n]
;(r.enumerable = r.enumerable || !1),
@@ -38633,7 +54204,7 @@
})(e)
: t
}
- function l(e) {
+ function c(e) {
var t = (function () {
if ('undefined' === typeof Reflect || !Reflect.construct) return !1
if (Reflect.construct.sham) return !1
@@ -38650,13 +54221,13 @@
var n,
r = a(e)
if (t) {
- var i = a(this).constructor
- n = Reflect.construct(r, arguments, i)
+ var o = a(this).constructor
+ n = Reflect.construct(r, arguments, o)
} else n = r.apply(this, arguments)
return u(this, n)
}
}
- function c(e, t) {
+ function l(e, t) {
return (
(function (e) {
if (Array.isArray(e)) return e
@@ -38665,26 +54236,26 @@
var n = e && (('undefined' !== typeof Symbol && e[Symbol.iterator]) || e['@@iterator'])
if (null == n) return
var r,
- i,
- o = [],
+ o,
+ i = [],
a = !0,
s = !1
try {
for (
n = n.call(e);
- !(a = (r = n.next()).done) && (o.push(r.value), !t || o.length !== t);
+ !(a = (r = n.next()).done) && (i.push(r.value), !t || i.length !== t);
a = !0
);
} catch (u) {
- ;(s = !0), (i = u)
+ ;(s = !0), (o = u)
} finally {
try {
a || null == n.return || n.return()
} finally {
- if (s) throw i
+ if (s) throw o
}
}
- return o
+ return i
})(e, t) ||
f(e, t) ||
(function () {
@@ -38749,7 +54320,7 @@
var t,
n,
r,
- a = l(u)
+ a = c(u)
function u() {
var e,
t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '',
@@ -38759,7 +54330,7 @@
? arguments[2]
: 'rgba(255, 255, 255, 1)'
return (
- i(this, u),
+ o(this, u),
((e = a.call(this, new p.SpriteMaterial({ map: new p.Texture() })))._text = ''.concat(
t,
)),
@@ -38911,10 +54482,10 @@
r = Array.isArray(this.borderWidth)
? this.borderWidth
: [this.borderWidth, this.borderWidth],
- i = r.map(function (t) {
+ o = r.map(function (t) {
return t * e.fontSize * 0.1
}),
- o = (
+ i = (
Array.isArray(this.borderRadius)
? this.borderRadius
: [
@@ -38931,11 +54502,11 @@
return t * e.fontSize * 0.1
}),
u = this.text.split('\n'),
- l = ''
+ c = ''
.concat(this.fontWeight, ' ')
.concat(this.fontSize, 'px ')
.concat(this.fontFace)
- n.font = l
+ n.font = c
var f = Math.max.apply(
Math,
d(
@@ -38946,51 +54517,51 @@
),
h = this.fontSize * u.length
if (
- ((t.width = f + 2 * i[0] + 2 * s[0]),
- (t.height = h + 2 * i[1] + 2 * s[1]),
+ ((t.width = f + 2 * o[0] + 2 * s[0]),
+ (t.height = h + 2 * o[1] + 2 * s[1]),
this.borderWidth)
) {
- if (((n.strokeStyle = this.borderColor), i[0])) {
- var p = i[0] / 2
- ;(n.lineWidth = i[0]),
+ if (((n.strokeStyle = this.borderColor), o[0])) {
+ var p = o[0] / 2
+ ;(n.lineWidth = o[0]),
n.beginPath(),
- n.moveTo(p, o[0]),
- n.lineTo(p, t.height - o[3]),
- n.moveTo(t.width - p, o[1]),
- n.lineTo(t.width - p, t.height - o[2]),
+ n.moveTo(p, i[0]),
+ n.lineTo(p, t.height - i[3]),
+ n.moveTo(t.width - p, i[1]),
+ n.lineTo(t.width - p, t.height - i[2]),
n.stroke()
}
- if (i[1]) {
- var v = i[1] / 2
- ;(n.lineWidth = i[1]),
+ if (o[1]) {
+ var v = o[1] / 2
+ ;(n.lineWidth = o[1]),
n.beginPath(),
- n.moveTo(Math.max(i[0], o[0]), v),
- n.lineTo(t.width - Math.max(i[0], o[1]), v),
- n.moveTo(Math.max(i[0], o[3]), t.height - v),
- n.lineTo(t.width - Math.max(i[0], o[2]), t.height - v),
+ n.moveTo(Math.max(o[0], i[0]), v),
+ n.lineTo(t.width - Math.max(o[0], i[1]), v),
+ n.moveTo(Math.max(o[0], i[3]), t.height - v),
+ n.lineTo(t.width - Math.max(o[0], i[2]), t.height - v),
n.stroke()
}
if (this.borderRadius) {
- var m = Math.max.apply(Math, d(i)),
+ var m = Math.max.apply(Math, d(o)),
g = m / 2
;(n.lineWidth = m),
n.beginPath(),
[
- !!o[0] && [o[0], g, g, o[0]],
- !!o[1] && [t.width - o[1], t.width - g, g, o[1]],
- !!o[2] && [t.width - o[2], t.width - g, t.height - g, t.height - o[2]],
- !!o[3] && [o[3], g, t.height - g, t.height - o[3]],
+ !!i[0] && [i[0], g, g, i[0]],
+ !!i[1] && [t.width - i[1], t.width - g, g, i[1]],
+ !!i[2] && [t.width - i[2], t.width - g, t.height - g, t.height - i[2]],
+ !!i[3] && [i[3], g, t.height - g, t.height - i[3]],
]
.filter(function (e) {
return e
})
.forEach(function (e) {
- var t = c(e, 4),
+ var t = l(e, 4),
r = t[0],
- i = t[1],
- o = t[2],
+ o = t[1],
+ i = t[2],
a = t[3]
- n.moveTo(r, o), n.quadraticCurveTo(i, o, i, a)
+ n.moveTo(r, i), n.quadraticCurveTo(o, i, o, a)
}),
n.stroke()
}
@@ -38999,42 +54570,42 @@
((n.fillStyle = this.backgroundColor),
this.borderRadius
? (n.beginPath(),
- n.moveTo(i[0], o[0]),
+ n.moveTo(o[0], i[0]),
[
- [i[0], o[0], t.width - o[1], i[1], i[1], i[1]],
+ [o[0], i[0], t.width - i[1], o[1], o[1], o[1]],
[
- t.width - i[0],
- t.width - i[0],
- t.width - i[0],
- i[1],
+ t.width - o[0],
+ t.width - o[0],
+ t.width - o[0],
o[1],
- t.height - o[2],
+ i[1],
+ t.height - i[2],
],
[
- t.width - i[0],
- t.width - o[2],
- o[3],
- t.height - i[1],
- t.height - i[1],
- t.height - i[1],
+ t.width - o[0],
+ t.width - i[2],
+ i[3],
+ t.height - o[1],
+ t.height - o[1],
+ t.height - o[1],
],
- [i[0], i[0], i[0], t.height - i[1], t.height - o[3], o[0]],
+ [o[0], o[0], o[0], t.height - o[1], t.height - i[3], i[0]],
].forEach(function (e) {
- var t = c(e, 6),
+ var t = l(e, 6),
r = t[0],
- i = t[1],
- o = t[2],
+ o = t[1],
+ i = t[2],
a = t[3],
s = t[4],
u = t[5]
- n.quadraticCurveTo(r, a, i, s), n.lineTo(o, u)
+ n.quadraticCurveTo(r, a, o, s), n.lineTo(i, u)
}),
n.closePath(),
n.fill())
- : n.fillRect(i[0], i[1], t.width - 2 * i[0], t.height - 2 * i[1])),
- n.translate.apply(n, d(i)),
+ : n.fillRect(o[0], o[1], t.width - 2 * o[0], t.height - 2 * o[1])),
+ n.translate.apply(n, d(o)),
n.translate.apply(n, d(s)),
- (n.font = l),
+ (n.font = c),
(n.fillStyle = this.color),
(n.textBaseline = 'bottom')
var y = this.strokeWidth > 0
@@ -39042,9 +54613,9 @@
((n.lineWidth = (this.strokeWidth * this.fontSize) / 10),
(n.strokeStyle = this.strokeColor)),
u.forEach(function (t, r) {
- var i = (f - n.measureText(t).width) / 2,
- o = (r + 1) * e.fontSize
- y && n.strokeText(t, i, o), n.fillText(t, i, o)
+ var o = (f - n.measureText(t).width) / 2,
+ i = (r + 1) * e.fontSize
+ y && n.strokeText(t, o, i), n.fillText(t, o, i)
}),
(this._texture.image = t),
(this._texture.needsUpdate = !0)
@@ -39077,8 +54648,8 @@
)
},
},
- ]) && o(t.prototype, n),
- r && o(t, r),
+ ]) && i(t.prototype, n),
+ r && i(t, r),
u
)
})(p.Sprite)
@@ -39092,21 +54663,21 @@
})
}
},
- 1788: function (e) {
+ 71788: function (e) {
e.exports = function (e) {
return t.test(e)
? e.toLowerCase()
: n.test(e)
? (
(function (e) {
- return e.replace(i, function (e, t) {
+ return e.replace(o, function (e, t) {
return t ? ' ' + t : ''
})
})(e) || e
).toLowerCase()
: r.test(e)
? (function (e) {
- return e.replace(o, function (e, t, n) {
+ return e.replace(i, function (e, t, n) {
return t + ' ' + n.toLowerCase().split('').join(' ')
})
})(e).toLowerCase()
@@ -39115,11 +54686,11 @@
var t = /\s/,
n = /(_|-|\.|:)/,
r = /([a-z][A-Z]|[A-Z][a-z])/
- var i = /[\W_]+(.|$)/g
- var o = /(.)([A-Z]+)/g
+ var o = /[\W_]+(.|$)/g
+ var i = /(.)([A-Z]+)/g
},
7966: function (e, t, n) {
- var r = n(1788)
+ var r = n(71788)
e.exports = function (e) {
return r(e)
.replace(/[\W_]+(.|$)/g, function (e, t) {
@@ -39128,5 +54699,495 @@
.trim()
}
},
+ 11742: function (e) {
+ e.exports = function () {
+ var e = document.getSelection()
+ if (!e.rangeCount) return function () {}
+ for (var t = document.activeElement, n = [], r = 0; r < e.rangeCount; r++)
+ n.push(e.getRangeAt(r))
+ switch (t.tagName.toUpperCase()) {
+ case 'INPUT':
+ case 'TEXTAREA':
+ t.blur()
+ break
+ default:
+ t = null
+ }
+ return (
+ e.removeAllRanges(),
+ function () {
+ 'Caret' === e.type && e.removeAllRanges(),
+ e.rangeCount ||
+ n.forEach(function (t) {
+ e.addRange(t)
+ }),
+ t && t.focus()
+ }
+ )
+ }
+ },
+ 70655: function (e, t, n) {
+ 'use strict'
+ n.r(t),
+ n.d(t, {
+ __extends: function () {
+ return o
+ },
+ __assign: function () {
+ return i
+ },
+ __rest: function () {
+ return a
+ },
+ __decorate: function () {
+ return s
+ },
+ __param: function () {
+ return u
+ },
+ __metadata: function () {
+ return c
+ },
+ __awaiter: function () {
+ return l
+ },
+ __generator: function () {
+ return d
+ },
+ __createBinding: function () {
+ return f
+ },
+ __exportStar: function () {
+ return h
+ },
+ __values: function () {
+ return p
+ },
+ __read: function () {
+ return v
+ },
+ __spread: function () {
+ return m
+ },
+ __spreadArrays: function () {
+ return g
+ },
+ __spreadArray: function () {
+ return y
+ },
+ __await: function () {
+ return b
+ },
+ __asyncGenerator: function () {
+ return w
+ },
+ __asyncDelegator: function () {
+ return _
+ },
+ __asyncValues: function () {
+ return x
+ },
+ __makeTemplateObject: function () {
+ return k
+ },
+ __importStar: function () {
+ return O
+ },
+ __importDefault: function () {
+ return T
+ },
+ __classPrivateFieldGet: function () {
+ return C
+ },
+ __classPrivateFieldSet: function () {
+ return M
+ },
+ })
+ var r = function (e, t) {
+ return (r =
+ Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array &&
+ function (e, t) {
+ e.__proto__ = t
+ }) ||
+ function (e, t) {
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
+ })(e, t)
+ }
+ function o(e, t) {
+ if ('function' !== typeof t && null !== t)
+ throw new TypeError('Class extends value ' + String(t) + ' is not a constructor or null')
+ function n() {
+ this.constructor = e
+ }
+ r(e, t),
+ (e.prototype = null === t ? Object.create(t) : ((n.prototype = t.prototype), new n()))
+ }
+ var i = function () {
+ return (i =
+ Object.assign ||
+ function (e) {
+ for (var t, n = 1, r = arguments.length; n < r; n++)
+ for (var o in (t = arguments[n]))
+ Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o])
+ return e
+ }).apply(this, arguments)
+ }
+ function a(e, t) {
+ var n = {}
+ for (var r in e)
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r])
+ if (null != e && 'function' === typeof Object.getOwnPropertySymbols) {
+ var o = 0
+ for (r = Object.getOwnPropertySymbols(e); o < r.length; o++)
+ t.indexOf(r[o]) < 0 &&
+ Object.prototype.propertyIsEnumerable.call(e, r[o]) &&
+ (n[r[o]] = e[r[o]])
+ }
+ return n
+ }
+ function s(e, t, n, r) {
+ var o,
+ i = arguments.length,
+ a = i < 3 ? t : null === r ? (r = Object.getOwnPropertyDescriptor(t, n)) : r
+ if ('object' === typeof Reflect && 'function' === typeof Reflect.decorate)
+ a = Reflect.decorate(e, t, n, r)
+ else
+ for (var s = e.length - 1; s >= 0; s--)
+ (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a)
+ return i > 3 && a && Object.defineProperty(t, n, a), a
+ }
+ function u(e, t) {
+ return function (n, r) {
+ t(n, r, e)
+ }
+ }
+ function c(e, t) {
+ if ('object' === typeof Reflect && 'function' === typeof Reflect.metadata)
+ return Reflect.metadata(e, t)
+ }
+ function l(e, t, n, r) {
+ return new (n || (n = Promise))(function (o, i) {
+ function a(e) {
+ try {
+ u(r.next(e))
+ } catch (t) {
+ i(t)
+ }
+ }
+ function s(e) {
+ try {
+ u(r.throw(e))
+ } catch (t) {
+ i(t)
+ }
+ }
+ function u(e) {
+ var t
+ e.done
+ ? o(e.value)
+ : ((t = e.value),
+ t instanceof n
+ ? t
+ : new n(function (e) {
+ e(t)
+ })).then(a, s)
+ }
+ u((r = r.apply(e, t || [])).next())
+ })
+ }
+ function d(e, t) {
+ var n,
+ r,
+ o,
+ i,
+ a = {
+ label: 0,
+ sent: function () {
+ if (1 & o[0]) throw o[1]
+ return o[1]
+ },
+ trys: [],
+ ops: [],
+ }
+ return (
+ (i = { next: s(0), throw: s(1), return: s(2) }),
+ 'function' === typeof Symbol &&
+ (i[Symbol.iterator] = function () {
+ return this
+ }),
+ i
+ )
+ function s(i) {
+ return function (s) {
+ return (function (i) {
+ if (n) throw new TypeError('Generator is already executing.')
+ for (; a; )
+ try {
+ if (
+ ((n = 1),
+ r &&
+ (o =
+ 2 & i[0]
+ ? r.return
+ : i[0]
+ ? r.throw || ((o = r.return) && o.call(r), 0)
+ : r.next) &&
+ !(o = o.call(r, i[1])).done)
+ )
+ return o
+ switch (((r = 0), o && (i = [2 & i[0], o.value]), i[0])) {
+ case 0:
+ case 1:
+ o = i
+ break
+ case 4:
+ return a.label++, { value: i[1], done: !1 }
+ case 5:
+ a.label++, (r = i[1]), (i = [0])
+ continue
+ case 7:
+ ;(i = a.ops.pop()), a.trys.pop()
+ continue
+ default:
+ if (
+ !(o = (o = a.trys).length > 0 && o[o.length - 1]) &&
+ (6 === i[0] || 2 === i[0])
+ ) {
+ a = 0
+ continue
+ }
+ if (3 === i[0] && (!o || (i[1] > o[0] && i[1] < o[3]))) {
+ a.label = i[1]
+ break
+ }
+ if (6 === i[0] && a.label < o[1]) {
+ ;(a.label = o[1]), (o = i)
+ break
+ }
+ if (o && a.label < o[2]) {
+ ;(a.label = o[2]), a.ops.push(i)
+ break
+ }
+ o[2] && a.ops.pop(), a.trys.pop()
+ continue
+ }
+ i = t.call(e, a)
+ } catch (s) {
+ ;(i = [6, s]), (r = 0)
+ } finally {
+ n = o = 0
+ }
+ if (5 & i[0]) throw i[1]
+ return { value: i[0] ? i[1] : void 0, done: !0 }
+ })([i, s])
+ }
+ }
+ }
+ var f = Object.create
+ ? function (e, t, n, r) {
+ void 0 === r && (r = n),
+ Object.defineProperty(e, r, {
+ enumerable: !0,
+ get: function () {
+ return t[n]
+ },
+ })
+ }
+ : function (e, t, n, r) {
+ void 0 === r && (r = n), (e[r] = t[n])
+ }
+ function h(e, t) {
+ for (var n in e) 'default' === n || Object.prototype.hasOwnProperty.call(t, n) || f(t, e, n)
+ }
+ function p(e) {
+ var t = 'function' === typeof Symbol && Symbol.iterator,
+ n = t && e[t],
+ r = 0
+ if (n) return n.call(e)
+ if (e && 'number' === typeof e.length)
+ return {
+ next: function () {
+ return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }
+ },
+ }
+ throw new TypeError(t ? 'Object is not iterable.' : 'Symbol.iterator is not defined.')
+ }
+ function v(e, t) {
+ var n = 'function' === typeof Symbol && e[Symbol.iterator]
+ if (!n) return e
+ var r,
+ o,
+ i = n.call(e),
+ a = []
+ try {
+ for (; (void 0 === t || t-- > 0) && !(r = i.next()).done; ) a.push(r.value)
+ } catch (s) {
+ o = { error: s }
+ } finally {
+ try {
+ r && !r.done && (n = i.return) && n.call(i)
+ } finally {
+ if (o) throw o.error
+ }
+ }
+ return a
+ }
+ function m() {
+ for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(v(arguments[t]))
+ return e
+ }
+ function g() {
+ for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length
+ var r = Array(e),
+ o = 0
+ for (t = 0; t < n; t++)
+ for (var i = arguments[t], a = 0, s = i.length; a < s; a++, o++) r[o] = i[a]
+ return r
+ }
+ function y(e, t, n) {
+ if (n || 2 === arguments.length)
+ for (var r, o = 0, i = t.length; o < i; o++)
+ (!r && o in t) || (r || (r = Array.prototype.slice.call(t, 0, o)), (r[o] = t[o]))
+ return e.concat(r || t)
+ }
+ function b(e) {
+ return this instanceof b ? ((this.v = e), this) : new b(e)
+ }
+ function w(e, t, n) {
+ if (!Symbol.asyncIterator) throw new TypeError('Symbol.asyncIterator is not defined.')
+ var r,
+ o = n.apply(e, t || []),
+ i = []
+ return (
+ (r = {}),
+ a('next'),
+ a('throw'),
+ a('return'),
+ (r[Symbol.asyncIterator] = function () {
+ return this
+ }),
+ r
+ )
+ function a(e) {
+ o[e] &&
+ (r[e] = function (t) {
+ return new Promise(function (n, r) {
+ i.push([e, t, n, r]) > 1 || s(e, t)
+ })
+ })
+ }
+ function s(e, t) {
+ try {
+ ;(n = o[e](t)).value instanceof b
+ ? Promise.resolve(n.value.v).then(u, c)
+ : l(i[0][2], n)
+ } catch (r) {
+ l(i[0][3], r)
+ }
+ var n
+ }
+ function u(e) {
+ s('next', e)
+ }
+ function c(e) {
+ s('throw', e)
+ }
+ function l(e, t) {
+ e(t), i.shift(), i.length && s(i[0][0], i[0][1])
+ }
+ }
+ function _(e) {
+ var t, n
+ return (
+ (t = {}),
+ r('next'),
+ r('throw', function (e) {
+ throw e
+ }),
+ r('return'),
+ (t[Symbol.iterator] = function () {
+ return this
+ }),
+ t
+ )
+ function r(r, o) {
+ t[r] = e[r]
+ ? function (t) {
+ return (n = !n) ? { value: b(e[r](t)), done: 'return' === r } : o ? o(t) : t
+ }
+ : o
+ }
+ }
+ function x(e) {
+ if (!Symbol.asyncIterator) throw new TypeError('Symbol.asyncIterator is not defined.')
+ var t,
+ n = e[Symbol.asyncIterator]
+ return n
+ ? n.call(e)
+ : ((e = p(e)),
+ (t = {}),
+ r('next'),
+ r('throw'),
+ r('return'),
+ (t[Symbol.asyncIterator] = function () {
+ return this
+ }),
+ t)
+ function r(n) {
+ t[n] =
+ e[n] &&
+ function (t) {
+ return new Promise(function (r, o) {
+ ;(function (e, t, n, r) {
+ Promise.resolve(r).then(function (t) {
+ e({ value: t, done: n })
+ }, t)
+ })(r, o, (t = e[n](t)).done, t.value)
+ })
+ }
+ }
+ }
+ function k(e, t) {
+ return (
+ Object.defineProperty ? Object.defineProperty(e, 'raw', { value: t }) : (e.raw = t), e
+ )
+ }
+ var E = Object.create
+ ? function (e, t) {
+ Object.defineProperty(e, 'default', { enumerable: !0, value: t })
+ }
+ : function (e, t) {
+ e.default = t
+ }
+ function O(e) {
+ if (e && e.__esModule) return e
+ var t = {}
+ if (null != e)
+ for (var n in e)
+ 'default' !== n && Object.prototype.hasOwnProperty.call(e, n) && f(t, e, n)
+ return E(t, e), t
+ }
+ function T(e) {
+ return e && e.__esModule ? e : { default: e }
+ }
+ function C(e, t, n, r) {
+ if ('a' === n && !r) throw new TypeError('Private accessor was defined without a getter')
+ if ('function' === typeof t ? e !== t || !r : !t.has(e))
+ throw new TypeError(
+ 'Cannot read private member from an object whose class did not declare it',
+ )
+ return 'm' === n ? r : 'a' === n ? r.call(e) : r ? r.value : t.get(e)
+ }
+ function M(e, t, n, r, o) {
+ if ('m' === r) throw new TypeError('Private method is not writable')
+ if ('a' === r && !o) throw new TypeError('Private accessor was defined without a setter')
+ if ('function' === typeof t ? e !== t || !o : !t.has(e))
+ throw new TypeError(
+ 'Cannot write private member to an object whose class did not declare it',
+ )
+ return 'a' === r ? o.call(e, n) : o ? (o.value = n) : t.set(e, n), n
+ }
+ },
},
])
diff --git a/out/_next/static/chunks/4.2dee5d830195ddd06029.js b/out/_next/static/chunks/4.c9fdfbcb8f8ce1720633.js
index 2ac8ca9..bab1abb 100644
--- a/out/_next/static/chunks/4.2dee5d830195ddd06029.js
+++ b/out/_next/static/chunks/4.c9fdfbcb8f8ce1720633.js
@@ -1,7 +1,7 @@
;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[4],
{
- 7004: function (n, t, r) {
+ 57004: function (n, t, r) {
'use strict'
r.r(t),
r.d(t, {
@@ -33,11 +33,11 @@
return x
},
})
- var i = r(216),
- e = r(4275),
- f = r(54),
- u = r(8357),
- o = r(9437),
+ var i = r(20216),
+ e = r(14275),
+ f = r(60054),
+ u = r(78357),
+ o = r(29437),
c = r(8246)
function a(n) {
return n.x + n.vx
@@ -155,10 +155,10 @@
g
)
}
- var h = r(5560),
- Z = r(2405),
- g = r(6917),
- s = r(4505)
+ var h = r(15560),
+ Z = r(92405),
+ g = r(16917),
+ s = r(54505)
function d(n) {
var t,
r,
diff --git a/out/_next/static/chunks/d25bd147-65fcc4c92edba8b370fb.js b/out/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js
index 0cc331b..cfa0349 100644
--- a/out/_next/static/chunks/d25bd147-65fcc4c92edba8b370fb.js
+++ b/out/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js
@@ -1,7 +1,7 @@
;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[446],
{
- 5569: function (t, n, r) {
+ 75569: function (t, n, r) {
t.exports = (function () {
var t
return (function () {
diff --git a/out/_next/static/chunks/framework-2191d16384373197bc0a.js b/out/_next/static/chunks/framework-2f612445bd50b211f15a.js
index 8fb17c4..c81bb9d 100644
--- a/out/_next/static/chunks/framework-2191d16384373197bc0a.js
+++ b/out/_next/static/chunks/framework-2f612445bd50b211f15a.js
@@ -1,9 +1,9 @@
;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[774],
{
- 2703: function (e, t, n) {
+ 92703: function (e, t, n) {
'use strict'
- var r = n(414)
+ var r = n(50414)
function l() {}
function a() {}
;(a.resetWarningCache = l),
@@ -45,18 +45,18 @@
return (n.PropTypes = n), n
})
},
- 5697: function (e, t, n) {
- e.exports = n(2703)()
+ 45697: function (e, t, n) {
+ e.exports = n(92703)()
},
- 414: function (e) {
+ 50414: function (e) {
'use strict'
e.exports = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'
},
- 4448: function (e, t, n) {
+ 64448: function (e, t, n) {
'use strict'
- var r = n(7294),
- l = n(6086),
- a = n(3840)
+ var r = n(67294),
+ l = n(96086),
+ a = n(63840)
function o(e) {
for (
var t = 'https://reactjs.org/docs/error-decoder.html?invariant=' + e, n = 1;
@@ -7018,7 +7018,7 @@
}),
(t.version = '17.0.2')
},
- 3935: function (e, t, n) {
+ 73935: function (e, t, n) {
'use strict'
!(function e() {
if (
@@ -7031,12 +7031,12 @@
console.error(t)
}
})(),
- (e.exports = n(4448))
+ (e.exports = n(64448))
},
- 5251: function (e, t, n) {
+ 75251: function (e, t, n) {
'use strict'
- n(6086)
- var r = n(7294),
+ n(96086)
+ var r = n(67294),
l = 60103
if (((t.Fragment = 60107), 'function' === typeof Symbol && Symbol.for)) {
var a = Symbol.for
@@ -7060,9 +7060,9 @@
}
;(t.jsx = s), (t.jsxs = s)
},
- 2408: function (e, t, n) {
+ 72408: function (e, t, n) {
'use strict'
- var r = n(6086),
+ var r = n(96086),
l = 60103,
a = 60106
;(t.Fragment = 60107), (t.StrictMode = 60108), (t.Profiler = 60114)
@@ -7414,15 +7414,15 @@
}),
(t.version = '17.0.2')
},
- 7294: function (e, t, n) {
+ 67294: function (e, t, n) {
'use strict'
- e.exports = n(2408)
+ e.exports = n(72408)
},
- 5893: function (e, t, n) {
+ 85893: function (e, t, n) {
'use strict'
- e.exports = n(5251)
+ e.exports = n(75251)
},
- 53: function (e, t) {
+ 60053: function (e, t) {
'use strict'
var n, r, l, a
if ('object' === typeof performance && 'function' === typeof performance.now) {
@@ -7725,9 +7725,9 @@
}
})
},
- 3840: function (e, t, n) {
+ 63840: function (e, t, n) {
'use strict'
- e.exports = n(53)
+ e.exports = n(60053)
},
},
])
diff --git a/out/_next/static/chunks/main-1b0f1fd287f08bad6012.js b/out/_next/static/chunks/main-ae68c11529959c16c50f.js
index fa9a977..dd7c4e9 100644
--- a/out/_next/static/chunks/main-1b0f1fd287f08bad6012.js
+++ b/out/_next/static/chunks/main-ae68c11529959c16c50f.js
@@ -1,292 +1,7 @@
;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[179],
{
- 7228: function (e) {
- e.exports = function (e, t) {
- ;(null == t || t > e.length) && (t = e.length)
- for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]
- return n
- }
- },
- 2858: function (e) {
- e.exports = function (e) {
- if (Array.isArray(e)) return e
- }
- },
- 1506: function (e) {
- e.exports = function (e) {
- if (void 0 === e)
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
- return e
- }
- },
- 8926: function (e) {
- function t(e, t, r, n, o, a, i) {
- try {
- var u = e[a](i),
- c = u.value
- } catch (s) {
- return void r(s)
- }
- u.done ? t(c) : Promise.resolve(c).then(n, o)
- }
- e.exports = function (e) {
- return function () {
- var r = this,
- n = arguments
- return new Promise(function (o, a) {
- var i = e.apply(r, n)
- function u(e) {
- t(i, o, a, u, c, 'next', e)
- }
- function c(e) {
- t(i, o, a, u, c, 'throw', e)
- }
- u(void 0)
- })
- }
- }
- },
- 4575: function (e) {
- e.exports = function (e, t) {
- if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function')
- }
- },
- 9100: function (e, t, r) {
- var n = r(9489),
- o = r(7067)
- function a(t, r, i) {
- return (
- o()
- ? (e.exports = a = Reflect.construct)
- : (e.exports = a =
- function (e, t, r) {
- var o = [null]
- o.push.apply(o, t)
- var a = new (Function.bind.apply(e, o))()
- return r && n(a, r.prototype), a
- }),
- a.apply(null, arguments)
- )
- }
- e.exports = a
- },
- 3913: function (e) {
- function t(e, t) {
- for (var r = 0; r < t.length; r++) {
- var n = t[r]
- ;(n.enumerable = n.enumerable || !1),
- (n.configurable = !0),
- 'value' in n && (n.writable = !0),
- Object.defineProperty(e, n.key, n)
- }
- }
- e.exports = function (e, r, n) {
- return r && t(e.prototype, r), n && t(e, n), e
- }
- },
- 7154: function (e) {
- function t() {
- return (
- (e.exports = t =
- Object.assign ||
- function (e) {
- for (var t = 1; t < arguments.length; t++) {
- var r = arguments[t]
- for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n])
- }
- return e
- }),
- t.apply(this, arguments)
- )
- }
- e.exports = t
- },
- 9754: function (e) {
- function t(r) {
- return (
- (e.exports = t =
- Object.setPrototypeOf
- ? Object.getPrototypeOf
- : function (e) {
- return e.__proto__ || Object.getPrototypeOf(e)
- }),
- t(r)
- )
- }
- e.exports = t
- },
- 2205: function (e, t, r) {
- var n = r(9489)
- e.exports = function (e, t) {
- if ('function' !== typeof t && null !== t)
- throw new TypeError('Super expression must either be null or a function')
- ;(e.prototype = Object.create(t && t.prototype, {
- constructor: { value: e, writable: !0, configurable: !0 },
- })),
- t && n(e, t)
- }
- },
- 5318: function (e) {
- e.exports = function (e) {
- return e && e.__esModule ? e : { default: e }
- }
- },
- 862: function (e, t, r) {
- var n = r(8)
- function o() {
- if ('function' !== typeof WeakMap) return null
- var e = new WeakMap()
- return (
- (o = function () {
- return e
- }),
- e
- )
- }
- e.exports = function (e) {
- if (e && e.__esModule) return e
- if (null === e || ('object' !== n(e) && 'function' !== typeof e)) return { default: e }
- var t = o()
- if (t && t.has(e)) return t.get(e)
- var r = {},
- a = Object.defineProperty && Object.getOwnPropertyDescriptor
- for (var i in e)
- if (Object.prototype.hasOwnProperty.call(e, i)) {
- var u = a ? Object.getOwnPropertyDescriptor(e, i) : null
- u && (u.get || u.set) ? Object.defineProperty(r, i, u) : (r[i] = e[i])
- }
- return (r.default = e), t && t.set(e, r), r
- }
- },
- 7067: function (e) {
- e.exports = function () {
- if ('undefined' === typeof Reflect || !Reflect.construct) return !1
- if (Reflect.construct.sham) return !1
- if ('function' === typeof Proxy) return !0
- try {
- return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0
- } catch (e) {
- return !1
- }
- }
- },
- 3884: function (e) {
- e.exports = function (e, t) {
- if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) {
- var r = [],
- n = !0,
- o = !1,
- a = void 0
- try {
- for (
- var i, u = e[Symbol.iterator]();
- !(n = (i = u.next()).done) && (r.push(i.value), !t || r.length !== t);
- n = !0
- );
- } catch (c) {
- ;(o = !0), (a = c)
- } finally {
- try {
- n || null == u.return || u.return()
- } finally {
- if (o) throw a
- }
- }
- return r
- }
- }
- },
- 521: function (e) {
- e.exports = function () {
- throw new TypeError(
- 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
- )
- }
- },
- 7316: function (e) {
- e.exports = function (e, t) {
- if (null == e) return {}
- var r,
- n,
- o = {},
- a = Object.keys(e)
- for (n = 0; n < a.length; n++) (r = a[n]), t.indexOf(r) >= 0 || (o[r] = e[r])
- return o
- }
- },
- 8585: function (e, t, r) {
- var n = r(8),
- o = r(1506)
- e.exports = function (e, t) {
- return !t || ('object' !== n(t) && 'function' !== typeof t) ? o(e) : t
- }
- },
- 9489: function (e) {
- function t(r, n) {
- return (
- (e.exports = t =
- Object.setPrototypeOf ||
- function (e, t) {
- return (e.__proto__ = t), e
- }),
- t(r, n)
- )
- }
- e.exports = t
- },
- 3038: function (e, t, r) {
- var n = r(2858),
- o = r(3884),
- a = r(379),
- i = r(521)
- e.exports = function (e, t) {
- return n(e) || o(e, t) || a(e, t) || i()
- }
- },
- 8: function (e) {
- function t(r) {
- return (
- 'function' === typeof Symbol && 'symbol' === typeof Symbol.iterator
- ? (e.exports = t =
- function (e) {
- return typeof e
- })
- : (e.exports = t =
- function (e) {
- return e &&
- 'function' === typeof Symbol &&
- e.constructor === Symbol &&
- e !== Symbol.prototype
- ? 'symbol'
- : typeof e
- }),
- t(r)
- )
- }
- e.exports = t
- },
- 379: function (e, t, r) {
- var n = r(7228)
- e.exports = function (e, t) {
- if (e) {
- if ('string' === typeof e) return n(e, t)
- var r = Object.prototype.toString.call(e).slice(8, -1)
- return (
- 'Object' === r && e.constructor && (r = e.constructor.name),
- 'Map' === r || 'Set' === r
- ? Array.from(e)
- : 'Arguments' === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)
- ? n(e, t)
- : void 0
- )
- }
- }
- },
- 7757: function (e, t, r) {
- e.exports = r(5666)
- },
- 400: function () {
+ 60400: function () {
'trimStart' in String.prototype || (String.prototype.trimStart = String.prototype.trimLeft),
'trimEnd' in String.prototype || (String.prototype.trimEnd = String.prototype.trimRight),
'description' in Symbol.prototype ||
@@ -324,7 +39,7 @@
)
})
},
- 9204: function () {
+ 59204: function () {
'use strict'
try {
self['workbox:window:6.1.5'] && _()
@@ -689,7 +404,7 @@
})
}
},
- 6792: function (e, t) {
+ 96792: function (e, t) {
'use strict'
;(t.__esModule = !0),
(t.default = function () {
@@ -784,16 +499,16 @@
}
t.DOMAttributeNames = r
},
- 310: function (e, t, r) {
+ 20310: function (e, t, r) {
'use strict'
- var n = r(7757),
- o = r(8926),
- a = r(4575),
- i = r(3913),
- u = r(2205),
- c = r(8585),
- s = r(9754),
- l = r(3038)
+ var n = r(809),
+ o = r(38561),
+ a = r(2553),
+ i = r(62012),
+ u = r(9807),
+ c = r(27690),
+ s = r(99828),
+ l = r(53848)
function f(e) {
var t = (function () {
if ('undefined' === typeof Reflect || !Reflect.construct) return !1
@@ -815,30 +530,30 @@
return c(this, r)
}
}
- var h = r(862),
- p = r(5318)
+ var h = r(69448),
+ p = r(62426)
;(t.__esModule = !0),
(t.render = ue),
(t.renderError = se),
(t.default = t.emitter = t.router = t.version = void 0)
- var d = p(r(7154))
- r(400)
- var v = p(r(7294)),
- m = p(r(3935)),
- y = r(1165),
+ var d = p(r(9566))
+ r(60400)
+ var v = p(r(67294)),
+ m = p(r(73935)),
+ y = r(41165),
g = p(r(8119)),
- w = r(6171),
- b = r(9414),
- _ = r(8073),
- x = h(r(8187)),
- S = h(r(3584)),
- E = r(4755),
- P = r(6579),
- k = p(r(6792)),
- L = p(r(7145)),
- R = p(r(9934)),
- C = r(8475),
- T = r(4651),
+ w = r(36171),
+ b = r(29414),
+ _ = r(88073),
+ x = h(r(68187)),
+ S = h(r(53584)),
+ E = r(24755),
+ P = r(86579),
+ k = p(r(96792)),
+ L = p(r(47145)),
+ R = p(r(59934)),
+ C = r(48475),
+ T = r(34651),
A = JSON.parse(document.getElementById('__NEXT_DATA__').textContent)
window.__NEXT_DATA__ = A
t.version = '11.0.1'
@@ -864,7 +579,7 @@
S.setConfig({ serverRuntimeConfig: {}, publicRuntimeConfig: U || {} })
var $ = (0, E.getURL)()
;((0, b.hasBasePath)($) && ($ = (0, b.delBasePath)($)), A.scriptLoader) &&
- (0, r(7926).initScriptLoader)(A.scriptLoader)
+ (0, r(37926).initScriptLoader)(A.scriptLoader)
var Q = new L.default(D, z),
Y = function (e) {
var t = l(e, 2),
@@ -1339,12 +1054,12 @@
)
}
},
- 457: function (e, t, r) {
+ 20457: function (e, t, r) {
'use strict'
- var n = r(862)(r(310))
+ var n = r(69448)(r(20310))
;(window.next = n), (0, n.default)().catch(console.error)
},
- 5965: function (e, t) {
+ 15965: function (e, t) {
'use strict'
function r(e) {
return e.endsWith('/') && '/' !== e ? e.slice(0, -1) : e
@@ -1353,19 +1068,19 @@
var n = r
t.normalizePathTrailingSlash = n
},
- 7145: function (e, t, r) {
+ 47145: function (e, t, r) {
'use strict'
- var n = r(4575),
- o = r(3913),
- a = r(862),
- i = r(5318)
+ var n = r(2553),
+ o = r(62012),
+ a = r(69448),
+ i = r(62426)
;(t.__esModule = !0), (t.default = void 0)
- var u = r(9414),
- c = i(r(5292)),
- s = r(8073),
- l = r(3900),
- f = r(5965),
- h = a(r(1392))
+ var u = r(29414),
+ c = i(r(75292)),
+ s = r(88073),
+ l = r(53900),
+ f = r(15965),
+ h = a(r(31392))
var p = (function () {
function e(t, r) {
n(this, e),
@@ -1462,7 +1177,7 @@
})()
t.default = p
},
- 9934: function (e, t, r) {
+ 59934: function (e, t, r) {
'use strict'
;(t.__esModule = !0), (t.default = void 0)
var n,
@@ -1482,13 +1197,13 @@
(0, o.getTTFB)(i))
}
},
- 6579: function (e, t, r) {
+ 86579: function (e, t, r) {
'use strict'
- var n = r(3038),
- o = r(862)
+ var n = r(53848),
+ o = r(69448)
;(t.__esModule = !0), (t.Portal = void 0)
- var a = o(r(7294)),
- i = r(3935)
+ var a = o(r(67294)),
+ i = r(73935)
t.Portal = function (e) {
var t = e.children,
r = e.type,
@@ -1513,7 +1228,7 @@
)
}
},
- 3447: function (e, t) {
+ 73447: function (e, t) {
'use strict'
;(t.__esModule = !0), (t.cancelIdleCallback = t.requestIdleCallback = void 0)
var r =
@@ -1537,13 +1252,13 @@
}
t.cancelIdleCallback = n
},
- 8475: function (e, t, r) {
+ 48475: function (e, t, r) {
'use strict'
- var n = r(3038),
- o = r(862)
+ var n = r(53848),
+ o = r(69448)
;(t.__esModule = !0), (t.RouteAnnouncer = u), (t.default = void 0)
- var a = o(r(7294)),
- i = r(4651)
+ var a = o(r(67294)),
+ i = r(34651)
function u() {
var e = (0, i.useRouter)().asPath,
t = (0, a.useState)(''),
@@ -1590,9 +1305,9 @@
var c = u
t.default = c
},
- 1392: function (e, t, r) {
+ 31392: function (e, t, r) {
'use strict'
- var n = r(5318)
+ var n = r(62426)
;(t.__esModule = !0),
(t.markAssetError = c),
(t.isAssetError = function (e) {
@@ -1600,8 +1315,8 @@
}),
(t.getClientBuildManifest = l),
(t.default = void 0)
- n(r(5292))
- var o = r(3447)
+ n(r(75292))
+ var o = r(73447)
function a(e, t, r) {
var n,
o = t.get(e)
@@ -1827,9 +1542,9 @@
}
t.default = h
},
- 4651: function (e, t, r) {
+ 34651: function (e, t, r) {
'use strict'
- var n = r(9100)
+ var n = r(41280)
function o(e, t) {
var r
if ('undefined' === typeof Symbol || null == e[Symbol.iterator]) {
@@ -1892,8 +1607,8 @@
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]
return n
}
- var i = r(862),
- u = r(5318)
+ var i = r(69448),
+ u = r(62426)
;(t.__esModule = !0),
(t.useRouter = function () {
return c.default.useContext(l.RouterContext)
@@ -1926,11 +1641,11 @@
)
}),
(t.createRouter = t.withRouter = t.default = void 0)
- var c = u(r(7294)),
- s = i(r(9414))
+ var c = u(r(67294)),
+ s = i(r(29414))
;(t.Router = s.default), (t.NextRouter = s.NextRouter)
- var l = r(6171),
- f = u(r(7413))
+ var l = r(36171),
+ f = u(r(47413))
t.withRouter = f.default
var h = {
router: null,
@@ -2019,21 +1734,21 @@
)
}
},
- 7926: function (e, t, r) {
+ 37926: function (e, t, r) {
'use strict'
- var n = r(3038),
- o = r(5318)
+ var n = r(53848),
+ o = r(62426)
;(t.__esModule = !0),
(t.initScriptLoader = function (e) {
e.forEach(v)
}),
(t.default = void 0)
- var a = o(r(7154)),
- i = o(r(7316)),
- u = r(7294),
- c = r(1165),
- s = r(6792),
- l = r(3447),
+ var a = o(r(9566)),
+ i = o(r(26169)),
+ u = r(67294),
+ c = r(41165),
+ s = r(96792),
+ l = r(73447),
f = new Map(),
h = new Set(),
p = ['onLoad', 'dangerouslySetInnerHTML', 'children', 'onError', 'strategy'],
@@ -2137,9 +1852,9 @@
}
t.default = m
},
- 7413: function (e, t, r) {
+ 47413: function (e, t, r) {
'use strict'
- var n = r(5318)
+ var n = r(62426)
;(t.__esModule = !0),
(t.default = function (e) {
function t(t) {
@@ -2150,17 +1865,17 @@
!1
return t
})
- var o = n(r(7294)),
- a = r(4651)
+ var o = n(r(67294)),
+ a = r(34651)
},
- 1165: function (e, t, r) {
+ 41165: function (e, t, r) {
'use strict'
var n
;(t.__esModule = !0), (t.HeadManagerContext = void 0)
- var o = ((n = r(7294)) && n.__esModule ? n : { default: n }).default.createContext({})
+ var o = ((n = r(67294)) && n.__esModule ? n : { default: n }).default.createContext({})
t.HeadManagerContext = o
},
- 6813: function (e, t) {
+ 66813: function (e, t) {
'use strict'
;(t.__esModule = !0),
(t.normalizeLocalePath = function (e, t) {
@@ -2199,20 +1914,20 @@
}
})
},
- 6171: function (e, t, r) {
+ 36171: function (e, t, r) {
'use strict'
var n
;(t.__esModule = !0), (t.RouterContext = void 0)
- var o = ((n = r(7294)) && n.__esModule ? n : { default: n }).default.createContext(null)
+ var o = ((n = r(67294)) && n.__esModule ? n : { default: n }).default.createContext(null)
t.RouterContext = o
},
- 9414: function (e, t, r) {
+ 29414: function (e, t, r) {
'use strict'
- var n = r(7757),
- o = r(8926),
- a = r(4575),
- i = r(3913),
- u = r(3038)
+ var n = r(809),
+ o = r(38561),
+ a = r(2553),
+ i = r(62012),
+ u = r(53848)
;(t.__esModule = !0),
(t.getDomainLocale = function (e, t, r, n) {
0
@@ -2227,17 +1942,17 @@
(t.interpolateAs = C),
(t.resolveHref = A),
(t.default = void 0)
- var c = r(5965),
- s = r(1392),
- l = r(9320),
- f = (r(6813), w(r(8119))),
- h = r(4755),
- p = r(8073),
- d = r(3900),
- v = r(8187),
- m = w(r(4453)),
- y = r(8085),
- g = r(4550)
+ var c = r(15965),
+ s = r(31392),
+ l = r(89320),
+ f = (r(66813), w(r(8119))),
+ h = r(24755),
+ p = r(88073),
+ d = r(53900),
+ v = r(68187),
+ m = w(r(14453)),
+ y = r(98085),
+ g = r(44550)
function w(e) {
return e && e.__esModule ? e : { default: e }
}
@@ -3336,7 +3051,7 @@
})()
;(t.default = F), (F.events = (0, f.default)())
},
- 2960: function (e, t, r) {
+ 62960: function (e, t, r) {
'use strict'
;(t.__esModule = !0),
(t.formatUrl = function (e) {
@@ -3381,7 +3096,7 @@
}
;(r.default = e), t && t.set(e, r)
return r
- })(r(8187))
+ })(r(68187))
function o() {
if ('function' !== typeof WeakMap) return null
var e = new WeakMap()
@@ -3394,7 +3109,7 @@
}
var a = /https?|ftp|gopher|file/
},
- 5292: function (e, t) {
+ 75292: function (e, t) {
'use strict'
;(t.__esModule = !0),
(t.default = function (e) {
@@ -3403,7 +3118,7 @@
return r + t
})
},
- 8073: function (e, t) {
+ 88073: function (e, t) {
'use strict'
;(t.__esModule = !0),
(t.isDynamicRoute = function (e) {
@@ -3411,7 +3126,7 @@
})
var r = /\/\[[^/]+?\](?=\/|$)/
},
- 3900: function (e, t, r) {
+ 53900: function (e, t, r) {
'use strict'
;(t.__esModule = !0),
(t.parseRelativeUrl = function (e, t) {
@@ -3433,12 +3148,12 @@
href: f.slice(r.origin.length),
}
})
- var n = r(4755),
- o = r(8187)
+ var n = r(24755),
+ o = r(68187)
},
- 8187: function (e, t, r) {
+ 68187: function (e, t, r) {
'use strict'
- var n = r(3038)
+ var n = r(53848)
function o(e) {
return 'string' === typeof e ||
('number' === typeof e && !isNaN(e)) ||
@@ -3492,7 +3207,7 @@
)
})
},
- 8085: function (e, t) {
+ 98085: function (e, t) {
'use strict'
;(t.__esModule = !0),
(t.getRouteMatcher = function (e) {
@@ -3528,7 +3243,7 @@
}
})
},
- 4550: function (e, t) {
+ 44550: function (e, t) {
'use strict'
;(t.__esModule = !0),
(t.getRouteRegex = function (e) {
@@ -3560,7 +3275,7 @@
return { re: new RegExp('^'.concat(o, '(?:/)?$')), groups: r }
})
},
- 3584: function (e, t) {
+ 53584: function (e, t) {
'use strict'
var r
;(t.__esModule = !0),
@@ -3572,10 +3287,10 @@
return r
}
},
- 4755: function (e, t, r) {
+ 24755: function (e, t, r) {
'use strict'
- var n = r(7757),
- o = r(8926)
+ var n = r(809),
+ o = r(38561)
;(t.__esModule = !0),
(t.execOnce = function (e) {
var t,
@@ -3598,7 +3313,7 @@
return (0, a.formatUrl)(e)
}),
(t.ST = t.SP = t.urlObjectKeys = void 0)
- var a = r(2960)
+ var a = r(62960)
function i() {
var e = window.location,
t = e.protocol,
@@ -3694,7 +3409,7 @@
f && 'function' === typeof performance.mark && 'function' === typeof performance.measure
t.ST = h
},
- 6086: function (e) {
+ 96086: function (e) {
'use strict'
var t = Object.assign.bind(Object)
;(e.exports = t), (e.exports.default = e.exports)
@@ -3914,7 +3629,7 @@
return (r.ab = '//'), r(599)
})()
},
- 9320: function (e, t) {
+ 89320: function (e, t) {
'use strict'
function r(e) {
return e.replace(/\\/g, '/')
@@ -3926,7 +3641,292 @@
return e
})
},
- 5666: function (e) {
+ 54360: function (e) {
+ e.exports = function (e, t) {
+ ;(null == t || t > e.length) && (t = e.length)
+ for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]
+ return n
+ }
+ },
+ 96648: function (e) {
+ e.exports = function (e) {
+ if (Array.isArray(e)) return e
+ }
+ },
+ 50450: function (e) {
+ e.exports = function (e) {
+ if (void 0 === e)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
+ return e
+ }
+ },
+ 38561: function (e) {
+ function t(e, t, r, n, o, a, i) {
+ try {
+ var u = e[a](i),
+ c = u.value
+ } catch (s) {
+ return void r(s)
+ }
+ u.done ? t(c) : Promise.resolve(c).then(n, o)
+ }
+ e.exports = function (e) {
+ return function () {
+ var r = this,
+ n = arguments
+ return new Promise(function (o, a) {
+ var i = e.apply(r, n)
+ function u(e) {
+ t(i, o, a, u, c, 'next', e)
+ }
+ function c(e) {
+ t(i, o, a, u, c, 'throw', e)
+ }
+ u(void 0)
+ })
+ }
+ }
+ },
+ 2553: function (e) {
+ e.exports = function (e, t) {
+ if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function')
+ }
+ },
+ 41280: function (e, t, r) {
+ var n = r(21914),
+ o = r(78898)
+ function a(t, r, i) {
+ return (
+ o()
+ ? (e.exports = a = Reflect.construct)
+ : (e.exports = a =
+ function (e, t, r) {
+ var o = [null]
+ o.push.apply(o, t)
+ var a = new (Function.bind.apply(e, o))()
+ return r && n(a, r.prototype), a
+ }),
+ a.apply(null, arguments)
+ )
+ }
+ e.exports = a
+ },
+ 62012: function (e) {
+ function t(e, t) {
+ for (var r = 0; r < t.length; r++) {
+ var n = t[r]
+ ;(n.enumerable = n.enumerable || !1),
+ (n.configurable = !0),
+ 'value' in n && (n.writable = !0),
+ Object.defineProperty(e, n.key, n)
+ }
+ }
+ e.exports = function (e, r, n) {
+ return r && t(e.prototype, r), n && t(e, n), e
+ }
+ },
+ 9566: function (e) {
+ function t() {
+ return (
+ (e.exports = t =
+ Object.assign ||
+ function (e) {
+ for (var t = 1; t < arguments.length; t++) {
+ var r = arguments[t]
+ for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n])
+ }
+ return e
+ }),
+ t.apply(this, arguments)
+ )
+ }
+ e.exports = t
+ },
+ 99828: function (e) {
+ function t(r) {
+ return (
+ (e.exports = t =
+ Object.setPrototypeOf
+ ? Object.getPrototypeOf
+ : function (e) {
+ return e.__proto__ || Object.getPrototypeOf(e)
+ }),
+ t(r)
+ )
+ }
+ e.exports = t
+ },
+ 9807: function (e, t, r) {
+ var n = r(21914)
+ e.exports = function (e, t) {
+ if ('function' !== typeof t && null !== t)
+ throw new TypeError('Super expression must either be null or a function')
+ ;(e.prototype = Object.create(t && t.prototype, {
+ constructor: { value: e, writable: !0, configurable: !0 },
+ })),
+ t && n(e, t)
+ }
+ },
+ 62426: function (e) {
+ e.exports = function (e) {
+ return e && e.__esModule ? e : { default: e }
+ }
+ },
+ 69448: function (e, t, r) {
+ var n = r(87917)
+ function o() {
+ if ('function' !== typeof WeakMap) return null
+ var e = new WeakMap()
+ return (
+ (o = function () {
+ return e
+ }),
+ e
+ )
+ }
+ e.exports = function (e) {
+ if (e && e.__esModule) return e
+ if (null === e || ('object' !== n(e) && 'function' !== typeof e)) return { default: e }
+ var t = o()
+ if (t && t.has(e)) return t.get(e)
+ var r = {},
+ a = Object.defineProperty && Object.getOwnPropertyDescriptor
+ for (var i in e)
+ if (Object.prototype.hasOwnProperty.call(e, i)) {
+ var u = a ? Object.getOwnPropertyDescriptor(e, i) : null
+ u && (u.get || u.set) ? Object.defineProperty(r, i, u) : (r[i] = e[i])
+ }
+ return (r.default = e), t && t.set(e, r), r
+ }
+ },
+ 78898: function (e) {
+ e.exports = function () {
+ if ('undefined' === typeof Reflect || !Reflect.construct) return !1
+ if (Reflect.construct.sham) return !1
+ if ('function' === typeof Proxy) return !0
+ try {
+ return Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0
+ } catch (e) {
+ return !1
+ }
+ }
+ },
+ 56325: function (e) {
+ e.exports = function (e, t) {
+ if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) {
+ var r = [],
+ n = !0,
+ o = !1,
+ a = void 0
+ try {
+ for (
+ var i, u = e[Symbol.iterator]();
+ !(n = (i = u.next()).done) && (r.push(i.value), !t || r.length !== t);
+ n = !0
+ );
+ } catch (c) {
+ ;(o = !0), (a = c)
+ } finally {
+ try {
+ n || null == u.return || u.return()
+ } finally {
+ if (o) throw a
+ }
+ }
+ return r
+ }
+ }
+ },
+ 81531: function (e) {
+ e.exports = function () {
+ throw new TypeError(
+ 'Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
+ )
+ }
+ },
+ 26169: function (e) {
+ e.exports = function (e, t) {
+ if (null == e) return {}
+ var r,
+ n,
+ o = {},
+ a = Object.keys(e)
+ for (n = 0; n < a.length; n++) (r = a[n]), t.indexOf(r) >= 0 || (o[r] = e[r])
+ return o
+ }
+ },
+ 27690: function (e, t, r) {
+ var n = r(87917),
+ o = r(50450)
+ e.exports = function (e, t) {
+ return !t || ('object' !== n(t) && 'function' !== typeof t) ? o(e) : t
+ }
+ },
+ 21914: function (e) {
+ function t(r, n) {
+ return (
+ (e.exports = t =
+ Object.setPrototypeOf ||
+ function (e, t) {
+ return (e.__proto__ = t), e
+ }),
+ t(r, n)
+ )
+ }
+ e.exports = t
+ },
+ 53848: function (e, t, r) {
+ var n = r(96648),
+ o = r(56325),
+ a = r(73585),
+ i = r(81531)
+ e.exports = function (e, t) {
+ return n(e) || o(e, t) || a(e, t) || i()
+ }
+ },
+ 87917: function (e) {
+ function t(r) {
+ return (
+ 'function' === typeof Symbol && 'symbol' === typeof Symbol.iterator
+ ? (e.exports = t =
+ function (e) {
+ return typeof e
+ })
+ : (e.exports = t =
+ function (e) {
+ return e &&
+ 'function' === typeof Symbol &&
+ e.constructor === Symbol &&
+ e !== Symbol.prototype
+ ? 'symbol'
+ : typeof e
+ }),
+ t(r)
+ )
+ }
+ e.exports = t
+ },
+ 73585: function (e, t, r) {
+ var n = r(54360)
+ e.exports = function (e, t) {
+ if (e) {
+ if ('string' === typeof e) return n(e, t)
+ var r = Object.prototype.toString.call(e).slice(8, -1)
+ return (
+ 'Object' === r && e.constructor && (r = e.constructor.name),
+ 'Map' === r || 'Set' === r
+ ? Array.from(e)
+ : 'Arguments' === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)
+ ? n(e, t)
+ : void 0
+ )
+ }
+ }
+ },
+ 809: function (e, t, r) {
+ e.exports = r(35666)
+ },
+ 35666: function (e) {
var t = (function (e) {
'use strict'
var t,
@@ -4304,14 +4304,14 @@
Function('r', 'regeneratorRuntime = r')(t)
}
},
- 4453: function () {},
+ 14453: function () {},
},
function (e) {
var t = function (t) {
return e((e.s = t))
}
e.O(0, [774], function () {
- return t(9204), t(457)
+ return t(59204), t(20457)
})
var r = e.O()
_N_E = r
diff --git a/out/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js b/out/_next/static/chunks/pages/_app-3e86b1cac997ecd07336.js
index a3444a1..12e97d4 100644
--- a/out/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js
+++ b/out/_next/static/chunks/pages/_app-3e86b1cac997ecd07336.js
@@ -1,20 +1,18 @@
;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[888],
{
- 6156: function (r, e, t) {
+ 22122: function (r, e, t) {
'use strict'
- function n(r, e, t) {
- return (
- e in r
- ? Object.defineProperty(r, e, {
- value: t,
- enumerable: !0,
- configurable: !0,
- writable: !0,
- })
- : (r[e] = t),
- r
- )
+ function n() {
+ return (n =
+ Object.assign ||
+ function (r) {
+ for (var e = 1; e < arguments.length; e++) {
+ var t = arguments[e]
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n])
+ }
+ return r
+ }).apply(this, arguments)
}
t.d(e, {
Z: function () {
@@ -22,7 +20,7 @@
},
})
},
- 4738: function (r, e, t) {
+ 24738: function (r, e, t) {
'use strict'
t.d(e, {
SG: function () {
@@ -32,10 +30,10 @@
return y
},
})
- var n = t(3808),
- o = t(4461),
- a = t(658),
- i = t(7294),
+ var n = t(73808),
+ o = t(84461),
+ a = t(80658),
+ i = t(67294),
s = 'chakra-ui-light',
l = 'chakra-ui-dark',
c = { classList: { add: a.ZT, remove: a.ZT } }
@@ -155,7 +153,7 @@
n.Ts
n.Ts
},
- 4577: function (r, e, t) {
+ 94577: function (r, e, t) {
'use strict'
t.d(e, {
vc: function () {
@@ -168,7 +166,7 @@
return l
},
})
- var n = t(7294),
+ var n = t(67294),
o = { prefix: Math.round(1e10 * Math.random()), current: 0 },
a = n.createContext(o),
i = n.memo((r) => {
@@ -189,7 +187,7 @@
return n.useMemo(() => t.map((r) => r + '-' + a), [a, t])
}
},
- 4288: function (r, e, t) {
+ 34288: function (r, e, t) {
'use strict'
t.d(e, {
L: function () {
@@ -199,9 +197,9 @@
return l
},
})
- var n = t(3808),
- o = t(8500),
- a = t(7294),
+ var n = t(73808),
+ o = t(28500),
+ a = t(67294),
[i, s] = (0, o.k)({ strict: !1, name: 'PortalManagerContext' })
function l(r) {
var { children: e, zIndex: t } = r
@@ -209,14 +207,14 @@
}
n.Ts && (l.displayName = 'PortalManager')
},
- 8500: function (r, e, t) {
+ 28500: function (r, e, t) {
'use strict'
t.d(e, {
k: function () {
return o
},
})
- var n = t(7294)
+ var n = t(67294)
function o(r) {
void 0 === r && (r = {})
var {
@@ -247,7 +245,7 @@
)
}
},
- 3205: function (r, e, t) {
+ 13205: function (r, e, t) {
'use strict'
t.d(e, {
Oq: function () {
@@ -293,19 +291,19 @@
return q
},
QX: function () {
- return X
+ return G
},
vs: function () {
return Y
},
eR: function () {
- return G
+ return X
},
cp: function () {
return U
},
})
- var n = t(3808)
+ var n = t(73808)
function o(r) {
var { scale: e, transform: t, compose: o } = r
return (r, a) => {
@@ -943,7 +941,7 @@
listStyleImage: !0,
listStyleImg: R.prop('listStyleImage'),
},
- J = t(5505),
+ J = t(4651),
N = {
border: '0px',
clip: 'rect(0, 0, 0, 0)',
@@ -1057,7 +1055,7 @@
pe: q.paddingInlineEnd,
paddingEnd: q.paddingInlineEnd,
})
- var X = {
+ var G = {
textDecorationColor: R.colors('textDecorationColor'),
textDecoration: !0,
textDecor: { property: 'textDecoration' },
@@ -1080,7 +1078,7 @@
scale: R.prop(['--chakra-scale-x', '--chakra-scale-y']),
rotate: R.degreeT('--chakra-rotate'),
},
- G = {
+ X = {
transition: !0,
transitionDelay: !0,
animation: !0,
@@ -1120,14 +1118,14 @@
},
}
},
- 5608: function (r, e, t) {
+ 55608: function (r, e, t) {
'use strict'
t.d(e, {
c0: function () {
return C
},
})
- var n = t(3808)
+ var n = t(73808)
function o(r) {
return (0, n.Kn)(r) && r.reference ? r.reference : String(r)
}
@@ -1190,7 +1188,7 @@
}),
{ add: i, subtract: s, multiply: l, divide: c, negate: u },
),
- f = t(8456)
+ f = t(88456)
function p(r) {
var e = (function (r, e) {
return void 0 === e && (e = '-'), r.replace(/\s+/g, e)
@@ -1278,7 +1276,7 @@
return { cssVars: { [a]: e }, cssMap: { [n]: { value: e, var: a, varRef: i } } }
},
},
- x = t(5505)
+ x = t(4651)
var w = [
'colors',
'borders',
@@ -1352,19 +1350,19 @@
)
}
},
- 3565: function (r, e, t) {
+ 33565: function (r, e, t) {
'use strict'
t.d(e, {
i: function () {
return f
},
})
- var n = t(3808),
- o = t(658),
- a = t(8554),
+ var n = t(73808),
+ o = t(80658),
+ a = t(38554),
i = t.n(a),
- s = t(8680),
- l = t(5503),
+ s = t(28680),
+ l = t(25503),
c = (r, e) => r.startsWith('--') && (0, n.HD)(e) && !(0, n.FS)(e),
u = (r, e) => {
var t, n
@@ -1446,7 +1444,7 @@
9421: function (r, e, t) {
'use strict'
t.d(e, {
- iv: function () {
+ css: function () {
return n.i
},
isStyleProp: function () {
@@ -1462,9 +1460,9 @@
return s.c0
},
})
- t(3205)
- var n = t(3565),
- o = t(1664)
+ t(13205)
+ var n = t(33565),
+ o = t(41664)
t.o(o, 'isStyleProp') &&
t.d(e, {
isStyleProp: function () {
@@ -1495,7 +1493,7 @@
return o.useTheme
},
})
- var a = t(7759)
+ var a = t(87759)
t.o(a, 'isStyleProp') &&
t.d(e, {
isStyleProp: function () {
@@ -1526,10 +1524,10 @@
return a.useTheme
},
})
- var i = t(5503),
- s = t(5608)
+ var i = t(25503),
+ s = t(55608)
},
- 8680: function (r, e, t) {
+ 28680: function (r, e, t) {
'use strict'
t.d(e, {
v: function () {
@@ -1539,7 +1537,7 @@
return f
},
})
- var n = t(5505),
+ var n = t(4651),
o = (r) => r + ':focus &, ' + r + '[data-focus] &',
a = (r) => r + ':active &, ' + r + '[data-active] &',
i = (r) => r + ':disabled &, ' + r + '[data-disabled] &',
@@ -1599,7 +1597,7 @@
},
f = (0, n.Yd)(d)
},
- 5503: function (r, e, t) {
+ 25503: function (r, e, t) {
'use strict'
t.d(e, {
Ul: function () {
@@ -1615,11 +1613,11 @@
return h
},
})
- var n = t(8554),
+ var n = t(38554),
o = t.n(n),
- a = t(5505),
- i = t(3205),
- s = t(8680)
+ a = t(4651),
+ i = t(13205),
+ s = t(28680)
function l() {
return (l =
Object.assign ||
@@ -1658,9 +1656,9 @@
p = l({}, c, s.v),
h = (r) => r in p
},
- 1664: function () {},
- 7759: function () {},
- 9676: function (r, e, t) {
+ 41664: function () {},
+ 87759: function () {},
+ 29676: function (r, e, t) {
'use strict'
t.d(e, {
f6: function () {
@@ -1679,21 +1677,21 @@
return b
},
})
- var n = t(4738),
+ var n = t(24738),
o = t(9421),
- a = t(5505),
- i = t(658),
- s = t(8500),
- l = t(2544),
- c = t(917),
- u = t(7294),
+ a = t(4651),
+ i = t(80658),
+ s = t(28500),
+ l = t(30495),
+ c = t(70917),
+ u = t(67294),
d = (r) => {
var { cssVarsRoot: e = ':host, :root', theme: t, children: n } = r,
a = u.useMemo(() => (0, o.toCSSVar)(t), [t])
return u.createElement(
l.a,
{ theme: a },
- u.createElement(c.xB, { styles: (r) => ({ [e]: r.__cssVars }) }),
+ u.createElement(c.Global, { styles: (r) => ({ [e]: r.__cssVars }) }),
n,
)
}
@@ -1712,16 +1710,16 @@
}),
b = () => {
var { colorMode: r } = (0, n.If)()
- return u.createElement(c.xB, {
+ return u.createElement(c.Global, {
styles: (e) => {
var t = (0, a.Wf)(e, 'styles.global'),
n = (0, i.Pu)(t, { theme: e, colorMode: r })
- if (n) return (0, o.iv)(n)(e)
+ if (n) return (0, o.css)(n)(e)
},
})
}
},
- 3108: function (r, e, t) {
+ 63108: function (r, e, t) {
'use strict'
function n(r, e) {
return (t) => ('dark' === t.colorMode ? e : r)
@@ -1739,7 +1737,7 @@
},
})
},
- 3035: function (r, e, t) {
+ 83035: function (r, e, t) {
'use strict'
t.d(e, {
Z: function () {
@@ -1768,10 +1766,10 @@
icon: { fontSize: '1.25em' },
},
},
- o = t(7621),
+ o = t(17621),
a = t.n(o),
- i = t(5505),
- s = t(3808),
+ i = t(4651),
+ s = t(73808),
l = (r, e, t) => {
var n = (0, i.Wf)(r, 'colors.' + e, e)
return a()(n).isValid() ? n : t
@@ -1828,7 +1826,7 @@
})(r.colors)
: e
}
- var p = t(3108)
+ var p = t(63108)
function h(r) {
var { theme: e, colorScheme: t } = r,
n = l(e, t + '.100', t),
@@ -1887,7 +1885,7 @@
},
defaultProps: { variant: 'subtle', colorScheme: 'blue' },
},
- g = t(4681)
+ g = t(54681)
function m(r) {
return {
transform: 'translate(25%, 25%)',
@@ -2254,11 +2252,11 @@
return r
}).apply(this, arguments)
}
- function X(r) {
+ function G(r) {
return 'full' === r ? { dialog: { maxW: '100vw', h: '100vh' } } : { dialog: { maxW: r } }
}
var Y = { bg: 'blackAlpha.600', zIndex: 'overlay' },
- G = { display: 'flex', zIndex: 'modal', justifyContent: 'center' }
+ X = { display: 'flex', zIndex: 'modal', justifyContent: 'center' }
function U(r) {
var { isFullHeight: e } = r
return q({}, e && { height: '100vh' }, {
@@ -2277,7 +2275,7 @@
parts: V.parts,
baseStyle: (r) => ({
overlay: Y,
- dialogContainer: G,
+ dialogContainer: X,
dialog: U(r),
header: K,
closeButton: Q,
@@ -2285,12 +2283,12 @@
footer: er,
}),
sizes: {
- xs: X('xs'),
- sm: X('md'),
- md: X('lg'),
- lg: X('2xl'),
- xl: X('4xl'),
- full: X('full'),
+ xs: G('xs'),
+ sm: G('md'),
+ md: G('lg'),
+ lg: G('2xl'),
+ xl: G('4xl'),
+ full: G('full'),
},
defaultProps: { size: 'xs' },
},
@@ -2543,7 +2541,7 @@
divider: xr,
}),
},
- kr = t(5268)
+ kr = t(35268)
function _r() {
return (_r =
Object.assign ||
@@ -2720,7 +2718,7 @@
}),
})
}
- var Xr = {
+ var Gr = {
parts: ['container', 'control', 'label'],
baseStyle: (r) => ({ label: j.baseStyle(r).label, control: qr(r) }),
sizes: {
@@ -2730,9 +2728,9 @@
},
defaultProps: { size: 'md', colorScheme: 'blue' },
},
- Yr = t(8554)
- function Gr() {
- return (Gr =
+ Yr = t(38554)
+ function Xr() {
+ return (Xr =
Object.assign ||
function (r) {
for (var e = 1; e < arguments.length; e++) {
@@ -2743,7 +2741,7 @@
}).apply(this, arguments)
}
function Ur(r) {
- return Gr({}, dr.baseStyle.field, {
+ return Xr({}, dr.baseStyle.field, {
appearance: 'none',
paddingBottom: '1px',
lineHeight: 'normal',
@@ -2766,9 +2764,9 @@
variants: dr.variants,
defaultProps: dr.defaultProps,
},
- re = t(917),
+ re = t(70917),
ee = (r, e) =>
- (0, re.F4)({
+ (0, re.keyframes)({
from: { borderColor: r, background: r },
to: { borderColor: e, background: e },
}),
@@ -3307,7 +3305,7 @@
PinInput: Fr,
Popover: Jr,
Progress: Zr,
- Radio: Xr,
+ Radio: Gr,
Select: Qr,
Skeleton: te,
SkipLink: ne,
@@ -3345,7 +3343,7 @@
FormError: { parts: ['text', 'icon'], baseStyle: (r) => ({ text: ze(r), icon: Re(r) }) },
}
},
- 2009: function (r, e, t) {
+ 42009: function (r, e, t) {
'use strict'
t.d(e, {
Z: function () {
@@ -3359,7 +3357,7 @@
'4px': '4px solid',
'8px': '8px solid',
},
- o = t(658)
+ o = t(80658)
function a() {
return (a =
Object.assign ||
@@ -3629,8 +3627,8 @@
'dark-lg':
'rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px',
},
- d = t(4681),
- f = t(4514),
+ d = t(54681),
+ f = t(54514),
p = {
property: {
common:
@@ -3697,11 +3695,11 @@
},
colors: l,
},
- t(5268).Z,
+ t(35268).Z,
{ sizes: d.Z, shadows: u, space: f.W, borders: n, transition: p },
)
},
- 4681: function (r, e, t) {
+ 54681: function (r, e, t) {
'use strict'
function n() {
return (n =
@@ -3716,7 +3714,7 @@
}
var o = n(
{},
- t(4514).W,
+ t(54514).W,
{
max: 'max-content',
min: 'min-content',
@@ -3740,7 +3738,7 @@
)
e.Z = o
},
- 4514: function (r, e, t) {
+ 54514: function (r, e, t) {
'use strict'
t.d(e, {
W: function () {
@@ -3783,7 +3781,7 @@
96: '24rem',
}
},
- 5268: function (r, e) {
+ 35268: function (r, e) {
'use strict'
e.Z = {
letterSpacings: {
@@ -3845,12 +3843,12 @@
},
}
},
- 4806: function (r, e, t) {
+ 84806: function (r, e, t) {
'use strict'
- var n = t(3035),
- o = t(2009),
- a = t(1926),
- i = t(3025)
+ var n = t(83035),
+ o = t(42009),
+ a = t(41926),
+ i = t(93025)
function s() {
return (s =
Object.assign ||
@@ -3875,9 +3873,9 @@
})
e.Z = l
},
- 1926: function (r, e, t) {
+ 41926: function (r, e, t) {
'use strict'
- var n = t(3108),
+ var n = t(63108),
o = {
global: (r) => ({
body: {
@@ -3897,8 +3895,8 @@
}
e.Z = o
},
- 3025: function () {},
- 7277: function (r, e, t) {
+ 93025: function () {},
+ 27277: function (r, e, t) {
'use strict'
function n(r) {
var e = null == r ? 0 : r.length
@@ -3936,7 +3934,7 @@
},
})
},
- 3808: function (r, e, t) {
+ 73808: function (r, e, t) {
'use strict'
function n(r) {
return 'number' === typeof r
@@ -4004,7 +4002,7 @@
var f = !1,
p = !1
},
- 8456: function (r, e, t) {
+ 88456: function (r, e, t) {
'use strict'
t.d(e, {
px: function () {
@@ -4014,9 +4012,9 @@
return d
},
})
- var n = t(7277),
- o = t(3808),
- a = t(5505)
+ var n = t(27277),
+ o = t(73808),
+ a = t(4651)
function i(r) {
if (null == r) return r
var { unitless: e } = (function (r) {
@@ -4110,7 +4108,7 @@
}
}
},
- 4461: function (r, e, t) {
+ 84461: function (r, e, t) {
'use strict'
function n(r) {
var e
@@ -4182,7 +4180,7 @@
return 0 !== r.button
}
},
- 658: function (r, e, t) {
+ 80658: function (r, e, t) {
'use strict'
t.d(e, {
Pu: function () {
@@ -4207,7 +4205,7 @@
return p
},
})
- var n = t(3808)
+ var n = t(73808)
function o(r) {
for (var e = arguments.length, t = new Array(e > 1 ? e - 1 : 0), o = 1; o < e; o++)
t[o - 1] = arguments[o]
@@ -4262,7 +4260,7 @@
return 0
}
},
- 5505: function (r, e, t) {
+ 4651: function (r, e, t) {
'use strict'
t.d(e, {
CE: function () {
@@ -4293,7 +4291,7 @@
return d
},
})
- t(8554)
+ t(38554)
function n(r, e) {
var t = {}
return (
@@ -4359,14 +4357,14 @@
return null != (n = null == (o = r.__cssMap[e + '.' + t]) ? void 0 : o.varRef) ? n : t
}
},
- 9152: function (r, e, t) {
+ 28204: function (r, e, t) {
'use strict'
t.d(e, {
Z: function () {
return er
},
})
- var n = t(1526),
+ var n = t(11526),
o = Math.abs,
a = String.fromCharCode
function i(r) {
@@ -4713,7 +4711,7 @@
switch (_()) {
case 42:
case 47:
- p(X(F(k(), C()), e, t), u)
+ p(G(F(k(), C()), e, t), u)
break
default:
I += '/'
@@ -4789,13 +4787,13 @@
(C = i(w > 0 ? m[k] + ' ' + _ : s(_, /&\f/g, m[k]))) && (p[S++] = C)
return x(r, e, t, 0 === a ? J : d, p, h, b)
}
- function X(r, e, t) {
+ function G(r, e, t) {
return x(r, e, t, W, a(v), u(r, 2, -2), 0)
}
function Y(r, e, t, n) {
return x(r, e, t, N, u(r, 0, n), u(r, n + 1, -1), n)
}
- var G = function (r, e) {
+ var X = function (r, e) {
return R(
(function (r, e) {
var t = -1,
@@ -4832,7 +4830,7 @@
if (!(t = t.parent)) return
if ((1 !== r.props.length || 58 === e.charCodeAt(0) || U.get(t)) && !n) {
U.set(r, !0)
- for (var o = [], a = G(e, o), i = t.props, s = 0, l = 0; s < a.length; s++)
+ for (var o = [], a = X(e, o), i = t.props, s = 0, l = 0; s < a.length; s++)
for (var c = 0; c < i.length; c++, l++)
r.props[l] = o[s] ? a[s].replace(/&\f/g, i[c]) : i[c] + ' ' + a[s]
}
@@ -4944,7 +4942,7 @@
return h.sheet.hydrate(l), h
}
},
- 7866: function (r, e) {
+ 67866: function (r, e) {
'use strict'
e.Z = function (r) {
var e = Object.create(null)
@@ -4953,33 +4951,41 @@
}
}
},
- 2544: function (r, e, t) {
+ 30495: function (r, e, t) {
'use strict'
t.d(e, {
+ C: function () {
+ return h
+ },
+ E: function () {
+ return k
+ },
T: function () {
- return c
+ return g
},
a: function () {
- return d
+ return y
+ },
+ b: function () {
+ return x
+ },
+ c: function () {
+ return S
+ },
+ h: function () {
+ return f
+ },
+ u: function () {
+ return m
},
w: function () {
- return l
+ return b
},
})
- var n = t(7294),
- o = t(9152)
- function a() {
- return (a =
- Object.assign ||
- function (r) {
- for (var e = 1; e < arguments.length; e++) {
- var t = arguments[e]
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (r[n] = t[n])
- }
- return r
- }).apply(this, arguments)
- }
- var i = function (r) {
+ var n = t(67294),
+ o = t(28204),
+ a = t(22122),
+ i = function (r) {
var e = new WeakMap()
return function (t) {
if (e.has(t)) return e.get(t)
@@ -4987,52 +4993,134 @@
return e.set(t, n), n
}
},
- s =
- (t(4199),
- Object.prototype.hasOwnProperty,
- (0, n.createContext)(
- 'undefined' !== typeof HTMLElement ? (0, o.Z)({ key: 'css' }) : null,
- )),
- l =
- (s.Provider,
- function (r) {
- return (0, n.forwardRef)(function (e, t) {
- var o = (0, n.useContext)(s)
- return r(e, o, t)
- })
- }),
- c = (0, n.createContext)({}),
- u = i(function (r) {
+ s = t(8679),
+ l = t.n(s),
+ c = function (r, e) {
+ return l()(r, e)
+ },
+ u = t(70444),
+ d = t(94199),
+ f = Object.prototype.hasOwnProperty,
+ p = (0, n.createContext)(
+ 'undefined' !== typeof HTMLElement ? (0, o.Z)({ key: 'css' }) : null,
+ ),
+ h = p.Provider,
+ b = function (r) {
+ return (0, n.forwardRef)(function (e, t) {
+ var o = (0, n.useContext)(p)
+ return r(e, o, t)
+ })
+ },
+ g = (0, n.createContext)({}),
+ m = function () {
+ return (0, n.useContext)(g)
+ },
+ v = i(function (r) {
return i(function (e) {
return (function (r, e) {
- return 'function' === typeof e ? e(r) : a({}, r, e)
+ return 'function' === typeof e ? e(r) : (0, a.Z)({}, r, e)
})(r, e)
})
}),
- d = function (r) {
- var e = (0, n.useContext)(c)
+ y = function (r) {
+ var e = (0, n.useContext)(g)
return (
- r.theme !== e && (e = u(e)(r.theme)),
- (0, n.createElement)(c.Provider, { value: e }, r.children)
+ r.theme !== e && (e = v(e)(r.theme)),
+ (0, n.createElement)(g.Provider, { value: e }, r.children)
)
}
+ function x(r) {
+ var e = r.displayName || r.name || 'Component',
+ t = function (e, t) {
+ var o = (0, n.useContext)(g)
+ return (0, n.createElement)(r, (0, a.Z)({ theme: o, ref: t }, e))
+ },
+ o = (0, n.forwardRef)(t)
+ return (o.displayName = 'WithTheme(' + e + ')'), c(o, r)
+ }
+ var w = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__',
+ S = function (r, e) {
+ var t = {}
+ for (var n in e) f.call(e, n) && (t[n] = e[n])
+ return (t[w] = r), t
+ },
+ k = b(function (r, e, t) {
+ var o = r.css
+ 'string' === typeof o && void 0 !== e.registered[o] && (o = e.registered[o])
+ var a = r[w],
+ i = [o],
+ s = ''
+ 'string' === typeof r.className
+ ? (s = (0, u.f)(e.registered, i, r.className))
+ : null != r.className && (s = r.className + ' ')
+ var l = (0, d.O)(
+ i,
+ void 0,
+ 'function' === typeof o || Array.isArray(o) ? (0, n.useContext)(g) : void 0,
+ )
+ ;(0, u.M)(e, l, 'string' === typeof a)
+ s += e.key + '-' + l.name
+ var c = {}
+ for (var p in r) f.call(r, p) && 'css' !== p && p !== w && (c[p] = r[p])
+ return (c.ref = t), (c.className = s), (0, n.createElement)(a, c)
+ })
},
- 917: function (r, e, t) {
+ 70917: function (r, e, t) {
'use strict'
- t.d(e, {
- xB: function () {
- return l
- },
- F4: function () {
- return u
- },
- })
- var n = t(7294),
- o = (t(9152), t(2544)),
- a = (t(8679), t(444)),
- i = t(4199),
- s = t(1526),
- l = (0, o.w)(function (r, e) {
+ t.r(e),
+ t.d(e, {
+ CacheProvider: function () {
+ return o.C
+ },
+ ThemeContext: function () {
+ return o.T
+ },
+ ThemeProvider: function () {
+ return o.a
+ },
+ useTheme: function () {
+ return o.u
+ },
+ withEmotionCache: function () {
+ return o.w
+ },
+ withTheme: function () {
+ return o.b
+ },
+ ClassNames: function () {
+ return h
+ },
+ Global: function () {
+ return c
+ },
+ createElement: function () {
+ return l
+ },
+ css: function () {
+ return u
+ },
+ jsx: function () {
+ return l
+ },
+ keyframes: function () {
+ return d
+ },
+ })
+ var n = t(67294),
+ o = (t(28204), t(30495)),
+ a = (t(8679), t(70444)),
+ i = t(94199),
+ s = t(11526),
+ l = function (r, e) {
+ var t = arguments
+ if (null == e || !o.h.call(e, 'css')) return n.createElement.apply(void 0, t)
+ var a = t.length,
+ i = new Array(a)
+ ;(i[0] = o.E), (i[1] = (0, o.c)(r, e))
+ for (var s = 2; s < a; s++) i[s] = t[s]
+ return n.createElement.apply(null, i)
+ },
+ c = (0, o.w)(function (r, e) {
var t = r.styles,
l = (0, i.O)(
[t],
@@ -5081,24 +5169,67 @@
null
)
})
- function c() {
+ function u() {
for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t]
return (0, i.O)(e)
}
- var u = function () {
- var r = c.apply(void 0, arguments),
- e = 'animation-' + r.name
- return {
- name: e,
- styles: '@keyframes ' + e + '{' + r.styles + '}',
- anim: 1,
- toString: function () {
- return '_EMO_' + this.name + '_' + this.styles + '_EMO_'
- },
+ var d = function () {
+ var r = u.apply(void 0, arguments),
+ e = 'animation-' + r.name
+ return {
+ name: e,
+ styles: '@keyframes ' + e + '{' + r.styles + '}',
+ anim: 1,
+ toString: function () {
+ return '_EMO_' + this.name + '_' + this.styles + '_EMO_'
+ },
+ }
+ },
+ f = function r(e) {
+ for (var t = e.length, n = 0, o = ''; n < t; n++) {
+ var a = e[n]
+ if (null != a) {
+ var i = void 0
+ switch (typeof a) {
+ case 'boolean':
+ break
+ case 'object':
+ if (Array.isArray(a)) i = r(a)
+ else for (var s in ((i = ''), a)) a[s] && s && (i && (i += ' '), (i += s))
+ break
+ default:
+ i = a
+ }
+ i && (o && (o += ' '), (o += i))
+ }
+ }
+ return o
}
- }
+ function p(r, e, t) {
+ var n = [],
+ o = (0, a.f)(r, n, t)
+ return n.length < 2 ? t : o + e(n)
+ }
+ var h = (0, o.w)(function (r, e) {
+ var t = function () {
+ for (var r = arguments.length, t = new Array(r), n = 0; n < r; n++) t[n] = arguments[n]
+ var o = (0, i.O)(t, e.registered)
+ return (0, a.M)(e, o, !1), e.key + '-' + o.name
+ },
+ s = {
+ css: t,
+ cx: function () {
+ for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
+ n[o] = arguments[o]
+ return p(e.registered, t, f(n))
+ },
+ theme: (0, n.useContext)(o.T),
+ },
+ l = r.children(s)
+ return !0, l
+ })
},
- 4199: function (r, e, t) {
+ 94199: function (r, e, t) {
'use strict'
t.d(e, {
O: function () {
@@ -5180,7 +5311,7 @@
strokeOpacity: 1,
strokeWidth: 1,
},
- a = t(7866),
+ a = t(67866),
i = /[A-Z]|^ms/g,
s = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
l = function (r) {
@@ -5277,7 +5408,7 @@
return { name: n(a) + c, styles: a, next: p }
}
},
- 1526: function (r, e, t) {
+ 11526: function (r, e, t) {
'use strict'
t.d(e, {
m: function () {
@@ -5352,7 +5483,7 @@
)
})()
},
- 444: function (r, e, t) {
+ 70444: function (r, e, t) {
'use strict'
t.d(e, {
f: function () {
@@ -5387,7 +5518,7 @@
},
8679: function (r, e, t) {
'use strict'
- var n = t(9864),
+ var n = t(59864),
o = {
childContextTypes: !0,
contextType: !0,
@@ -5457,7 +5588,7 @@
return e
}
},
- 8554: function (r, e, t) {
+ 38554: function (r, e, t) {
r = t.nmd(r)
var n = '__lodash_hash_undefined__',
o = 9007199254740991,
@@ -5566,7 +5697,7 @@
Z = Date.now,
V = pr(p, 'Map'),
q = pr(Object, 'create'),
- X = (function () {
+ G = (function () {
function r() {}
return function (e) {
if (!Cr(e)) return {}
@@ -5584,7 +5715,7 @@
this.set(n[0], n[1])
}
}
- function G(r) {
+ function X(r) {
var e = -1,
t = null == r ? 0 : r.length
for (this.clear(); ++e < t; ) {
@@ -5601,7 +5732,7 @@
}
}
function K(r) {
- var e = (this.__data__ = new G(r))
+ var e = (this.__data__ = new X(r))
this.size = e.size
}
function Q(r, e) {
@@ -5666,30 +5797,30 @@
var t = this.__data__
return (this.size += this.has(r) ? 0 : 1), (t[r] = q && void 0 === e ? n : e), this
}),
- (G.prototype.clear = function () {
+ (X.prototype.clear = function () {
;(this.__data__ = []), (this.size = 0)
}),
- (G.prototype.delete = function (r) {
+ (X.prototype.delete = function (r) {
var e = this.__data__,
t = tr(e, r)
return !(t < 0) && (t == e.length - 1 ? e.pop() : J.call(e, t, 1), --this.size, !0)
}),
- (G.prototype.get = function (r) {
+ (X.prototype.get = function (r) {
var e = this.__data__,
t = tr(e, r)
return t < 0 ? void 0 : e[t][1]
}),
- (G.prototype.has = function (r) {
+ (X.prototype.has = function (r) {
return tr(this.__data__, r) > -1
}),
- (G.prototype.set = function (r, e) {
+ (X.prototype.set = function (r, e) {
var t = this.__data__,
n = tr(t, r)
return n < 0 ? (++this.size, t.push([r, e])) : (t[n][1] = e), this
}),
(U.prototype.clear = function () {
;(this.size = 0),
- (this.__data__ = { hash: new Y(), map: new (V || G)(), string: new Y() })
+ (this.__data__ = { hash: new Y(), map: new (V || X)(), string: new Y() })
}),
(U.prototype.delete = function (r) {
var e = fr(this, r).delete(r)
@@ -5707,7 +5838,7 @@
return t.set(r, e), (this.size += t.size == n ? 0 : 1), this
}),
(K.prototype.clear = function () {
- ;(this.__data__ = new G()), (this.size = 0)
+ ;(this.__data__ = new X()), (this.size = 0)
}),
(K.prototype.delete = function (r) {
var e = this.__data__,
@@ -5722,7 +5853,7 @@
}),
(K.prototype.set = function (r, e) {
var t = this.__data__
- if (t instanceof G) {
+ if (t instanceof X) {
var n = t.__data__
if (!V || n.length < 199) return n.push([r, e]), (this.size = ++t.size), this
t = this.__data__ = new U(n)
@@ -5870,7 +6001,7 @@
})(l))
: (Cr(l) && !kr(l)) ||
(d = (function (r) {
- return 'function' != typeof r.constructor || br(r) ? {} : X(M(r))
+ return 'function' != typeof r.constructor || br(r) ? {} : G(M(r))
})(c)))
: (f = !1)
}
@@ -6054,7 +6185,7 @@
}
r.exports = Br
},
- 9200: function (r, e, t) {
+ 29200: function (r, e, t) {
'use strict'
t.r(e),
t.d(e, {
@@ -6062,10 +6193,10 @@
return F
},
})
- var n = t(6156),
- o = t(5893),
- a = (t(2702), t(4806)),
- i = t(3808),
+ var n = t(26265),
+ o = t(85893),
+ a = (t(82702), t(84806)),
+ i = t(73808),
s = [
'borders',
'breakpoints',
@@ -6089,8 +6220,8 @@
function l(r) {
return !!(0, i.Kn)(r) && s.every((e) => Object.prototype.hasOwnProperty.call(r, e))
}
- var c = t(658),
- u = t(8554),
+ var c = t(80658),
+ u = t(38554),
d = t.n(u)
function f() {
for (var r = arguments.length, e = new Array(r), t = 0; t < r; t++) e[t] = arguments[t]
@@ -6104,17 +6235,17 @@
return d()({}, t, n, p)
}
}
- var h = t(917),
- b = t(7294),
+ var h = t(70917),
+ b = t(67294),
g = () =>
- b.createElement(h.xB, {
+ b.createElement(h.Global, {
styles:
'\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility; \n -moz-osx-font-smoothing: grayscale; \n touch-action: manipulation; \n }\n\n body {\n position: relative;\n min-height: 100%;\n font-feature-settings: \'kern\';\n }\n\n *,\n *::before,\n *::after {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n }\n\n main {\n display: block;\n }\n\n hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n b,\n strong {\n font-weight: bold;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n img {\n border-style: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n textarea {\n overflow: auto;\n }\n\n [type="checkbox"],\n [type="radio"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n [type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n input[type="number"] {\n -moz-appearance: textfield;\n }\n\n [type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n [type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n details {\n display: block;\n }\n\n summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n body,\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre {\n margin: 0;\n }\n\n button {\n background: transparent;\n padding: 0;\n }\n\n fieldset {\n margin: 0;\n padding: 0;\n }\n\n ol,\n ul {\n margin: 0;\n padding: 0;\n }\n\n textarea {\n resize: vertical;\n }\n\n button,\n [role="button"] {\n cursor: pointer;\n }\n\n button::-moz-focus-inner {\n border: 0 !important;\n }\n\n table {\n border-collapse: collapse;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n img,\n svg,\n video,\n canvas,\n audio,\n iframe,\n embed,\n object {\n display: block;\n vertical-align: middle;\n }\n\n img,\n video {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible] :focus:not([data-focus-visible-added]) {\n outline: none;\n box-shadow: none;\n }\n\n select::-ms-expand {\n display: none;\n }\n ',
}),
- m = t(4288),
- v = t(9676),
- y = t(4738),
- x = t(4461),
+ m = t(34288),
+ v = t(29676),
+ y = t(24738),
+ x = t(84461),
w = {
body: { classList: { add() {}, remove() {} } },
addEventListener() {},
@@ -6182,7 +6313,7 @@
}
i.Ts && (C.displayName = 'EnvironmentContext'),
i.Ts && (A.displayName = 'EnvironmentProvider')
- var E = t(4577),
+ var E = t(94577),
z = (r) => {
var {
children: e,
@@ -6210,8 +6341,8 @@
),
)
},
- R = t(4533),
- B = t(9356)
+ R = t(54533),
+ B = t(29356)
function j(r, e) {
var t = Object.keys(r)
if (Object.getOwnPropertySymbols) {
@@ -6433,14 +6564,14 @@
})
}
},
- 9356: function (r, e, t) {
+ 29356: function (r, e, t) {
'use strict'
t.d(e, {
N: function () {
return n
},
})
- var n = (0, t(7294).createContext)({
+ var n = (0, t(67294).createContext)({
emacsTheme: {
base1: '#1c1f24',
base2: '#21272d',
@@ -6472,7 +6603,7 @@
setHighlightColor: null,
})
},
- 6374: function (r, e, t) {
+ 76374: function (r, e, t) {
'use strict'
function n(r, e, t) {
;(r.prototype = e.prototype = t), (t.constructor = r)
@@ -6892,7 +7023,7 @@
}),
)
},
- 2210: function (r, e) {
+ 62210: function (r, e) {
'use strict'
e.Z = function (r) {
return function () {
@@ -6900,7 +7031,7 @@
}
}
},
- 6033: function (r, e, t) {
+ 16033: function (r, e, t) {
'use strict'
function n(r, e) {
return (
@@ -6917,14 +7048,14 @@
},
})
},
- 3028: function (r, e, t) {
+ 73028: function (r, e, t) {
'use strict'
t.d(e, {
ZP: function () {
return c
},
})
- var n = t(6374)
+ var n = t(76374)
function o(r, e, t, n, o) {
var a = r * r,
i = a * r
@@ -6936,7 +7067,7 @@
6
)
}
- var a = t(2210)
+ var a = t(62210)
function i(r, e) {
return function (t) {
return r + t * e
@@ -7021,14 +7152,14 @@
}
})
},
- 370: function (r, e, t) {
+ 10370: function (r, e, t) {
'use strict'
t.d(e, {
Z: function () {
return i
},
})
- var n = t(6033),
+ var n = t(16033),
o = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
a = new RegExp(o.source, 'g')
function i(r, e) {
@@ -7069,15 +7200,15 @@
)
}
},
- 4533: function (r, e, t) {
+ 54533: function (r, e, t) {
'use strict'
t.d(e, {
Z: function () {
return f
},
})
- var n = t(6374),
- o = t(3028)
+ var n = t(76374),
+ o = t(73028)
function a(r, e) {
var t,
n = e ? e.length : 0,
@@ -7101,7 +7232,7 @@
}
)
}
- var s = t(6033)
+ var s = t(16033)
function l(r, e) {
var t,
n = {},
@@ -7115,8 +7246,8 @@
return o
}
}
- var c = t(370),
- u = t(2210)
+ var c = t(10370),
+ u = t(62210)
function d(r, e) {
e || (e = [])
var t,
@@ -7154,16 +7285,37 @@
: d))(r, e)
}
},
- 6363: function (r, e, t) {
+ 76363: function (r, e, t) {
;(window.__NEXT_P = window.__NEXT_P || []).push([
'/_app',
function () {
- return t(9200)
+ return t(29200)
},
])
},
- 2702: function () {},
- 9921: function (r, e) {
+ 82702: function () {},
+ 26265: function (r, e, t) {
+ 'use strict'
+ function n(r, e, t) {
+ return (
+ e in r
+ ? Object.defineProperty(r, e, {
+ value: t,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (r[e] = t),
+ r
+ )
+ }
+ t.d(e, {
+ Z: function () {
+ return n
+ },
+ })
+ },
+ 69921: function (r, e) {
'use strict'
var t = 'function' === typeof Symbol && Symbol.for,
n = t ? Symbol.for('react.element') : 60103,
@@ -7292,11 +7444,11 @@
}),
(e.typeOf = w)
},
- 9864: function (r, e, t) {
+ 59864: function (r, e, t) {
'use strict'
- r.exports = t(9921)
+ r.exports = t(69921)
},
- 7621: function (r, e, t) {
+ 17621: function (r, e, t) {
var n
!(function (o) {
var a = /^\s+/,
@@ -8130,7 +8282,7 @@
return r((r.s = e))
}
r.O(0, [774, 179], function () {
- return e(6363), e(4651)
+ return e(76363), e(34651)
})
var t = r.O()
_N_E = t
diff --git a/out/_next/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js b/out/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js
index 2460d3f..3d18290 100644
--- a/out/_next/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js
+++ b/out/_next/static/chunks/pages/_error-f5e67a79c709c2df06b8.js
@@ -1,56 +1,14 @@
;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[820],
{
- 3646: function (e, t, n) {
- var r = n(7228)
- e.exports = function (e) {
- if (Array.isArray(e)) return r(e)
- }
- },
- 9713: function (e) {
- e.exports = function (e, t, n) {
- return (
- t in e
- ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0,
- })
- : (e[t] = n),
- e
- )
- }
- },
- 6860: function (e) {
- e.exports = function (e) {
- if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e)
- }
- },
- 8206: function (e) {
- e.exports = function () {
- throw new TypeError(
- 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
- )
- }
- },
- 319: function (e, t, n) {
- var r = n(3646),
- a = n(6860),
- o = n(379),
- i = n(8206)
- e.exports = function (e) {
- return r(e) || a(e) || o(e) || i()
- }
- },
- 3398: function (e, t, n) {
+ 23398: function (e, t, n) {
'use strict'
var r
;(t.__esModule = !0), (t.AmpStateContext = void 0)
- var a = ((r = n(7294)) && r.__esModule ? r : { default: r }).default.createContext({})
+ var a = ((r = n(67294)) && r.__esModule ? r : { default: r }).default.createContext({})
t.AmpStateContext = a
},
- 6393: function (e, t, n) {
+ 76393: function (e, t, n) {
'use strict'
;(t.__esModule = !0),
(t.isInAmpMode = i),
@@ -58,8 +16,8 @@
return i(a.default.useContext(o.AmpStateContext))
})
var r,
- a = (r = n(7294)) && r.__esModule ? r : { default: r },
- o = n(3398)
+ a = (r = n(67294)) && r.__esModule ? r : { default: r },
+ o = n(23398)
function i() {
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {},
t = e.ampFirst,
@@ -71,9 +29,9 @@
return n || (a && i)
}
},
- 2775: function (e, t, n) {
+ 92775: function (e, t, n) {
'use strict'
- var r = n(9713)
+ var r = n(61682)
function a(e, t) {
var n = Object.keys(e)
if (Object.getOwnPropertySymbols) {
@@ -103,11 +61,11 @@
}
;(n.default = e), t && t.set(e, n)
return n
- })(n(7294)),
- u = (o = n(3244)) && o.__esModule ? o : { default: o },
- c = n(3398),
- s = n(1165),
- l = n(6393)
+ })(n(67294)),
+ u = (o = n(73244)) && o.__esModule ? o : { default: o },
+ c = n(23398),
+ s = n(41165),
+ l = n(76393)
function f() {
if ('function' !== typeof WeakMap) return null
var e = new WeakMap()
@@ -233,14 +191,14 @@
}
t.default = m
},
- 3244: function (e, t, n) {
+ 73244: function (e, t, n) {
'use strict'
- var r = n(319),
- a = n(4575),
- o = n(3913),
- i = (n(1506), n(2205)),
- u = n(8585),
- c = n(9754)
+ var r = n(83115),
+ a = n(2553),
+ o = n(62012),
+ i = (n(50450), n(9807)),
+ u = n(27690),
+ c = n(99828)
function s(e) {
var t = (function () {
if ('undefined' === typeof Reflect || !Reflect.construct) return !1
@@ -263,7 +221,7 @@
}
}
;(t.__esModule = !0), (t.default = void 0)
- var l = n(7294),
+ var l = n(67294),
f = (function (e) {
i(n, e)
var t = s(n)
@@ -321,11 +279,11 @@
},
3359: function (e, t, n) {
'use strict'
- var r = n(4575),
- a = n(3913),
- o = n(2205),
- i = n(8585),
- u = n(9754)
+ var r = n(2553),
+ a = n(62012),
+ o = n(9807),
+ i = n(27690),
+ u = n(99828)
function c(e) {
var t = (function () {
if ('undefined' === typeof Reflect || !Reflect.construct) return !1
@@ -347,10 +305,10 @@
return i(this, n)
}
}
- var s = n(5318)
+ var s = n(62426)
;(t.__esModule = !0), (t.default = void 0)
- var l = s(n(7294)),
- f = s(n(2775)),
+ var l = s(n(67294)),
+ f = s(n(92775)),
d = {
400: 'Bad Request',
404: 'This page could not be found',
@@ -471,7 +429,7 @@
},
}
},
- 4977: function (e, t, n) {
+ 14977: function (e, t, n) {
;(window.__NEXT_P = window.__NEXT_P || []).push([
'/_error',
function () {
@@ -479,10 +437,52 @@
},
])
},
+ 38164: function (e, t, n) {
+ var r = n(54360)
+ e.exports = function (e) {
+ if (Array.isArray(e)) return r(e)
+ }
+ },
+ 61682: function (e) {
+ e.exports = function (e, t, n) {
+ return (
+ t in e
+ ? Object.defineProperty(e, t, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (e[t] = n),
+ e
+ )
+ }
+ },
+ 27381: function (e) {
+ e.exports = function (e) {
+ if ('undefined' !== typeof Symbol && Symbol.iterator in Object(e)) return Array.from(e)
+ }
+ },
+ 95725: function (e) {
+ e.exports = function () {
+ throw new TypeError(
+ 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.',
+ )
+ }
+ },
+ 83115: function (e, t, n) {
+ var r = n(38164),
+ a = n(27381),
+ o = n(73585),
+ i = n(95725)
+ e.exports = function (e) {
+ return r(e) || a(e) || o(e) || i()
+ }
+ },
},
function (e) {
e.O(0, [774, 888, 179], function () {
- return (t = 4977), e((e.s = t))
+ return (t = 14977), e((e.s = t))
var t
})
var t = e.O()
diff --git a/out/_next/static/chunks/pages/index-958f6f947d7cdc797980.js b/out/_next/static/chunks/pages/index-2b9ae36e1ad717aff37d.js
index 8def0bf..2f612cd 100644
--- a/out/_next/static/chunks/pages/index-958f6f947d7cdc797980.js
+++ b/out/_next/static/chunks/pages/index-2b9ae36e1ad717aff37d.js
@@ -6,23 +6,23 @@
t.r(n),
t.d(n, {
Graph: function () {
- return je
+ return Ce
},
GraphPage: function () {
- return pe
+ return be
},
default: function () {
- return fe
+ return ve
},
})
- var r = t(7757),
+ var r = t(809),
i = t.n(r),
- o = t(2137),
- l = t(5893),
- a = t(7329),
- s = t(6156),
- c = t(4699),
- u = t(7294)
+ o = t(92447),
+ l = t(85893),
+ s = t(59999),
+ a = t(26265),
+ c = t(64121),
+ u = t(67294)
function d(e, n) {
var t,
r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
@@ -30,12 +30,12 @@
o = i.get(),
l = void 0 !== o ? o : n
l !== o && i.update(l)
- var a = (0, u.useState)(l),
- s = a[0],
- c = a[1]
+ var s = (0, u.useState)(l),
+ a = s[0],
+ c = s[1]
;(0, u.useEffect)(
function () {
- s !== l && c(l)
+ a !== l && c(l)
},
[e],
)
@@ -47,7 +47,7 @@
})
: (c(e), i.update(e))
}
- return [s, d]
+ return [a, d]
}
function h(e, n) {
return {
@@ -63,12 +63,12 @@
},
}
}
- var g = t(4533),
- x = t(4309),
- f = t(2351),
- p = t(980),
- j = t(8017),
- m = t(6194),
+ var g = t(54533),
+ f = t(54309),
+ x = t(20233),
+ p = t(40980),
+ j = t(48017),
+ m = t(36194),
v = [],
b = {}
for (var C in m.oY)
@@ -93,8 +93,8 @@
gravity: 0.3,
gravityOn: !0,
},
- O = { orphans: !1, parents: !0, tags: [], nodes: [], links: [], date: [] },
- N = {
+ I = { orphans: !1, parents: !0, tags: [], nodes: [], links: [], date: [] },
+ O = {
particles: !1,
particlesNumber: 0,
particlesWidth: 4,
@@ -141,34 +141,36 @@
citeLinkColor: 'gray.600',
citeNodeColor: 'black',
},
- I = { follow: 'zoom', localSame: 'add', zoomPadding: 200, zoomSpeed: 2e3 },
- z = { highlight: 'hover', local: 'click', follow: 'double' },
- L = t(7375),
- D = t(3924),
- R = t(3986),
- T = t(9641),
- P = t(7546),
- Z = t(3441),
- E = t(6569),
- H = t(4189),
- F = t(454),
- A = t(8420),
- B = t(6699),
- V = t(155),
- M = t(6769),
- X = t(336),
- W = t(2026),
- _ = t(4096),
- U = t(4115),
- Q = t(8134),
- q = t(8235),
- G = t(7273),
- K = t(5267),
- J = t(6049),
- Y = t(3014),
- $ = t(6658),
- ee = t(9356)
- function ne(e, n) {
+ N = { follow: 'zoom', localSame: 'add', zoomPadding: 200, zoomSpeed: 2e3 },
+ L = { highlight: 'hover', local: 'click', follow: 'double' },
+ z = t(38347),
+ T = t(93924),
+ R = t(83986),
+ D = t(48931),
+ P = t(67546),
+ E = t(93441),
+ Z = t(6569),
+ H = t(24189),
+ B = t(2827),
+ A = t(90454),
+ F = t(48420),
+ M = t(96699),
+ V = t(40155),
+ X = t(56769),
+ W = t(336),
+ _ = t(72026),
+ U = t(94096),
+ Q = t(64115),
+ q = t(88134),
+ K = t(48235),
+ G = t(67273),
+ J = t(15267),
+ Y = t(46049),
+ $ = t(95818),
+ ee = t(47647),
+ ne = t(86658),
+ te = t(29356)
+ function re(e, n) {
var t = Object.keys(e)
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e)
@@ -180,41 +182,44 @@
}
return t
}
- function te(e) {
+ function ie(e) {
for (var n = 1; n < arguments.length; n++) {
var t = null != arguments[n] ? arguments[n] : {}
n % 2
- ? ne(Object(t), !0).forEach(function (n) {
- ;(0, s.Z)(e, n, t[n])
+ ? re(Object(t), !0).forEach(function (n) {
+ ;(0, a.Z)(e, n, t[n])
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t))
- : ne(Object(t)).forEach(function (n) {
+ : re(Object(t)).forEach(function (n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n))
})
}
return e
}
- var re = function (e) {
+ var oe = function (e) {
var n = e.physics,
t = e.setPhysics,
r = e.threeDim,
i = e.setThreeDim,
o = e.filter,
- s = e.setFilter,
+ a = e.setFilter,
d = e.visuals,
h = e.setVisuals,
g = e.mouse,
- x = e.setMouse,
- f = e.behavior,
+ f = e.setMouse,
+ x = e.behavior,
p = e.setBehavior,
- m = (0, u.useState)(!0),
- v = m[0],
- b = m[1],
- C = (0, u.useContext)(ee.N),
- y = C.highlightColor,
- k = C.setHighlightColor,
- w = [
+ m = e.tags,
+ v = e.tagColors,
+ b = e.setTagColors,
+ C = (0, u.useState)(!0),
+ y = C[0],
+ k = C[1],
+ w = (0, u.useContext)(te.N),
+ H = w.highlightColor,
+ B = w.setHighlightColor,
+ $ = [
'red.500',
'orange.500',
'yellow.500',
@@ -223,9 +228,6 @@
'blue.500',
'pink.500',
'purple.500',
- 'gray.400',
- 'gray.500',
- 'gray.600',
'white',
'gray.100',
'gray.200',
@@ -240,25 +242,25 @@
]
return (0, l.jsxs)(l.Fragment, {
children: [
- (0, l.jsx)(F.R, {
- in: !v,
+ (0, l.jsx)(A.R, {
+ in: !y,
children: (0, l.jsx)(j.xu, {
position: 'absolute',
zIndex: 'overlay',
marginTop: 10,
marginLeft: 10,
- display: v ? 'none' : 'block',
- children: (0, l.jsx)(A.h, {
+ display: y ? 'none' : 'block',
+ children: (0, l.jsx)(F.h, {
'aria-label': 'Settings',
- icon: (0, l.jsx)(D.e, {}),
+ icon: (0, l.jsx)(T.e, {}),
onClick: function () {
- return b(!0)
+ return k(!0)
},
}),
}),
}),
- (0, l.jsx)(F.R, {
- in: v,
+ (0, l.jsx)(A.R, {
+ in: y,
children: (0, l.jsxs)(j.xu, {
bg: 'alt.100',
w: 'xs',
@@ -278,7 +280,7 @@
paddingRight: 2,
paddingTop: 1,
children: [
- (0, l.jsx)(B.u, {
+ (0, l.jsx)(M.u, {
label: '2D',
children: (0, l.jsx)(V.z, {
onClick: function () {
@@ -293,156 +295,201 @@
display: 'flex',
alignItems: 'center',
children: [
- (0, l.jsx)(B.u, {
+ (0, l.jsx)(M.u, {
label: 'Reset settings to defaults',
- children: (0, l.jsx)(A.h, {
+ children: (0, l.jsx)(F.h, {
'aria-label': 'Reset Defaults',
icon: (0, l.jsx)(R.A, {}),
onClick: function () {
- h(N), s(O), x(z), t(S), p(I)
+ h(O), a(I), f(L), t(S), p(N)
},
variant: 'none',
size: 'sm',
}),
}),
- (0, l.jsx)(A.h, {
+ (0, l.jsx)(F.h, {
size: 'sm',
- icon: (0, l.jsx)(T.T, {}),
+ icon: (0, l.jsx)(D.T, {}),
'aria-label': 'Close Tweak Panel',
variant: 'ghost',
onClick: function () {
- return b(!1)
+ return k(!1)
},
}),
],
}),
],
}),
- (0, l.jsx)($.ZP, {
+ (0, l.jsx)(ne.ZP, {
autoHeight: !0,
autoHeightMax: 600,
autoHide: !0,
renderThumbVertical: function (e) {
var n = e.style,
- t = (0, L.Z)(e, ['style'])
+ t = (0, z.Z)(e, ['style'])
return (0, l.jsx)(
j.xu,
- te(
- te({}, t),
+ ie(
+ ie({}, t),
{},
- { style: te(te({}, n), {}, { borderRadius: 10 }), bg: y },
+ { style: ie(ie({}, n), {}, { borderRadius: 10 }), bg: H },
),
)
},
- children: (0, l.jsxs)(M.UQ, {
+ children: (0, l.jsxs)(X.UQ, {
allowMultiple: !0,
allowToggle: !0,
color: 'black',
children: [
- (0, l.jsxs)(M.Qd, {
+ (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsxs)(M.KF, {
+ (0, l.jsxs)(X.KF, {
children: [
- (0, l.jsx)(M.XE, { marginRight: 2 }),
- (0, l.jsx)(X.X, { size: 'sm', children: 'Filter' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
+ (0, l.jsx)(W.X, { size: 'sm', children: 'Filter' }),
],
}),
- (0, l.jsx)(M.Hk, {
- children: (0, l.jsxs)(W.gC, {
- spacing: 2,
- justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, { borderColor: 'gray.500' }),
- align: 'stretch',
- paddingLeft: 7,
- color: 'gray.800',
- children: [
- (0, l.jsxs)(_.k, {
- justifyContent: 'space-between',
- children: [
- (0, l.jsx)(U.x, { children: 'Orphans' }),
- (0, l.jsx)(Q.r, {
- onChange: function () {
- s(te(te({}, o), {}, { orphans: !o.orphans }))
- },
- isChecked: o.orphans,
- }),
- ],
- }),
- (0, l.jsxs)(_.k, {
- justifyContent: 'space-between',
- children: [
- (0, l.jsx)(U.x, {
- children: 'Link nodes with parent file',
- }),
- (0, l.jsx)(Q.r, {
- onChange: function () {
- s(te(te({}, o), {}, { parents: !o.parents }))
- },
- isChecked: o.parents,
- }),
- ],
- }),
- ],
- }),
+ (0, l.jsxs)(X.Hk, {
+ children: [
+ (0, l.jsxs)(_.gC, {
+ spacing: 2,
+ justifyContent: 'flex-start',
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.500' }),
+ align: 'stretch',
+ paddingLeft: 7,
+ color: 'gray.800',
+ children: [
+ (0, l.jsxs)(U.k, {
+ justifyContent: 'space-between',
+ children: [
+ (0, l.jsx)(Q.x, { children: 'Orphans' }),
+ (0, l.jsx)(q.r, {
+ onChange: function () {
+ a(ie(ie({}, o), {}, { orphans: !o.orphans }))
+ },
+ isChecked: o.orphans,
+ }),
+ ],
+ }),
+ (0, l.jsxs)(U.k, {
+ justifyContent: 'space-between',
+ children: [
+ (0, l.jsx)(Q.x, {
+ children: 'Link nodes with parent file',
+ }),
+ (0, l.jsx)(q.r, {
+ onChange: function () {
+ a(ie(ie({}, o), {}, { parents: !o.parents }))
+ },
+ isChecked: o.parents,
+ }),
+ ],
+ }),
+ ],
+ }),
+ (0, l.jsxs)(X.UQ, {
+ padding: 0,
+ allowToggle: !0,
+ allowMultiple: !0,
+ paddingLeft: 3,
+ children: [
+ (0, l.jsxs)(X.Qd, {
+ children: [
+ (0, l.jsxs)(X.KF, {
+ children: ['Tag filters', (0, l.jsx)(X.XE, {})],
+ }),
+ (0, l.jsx)(X.Hk, {
+ pr: 0,
+ mr: 0,
+ children: (0, l.jsx)(ue, {
+ highlightColor: H,
+ filter: o,
+ setFilter: a,
+ tags: m,
+ }),
+ }),
+ ],
+ }),
+ (0, l.jsxs)(X.Qd, {
+ children: [
+ (0, l.jsxs)(X.KF, {
+ children: ['Tag Colors', (0, l.jsx)(X.XE, {})],
+ }),
+ (0, l.jsx)(X.Hk, {
+ pr: 0,
+ mr: 0,
+ children: (0, l.jsx)(de, {
+ tags: m,
+ colorList: $,
+ tagColors: v,
+ setTagColors: b,
+ highlightColor: H,
+ }),
+ }),
+ ],
+ }),
+ ],
+ }),
+ ],
}),
],
}),
- (0, l.jsxs)(M.Qd, {
+ (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsx)(M.KF, {
+ (0, l.jsx)(X.KF, {
display: 'flex',
justifyContent: 'space-between',
children: (0, l.jsxs)(j.xu, {
display: 'flex',
children: [
- (0, l.jsx)(M.XE, { marginRight: 2 }),
- (0, l.jsx)(X.X, { size: 'sm', children: 'Physics' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
+ (0, l.jsx)(W.X, { size: 'sm', children: 'Physics' }),
],
}),
}),
- (0, l.jsxs)(M.Hk, {
+ (0, l.jsxs)(X.Hk, {
children: [
- (0, l.jsxs)(W.gC, {
+ (0, l.jsxs)(_.gC, {
spacing: 2,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, { borderColor: 'gray.500' }),
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.500' }),
align: 'stretch',
paddingLeft: 7,
color: 'gray.800',
children: [
- (0, l.jsx)(le, {
+ (0, l.jsx)(ae, {
label: 'Gravity',
value: n.gravityOn,
onChange: function () {
- return t(te(te({}, n), {}, { gravityOn: !n.gravityOn }))
+ return t(ie(ie({}, n), {}, { gravityOn: !n.gravityOn }))
},
- children: (0, l.jsx)(oe, {
+ children: (0, l.jsx)(se, {
label: 'Strength',
value: 10 * n.gravity,
onChange: function (e) {
- return t(te(te({}, n), {}, { gravity: e / 10 }))
+ return t(ie(ie({}, n), {}, { gravity: e / 10 }))
},
}),
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
value: -n.charge / 100,
onChange: function (e) {
- return t(te(te({}, n), {}, { charge: -100 * e }))
+ return t(ie(ie({}, n), {}, { charge: -100 * e }))
},
label: 'Repulsive Force',
}),
- (0, l.jsx)(le, {
+ (0, l.jsx)(ae, {
label: 'Collision',
infoText: 'Perfomance sap, disable if slow',
value: n.collision,
onChange: function () {
- return t(te(te({}, n), {}, { collision: !n.collision }))
+ return t(ie(ie({}, n), {}, { collision: !n.collision }))
},
- children: (0, l.jsx)(oe, {
+ children: (0, l.jsx)(se, {
value: n.collisionStrength / 5,
onChange: function (e) {
return t(
- te(te({}, n), {}, { collisionStrength: 5 * e }),
+ ie(ie({}, n), {}, { collisionStrength: 5 * e }),
)
},
label: 'Collision Radius',
@@ -450,18 +497,18 @@
'Easy with this one, high values can lead to a real jiggly mess',
}),
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
value: 5 * n.linkStrength,
onChange: function (e) {
- return t(te(te({}, n), {}, { linkStrength: e / 5 }))
+ return t(ie(ie({}, n), {}, { linkStrength: e / 5 }))
},
label: 'Link Force',
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Link Iterations',
value: n.linkIts,
onChange: function (e) {
- return t(te(te({}, n), {}, { linkIts: e }))
+ return t(ie(ie({}, n), {}, { linkIts: e }))
},
min: 0,
max: 6,
@@ -469,54 +516,54 @@
infoText:
'How many links down the line the physics of a single node affects (Slow)',
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Viscosity',
value: 10 * n.velocityDecay,
onChange: function (e) {
- return t(te(te({}, n), {}, { velocityDecay: e / 10 }))
+ return t(ie(ie({}, n), {}, { velocityDecay: e / 10 }))
},
}),
],
}),
(0, l.jsx)(j.xu, {
- children: (0, l.jsx)(M.UQ, {
+ children: (0, l.jsx)(X.UQ, {
paddingLeft: 3,
allowToggle: !0,
- children: (0, l.jsxs)(M.Qd, {
+ children: (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsxs)(M.KF, {
+ (0, l.jsxs)(X.KF, {
children: [
- (0, l.jsx)(U.x, { children: 'Advanced' }),
- (0, l.jsx)(M.XE, { marginRight: 2 }),
+ (0, l.jsx)(Q.x, { children: 'Advanced' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
],
}),
- (0, l.jsx)(M.Hk, {
- children: (0, l.jsxs)(W.gC, {
+ (0, l.jsx)(X.Hk, {
+ children: (0, l.jsxs)(_.gC, {
spacing: 2,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, {
+ divider: (0, l.jsx)(_.cX, {
borderColor: 'gray.500',
}),
align: 'stretch',
paddingLeft: 3,
color: 'gray.800',
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Stabilization rate',
value: 50 * n.alphaDecay,
onChange: function (e) {
return t(
- te(te({}, n), {}, { alphaDecay: e / 50 }),
+ ie(ie({}, n), {}, { alphaDecay: e / 50 }),
)
},
}),
- (0, l.jsx)(le, {
+ (0, l.jsx)(ae, {
label: 'Center nodes',
value: n.centering,
onChange: function () {
return t(
- te(
- te({}, n),
+ ie(
+ ie({}, n),
{},
{ centering: !n.centering },
),
@@ -524,14 +571,14 @@
},
infoText:
'Keeps the nodes in the center of the viewport. If disabled you can drag the nodes anywhere you want.',
- children: (0, l.jsx)(oe, {
+ children: (0, l.jsx)(se, {
label: 'Centering Strength',
value: n.centeringStrength,
max: 2,
step: 0.01,
onChange: function (e) {
return t(
- te(te({}, n), {}, { centeringStrength: e }),
+ ie(ie({}, n), {}, { centeringStrength: e }),
)
},
}),
@@ -547,54 +594,54 @@
}),
],
}),
- (0, l.jsxs)(M.Qd, {
+ (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsxs)(M.KF, {
+ (0, l.jsxs)(X.KF, {
children: [
- (0, l.jsx)(M.XE, { marginRight: 2 }),
- (0, l.jsx)(X.X, { size: 'sm', children: 'Visual' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
+ (0, l.jsx)(W.X, { size: 'sm', children: 'Visual' }),
],
}),
- (0, l.jsx)(M.Hk, {
- children: (0, l.jsxs)(W.gC, {
+ (0, l.jsx)(X.Hk, {
+ children: (0, l.jsxs)(_.gC, {
justifyContent: 'flex-start',
align: 'stretch',
children: [
- (0, l.jsx)(M.UQ, {
+ (0, l.jsx)(X.UQ, {
allowToggle: !0,
defaultIndex: [0],
paddingLeft: 3,
- children: (0, l.jsxs)(M.Qd, {
+ children: (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsx)(M.KF, {
- children: (0, l.jsxs)(_.k, {
+ (0, l.jsx)(X.KF, {
+ children: (0, l.jsxs)(U.k, {
justifyContent: 'space-between',
w: '100%',
children: [
- (0, l.jsx)(U.x, { children: 'Colors' }),
- (0, l.jsx)(M.XE, { marginRight: 2 }),
+ (0, l.jsx)(Q.x, { children: 'Colors' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
],
}),
}),
- (0, l.jsx)(M.Hk, {
- children: (0, l.jsx)(W.gC, {
+ (0, l.jsx)(X.Hk, {
+ children: (0, l.jsx)(_.gC, {
spacing: 2,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, {
+ divider: (0, l.jsx)(_.cX, {
borderColor: 'gray.500',
}),
align: 'stretch',
color: 'gray.800',
children: (0, l.jsxs)(j.xu, {
children: [
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Nodes' }),
- (0, l.jsx)(B.u, {
+ (0, l.jsx)(Q.x, { children: 'Nodes' }),
+ (0, l.jsx)(M.u, {
label: 'Shuffle node colors',
- children: (0, l.jsx)(A.h, {
+ children: (0, l.jsx)(F.h, {
'aria-label': 'Shuffle node colors',
size: 'sm',
icon: (0, l.jsx)(P.n, {}),
@@ -607,8 +654,8 @@
? e
: []
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{
nodeColorScheme: n
@@ -632,11 +679,11 @@
},
}),
}),
- (0, l.jsx)(B.u, {
+ (0, l.jsx)(M.u, {
label: 'Cycle node colors',
- children: (0, l.jsx)(A.h, {
+ children: (0, l.jsx)(F.h, {
'aria-label': 'Shift node colors',
- icon: (0, l.jsx)(Z.L, {}),
+ icon: (0, l.jsx)(E.L, {}),
size: 'sm',
variant: 'ghost',
onClick: function () {
@@ -647,12 +694,12 @@
? e
: []
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{
nodeColorScheme: [].concat(
- (0, a.Z)(n.slice(1, n.length)),
+ (0, s.Z)(n.slice(1, n.length)),
[n[0]],
),
},
@@ -661,18 +708,18 @@
},
}),
}),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsxs)(K.v2, {
placement: 'right',
closeOnSelect: !1,
matchWidth: !0,
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
width: 20,
as: V.z,
colorScheme: '',
color: 'black',
- rightIcon: (0, l.jsx)(E.v, {}),
- children: (0, l.jsx)(_.k, {
+ rightIcon: (0, l.jsx)(Z.v, {}),
+ children: (0, l.jsx)(U.k, {
height: 6,
width: 6,
flexDirection: 'column',
@@ -695,27 +742,27 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsx)(q.qy, {
+ (0, l.jsx)(K.qy, {
minW: 10,
zIndex: 'popover',
bgColor: 'gray.200',
- children: (0, l.jsx)(q.__, {
+ children: (0, l.jsx)(K.__, {
width: 500,
type: 'checkbox',
defaultValue: d.nodeColorScheme,
onChange: function (e) {
e.length &&
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ nodeColorScheme: e },
),
)
},
- children: w.map(function (e) {
+ children: $.map(function (e) {
return (0, l.jsx)(
- q.ii,
+ K.ii,
{
isChecked:
d.nodeColorScheme.some(
@@ -757,19 +804,19 @@
}),
],
}),
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Links' }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: 'Links' }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
colorScheme: '',
color: 'black',
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
children: (0, l.jsx)(j.xu, {
children: d.linkColorScheme
? (0, l.jsx)(j.xu, {
@@ -778,7 +825,7 @@
height: 6,
width: 6,
})
- : (0, l.jsx)(_.k, {
+ : (0, l.jsx)(U.k, {
height: 6,
width: 6,
flexDirection: 'column',
@@ -802,16 +849,16 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
minW: 10,
zIndex: 'popover',
bgColor: 'gray.200',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ linkColorScheme: '' },
),
@@ -820,7 +867,7 @@
justifyContent: 'space-between',
alignItems: 'center',
display: 'flex',
- children: (0, l.jsx)(_.k, {
+ children: (0, l.jsx)(U.k, {
height: 6,
width: 6,
flexDirection: 'column',
@@ -841,14 +888,14 @@
),
}),
}),
- w.map(function (e) {
+ $.map(function (e) {
return (0, l.jsx)(
- q.sN,
+ K.sN,
{
onClick: function () {
return h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{
linkColorScheme: e,
@@ -878,21 +925,21 @@
}),
],
}),
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Accent' }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: 'Accent' }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
colorScheme: '',
color: 'black',
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
children: (0, l.jsx)(j.xu, {
- bgColor: y,
+ bgColor: H,
borderRadius: 'sm',
height: 6,
width: 6,
@@ -901,16 +948,16 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsx)(q.qy, {
+ (0, l.jsx)(K.qy, {
minW: 10,
zIndex: 'popover',
bgColor: 'gray.200',
- children: w.map(function (e) {
+ children: $.map(function (e) {
return (0, l.jsx)(
- q.sN,
+ K.sN,
{
onClick: function () {
- return k(e)
+ return B(e)
},
justifyContent:
'space-between',
@@ -933,32 +980,32 @@
}),
],
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Link highlight',
visuals: d,
setVisuals: h,
value: 'linkHighlight',
visValue: d.linkHighlight,
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Node highlight',
visuals: d,
setVisuals: h,
value: 'nodeHighlight',
visValue: d.nodeHighlight,
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Background',
visuals: d,
setVisuals: h,
value: 'backgroundColor',
visValue: d.backgroundColor,
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Emacs node',
visuals: d,
setVisuals: h,
@@ -972,103 +1019,103 @@
],
}),
}),
- (0, l.jsxs)(W.gC, {
+ (0, l.jsxs)(_.gC, {
spacing: 2,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, { borderColor: 'gray.500' }),
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.500' }),
align: 'stretch',
paddingLeft: 7,
color: 'gray.800',
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Node size',
value: d.nodeRel,
onChange: function (e) {
- return h(te(te({}, d), {}, { nodeRel: e }))
+ return h(ie(ie({}, d), {}, { nodeRel: e }))
},
}),
r &&
(0, l.jsxs)(l.Fragment, {
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Node opacity',
value: d.nodeOpacity,
min: 0,
max: 1,
onChange: function (e) {
- return h(te(te({}, d), {}, { nodeOpacity: e }))
+ return h(ie(ie({}, d), {}, { nodeOpacity: e }))
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Node resolution',
value: d.nodeResolution,
min: 5,
max: 32,
step: 1,
onChange: function (e) {
- return h(te(te({}, d), {}, { nodeResolution: e }))
+ return h(ie(ie({}, d), {}, { nodeResolution: e }))
},
}),
],
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Link width',
value: d.linkWidth,
onChange: function (e) {
- return h(te(te({}, d), {}, { linkWidth: e }))
+ return h(ie(ie({}, d), {}, { linkWidth: e }))
},
}),
r &&
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Link opacity',
min: 0,
max: 1,
value: d.linkOpacity,
onChange: function (e) {
- return h(te(te({}, d), {}, { linkOpacity: e }))
+ return h(ie(ie({}, d), {}, { linkOpacity: e }))
},
}),
- (0, l.jsxs)(le, {
+ (0, l.jsxs)(ae, {
label: 'Dash cite links',
infoText:
'Add dashes to citation links made with org-roam-bibtex',
value: d.citeDashes,
onChange: function () {
return h(
- te(te({}, d), {}, { citeDashes: !d.citeDashes }),
+ ie(ie({}, d), {}, { citeDashes: !d.citeDashes }),
)
},
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Dash length',
value: d.citeDashLength / 10,
onChange: function (e) {
return h(
- te(te({}, d), {}, { citeDashLength: 10 * e }),
+ ie(ie({}, d), {}, { citeDashLength: 10 * e }),
)
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Gap length',
value: d.citeGapLength / 5,
onChange: function (e) {
return h(
- te(te({}, d), {}, { citeGapLength: 5 * e }),
+ ie(ie({}, d), {}, { citeGapLength: 5 * e }),
)
},
}),
],
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Citation node color',
visuals: d,
setVisuals: h,
value: 'citeNodeColor',
visValue: d.citeNodeColor,
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Citationlink color',
visuals: d,
setVisuals: h,
@@ -1077,19 +1124,19 @@
}),
(0, l.jsxs)(j.xu, {
children: [
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Labels' }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: 'Labels' }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
colorScheme: '',
color: 'black',
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
children: d.labels
? d.labels < 2
? 'On Highlight'
@@ -1099,38 +1146,38 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
zIndex: 'popover',
bgColor: 'gray.200',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return h(
- te(te({}, d), {}, { labels: 0 }),
+ ie(ie({}, d), {}, { labels: 0 }),
)
},
children: 'Never',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return h(
- te(te({}, d), {}, { labels: 1 }),
+ ie(ie({}, d), {}, { labels: 1 }),
)
},
children: 'On Highlight',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return h(
- te(te({}, d), {}, { labels: 2 }),
+ ie(ie({}, d), {}, { labels: 2 }),
)
},
children: 'Always',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return h(
- te(te({}, d), {}, { labels: 3 }),
+ ie(ie({}, d), {}, { labels: 3 }),
)
},
children: 'Always (even in 3D)',
@@ -1143,48 +1190,48 @@
}),
],
}),
- (0, l.jsx)(K.U, {
+ (0, l.jsx)(J.U, {
in: d.labels > 0,
animateOpacity: !0,
- children: (0, l.jsxs)(W.gC, {
+ children: (0, l.jsxs)(_.gC, {
spacing: 1,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, {
+ divider: (0, l.jsx)(_.cX, {
borderColor: 'gray.400',
}),
align: 'stretch',
paddingLeft: 2,
color: 'gray.800',
children: [
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Text',
visuals: d,
setVisuals: h,
value: 'labelTextColor',
visValue: d.labelTextColor,
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Text',
visuals: d,
setVisuals: h,
value: 'labelBackgroundColor',
visValue: d.labelBackgroundColor,
}),
- (0, l.jsx)(K.U, {
+ (0, l.jsx)(J.U, {
in: !!d.labelBackgroundColor,
animateOpacity: !0,
children: (0, l.jsx)(j.xu, {
paddingTop: 2,
- children: (0, l.jsx)(oe, {
+ children: (0, l.jsx)(se, {
label: 'Background opacity',
value: d.labelBackgroundOpacity,
onChange: function (e) {
console.log(d.labelBackgroundOpacity),
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ labelBackgroundOpacity: e },
),
@@ -1196,18 +1243,18 @@
}),
}),
}),
- (0, l.jsx)(K.U, {
+ (0, l.jsx)(J.U, {
in: d.labels > 1,
animateOpacity: !0,
children: (0, l.jsx)(j.xu, {
paddingTop: 2,
- children: (0, l.jsx)(oe, {
+ children: (0, l.jsx)(se, {
label: 'Label Appearance Scale',
value: 5 * d.labelScale,
onChange: function (e) {
return h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ labelScale: e / 5 },
),
@@ -1221,34 +1268,34 @@
}),
],
}),
- (0, l.jsxs)(le, {
+ (0, l.jsxs)(ae, {
label: 'Link arrows',
value: d.arrows,
onChange: function () {
- return h(te(te({}, d), {}, { arrows: !d.arrows }))
+ return h(ie(ie({}, d), {}, { arrows: !d.arrows }))
},
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Arrow size',
value: d.arrowsLength / 10,
onChange: function (e) {
return h(
- te(te({}, d), {}, { arrowsLength: 10 * e }),
+ ie(ie({}, d), {}, { arrowsLength: 10 * e }),
)
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Arrow Position',
value: d.arrowsPos,
min: 0,
max: 1,
step: 0.01,
onChange: function (e) {
- return h(te(te({}, d), {}, { arrowsPos: e }))
+ return h(ie(ie({}, d), {}, { arrowsPos: e }))
},
}),
- (0, l.jsx)(ae, {
- colorList: w,
+ (0, l.jsx)(ce, {
+ colorList: $,
label: 'Arrow Color',
visuals: d,
setVisuals: h,
@@ -1257,68 +1304,68 @@
}),
],
}),
- (0, l.jsxs)(le, {
+ (0, l.jsxs)(ae, {
label: 'Directional Particles',
value: d.particles,
onChange: function () {
- return h(te(te({}, d), {}, { particles: !d.particles }))
+ return h(ie(ie({}, d), {}, { particles: !d.particles }))
},
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Particle Number',
value: d.particlesNumber,
max: 5,
step: 1,
onChange: function (e) {
- return h(te(te({}, d), {}, { particlesNumber: e }))
+ return h(ie(ie({}, d), {}, { particlesNumber: e }))
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Particle Size',
value: d.particlesWidth,
onChange: function (e) {
- return h(te(te({}, d), {}, { particlesWidth: e }))
+ return h(ie(ie({}, d), {}, { particlesWidth: e }))
},
}),
],
}),
- (0, l.jsx)(le, {
+ (0, l.jsx)(ae, {
label: 'Highlight',
onChange: function () {
- return h(te(te({}, d), {}, { highlight: !d.highlight }))
+ return h(ie(ie({}, d), {}, { highlight: !d.highlight }))
},
value: d.highlight,
- children: (0, l.jsxs)(W.gC, {
+ children: (0, l.jsxs)(_.gC, {
spacing: 1,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, { borderColor: 'gray.400' }),
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.400' }),
align: 'stretch',
paddingLeft: 0,
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Highlight Link Thickness',
value: d.highlightLinkSize,
onChange: function (e) {
return h(
- te(te({}, d), {}, { highlightLinkSize: e }),
+ ie(ie({}, d), {}, { highlightLinkSize: e }),
)
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Highlight Node Size',
value: d.highlightNodeSize,
onChange: function (e) {
return h(
- te(te({}, d), {}, { highlightNodeSize: e }),
+ ie(ie({}, d), {}, { highlightNodeSize: e }),
)
},
}),
- (0, l.jsxs)(le, {
+ (0, l.jsxs)(ae, {
label: 'Highlight Animation',
onChange: function () {
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ highlightAnim: !d.highlightAnim },
),
@@ -1326,11 +1373,11 @@
},
value: d.highlightAnim,
children: [
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Animation speed',
onChange: function (e) {
return h(
- te(te({}, d), {}, { animationSpeed: e }),
+ ie(ie({}, d), {}, { animationSpeed: e }),
)
},
value: d.animationSpeed,
@@ -1340,12 +1387,12 @@
max: 1e3,
step: 10,
}),
- (0, l.jsx)(J.Ph, {
+ (0, l.jsx)(Y.Ph, {
placeholder: d.algorithmName,
onChange: function (e) {
h(
- te(
- te({}, d),
+ ie(
+ ie({}, d),
{},
{ algorithmName: e.target.value },
),
@@ -1368,45 +1415,45 @@
}),
],
}),
- (0, l.jsxs)(M.Qd, {
+ (0, l.jsxs)(X.Qd, {
children: [
- (0, l.jsxs)(M.KF, {
+ (0, l.jsxs)(X.KF, {
children: [
- (0, l.jsx)(M.XE, { marginRight: 2 }),
- (0, l.jsx)(X.X, { size: 'sm', children: 'Behavior' }),
+ (0, l.jsx)(X.XE, { marginRight: 2 }),
+ (0, l.jsx)(W.X, { size: 'sm', children: 'Behavior' }),
],
}),
- (0, l.jsx)(M.Hk, {
- children: (0, l.jsxs)(W.gC, {
+ (0, l.jsx)(X.Hk, {
+ children: (0, l.jsxs)(_.gC, {
spacing: 2,
justifyContent: 'flex-start',
- divider: (0, l.jsx)(W.cX, { borderColor: 'gray.500' }),
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.500' }),
align: 'stretch',
paddingLeft: 7,
color: 'gray.800',
children: [
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
children: [
- (0, l.jsx)(U.x, { children: 'Expand Node' }),
- (0, l.jsx)(ie, {
+ (0, l.jsx)(Q.x, { children: 'Expand Node' }),
+ (0, l.jsx)(le, {
infoText:
'View only the node and its direct neighbors',
}),
],
}),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
colorScheme: '',
color: 'black',
- children: (0, l.jsx)(U.x, {
+ children: (0, l.jsx)(Q.x, {
children: g.local
? g.local[0].toUpperCase() + g.local.slice(1)
: 'Never',
@@ -1415,36 +1462,36 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
zIndex: 'popover',
bgColor: 'gray.200',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(te(te({}, g), {}, { local: '' }))
+ return f(ie(ie({}, g), {}, { local: '' }))
},
children: 'Never',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { local: 'click' }),
+ return f(
+ ie(ie({}, g), {}, { local: 'click' }),
)
},
children: 'Click',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { local: 'double' }),
+ return f(
+ ie(ie({}, g), {}, { local: 'double' }),
)
},
children: 'Double Click',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { local: 'right' }),
+ return f(
+ ie(ie({}, g), {}, { local: 'right' }),
)
},
children: 'Right Click',
@@ -1457,20 +1504,20 @@
}),
],
}),
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Open in Emacs' }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: 'Open in Emacs' }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
colorScheme: '',
color: 'black',
- children: (0, l.jsx)(U.x, {
+ children: (0, l.jsx)(Q.x, {
children: g.follow
? g.follow[0].toUpperCase() + g.follow.slice(1)
: 'Never',
@@ -1479,36 +1526,36 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
bgColor: 'gray.200',
zIndex: 'popover',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(te(te({}, g), {}, { follow: '' }))
+ return f(ie(ie({}, g), {}, { follow: '' }))
},
children: 'Never',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { follow: 'click' }),
+ return f(
+ ie(ie({}, g), {}, { follow: 'click' }),
)
},
children: 'Click',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { follow: 'double' }),
+ return f(
+ ie(ie({}, g), {}, { follow: 'double' }),
)
},
children: 'Double Click',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return x(
- te(te({}, g), {}, { follow: 'right' }),
+ return f(
+ ie(ie({}, g), {}, { follow: 'right' }),
)
},
children: 'Right Click',
@@ -1521,43 +1568,43 @@
}),
],
}),
- (0, l.jsxs)(_.k, {
+ (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: 'Follow Emacs by...' }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: 'Follow Emacs by...' }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
colorScheme: '',
color: 'black',
- children: (0, l.jsx)(U.x, {
+ children: (0, l.jsx)(Q.x, {
children:
- f.follow[0].toUpperCase() + f.follow.slice(1),
+ x.follow[0].toUpperCase() + x.follow.slice(1),
}),
}),
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
bgColor: 'gray.200',
zIndex: 'popover',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return p(
- te(te({}, f), {}, { follow: 'local' }),
+ ie(ie({}, x), {}, { follow: 'local' }),
)
},
children: 'Opening the local graph',
}),
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
return p(
- te(te({}, f), {}, { follow: 'zoom' }),
+ ie(ie({}, x), {}, { follow: 'zoom' }),
)
},
children: 'Zooming to the current node',
@@ -1570,24 +1617,24 @@
}),
],
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Zoom speed',
- value: f.zoomSpeed,
+ value: x.zoomSpeed,
min: 0,
max: 4e3,
step: 100,
onChange: function (e) {
- return p(te(te({}, f), {}, { zoomSpeed: e }))
+ return p(ie(ie({}, x), {}, { zoomSpeed: e }))
},
}),
- (0, l.jsx)(oe, {
+ (0, l.jsx)(se, {
label: 'Zoom padding',
- value: f.zoomPadding,
+ value: x.zoomPadding,
min: 0,
max: 400,
step: 1,
onChange: function (e) {
- return p(te(te({}, f), {}, { zoomPadding: e }))
+ return p(ie(ie({}, x), {}, { zoomPadding: e }))
},
infoText:
'How much to zoom out to accomodate all nodes when changing the view.',
@@ -1606,11 +1653,11 @@
],
})
},
- ie = function (e) {
+ le = function (e) {
var n = e.infoText
return (0, l.jsx)(j.xu, {
paddingLeft: '1',
- children: (0, l.jsx)(B.u, {
+ children: (0, l.jsx)(M.u, {
label: n,
placement: 'top',
color: 'gray.100',
@@ -1620,46 +1667,46 @@
}),
})
},
- oe = function (e) {
+ se = function (e) {
var n = e.min,
t = void 0 === n ? 0 : n,
r = e.max,
i = void 0 === r ? 10 : r,
o = e.step,
- a = void 0 === o ? 0.1 : o,
- s = e.value,
- c = void 0 === s ? 1 : s,
- d = (0, L.Z)(e, ['min', 'max', 'step', 'value']),
+ s = void 0 === o ? 0.1 : o,
+ a = e.value,
+ c = void 0 === a ? 1 : a,
+ d = (0, z.Z)(e, ['min', 'max', 'step', 'value']),
h = d.onChange,
g = d.label,
- x = d.infoText,
- f = (0, u.useContext)(ee.N).highlightColor
+ f = d.infoText,
+ x = (0, u.useContext)(te.N).highlightColor
return (0, l.jsxs)(j.xu, {
children: [
(0, l.jsxs)(j.xu, {
display: 'flex',
alignItems: 'flex-end',
- children: [(0, l.jsx)(U.x, { children: g }), x && (0, l.jsx)(ie, { infoText: x })],
+ children: [(0, l.jsx)(Q.x, { children: g }), f && (0, l.jsx)(le, { infoText: f })],
}),
- (0, l.jsxs)(Y.iR, {
+ (0, l.jsxs)($.iR, {
value: c,
onChange: h,
min: t,
max: i,
- step: a,
+ step: s,
children: [
- (0, l.jsx)(Y.Uj, { children: (0, l.jsx)(Y.Ms, {}) }),
- (0, l.jsx)(B.u, {
- bg: f,
+ (0, l.jsx)($.Uj, { children: (0, l.jsx)($.Ms, {}) }),
+ (0, l.jsx)(M.u, {
+ bg: x,
label: c.toFixed(1),
- children: (0, l.jsx)(Y.gs, { bg: 'white' }),
+ children: (0, l.jsx)($.gs, { bg: 'white' }),
}),
],
}),
],
})
},
- le = function (e) {
+ ae = function (e) {
var n = e.value,
t = e.onChange,
r = e.label,
@@ -1677,14 +1724,14 @@
display: 'flex',
alignItems: 'center',
children: [
- (0, l.jsx)(U.x, { children: r }),
- i && (0, l.jsx)(ie, { infoText: i }),
+ (0, l.jsx)(Q.x, { children: r }),
+ i && (0, l.jsx)(le, { infoText: i }),
],
}),
- (0, l.jsx)(Q.r, { isChecked: !!n, onChange: t }),
+ (0, l.jsx)(q.r, { isChecked: !!n, onChange: t }),
],
}),
- (0, l.jsx)(K.U, {
+ (0, l.jsx)(J.U, {
in: !!n,
animateOpacity: !0,
children: (0, l.jsx)(j.xu, {
@@ -1697,26 +1744,26 @@
],
})
},
- ae = function (e) {
+ ce = function (e) {
var n = e.label,
t = e.colorList,
r = e.value,
i = e.visuals,
o = e.visValue,
- a = e.setVisuals
- return (0, l.jsxs)(_.k, {
+ s = e.setVisuals
+ return (0, l.jsxs)(U.k, {
alignItems: 'center',
justifyContent: 'space-between',
children: [
- (0, l.jsx)(U.x, { children: n }),
- (0, l.jsxs)(q.v2, {
+ (0, l.jsx)(Q.x, { children: n }),
+ (0, l.jsxs)(K.v2, {
placement: 'right',
children: [
- (0, l.jsx)(q.j2, {
+ (0, l.jsx)(K.j2, {
as: V.z,
colorScheme: '',
color: 'black',
- rightIcon: (0, l.jsx)(E.v, {}),
+ rightIcon: (0, l.jsx)(Z.v, {}),
children: (0, l.jsx)(j.xu, {
bgColor: o,
borderRadius: 'sm',
@@ -1727,14 +1774,14 @@
(0, l.jsxs)(G.h, {
children: [
' ',
- (0, l.jsxs)(q.qy, {
+ (0, l.jsxs)(K.qy, {
minW: 10,
zIndex: 'popover',
bgColor: 'gray.200',
children: [
- (0, l.jsx)(q.sN, {
+ (0, l.jsx)(K.sN, {
onClick: function () {
- return a(te(te({}, i), {}, (0, s.Z)({}, r, '')))
+ return s(ie(ie({}, i), {}, (0, a.Z)({}, r, '')))
},
justifyContent: 'space-between',
alignItems: 'center',
@@ -1743,10 +1790,10 @@
}),
t.map(function (e) {
return (0, l.jsx)(
- q.sN,
+ K.sN,
{
onClick: function () {
- return a(te(te({}, i), {}, (0, s.Z)({}, r, e)))
+ return s(ie(ie({}, i), {}, (0, a.Z)({}, r, e)))
},
justifyContent: 'space-between',
alignItems: 'center',
@@ -1770,9 +1817,214 @@
],
})
},
- se = t(1122),
- ce = t(2003)
- function ue(e, n) {
+ ue = function (e) {
+ var n = e.filter,
+ t = e.setFilter,
+ r = e.tags,
+ i = e.highlightColor,
+ o = r.map(function (e) {
+ return { value: e, label: e }
+ }),
+ s = (0, u.useState)([]),
+ a = s[0],
+ c = s[1]
+ return (0, l.jsx)(ee.CUIAutoComplete, {
+ items: o,
+ label: 'Add tag to filter',
+ placeholder: ' ',
+ onCreateItem: function (e) {
+ return null
+ },
+ disableCreateItem: !0,
+ selectedItems: a,
+ onSelectedItemsChange: function (e) {
+ e.selectedItems &&
+ (c(e.selectedItems),
+ t(
+ ie(
+ ie({}, n),
+ {},
+ {
+ tags: a.map(function (e) {
+ return e.value
+ }),
+ },
+ ),
+ ))
+ },
+ listItemStyleProps: { overflow: 'hidden' },
+ highlightItemBg: 'gray.400',
+ toggleButtonStyleProps: { variant: 'outline' },
+ inputStyleProps: { focusBorderColor: i, color: 'gray.800', borderColor: 'gray.600' },
+ tagStyleProps: {
+ rounded: 'full',
+ bg: i,
+ height: 8,
+ paddingLeft: 4,
+ fontWeight: 'bold',
+ },
+ hideToggleButton: !0,
+ itemRenderer: function (e) {
+ return e.label
+ },
+ })
+ },
+ de = function (e) {
+ var n = e.colorList,
+ t = e.tagColors,
+ r = e.setTagColors,
+ i = e.highlightColor,
+ o = e.tags.map(function (e) {
+ return { value: e, label: e }
+ }),
+ s = (0, u.useState)([]),
+ c = s[0],
+ d = s[1]
+ return (0, l.jsxs)(j.xu, {
+ children: [
+ (0, l.jsx)(ee.CUIAutoComplete, {
+ items: o,
+ label: 'Add tag to filter',
+ placeholder: ' ',
+ disableCreateItem: !0,
+ selectedItems: c,
+ onSelectedItemsChange: function (e) {
+ e.selectedItems &&
+ (d(Array.from(new Set(e.selectedItems))),
+ r(
+ Object.fromEntries(
+ Array.from(new Set(e.selectedItems)).map(function (e) {
+ var n
+ return [
+ e.label,
+ null !== (n = t[e.label]) && void 0 !== n ? n : 'gray.600',
+ ]
+ }),
+ ),
+ ))
+ },
+ listItemStyleProps: { overflow: 'hidden' },
+ highlightItemBg: 'gray.400',
+ toggleButtonStyleProps: { variant: 'outline' },
+ inputStyleProps: {
+ focusBorderColor: i,
+ color: 'gray.800',
+ borderColor: 'gray.600',
+ },
+ tagStyleProps: {
+ display: 'none',
+ rounded: 'full',
+ bg: i,
+ height: 8,
+ paddingLeft: 4,
+ fontWeight: 'bold',
+ },
+ hideToggleButton: !0,
+ itemRenderer: function (e) {
+ return e.label
+ },
+ }),
+ (0, l.jsx)(_.gC, {
+ spacing: 2,
+ justifyContent: 'flex-start',
+ divider: (0, l.jsx)(_.cX, { borderColor: 'gray.500' }),
+ align: 'stretch',
+ color: 'gray.800',
+ children: Object.keys(t).map(function (e) {
+ return (0, l.jsxs)(
+ U.k,
+ {
+ alignItems: 'center',
+ justifyContent: 'space-between',
+ width: '100%',
+ pl: 2,
+ children: [
+ (0, l.jsx)(j.xu, {
+ width: '100%',
+ children: (0, l.jsx)(Q.x, { fontWeight: 'bold', children: e }),
+ }),
+ (0, l.jsxs)(K.v2, {
+ isLazy: !0,
+ placement: 'right',
+ children: [
+ (0, l.jsx)(K.j2, {
+ as: V.z,
+ colorScheme: '',
+ color: 'black',
+ children: (0, l.jsx)(j.xu, {
+ bgColor: t[e],
+ borderRadius: 'sm',
+ height: 6,
+ width: 6,
+ }),
+ }),
+ (0, l.jsxs)(G.h, {
+ children: [
+ ' ',
+ (0, l.jsx)(K.qy, {
+ minW: 10,
+ zIndex: 'popover',
+ bgColor: 'gray.200',
+ children: n.map(function (n) {
+ return (0, l.jsx)(
+ K.sN,
+ {
+ onClick: function () {
+ return r(ie(ie({}, t), {}, (0, a.Z)({}, e, n)))
+ },
+ justifyContent: 'space-between',
+ alignItems: 'center',
+ display: 'flex',
+ children: (0, l.jsx)(j.xu, {
+ bgColor: n,
+ borderRadius: 'sm',
+ height: 6,
+ width: 6,
+ }),
+ },
+ n,
+ )
+ }),
+ }),
+ ],
+ }),
+ ],
+ }),
+ (0, l.jsx)(F.h, {
+ 'aria-label': 'Delete tag color',
+ variant: 'ghost',
+ icon: (0, l.jsx)(B.p, {}),
+ onClick: function () {
+ r(
+ Object.fromEntries(
+ Array.from(new Set(c)).map(function (e) {
+ var n
+ return [
+ e.label,
+ null !== (n = t[e.label]) && void 0 !== n ? n : 'gray.600',
+ ]
+ }),
+ ),
+ ),
+ d(
+ c.filter(function (n) {
+ return n.value !== e
+ }),
+ )
+ },
+ }),
+ ],
+ },
+ e,
+ )
+ }),
+ }),
+ ],
+ })
+ },
+ he = t(31122),
+ ge = t(22003)
+ function fe(e, n) {
var t = Object.keys(e)
if (Object.getOwnPropertySymbols) {
var r = Object.getOwnPropertySymbols(e)
@@ -1784,25 +2036,25 @@
}
return t
}
- function de(e) {
+ function xe(e) {
for (var n = 1; n < arguments.length; n++) {
var t = null != arguments[n] ? arguments[n] : {}
n % 2
- ? ue(Object(t), !0).forEach(function (n) {
- ;(0, s.Z)(e, n, t[n])
+ ? fe(Object(t), !0).forEach(function (n) {
+ ;(0, a.Z)(e, n, t[n])
})
: Object.getOwnPropertyDescriptors
? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t))
- : ue(Object(t)).forEach(function (n) {
+ : fe(Object(t)).forEach(function (n) {
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n))
})
}
return e
}
- var he = t.e(4).then(t.bind(t, 7004)),
- ge = t.g.window ? t(1957).f$ : null,
- xe = t.g.window ? t(1957).s6 : null
- function fe() {
+ var pe = t.e(4).then(t.bind(t, 57004)),
+ je = t.g.window ? t(61957).f$ : null,
+ me = t.g.window ? t(61957).s6 : null
+ function ve() {
var e = (0, u.useState)(!1),
n = e[0],
t = e[1]
@@ -1810,64 +2062,69 @@
(0, u.useEffect)(function () {
t(!0)
}, []),
- n ? (0, l.jsx)(pe, {}) : null
+ n ? (0, l.jsx)(be, {}) : null
)
}
- function pe() {
+ function be() {
var e = d('physics', S),
n = (0, c.Z)(e, 2),
t = n[0],
r = n[1],
- i = d('filter', O),
+ i = d('filter', I),
o = (0, c.Z)(i, 2),
h = o[0],
g = o[1],
- x = d('visuals', N),
- f = (0, c.Z)(x, 2),
- p = f[0],
- m = f[1],
+ f = d('visuals', O),
+ x = (0, c.Z)(f, 2),
+ p = x[0],
+ m = x[1],
v = (0, u.useState)(null),
b = v[0],
C = v[1],
y = (0, u.useState)(null),
k = y[0],
w = y[1],
- L = d('behavior', I),
- D = (0, c.Z)(L, 2),
- R = D[0],
- T = D[1],
- P = d('mouse', z),
- Z = (0, c.Z)(P, 2),
- E = Z[0],
- H = Z[1],
- F = (0, u.useRef)({}),
+ z = d('behavior', N),
+ T = (0, c.Z)(z, 2),
+ R = T[0],
+ D = T[1],
+ P = d('mouse', L),
+ E = (0, c.Z)(P, 2),
+ Z = E[0],
+ H = E[1],
+ B = (0, u.useRef)({}),
A = (0, u.useRef)({}),
- B = (0, u.useContext)(ee.N).setEmacsTheme,
+ F = (0, u.useRef)([]),
+ M = (0, u.useContext)(te.N).setEmacsTheme,
V = d('3d', !1),
- M = (0, c.Z)(V, 2),
- X = M[0],
- W = M[1],
- _ = (0, u.useState)({ nodeIds: [] }),
- U = _[0],
- Q = _[1],
- q = (0, u.useRef)({ nodeIds: [] }),
- G = (0, u.useRef)(I)
- G.current = R
- var K = (0, u.useRef)(null),
- J = (0, u.useRef)(null)
- q.current = U
- var Y = function (e, n) {
+ X = (0, c.Z)(V, 2),
+ W = X[0],
+ _ = X[1],
+ U = d('tagCols', {}),
+ Q = (0, c.Z)(U, 2),
+ q = Q[0],
+ K = Q[1],
+ G = (0, u.useState)({ nodeIds: [] }),
+ J = G[0],
+ Y = G[1],
+ $ = (0, u.useRef)({ nodeIds: [] }),
+ ee = (0, u.useRef)(N)
+ ee.current = R
+ var ne = (0, u.useRef)(null),
+ re = (0, u.useRef)(null)
+ $.current = J
+ var ie = function (e, n) {
var t,
r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 2e3,
i = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : 200,
- o = K.current,
- l = q.current,
- s = G.current,
+ o = ne.current,
+ l = $.current,
+ a = ee.current,
c = null !== (t = A.current[n]) && void 0 !== t ? t : [],
u = Object.fromEntries(
[n]
.concat(
- (0, a.Z)(
+ (0, s.Z)(
c.flatMap(function (e) {
return [e.source, e.target]
}),
@@ -1880,15 +2137,15 @@
return 'zoom' === e
? (console.log(l),
l.nodeIds.length &&
- (console.log('emptying'), console.log('scope ' + l.nodeIds), Q({ nodeIds: [] })),
+ (console.log('emptying'), console.log('scope ' + l.nodeIds), Y({ nodeIds: [] })),
void setTimeout(function () {
return o.zoomToFit(r, i, function (e) {
return u[e.id]
})
}, 50))
: l.nodeIds.length
- ? 'add' !== s.localSame
- ? (Q({ nodeIds: [n] }),
+ ? 'add' !== a.localSame
+ ? (Y({ nodeIds: [n] }),
void setTimeout(function () {
o.centerAt(0, 0, r)
}, 50))
@@ -1896,46 +2153,47 @@
l.nodeIds.some(function (e) {
return u[e]
})
- ? (Q(function (e) {
- return de(de({}, e), {}, { nodeIds: [].concat((0, a.Z)(e.nodeIds), [n]) })
+ ? (Y(function (e) {
+ return xe(xe({}, e), {}, { nodeIds: [].concat((0, s.Z)(e.nodeIds), [n]) })
}),
void setTimeout(function () {
return o.zoomToFit(r, i, function (e) {
return u[e.id]
})
}, 50))
- : (Q({ nodeIds: [n] }),
+ : (Y({ nodeIds: [n] }),
void setTimeout(function () {
o.centerAt(0, 0, r)
}, 50))
- : (Q({ nodeIds: [n] }),
+ : (Y({ nodeIds: [n] }),
void setTimeout(function () {
o.centerAt(0, 0, r)
}, 50))
}
return (
(0, u.useEffect)(function () {
- ;(J.current = new ce.Z('ws://localhost:35903')),
- J.current.addEventListener('open', function (e) {
+ ;(re.current = new ge.Z('ws://localhost:35903')),
+ re.current.addEventListener('open', function (e) {
console.log('Connection with Emacs established')
}),
- J.current.addEventListener('message', function (e) {
- K.current
- var n = G.current,
+ re.current.addEventListener('message', function (e) {
+ ne.current
+ var n = ee.current,
t = JSON.parse(e.data)
switch (t.type) {
case 'graphdata':
return (function (e) {
+ F.current = e.tags
var n = e.nodes.reduce(function (e, n) {
var t
- return de(
- de({}, e),
+ return xe(
+ xe({}, e),
{},
- (0, s.Z)(
+ (0, a.Z)(
{},
n.file,
[].concat(
- (0, a.Z)(null !== (t = e[n.file]) && void 0 !== t ? t : []),
+ (0, s.Z)(null !== (t = e[n.file]) && void 0 !== t ? t : []),
[n],
),
),
@@ -1956,53 +2214,53 @@
})
: []
})
- F.current = Object.fromEntries(
+ B.current = Object.fromEntries(
e.nodes.map(function (e) {
return [e.id, e]
}),
)
- var r = [].concat((0, a.Z)(e.links), (0, a.Z)(t)).filter(function (e) {
+ var r = [].concat((0, s.Z)(e.links), (0, s.Z)(t)).filter(function (e) {
var n = e.source,
t = e.target
- return F.current[n] && F.current[t]
+ return B.current[n] && B.current[t]
})
A.current = r.reduce(function (e, n) {
var t, r, i
- return de(
- de({}, e),
+ return xe(
+ xe({}, e),
{},
((i = {}),
- (0, s.Z)(
+ (0, a.Z)(
i,
n.source,
[].concat(
- (0, a.Z)(null !== (t = e[n.source]) && void 0 !== t ? t : []),
+ (0, s.Z)(null !== (t = e[n.source]) && void 0 !== t ? t : []),
[n],
),
),
- (0, s.Z)(
+ (0, a.Z)(
i,
n.target,
[].concat(
- (0, a.Z)(null !== (r = e[n.target]) && void 0 !== r ? r : []),
+ (0, s.Z)(null !== (r = e[n.target]) && void 0 !== r ? r : []),
[n],
),
),
i),
)
}, {})
- var i = de(de({}, e), {}, { links: r }),
+ var i = xe(xe({}, e), {}, { links: r }),
o = JSON.parse(JSON.stringify(i))
C(o)
})(t.data)
case 'theme':
- return B(t.data)
+ return M(t.data)
case 'command':
switch (t.data.commandName) {
case 'local':
var r = R.zoomSpeed,
i = R.zoomPadding
- Y('local', t.data.id, r, i), w(t.data.id)
+ ie('local', t.data.id, r, i), w(t.data.id)
break
case 'zoom':
var o,
@@ -2015,10 +2273,10 @@
(null === t || void 0 === t || null === (l = t.data) || void 0 === l
? void 0
: l.padding) || n.zoomPadding
- Y('zoom', t.data.id, c, u), w(t.data.id)
+ ie('zoom', t.data.id, c, u), w(t.data.id)
break
case 'follow':
- Y(n.follow, t.data.id, n.zoomSpeed, n.zoomPadding), w(t.data.id)
+ ie(n.follow, t.data.id, n.zoomSpeed, n.zoomPadding), w(t.data.id)
break
default:
return console.error('unknown message type', t.type)
@@ -2034,48 +2292,55 @@
height: '100%',
children: [
(0, l.jsx)(
- re,
- de(
+ oe,
+ xe(
+ xe(
+ {},
+ {
+ physics: t,
+ setPhysics: r,
+ threeDim: W,
+ setThreeDim: _,
+ filter: h,
+ setFilter: g,
+ visuals: p,
+ setVisuals: m,
+ mouse: Z,
+ setMouse: H,
+ behavior: R,
+ setBehavior: D,
+ tagColors: q,
+ setTagColors: K,
+ },
+ ),
{},
- {
- physics: t,
- setPhysics: r,
- threeDim: X,
- setThreeDim: W,
- filter: h,
- setFilter: g,
- visuals: p,
- setVisuals: m,
- mouse: E,
- setMouse: H,
- behavior: R,
- setBehavior: T,
- },
+ { tags: F.current },
),
),
(0, l.jsx)(j.xu, {
position: 'absolute',
alignItems: 'top',
children: (0, l.jsx)(
- je,
- de(
+ Ce,
+ xe(
{
- ref: K,
- nodeById: F.current,
+ ref: ne,
+ nodeById: B.current,
linksByNodeId: A.current,
- webSocket: J.current,
+ webSocket: re.current,
},
{
physics: t,
graphData: b,
- threeDim: X,
+ threeDim: W,
emacsNodeId: k,
filter: h,
visuals: p,
behavior: R,
- mouse: E,
- scope: U,
- setScope: Q,
+ mouse: Z,
+ scope: J,
+ setScope: Y,
+ tagColors: q,
},
),
),
@@ -2085,10 +2350,10 @@
: null
)
}
- var je = (0, u.forwardRef)(function (e, n) {
+ var Ce = (0, u.forwardRef)(function (e, n) {
var t = e.physics,
r = e.graphData,
- s = e.threeDim,
+ a = e.threeDim,
d = e.linksByNodeId,
h = e.filter,
j = e.emacsNodeId,
@@ -2098,21 +2363,22 @@
C = e.scope,
y = e.setScope,
k = e.webSocket,
- S = (0, x.iP)(),
- O = (0, c.Z)(S, 2),
+ S = e.tagColors,
+ I = (0, f.iP)(),
+ O = (0, c.Z)(I, 2),
N = O[0],
- I = O[1],
+ L = O[1],
z = (0, u.useState)(null),
- L = z[0],
- D = z[1],
- R = (0, p.useTheme)(),
- T = (0, u.useContext)(ee.N).emacsTheme,
- P = function (e, n) {
+ T = z[0],
+ R = z[1],
+ D = (0, p.useTheme)(),
+ P = (0, u.useContext)(te.N).emacsTheme,
+ E = function (e, n) {
switch (e) {
case b.local:
if (C.nodeIds.includes(n.id)) break
y(function (e) {
- return de(de({}, e), {}, { nodeIds: [].concat((0, a.Z)(e.nodeIds), [n.id]) })
+ return xe(xe({}, e), {}, { nodeIds: [].concat((0, s.Z)(e.nodeIds), [n.id]) })
})
break
case b.follow:
@@ -2122,12 +2388,12 @@
Z = (0, u.useRef)(null)
;(0, u.useEffect)(
function () {
- j && D(m[j])
+ j && R(m[j])
},
[j],
),
- (Z.current = L)
- var E = (0, u.useMemo)(
+ (Z.current = T)
+ var H = (0, u.useMemo)(
function () {
if (!Z.current) return {}
var e = d[Z.current.id]
@@ -2135,7 +2401,7 @@
? Object.fromEntries(
[Z.current.id]
.concat(
- (0, a.Z)(
+ (0, s.Z)(
e.flatMap(function (e) {
return [e.source, e.target]
}),
@@ -2149,30 +2415,45 @@
},
[Z.current, d],
),
- H = (0, u.useMemo)(
+ B = (0, u.useMemo)(
function () {
var e = r.nodes.filter(function (e) {
var n,
- t = null !== (n = d[e.id]) && void 0 !== n ? n : []
- return (
- !h.orphans ||
- (h.parents
- ? 0 !== t.length
- : 0 !== t.length &&
- t.some(function (e) {
- return !['parent', 'ref'].includes(e.type)
- }))
- )
+ t = e,
+ r = null !== (n = d[t.id]) && void 0 !== n ? n : []
+ return h.tags.length && t.tags.length
+ ? !h.tags.some(function (e) {
+ return t.tags.indexOf(e) > -1
+ })
+ : !h.orphans ||
+ (h.parents
+ ? 0 !== r.length
+ : 0 !== r.length &&
+ r.some(function (e) {
+ return !['parent', 'ref'].includes(e.type)
+ }))
}),
- n =
- (e.map(function (e) {
- return e.id
- }),
- r.links.filter(function (e) {
- var n = e
- return h.parents || 'parent' !== n.type
- })),
- t = e.filter(function (e) {
+ n = e.map(function (e) {
+ return e.id
+ })
+ return {
+ filteredNodes: e,
+ filteredLinks: r.links.filter(function (e) {
+ if (h.tags.length) {
+ var t = 'object' === typeof e.source ? e.source.id : e.source,
+ r = 'object' === typeof e.target ? e.target.id : e.target
+ return n.includes(t) && n.includes(r)
+ }
+ var i = e
+ return h.parents || 'parent' !== i.type
+ }),
+ }
+ },
+ [h, r],
+ ),
+ A = (0, u.useMemo)(
+ function () {
+ var e = B.filteredNodes.filter(function (e) {
var n,
t = null !== (n = d[e.id]) && void 0 !== n ? n : []
return (
@@ -2182,15 +2463,17 @@
})
)
}),
- i = t.map(function (e) {
+ n = e.map(function (e) {
return e.id
}),
- o = n.filter(function (e) {
- var n = 'object' === typeof e.source ? e.source.id : e.source,
- t = 'object' === typeof e.target ? e.target.id : e.target
- return i.includes(n) && i.includes(t)
+ t = B.filteredLinks.filter(function (e) {
+ var t = 'object' === typeof e.source ? e.source.id : e.source,
+ r = 'object' === typeof e.target ? e.target.id : e.target
+ return n.includes(t) && n.includes(r)
})
- return 0 === C.nodeIds.length ? { nodes: e, links: n } : { nodes: t, links: o }
+ return 0 === C.nodeIds.length
+ ? { nodes: B.filteredNodes, links: B.filteredLinks }
+ : { nodes: e, links: t }
},
[h, C, r],
)
@@ -2202,14 +2485,14 @@
for (;;)
switch ((e.prev = e.next)) {
case 0:
- return (r = n.current), (e.next = 3), he
+ return (r = n.current), (e.next = 3), pe
case 3:
;(o = e.sent),
t.gravityOn
? (r.d3Force('x', o.forceX().strength(t.gravity)),
r.d3Force('y', o.forceY().strength(t.gravity)),
- s && r.d3Force('z', o.forceZ().strength(t.gravity)))
- : (r.d3Force('x', null), r.d3Force('y', null), s && r.d3Force('z', null)),
+ a && r.d3Force('z', o.forceZ().strength(t.gravity)))
+ : (r.d3Force('x', null), r.d3Force('y', null), a && r.d3Force('z', null)),
t.centering
? r.d3Force('center', o.forceCenter().strength(t.centeringStrength))
: r.d3Force('center', null),
@@ -2236,42 +2519,42 @@
[t],
)
var F = (0, u.useRef)(0),
- A = (0, u.useState)(1),
- B = A[0],
- V = A[1],
- M = (0, f._7)(
+ M = (0, u.useState)(1),
+ V = M[0],
+ X = M[1],
+ W = (0, x._7)(
function (e) {
- return V(e)
+ return X(e)
},
{ duration: v.animationSpeed, algorithm: w[v.algorithmName] },
),
- X = (0, c.Z)(M, 2),
- W = X[0],
- _ = X[1],
- U = (0, f._7)(
+ _ = (0, c.Z)(W, 2),
+ U = _[0],
+ Q = _[1],
+ q = (0, x._7)(
function (e) {
- return V(Math.min(B, -1 * (e - 1)))
+ return X(Math.min(V, -1 * (e - 1)))
},
{ duration: v.animationSpeed, algorithm: w[v.algorithmName] },
),
- Q = (0, c.Z)(U, 2),
- q = Q[0],
- G = Q[1],
- K = (0, u.useRef)(null)
+ K = (0, c.Z)(q, 2),
+ G = K[0],
+ J = K[1],
+ Y = (0, u.useRef)(null)
;(0, u.useEffect)(
function () {
- if ((L && (K.current = L), !v.highlightAnim)) return V(L ? 1 : 0)
- L ? W() : (_(), B > 0.5 ? q() : V(0))
+ if ((T && (Y.current = T), !v.highlightAnim)) return X(T ? 1 : 0)
+ T ? U() : (Q(), V > 0.5 ? G() : X(0))
},
- [L],
+ [T],
)
- var J = function (e) {
- if (R)
+ var $ = function (e) {
+ if (D)
return e.split('.').reduce(function (e, n) {
return e[n]
- }, R.colors)
+ }, D.colors)
},
- Y = (0, u.useMemo)(
+ ee = (0, u.useMemo)(
function () {
var e = v.nodeColorScheme.concat(
v.linkColorScheme || [],
@@ -2282,30 +2565,30 @@
)
return Object.fromEntries(
e.map(function (n) {
- var t = J(n),
+ var t = $(n),
r = e.map(function (e) {
- return [e, g.Z(t, J(e))]
+ return [e, g.Z(t, $(e))]
})
return [n, Object.fromEntries(r)]
}),
)
},
- [v.nodeColorScheme, v.linkHighlight, v.nodeHighlight, v.linkColorScheme, T],
+ [v.nodeColorScheme, v.linkHighlight, v.nodeHighlight, v.linkColorScheme, P],
),
- $ = (0, u.useMemo)(
+ ne = (0, u.useMemo)(
function () {
var e,
n,
t,
r =
- null !== (e = d[null === (n = K.current) || void 0 === n ? void 0 : n.id]) &&
+ null !== (e = d[null === (n = Y.current) || void 0 === n ? void 0 : n.id]) &&
void 0 !== e
? e
: []
return Object.fromEntries(
- [null === (t = K.current) || void 0 === t ? void 0 : t.id]
+ [null === (t = Y.current) || void 0 === t ? void 0 : t.id]
.concat(
- (0, a.Z)(
+ (0, s.Z)(
r.flatMap(function (e) {
return [e.source, e.target]
}),
@@ -2316,36 +2599,36 @@
}),
)
},
- [JSON.stringify(L), K.current],
+ [JSON.stringify(T), Y.current],
),
- ne = function (e) {
+ re = function (e) {
var n,
t,
r,
i,
o,
l,
- a =
+ s =
null !== (n = null === (t = d[e]) || void 0 === t ? void 0 : t.length) &&
void 0 !== n
? n
: 0,
- s = a
+ a = s
? null === (r = d[e]) || void 0 === r
? void 0
: r.filter(function (e) {
return 'parent' === e.type || 'cite' === e.type
}).length
: 0,
- c = h.parents ? a : a - s
+ c = h.parents ? s : s - a
return v.nodeColorScheme[
((i = c), (o = 0), (l = v.nodeColorScheme.length - 1), Math.min(Math.max(i, o), l))
]
},
- te = function (e, n) {
- return d[e] > d[n] ? ne(e) : ne(n)
+ ie = function (e, n) {
+ return d[e] > d[n] ? re(e) : re(n)
},
- re = function (e, n) {
+ oe = function (e, n) {
return (
'rgba(' +
(e = e.replace('#', ''))
@@ -2358,36 +2641,49 @@
')'
)
},
- ie = (0, u.useMemo)(
+ le = (0, u.useMemo)(
function () {
- return J(v.labelTextColor)
+ return $(v.labelTextColor)
},
- [v.labelTextColor, T],
+ [v.labelTextColor, P],
),
- oe = (0, u.useMemo)(
+ se = (0, u.useMemo)(
function () {
- return J(v.labelBackgroundColor)
+ return $(v.labelBackgroundColor)
},
- [v.labelBackgroundColor, T],
+ [v.labelBackgroundColor, P],
),
- le = {
- graphData: H,
+ ae = {
+ graphData: A,
width: N,
- height: I,
- backgroundColor: R.colors.gray[v.backgroundColor],
+ height: L,
+ backgroundColor: D.colors.gray[v.backgroundColor],
nodeLabel: function (e) {
return e.title
},
nodeColor: function (e) {
return (function (e) {
- var n = E[e.id] || $[e.id]
- return v.emacsNodeColor && e.id === j
- ? J(v.emacsNodeColor)
- : v.citeNodeColor && e.properties.ROAM_REFS
- ? J(v.citeNodeColor)
+ var n = H[e.id] || ne[e.id]
+ if (v.emacsNodeColor && e.id === j) return $(v.emacsNodeColor)
+ if (
+ S &&
+ e.tags.some(function (e) {
+ return S[e]
+ })
+ ) {
+ var t =
+ S[
+ e.tags.filter(function (e) {
+ return S[e]
+ })[0]
+ ]
+ return $(t)
+ }
+ return v.citeNodeColor && e.properties.ROAM_REFS
+ ? $(v.citeNodeColor)
: n && v.nodeHighlight
- ? Y[ne(e.id)][v.nodeHighlight](B)
- : J(ne(e.id))
+ ? ee[re(e.id)][v.nodeHighlight](V)
+ : $(re(e.id))
})(e)
},
nodeRelSize: v.nodeRel,
@@ -2401,37 +2697,37 @@
: 0
return (
(3 + t.length - (h.parents ? 0 : r)) *
- (E[e.id] || $[e.id] ? 1 + B * (v.highlightNodeSize - 1) : 1)
+ (H[e.id] || ne[e.id] ? 1 + V * (v.highlightNodeSize - 1) : 1)
)
},
nodeCanvasObject: function (e, n, t) {
if (e && v.labels) {
- var r = $[e.id]
- if (!(t <= v.labelScale || 1 === v.labels) || E[e.id] || r) {
+ var r = ne[e.id]
+ if (!(t <= v.labelScale || 1 === v.labels) || H[e.id] || r) {
var i = e.title,
o = i.substring(0, Math.min(i.length, 40)),
l = 12 / t,
- s = [1.1 * n.measureText(o).width, l].map(function (e) {
+ a = [1.1 * n.measureText(o).width, l].map(function (e) {
return e + 0.5 * l
}),
c = Math.min((3 * (t - v.labelScale)) / v.labelScale, 1),
u = function () {
return 1 === v.labels || t <= v.labelScale
- ? B
- : E[e.id] || $[e.id]
- ? Math.max(c, B)
- : 1 * c * (-1 * (0.5 * B - 1))
+ ? V
+ : H[e.id] || ne[e.id]
+ ? Math.max(c, V)
+ : 1 * c * (-1 * (0.5 * V - 1))
}
if (v.labelBackgroundColor && v.labelBackgroundOpacity) {
var d = u() * v.labelBackgroundOpacity,
- h = re(oe, d)
+ h = oe(se, d)
;(n.fillStyle = h),
- n.fillRect.apply(n, [e.x - s[0] / 2, e.y - s[1] / 2].concat((0, a.Z)(s)))
+ n.fillRect.apply(n, [e.x - a[0] / 2, e.y - a[1] / 2].concat((0, s.Z)(a)))
}
var g = u()
;(n.textAlign = 'center'), (n.textBaseline = 'middle')
- var x = re(ie, g)
- ;(n.fillStyle = x),
+ var f = oe(le, g)
+ ;(n.fillStyle = f),
(n.font = ''.concat(l, 'px Sans-Serif')),
n.fillText(o, e.x, e.y)
}
@@ -2445,43 +2741,43 @@
linkDirectionalArrowRelPos: v.arrowsPos,
linkDirectionalArrowColor: v.arrowsColor
? function (e) {
- return J(v.arrowsColor)
+ return $(v.arrowsColor)
}
: void 0,
linkColor: function (e) {
var n = 'object' === typeof e.source ? e.source.id : e.source,
t = 'object' === typeof e.target ? e.target.id : e.target,
- r = me(e, Z.current),
- i = me(e, K.current),
+ r = ye(e, Z.current),
+ i = ye(e, Y.current),
o = r || i,
l = e
return v.citeLinkColor && 'cite' === l.type
- ? J(v.citeLinkColor)
+ ? $(v.citeLinkColor)
: (function (e, n, t) {
if (!v.linkHighlight && !v.linkColorScheme && !t) {
- var r = te(e, n)
- return J(r)
+ var r = ie(e, n)
+ return $(r)
}
if (!t && !v.linkColorScheme) {
- var i = te(e, n)
- return J(i)
+ var i = ie(e, n)
+ return $(i)
}
- if (!t) return J(v.linkColorScheme)
+ if (!t) return $(v.linkColorScheme)
if (!v.linkHighlight && !v.linkColorScheme) {
- var o = te(e, n)
- return J(o)
+ var o = ie(e, n)
+ return $(o)
}
return v.linkHighlight
? v.linkColorScheme
- ? Y[v.linkColorScheme][v.linkHighlight](B)
- : Y[te(e, n)][v.linkHighlight](B)
- : J(v.linkColorScheme)
+ ? ee[v.linkColorScheme][v.linkHighlight](V)
+ : ee[ie(e, n)][v.linkHighlight](V)
+ : $(v.linkColorScheme)
})(n, t, o)
},
linkWidth: function (e) {
- var n = me(e, Z.current),
- t = me(e, K.current)
- return n || t ? v.linkWidth * (1 + B * (v.highlightLinkSize - 1)) : v.linkWidth
+ var n = ye(e, Z.current),
+ t = ye(e, Y.current)
+ return n || t ? v.linkWidth * (1 + V * (v.highlightLinkSize - 1)) : v.linkWidth
},
linkDirectionalParticleWidth: v.particlesWidth,
d3AlphaDecay: t.alphaDecay,
@@ -2489,41 +2785,41 @@
d3VelocityDecay: t.velocityDecay,
onNodeClick: function (e, n) {
var t = n.timeStamp - F.current < 400
- return (F.current = n.timeStamp), P(t ? 'double' : 'click', e)
+ return (F.current = n.timeStamp), E(t ? 'double' : 'click', e)
},
onBackgroundClick: function () {
- D(null),
+ R(null),
0 !== C.nodeIds.length &&
y(function (e) {
- return de(de({}, e), {}, { nodeIds: [] })
+ return xe(xe({}, e), {}, { nodeIds: [] })
})
},
onNodeHover: function (e) {
- v.highlight && (L || (G(), V(0)), D(e))
+ v.highlight && (T || (J(), X(0)), R(e))
},
onNodeRightClick: function (e) {
- P('right', e)
+ E('right', e)
},
}
return (0, l.jsx)('div', {
- children: s
+ children: a
? (0, l.jsx)(
- xe,
- de(
- de({ ref: n }, le),
+ me,
+ xe(
+ xe({ ref: n }, ae),
{},
{
nodeThreeObjectExtend: !0,
- backgroundColor: R.colors.white,
+ backgroundColor: D.colors.white,
nodeOpacity: v.nodeOpacity,
nodeResolution: v.nodeResolution,
linkOpacity: v.linkOpacity,
nodeThreeObject: function (e) {
- if (v.labels && (!(v.labels < 3) || E[e.id])) {
- var n = new se.Z(e.title.substring(0, 40))
+ if (v.labels && (!(v.labels < 3) || H[e.id])) {
+ var n = new he.Z(e.title.substring(0, 40))
return (
- (n.color = J(v.labelTextColor)),
- (n.backgroundColor = J(v.labelBackgroundColor)),
+ (n.color = $(v.labelTextColor)),
+ (n.backgroundColor = $(v.labelBackgroundColor)),
(n.padding = 2),
(n.textHeight = 8),
n
@@ -2534,9 +2830,9 @@
),
)
: (0, l.jsx)(
- ge,
- de(
- de({ ref: n }, le),
+ je,
+ xe(
+ xe({ ref: n }, ae),
{},
{
linkLineDash: function (e) {
@@ -2550,14 +2846,14 @@
),
})
})
- function me(e, n) {
+ function ye(e, n) {
return (
e.source.id === (null === n || void 0 === n ? void 0 : n.id) ||
e.target.id === (null === n || void 0 === n ? void 0 : n.id)
)
}
},
- 5301: function (e, n, t) {
+ 45301: function (e, n, t) {
;(window.__NEXT_P = window.__NEXT_P || []).push([
'/',
function () {
@@ -2567,8 +2863,8 @@
},
},
function (e) {
- e.O(0, [774, 737, 446, 906, 888, 179], function () {
- return (n = 5301), e((e.s = n))
+ e.O(0, [774, 737, 446, 13, 888, 179], function () {
+ return (n = 45301), e((e.s = n))
var n
})
var n = e.O()
diff --git a/out/_next/static/chunks/polyfills-a54b4f32bdc1ef890ddd.js b/out/_next/static/chunks/polyfills-e7a279300235e161e32a.js
index 8c86fcd..6ab47a2 100644
--- a/out/_next/static/chunks/polyfills-a54b4f32bdc1ef890ddd.js
+++ b/out/_next/static/chunks/polyfills-e7a279300235e161e32a.js
@@ -1,11 +1,11 @@
;(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
[429],
{
- 2589: function (t, e, r) {
+ 62589: function (t, e, r) {
'use strict'
- r(1784)
+ r(61784)
},
- 1784: function (t, e, r) {
+ 61784: function (t, e, r) {
!(function () {
var t =
'undefined' != typeof globalThis
@@ -6066,7 +6066,7 @@
},
function (t) {
var e,
- r = ((e = 2589), t((t.s = e)))
+ r = ((e = 62589), t((t.s = e)))
_N_E = r
},
])
diff --git a/out/_next/static/chunks/webpack-a1ea085630ce50807058.js b/out/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js
index bb3c04e..19abdd6 100644
--- a/out/_next/static/chunks/webpack-a1ea085630ce50807058.js
+++ b/out/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js
@@ -22,14 +22,14 @@
var u = 1 / 0
for (f = 0; f < e.length; f++) {
;(r = e[f][0]), (o = e[f][1]), (i = e[f][2])
- for (var c = !0, a = 0; a < r.length; a++)
+ for (var a = !0, c = 0; c < r.length; c++)
(!1 & i || u >= i) &&
Object.keys(n.O).every(function (e) {
- return n.O[e](r[a])
+ return n.O[e](r[c])
})
- ? r.splice(a--, 1)
- : ((c = !1), i < u && (u = i))
- c && (e.splice(f--, 1), (t = o()))
+ ? r.splice(c--, 1)
+ : ((a = !1), i < u && (u = i))
+ a && (e.splice(f--, 1), (t = o()))
}
return t
}
@@ -62,7 +62,7 @@
)
}),
(n.u = function (e) {
- return 'static/chunks/' + e + '.2dee5d830195ddd06029.js'
+ return 'static/chunks/' + e + '.c9fdfbcb8f8ce1720633.js'
}),
(n.miniCssF = function (e) {
return 'static/css/331301db207a91d407e5.css'
@@ -84,29 +84,29 @@
n.l = function (r, o, i, u) {
if (e[r]) e[r].push(o)
else {
- var c, a
+ var a, c
if (void 0 !== i)
for (var f = document.getElementsByTagName('script'), l = 0; l < f.length; l++) {
- var d = f[l]
- if (d.getAttribute('src') == r || d.getAttribute('data-webpack') == t + i) {
- c = d
+ var s = f[l]
+ if (s.getAttribute('src') == r || s.getAttribute('data-webpack') == t + i) {
+ a = s
break
}
}
- c ||
- ((a = !0),
- ((c = document.createElement('script')).charset = 'utf-8'),
- (c.timeout = 120),
- n.nc && c.setAttribute('nonce', n.nc),
- c.setAttribute('data-webpack', t + i),
- (c.src = r)),
+ a ||
+ ((c = !0),
+ ((a = document.createElement('script')).charset = 'utf-8'),
+ (a.timeout = 120),
+ n.nc && a.setAttribute('nonce', n.nc),
+ a.setAttribute('data-webpack', t + i),
+ (a.src = r)),
(e[r] = [o])
- var s = function (t, n) {
- ;(c.onerror = c.onload = null), clearTimeout(p)
+ var d = function (t, n) {
+ ;(a.onerror = a.onload = null), clearTimeout(p)
var o = e[r]
if (
(delete e[r],
- c.parentNode && c.parentNode.removeChild(c),
+ a.parentNode && a.parentNode.removeChild(a),
o &&
o.forEach(function (e) {
return e(n)
@@ -115,10 +115,10 @@
)
return t(n)
},
- p = setTimeout(s.bind(null, void 0, { type: 'timeout', target: c }), 12e4)
- ;(c.onerror = s.bind(null, c.onerror)),
- (c.onload = s.bind(null, c.onload)),
- a && document.head.appendChild(c)
+ p = setTimeout(d.bind(null, void 0, { type: 'timeout', target: a }), 12e4)
+ ;(a.onerror = d.bind(null, a.onerror)),
+ (a.onload = d.bind(null, a.onload)),
+ c && document.head.appendChild(a)
}
}
})(),
@@ -144,18 +144,18 @@
})
r.push((o[2] = i))
var u = n.p + n.u(t),
- c = new Error()
+ a = new Error()
n.l(
u,
function (r) {
if (n.o(e, t) && (0 !== (o = e[t]) && (e[t] = void 0), o)) {
var i = r && ('load' === r.type ? 'missing' : r.type),
u = r && r.target && r.target.src
- ;(c.message = 'Loading chunk ' + t + ' failed.\n(' + i + ': ' + u + ')'),
- (c.name = 'ChunkLoadError'),
- (c.type = i),
- (c.request = u),
- o[1](c)
+ ;(a.message = 'Loading chunk ' + t + ' failed.\n(' + i + ': ' + u + ')'),
+ (a.name = 'ChunkLoadError'),
+ (a.type = i),
+ (a.request = u),
+ o[1](a)
}
},
'chunk-' + t,
@@ -170,11 +170,11 @@
var o,
i,
u = r[0],
- c = r[1],
- a = r[2],
+ a = r[1],
+ c = r[2],
f = 0
- for (o in c) n.o(c, o) && (n.m[o] = c[o])
- if (a) var l = a(n)
+ for (o in a) n.o(a, o) && (n.m[o] = a[o])
+ if (c) var l = c(n)
for (t && t(r); f < u.length; f++)
(i = u[f]), n.o(e, i) && e[i] && e[i][0](), (e[u[f]] = 0)
return n.O(l)
diff --git a/out/_next/static/cU0Fhf7qkIuEyMiaSc6bW/_buildManifest.js b/out/_next/static/faIfNptb0fH0Ziqoouvmn/_buildManifest.js
index 43b7e43..5374ec2 100644
--- a/out/_next/static/cU0Fhf7qkIuEyMiaSc6bW/_buildManifest.js
+++ b/out/_next/static/faIfNptb0fH0Ziqoouvmn/_buildManifest.js
@@ -2,11 +2,11 @@
__rewrites: { beforeFiles: [], afterFiles: [], fallback: [] },
'/': [
'static/chunks/fb7d5399-0d6001c72a29ebec41eb.js',
- 'static/chunks/d25bd147-65fcc4c92edba8b370fb.js',
- 'static/chunks/906-7b9696c9b17c64b94384.js',
- 'static/chunks/pages/index-958f6f947d7cdc797980.js',
+ 'static/chunks/d25bd147-2c59edc357c0e2372258.js',
+ 'static/chunks/13-03ddeff07567357a392f.js',
+ 'static/chunks/pages/index-2b9ae36e1ad717aff37d.js',
],
- '/_error': ['static/chunks/pages/_error-a0e21b9b223f827fe1f2.js'],
+ '/_error': ['static/chunks/pages/_error-f5e67a79c709c2df06b8.js'],
sortedPages: ['/', '/_app', '/_error'],
}),
self.__BUILD_MANIFEST_CB && self.__BUILD_MANIFEST_CB()
diff --git a/out/_next/static/cU0Fhf7qkIuEyMiaSc6bW/_ssgManifest.js b/out/_next/static/faIfNptb0fH0Ziqoouvmn/_ssgManifest.js
index 82bedd6..82bedd6 100644
--- a/out/_next/static/cU0Fhf7qkIuEyMiaSc6bW/_ssgManifest.js
+++ b/out/_next/static/faIfNptb0fH0Ziqoouvmn/_ssgManifest.js
diff --git a/out/index.html b/out/index.html
index a1f3b5f..47d6ab1 100644
--- a/out/index.html
+++ b/out/index.html
@@ -10,18 +10,18 @@
<script
defer=""
nomodule=""
- src="/_next/static/chunks/polyfills-a54b4f32bdc1ef890ddd.js"
+ src="/_next/static/chunks/polyfills-e7a279300235e161e32a.js"
></script>
- <script src="/_next/static/chunks/webpack-a1ea085630ce50807058.js" defer=""></script>
- <script src="/_next/static/chunks/framework-2191d16384373197bc0a.js" defer=""></script>
- <script src="/_next/static/chunks/main-1b0f1fd287f08bad6012.js" defer=""></script>
- <script src="/_next/static/chunks/pages/_app-6ba3a11e93bdf6a85175.js" defer=""></script>
+ <script src="/_next/static/chunks/webpack-9c7513cc478a82b87a1b.js" defer=""></script>
+ <script src="/_next/static/chunks/framework-2f612445bd50b211f15a.js" defer=""></script>
+ <script src="/_next/static/chunks/main-ae68c11529959c16c50f.js" defer=""></script>
+ <script src="/_next/static/chunks/pages/_app-3e86b1cac997ecd07336.js" defer=""></script>
<script src="/_next/static/chunks/fb7d5399-0d6001c72a29ebec41eb.js" defer=""></script>
- <script src="/_next/static/chunks/d25bd147-65fcc4c92edba8b370fb.js" defer=""></script>
- <script src="/_next/static/chunks/906-7b9696c9b17c64b94384.js" defer=""></script>
- <script src="/_next/static/chunks/pages/index-958f6f947d7cdc797980.js" defer=""></script>
- <script src="/_next/static/cU0Fhf7qkIuEyMiaSc6bW/_buildManifest.js" defer=""></script>
- <script src="/_next/static/cU0Fhf7qkIuEyMiaSc6bW/_ssgManifest.js" defer=""></script>
+ <script src="/_next/static/chunks/d25bd147-2c59edc357c0e2372258.js" defer=""></script>
+ <script src="/_next/static/chunks/13-03ddeff07567357a392f.js" defer=""></script>
+ <script src="/_next/static/chunks/pages/index-2b9ae36e1ad717aff37d.js" defer=""></script>
+ <script src="/_next/static/faIfNptb0fH0Ziqoouvmn/_buildManifest.js" defer=""></script>
+ <script src="/_next/static/faIfNptb0fH0Ziqoouvmn/_ssgManifest.js" defer=""></script>
</head>
<body>
<div id="__next">
@@ -697,7 +697,7 @@
"props": { "pageProps": {} },
"page": "/",
"query": {},
- "buildId": "cU0Fhf7qkIuEyMiaSc6bW",
+ "buildId": "faIfNptb0fH0Ziqoouvmn",
"nextExport": true,
"autoExport": true,
"isFallback": false,