var IP = Object.defineProperty, RP = Object.defineProperties var MP = Object.getOwnPropertyDescriptors var gm = Object.getOwnPropertySymbols var J1 = Object.prototype.hasOwnProperty, Z1 = Object.prototype.propertyIsEnumerable var Q1 = (Vn, Zn, dt) => Zn in Vn ? IP(Vn, Zn, { enumerable: !0, configurable: !0, writable: !0, value: dt }) : (Vn[Zn] = dt), sr = (Vn, Zn) => { for (var dt in Zn || (Zn = {})) J1.call(Zn, dt) && Q1(Vn, dt, Zn[dt]) if (gm) for (var dt of gm(Zn)) Z1.call(Zn, dt) && Q1(Vn, dt, Zn[dt]) return Vn }, Jv = (Vn, Zn) => RP(Vn, MP(Zn)) var Zv = (Vn, Zn) => { var dt = {} for (var ta in Vn) J1.call(Vn, ta) && Zn.indexOf(ta) < 0 && (dt[ta] = Vn[ta]) if (Vn != null && gm) for (var ta of gm(Vn)) Zn.indexOf(ta) < 0 && Z1.call(Vn, ta) && (dt[ta] = Vn[ta]) return dt } ;(function () { var Vn = { 4184: function (z, m) { var C, I ;(function () { 'use strict' var $ = {}.hasOwnProperty, T = '[native code]' function V() { for (var B = [], K = 0; K < arguments.length; K++) { var q = arguments[K] if (q) { var pe = typeof q if (pe === 'string' || pe === 'number') B.push(q) else if (Array.isArray(q)) { if (q.length) { var ke = V.apply(null, q) ke && B.push(ke) } } else if (pe === 'object') { if (q.toString !== Object.prototype.toString && !q.toString.toString().includes('[native code]')) { B.push(q.toString()) continue } for (var ve in q) $.call(q, ve) && q[ve] && B.push(ve) } } } return B.join(' ') } z.exports ? ((V.default = V), (z.exports = V)) : ((C = []), (I = function () { return V }.apply(m, C)), I !== void 0 && (z.exports = I)) })() }, 6010: function (z, m, C) { 'use strict' C.r(m), C.d(m, { clsx: function () { return $ }, }) function I(T) { var V, B, K = '' if (typeof T == 'string' || typeof T == 'number') K += T else if (typeof T == 'object') if (Array.isArray(T)) for (V = 0; V < T.length; V++) T[V] && (B = I(T[V])) && (K && (K += ' '), (K += B)) else for (V in T) T[V] && (K && (K += ' '), (K += V)) return K } function $() { for (var T, V, B = 0, K = ''; B < arguments.length; ) (T = arguments[B++]) && (V = I(T)) && (K && (K += ' '), (K += V)) return K } m.default = $ }, 4063: function (z) { 'use strict' z.exports = function m(C, I) { if (C === I) return !0 if (C && I && typeof C == 'object' && typeof I == 'object') { if (C.constructor !== I.constructor) return !1 var $, T, V if (Array.isArray(C)) { if ((($ = C.length), $ != I.length)) return !1 for (T = $; T-- !== 0; ) if (!m(C[T], I[T])) return !1 return !0 } if (C.constructor === RegExp) return C.source === I.source && C.flags === I.flags if (C.valueOf !== Object.prototype.valueOf) return C.valueOf() === I.valueOf() if (C.toString !== Object.prototype.toString) return C.toString() === I.toString() if (((V = Object.keys(C)), ($ = V.length), $ !== Object.keys(I).length)) return !1 for (T = $; T-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(I, V[T])) return !1 for (T = $; T-- !== 0; ) { var B = V[T] if (!m(C[B], I[B])) return !1 } return !0 } return C !== C && I !== I } }, 3316: function (z) { function m(ve, Ie) { var _e = Ie && Ie.cache ? Ie.cache : ke, Re = Ie && Ie.serializer ? Ie.serializer : q, Ae = Ie && Ie.strategy ? Ie.strategy : V return Ae(ve, { cache: _e, serializer: Re }) } function C(ve) { return ve == null || typeof ve == 'number' || typeof ve == 'boolean' } function I(ve, Ie, _e, Re) { var Ae = C(Re) ? Re : _e(Re), Le = Ie.get(Ae) return typeof Le == 'undefined' && ((Le = ve.call(this, Re)), Ie.set(Ae, Le)), Le } function $(ve, Ie, _e) { var Re = Array.prototype.slice.call(arguments, 3), Ae = _e(Re), Le = Ie.get(Ae) return typeof Le == 'undefined' && ((Le = ve.apply(this, Re)), Ie.set(Ae, Le)), Le } function T(ve, Ie, _e, Re, Ae) { return _e.bind(Ie, ve, Re, Ae) } function V(ve, Ie) { var _e = ve.length === 1 ? I : $ return T(ve, this, _e, Ie.cache.create(), Ie.serializer) } function B(ve, Ie) { var _e = $ return T(ve, this, _e, Ie.cache.create(), Ie.serializer) } function K(ve, Ie) { var _e = I return T(ve, this, _e, Ie.cache.create(), Ie.serializer) } function q() { return JSON.stringify(arguments) } function pe() { this.cache = Object.create(null) } ;(pe.prototype.has = function (ve) { return ve in this.cache }), (pe.prototype.get = function (ve) { return this.cache[ve] }), (pe.prototype.set = function (ve, Ie) { this.cache[ve] = Ie }) var ke = { create: function () { return new pe() }, } ;(z.exports = m), (z.exports.strategies = { variadic: B, monadic: K }) }, 8679: function (z, m, C) { 'use strict' var I = C(9864), $ = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0, }, T = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, V = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, B = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, K = {} ;(K[I.ForwardRef] = V), (K[I.Memo] = B) function q(Le) { return I.isMemo(Le) ? B : K[Le.$$typeof] || $ } var pe = Object.defineProperty, ke = Object.getOwnPropertyNames, ve = Object.getOwnPropertySymbols, Ie = Object.getOwnPropertyDescriptor, _e = Object.getPrototypeOf, Re = Object.prototype function Ae(Le, xe, Ne) { if (typeof xe != 'string') { if (Re) { var tt = _e(xe) tt && tt !== Re && Ae(Le, tt, Ne) } var be = ke(xe) ve && (be = be.concat(ve(xe))) for (var We = q(Le), we = q(xe), ut = 0; ut < be.length; ++ut) { var nt = be[ut] if (!T[nt] && !(Ne && Ne[nt]) && !(we && we[nt]) && !(We && We[nt])) { var st = Ie(xe, nt) try { pe(Le, nt, st) } catch (rt) {} } } } return Le } z.exports = Ae }, 8552: function (z, m, C) { var I = C(852), $ = C(5639), T = I($, 'DataView') z.exports = T }, 1989: function (z, m, C) { var I = C(1789), $ = C(401), T = C(7667), V = C(1327), B = C(1866) function K(q) { var pe = -1, ke = q == null ? 0 : q.length for (this.clear(); ++pe < ke; ) { var ve = q[pe] this.set(ve[0], ve[1]) } } ;(K.prototype.clear = I), (K.prototype.delete = $), (K.prototype.get = T), (K.prototype.has = V), (K.prototype.set = B), (z.exports = K) }, 8407: function (z, m, C) { var I = C(7040), $ = C(4125), T = C(2117), V = C(7518), B = C(4705) function K(q) { var pe = -1, ke = q == null ? 0 : q.length for (this.clear(); ++pe < ke; ) { var ve = q[pe] this.set(ve[0], ve[1]) } } ;(K.prototype.clear = I), (K.prototype.delete = $), (K.prototype.get = T), (K.prototype.has = V), (K.prototype.set = B), (z.exports = K) }, 7071: function (z, m, C) { var I = C(852), $ = C(5639), T = I($, 'Map') z.exports = T }, 3369: function (z, m, C) { var I = C(4785), $ = C(1285), T = C(6e3), V = C(9916), B = C(5265) function K(q) { var pe = -1, ke = q == null ? 0 : q.length for (this.clear(); ++pe < ke; ) { var ve = q[pe] this.set(ve[0], ve[1]) } } ;(K.prototype.clear = I), (K.prototype.delete = $), (K.prototype.get = T), (K.prototype.has = V), (K.prototype.set = B), (z.exports = K) }, 3818: function (z, m, C) { var I = C(852), $ = C(5639), T = I($, 'Promise') z.exports = T }, 8525: function (z, m, C) { var I = C(852), $ = C(5639), T = I($, 'Set') z.exports = T }, 8668: function (z, m, C) { var I = C(3369), $ = C(619), T = C(2385) function V(B) { var K = -1, q = B == null ? 0 : B.length for (this.__data__ = new I(); ++K < q; ) this.add(B[K]) } ;(V.prototype.add = V.prototype.push = $), (V.prototype.has = T), (z.exports = V) }, 6384: function (z, m, C) { var I = C(8407), $ = C(7465), T = C(3779), V = C(7599), B = C(4758), K = C(4309) function q(pe) { var ke = (this.__data__ = new I(pe)) this.size = ke.size } ;(q.prototype.clear = $), (q.prototype.delete = T), (q.prototype.get = V), (q.prototype.has = B), (q.prototype.set = K), (z.exports = q) }, 2705: function (z, m, C) { var I = C(5639), $ = I.Symbol z.exports = $ }, 1149: function (z, m, C) { var I = C(5639), $ = I.Uint8Array z.exports = $ }, 577: function (z, m, C) { var I = C(852), $ = C(5639), T = I($, 'WeakMap') z.exports = T }, 4963: function (z) { function m(C, I) { for (var $ = -1, T = C == null ? 0 : C.length, V = 0, B = []; ++$ < T; ) { var K = C[$] I(K, $, C) && (B[V++] = K) } return B } z.exports = m }, 7443: function (z, m, C) { var I = C(2118) function $(T, V) { var B = T == null ? 0 : T.length return !!B && I(T, V, 0) > -1 } z.exports = $ }, 1196: function (z) { function m(C, I, $) { for (var T = -1, V = C == null ? 0 : C.length; ++T < V; ) if ($(I, C[T])) return !0 return !1 } z.exports = m }, 4636: function (z, m, C) { var I = C(2545), $ = C(5694), T = C(1469), V = C(4144), B = C(5776), K = C(6719), q = Object.prototype, pe = q.hasOwnProperty function ke(ve, Ie) { var _e = T(ve), Re = !_e && $(ve), Ae = !_e && !Re && V(ve), Le = !_e && !Re && !Ae && K(ve), xe = _e || Re || Ae || Le, Ne = xe ? I(ve.length, String) : [], tt = Ne.length for (var be in ve) (Ie || pe.call(ve, be)) && !( xe && (be == 'length' || (Ae && (be == 'offset' || be == 'parent')) || (Le && (be == 'buffer' || be == 'byteLength' || be == 'byteOffset')) || B(be, tt)) ) && Ne.push(be) return Ne } z.exports = ke }, 9932: function (z) { function m(C, I) { for (var $ = -1, T = C == null ? 0 : C.length, V = Array(T); ++$ < T; ) V[$] = I(C[$], $, C) return V } z.exports = m }, 2488: function (z) { function m(C, I) { for (var $ = -1, T = I.length, V = C.length; ++$ < T; ) C[V + $] = I[$] return C } z.exports = m }, 2908: function (z) { function m(C, I) { for (var $ = -1, T = C == null ? 0 : C.length; ++$ < T; ) if (I(C[$], $, C)) return !0 return !1 } z.exports = m }, 8470: function (z, m, C) { var I = C(7813) function $(T, V) { for (var B = T.length; B--; ) if (I(T[B][0], V)) return B return -1 } z.exports = $ }, 1848: function (z) { function m(C, I, $, T) { for (var V = C.length, B = $ + (T ? 1 : -1); T ? B-- : ++B < V; ) if (I(C[B], B, C)) return B return -1 } z.exports = m }, 8866: function (z, m, C) { var I = C(2488), $ = C(1469) function T(V, B, K) { var q = B(V) return $(V) ? q : I(q, K(V)) } z.exports = T }, 4239: function (z, m, C) { var I = C(2705), $ = C(9607), T = C(2333), V = '[object Null]', B = '[object Undefined]', K = I ? I.toStringTag : void 0 function q(pe) { return pe == null ? (pe === void 0 ? B : V) : K && K in Object(pe) ? $(pe) : T(pe) } z.exports = q }, 2118: function (z, m, C) { var I = C(1848), $ = C(2722), T = C(2351) function V(B, K, q) { return K === K ? T(B, K, q) : I(B, $, q) } z.exports = V }, 9454: function (z, m, C) { var I = C(4239), $ = C(7005), T = '[object Arguments]' function V(B) { return $(B) && I(B) == T } z.exports = V }, 939: function (z, m, C) { var I = C(2492), $ = C(7005) function T(V, B, K, q, pe) { return V === B ? !0 : V == null || B == null || (!$(V) && !$(B)) ? V !== V && B !== B : I(V, B, K, q, T, pe) } z.exports = T }, 2492: function (z, m, C) { var I = C(6384), $ = C(7114), T = C(8351), V = C(6096), B = C(4160), K = C(1469), q = C(4144), pe = C(6719), ke = 1, ve = '[object Arguments]', Ie = '[object Array]', _e = '[object Object]', Re = Object.prototype, Ae = Re.hasOwnProperty function Le(xe, Ne, tt, be, We, we) { var ut = K(xe), nt = K(Ne), st = ut ? Ie : B(xe), rt = nt ? Ie : B(Ne) ;(st = st == ve ? _e : st), (rt = rt == ve ? _e : rt) var ht = st == _e, Wt = rt == _e, ee = st == rt if (ee && q(xe)) { if (!q(Ne)) return !1 ;(ut = !0), (ht = !1) } if (ee && !ht) return we || (we = new I()), ut || pe(xe) ? $(xe, Ne, tt, be, We, we) : T(xe, Ne, st, tt, be, We, we) if (!(tt & ke)) { var je = ht && Ae.call(xe, '__wrapped__'), He = Wt && Ae.call(Ne, '__wrapped__') if (je || He) { var $e = je ? xe.value() : xe, X = He ? Ne.value() : Ne return we || (we = new I()), We($e, X, tt, be, we) } } return ee ? (we || (we = new I()), V(xe, Ne, tt, be, We, we)) : !1 } z.exports = Le }, 2722: function (z) { function m(C) { return C !== C } z.exports = m }, 8458: function (z, m, C) { var I = C(3560), $ = C(5346), T = C(3218), V = C(346), B = /[\\^$.*+?()[\]{}|]/g, K = /^\[object .+?Constructor\]$/, q = Function.prototype, pe = Object.prototype, ke = q.toString, ve = pe.hasOwnProperty, Ie = RegExp( '^' + ke .call(ve) .replace(B, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ) function _e(Re) { if (!T(Re) || $(Re)) return !1 var Ae = I(Re) ? Ie : K return Ae.test(V(Re)) } z.exports = _e }, 8749: function (z, m, C) { var I = C(4239), $ = C(1780), T = C(7005), V = '[object Arguments]', B = '[object Array]', K = '[object Boolean]', q = '[object Date]', pe = '[object Error]', ke = '[object Function]', ve = '[object Map]', Ie = '[object Number]', _e = '[object Object]', Re = '[object RegExp]', Ae = '[object Set]', Le = '[object String]', xe = '[object WeakMap]', Ne = '[object ArrayBuffer]', tt = '[object DataView]', be = '[object Float32Array]', We = '[object Float64Array]', we = '[object Int8Array]', ut = '[object Int16Array]', nt = '[object Int32Array]', st = '[object Uint8Array]', rt = '[object Uint8ClampedArray]', ht = '[object Uint16Array]', Wt = '[object Uint32Array]', ee = {} ;(ee[be] = ee[We] = ee[we] = ee[ut] = ee[nt] = ee[st] = ee[rt] = ee[ht] = ee[Wt] = !0), (ee[V] = ee[B] = ee[Ne] = ee[K] = ee[tt] = ee[q] = ee[pe] = ee[ke] = ee[ve] = ee[Ie] = ee[_e] = ee[Re] = ee[Ae] = ee[Le] = ee[xe] = !1) function je(He) { return T(He) && $(He.length) && !!ee[I(He)] } z.exports = je }, 280: function (z, m, C) { var I = C(5726), $ = C(6916), T = Object.prototype, V = T.hasOwnProperty function B(K) { if (!I(K)) return $(K) var q = [] for (var pe in Object(K)) V.call(K, pe) && pe != 'constructor' && q.push(pe) return q } z.exports = B }, 8674: function (z) { function m(C) { return function (I) { return C == null ? void 0 : C[I] } } z.exports = m }, 2545: function (z) { function m(C, I) { for (var $ = -1, T = Array(C); ++$ < C; ) T[$] = I($) return T } z.exports = m }, 531: function (z, m, C) { var I = C(2705), $ = C(9932), T = C(1469), V = C(3448), B = 1 / 0, K = I ? I.prototype : void 0, q = K ? K.toString : void 0 function pe(ke) { if (typeof ke == 'string') return ke if (T(ke)) return $(ke, pe) + '' if (V(ke)) return q ? q.call(ke) : '' var ve = ke + '' return ve == '0' && 1 / ke == -B ? '-0' : ve } z.exports = pe }, 1717: function (z) { function m(C) { return function (I) { return C(I) } } z.exports = m }, 5652: function (z, m, C) { var I = C(8668), $ = C(7443), T = C(1196), V = C(4757), B = C(3593), K = C(1814), q = 200 function pe(ke, ve, Ie) { var _e = -1, Re = $, Ae = ke.length, Le = !0, xe = [], Ne = xe if (Ie) (Le = !1), (Re = T) else if (Ae >= q) { var tt = ve ? null : B(ke) if (tt) return K(tt) ;(Le = !1), (Re = V), (Ne = new I()) } else Ne = ve ? [] : xe e: for (; ++_e < Ae; ) { var be = ke[_e], We = ve ? ve(be) : be if (((be = Ie || be !== 0 ? be : 0), Le && We === We)) { for (var we = Ne.length; we--; ) if (Ne[we] === We) continue e ve && Ne.push(We), xe.push(be) } else Re(Ne, We, Ie) || (Ne !== xe && Ne.push(We), xe.push(be)) } return xe } z.exports = pe }, 4757: function (z) { function m(C, I) { return C.has(I) } z.exports = m }, 4429: function (z, m, C) { var I = C(5639), $ = I['__core-js_shared__'] z.exports = $ }, 3593: function (z, m, C) { var I = C(8525), $ = C(308), T = C(1814), V = 1 / 0, B = I && 1 / T(new I([, -0]))[1] == V ? function (K) { return new I(K) } : $ z.exports = B }, 7114: function (z, m, C) { var I = C(8668), $ = C(2908), T = C(4757), V = 1, B = 2 function K(q, pe, ke, ve, Ie, _e) { var Re = ke & V, Ae = q.length, Le = pe.length if (Ae != Le && !(Re && Le > Ae)) return !1 var xe = _e.get(q), Ne = _e.get(pe) if (xe && Ne) return xe == pe && Ne == q var tt = -1, be = !0, We = ke & B ? new I() : void 0 for (_e.set(q, pe), _e.set(pe, q); ++tt < Ae; ) { var we = q[tt], ut = pe[tt] if (ve) var nt = Re ? ve(ut, we, tt, pe, q, _e) : ve(we, ut, tt, q, pe, _e) if (nt !== void 0) { if (nt) continue be = !1 break } if (We) { if ( !$(pe, function (st, rt) { if (!T(We, rt) && (we === st || Ie(we, st, ke, ve, _e))) return We.push(rt) }) ) { be = !1 break } } else if (!(we === ut || Ie(we, ut, ke, ve, _e))) { be = !1 break } } return _e.delete(q), _e.delete(pe), be } z.exports = K }, 8351: function (z, m, C) { var I = C(2705), $ = C(1149), T = C(7813), V = C(7114), B = C(8776), K = C(1814), q = 1, pe = 2, ke = '[object Boolean]', ve = '[object Date]', Ie = '[object Error]', _e = '[object Map]', Re = '[object Number]', Ae = '[object RegExp]', Le = '[object Set]', xe = '[object String]', Ne = '[object Symbol]', tt = '[object ArrayBuffer]', be = '[object DataView]', We = I ? I.prototype : void 0, we = We ? We.valueOf : void 0 function ut(nt, st, rt, ht, Wt, ee, je) { switch (rt) { case be: if (nt.byteLength != st.byteLength || nt.byteOffset != st.byteOffset) return !1 ;(nt = nt.buffer), (st = st.buffer) case tt: return !(nt.byteLength != st.byteLength || !ee(new $(nt), new $(st))) case ke: case ve: case Re: return T(+nt, +st) case Ie: return nt.name == st.name && nt.message == st.message case Ae: case xe: return nt == st + '' case _e: var He = B case Le: var $e = ht & q if ((He || (He = K), nt.size != st.size && !$e)) return !1 var X = je.get(nt) if (X) return X == st ;(ht |= pe), je.set(nt, st) var Y = V(He(nt), He(st), ht, Wt, ee, je) return je.delete(nt), Y case Ne: if (we) return we.call(nt) == we.call(st) } return !1 } z.exports = ut }, 6096: function (z, m, C) { var I = C(8234), $ = 1, T = Object.prototype, V = T.hasOwnProperty function B(K, q, pe, ke, ve, Ie) { var _e = pe & $, Re = I(K), Ae = Re.length, Le = I(q), xe = Le.length if (Ae != xe && !_e) return !1 for (var Ne = Ae; Ne--; ) { var tt = Re[Ne] if (!(_e ? tt in q : V.call(q, tt))) return !1 } var be = Ie.get(K), We = Ie.get(q) if (be && We) return be == q && We == K var we = !0 Ie.set(K, q), Ie.set(q, K) for (var ut = _e; ++Ne < Ae; ) { tt = Re[Ne] var nt = K[tt], st = q[tt] if (ke) var rt = _e ? ke(st, nt, tt, q, K, Ie) : ke(nt, st, tt, K, q, Ie) if (!(rt === void 0 ? nt === st || ve(nt, st, pe, ke, Ie) : rt)) { we = !1 break } ut || (ut = tt == 'constructor') } if (we && !ut) { var ht = K.constructor, Wt = q.constructor ht != Wt && 'constructor' in K && 'constructor' in q && !(typeof ht == 'function' && ht instanceof ht && typeof Wt == 'function' && Wt instanceof Wt) && (we = !1) } return Ie.delete(K), Ie.delete(q), we } z.exports = B }, 9464: function (z, m, C) { var I = C(8674), $ = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }, T = I($) z.exports = T }, 1957: function (z, m, C) { var I = typeof C.g == 'object' && C.g && C.g.Object === Object && C.g z.exports = I }, 8234: function (z, m, C) { var I = C(8866), $ = C(9551), T = C(3674) function V(B) { return I(B, T, $) } z.exports = V }, 5050: function (z, m, C) { var I = C(7019) function $(T, V) { var B = T.__data__ return I(V) ? B[typeof V == 'string' ? 'string' : 'hash'] : B.map } z.exports = $ }, 852: function (z, m, C) { var I = C(8458), $ = C(7801) function T(V, B) { var K = $(V, B) return I(K) ? K : void 0 } z.exports = T }, 9607: function (z, m, C) { var I = C(2705), $ = Object.prototype, T = $.hasOwnProperty, V = $.toString, B = I ? I.toStringTag : void 0 function K(q) { var pe = T.call(q, B), ke = q[B] try { q[B] = void 0 var ve = !0 } catch (_e) {} var Ie = V.call(q) return ve && (pe ? (q[B] = ke) : delete q[B]), Ie } z.exports = K }, 9551: function (z, m, C) { var I = C(4963), $ = C(479), T = Object.prototype, V = T.propertyIsEnumerable, B = Object.getOwnPropertySymbols, K = B ? function (q) { return q == null ? [] : ((q = Object(q)), I(B(q), function (pe) { return V.call(q, pe) })) } : $ z.exports = K }, 4160: function (z, m, C) { var I = C(8552), $ = C(7071), T = C(3818), V = C(8525), B = C(577), K = C(4239), q = C(346), pe = '[object Map]', ke = '[object Object]', ve = '[object Promise]', Ie = '[object Set]', _e = '[object WeakMap]', Re = '[object DataView]', Ae = q(I), Le = q($), xe = q(T), Ne = q(V), tt = q(B), be = K ;((I && be(new I(new ArrayBuffer(1))) != Re) || ($ && be(new $()) != pe) || (T && be(T.resolve()) != ve) || (V && be(new V()) != Ie) || (B && be(new B()) != _e)) && (be = function (We) { var we = K(We), ut = we == ke ? We.constructor : void 0, nt = ut ? q(ut) : '' if (nt) switch (nt) { case Ae: return Re case Le: return pe case xe: return ve case Ne: return Ie case tt: return _e } return we }), (z.exports = be) }, 7801: function (z) { function m(C, I) { return C == null ? void 0 : C[I] } z.exports = m }, 1789: function (z, m, C) { var I = C(4536) function $() { ;(this.__data__ = I ? I(null) : {}), (this.size = 0) } z.exports = $ }, 401: function (z) { function m(C) { var I = this.has(C) && delete this.__data__[C] return (this.size -= I ? 1 : 0), I } z.exports = m }, 7667: function (z, m, C) { var I = C(4536), $ = '__lodash_hash_undefined__', T = Object.prototype, V = T.hasOwnProperty function B(K) { var q = this.__data__ if (I) { var pe = q[K] return pe === $ ? void 0 : pe } return V.call(q, K) ? q[K] : void 0 } z.exports = B }, 1327: function (z, m, C) { var I = C(4536), $ = Object.prototype, T = $.hasOwnProperty function V(B) { var K = this.__data__ return I ? K[B] !== void 0 : T.call(K, B) } z.exports = V }, 1866: function (z, m, C) { var I = C(4536), $ = '__lodash_hash_undefined__' function T(V, B) { var K = this.__data__ return (this.size += this.has(V) ? 0 : 1), (K[V] = I && B === void 0 ? $ : B), this } z.exports = T }, 5776: function (z) { var m = 9007199254740991, C = /^(?:0|[1-9]\d*)$/ function I($, T) { var V = typeof $ return ( (T = T == null ? m : T), !!T && (V == 'number' || (V != 'symbol' && C.test($))) && $ > -1 && $ % 1 == 0 && $ < T ) } z.exports = I }, 7019: function (z) { function m(C) { var I = typeof C return I == 'string' || I == 'number' || I == 'symbol' || I == 'boolean' ? C !== '__proto__' : C === null } z.exports = m }, 5346: function (z, m, C) { var I = C(4429), $ = (function () { var V = /[^.]+$/.exec((I && I.keys && I.keys.IE_PROTO) || '') return V ? 'Symbol(src)_1.' + V : '' })() function T(V) { return !!$ && $ in V } z.exports = T }, 5726: function (z) { var m = Object.prototype function C(I) { var $ = I && I.constructor, T = (typeof $ == 'function' && $.prototype) || m return I === T } z.exports = C }, 7040: function (z) { function m() { ;(this.__data__ = []), (this.size = 0) } z.exports = m }, 4125: function (z, m, C) { var I = C(8470), $ = Array.prototype, T = $.splice function V(B) { var K = this.__data__, q = I(K, B) if (q < 0) return !1 var pe = K.length - 1 return q == pe ? K.pop() : T.call(K, q, 1), --this.size, !0 } z.exports = V }, 2117: function (z, m, C) { var I = C(8470) function $(T) { var V = this.__data__, B = I(V, T) return B < 0 ? void 0 : V[B][1] } z.exports = $ }, 7518: function (z, m, C) { var I = C(8470) function $(T) { return I(this.__data__, T) > -1 } z.exports = $ }, 4705: function (z, m, C) { var I = C(8470) function $(T, V) { var B = this.__data__, K = I(B, T) return K < 0 ? (++this.size, B.push([T, V])) : (B[K][1] = V), this } z.exports = $ }, 4785: function (z, m, C) { var I = C(1989), $ = C(8407), T = C(7071) function V() { ;(this.size = 0), (this.__data__ = { hash: new I(), map: new (T || $)(), string: new I() }) } z.exports = V }, 1285: function (z, m, C) { var I = C(5050) function $(T) { var V = I(this, T).delete(T) return (this.size -= V ? 1 : 0), V } z.exports = $ }, 6e3: function (z, m, C) { var I = C(5050) function $(T) { return I(this, T).get(T) } z.exports = $ }, 9916: function (z, m, C) { var I = C(5050) function $(T) { return I(this, T).has(T) } z.exports = $ }, 5265: function (z, m, C) { var I = C(5050) function $(T, V) { var B = I(this, T), K = B.size return B.set(T, V), (this.size += B.size == K ? 0 : 1), this } z.exports = $ }, 8776: function (z) { function m(C) { var I = -1, $ = Array(C.size) return ( C.forEach(function (T, V) { $[++I] = [V, T] }), $ ) } z.exports = m }, 4536: function (z, m, C) { var I = C(852), $ = I(Object, 'create') z.exports = $ }, 6916: function (z, m, C) { var I = C(5569), $ = I(Object.keys, Object) z.exports = $ }, 1167: function (z, m, C) { z = C.nmd(z) var I = C(1957), $ = m && !m.nodeType && m, T = $ && !0 && z && !z.nodeType && z, V = T && T.exports === $, B = V && I.process, K = (function () { try { var q = T && T.require && T.require('util').types return q || (B && B.binding && B.binding('util')) } catch (pe) {} })() z.exports = K }, 2333: function (z) { var m = Object.prototype, C = m.toString function I($) { return C.call($) } z.exports = I }, 5569: function (z) { function m(C, I) { return function ($) { return C(I($)) } } z.exports = m }, 5639: function (z, m, C) { var I = C(1957), $ = typeof self == 'object' && self && self.Object === Object && self, T = I || $ || Function('return this')() z.exports = T }, 619: function (z) { var m = '__lodash_hash_undefined__' function C(I) { return this.__data__.set(I, m), this } z.exports = C }, 2385: function (z) { function m(C) { return this.__data__.has(C) } z.exports = m }, 1814: function (z) { function m(C) { var I = -1, $ = Array(C.size) return ( C.forEach(function (T) { $[++I] = T }), $ ) } z.exports = m }, 7465: function (z, m, C) { var I = C(8407) function $() { ;(this.__data__ = new I()), (this.size = 0) } z.exports = $ }, 3779: function (z) { function m(C) { var I = this.__data__, $ = I.delete(C) return (this.size = I.size), $ } z.exports = m }, 7599: function (z) { function m(C) { return this.__data__.get(C) } z.exports = m }, 4758: function (z) { function m(C) { return this.__data__.has(C) } z.exports = m }, 4309: function (z, m, C) { var I = C(8407), $ = C(7071), T = C(3369), V = 200 function B(K, q) { var pe = this.__data__ if (pe instanceof I) { var ke = pe.__data__ if (!$ || ke.length < V - 1) return ke.push([K, q]), (this.size = ++pe.size), this pe = this.__data__ = new T(ke) } return pe.set(K, q), (this.size = pe.size), this } z.exports = B }, 2351: function (z) { function m(C, I, $) { for (var T = $ - 1, V = C.length; ++T < V; ) if (C[T] === I) return T return -1 } z.exports = m }, 346: function (z) { var m = Function.prototype, C = m.toString function I($) { if ($ != null) { try { return C.call($) } catch (T) {} try { return $ + '' } catch (T) {} } return '' } z.exports = I }, 7813: function (z) { function m(C, I) { return C === I || (C !== C && I !== I) } z.exports = m }, 7187: function (z, m, C) { var I = C(9464), $ = C(9833), T = /[&<>"']/g, V = RegExp(T.source) function B(K) { return (K = $(K)), K && V.test(K) ? K.replace(T, I) : K } z.exports = B }, 3522: function (z, m, C) { var I = C(9833), $ = /[\\^$.*+?()[\]{}|]/g, T = RegExp($.source) function V(B) { return (B = I(B)), B && T.test(B) ? B.replace($, '\\$&') : B } z.exports = V }, 5694: function (z, m, C) { var I = C(9454), $ = C(7005), T = Object.prototype, V = T.hasOwnProperty, B = T.propertyIsEnumerable, K = I( (function () { return arguments })() ) ? I : function (q) { return $(q) && V.call(q, 'callee') && !B.call(q, 'callee') } z.exports = K }, 1469: function (z) { var m = Array.isArray z.exports = m }, 8612: function (z, m, C) { var I = C(3560), $ = C(1780) function T(V) { return V != null && $(V.length) && !I(V) } z.exports = T }, 4144: function (z, m, C) { z = C.nmd(z) var I = C(5639), $ = C(5062), T = m && !m.nodeType && m, V = T && !0 && z && !z.nodeType && z, B = V && V.exports === T, K = B ? I.Buffer : void 0, q = K ? K.isBuffer : void 0, pe = q || $ z.exports = pe }, 8446: function (z, m, C) { var I = C(939) function $(T, V) { return I(T, V) } z.exports = $ }, 3560: function (z, m, C) { var I = C(4239), $ = C(3218), T = '[object AsyncFunction]', V = '[object Function]', B = '[object GeneratorFunction]', K = '[object Proxy]' function q(pe) { if (!$(pe)) return !1 var ke = I(pe) return ke == V || ke == B || ke == T || ke == K } z.exports = q }, 1780: function (z) { var m = 9007199254740991 function C(I) { return typeof I == 'number' && I > -1 && I % 1 == 0 && I <= m } z.exports = C }, 3218: function (z) { function m(C) { var I = typeof C return C != null && (I == 'object' || I == 'function') } z.exports = m }, 7005: function (z) { function m(C) { return C != null && typeof C == 'object' } z.exports = m }, 3448: function (z, m, C) { var I = C(4239), $ = C(7005), T = '[object Symbol]' function V(B) { return typeof B == 'symbol' || ($(B) && I(B) == T) } z.exports = V }, 6719: function (z, m, C) { var I = C(8749), $ = C(1717), T = C(1167), V = T && T.isTypedArray, B = V ? $(V) : I z.exports = B }, 3674: function (z, m, C) { var I = C(4636), $ = C(280), T = C(8612) function V(B) { return T(B) ? I(B) : $(B) } z.exports = V }, 308: function (z) { function m() {} z.exports = m }, 479: function (z) { function m() { return [] } z.exports = m }, 5062: function (z) { function m() { return !1 } z.exports = m }, 9833: function (z, m, C) { var I = C(531) function $(T) { return T == null ? '' : I(T) } z.exports = $ }, 4908: function (z, m, C) { var I = C(5652) function $(T) { return T && T.length ? I(T) : [] } z.exports = $ }, 4155: function (z) { var m = (z.exports = {}), C, I function $() { throw new Error('setTimeout has not been defined') } function T() { throw new Error('clearTimeout has not been defined') } ;(function () { try { typeof setTimeout == 'function' ? (C = setTimeout) : (C = $) } catch (Ae) { C = $ } try { typeof clearTimeout == 'function' ? (I = clearTimeout) : (I = T) } catch (Ae) { I = T } })() function V(Ae) { if (C === setTimeout) return setTimeout(Ae, 0) if ((C === $ || !C) && setTimeout) return (C = setTimeout), setTimeout(Ae, 0) try { return C(Ae, 0) } catch (Le) { try { return C.call(null, Ae, 0) } catch (xe) { return C.call(this, Ae, 0) } } } function B(Ae) { if (I === clearTimeout) return clearTimeout(Ae) if ((I === T || !I) && clearTimeout) return (I = clearTimeout), clearTimeout(Ae) try { return I(Ae) } catch (Le) { try { return I.call(null, Ae) } catch (xe) { return I.call(this, Ae) } } } var K = [], q = !1, pe, ke = -1 function ve() { !q || !pe || ((q = !1), pe.length ? (K = pe.concat(K)) : (ke = -1), K.length && Ie()) } function Ie() { if (!q) { var Ae = V(ve) q = !0 for (var Le = K.length; Le; ) { for (pe = K, K = []; ++ke < Le; ) pe && pe[ke].run() ;(ke = -1), (Le = K.length) } ;(pe = null), (q = !1), B(Ae) } } m.nextTick = function (Ae) { var Le = new Array(arguments.length - 1) if (arguments.length > 1) for (var xe = 1; xe < arguments.length; xe++) Le[xe - 1] = arguments[xe] K.push(new _e(Ae, Le)), K.length === 1 && !q && V(Ie) } function _e(Ae, Le) { ;(this.fun = Ae), (this.array = Le) } ;(_e.prototype.run = function () { this.fun.apply(null, this.array) }), (m.title = 'browser'), (m.browser = !0), (m.env = {}), (m.argv = []), (m.version = ''), (m.versions = {}) function Re() {} ;(m.on = Re), (m.addListener = Re), (m.once = Re), (m.off = Re), (m.removeListener = Re), (m.removeAllListeners = Re), (m.emit = Re), (m.prependListener = Re), (m.prependOnceListener = Re), (m.listeners = function (Ae) { return [] }), (m.binding = function (Ae) { throw new Error('process.binding is not supported') }), (m.cwd = function () { return '/' }), (m.chdir = function (Ae) { throw new Error('process.chdir is not supported') }), (m.umask = function () { return 0 }) }, 2703: function (z, m, C) { 'use strict' var I = C(414) function $() {} function T() {} ;(T.resetWarningCache = $), (z.exports = function () { function V(q, pe, ke, ve, Ie, _e) { if (_e !== I) { var Re = new Error( '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' ) throw ((Re.name = 'Invariant Violation'), Re) } } V.isRequired = V function B() { return V } var K = { array: V, bigint: V, bool: V, func: V, number: V, object: V, string: V, symbol: V, any: V, arrayOf: B, element: V, elementType: V, instanceOf: B, node: V, objectOf: B, oneOf: B, oneOfType: B, shape: B, exact: B, checkPropTypes: T, resetWarningCache: $, } return (K.PropTypes = K), K }) }, 5697: function (z, m, C) { if (!1) var I, $ else z.exports = C(2703)() }, 414: function (z) { 'use strict' var m = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED' z.exports = m }, 4448: function (z, m, C) { 'use strict' var I = C(7294), $ = C(3840) function T(o) { for (var u = 'https://reactjs.org/docs/error-decoder.html?invariant=' + o, p = 1; p < arguments.length; p++) u += '&args[]=' + encodeURIComponent(arguments[p]) return ( 'Minified React error #' + o + '; visit ' + u + ' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.' ) } var V = new Set(), B = {} function K(o, u) { q(o, u), q(o + 'Capture', u) } function q(o, u) { for (B[o] = u, o = 0; o < u.length; o++) V.add(u[o]) } var pe = !( typeof window == 'undefined' || typeof window.document == 'undefined' || typeof window.document.createElement == 'undefined' ), ke = Object.prototype.hasOwnProperty, ve = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, Ie = {}, _e = {} function Re(o) { return ke.call(_e, o) ? !0 : ke.call(Ie, o) ? !1 : ve.test(o) ? (_e[o] = !0) : ((Ie[o] = !0), !1) } function Ae(o, u, p, v) { if (p !== null && p.type === 0) return !1 switch (typeof u) { case 'function': case 'symbol': return !0 case 'boolean': return v ? !1 : p !== null ? !p.acceptsBooleans : ((o = o.toLowerCase().slice(0, 5)), o !== 'data-' && o !== 'aria-') default: return !1 } } function Le(o, u, p, v) { if (u === null || typeof u == 'undefined' || Ae(o, u, p, v)) return !0 if (v) return !1 if (p !== null) switch (p.type) { case 3: return !u case 4: return u === !1 case 5: return isNaN(u) case 6: return isNaN(u) || 1 > u } return !1 } function xe(o, u, p, v, w, E, F) { ;(this.acceptsBooleans = u === 2 || u === 3 || u === 4), (this.attributeName = v), (this.attributeNamespace = w), (this.mustUseProperty = p), (this.propertyName = o), (this.type = u), (this.sanitizeURL = E), (this.removeEmptyString = F) } var Ne = {} 'children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style' .split(' ') .forEach(function (o) { Ne[o] = new xe(o, 0, !1, o, null, !1, !1) }), [ ['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv'], ].forEach(function (o) { var u = o[0] Ne[u] = new xe(u, 1, !1, o[1], null, !1, !1) }), ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (o) { Ne[o] = new xe(o, 2, !1, o.toLowerCase(), null, !1, !1) }), ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (o) { Ne[o] = new xe(o, 2, !1, o, null, !1, !1) }), 'allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope' .split(' ') .forEach(function (o) { Ne[o] = new xe(o, 3, !1, o.toLowerCase(), null, !1, !1) }), ['checked', 'multiple', 'muted', 'selected'].forEach(function (o) { Ne[o] = new xe(o, 3, !0, o, null, !1, !1) }), ['capture', 'download'].forEach(function (o) { Ne[o] = new xe(o, 4, !1, o, null, !1, !1) }), ['cols', 'rows', 'size', 'span'].forEach(function (o) { Ne[o] = new xe(o, 6, !1, o, null, !1, !1) }), ['rowSpan', 'start'].forEach(function (o) { Ne[o] = new xe(o, 5, !1, o.toLowerCase(), null, !1, !1) }) var tt = /[\-:]([a-z])/g function be(o) { return o[1].toUpperCase() } 'accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height' .split(' ') .forEach(function (o) { var u = o.replace(tt, be) Ne[u] = new xe(u, 1, !1, o, null, !1, !1) }), 'xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type'.split(' ').forEach(function (o) { var u = o.replace(tt, be) Ne[u] = new xe(u, 1, !1, o, 'http://www.w3.org/1999/xlink', !1, !1) }), ['xml:base', 'xml:lang', 'xml:space'].forEach(function (o) { var u = o.replace(tt, be) Ne[u] = new xe(u, 1, !1, o, 'http://www.w3.org/XML/1998/namespace', !1, !1) }), ['tabIndex', 'crossOrigin'].forEach(function (o) { Ne[o] = new xe(o, 1, !1, o.toLowerCase(), null, !1, !1) }), (Ne.xlinkHref = new xe('xlinkHref', 1, !1, 'xlink:href', 'http://www.w3.org/1999/xlink', !0, !1)), ['src', 'href', 'action', 'formAction'].forEach(function (o) { Ne[o] = new xe(o, 1, !1, o.toLowerCase(), null, !0, !0) }) function We(o, u, p, v) { var w = Ne.hasOwnProperty(u) ? Ne[u] : null ;(w !== null ? w.type !== 0 : v || !(2 < u.length) || (u[0] !== 'o' && u[0] !== 'O') || (u[1] !== 'n' && u[1] !== 'N')) && (Le(u, p, w, v) && (p = null), v || w === null ? Re(u) && (p === null ? o.removeAttribute(u) : o.setAttribute(u, '' + p)) : w.mustUseProperty ? (o[w.propertyName] = p === null ? (w.type === 3 ? !1 : '') : p) : ((u = w.attributeName), (v = w.attributeNamespace), p === null ? o.removeAttribute(u) : ((w = w.type), (p = w === 3 || (w === 4 && p === !0) ? '' : '' + p), v ? o.setAttributeNS(v, u, p) : o.setAttribute(u, p)))) } var we = I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, ut = Symbol.for('react.element'), nt = Symbol.for('react.portal'), st = Symbol.for('react.fragment'), rt = Symbol.for('react.strict_mode'), ht = Symbol.for('react.profiler'), Wt = Symbol.for('react.provider'), ee = Symbol.for('react.context'), je = Symbol.for('react.forward_ref'), He = Symbol.for('react.suspense'), $e = Symbol.for('react.suspense_list'), X = Symbol.for('react.memo'), Y = Symbol.for('react.lazy') Symbol.for('react.scope'), Symbol.for('react.debug_trace_mode') var Se = Symbol.for('react.offscreen') Symbol.for('react.legacy_hidden'), Symbol.for('react.cache'), Symbol.for('react.tracing_marker') var re = Symbol.iterator function W(o) { return o === null || typeof o != 'object' ? null : ((o = (re && o[re]) || o['@@iterator']), typeof o == 'function' ? o : null) } var Q = Object.assign, Z function G(o) { if (Z === void 0) try { throw Error() } catch (p) { var u = p.stack.trim().match(/\n( *(at )?)/) Z = (u && u[1]) || '' } return ( ` ` + Z + o ) } var ue = !1 function he(o, u) { if (!o || ue) return '' ue = !0 var p = Error.prepareStackTrace Error.prepareStackTrace = void 0 try { if (u) if ( ((u = function () { throw Error() }), Object.defineProperty(u.prototype, 'props', { set: function () { throw Error() }, }), typeof Reflect == 'object' && Reflect.construct) ) { try { Reflect.construct(u, []) } catch (Me) { var v = Me } Reflect.construct(o, [], u) } else { try { u.call() } catch (Me) { v = Me } o.call(u.prototype) } else { try { throw Error() } catch (Me) { v = Me } o() } } catch (Me) { if (Me && v && typeof Me.stack == 'string') { for ( var w = Me.stack.split(` `), E = v.stack.split(` `), F = w.length - 1, ne = E.length - 1; 1 <= F && 0 <= ne && w[F] !== E[ne]; ) ne-- for (; 1 <= F && 0 <= ne; F--, ne--) if (w[F] !== E[ne]) { if (F !== 1 || ne !== 1) do if ((F--, ne--, 0 > ne || w[F] !== E[ne])) { var le = ` ` + w[F].replace(' at new ', ' at ') return ( o.displayName && le.includes('') && (le = le.replace('', o.displayName)), le ) } while (1 <= F && 0 <= ne) break } } } finally { ;(ue = !1), (Error.prepareStackTrace = p) } return (o = o ? o.displayName || o.name : '') ? G(o) : '' } function Pe(o) { switch (o.tag) { case 5: return G(o.type) case 16: return G('Lazy') case 13: return G('Suspense') case 19: return G('SuspenseList') case 0: case 2: case 15: return (o = he(o.type, !1)), o case 11: return (o = he(o.type.render, !1)), o case 1: return (o = he(o.type, !0)), o default: return '' } } function Fe(o) { if (o == null) return null if (typeof o == 'function') return o.displayName || o.name || null if (typeof o == 'string') return o switch (o) { case st: return 'Fragment' case nt: return 'Portal' case ht: return 'Profiler' case rt: return 'StrictMode' case He: return 'Suspense' case $e: return 'SuspenseList' } if (typeof o == 'object') switch (o.$$typeof) { case ee: return (o.displayName || 'Context') + '.Consumer' case Wt: return (o._context.displayName || 'Context') + '.Provider' case je: var u = o.render return ( (o = o.displayName), o || ((o = u.displayName || u.name || ''), (o = o !== '' ? 'ForwardRef(' + o + ')' : 'ForwardRef')), o ) case X: return (u = o.displayName || null), u !== null ? u : Fe(o.type) || 'Memo' case Y: ;(u = o._payload), (o = o._init) try { return Fe(o(u)) } catch (p) {} } return null } function Je(o) { var u = o.type switch (o.tag) { case 24: return 'Cache' case 9: return (u.displayName || 'Context') + '.Consumer' case 10: return (u._context.displayName || 'Context') + '.Provider' case 18: return 'DehydratedFragment' case 11: return ( (o = u.render), (o = o.displayName || o.name || ''), u.displayName || (o !== '' ? 'ForwardRef(' + o + ')' : 'ForwardRef') ) case 7: return 'Fragment' case 5: return u case 4: return 'Portal' case 3: return 'Root' case 6: return 'Text' case 16: return Fe(u) case 8: return u === rt ? 'StrictMode' : 'Mode' case 22: return 'Offscreen' case 12: return 'Profiler' case 21: return 'Scope' case 13: return 'Suspense' case 19: return 'SuspenseList' case 25: return 'TracingMarker' case 1: case 0: case 17: case 2: case 14: case 15: if (typeof u == 'function') return u.displayName || u.name || null if (typeof u == 'string') return u } return null } function Ue(o) { switch (typeof o) { case 'boolean': case 'number': case 'string': case 'undefined': return o case 'object': return o default: return '' } } function ct(o) { var u = o.type return (o = o.nodeName) && o.toLowerCase() === 'input' && (u === 'checkbox' || u === 'radio') } function Gt(o) { var u = ct(o) ? 'checked' : 'value', p = Object.getOwnPropertyDescriptor(o.constructor.prototype, u), v = '' + o[u] if ( !o.hasOwnProperty(u) && typeof p != 'undefined' && typeof p.get == 'function' && typeof p.set == 'function' ) { var w = p.get, E = p.set return ( Object.defineProperty(o, u, { configurable: !0, get: function () { return w.call(this) }, set: function (F) { ;(v = '' + F), E.call(this, F) }, }), Object.defineProperty(o, u, { enumerable: p.enumerable }), { getValue: function () { return v }, setValue: function (F) { v = '' + F }, stopTracking: function () { ;(o._valueTracker = null), delete o[u] }, } ) } } function nn(o) { o._valueTracker || (o._valueTracker = Gt(o)) } function Qt(o) { if (!o) return !1 var u = o._valueTracker if (!u) return !0 var p = u.getValue(), v = '' return ( o && (v = ct(o) ? (o.checked ? 'true' : 'false') : o.value), (o = v), o !== p ? (u.setValue(o), !0) : !1 ) } function sn(o) { if (((o = o || (typeof document != 'undefined' ? document : void 0)), typeof o == 'undefined')) return null try { return o.activeElement || o.body } catch (u) { return o.body } } function Gn(o, u) { var p = u.checked return Q({}, u, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: p != null ? p : o._wrapperState.initialChecked, }) } function Xn(o, u) { var p = u.defaultValue == null ? '' : u.defaultValue, v = u.checked != null ? u.checked : u.defaultChecked ;(p = Ue(u.value != null ? u.value : p)), (o._wrapperState = { initialChecked: v, initialValue: p, controlled: u.type === 'checkbox' || u.type === 'radio' ? u.checked != null : u.value != null, }) } function er(o, u) { ;(u = u.checked), u != null && We(o, 'checked', u, !1) } function na(o, u) { er(o, u) var p = Ue(u.value), v = u.type if (p != null) v === 'number' ? ((p === 0 && o.value === '') || o.value != p) && (o.value = '' + p) : o.value !== '' + p && (o.value = '' + p) else if (v === 'submit' || v === 'reset') { o.removeAttribute('value') return } u.hasOwnProperty('value') ? Fr(o, u.type, p) : u.hasOwnProperty('defaultValue') && Fr(o, u.type, Ue(u.defaultValue)), u.checked == null && u.defaultChecked != null && (o.defaultChecked = !!u.defaultChecked) } function zi(o, u, p) { if (u.hasOwnProperty('value') || u.hasOwnProperty('defaultValue')) { var v = u.type if (!((v !== 'submit' && v !== 'reset') || (u.value !== void 0 && u.value !== null))) return ;(u = '' + o._wrapperState.initialValue), p || u === o.value || (o.value = u), (o.defaultValue = u) } ;(p = o.name), p !== '' && (o.name = ''), (o.defaultChecked = !!o._wrapperState.initialChecked), p !== '' && (o.name = p) } function Fr(o, u, p) { ;(u !== 'number' || sn(o.ownerDocument) !== o) && (p == null ? (o.defaultValue = '' + o._wrapperState.initialValue) : o.defaultValue !== '' + p && (o.defaultValue = '' + p)) } var Or = Array.isArray function _r(o, u, p, v) { if (((o = o.options), u)) { u = {} for (var w = 0; w < p.length; w++) u['$' + p[w]] = !0 for (p = 0; p < o.length; p++) (w = u.hasOwnProperty('$' + o[p].value)), o[p].selected !== w && (o[p].selected = w), w && v && (o[p].defaultSelected = !0) } else { for (p = '' + Ue(p), u = null, w = 0; w < o.length; w++) { if (o[w].value === p) { ;(o[w].selected = !0), v && (o[w].defaultSelected = !0) return } u !== null || o[w].disabled || (u = o[w]) } u !== null && (u.selected = !0) } } function $r(o, u) { if (u.dangerouslySetInnerHTML != null) throw Error(T(91)) return Q({}, u, { value: void 0, defaultValue: void 0, children: '' + o._wrapperState.initialValue }) } function ra(o, u) { var p = u.value if (p == null) { if (((p = u.children), (u = u.defaultValue), p != null)) { if (u != null) throw Error(T(92)) if (Or(p)) { if (1 < p.length) throw Error(T(93)) p = p[0] } u = p } u == null && (u = ''), (p = u) } o._wrapperState = { initialValue: Ue(p) } } function On(o, u) { var p = Ue(u.value), v = Ue(u.defaultValue) p != null && ((p = '' + p), p !== o.value && (o.value = p), u.defaultValue == null && o.defaultValue !== p && (o.defaultValue = p)), v != null && (o.defaultValue = '' + v) } function Fa(o) { var u = o.textContent u === o._wrapperState.initialValue && u !== '' && u !== null && (o.value = u) } function on(o) { switch (o) { case 'svg': return 'http://www.w3.org/2000/svg' case 'math': return 'http://www.w3.org/1998/Math/MathML' default: return 'http://www.w3.org/1999/xhtml' } } function Mo(o, u) { return o == null || o === 'http://www.w3.org/1999/xhtml' ? on(u) : o === 'http://www.w3.org/2000/svg' && u === 'foreignObject' ? 'http://www.w3.org/1999/xhtml' : o } var ia, Ao = (function (o) { return typeof MSApp != 'undefined' && MSApp.execUnsafeLocalFunction ? function (u, p, v, w) { MSApp.execUnsafeLocalFunction(function () { return o(u, p, v, w) }) } : o })(function (o, u) { if (o.namespaceURI !== 'http://www.w3.org/2000/svg' || 'innerHTML' in o) o.innerHTML = u else { for ( ia = ia || document.createElement('div'), ia.innerHTML = '' + u.valueOf().toString() + '', u = ia.firstChild; o.firstChild; ) o.removeChild(o.firstChild) for (; u.firstChild; ) o.appendChild(u.firstChild) } }) function No(o, u) { if (u) { var p = o.firstChild if (p && p === o.lastChild && p.nodeType === 3) { p.nodeValue = u return } } o.textContent = u } var jo = { animationIterationCount: !0, aspectRatio: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, columns: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridArea: !0, gridRow: !0, gridRowEnd: !0, gridRowSpan: !0, gridRowStart: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnSpan: !0, gridColumnStart: !0, fontWeight: !0, lineClamp: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, tabSize: !0, widows: !0, zIndex: !0, zoom: !0, fillOpacity: !0, floodOpacity: !0, stopOpacity: !0, strokeDasharray: !0, strokeDashoffset: !0, strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0, }, dc = ['Webkit', 'ms', 'Moz', 'O'] Object.keys(jo).forEach(function (o) { dc.forEach(function (u) { ;(u = u + o.charAt(0).toUpperCase() + o.substring(1)), (jo[u] = jo[o]) }) }) function Bu(o, u, p) { return u == null || typeof u == 'boolean' || u === '' ? '' : p || typeof u != 'number' || u === 0 || (jo.hasOwnProperty(o) && jo[o]) ? ('' + u).trim() : u + 'px' } function Uu(o, u) { o = o.style for (var p in u) if (u.hasOwnProperty(p)) { var v = p.indexOf('--') === 0, w = Bu(p, u[p], v) p === 'float' && (p = 'cssFloat'), v ? o.setProperty(p, w) : (o[p] = w) } } var zo = Q( { menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0, } ) function Lo(o, u) { if (u) { if (zo[o] && (u.children != null || u.dangerouslySetInnerHTML != null)) throw Error(T(137, o)) if (u.dangerouslySetInnerHTML != null) { if (u.children != null) throw Error(T(60)) if (typeof u.dangerouslySetInnerHTML != 'object' || !('__html' in u.dangerouslySetInnerHTML)) throw Error(T(61)) } if (u.style != null && typeof u.style != 'object') throw Error(T(62)) } } function fc(o, u) { if (o.indexOf('-') === -1) return typeof u.is == 'string' switch (o) { case 'annotation-xml': case 'color-profile': case 'font-face': case 'font-face-src': case 'font-face-uri': case 'font-face-format': case 'font-face-name': case 'missing-glyph': return !1 default: return !0 } } var Fo = null function Qs(o) { return ( (o = o.target || o.srcElement || window), o.correspondingUseElement && (o = o.correspondingUseElement), o.nodeType === 3 ? o.parentNode : o ) } var Js = null, aa = null, yr = null function Zs(o) { if ((o = Hc(o))) { if (typeof Js != 'function') throw Error(T(280)) var u = o.stateNode u && ((u = wd(u)), Js(o.stateNode, o.type, u)) } } function pc(o) { aa ? (yr ? yr.push(o) : (yr = [o])) : (aa = o) } function gc() { if (aa) { var o = aa, u = yr if (((yr = aa = null), Zs(o), u)) for (o = 0; o < u.length; o++) Zs(u[o]) } } function Wu(o, u) { return o(u) } function mc() {} var $o = !1 function $a(o, u, p) { if ($o) return o(u, p) $o = !0 try { return Wu(o, u, p) } finally { ;($o = !1), (aa !== null || yr !== null) && (mc(), gc()) } } function wi(o, u) { var p = o.stateNode if (p === null) return null var v = wd(p) if (v === null) return null p = v[u] e: switch (u) { case 'onClick': case 'onClickCapture': case 'onDoubleClick': case 'onDoubleClickCapture': case 'onMouseDown': case 'onMouseDownCapture': case 'onMouseMove': case 'onMouseMoveCapture': case 'onMouseUp': case 'onMouseUpCapture': case 'onMouseEnter': ;(v = !v.disabled) || ((o = o.type), (v = !(o === 'button' || o === 'input' || o === 'select' || o === 'textarea'))), (o = !v) break e default: o = !1 } if (o) return null if (p && typeof p != 'function') throw Error(T(231, u, typeof p)) return p } var Ha = !1 if (pe) try { var xi = {} Object.defineProperty(xi, 'passive', { get: function () { Ha = !0 }, }), window.addEventListener('test', xi, xi), window.removeEventListener('test', xi, xi) } catch (o) { Ha = !1 } function Ho(o, u, p, v, w, E, F, ne, le) { var Me = Array.prototype.slice.call(arguments, 3) try { u.apply(p, Me) } catch (Ke) { this.onError(Ke) } } var Ba = !1, Bo = null, Ua = !1, el = null, Vu = { onError: function (o) { ;(Ba = !0), (Bo = o) }, } function Gu(o, u, p, v, w, E, F, ne, le) { ;(Ba = !1), (Bo = null), Ho.apply(Vu, arguments) } function tl(o, u, p, v, w, E, F, ne, le) { if ((Gu.apply(this, arguments), Ba)) { if (Ba) { var Me = Bo ;(Ba = !1), (Bo = null) } else throw Error(T(198)) Ua || ((Ua = !0), (el = Me)) } } function Mn(o) { var u = o, p = o if (o.alternate) for (; u.return; ) u = u.return else { o = u do (u = o), u.flags & 4098 && (p = u.return), (o = u.return) while (o) } return u.tag === 3 ? p : null } function nl(o) { if (o.tag === 13) { var u = o.memoizedState if ((u === null && ((o = o.alternate), o !== null && (u = o.memoizedState)), u !== null)) return u.dehydrated } return null } function hc(o) { if (Mn(o) !== o) throw Error(T(188)) } function vc(o) { var u = o.alternate if (!u) { if (((u = Mn(o)), u === null)) throw Error(T(188)) return u !== o ? null : o } for (var p = o, v = u; ; ) { var w = p.return if (w === null) break var E = w.alternate if (E === null) { if (((v = w.return), v !== null)) { p = v continue } break } if (w.child === E.child) { for (E = w.child; E; ) { if (E === p) return hc(w), o if (E === v) return hc(w), u E = E.sibling } throw Error(T(188)) } if (p.return !== v.return) (p = w), (v = E) else { for (var F = !1, ne = w.child; ne; ) { if (ne === p) { ;(F = !0), (p = w), (v = E) break } if (ne === v) { ;(F = !0), (v = w), (p = E) break } ne = ne.sibling } if (!F) { for (ne = E.child; ne; ) { if (ne === p) { ;(F = !0), (p = E), (v = w) break } if (ne === v) { ;(F = !0), (v = E), (p = w) break } ne = ne.sibling } if (!F) throw Error(T(189)) } } if (p.alternate !== v) throw Error(T(190)) } if (p.tag !== 3) throw Error(T(188)) return p.stateNode.current === p ? o : u } function _c(o) { return (o = vc(o)), o !== null ? Uo(o) : null } function Uo(o) { if (o.tag === 5 || o.tag === 6) return o for (o = o.child; o !== null; ) { var u = Uo(o) if (u !== null) return u o = o.sibling } return null } var yc = $.unstable_scheduleCallback, bc = $.unstable_cancelCallback, Xu = $.unstable_shouldYield, Sc = $.unstable_requestPaint, Xt = $.unstable_now, Ku = $.unstable_getCurrentPriorityLevel, Wo = $.unstable_ImmediatePriority, rl = $.unstable_UserBlockingPriority, Vo = $.unstable_NormalPriority, Yu = $.unstable_LowPriority, Li = $.unstable_IdlePriority, Go = null, Tr = null function $f(o) { if (Tr && typeof Tr.onCommitFiberRoot == 'function') try { Tr.onCommitFiberRoot(Go, o, void 0, (o.current.flags & 128) === 128) } catch (u) {} } var Hr = Math.clz32 ? Math.clz32 : wc, qu = Math.log, Qu = Math.LN2 function wc(o) { return (o >>>= 0), o === 0 ? 32 : (31 - ((qu(o) / Qu) | 0)) | 0 } var Wa = 64, oa = 4194304 function sa(o) { switch (o & -o) { case 1: return 1 case 2: return 2 case 4: return 4 case 8: return 8 case 16: return 16 case 32: return 32 case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return o & 4194240 case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return o & 130023424 case 134217728: return 134217728 case 268435456: return 268435456 case 536870912: return 536870912 case 1073741824: return 1073741824 default: return o } } function il(o, u) { var p = o.pendingLanes if (p === 0) return 0 var v = 0, w = o.suspendedLanes, E = o.pingedLanes, F = p & 268435455 if (F !== 0) { var ne = F & ~w ne !== 0 ? (v = sa(ne)) : ((E &= F), E !== 0 && (v = sa(E))) } else (F = p & ~w), F !== 0 ? (v = sa(F)) : E !== 0 && (v = sa(E)) if (v === 0) return 0 if ( u !== 0 && u !== v && !(u & w) && ((w = v & -v), (E = u & -u), w >= E || (w === 16 && (E & 4194240) !== 0)) ) return u if ((v & 4 && (v |= p & 16), (u = o.entangledLanes), u !== 0)) for (o = o.entanglements, u &= v; 0 < u; ) (p = 31 - Hr(u)), (w = 1 << p), (v |= o[p]), (u &= ~w) return v } function Ju(o, u) { switch (o) { case 1: case 2: case 4: return u + 250 case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return u + 5e3 case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return -1 case 134217728: case 268435456: case 536870912: case 1073741824: return -1 default: return -1 } } function al(o, u) { for (var p = o.suspendedLanes, v = o.pingedLanes, w = o.expirationTimes, E = o.pendingLanes; 0 < E; ) { var F = 31 - Hr(E), ne = 1 << F, le = w[F] le === -1 ? (!(ne & p) || ne & v) && (w[F] = Ju(ne, u)) : le <= u && (o.expiredLanes |= ne), (E &= ~ne) } } function xc(o) { return (o = o.pendingLanes & -1073741825), o !== 0 ? o : o & 1073741824 ? 1073741824 : 0 } function Zu() { var o = Wa return (Wa <<= 1), !(Wa & 4194240) && (Wa = 64), o } function Cc(o) { for (var u = [], p = 0; 31 > p; p++) u.push(o) return u } function Va(o, u, p) { ;(o.pendingLanes |= u), u !== 536870912 && ((o.suspendedLanes = 0), (o.pingedLanes = 0)), (o = o.eventTimes), (u = 31 - Hr(u)), (o[u] = p) } function Ga(o, u) { var p = o.pendingLanes & ~u ;(o.pendingLanes = u), (o.suspendedLanes = 0), (o.pingedLanes = 0), (o.expiredLanes &= u), (o.mutableReadLanes &= u), (o.entangledLanes &= u), (u = o.entanglements) var v = o.eventTimes for (o = o.expirationTimes; 0 < p; ) { var w = 31 - Hr(p), E = 1 << w ;(u[w] = 0), (v[w] = -1), (o[w] = -1), (p &= ~E) } } function ol(o, u) { var p = (o.entangledLanes |= u) for (o = o.entanglements; p; ) { var v = 31 - Hr(p), w = 1 << v ;(w & u) | (o[v] & u) && (o[v] |= u), (p &= ~w) } } var Zt = 0 function Ec(o) { return (o &= -o), 1 < o ? (4 < o ? (o & 268435455 ? 16 : 536870912) : 4) : 1 } var Dr, Br, kc, Xo, ed, Ko = !1, la = [], br = null, Fi = null, $i = null, ca = new Map(), Pr = new Map(), Hi = [], td = 'mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit'.split( ' ' ) function ii(o, u) { switch (o) { case 'focusin': case 'focusout': br = null break case 'dragenter': case 'dragleave': Fi = null break case 'mouseover': case 'mouseout': $i = null break case 'pointerover': case 'pointerout': ca.delete(u.pointerId) break case 'gotpointercapture': case 'lostpointercapture': Pr.delete(u.pointerId) } } function Xa(o, u, p, v, w, E) { return o === null || o.nativeEvent !== E ? ((o = { blockedOn: u, domEventName: p, eventSystemFlags: v, nativeEvent: E, targetContainers: [w] }), u !== null && ((u = Hc(u)), u !== null && Br(u)), o) : ((o.eventSystemFlags |= v), (u = o.targetContainers), w !== null && u.indexOf(w) === -1 && u.push(w), o) } function Oc(o, u, p, v, w) { switch (u) { case 'focusin': return (br = Xa(br, o, u, p, v, w)), !0 case 'dragenter': return (Fi = Xa(Fi, o, u, p, v, w)), !0 case 'mouseover': return ($i = Xa($i, o, u, p, v, w)), !0 case 'pointerover': var E = w.pointerId return ca.set(E, Xa(ca.get(E) || null, o, u, p, v, w)), !0 case 'gotpointercapture': return (E = w.pointerId), Pr.set(E, Xa(Pr.get(E) || null, o, u, p, v, w)), !0 } return !1 } function Ka(o) { var u = cs(o.target) if (u !== null) { var p = Mn(u) if (p !== null) { if (((u = p.tag), u === 13)) { if (((u = nl(p)), u !== null)) { ;(o.blockedOn = u), ed(o.priority, function () { kc(p) }) return } } else if (u === 3 && p.stateNode.current.memoizedState.isDehydrated) { o.blockedOn = p.tag === 3 ? p.stateNode.containerInfo : null return } } } o.blockedOn = null } function Yo(o) { if (o.blockedOn !== null) return !1 for (var u = o.targetContainers; 0 < u.length; ) { var p = Qo(o.domEventName, o.eventSystemFlags, u[0], o.nativeEvent) if (p === null) { p = o.nativeEvent var v = new p.constructor(p.type, p) ;(Fo = v), p.target.dispatchEvent(v), (Fo = null) } else return (u = Hc(p)), u !== null && Br(u), (o.blockedOn = p), !1 u.shift() } return !0 } function Tc(o, u, p) { Yo(o) && p.delete(u) } function nd() { ;(Ko = !1), br !== null && Yo(br) && (br = null), Fi !== null && Yo(Fi) && (Fi = null), $i !== null && Yo($i) && ($i = null), ca.forEach(Tc), Pr.forEach(Tc) } function qo(o, u) { o.blockedOn === u && ((o.blockedOn = null), Ko || ((Ko = !0), $.unstable_scheduleCallback($.unstable_NormalPriority, nd))) } function Ya(o) { function u(w) { return qo(w, o) } if (0 < la.length) { qo(la[0], o) for (var p = 1; p < la.length; p++) { var v = la[p] v.blockedOn === o && (v.blockedOn = null) } } for ( br !== null && qo(br, o), Fi !== null && qo(Fi, o), $i !== null && qo($i, o), ca.forEach(u), Pr.forEach(u), p = 0; p < Hi.length; p++ ) (v = Hi[p]), v.blockedOn === o && (v.blockedOn = null) for (; 0 < Hi.length && ((p = Hi[0]), p.blockedOn === null); ) Ka(p), p.blockedOn === null && Hi.shift() } var qa = we.ReactCurrentBatchConfig, sl = !0 function Hf(o, u, p, v) { var w = Zt, E = qa.transition qa.transition = null try { ;(Zt = 1), at(o, u, p, v) } finally { ;(Zt = w), (qa.transition = E) } } function Bf(o, u, p, v) { var w = Zt, E = qa.transition qa.transition = null try { ;(Zt = 4), at(o, u, p, v) } finally { ;(Zt = w), (qa.transition = E) } } function at(o, u, p, v) { if (sl) { var w = Qo(o, u, p, v) if (w === null) is(o, u, v, ua, p), ii(o, v) else if (Oc(w, o, u, p, v)) v.stopPropagation() else if ((ii(o, v), u & 4 && -1 < td.indexOf(o))) { for (; w !== null; ) { var E = Hc(w) if ((E !== null && Dr(E), (E = Qo(o, u, p, v)), E === null && is(o, u, v, ua, p), E === w)) break w = E } w !== null && v.stopPropagation() } else is(o, u, v, null, p) } } var ua = null function Qo(o, u, p, v) { if (((ua = null), (o = Qs(v)), (o = cs(o)), o !== null)) if (((u = Mn(o)), u === null)) o = null else if (((p = u.tag), p === 13)) { if (((o = nl(u)), o !== null)) return o o = null } else if (p === 3) { if (u.stateNode.current.memoizedState.isDehydrated) return u.tag === 3 ? u.stateNode.containerInfo : null o = null } else u !== o && (o = null) return (ua = o), null } function Jo(o) { switch (o) { case 'cancel': case 'click': case 'close': case 'contextmenu': case 'copy': case 'cut': case 'auxclick': case 'dblclick': case 'dragend': case 'dragstart': case 'drop': case 'focusin': case 'focusout': case 'input': case 'invalid': case 'keydown': case 'keypress': case 'keyup': case 'mousedown': case 'mouseup': case 'paste': case 'pause': case 'play': case 'pointercancel': case 'pointerdown': case 'pointerup': case 'ratechange': case 'reset': case 'resize': case 'seeked': case 'submit': case 'touchcancel': case 'touchend': case 'touchstart': case 'volumechange': case 'change': case 'selectionchange': case 'textInput': case 'compositionstart': case 'compositionend': case 'compositionupdate': case 'beforeblur': case 'afterblur': case 'beforeinput': case 'blur': case 'fullscreenchange': case 'focus': case 'hashchange': case 'popstate': case 'select': case 'selectstart': return 1 case 'drag': case 'dragenter': case 'dragexit': case 'dragleave': case 'dragover': case 'mousemove': case 'mouseout': case 'mouseover': case 'pointermove': case 'pointerout': case 'pointerover': case 'scroll': case 'toggle': case 'touchmove': case 'wheel': case 'mouseenter': case 'mouseleave': case 'pointerenter': case 'pointerleave': return 4 case 'message': switch (Ku()) { case Wo: return 1 case rl: return 4 case Vo: case Yu: return 16 case Li: return 536870912 default: return 16 } default: return 16 } } var Ur = null, Zo = null, tr = null function ln() { if (tr) return tr var o, u = Zo, p = u.length, v, w = 'value' in Ur ? Ur.value : Ur.textContent, E = w.length for (o = 0; o < p && u[o] === w[o]; o++); var F = p - o for (v = 1; v <= F && u[p - v] === w[E - v]; v++); return (tr = w.slice(o, 1 < v ? 1 - v : void 0)) } function es(o) { var u = o.keyCode return ( 'charCode' in o ? ((o = o.charCode), o === 0 && u === 13 && (o = 13)) : (o = u), o === 10 && (o = 13), 32 <= o || o === 13 ? o : 0 ) } function Qa() { return !0 } function ll() { return !1 } function mn(o) { function u(p, v, w, E, F) { ;(this._reactName = p), (this._targetInst = w), (this.type = v), (this.nativeEvent = E), (this.target = F), (this.currentTarget = null) for (var ne in o) o.hasOwnProperty(ne) && ((p = o[ne]), (this[ne] = p ? p(E) : E[ne])) return ( (this.isDefaultPrevented = (E.defaultPrevented != null ? E.defaultPrevented : E.returnValue === !1) ? Qa : ll), (this.isPropagationStopped = ll), this ) } return ( Q(u.prototype, { preventDefault: function () { this.defaultPrevented = !0 var p = this.nativeEvent p && (p.preventDefault ? p.preventDefault() : typeof p.returnValue != 'unknown' && (p.returnValue = !1), (this.isDefaultPrevented = Qa)) }, stopPropagation: function () { var p = this.nativeEvent p && (p.stopPropagation ? p.stopPropagation() : typeof p.cancelBubble != 'unknown' && (p.cancelBubble = !0), (this.isPropagationStopped = Qa)) }, persist: function () {}, isPersistent: Qa, }), u ) } var O = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: function (o) { return o.timeStamp || Date.now() }, defaultPrevented: 0, isTrusted: 0, }, N = mn(O), A = Q({}, O, { view: 0, detail: 0 }), J = mn(A), ce, Be, lt, mt = Q({}, A, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: id, button: 0, buttons: 0, relatedTarget: function (o) { return o.relatedTarget === void 0 ? o.fromElement === o.srcElement ? o.toElement : o.fromElement : o.relatedTarget }, movementX: function (o) { return 'movementX' in o ? o.movementX : (o !== lt && (lt && o.type === 'mousemove' ? ((ce = o.screenX - lt.screenX), (Be = o.screenY - lt.screenY)) : (Be = ce = 0), (lt = o)), ce) }, movementY: function (o) { return 'movementY' in o ? o.movementY : Be }, }), It = mn(mt), Yt = Q({}, mt, { dataTransfer: 0 }), Kt = mn(Yt), Ir = Q({}, A, { relatedTarget: 0 }), Sr = mn(Ir), Ci = Q({}, O, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), da = mn(Ci), In = Q({}, O, { clipboardData: function (o) { return 'clipboardData' in o ? o.clipboardData : window.clipboardData }, }), Ei = mn(In), Bi = Q({}, O, { data: 0 }), lr = mn(Bi), Dc = { Esc: 'Escape', Spacebar: ' ', Left: 'ArrowLeft', Up: 'ArrowUp', Right: 'ArrowRight', Down: 'ArrowDown', Del: 'Delete', Win: 'OS', Menu: 'ContextMenu', Apps: 'ContextMenu', Scroll: 'ScrollLock', MozPrintableKey: 'Unidentified', }, rd = { 8: 'Backspace', 9: 'Tab', 12: 'Clear', 13: 'Enter', 16: 'Shift', 17: 'Control', 18: 'Alt', 19: 'Pause', 20: 'CapsLock', 27: 'Escape', 32: ' ', 33: 'PageUp', 34: 'PageDown', 35: 'End', 36: 'Home', 37: 'ArrowLeft', 38: 'ArrowUp', 39: 'ArrowRight', 40: 'ArrowDown', 45: 'Insert', 46: 'Delete', 112: 'F1', 113: 'F2', 114: 'F3', 115: 'F4', 116: 'F5', 117: 'F6', 118: 'F7', 119: 'F8', 120: 'F9', 121: 'F10', 122: 'F11', 123: 'F12', 144: 'NumLock', 145: 'ScrollLock', 224: 'Meta', }, mm = { Alt: 'altKey', Control: 'ctrlKey', Meta: 'metaKey', Shift: 'shiftKey' } function Uf(o) { var u = this.nativeEvent return u.getModifierState ? u.getModifierState(o) : (o = mm[o]) ? !!u[o] : !1 } function id() { return Uf } var ad = Q({}, A, { key: function (o) { if (o.key) { var u = Dc[o.key] || o.key if (u !== 'Unidentified') return u } return o.type === 'keypress' ? ((o = es(o)), o === 13 ? 'Enter' : String.fromCharCode(o)) : o.type === 'keydown' || o.type === 'keyup' ? rd[o.keyCode] || 'Unidentified' : '' }, code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: id, charCode: function (o) { return o.type === 'keypress' ? es(o) : 0 }, keyCode: function (o) { return o.type === 'keydown' || o.type === 'keyup' ? o.keyCode : 0 }, which: function (o) { return o.type === 'keypress' ? es(o) : o.type === 'keydown' || o.type === 'keyup' ? o.keyCode : 0 }, }), hm = mn(ad), vm = Q({}, mt, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0, }), Wf = mn(vm), _m = Q({}, A, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: id, }), Vf = mn(_m), cl = Q({}, O, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), ym = mn(cl), bm = Q({}, mt, { deltaX: function (o) { return 'deltaX' in o ? o.deltaX : 'wheelDeltaX' in o ? -o.wheelDeltaX : 0 }, deltaY: function (o) { return 'deltaY' in o ? o.deltaY : 'wheelDeltaY' in o ? -o.wheelDeltaY : 'wheelDelta' in o ? -o.wheelDelta : 0 }, deltaZ: 0, deltaMode: 0, }), Sm = mn(bm), e_ = [9, 13, 27, 32], Gf = pe && 'CompositionEvent' in window, Pc = null pe && 'documentMode' in document && (Pc = document.documentMode) var wm = pe && 'TextEvent' in window && !Pc, Xf = pe && (!Gf || (Pc && 8 < Pc && 11 >= Pc)), xm = String.fromCharCode(32), Cm = !1 function Em(o, u) { switch (o) { case 'keyup': return e_.indexOf(u.keyCode) !== -1 case 'keydown': return u.keyCode !== 229 case 'keypress': case 'mousedown': case 'focusout': return !0 default: return !1 } } function km(o) { return (o = o.detail), typeof o == 'object' && 'data' in o ? o.data : null } var ul = !1 function t_(o, u) { switch (o) { case 'compositionend': return km(u) case 'keypress': return u.which !== 32 ? null : ((Cm = !0), xm) case 'textInput': return (o = u.data), o === xm && Cm ? null : o default: return null } } function n_(o, u) { if (ul) return o === 'compositionend' || (!Gf && Em(o, u)) ? ((o = ln()), (tr = Zo = Ur = null), (ul = !1), o) : null switch (o) { case 'paste': return null case 'keypress': if (!(u.ctrlKey || u.altKey || u.metaKey) || (u.ctrlKey && u.altKey)) { if (u.char && 1 < u.char.length) return u.char if (u.which) return String.fromCharCode(u.which) } return null case 'compositionend': return Xf && u.locale !== 'ko' ? null : u.data default: return null } } var r_ = { color: !0, date: !0, datetime: !0, 'datetime-local': !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0, } function Om(o) { var u = o && o.nodeName && o.nodeName.toLowerCase() return u === 'input' ? !!r_[o.type] : u === 'textarea' } function od(o, u, p, v) { pc(v), (u = Za(u, 'onChange')), 0 < u.length && ((p = new N('onChange', 'change', null, p, v)), o.push({ event: p, listeners: u })) } var ts = null, dl = null function Tm(o) { zm(o, 0) } function Ic(o) { var u = vl(o) if (Qt(u)) return o } function Kn(o, u) { if (o === 'change') return u } var sd = !1 if (pe) { var ze if (pe) { var fl = 'oninput' in document if (!fl) { var Kf = document.createElement('div') Kf.setAttribute('oninput', 'return;'), (fl = typeof Kf.oninput == 'function') } ze = fl } else ze = !1 sd = ze && (!document.documentMode || 9 < document.documentMode) } function ld() { ts && (ts.detachEvent('onpropertychange', Rc), (dl = ts = null)) } function Rc(o) { if (o.propertyName === 'value' && Ic(dl)) { var u = [] od(u, dl, o, Qs(o)), $a(Tm, u) } } function Dm(o, u, p) { o === 'focusin' ? (ld(), (ts = u), (dl = p), ts.attachEvent('onpropertychange', Rc)) : o === 'focusout' && ld() } function kt(o) { if (o === 'selectionchange' || o === 'keyup' || o === 'keydown') return Ic(dl) } function Pm(o, u) { if (o === 'click') return Ic(u) } function cd(o, u) { if (o === 'input' || o === 'change') return Ic(u) } function Mc(o, u) { return (o === u && (o !== 0 || 1 / o === 1 / u)) || (o !== o && u !== u) } var Rr = typeof Object.is == 'function' ? Object.is : Mc function pl(o, u) { if (Rr(o, u)) return !0 if (typeof o != 'object' || o === null || typeof u != 'object' || u === null) return !1 var p = Object.keys(o), v = Object.keys(u) if (p.length !== v.length) return !1 for (v = 0; v < p.length; v++) { var w = p[v] if (!ke.call(u, w) || !Rr(o[w], u[w])) return !1 } return !0 } function Yf(o) { for (; o && o.firstChild; ) o = o.firstChild return o } function ud(o, u) { var p = Yf(o) o = 0 for (var v; p; ) { if (p.nodeType === 3) { if (((v = o + p.textContent.length), o <= u && v >= u)) return { node: p, offset: u - o } o = v } e: { for (; p; ) { if (p.nextSibling) { p = p.nextSibling break e } p = p.parentNode } p = void 0 } p = Yf(p) } } function qf(o, u) { return o && u ? o === u ? !0 : o && o.nodeType === 3 ? !1 : u && u.nodeType === 3 ? qf(o, u.parentNode) : 'contains' in o ? o.contains(u) : o.compareDocumentPosition ? !!(o.compareDocumentPosition(u) & 16) : !1 : !1 } function Qf() { for (var o = window, u = sn(); u instanceof o.HTMLIFrameElement; ) { try { var p = typeof u.contentWindow.location.href == 'string' } catch (v) { p = !1 } if (p) o = u.contentWindow else break u = sn(o.document) } return u } function Ac(o) { var u = o && o.nodeName && o.nodeName.toLowerCase() return ( u && ((u === 'input' && (o.type === 'text' || o.type === 'search' || o.type === 'tel' || o.type === 'url' || o.type === 'password')) || u === 'textarea' || o.contentEditable === 'true') ) } function Nc(o) { var u = Qf(), p = o.focusedElem, v = o.selectionRange if (u !== p && p && p.ownerDocument && qf(p.ownerDocument.documentElement, p)) { if (v !== null && Ac(p)) { if (((u = v.start), (o = v.end), o === void 0 && (o = u), 'selectionStart' in p)) (p.selectionStart = u), (p.selectionEnd = Math.min(o, p.value.length)) else if (((o = ((u = p.ownerDocument || document) && u.defaultView) || window), o.getSelection)) { o = o.getSelection() var w = p.textContent.length, E = Math.min(v.start, w) ;(v = v.end === void 0 ? E : Math.min(v.end, w)), !o.extend && E > v && ((w = v), (v = E), (E = w)), (w = ud(p, E)) var F = ud(p, v) w && F && (o.rangeCount !== 1 || o.anchorNode !== w.node || o.anchorOffset !== w.offset || o.focusNode !== F.node || o.focusOffset !== F.offset) && ((u = u.createRange()), u.setStart(w.node, w.offset), o.removeAllRanges(), E > v ? (o.addRange(u), o.extend(F.node, F.offset)) : (u.setEnd(F.node, F.offset), o.addRange(u))) } } for (u = [], o = p; (o = o.parentNode); ) o.nodeType === 1 && u.push({ element: o, left: o.scrollLeft, top: o.scrollTop }) for (typeof p.focus == 'function' && p.focus(), p = 0; p < u.length; p++) (o = u[p]), (o.element.scrollLeft = o.left), (o.element.scrollTop = o.top) } } var Im = pe && 'documentMode' in document && 11 >= document.documentMode, cr = null, dd = null, Ja = null, fd = !1 function Jf(o, u, p) { var v = p.window === p ? p.document : p.nodeType === 9 ? p : p.ownerDocument fd || cr == null || cr !== sn(v) || ((v = cr), 'selectionStart' in v && Ac(v) ? (v = { start: v.selectionStart, end: v.selectionEnd }) : ((v = ((v.ownerDocument && v.ownerDocument.defaultView) || window).getSelection()), (v = { anchorNode: v.anchorNode, anchorOffset: v.anchorOffset, focusNode: v.focusNode, focusOffset: v.focusOffset, })), (Ja && pl(Ja, v)) || ((Ja = v), (v = Za(dd, 'onSelect')), 0 < v.length && ((u = new N('onSelect', 'select', null, u, p)), o.push({ event: u, listeners: v }), (u.target = cr)))) } function jc(o, u) { var p = {} return (p[o.toLowerCase()] = u.toLowerCase()), (p['Webkit' + o] = 'webkit' + u), (p['Moz' + o] = 'moz' + u), p } var fa = { animationend: jc('Animation', 'AnimationEnd'), animationiteration: jc('Animation', 'AnimationIteration'), animationstart: jc('Animation', 'AnimationStart'), transitionend: jc('Transition', 'TransitionEnd'), }, pa = {}, Rm = {} pe && ((Rm = document.createElement('div').style), 'AnimationEvent' in window || (delete fa.animationend.animation, delete fa.animationiteration.animation, delete fa.animationstart.animation), 'TransitionEvent' in window || delete fa.transitionend.transition) function ga(o) { if (pa[o]) return pa[o] if (!fa[o]) return o var u = fa[o], p for (p in u) if (u.hasOwnProperty(p) && p in Rm) return (pa[o] = u[p]) return o } var gl = ga('animationend'), pd = ga('animationiteration'), zc = ga('animationstart'), Zf = ga('transitionend'), gd = new Map(), md = 'abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel'.split( ' ' ) function ma(o, u) { gd.set(o, u), K(u, [o]) } for (var Lc = 0; Lc < md.length; Lc++) { var pt = md[Lc], Mm = pt.toLowerCase(), Am = pt[0].toUpperCase() + pt.slice(1) ma(Mm, 'on' + Am) } ma(gl, 'onAnimationEnd'), ma(pd, 'onAnimationIteration'), ma(zc, 'onAnimationStart'), ma('dblclick', 'onDoubleClick'), ma('focusin', 'onFocus'), ma('focusout', 'onBlur'), ma(Zf, 'onTransitionEnd'), q('onMouseEnter', ['mouseout', 'mouseover']), q('onMouseLeave', ['mouseout', 'mouseover']), q('onPointerEnter', ['pointerout', 'pointerover']), q('onPointerLeave', ['pointerout', 'pointerover']), K('onChange', 'change click focusin focusout input keydown keyup selectionchange'.split(' ')), K( 'onSelect', 'focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange'.split(' ') ), K('onBeforeInput', ['compositionend', 'keypress', 'textInput', 'paste']), K('onCompositionEnd', 'compositionend focusout keydown keypress keyup mousedown'.split(' ')), K('onCompositionStart', 'compositionstart focusout keydown keypress keyup mousedown'.split(' ')), K('onCompositionUpdate', 'compositionupdate focusout keydown keypress keyup mousedown'.split(' ')) var Fc = 'abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting'.split( ' ' ), Nm = new Set('cancel close invalid load scroll toggle'.split(' ').concat(Fc)) function jm(o, u, p) { var v = o.type || 'unknown-event' ;(o.currentTarget = p), tl(v, u, void 0, o), (o.currentTarget = null) } function zm(o, u) { u = (u & 4) !== 0 for (var p = 0; p < o.length; p++) { var v = o[p], w = v.event v = v.listeners e: { var E = void 0 if (u) for (var F = v.length - 1; 0 <= F; F--) { var ne = v[F], le = ne.instance, Me = ne.currentTarget if (((ne = ne.listener), le !== E && w.isPropagationStopped())) break e jm(w, ne, Me), (E = le) } else for (F = 0; F < v.length; F++) { if ( ((ne = v[F]), (le = ne.instance), (Me = ne.currentTarget), (ne = ne.listener), le !== E && w.isPropagationStopped()) ) break e jm(w, ne, Me), (E = le) } } } if (Ua) throw ((o = el), (Ua = !1), (el = null), o) } function gn(o, u) { var p = u[Sd] p === void 0 && (p = u[Sd] = new Set()) var v = o + '__bubble' p.has(v) || (ep(u, o, 2, !1), p.add(v)) } function ur(o, u, p) { var v = 0 u && (v |= 4), ep(p, o, v, u) } var ns = '_reactListening' + Math.random().toString(36).slice(2) function rs(o) { if (!o[ns]) { ;(o[ns] = !0), V.forEach(function (p) { p !== 'selectionchange' && (Nm.has(p) || ur(p, !1, o), ur(p, !0, o)) }) var u = o.nodeType === 9 ? o : o.ownerDocument u === null || u[ns] || ((u[ns] = !0), ur('selectionchange', !1, u)) } } function ep(o, u, p, v) { switch (Jo(u)) { case 1: var w = Hf break case 4: w = Bf break default: w = at } ;(p = w.bind(null, u, p, o)), (w = void 0), !Ha || (u !== 'touchstart' && u !== 'touchmove' && u !== 'wheel') || (w = !0), v ? w !== void 0 ? o.addEventListener(u, p, { capture: !0, passive: w }) : o.addEventListener(u, p, !0) : w !== void 0 ? o.addEventListener(u, p, { passive: w }) : o.addEventListener(u, p, !1) } function is(o, u, p, v, w) { var E = v if (!(u & 1) && !(u & 2) && v !== null) e: for (;;) { if (v === null) return var F = v.tag if (F === 3 || F === 4) { var ne = v.stateNode.containerInfo if (ne === w || (ne.nodeType === 8 && ne.parentNode === w)) break if (F === 4) for (F = v.return; F !== null; ) { var le = F.tag if ( (le === 3 || le === 4) && ((le = F.stateNode.containerInfo), le === w || (le.nodeType === 8 && le.parentNode === w)) ) return F = F.return } for (; ne !== null; ) { if (((F = cs(ne)), F === null)) return if (((le = F.tag), le === 5 || le === 6)) { v = E = F continue e } ne = ne.parentNode } } v = v.return } $a(function () { var Me = E, Ke = Qs(p), Ze = [] e: { var qe = gd.get(o) if (qe !== void 0) { var gt = N, _t = o switch (o) { case 'keypress': if (es(p) === 0) break e case 'keydown': case 'keyup': gt = hm break case 'focusin': ;(_t = 'focus'), (gt = Sr) break case 'focusout': ;(_t = 'blur'), (gt = Sr) break case 'beforeblur': case 'afterblur': gt = Sr break case 'click': if (p.button === 2) break e case 'auxclick': case 'dblclick': case 'mousedown': case 'mousemove': case 'mouseup': case 'mouseout': case 'mouseover': case 'contextmenu': gt = It break case 'drag': case 'dragend': case 'dragenter': case 'dragexit': case 'dragleave': case 'dragover': case 'dragstart': case 'drop': gt = Kt break case 'touchcancel': case 'touchend': case 'touchmove': case 'touchstart': gt = Vf break case gl: case pd: case zc: gt = da break case Zf: gt = ym break case 'scroll': gt = J break case 'wheel': gt = Sm break case 'copy': case 'cut': case 'paste': gt = Ei break case 'gotpointercapture': case 'lostpointercapture': case 'pointercancel': case 'pointerdown': case 'pointermove': case 'pointerout': case 'pointerover': case 'pointerup': gt = Wf } var St = (u & 4) !== 0, Lt = !St && o === 'scroll', Ce = St ? (qe !== null ? qe + 'Capture' : null) : qe St = [] for (var ge = Me, Ee; ge !== null; ) { Ee = ge var it = Ee.stateNode if ( (Ee.tag === 5 && it !== null && ((Ee = it), Ce !== null && ((it = wi(ge, Ce)), it != null && St.push(as(ge, it, Ee)))), Lt) ) break ge = ge.return } 0 < St.length && ((qe = new gt(qe, _t, null, p, Ke)), Ze.push({ event: qe, listeners: St })) } } if (!(u & 7)) { e: { if ( ((qe = o === 'mouseover' || o === 'pointerover'), (gt = o === 'mouseout' || o === 'pointerout'), qe && p !== Fo && (_t = p.relatedTarget || p.fromElement) && (cs(_t) || _t[Ui])) ) break e if ( (gt || qe) && ((qe = Ke.window === Ke ? Ke : (qe = Ke.ownerDocument) ? qe.defaultView || qe.parentWindow : window), gt ? ((_t = p.relatedTarget || p.toElement), (gt = Me), (_t = _t ? cs(_t) : null), _t !== null && ((Lt = Mn(_t)), _t !== Lt || (_t.tag !== 5 && _t.tag !== 6)) && (_t = null)) : ((gt = null), (_t = Me)), gt !== _t) ) { if ( ((St = It), (it = 'onMouseLeave'), (Ce = 'onMouseEnter'), (ge = 'mouse'), (o === 'pointerout' || o === 'pointerover') && ((St = Wf), (it = 'onPointerLeave'), (Ce = 'onPointerEnter'), (ge = 'pointer')), (Lt = gt == null ? qe : vl(gt)), (Ee = _t == null ? qe : vl(_t)), (qe = new St(it, ge + 'leave', gt, p, Ke)), (qe.target = Lt), (qe.relatedTarget = Ee), (it = null), cs(Ke) === Me && ((St = new St(Ce, ge + 'enter', _t, p, Ke)), (St.target = Ee), (St.relatedTarget = Lt), (it = St)), (Lt = it), gt && _t) ) t: { for (St = gt, Ce = _t, ge = 0, Ee = St; Ee; Ee = os(Ee)) ge++ for (Ee = 0, it = Ce; it; it = os(it)) Ee++ for (; 0 < ge - Ee; ) (St = os(St)), ge-- for (; 0 < Ee - ge; ) (Ce = os(Ce)), Ee-- for (; ge--; ) { if (St === Ce || (Ce !== null && St === Ce.alternate)) break t ;(St = os(St)), (Ce = os(Ce)) } St = null } else St = null gt !== null && hd(Ze, qe, gt, St, !1), _t !== null && Lt !== null && hd(Ze, Lt, _t, St, !0) } } e: { if ( ((qe = Me ? vl(Me) : window), (gt = qe.nodeName && qe.nodeName.toLowerCase()), gt === 'select' || (gt === 'input' && qe.type === 'file')) ) var wt = Kn else if (Om(qe)) if (sd) wt = cd else { wt = kt var At = Dm } else (gt = qe.nodeName) && gt.toLowerCase() === 'input' && (qe.type === 'checkbox' || qe.type === 'radio') && (wt = Pm) if (wt && (wt = wt(o, Me))) { od(Ze, wt, p, Ke) break e } At && At(o, qe, Me), o === 'focusout' && (At = qe._wrapperState) && At.controlled && qe.type === 'number' && Fr(qe, 'number', qe.value) } switch (((At = Me ? vl(Me) : window), o)) { case 'focusin': ;(Om(At) || At.contentEditable === 'true') && ((cr = At), (dd = Me), (Ja = null)) break case 'focusout': Ja = dd = cr = null break case 'mousedown': fd = !0 break case 'contextmenu': case 'mouseup': case 'dragend': ;(fd = !1), Jf(Ze, p, Ke) break case 'selectionchange': if (Im) break case 'keydown': case 'keyup': Jf(Ze, p, Ke) } var Rt if (Gf) e: { switch (o) { case 'compositionstart': var zt = 'onCompositionStart' break e case 'compositionend': zt = 'onCompositionEnd' break e case 'compositionupdate': zt = 'onCompositionUpdate' break e } zt = void 0 } else ul ? Em(o, p) && (zt = 'onCompositionEnd') : o === 'keydown' && p.keyCode === 229 && (zt = 'onCompositionStart') zt && (Xf && p.locale !== 'ko' && (ul || zt !== 'onCompositionStart' ? zt === 'onCompositionEnd' && ul && (Rt = ln()) : ((Ur = Ke), (Zo = 'value' in Ur ? Ur.value : Ur.textContent), (ul = !0))), (At = Za(Me, zt)), 0 < At.length && ((zt = new lr(zt, o, null, p, Ke)), Ze.push({ event: zt, listeners: At }), Rt ? (zt.data = Rt) : ((Rt = km(p)), Rt !== null && (zt.data = Rt)))), (Rt = wm ? t_(o, p) : n_(o, p)) && ((Me = Za(Me, 'onBeforeInput')), 0 < Me.length && ((Ke = new lr('onBeforeInput', 'beforeinput', null, p, Ke)), Ze.push({ event: Ke, listeners: Me }), (Ke.data = Rt))) } zm(Ze, u) }) } function as(o, u, p) { return { instance: o, listener: u, currentTarget: p } } function Za(o, u) { for (var p = u + 'Capture', v = []; o !== null; ) { var w = o, E = w.stateNode w.tag === 5 && E !== null && ((w = E), (E = wi(o, p)), E != null && v.unshift(as(o, E, w)), (E = wi(o, u)), E != null && v.push(as(o, E, w))), (o = o.return) } return v } function os(o) { if (o === null) return null do o = o.return while (o && o.tag !== 5) return o || null } function hd(o, u, p, v, w) { for (var E = u._reactName, F = []; p !== null && p !== v; ) { var ne = p, le = ne.alternate, Me = ne.stateNode if (le !== null && le === v) break ne.tag === 5 && Me !== null && ((ne = Me), w ? ((le = wi(p, E)), le != null && F.unshift(as(p, le, ne))) : w || ((le = wi(p, E)), le != null && F.push(as(p, le, ne)))), (p = p.return) } F.length !== 0 && o.push({ event: u, listeners: F }) } var tp = /\r\n?/g, np = /\u0000|\uFFFD/g function ml(o) { return (typeof o == 'string' ? o : '' + o) .replace( tp, ` ` ) .replace(np, '') } function $c(o, u, p) { if (((u = ml(u)), ml(o) !== u && p)) throw Error(T(425)) } function vd() {} var ha = null, ss = null function _d(o, u) { return ( o === 'textarea' || o === 'noscript' || typeof u.children == 'string' || typeof u.children == 'number' || (typeof u.dangerouslySetInnerHTML == 'object' && u.dangerouslySetInnerHTML !== null && u.dangerouslySetInnerHTML.__html != null) ) } var eo = typeof setTimeout == 'function' ? setTimeout : void 0, rp = typeof clearTimeout == 'function' ? clearTimeout : void 0, ip = typeof Promise == 'function' ? Promise : void 0, yd = typeof queueMicrotask == 'function' ? queueMicrotask : typeof ip != 'undefined' ? function (o) { return ip.resolve(null).then(o).catch(Lm) } : eo function Lm(o) { setTimeout(function () { throw o }) } function bd(o, u) { var p = u, v = 0 do { var w = p.nextSibling if ((o.removeChild(p), w && w.nodeType === 8)) if (((p = w.data), p === '/$')) { if (v === 0) { o.removeChild(w), Ya(u) return } v-- } else (p !== '$' && p !== '$?' && p !== '$!') || v++ p = w } while (p) Ya(u) } function va(o) { for (; o != null; o = o.nextSibling) { var u = o.nodeType if (u === 1 || u === 3) break if (u === 8) { if (((u = o.data), u === '$' || u === '$!' || u === '$?')) break if (u === '/$') return null } } return o } function _a(o) { o = o.previousSibling for (var u = 0; o; ) { if (o.nodeType === 8) { var p = o.data if (p === '$' || p === '$!' || p === '$?') { if (u === 0) return o u-- } else p === '/$' && u++ } o = o.previousSibling } return null } var ls = Math.random().toString(36).slice(2), ki = '__reactFiber$' + ls, hl = '__reactProps$' + ls, Ui = '__reactContainer$' + ls, Sd = '__reactEvents$' + ls, ap = '__reactListeners$' + ls, i_ = '__reactHandles$' + ls function cs(o) { var u = o[ki] if (u) return u for (var p = o.parentNode; p; ) { if ((u = p[Ui] || p[ki])) { if (((p = u.alternate), u.child !== null || (p !== null && p.child !== null))) for (o = _a(o); o !== null; ) { if ((p = o[ki])) return p o = _a(o) } return u } ;(o = p), (p = o.parentNode) } return null } function Hc(o) { return (o = o[ki] || o[Ui]), !o || (o.tag !== 5 && o.tag !== 6 && o.tag !== 13 && o.tag !== 3) ? null : o } function vl(o) { if (o.tag === 5 || o.tag === 6) return o.stateNode throw Error(T(33)) } function wd(o) { return o[hl] || null } var xd = [], us = -1 function to(o) { return { current: o } } function yn(o) { 0 > us || ((o.current = xd[us]), (xd[us] = null), us--) } function hn(o, u) { us++, (xd[us] = o.current), (o.current = u) } var no = {}, dr = to(no), Mr = to(!1), ya = no function ds(o, u) { var p = o.type.contextTypes if (!p) return no var v = o.stateNode if (v && v.__reactInternalMemoizedUnmaskedChildContext === u) return v.__reactInternalMemoizedMaskedChildContext var w = {}, E for (E in p) w[E] = u[E] return ( v && ((o = o.stateNode), (o.__reactInternalMemoizedUnmaskedChildContext = u), (o.__reactInternalMemoizedMaskedChildContext = w)), w ) } function fr(o) { return (o = o.childContextTypes), o != null } function Bc() { yn(Mr), yn(dr) } function op(o, u, p) { if (dr.current !== no) throw Error(T(168)) hn(dr, u), hn(Mr, p) } function sp(o, u, p) { var v = o.stateNode if (((u = u.childContextTypes), typeof v.getChildContext != 'function')) return p v = v.getChildContext() for (var w in v) if (!(w in u)) throw Error(T(108, Je(o) || 'Unknown', w)) return Q({}, p, v) } function Uc(o) { return ( (o = ((o = o.stateNode) && o.__reactInternalMemoizedMergedChildContext) || no), (ya = dr.current), hn(dr, o), hn(Mr, Mr.current), !0 ) } function lp(o, u, p) { var v = o.stateNode if (!v) throw Error(T(169)) p ? ((o = sp(o, u, ya)), (v.__reactInternalMemoizedMergedChildContext = o), yn(Mr), yn(dr), hn(dr, o)) : yn(Mr), hn(Mr, p) } var ai = null, Cd = !1, Ed = !1 function cn(o) { ai === null ? (ai = [o]) : ai.push(o) } function Fm(o) { ;(Cd = !0), cn(o) } function Oi() { if (!Ed && ai !== null) { Ed = !0 var o = 0, u = Zt try { var p = ai for (Zt = 1; o < p.length; o++) { var v = p[o] do v = v(!0) while (v !== null) } ;(ai = null), (Cd = !1) } catch (w) { throw (ai !== null && (ai = ai.slice(o + 1)), yc(Wo, Oi), w) } finally { ;(Zt = u), (Ed = !1) } } return null } var ro = [], fs = 0, ps = null, _l = 0, Wr = [], Yn = 0, io = null, Vr = 1, ba = '' function gs(o, u) { ;(ro[fs++] = _l), (ro[fs++] = ps), (ps = o), (_l = u) } function Wc(o, u, p) { ;(Wr[Yn++] = Vr), (Wr[Yn++] = ba), (Wr[Yn++] = io), (io = o) var v = Vr o = ba var w = 32 - Hr(v) - 1 ;(v &= ~(1 << w)), (p += 1) var E = 32 - Hr(u) + w if (30 < E) { var F = w - (w % 5) ;(E = (v & ((1 << F) - 1)).toString(32)), (v >>= F), (w -= F), (Vr = (1 << (32 - Hr(u) + w)) | (p << w) | v), (ba = E + o) } else (Vr = (1 << E) | (p << w) | v), (ba = o) } function kd(o) { o.return !== null && (gs(o, 1), Wc(o, 1, 0)) } function cp(o) { for (; o === ps; ) (ps = ro[--fs]), (ro[fs] = null), (_l = ro[--fs]), (ro[fs] = null) for (; o === io; ) (io = Wr[--Yn]), (Wr[Yn] = null), (ba = Wr[--Yn]), (Wr[Yn] = null), (Vr = Wr[--Yn]), (Wr[Yn] = null) } var Gr = null, Ar = null, vn = !1, Xr = null function up(o, u) { var p = ei(5, null, null, 0) ;(p.elementType = 'DELETED'), (p.stateNode = u), (p.return = o), (u = o.deletions), u === null ? ((o.deletions = [p]), (o.flags |= 16)) : u.push(p) } function dp(o, u) { switch (o.tag) { case 5: var p = o.type return ( (u = u.nodeType !== 1 || p.toLowerCase() !== u.nodeName.toLowerCase() ? null : u), u !== null ? ((o.stateNode = u), (Gr = o), (Ar = va(u.firstChild)), !0) : !1 ) case 6: return ( (u = o.pendingProps === '' || u.nodeType !== 3 ? null : u), u !== null ? ((o.stateNode = u), (Gr = o), (Ar = null), !0) : !1 ) case 13: return ( (u = u.nodeType !== 8 ? null : u), u !== null ? ((p = io !== null ? { id: Vr, overflow: ba } : null), (o.memoizedState = { dehydrated: u, treeContext: p, retryLane: 1073741824 }), (p = ei(18, null, null, 0)), (p.stateNode = u), (p.return = o), (o.child = p), (Gr = o), (Ar = null), !0) : !1 ) default: return !1 } } function Od(o) { return (o.mode & 1) !== 0 && (o.flags & 128) === 0 } function An(o) { if (vn) { var u = Ar if (u) { var p = u if (!dp(o, u)) { if (Od(o)) throw Error(T(418)) u = va(p.nextSibling) var v = Gr u && dp(o, u) ? up(v, p) : ((o.flags = (o.flags & -4097) | 2), (vn = !1), (Gr = o)) } } else { if (Od(o)) throw Error(T(418)) ;(o.flags = (o.flags & -4097) | 2), (vn = !1), (Gr = o) } } } function yl(o) { for (o = o.return; o !== null && o.tag !== 5 && o.tag !== 3 && o.tag !== 13; ) o = o.return Gr = o } function Vc(o) { if (o !== Gr) return !1 if (!vn) return yl(o), (vn = !0), !1 var u if ( ((u = o.tag !== 3) && !(u = o.tag !== 5) && ((u = o.type), (u = u !== 'head' && u !== 'body' && !_d(o.type, o.memoizedProps))), u && (u = Ar)) ) { if (Od(o)) throw (fp(), Error(T(418))) for (; u; ) up(o, u), (u = va(u.nextSibling)) } if ((yl(o), o.tag === 13)) { if (((o = o.memoizedState), (o = o !== null ? o.dehydrated : null), !o)) throw Error(T(317)) e: { for (o = o.nextSibling, u = 0; o; ) { if (o.nodeType === 8) { var p = o.data if (p === '/$') { if (u === 0) { Ar = va(o.nextSibling) break e } u-- } else (p !== '$' && p !== '$!' && p !== '$?') || u++ } o = o.nextSibling } Ar = null } } else Ar = Gr ? va(o.stateNode.nextSibling) : null return !0 } function fp() { for (var o = Ar; o; ) o = va(o.nextSibling) } function ao() { ;(Ar = Gr = null), (vn = !1) } function ms(o) { Xr === null ? (Xr = [o]) : Xr.push(o) } var oo = we.ReactCurrentBatchConfig function oi(o, u) { if (o && o.defaultProps) { ;(u = Q({}, u)), (o = o.defaultProps) for (var p in o) u[p] === void 0 && (u[p] = o[p]) return u } return u } var bl = to(null), hs = null, vs = null, Sl = null function Td() { Sl = vs = hs = null } function wl(o) { var u = bl.current yn(bl), (o._currentValue = u) } function Dd(o, u, p) { for (; o !== null; ) { var v = o.alternate if ( ((o.childLanes & u) !== u ? ((o.childLanes |= u), v !== null && (v.childLanes |= u)) : v !== null && (v.childLanes & u) !== u && (v.childLanes |= u), o === p) ) break o = o.return } } function xl(o, u) { ;(hs = o), (Sl = vs = null), (o = o.dependencies), o !== null && o.firstContext !== null && (o.lanes & u && (wr = !0), (o.firstContext = null)) } function Nr(o) { var u = o._currentValue if (Sl !== o) if (((o = { context: o, memoizedValue: u, next: null }), vs === null)) { if (hs === null) throw Error(T(308)) ;(vs = o), (hs.dependencies = { lanes: 0, firstContext: o }) } else vs = vs.next = o return u } var Sa = null function pr(o) { Sa === null ? (Sa = [o]) : Sa.push(o) } function pp(o, u, p, v) { var w = u.interleaved return w === null ? ((p.next = p), pr(u)) : ((p.next = w.next), (w.next = p)), (u.interleaved = p), si(o, v) } function si(o, u) { o.lanes |= u var p = o.alternate for (p !== null && (p.lanes |= u), p = o, o = o.return; o !== null; ) (o.childLanes |= u), (p = o.alternate), p !== null && (p.childLanes |= u), (p = o), (o = o.return) return p.tag === 3 ? p.stateNode : null } var jr = !1 function Pd(o) { o.updateQueue = { baseState: o.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null, } } function gp(o, u) { ;(o = o.updateQueue), u.updateQueue === o && (u.updateQueue = { baseState: o.baseState, firstBaseUpdate: o.firstBaseUpdate, lastBaseUpdate: o.lastBaseUpdate, shared: o.shared, effects: o.effects, }) } function nr(o, u) { return { eventTime: o, lane: u, tag: 0, payload: null, callback: null, next: null } } function Ti(o, u, p) { var v = o.updateQueue if (v === null) return null if (((v = v.shared), en & 2)) { var w = v.pending return w === null ? (u.next = u) : ((u.next = w.next), (w.next = u)), (v.pending = u), si(o, p) } return ( (w = v.interleaved), w === null ? ((u.next = u), pr(v)) : ((u.next = w.next), (w.next = u)), (v.interleaved = u), si(o, p) ) } function _s(o, u, p) { if (((u = u.updateQueue), u !== null && ((u = u.shared), (p & 4194240) !== 0))) { var v = u.lanes ;(v &= o.pendingLanes), (p |= v), (u.lanes = p), ol(o, p) } } function Kr(o, u) { var p = o.updateQueue, v = o.alternate if (v !== null && ((v = v.updateQueue), p === v)) { var w = null, E = null if (((p = p.firstBaseUpdate), p !== null)) { do { var F = { eventTime: p.eventTime, lane: p.lane, tag: p.tag, payload: p.payload, callback: p.callback, next: null, } E === null ? (w = E = F) : (E = E.next = F), (p = p.next) } while (p !== null) E === null ? (w = E = u) : (E = E.next = u) } else w = E = u ;(p = { baseState: v.baseState, firstBaseUpdate: w, lastBaseUpdate: E, shared: v.shared, effects: v.effects, }), (o.updateQueue = p) return } ;(o = p.lastBaseUpdate), o === null ? (p.firstBaseUpdate = u) : (o.next = u), (p.lastBaseUpdate = u) } function Gc(o, u, p, v) { var w = o.updateQueue jr = !1 var E = w.firstBaseUpdate, F = w.lastBaseUpdate, ne = w.shared.pending if (ne !== null) { w.shared.pending = null var le = ne, Me = le.next ;(le.next = null), F === null ? (E = Me) : (F.next = Me), (F = le) var Ke = o.alternate Ke !== null && ((Ke = Ke.updateQueue), (ne = Ke.lastBaseUpdate), ne !== F && (ne === null ? (Ke.firstBaseUpdate = Me) : (ne.next = Me), (Ke.lastBaseUpdate = le))) } if (E !== null) { var Ze = w.baseState ;(F = 0), (Ke = Me = le = null), (ne = E) do { var qe = ne.lane, gt = ne.eventTime if ((v & qe) === qe) { Ke !== null && (Ke = Ke.next = { eventTime: gt, lane: 0, tag: ne.tag, payload: ne.payload, callback: ne.callback, next: null }) e: { var _t = o, St = ne switch (((qe = u), (gt = p), St.tag)) { case 1: if (((_t = St.payload), typeof _t == 'function')) { Ze = _t.call(gt, Ze, qe) break e } Ze = _t break e case 3: _t.flags = (_t.flags & -65537) | 128 case 0: if (((_t = St.payload), (qe = typeof _t == 'function' ? _t.call(gt, Ze, qe) : _t), qe == null)) break e Ze = Q({}, Ze, qe) break e case 2: jr = !0 } } ne.callback !== null && ne.lane !== 0 && ((o.flags |= 64), (qe = w.effects), qe === null ? (w.effects = [ne]) : qe.push(ne)) } else (gt = { eventTime: gt, lane: qe, tag: ne.tag, payload: ne.payload, callback: ne.callback, next: null }), Ke === null ? ((Me = Ke = gt), (le = Ze)) : (Ke = Ke.next = gt), (F |= qe) if (((ne = ne.next), ne === null)) { if (((ne = w.shared.pending), ne === null)) break ;(qe = ne), (ne = qe.next), (qe.next = null), (w.lastBaseUpdate = qe), (w.shared.pending = null) } } while (1) if ( (Ke === null && (le = Ze), (w.baseState = le), (w.firstBaseUpdate = Me), (w.lastBaseUpdate = Ke), (u = w.shared.interleaved), u !== null) ) { w = u do (F |= w.lane), (w = w.next) while (w !== u) } else E === null && (w.shared.lanes = 0) ;(mo |= F), (o.lanes = F), (o.memoizedState = Ze) } } function Di(o, u, p) { if (((o = u.effects), (u.effects = null), o !== null)) for (u = 0; u < o.length; u++) { var v = o[u], w = v.callback if (w !== null) { if (((v.callback = null), (v = p), typeof w != 'function')) throw Error(T(191, w)) w.call(v) } } } var Cl = new I.Component().refs function Xc(o, u, p, v) { ;(u = o.memoizedState), (p = p(v, u)), (p = p == null ? u : Q({}, u, p)), (o.memoizedState = p), o.lanes === 0 && (o.updateQueue.baseState = p) } var Kc = { isMounted: function (o) { return (o = o._reactInternals) ? Mn(o) === o : !1 }, enqueueSetState: function (o, u, p) { o = o._reactInternals var v = bn(), w = Ta(o), E = nr(v, w) ;(E.payload = u), p != null && (E.callback = p), (u = Ti(o, E, w)), u !== null && (Jr(u, o, w, v), _s(u, o, w)) }, enqueueReplaceState: function (o, u, p) { o = o._reactInternals var v = bn(), w = Ta(o), E = nr(v, w) ;(E.tag = 1), (E.payload = u), p != null && (E.callback = p), (u = Ti(o, E, w)), u !== null && (Jr(u, o, w, v), _s(u, o, w)) }, enqueueForceUpdate: function (o, u) { o = o._reactInternals var p = bn(), v = Ta(o), w = nr(p, v) ;(w.tag = 2), u != null && (w.callback = u), (u = Ti(o, w, v)), u !== null && (Jr(u, o, v, p), _s(u, o, v)) }, } function mp(o, u, p, v, w, E, F) { return ( (o = o.stateNode), typeof o.shouldComponentUpdate == 'function' ? o.shouldComponentUpdate(v, E, F) : u.prototype && u.prototype.isPureReactComponent ? !pl(p, v) || !pl(w, E) : !0 ) } function hp(o, u, p) { var v = !1, w = no, E = u.contextType return ( typeof E == 'object' && E !== null ? (E = Nr(E)) : ((w = fr(u) ? ya : dr.current), (v = u.contextTypes), (E = (v = v != null) ? ds(o, w) : no)), (u = new u(p, E)), (o.memoizedState = u.state !== null && u.state !== void 0 ? u.state : null), (u.updater = Kc), (o.stateNode = u), (u._reactInternals = o), v && ((o = o.stateNode), (o.__reactInternalMemoizedUnmaskedChildContext = w), (o.__reactInternalMemoizedMaskedChildContext = E)), u ) } function Id(o, u, p, v) { ;(o = u.state), typeof u.componentWillReceiveProps == 'function' && u.componentWillReceiveProps(p, v), typeof u.UNSAFE_componentWillReceiveProps == 'function' && u.UNSAFE_componentWillReceiveProps(p, v), u.state !== o && Kc.enqueueReplaceState(u, u.state, null) } function Yc(o, u, p, v) { var w = o.stateNode ;(w.props = p), (w.state = o.memoizedState), (w.refs = Cl), Pd(o) var E = u.contextType typeof E == 'object' && E !== null ? (w.context = Nr(E)) : ((E = fr(u) ? ya : dr.current), (w.context = ds(o, E))), (w.state = o.memoizedState), (E = u.getDerivedStateFromProps), typeof E == 'function' && (Xc(o, u, E, p), (w.state = o.memoizedState)), typeof u.getDerivedStateFromProps == 'function' || typeof w.getSnapshotBeforeUpdate == 'function' || (typeof w.UNSAFE_componentWillMount != 'function' && typeof w.componentWillMount != 'function') || ((u = w.state), typeof w.componentWillMount == 'function' && w.componentWillMount(), typeof w.UNSAFE_componentWillMount == 'function' && w.UNSAFE_componentWillMount(), u !== w.state && Kc.enqueueReplaceState(w, w.state, null), Gc(o, p, w, v), (w.state = o.memoizedState)), typeof w.componentDidMount == 'function' && (o.flags |= 4194308) } function El(o, u, p) { if (((o = p.ref), o !== null && typeof o != 'function' && typeof o != 'object')) { if (p._owner) { if (((p = p._owner), p)) { if (p.tag !== 1) throw Error(T(309)) var v = p.stateNode } if (!v) throw Error(T(147, o)) var w = v, E = '' + o return u !== null && u.ref !== null && typeof u.ref == 'function' && u.ref._stringRef === E ? u.ref : ((u = function (F) { var ne = w.refs ne === Cl && (ne = w.refs = {}), F === null ? delete ne[E] : (ne[E] = F) }), (u._stringRef = E), u) } if (typeof o != 'string') throw Error(T(284)) if (!p._owner) throw Error(T(290, o)) } return o } function kl(o, u) { throw ( ((o = Object.prototype.toString.call(u)), Error(T(31, o === '[object Object]' ? 'object with keys {' + Object.keys(u).join(', ') + '}' : o))) ) } function Ol(o) { var u = o._init return u(o._payload) } function vp(o) { function u(Ce, ge) { if (o) { var Ee = Ce.deletions Ee === null ? ((Ce.deletions = [ge]), (Ce.flags |= 16)) : Ee.push(ge) } } function p(Ce, ge) { if (!o) return null for (; ge !== null; ) u(Ce, ge), (ge = ge.sibling) return null } function v(Ce, ge) { for (Ce = new Map(); ge !== null; ) ge.key !== null ? Ce.set(ge.key, ge) : Ce.set(ge.index, ge), (ge = ge.sibling) return Ce } function w(Ce, ge) { return (Ce = Pa(Ce, ge)), (Ce.index = 0), (Ce.sibling = null), Ce } function E(Ce, ge, Ee) { return ( (Ce.index = Ee), o ? ((Ee = Ce.alternate), Ee !== null ? ((Ee = Ee.index), Ee < ge ? ((Ce.flags |= 2), ge) : Ee) : ((Ce.flags |= 2), ge)) : ((Ce.flags |= 1048576), ge) ) } function F(Ce) { return o && Ce.alternate === null && (Ce.flags |= 2), Ce } function ne(Ce, ge, Ee, it) { return ge === null || ge.tag !== 6 ? ((ge = gf(Ee, Ce.mode, it)), (ge.return = Ce), ge) : ((ge = w(ge, Ee)), (ge.return = Ce), ge) } function le(Ce, ge, Ee, it) { var wt = Ee.type return wt === st ? Ke(Ce, ge, Ee.props.children, it, Ee.key) : ge !== null && (ge.elementType === wt || (typeof wt == 'object' && wt !== null && wt.$$typeof === Y && Ol(wt) === ge.type)) ? ((it = w(ge, Ee.props)), (it.ref = El(Ce, ge, Ee)), (it.return = Ce), it) : ((it = pu(Ee.type, Ee.key, Ee.props, null, Ce.mode, it)), (it.ref = El(Ce, ge, Ee)), (it.return = Ce), it) } function Me(Ce, ge, Ee, it) { return ge === null || ge.tag !== 4 || ge.stateNode.containerInfo !== Ee.containerInfo || ge.stateNode.implementation !== Ee.implementation ? ((ge = Ra(Ee, Ce.mode, it)), (ge.return = Ce), ge) : ((ge = w(ge, Ee.children || [])), (ge.return = Ce), ge) } function Ke(Ce, ge, Ee, it, wt) { return ge === null || ge.tag !== 7 ? ((ge = Ia(Ee, Ce.mode, it, wt)), (ge.return = Ce), ge) : ((ge = w(ge, Ee)), (ge.return = Ce), ge) } function Ze(Ce, ge, Ee) { if ((typeof ge == 'string' && ge !== '') || typeof ge == 'number') return (ge = gf('' + ge, Ce.mode, Ee)), (ge.return = Ce), ge if (typeof ge == 'object' && ge !== null) { switch (ge.$$typeof) { case ut: return ( (Ee = pu(ge.type, ge.key, ge.props, null, Ce.mode, Ee)), (Ee.ref = El(Ce, null, ge)), (Ee.return = Ce), Ee ) case nt: return (ge = Ra(ge, Ce.mode, Ee)), (ge.return = Ce), ge case Y: var it = ge._init return Ze(Ce, it(ge._payload), Ee) } if (Or(ge) || W(ge)) return (ge = Ia(ge, Ce.mode, Ee, null)), (ge.return = Ce), ge kl(Ce, ge) } return null } function qe(Ce, ge, Ee, it) { var wt = ge !== null ? ge.key : null if ((typeof Ee == 'string' && Ee !== '') || typeof Ee == 'number') return wt !== null ? null : ne(Ce, ge, '' + Ee, it) if (typeof Ee == 'object' && Ee !== null) { switch (Ee.$$typeof) { case ut: return Ee.key === wt ? le(Ce, ge, Ee, it) : null case nt: return Ee.key === wt ? Me(Ce, ge, Ee, it) : null case Y: return (wt = Ee._init), qe(Ce, ge, wt(Ee._payload), it) } if (Or(Ee) || W(Ee)) return wt !== null ? null : Ke(Ce, ge, Ee, it, null) kl(Ce, Ee) } return null } function gt(Ce, ge, Ee, it, wt) { if ((typeof it == 'string' && it !== '') || typeof it == 'number') return (Ce = Ce.get(Ee) || null), ne(ge, Ce, '' + it, wt) if (typeof it == 'object' && it !== null) { switch (it.$$typeof) { case ut: return (Ce = Ce.get(it.key === null ? Ee : it.key) || null), le(ge, Ce, it, wt) case nt: return (Ce = Ce.get(it.key === null ? Ee : it.key) || null), Me(ge, Ce, it, wt) case Y: var At = it._init return gt(Ce, ge, Ee, At(it._payload), wt) } if (Or(it) || W(it)) return (Ce = Ce.get(Ee) || null), Ke(ge, Ce, it, wt, null) kl(ge, it) } return null } function _t(Ce, ge, Ee, it) { for (var wt = null, At = null, Rt = ge, zt = (ge = 0), $n = null; Rt !== null && zt < Ee.length; zt++) { Rt.index > zt ? (($n = Rt), (Rt = null)) : ($n = Rt.sibling) var rn = qe(Ce, Rt, Ee[zt], it) if (rn === null) { Rt === null && (Rt = $n) break } o && Rt && rn.alternate === null && u(Ce, Rt), (ge = E(rn, ge, zt)), At === null ? (wt = rn) : (At.sibling = rn), (At = rn), (Rt = $n) } if (zt === Ee.length) return p(Ce, Rt), vn && gs(Ce, zt), wt if (Rt === null) { for (; zt < Ee.length; zt++) (Rt = Ze(Ce, Ee[zt], it)), Rt !== null && ((ge = E(Rt, ge, zt)), At === null ? (wt = Rt) : (At.sibling = Rt), (At = Rt)) return vn && gs(Ce, zt), wt } for (Rt = v(Ce, Rt); zt < Ee.length; zt++) ($n = gt(Rt, Ce, zt, Ee[zt], it)), $n !== null && (o && $n.alternate !== null && Rt.delete($n.key === null ? zt : $n.key), (ge = E($n, ge, zt)), At === null ? (wt = $n) : (At.sibling = $n), (At = $n)) return ( o && Rt.forEach(function (Ma) { return u(Ce, Ma) }), vn && gs(Ce, zt), wt ) } function St(Ce, ge, Ee, it) { var wt = W(Ee) if (typeof wt != 'function') throw Error(T(150)) if (((Ee = wt.call(Ee)), Ee == null)) throw Error(T(151)) for ( var At = (wt = null), Rt = ge, zt = (ge = 0), $n = null, rn = Ee.next(); Rt !== null && !rn.done; zt++, rn = Ee.next() ) { Rt.index > zt ? (($n = Rt), (Rt = null)) : ($n = Rt.sibling) var Ma = qe(Ce, Rt, rn.value, it) if (Ma === null) { Rt === null && (Rt = $n) break } o && Rt && Ma.alternate === null && u(Ce, Rt), (ge = E(Ma, ge, zt)), At === null ? (wt = Ma) : (At.sibling = Ma), (At = Ma), (Rt = $n) } if (rn.done) return p(Ce, Rt), vn && gs(Ce, zt), wt if (Rt === null) { for (; !rn.done; zt++, rn = Ee.next()) (rn = Ze(Ce, rn.value, it)), rn !== null && ((ge = E(rn, ge, zt)), At === null ? (wt = rn) : (At.sibling = rn), (At = rn)) return vn && gs(Ce, zt), wt } for (Rt = v(Ce, Rt); !rn.done; zt++, rn = Ee.next()) (rn = gt(Rt, Ce, zt, rn.value, it)), rn !== null && (o && rn.alternate !== null && Rt.delete(rn.key === null ? zt : rn.key), (ge = E(rn, ge, zt)), At === null ? (wt = rn) : (At.sibling = rn), (At = rn)) return ( o && Rt.forEach(function (ah) { return u(Ce, ah) }), vn && gs(Ce, zt), wt ) } function Lt(Ce, ge, Ee, it) { if ( (typeof Ee == 'object' && Ee !== null && Ee.type === st && Ee.key === null && (Ee = Ee.props.children), typeof Ee == 'object' && Ee !== null) ) { switch (Ee.$$typeof) { case ut: e: { for (var wt = Ee.key, At = ge; At !== null; ) { if (At.key === wt) { if (((wt = Ee.type), wt === st)) { if (At.tag === 7) { p(Ce, At.sibling), (ge = w(At, Ee.props.children)), (ge.return = Ce), (Ce = ge) break e } } else if ( At.elementType === wt || (typeof wt == 'object' && wt !== null && wt.$$typeof === Y && Ol(wt) === At.type) ) { p(Ce, At.sibling), (ge = w(At, Ee.props)), (ge.ref = El(Ce, At, Ee)), (ge.return = Ce), (Ce = ge) break e } p(Ce, At) break } else u(Ce, At) At = At.sibling } Ee.type === st ? ((ge = Ia(Ee.props.children, Ce.mode, it, Ee.key)), (ge.return = Ce), (Ce = ge)) : ((it = pu(Ee.type, Ee.key, Ee.props, null, Ce.mode, it)), (it.ref = El(Ce, ge, Ee)), (it.return = Ce), (Ce = it)) } return F(Ce) case nt: e: { for (At = Ee.key; ge !== null; ) { if (ge.key === At) if ( ge.tag === 4 && ge.stateNode.containerInfo === Ee.containerInfo && ge.stateNode.implementation === Ee.implementation ) { p(Ce, ge.sibling), (ge = w(ge, Ee.children || [])), (ge.return = Ce), (Ce = ge) break e } else { p(Ce, ge) break } else u(Ce, ge) ge = ge.sibling } ;(ge = Ra(Ee, Ce.mode, it)), (ge.return = Ce), (Ce = ge) } return F(Ce) case Y: return (At = Ee._init), Lt(Ce, ge, At(Ee._payload), it) } if (Or(Ee)) return _t(Ce, ge, Ee, it) if (W(Ee)) return St(Ce, ge, Ee, it) kl(Ce, Ee) } return (typeof Ee == 'string' && Ee !== '') || typeof Ee == 'number' ? ((Ee = '' + Ee), ge !== null && ge.tag === 6 ? (p(Ce, ge.sibling), (ge = w(ge, Ee)), (ge.return = Ce), (Ce = ge)) : (p(Ce, ge), (ge = gf(Ee, Ce.mode, it)), (ge.return = Ce), (Ce = ge)), F(Ce)) : p(Ce, ge) } return Lt } var so = vp(!0), Rd = vp(!1), ys = {}, jn = to(ys), lo = to(ys), Tn = to(ys) function Wi(o) { if (o === ys) throw Error(T(174)) return o } function _p(o, u) { switch ((hn(Tn, u), hn(lo, o), hn(jn, ys), (o = u.nodeType), o)) { case 9: case 11: u = (u = u.documentElement) ? u.namespaceURI : Mo(null, '') break default: ;(o = o === 8 ? u.parentNode : u), (u = o.namespaceURI || null), (o = o.tagName), (u = Mo(u, o)) } yn(jn), hn(jn, u) } function Tl() { yn(jn), yn(lo), yn(Tn) } function $m(o) { Wi(Tn.current) var u = Wi(jn.current), p = Mo(u, o.type) u !== p && (hn(lo, o), hn(jn, p)) } function yp(o) { lo.current === o && (yn(jn), yn(lo)) } var xn = to(0) function Md(o) { for (var u = o; u !== null; ) { if (u.tag === 13) { var p = u.memoizedState if (p !== null && ((p = p.dehydrated), p === null || p.data === '$?' || p.data === '$!')) return u } else if (u.tag === 19 && u.memoizedProps.revealOrder !== void 0) { if (u.flags & 128) return u } else if (u.child !== null) { ;(u.child.return = u), (u = u.child) continue } if (u === o) break for (; u.sibling === null; ) { if (u.return === null || u.return === o) return null u = u.return } ;(u.sibling.return = u.return), (u = u.sibling) } return null } var bp = [] function Sp() { for (var o = 0; o < bp.length; o++) bp[o]._workInProgressVersionPrimary = null bp.length = 0 } var Ad = we.ReactCurrentDispatcher, wp = we.ReactCurrentBatchConfig, bs = 0, Cn = null, zn = null, qn = null, Nd = !1, Ss = !1, Dl = 0, jd = 0 function gr() { throw Error(T(321)) } function ws(o, u) { if (u === null) return !1 for (var p = 0; p < u.length && p < o.length; p++) if (!Rr(o[p], u[p])) return !1 return !0 } function Ln(o, u, p, v, w, E) { if ( ((bs = E), (Cn = u), (u.memoizedState = null), (u.updateQueue = null), (u.lanes = 0), (Ad.current = o === null || o.memoizedState === null ? Pp : Xm), (o = p(v, w)), Ss) ) { E = 0 do { if (((Ss = !1), (Dl = 0), 25 <= E)) throw Error(T(301)) ;(E += 1), (qn = zn = null), (u.updateQueue = null), (Ad.current = Km), (o = p(v, w)) } while (Ss) } if (((Ad.current = Nl), (u = zn !== null && zn.next !== null), (bs = 0), (qn = zn = Cn = null), (Nd = !1), u)) throw Error(T(300)) return o } function xp() { var o = Dl !== 0 return (Dl = 0), o } function li() { var o = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null } return qn === null ? (Cn.memoizedState = qn = o) : (qn = qn.next = o), qn } function ci() { if (zn === null) { var o = Cn.alternate o = o !== null ? o.memoizedState : null } else o = zn.next var u = qn === null ? Cn.memoizedState : qn.next if (u !== null) (qn = u), (zn = o) else { if (o === null) throw Error(T(310)) ;(zn = o), (o = { memoizedState: zn.memoizedState, baseState: zn.baseState, baseQueue: zn.baseQueue, queue: zn.queue, next: null, }), qn === null ? (Cn.memoizedState = qn = o) : (qn = qn.next = o) } return qn } function Pl(o, u) { return typeof u == 'function' ? u(o) : u } function zd(o) { var u = ci(), p = u.queue if (p === null) throw Error(T(311)) p.lastRenderedReducer = o var v = zn, w = v.baseQueue, E = p.pending if (E !== null) { if (w !== null) { var F = w.next ;(w.next = E.next), (E.next = F) } ;(v.baseQueue = w = E), (p.pending = null) } if (w !== null) { ;(E = w.next), (v = v.baseState) var ne = (F = null), le = null, Me = E do { var Ke = Me.lane if ((bs & Ke) === Ke) le !== null && (le = le.next = { lane: 0, action: Me.action, hasEagerState: Me.hasEagerState, eagerState: Me.eagerState, next: null, }), (v = Me.hasEagerState ? Me.eagerState : o(v, Me.action)) else { var Ze = { lane: Ke, action: Me.action, hasEagerState: Me.hasEagerState, eagerState: Me.eagerState, next: null, } le === null ? ((ne = le = Ze), (F = v)) : (le = le.next = Ze), (Cn.lanes |= Ke), (mo |= Ke) } Me = Me.next } while (Me !== null && Me !== E) le === null ? (F = v) : (le.next = ne), Rr(v, u.memoizedState) || (wr = !0), (u.memoizedState = v), (u.baseState = F), (u.baseQueue = le), (p.lastRenderedState = v) } if (((o = p.interleaved), o !== null)) { w = o do (E = w.lane), (Cn.lanes |= E), (mo |= E), (w = w.next) while (w !== o) } else w === null && (p.lanes = 0) return [u.memoizedState, p.dispatch] } function ui(o) { var u = ci(), p = u.queue if (p === null) throw Error(T(311)) p.lastRenderedReducer = o var v = p.dispatch, w = p.pending, E = u.memoizedState if (w !== null) { p.pending = null var F = (w = w.next) do (E = o(E, F.action)), (F = F.next) while (F !== w) Rr(E, u.memoizedState) || (wr = !0), (u.memoizedState = E), u.baseQueue === null && (u.baseState = E), (p.lastRenderedState = E) } return [E, v] } function xs() {} function Cp(o, u) { var p = Cn, v = ci(), w = u(), E = !Rr(v.memoizedState, w) if ( (E && ((v.memoizedState = w), (wr = !0)), (v = v.queue), Cs(Hm.bind(null, p, v, o), [o]), v.getSnapshot !== u || E || (qn !== null && qn.memoizedState.tag & 1)) ) { if (((p.flags |= 2048), Rl(9, kp.bind(null, p, v, w, u), void 0, null), Fn === null)) throw Error(T(349)) bs & 30 || Ep(p, u, w) } return w } function Ep(o, u, p) { ;(o.flags |= 16384), (o = { getSnapshot: u, value: p }), (u = Cn.updateQueue), u === null ? ((u = { lastEffect: null, stores: null }), (Cn.updateQueue = u), (u.stores = [o])) : ((p = u.stores), p === null ? (u.stores = [o]) : p.push(o)) } function kp(o, u, p, v) { ;(u.value = p), (u.getSnapshot = v), Ld(u) && Il(o) } function Hm(o, u, p) { return p(function () { Ld(u) && Il(o) }) } function Ld(o) { var u = o.getSnapshot o = o.value try { var p = u() return !Rr(o, p) } catch (v) { return !0 } } function Il(o) { var u = si(o, 1) u !== null && Jr(u, o, 1, -1) } function qc(o) { var u = li() return ( typeof o == 'function' && (o = o()), (u.memoizedState = u.baseState = o), (o = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Pl, lastRenderedState: o, }), (u.queue = o), (o = o.dispatch = Gm.bind(null, Cn, o)), [u.memoizedState, o] ) } function Rl(o, u, p, v) { return ( (o = { tag: o, create: u, destroy: p, deps: v, next: null }), (u = Cn.updateQueue), u === null ? ((u = { lastEffect: null, stores: null }), (Cn.updateQueue = u), (u.lastEffect = o.next = o)) : ((p = u.lastEffect), p === null ? (u.lastEffect = o.next = o) : ((v = p.next), (p.next = o), (o.next = v), (u.lastEffect = o))), o ) } function Ml() { return ci().memoizedState } function Qc(o, u, p, v) { var w = li() ;(Cn.flags |= o), (w.memoizedState = Rl(1 | u, p, void 0, v === void 0 ? null : v)) } function Jc(o, u, p, v) { var w = ci() v = v === void 0 ? null : v var E = void 0 if (zn !== null) { var F = zn.memoizedState if (((E = F.destroy), v !== null && ws(v, F.deps))) { w.memoizedState = Rl(u, p, E, v) return } } ;(Cn.flags |= o), (w.memoizedState = Rl(1 | u, p, E, v)) } function Op(o, u) { return Qc(8390656, 8, o, u) } function Cs(o, u) { return Jc(2048, 8, o, u) } function Fd(o, u) { return Jc(4, 2, o, u) } function Es(o, u) { return Jc(4, 4, o, u) } function Vi(o, u) { if (typeof u == 'function') return ( (o = o()), u(o), function () { u(null) } ) if (u != null) return ( (o = o()), (u.current = o), function () { u.current = null } ) } function co(o, u, p) { return (p = p != null ? p.concat([o]) : null), Jc(4, 4, Vi.bind(null, u, o), p) } function $d() {} function Tp(o, u) { var p = ci() u = u === void 0 ? null : u var v = p.memoizedState return v !== null && u !== null && ws(u, v[1]) ? v[0] : ((p.memoizedState = [o, u]), o) } function Bm(o, u) { var p = ci() u = u === void 0 ? null : u var v = p.memoizedState return v !== null && u !== null && ws(u, v[1]) ? v[0] : ((o = o()), (p.memoizedState = [o, u]), o) } function Dp(o, u, p) { return bs & 21 ? (Rr(p, u) || ((p = Zu()), (Cn.lanes |= p), (mo |= p), (o.baseState = !0)), u) : (o.baseState && ((o.baseState = !1), (wr = !0)), (o.memoizedState = p)) } function Um(o, u) { var p = Zt ;(Zt = p !== 0 && 4 > p ? p : 4), o(!0) var v = wp.transition wp.transition = {} try { o(!1), u() } finally { ;(Zt = p), (wp.transition = v) } } function Wm() { return ci().memoizedState } function Vm(o, u, p) { var v = Ta(o) if (((p = { lane: v, action: p, hasEagerState: !1, eagerState: null, next: null }), Al(o))) Zc(u, p) else if (((p = pp(o, u, p, v)), p !== null)) { var w = bn() Jr(p, o, v, w), Hd(p, u, v) } } function Gm(o, u, p) { var v = Ta(o), w = { lane: v, action: p, hasEagerState: !1, eagerState: null, next: null } if (Al(o)) Zc(u, w) else { var E = o.alternate if (o.lanes === 0 && (E === null || E.lanes === 0) && ((E = u.lastRenderedReducer), E !== null)) try { var F = u.lastRenderedState, ne = E(F, p) if (((w.hasEagerState = !0), (w.eagerState = ne), Rr(ne, F))) { var le = u.interleaved le === null ? ((w.next = w), pr(u)) : ((w.next = le.next), (le.next = w)), (u.interleaved = w) return } } catch (Me) { } finally { } ;(p = pp(o, u, w, v)), p !== null && ((w = bn()), Jr(p, o, v, w), Hd(p, u, v)) } } function Al(o) { var u = o.alternate return o === Cn || (u !== null && u === Cn) } function Zc(o, u) { Ss = Nd = !0 var p = o.pending p === null ? (u.next = u) : ((u.next = p.next), (p.next = u)), (o.pending = u) } function Hd(o, u, p) { if (p & 4194240) { var v = u.lanes ;(v &= o.pendingLanes), (p |= v), (u.lanes = p), ol(o, p) } } var Nl = { readContext: Nr, useCallback: gr, useContext: gr, useEffect: gr, useImperativeHandle: gr, useInsertionEffect: gr, useLayoutEffect: gr, useMemo: gr, useReducer: gr, useRef: gr, useState: gr, useDebugValue: gr, useDeferredValue: gr, useTransition: gr, useMutableSource: gr, useSyncExternalStore: gr, useId: gr, unstable_isNewReconciler: !1, }, Pp = { readContext: Nr, useCallback: function (o, u) { return (li().memoizedState = [o, u === void 0 ? null : u]), o }, useContext: Nr, useEffect: Op, useImperativeHandle: function (o, u, p) { return (p = p != null ? p.concat([o]) : null), Qc(4194308, 4, Vi.bind(null, u, o), p) }, useLayoutEffect: function (o, u) { return Qc(4194308, 4, o, u) }, useInsertionEffect: function (o, u) { return Qc(4, 2, o, u) }, useMemo: function (o, u) { var p = li() return (u = u === void 0 ? null : u), (o = o()), (p.memoizedState = [o, u]), o }, useReducer: function (o, u, p) { var v = li() return ( (u = p !== void 0 ? p(u) : u), (v.memoizedState = v.baseState = u), (o = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: o, lastRenderedState: u, }), (v.queue = o), (o = o.dispatch = Vm.bind(null, Cn, o)), [v.memoizedState, o] ) }, useRef: function (o) { var u = li() return (o = { current: o }), (u.memoizedState = o) }, useState: qc, useDebugValue: $d, useDeferredValue: function (o) { return (li().memoizedState = o) }, useTransition: function () { var o = qc(!1), u = o[0] return (o = Um.bind(null, o[1])), (li().memoizedState = o), [u, o] }, useMutableSource: function () {}, useSyncExternalStore: function (o, u, p) { var v = Cn, w = li() if (vn) { if (p === void 0) throw Error(T(407)) p = p() } else { if (((p = u()), Fn === null)) throw Error(T(349)) bs & 30 || Ep(v, u, p) } w.memoizedState = p var E = { value: p, getSnapshot: u } return ( (w.queue = E), Op(Hm.bind(null, v, E, o), [o]), (v.flags |= 2048), Rl(9, kp.bind(null, v, E, p, u), void 0, null), p ) }, useId: function () { var o = li(), u = Fn.identifierPrefix if (vn) { var p = ba, v = Vr ;(p = (v & ~(1 << (32 - Hr(v) - 1))).toString(32) + p), (u = ':' + u + 'R' + p), (p = Dl++), 0 < p && (u += 'H' + p.toString(32)), (u += ':') } else (p = jd++), (u = ':' + u + 'r' + p.toString(32) + ':') return (o.memoizedState = u) }, unstable_isNewReconciler: !1, }, Xm = { readContext: Nr, useCallback: Tp, useContext: Nr, useEffect: Cs, useImperativeHandle: co, useInsertionEffect: Fd, useLayoutEffect: Es, useMemo: Bm, useReducer: zd, useRef: Ml, useState: function () { return zd(Pl) }, useDebugValue: $d, useDeferredValue: function (o) { var u = ci() return Dp(u, zn.memoizedState, o) }, useTransition: function () { var o = zd(Pl)[0], u = ci().memoizedState return [o, u] }, useMutableSource: xs, useSyncExternalStore: Cp, useId: Wm, unstable_isNewReconciler: !1, }, Km = { readContext: Nr, useCallback: Tp, useContext: Nr, useEffect: Cs, useImperativeHandle: co, useInsertionEffect: Fd, useLayoutEffect: Es, useMemo: Bm, useReducer: ui, useRef: Ml, useState: function () { return ui(Pl) }, useDebugValue: $d, useDeferredValue: function (o) { var u = ci() return zn === null ? (u.memoizedState = o) : Dp(u, zn.memoizedState, o) }, useTransition: function () { var o = ui(Pl)[0], u = ci().memoizedState return [o, u] }, useMutableSource: xs, useSyncExternalStore: Cp, useId: Wm, unstable_isNewReconciler: !1, } function ks(o, u) { try { var p = '', v = u do (p += Pe(v)), (v = v.return) while (v) var w = p } catch (E) { w = ` Error generating stack: ` + E.message + ` ` + E.stack } return { value: o, source: u, stack: w, digest: null } } function Bd(o, u, p) { return { value: o, source: null, stack: p != null ? p : null, digest: u != null ? u : null } } function Ud(o, u) { try { console.error(u.value) } catch (p) { setTimeout(function () { throw p }) } } var zr = typeof WeakMap == 'function' ? WeakMap : Map function Wd(o, u, p) { ;(p = nr(-1, p)), (p.tag = 3), (p.payload = { element: null }) var v = u.value return ( (p.callback = function () { ou || ((ou = !0), (af = v)), Ud(o, u) }), p ) } function uo(o, u, p) { ;(p = nr(-1, p)), (p.tag = 3) var v = o.type.getDerivedStateFromError if (typeof v == 'function') { var w = u.value ;(p.payload = function () { return v(w) }), (p.callback = function () { Ud(o, u) }) } var E = o.stateNode return ( E !== null && typeof E.componentDidCatch == 'function' && (p.callback = function () { Ud(o, u), typeof v != 'function' && (Ii === null ? (Ii = new Set([this])) : Ii.add(this)) var F = u.stack this.componentDidCatch(u.value, { componentStack: F !== null ? F : '' }) }), p ) } function Os(o, u, p) { var v = o.pingCache if (v === null) { v = o.pingCache = new zr() var w = new Set() v.set(u, w) } else (w = v.get(u)), w === void 0 && ((w = new Set()), v.set(u, w)) w.has(p) || (w.add(p), (o = ff.bind(null, o, u, p)), u.then(o, o)) } function Ip(o) { do { var u if (((u = o.tag === 13) && ((u = o.memoizedState), (u = u !== null ? u.dehydrated !== null : !0)), u)) return o o = o.return } while (o !== null) return null } function Ts(o, u, p, v, w) { return o.mode & 1 ? ((o.flags |= 65536), (o.lanes = w), o) : (o === u ? (o.flags |= 65536) : ((o.flags |= 128), (p.flags |= 131072), (p.flags &= -52805), p.tag === 1 && (p.alternate === null ? (p.tag = 17) : ((u = nr(-1, 1)), (u.tag = 2), Ti(p, u, 1))), (p.lanes |= 1)), o) } var Ym = we.ReactCurrentOwner, wr = !1 function mr(o, u, p, v) { u.child = o === null ? Rd(u, null, p, v) : so(u, o.child, p, v) } function jl(o, u, p, v, w) { p = p.render var E = u.ref return ( xl(u, w), (v = Ln(o, u, p, v, E, w)), (p = xp()), o !== null && !wr ? ((u.updateQueue = o.updateQueue), (u.flags &= -2053), (o.lanes &= ~w), Pi(o, u, w)) : (vn && p && kd(u), (u.flags |= 1), mr(o, u, v, w), u.child) ) } function Rp(o, u, p, v, w) { if (o === null) { var E = p.type return typeof E == 'function' && !pf(E) && E.defaultProps === void 0 && p.compare === null && p.defaultProps === void 0 ? ((u.tag = 15), (u.type = E), Vd(o, u, E, v, w)) : ((o = pu(p.type, null, v, u, u.mode, w)), (o.ref = u.ref), (o.return = u), (u.child = o)) } if (((E = o.child), !(o.lanes & w))) { var F = E.memoizedProps if (((p = p.compare), (p = p !== null ? p : pl), p(F, v) && o.ref === u.ref)) return Pi(o, u, w) } return (u.flags |= 1), (o = Pa(E, v)), (o.ref = u.ref), (o.return = u), (u.child = o) } function Vd(o, u, p, v, w) { if (o !== null) { var E = o.memoizedProps if (pl(E, v) && o.ref === u.ref) if (((wr = !1), (u.pendingProps = v = E), (o.lanes & w) !== 0)) o.flags & 131072 && (wr = !0) else return (u.lanes = o.lanes), Pi(o, u, w) } return Gd(o, u, p, v, w) } function zl(o, u, p) { var v = u.pendingProps, w = v.children, E = o !== null ? o.memoizedState : null if (v.mode === 'hidden') if (!(u.mode & 1)) (u.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), hn(As, Lr), (Lr |= p) else { if (!(p & 1073741824)) return ( (o = E !== null ? E.baseLanes | p : p), (u.lanes = u.childLanes = 1073741824), (u.memoizedState = { baseLanes: o, cachePool: null, transitions: null }), (u.updateQueue = null), hn(As, Lr), (Lr |= o), null ) ;(u.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }), (v = E !== null ? E.baseLanes : p), hn(As, Lr), (Lr |= v) } else E !== null ? ((v = E.baseLanes | p), (u.memoizedState = null)) : (v = p), hn(As, Lr), (Lr |= v) return mr(o, u, w, p), u.child } function Mp(o, u) { var p = u.ref ;((o === null && p !== null) || (o !== null && o.ref !== p)) && ((u.flags |= 512), (u.flags |= 2097152)) } function Gd(o, u, p, v, w) { var E = fr(p) ? ya : dr.current return ( (E = ds(u, E)), xl(u, w), (p = Ln(o, u, p, v, E, w)), (v = xp()), o !== null && !wr ? ((u.updateQueue = o.updateQueue), (u.flags &= -2053), (o.lanes &= ~w), Pi(o, u, w)) : (vn && v && kd(u), (u.flags |= 1), mr(o, u, p, w), u.child) ) } function qm(o, u, p, v, w) { if (fr(p)) { var E = !0 Uc(u) } else E = !1 if ((xl(u, w), u.stateNode === null)) xa(o, u), hp(u, p, v), Yc(u, p, v, w), (v = !0) else if (o === null) { var F = u.stateNode, ne = u.memoizedProps F.props = ne var le = F.context, Me = p.contextType typeof Me == 'object' && Me !== null ? (Me = Nr(Me)) : ((Me = fr(p) ? ya : dr.current), (Me = ds(u, Me))) var Ke = p.getDerivedStateFromProps, Ze = typeof Ke == 'function' || typeof F.getSnapshotBeforeUpdate == 'function' Ze || (typeof F.UNSAFE_componentWillReceiveProps != 'function' && typeof F.componentWillReceiveProps != 'function') || ((ne !== v || le !== Me) && Id(u, F, v, Me)), (jr = !1) var qe = u.memoizedState ;(F.state = qe), Gc(u, v, F, w), (le = u.memoizedState), ne !== v || qe !== le || Mr.current || jr ? (typeof Ke == 'function' && (Xc(u, p, Ke, v), (le = u.memoizedState)), (ne = jr || mp(u, p, ne, v, qe, le, Me)) ? (Ze || (typeof F.UNSAFE_componentWillMount != 'function' && typeof F.componentWillMount != 'function') || (typeof F.componentWillMount == 'function' && F.componentWillMount(), typeof F.UNSAFE_componentWillMount == 'function' && F.UNSAFE_componentWillMount()), typeof F.componentDidMount == 'function' && (u.flags |= 4194308)) : (typeof F.componentDidMount == 'function' && (u.flags |= 4194308), (u.memoizedProps = v), (u.memoizedState = le)), (F.props = v), (F.state = le), (F.context = Me), (v = ne)) : (typeof F.componentDidMount == 'function' && (u.flags |= 4194308), (v = !1)) } else { ;(F = u.stateNode), gp(o, u), (ne = u.memoizedProps), (Me = u.type === u.elementType ? ne : oi(u.type, ne)), (F.props = Me), (Ze = u.pendingProps), (qe = F.context), (le = p.contextType), typeof le == 'object' && le !== null ? (le = Nr(le)) : ((le = fr(p) ? ya : dr.current), (le = ds(u, le))) var gt = p.getDerivedStateFromProps ;(Ke = typeof gt == 'function' || typeof F.getSnapshotBeforeUpdate == 'function') || (typeof F.UNSAFE_componentWillReceiveProps != 'function' && typeof F.componentWillReceiveProps != 'function') || ((ne !== Ze || qe !== le) && Id(u, F, v, le)), (jr = !1), (qe = u.memoizedState), (F.state = qe), Gc(u, v, F, w) var _t = u.memoizedState ne !== Ze || qe !== _t || Mr.current || jr ? (typeof gt == 'function' && (Xc(u, p, gt, v), (_t = u.memoizedState)), (Me = jr || mp(u, p, Me, v, qe, _t, le) || !1) ? (Ke || (typeof F.UNSAFE_componentWillUpdate != 'function' && typeof F.componentWillUpdate != 'function') || (typeof F.componentWillUpdate == 'function' && F.componentWillUpdate(v, _t, le), typeof F.UNSAFE_componentWillUpdate == 'function' && F.UNSAFE_componentWillUpdate(v, _t, le)), typeof F.componentDidUpdate == 'function' && (u.flags |= 4), typeof F.getSnapshotBeforeUpdate == 'function' && (u.flags |= 1024)) : (typeof F.componentDidUpdate != 'function' || (ne === o.memoizedProps && qe === o.memoizedState) || (u.flags |= 4), typeof F.getSnapshotBeforeUpdate != 'function' || (ne === o.memoizedProps && qe === o.memoizedState) || (u.flags |= 1024), (u.memoizedProps = v), (u.memoizedState = _t)), (F.props = v), (F.state = _t), (F.context = le), (v = Me)) : (typeof F.componentDidUpdate != 'function' || (ne === o.memoizedProps && qe === o.memoizedState) || (u.flags |= 4), typeof F.getSnapshotBeforeUpdate != 'function' || (ne === o.memoizedProps && qe === o.memoizedState) || (u.flags |= 1024), (v = !1)) } return Ds(o, u, p, v, E, w) } function Ds(o, u, p, v, w, E) { Mp(o, u) var F = (u.flags & 128) !== 0 if (!v && !F) return w && lp(u, p, !1), Pi(o, u, E) ;(v = u.stateNode), (Ym.current = u) var ne = F && typeof p.getDerivedStateFromError != 'function' ? null : v.render() return ( (u.flags |= 1), o !== null && F ? ((u.child = so(u, o.child, null, E)), (u.child = so(u, null, ne, E))) : mr(o, u, ne, E), (u.memoizedState = v.state), w && lp(u, p, !0), u.child ) } function Ap(o) { var u = o.stateNode u.pendingContext ? op(o, u.pendingContext, u.pendingContext !== u.context) : u.context && op(o, u.context, !1), _p(o, u.containerInfo) } function eu(o, u, p, v, w) { return ao(), ms(w), (u.flags |= 256), mr(o, u, p, v), u.child } var Xd = { dehydrated: null, treeContext: null, retryLane: 0 } function Np(o) { return { baseLanes: o, cachePool: null, transitions: null } } function Kd(o, u, p) { var v = u.pendingProps, w = xn.current, E = !1, F = (u.flags & 128) !== 0, ne if ( ((ne = F) || (ne = o !== null && o.memoizedState === null ? !1 : (w & 2) !== 0), ne ? ((E = !0), (u.flags &= -129)) : (o === null || o.memoizedState !== null) && (w |= 1), hn(xn, w & 1), o === null) ) return ( An(u), (o = u.memoizedState), o !== null && ((o = o.dehydrated), o !== null) ? (u.mode & 1 ? (o.data === '$!' ? (u.lanes = 8) : (u.lanes = 1073741824)) : (u.lanes = 1), null) : ((F = v.children), (o = v.fallback), E ? ((v = u.mode), (E = u.child), (F = { mode: 'hidden', children: F }), !(v & 1) && E !== null ? ((E.childLanes = 0), (E.pendingProps = F)) : (E = Ls(F, v, 0, null)), (o = Ia(o, v, p, null)), (E.return = u), (o.return = u), (E.sibling = o), (u.child = E), (u.child.memoizedState = Np(p)), (u.memoizedState = Xd), o) : Ll(u, F)) ) if (((w = o.memoizedState), w !== null && ((ne = w.dehydrated), ne !== null))) return Yd(o, u, F, v, ne, w, p) if (E) { ;(E = v.fallback), (F = u.mode), (w = o.child), (ne = w.sibling) var le = { mode: 'hidden', children: v.children } return ( !(F & 1) && u.child !== w ? ((v = u.child), (v.childLanes = 0), (v.pendingProps = le), (u.deletions = null)) : ((v = Pa(w, le)), (v.subtreeFlags = w.subtreeFlags & 14680064)), ne !== null ? (E = Pa(ne, E)) : ((E = Ia(E, F, p, null)), (E.flags |= 2)), (E.return = u), (v.return = u), (v.sibling = E), (u.child = v), (v = E), (E = u.child), (F = o.child.memoizedState), (F = F === null ? Np(p) : { baseLanes: F.baseLanes | p, cachePool: null, transitions: F.transitions }), (E.memoizedState = F), (E.childLanes = o.childLanes & ~p), (u.memoizedState = Xd), v ) } return ( (E = o.child), (o = E.sibling), (v = Pa(E, { mode: 'visible', children: v.children })), !(u.mode & 1) && (v.lanes = p), (v.return = u), (v.sibling = null), o !== null && ((p = u.deletions), p === null ? ((u.deletions = [o]), (u.flags |= 16)) : p.push(o)), (u.child = v), (u.memoizedState = null), v ) } function Ll(o, u) { return (u = Ls({ mode: 'visible', children: u }, o.mode, 0, null)), (u.return = o), (o.child = u) } function tu(o, u, p, v) { return ( v !== null && ms(v), so(u, o.child, null, p), (o = Ll(u, u.pendingProps.children)), (o.flags |= 2), (u.memoizedState = null), o ) } function Yd(o, u, p, v, w, E, F) { if (p) return u.flags & 256 ? ((u.flags &= -257), (v = Bd(Error(T(422)))), tu(o, u, F, v)) : u.memoizedState !== null ? ((u.child = o.child), (u.flags |= 128), null) : ((E = v.fallback), (w = u.mode), (v = Ls({ mode: 'visible', children: v.children }, w, 0, null)), (E = Ia(E, w, F, null)), (E.flags |= 2), (v.return = u), (E.return = u), (v.sibling = E), (u.child = v), u.mode & 1 && so(u, o.child, null, F), (u.child.memoizedState = Np(F)), (u.memoizedState = Xd), E) if (!(u.mode & 1)) return tu(o, u, F, null) if (w.data === '$!') { if (((v = w.nextSibling && w.nextSibling.dataset), v)) var ne = v.dgst return (v = ne), (E = Error(T(419))), (v = Bd(E, v, void 0)), tu(o, u, F, v) } if (((ne = (F & o.childLanes) !== 0), wr || ne)) { if (((v = Fn), v !== null)) { switch (F & -F) { case 4: w = 2 break case 16: w = 8 break case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: w = 32 break case 536870912: w = 268435456 break default: w = 0 } ;(w = w & (v.suspendedLanes | F) ? 0 : w), w !== 0 && w !== E.retryLane && ((E.retryLane = w), si(o, w), Jr(v, o, w, -1)) } return uf(), (v = Bd(Error(T(421)))), tu(o, u, F, v) } return w.data === '$?' ? ((u.flags |= 128), (u.child = o.child), (u = Zr.bind(null, o)), (w._reactRetry = u), null) : ((o = E.treeContext), (Ar = va(w.nextSibling)), (Gr = u), (vn = !0), (Xr = null), o !== null && ((Wr[Yn++] = Vr), (Wr[Yn++] = ba), (Wr[Yn++] = io), (Vr = o.id), (ba = o.overflow), (io = u)), (u = Ll(u, v.children)), (u.flags |= 4096), u) } function Ps(o, u, p) { o.lanes |= u var v = o.alternate v !== null && (v.lanes |= u), Dd(o.return, u, p) } function wa(o, u, p, v, w) { var E = o.memoizedState E === null ? (o.memoizedState = { isBackwards: u, rendering: null, renderingStartTime: 0, last: v, tail: p, tailMode: w, }) : ((E.isBackwards = u), (E.rendering = null), (E.renderingStartTime = 0), (E.last = v), (E.tail = p), (E.tailMode = w)) } function Fl(o, u, p) { var v = u.pendingProps, w = v.revealOrder, E = v.tail if ((mr(o, u, v.children, p), (v = xn.current), v & 2)) (v = (v & 1) | 2), (u.flags |= 128) else { if (o !== null && o.flags & 128) e: for (o = u.child; o !== null; ) { if (o.tag === 13) o.memoizedState !== null && Ps(o, p, u) else if (o.tag === 19) Ps(o, p, u) else if (o.child !== null) { ;(o.child.return = o), (o = o.child) continue } if (o === u) break e for (; o.sibling === null; ) { if (o.return === null || o.return === u) break e o = o.return } ;(o.sibling.return = o.return), (o = o.sibling) } v &= 1 } if ((hn(xn, v), !(u.mode & 1))) u.memoizedState = null else switch (w) { case 'forwards': for (p = u.child, w = null; p !== null; ) (o = p.alternate), o !== null && Md(o) === null && (w = p), (p = p.sibling) ;(p = w), p === null ? ((w = u.child), (u.child = null)) : ((w = p.sibling), (p.sibling = null)), wa(u, !1, w, p, E) break case 'backwards': for (p = null, w = u.child, u.child = null; w !== null; ) { if (((o = w.alternate), o !== null && Md(o) === null)) { u.child = w break } ;(o = w.sibling), (w.sibling = p), (p = w), (w = o) } wa(u, !0, p, null, E) break case 'together': wa(u, !1, null, null, void 0) break default: u.memoizedState = null } return u.child } function xa(o, u) { !(u.mode & 1) && o !== null && ((o.alternate = null), (u.alternate = null), (u.flags |= 2)) } function Pi(o, u, p) { if ((o !== null && (u.dependencies = o.dependencies), (mo |= u.lanes), !(p & u.childLanes))) return null if (o !== null && u.child !== o.child) throw Error(T(153)) if (u.child !== null) { for (o = u.child, p = Pa(o, o.pendingProps), u.child = p, p.return = u; o.sibling !== null; ) (o = o.sibling), (p = p.sibling = Pa(o, o.pendingProps)), (p.return = u) p.sibling = null } return u.child } function Qm(o, u, p) { switch (u.tag) { case 3: Ap(u), ao() break case 5: $m(u) break case 1: fr(u.type) && Uc(u) break case 4: _p(u, u.stateNode.containerInfo) break case 10: var v = u.type._context, w = u.memoizedProps.value hn(bl, v._currentValue), (v._currentValue = w) break case 13: if (((v = u.memoizedState), v !== null)) return v.dehydrated !== null ? (hn(xn, xn.current & 1), (u.flags |= 128), null) : p & u.child.childLanes ? Kd(o, u, p) : (hn(xn, xn.current & 1), (o = Pi(o, u, p)), o !== null ? o.sibling : null) hn(xn, xn.current & 1) break case 19: if (((v = (p & u.childLanes) !== 0), o.flags & 128)) { if (v) return Fl(o, u, p) u.flags |= 128 } if ( ((w = u.memoizedState), w !== null && ((w.rendering = null), (w.tail = null), (w.lastEffect = null)), hn(xn, xn.current), v) ) break return null case 22: case 23: return (u.lanes = 0), zl(o, u, p) } return Pi(o, u, p) } var $l, Is, fo, Ca ;($l = function (o, u) { for (var p = u.child; p !== null; ) { if (p.tag === 5 || p.tag === 6) o.appendChild(p.stateNode) else if (p.tag !== 4 && p.child !== null) { ;(p.child.return = p), (p = p.child) continue } if (p === u) break for (; p.sibling === null; ) { if (p.return === null || p.return === u) return p = p.return } ;(p.sibling.return = p.return), (p = p.sibling) } }), (Is = function () {}), (fo = function (o, u, p, v) { var w = o.memoizedProps if (w !== v) { ;(o = u.stateNode), Wi(jn.current) var E = null switch (p) { case 'input': ;(w = Gn(o, w)), (v = Gn(o, v)), (E = []) break case 'select': ;(w = Q({}, w, { value: void 0 })), (v = Q({}, v, { value: void 0 })), (E = []) break case 'textarea': ;(w = $r(o, w)), (v = $r(o, v)), (E = []) break default: typeof w.onClick != 'function' && typeof v.onClick == 'function' && (o.onclick = vd) } Lo(p, v) var F p = null for (Me in w) if (!v.hasOwnProperty(Me) && w.hasOwnProperty(Me) && w[Me] != null) if (Me === 'style') { var ne = w[Me] for (F in ne) ne.hasOwnProperty(F) && (p || (p = {}), (p[F] = '')) } else Me !== 'dangerouslySetInnerHTML' && Me !== 'children' && Me !== 'suppressContentEditableWarning' && Me !== 'suppressHydrationWarning' && Me !== 'autoFocus' && (B.hasOwnProperty(Me) ? E || (E = []) : (E = E || []).push(Me, null)) for (Me in v) { var le = v[Me] if ( ((ne = w != null ? w[Me] : void 0), v.hasOwnProperty(Me) && le !== ne && (le != null || ne != null)) ) if (Me === 'style') if (ne) { for (F in ne) !ne.hasOwnProperty(F) || (le && le.hasOwnProperty(F)) || (p || (p = {}), (p[F] = '')) for (F in le) le.hasOwnProperty(F) && ne[F] !== le[F] && (p || (p = {}), (p[F] = le[F])) } else p || (E || (E = []), E.push(Me, p)), (p = le) else Me === 'dangerouslySetInnerHTML' ? ((le = le ? le.__html : void 0), (ne = ne ? ne.__html : void 0), le != null && ne !== le && (E = E || []).push(Me, le)) : Me === 'children' ? (typeof le != 'string' && typeof le != 'number') || (E = E || []).push(Me, '' + le) : Me !== 'suppressContentEditableWarning' && Me !== 'suppressHydrationWarning' && (B.hasOwnProperty(Me) ? (le != null && Me === 'onScroll' && gn('scroll', o), E || ne === le || (E = [])) : (E = E || []).push(Me, le)) } p && (E = E || []).push('style', p) var Me = E ;(u.updateQueue = Me) && (u.flags |= 4) } }), (Ca = function (o, u, p, v) { p !== v && (u.flags |= 4) }) function un(o, u) { if (!vn) switch (o.tailMode) { case 'hidden': u = o.tail for (var p = null; u !== null; ) u.alternate !== null && (p = u), (u = u.sibling) p === null ? (o.tail = null) : (p.sibling = null) break case 'collapsed': p = o.tail for (var v = null; p !== null; ) p.alternate !== null && (v = p), (p = p.sibling) v === null ? (u || o.tail === null ? (o.tail = null) : (o.tail.sibling = null)) : (v.sibling = null) } } function rr(o) { var u = o.alternate !== null && o.alternate.child === o.child, p = 0, v = 0 if (u) for (var w = o.child; w !== null; ) (p |= w.lanes | w.childLanes), (v |= w.subtreeFlags & 14680064), (v |= w.flags & 14680064), (w.return = o), (w = w.sibling) else for (w = o.child; w !== null; ) (p |= w.lanes | w.childLanes), (v |= w.subtreeFlags), (v |= w.flags), (w.return = o), (w = w.sibling) return (o.subtreeFlags |= v), (o.childLanes = p), u } function Rs(o, u, p) { var v = u.pendingProps switch ((cp(u), u.tag)) { case 2: case 16: case 15: case 0: case 11: case 7: case 8: case 12: case 9: case 14: return rr(u), null case 1: return fr(u.type) && Bc(), rr(u), null case 3: return ( (v = u.stateNode), Tl(), yn(Mr), yn(dr), Sp(), v.pendingContext && ((v.context = v.pendingContext), (v.pendingContext = null)), (o === null || o.child === null) && (Vc(u) ? (u.flags |= 4) : o === null || (o.memoizedState.isDehydrated && !(u.flags & 256)) || ((u.flags |= 1024), Xr !== null && (sf(Xr), (Xr = null)))), Is(o, u), rr(u), null ) case 5: yp(u) var w = Wi(Tn.current) if (((p = u.type), o !== null && u.stateNode != null)) fo(o, u, p, v, w), o.ref !== u.ref && ((u.flags |= 512), (u.flags |= 2097152)) else { if (!v) { if (u.stateNode === null) throw Error(T(166)) return rr(u), null } if (((o = Wi(jn.current)), Vc(u))) { ;(v = u.stateNode), (p = u.type) var E = u.memoizedProps switch (((v[ki] = u), (v[hl] = E), (o = (u.mode & 1) !== 0), p)) { case 'dialog': gn('cancel', v), gn('close', v) break case 'iframe': case 'object': case 'embed': gn('load', v) break case 'video': case 'audio': for (w = 0; w < Fc.length; w++) gn(Fc[w], v) break case 'source': gn('error', v) break case 'img': case 'image': case 'link': gn('error', v), gn('load', v) break case 'details': gn('toggle', v) break case 'input': Xn(v, E), gn('invalid', v) break case 'select': ;(v._wrapperState = { wasMultiple: !!E.multiple }), gn('invalid', v) break case 'textarea': ra(v, E), gn('invalid', v) } Lo(p, E), (w = null) for (var F in E) if (E.hasOwnProperty(F)) { var ne = E[F] F === 'children' ? typeof ne == 'string' ? v.textContent !== ne && (E.suppressHydrationWarning !== !0 && $c(v.textContent, ne, o), (w = ['children', ne])) : typeof ne == 'number' && v.textContent !== '' + ne && (E.suppressHydrationWarning !== !0 && $c(v.textContent, ne, o), (w = ['children', '' + ne])) : B.hasOwnProperty(F) && ne != null && F === 'onScroll' && gn('scroll', v) } switch (p) { case 'input': nn(v), zi(v, E, !0) break case 'textarea': nn(v), Fa(v) break case 'select': case 'option': break default: typeof E.onClick == 'function' && (v.onclick = vd) } ;(v = w), (u.updateQueue = v), v !== null && (u.flags |= 4) } else { ;(F = w.nodeType === 9 ? w : w.ownerDocument), o === 'http://www.w3.org/1999/xhtml' && (o = on(p)), o === 'http://www.w3.org/1999/xhtml' ? p === 'script' ? ((o = F.createElement('div')), (o.innerHTML = ''), (o = o.removeChild(o.firstChild))) : typeof v.is == 'string' ? (o = F.createElement(p, { is: v.is })) : ((o = F.createElement(p)), p === 'select' && ((F = o), v.multiple ? (F.multiple = !0) : v.size && (F.size = v.size))) : (o = F.createElementNS(o, p)), (o[ki] = u), (o[hl] = v), $l(o, u, !1, !1), (u.stateNode = o) e: { switch (((F = fc(p, v)), p)) { case 'dialog': gn('cancel', o), gn('close', o), (w = v) break case 'iframe': case 'object': case 'embed': gn('load', o), (w = v) break case 'video': case 'audio': for (w = 0; w < Fc.length; w++) gn(Fc[w], o) w = v break case 'source': gn('error', o), (w = v) break case 'img': case 'image': case 'link': gn('error', o), gn('load', o), (w = v) break case 'details': gn('toggle', o), (w = v) break case 'input': Xn(o, v), (w = Gn(o, v)), gn('invalid', o) break case 'option': w = v break case 'select': ;(o._wrapperState = { wasMultiple: !!v.multiple }), (w = Q({}, v, { value: void 0 })), gn('invalid', o) break case 'textarea': ra(o, v), (w = $r(o, v)), gn('invalid', o) break default: w = v } Lo(p, w), (ne = w) for (E in ne) if (ne.hasOwnProperty(E)) { var le = ne[E] E === 'style' ? Uu(o, le) : E === 'dangerouslySetInnerHTML' ? ((le = le ? le.__html : void 0), le != null && Ao(o, le)) : E === 'children' ? typeof le == 'string' ? (p !== 'textarea' || le !== '') && No(o, le) : typeof le == 'number' && No(o, '' + le) : E !== 'suppressContentEditableWarning' && E !== 'suppressHydrationWarning' && E !== 'autoFocus' && (B.hasOwnProperty(E) ? le != null && E === 'onScroll' && gn('scroll', o) : le != null && We(o, E, le, F)) } switch (p) { case 'input': nn(o), zi(o, v, !1) break case 'textarea': nn(o), Fa(o) break case 'option': v.value != null && o.setAttribute('value', '' + Ue(v.value)) break case 'select': ;(o.multiple = !!v.multiple), (E = v.value), E != null ? _r(o, !!v.multiple, E, !1) : v.defaultValue != null && _r(o, !!v.multiple, v.defaultValue, !0) break default: typeof w.onClick == 'function' && (o.onclick = vd) } switch (p) { case 'button': case 'input': case 'select': case 'textarea': v = !!v.autoFocus break e case 'img': v = !0 break e default: v = !1 } } v && (u.flags |= 4) } u.ref !== null && ((u.flags |= 512), (u.flags |= 2097152)) } return rr(u), null case 6: if (o && u.stateNode != null) Ca(o, u, o.memoizedProps, v) else { if (typeof v != 'string' && u.stateNode === null) throw Error(T(166)) if (((p = Wi(Tn.current)), Wi(jn.current), Vc(u))) { if ( ((v = u.stateNode), (p = u.memoizedProps), (v[ki] = u), (E = v.nodeValue !== p) && ((o = Gr), o !== null)) ) switch (o.tag) { case 3: $c(v.nodeValue, p, (o.mode & 1) !== 0) break case 5: o.memoizedProps.suppressHydrationWarning !== !0 && $c(v.nodeValue, p, (o.mode & 1) !== 0) } E && (u.flags |= 4) } else (v = (p.nodeType === 9 ? p : p.ownerDocument).createTextNode(v)), (v[ki] = u), (u.stateNode = v) } return rr(u), null case 13: if ( (yn(xn), (v = u.memoizedState), o === null || (o.memoizedState !== null && o.memoizedState.dehydrated !== null)) ) { if (vn && Ar !== null && u.mode & 1 && !(u.flags & 128)) fp(), ao(), (u.flags |= 98560), (E = !1) else if (((E = Vc(u)), v !== null && v.dehydrated !== null)) { if (o === null) { if (!E) throw Error(T(318)) if (((E = u.memoizedState), (E = E !== null ? E.dehydrated : null), !E)) throw Error(T(317)) E[ki] = u } else ao(), !(u.flags & 128) && (u.memoizedState = null), (u.flags |= 4) rr(u), (E = !1) } else Xr !== null && (sf(Xr), (Xr = null)), (E = !0) if (!E) return u.flags & 65536 ? u : null } return u.flags & 128 ? ((u.lanes = p), u) : ((v = v !== null), v !== (o !== null && o.memoizedState !== null) && v && ((u.child.flags |= 8192), u.mode & 1 && (o === null || xn.current & 1 ? Nn === 0 && (Nn = 3) : uf())), u.updateQueue !== null && (u.flags |= 4), rr(u), null) case 4: return Tl(), Is(o, u), o === null && rs(u.stateNode.containerInfo), rr(u), null case 10: return wl(u.type._context), rr(u), null case 17: return fr(u.type) && Bc(), rr(u), null case 19: if ((yn(xn), (E = u.memoizedState), E === null)) return rr(u), null if (((v = (u.flags & 128) !== 0), (F = E.rendering), F === null)) if (v) un(E, !1) else { if (Nn !== 0 || (o !== null && o.flags & 128)) for (o = u.child; o !== null; ) { if (((F = Md(o)), F !== null)) { for ( u.flags |= 128, un(E, !1), v = F.updateQueue, v !== null && ((u.updateQueue = v), (u.flags |= 4)), u.subtreeFlags = 0, v = p, p = u.child; p !== null; ) (E = p), (o = v), (E.flags &= 14680066), (F = E.alternate), F === null ? ((E.childLanes = 0), (E.lanes = o), (E.child = null), (E.subtreeFlags = 0), (E.memoizedProps = null), (E.memoizedState = null), (E.updateQueue = null), (E.dependencies = null), (E.stateNode = null)) : ((E.childLanes = F.childLanes), (E.lanes = F.lanes), (E.child = F.child), (E.subtreeFlags = 0), (E.deletions = null), (E.memoizedProps = F.memoizedProps), (E.memoizedState = F.memoizedState), (E.updateQueue = F.updateQueue), (E.type = F.type), (o = F.dependencies), (E.dependencies = o === null ? null : { lanes: o.lanes, firstContext: o.firstContext })), (p = p.sibling) return hn(xn, (xn.current & 1) | 2), u.child } o = o.sibling } E.tail !== null && Xt() > Ns && ((u.flags |= 128), (v = !0), un(E, !1), (u.lanes = 4194304)) } else { if (!v) if (((o = Md(F)), o !== null)) { if ( ((u.flags |= 128), (v = !0), (p = o.updateQueue), p !== null && ((u.updateQueue = p), (u.flags |= 4)), un(E, !0), E.tail === null && E.tailMode === 'hidden' && !F.alternate && !vn) ) return rr(u), null } else 2 * Xt() - E.renderingStartTime > Ns && p !== 1073741824 && ((u.flags |= 128), (v = !0), un(E, !1), (u.lanes = 4194304)) E.isBackwards ? ((F.sibling = u.child), (u.child = F)) : ((p = E.last), p !== null ? (p.sibling = F) : (u.child = F), (E.last = F)) } return E.tail !== null ? ((u = E.tail), (E.rendering = u), (E.tail = u.sibling), (E.renderingStartTime = Xt()), (u.sibling = null), (p = xn.current), hn(xn, v ? (p & 1) | 2 : p & 1), u) : (rr(u), null) case 22: case 23: return ( cu(), (v = u.memoizedState !== null), o !== null && (o.memoizedState !== null) !== v && (u.flags |= 8192), v && u.mode & 1 ? Lr & 1073741824 && (rr(u), u.subtreeFlags & 6 && (u.flags |= 8192)) : rr(u), null ) case 24: return null case 25: return null } throw Error(T(156, u.tag)) } function qd(o, u) { switch ((cp(u), u.tag)) { case 1: return fr(u.type) && Bc(), (o = u.flags), o & 65536 ? ((u.flags = (o & -65537) | 128), u) : null case 3: return ( Tl(), yn(Mr), yn(dr), Sp(), (o = u.flags), o & 65536 && !(o & 128) ? ((u.flags = (o & -65537) | 128), u) : null ) case 5: return yp(u), null case 13: if ((yn(xn), (o = u.memoizedState), o !== null && o.dehydrated !== null)) { if (u.alternate === null) throw Error(T(340)) ao() } return (o = u.flags), o & 65536 ? ((u.flags = (o & -65537) | 128), u) : null case 19: return yn(xn), null case 4: return Tl(), null case 10: return wl(u.type._context), null case 22: case 23: return cu(), null case 24: return null default: return null } } var nu = !1, ir = !1, po = typeof WeakSet == 'function' ? WeakSet : Set, vt = null function Ea(o, u) { var p = o.ref if (p !== null) if (typeof p == 'function') try { p(null) } catch (v) { En(o, u, v) } else p.current = null } function go(o, u, p) { try { p() } catch (v) { En(o, u, v) } } var jp = !1 function ru(o, u) { if (((ha = sl), (o = Qf()), Ac(o))) { if ('selectionStart' in o) var p = { start: o.selectionStart, end: o.selectionEnd } else e: { p = ((p = o.ownerDocument) && p.defaultView) || window var v = p.getSelection && p.getSelection() if (v && v.rangeCount !== 0) { p = v.anchorNode var w = v.anchorOffset, E = v.focusNode v = v.focusOffset try { p.nodeType, E.nodeType } catch (it) { p = null break e } var F = 0, ne = -1, le = -1, Me = 0, Ke = 0, Ze = o, qe = null t: for (;;) { for ( var gt; Ze !== p || (w !== 0 && Ze.nodeType !== 3) || (ne = F + w), Ze !== E || (v !== 0 && Ze.nodeType !== 3) || (le = F + v), Ze.nodeType === 3 && (F += Ze.nodeValue.length), (gt = Ze.firstChild) !== null; ) (qe = Ze), (Ze = gt) for (;;) { if (Ze === o) break t if ( (qe === p && ++Me === w && (ne = F), qe === E && ++Ke === v && (le = F), (gt = Ze.nextSibling) !== null) ) break ;(Ze = qe), (qe = Ze.parentNode) } Ze = gt } p = ne === -1 || le === -1 ? null : { start: ne, end: le } } else p = null } p = p || { start: 0, end: 0 } } else p = null for (ss = { focusedElem: o, selectionRange: p }, sl = !1, vt = u; vt !== null; ) if (((u = vt), (o = u.child), (u.subtreeFlags & 1028) !== 0 && o !== null)) (o.return = u), (vt = o) else for (; vt !== null; ) { u = vt try { var _t = u.alternate if (u.flags & 1024) switch (u.tag) { case 0: case 11: case 15: break case 1: if (_t !== null) { var St = _t.memoizedProps, Lt = _t.memoizedState, Ce = u.stateNode, ge = Ce.getSnapshotBeforeUpdate(u.elementType === u.type ? St : oi(u.type, St), Lt) Ce.__reactInternalSnapshotBeforeUpdate = ge } break case 3: var Ee = u.stateNode.containerInfo Ee.nodeType === 1 ? (Ee.textContent = '') : Ee.nodeType === 9 && Ee.documentElement && Ee.removeChild(Ee.documentElement) break case 5: case 6: case 4: case 17: break default: throw Error(T(163)) } } catch (it) { En(u, u.return, it) } if (((o = u.sibling), o !== null)) { ;(o.return = u.return), (vt = o) break } vt = u.return } return (_t = jp), (jp = !1), _t } function Hl(o, u, p) { var v = u.updateQueue if (((v = v !== null ? v.lastEffect : null), v !== null)) { var w = (v = v.next) do { if ((w.tag & o) === o) { var E = w.destroy ;(w.destroy = void 0), E !== void 0 && go(u, p, E) } w = w.next } while (w !== v) } } function Ms(o, u) { if (((u = u.updateQueue), (u = u !== null ? u.lastEffect : null), u !== null)) { var p = (u = u.next) do { if ((p.tag & o) === o) { var v = p.create p.destroy = v() } p = p.next } while (p !== u) } } function Qd(o) { var u = o.ref if (u !== null) { var p = o.stateNode switch (o.tag) { case 5: o = p break default: o = p } typeof u == 'function' ? u(o) : (u.current = o) } } function zp(o) { var u = o.alternate u !== null && ((o.alternate = null), zp(u)), (o.child = null), (o.deletions = null), (o.sibling = null), o.tag === 5 && ((u = o.stateNode), u !== null && (delete u[ki], delete u[hl], delete u[Sd], delete u[ap], delete u[i_])), (o.stateNode = null), (o.return = null), (o.dependencies = null), (o.memoizedProps = null), (o.memoizedState = null), (o.pendingProps = null), (o.stateNode = null), (o.updateQueue = null) } function iu(o) { return o.tag === 5 || o.tag === 3 || o.tag === 4 } function xr(o) { e: for (;;) { for (; o.sibling === null; ) { if (o.return === null || iu(o.return)) return null o = o.return } for (o.sibling.return = o.return, o = o.sibling; o.tag !== 5 && o.tag !== 6 && o.tag !== 18; ) { if (o.flags & 2 || o.child === null || o.tag === 4) continue e ;(o.child.return = o), (o = o.child) } if (!(o.flags & 2)) return o.stateNode } } function Jd(o, u, p) { var v = o.tag if (v === 5 || v === 6) (o = o.stateNode), u ? p.nodeType === 8 ? p.parentNode.insertBefore(o, u) : p.insertBefore(o, u) : (p.nodeType === 8 ? ((u = p.parentNode), u.insertBefore(o, p)) : ((u = p), u.appendChild(o)), (p = p._reactRootContainer), p != null || u.onclick !== null || (u.onclick = vd)) else if (v !== 4 && ((o = o.child), o !== null)) for (Jd(o, u, p), o = o.sibling; o !== null; ) Jd(o, u, p), (o = o.sibling) } function Dn(o, u, p) { var v = o.tag if (v === 5 || v === 6) (o = o.stateNode), u ? p.insertBefore(o, u) : p.appendChild(o) else if (v !== 4 && ((o = o.child), o !== null)) for (Dn(o, u, p), o = o.sibling; o !== null; ) Dn(o, u, p), (o = o.sibling) } var Qn = null, Yr = !1 function ka(o, u, p) { for (p = p.child; p !== null; ) Zd(o, u, p), (p = p.sibling) } function Zd(o, u, p) { if (Tr && typeof Tr.onCommitFiberUnmount == 'function') try { Tr.onCommitFiberUnmount(Go, p) } catch (ne) {} switch (p.tag) { case 5: ir || Ea(p, u) case 6: var v = Qn, w = Yr ;(Qn = null), ka(o, u, p), (Qn = v), (Yr = w), Qn !== null && (Yr ? ((o = Qn), (p = p.stateNode), o.nodeType === 8 ? o.parentNode.removeChild(p) : o.removeChild(p)) : Qn.removeChild(p.stateNode)) break case 18: Qn !== null && (Yr ? ((o = Qn), (p = p.stateNode), o.nodeType === 8 ? bd(o.parentNode, p) : o.nodeType === 1 && bd(o, p), Ya(o)) : bd(Qn, p.stateNode)) break case 4: ;(v = Qn), (w = Yr), (Qn = p.stateNode.containerInfo), (Yr = !0), ka(o, u, p), (Qn = v), (Yr = w) break case 0: case 11: case 14: case 15: if (!ir && ((v = p.updateQueue), v !== null && ((v = v.lastEffect), v !== null))) { w = v = v.next do { var E = w, F = E.destroy ;(E = E.tag), F !== void 0 && (E & 2 || E & 4) && go(p, u, F), (w = w.next) } while (w !== v) } ka(o, u, p) break case 1: if (!ir && (Ea(p, u), (v = p.stateNode), typeof v.componentWillUnmount == 'function')) try { ;(v.props = p.memoizedProps), (v.state = p.memoizedState), v.componentWillUnmount() } catch (ne) { En(p, u, ne) } ka(o, u, p) break case 21: ka(o, u, p) break case 22: p.mode & 1 ? ((ir = (v = ir) || p.memoizedState !== null), ka(o, u, p), (ir = v)) : ka(o, u, p) break default: ka(o, u, p) } } function Lp(o) { var u = o.updateQueue if (u !== null) { o.updateQueue = null var p = o.stateNode p === null && (p = o.stateNode = new po()), u.forEach(function (v) { var w = Kp.bind(null, o, v) p.has(v) || (p.add(v), v.then(w, w)) }) } } function di(o, u) { var p = u.deletions if (p !== null) for (var v = 0; v < p.length; v++) { var w = p[v] try { var E = o, F = u, ne = F e: for (; ne !== null; ) { switch (ne.tag) { case 5: ;(Qn = ne.stateNode), (Yr = !1) break e case 3: ;(Qn = ne.stateNode.containerInfo), (Yr = !0) break e case 4: ;(Qn = ne.stateNode.containerInfo), (Yr = !0) break e } ne = ne.return } if (Qn === null) throw Error(T(160)) Zd(E, F, w), (Qn = null), (Yr = !1) var le = w.alternate le !== null && (le.return = null), (w.return = null) } catch (Me) { En(w, u, Me) } } if (u.subtreeFlags & 12854) for (u = u.child; u !== null; ) Fp(u, o), (u = u.sibling) } function Fp(o, u) { var p = o.alternate, v = o.flags switch (o.tag) { case 0: case 11: case 14: case 15: if ((di(u, o), fi(o), v & 4)) { try { Hl(3, o, o.return), Ms(3, o) } catch (St) { En(o, o.return, St) } try { Hl(5, o, o.return) } catch (St) { En(o, o.return, St) } } break case 1: di(u, o), fi(o), v & 512 && p !== null && Ea(p, p.return) break case 5: if ((di(u, o), fi(o), v & 512 && p !== null && Ea(p, p.return), o.flags & 32)) { var w = o.stateNode try { No(w, '') } catch (St) { En(o, o.return, St) } } if (v & 4 && ((w = o.stateNode), w != null)) { var E = o.memoizedProps, F = p !== null ? p.memoizedProps : E, ne = o.type, le = o.updateQueue if (((o.updateQueue = null), le !== null)) try { ne === 'input' && E.type === 'radio' && E.name != null && er(w, E), fc(ne, F) var Me = fc(ne, E) for (F = 0; F < le.length; F += 2) { var Ke = le[F], Ze = le[F + 1] Ke === 'style' ? Uu(w, Ze) : Ke === 'dangerouslySetInnerHTML' ? Ao(w, Ze) : Ke === 'children' ? No(w, Ze) : We(w, Ke, Ze, Me) } switch (ne) { case 'input': na(w, E) break case 'textarea': On(w, E) break case 'select': var qe = w._wrapperState.wasMultiple w._wrapperState.wasMultiple = !!E.multiple var gt = E.value gt != null ? _r(w, !!E.multiple, gt, !1) : qe !== !!E.multiple && (E.defaultValue != null ? _r(w, !!E.multiple, E.defaultValue, !0) : _r(w, !!E.multiple, E.multiple ? [] : '', !1)) } w[hl] = E } catch (St) { En(o, o.return, St) } } break case 6: if ((di(u, o), fi(o), v & 4)) { if (o.stateNode === null) throw Error(T(162)) ;(w = o.stateNode), (E = o.memoizedProps) try { w.nodeValue = E } catch (St) { En(o, o.return, St) } } break case 3: if ((di(u, o), fi(o), v & 4 && p !== null && p.memoizedState.isDehydrated)) try { Ya(u.containerInfo) } catch (St) { En(o, o.return, St) } break case 4: di(u, o), fi(o) break case 13: di(u, o), fi(o), (w = o.child), w.flags & 8192 && ((E = w.memoizedState !== null), (w.stateNode.isHidden = E), !E || (w.alternate !== null && w.alternate.memoizedState !== null) || (rf = Xt())), v & 4 && Lp(o) break case 22: if ( ((Ke = p !== null && p.memoizedState !== null), o.mode & 1 ? ((ir = (Me = ir) || Ke), di(u, o), (ir = Me)) : di(u, o), fi(o), v & 8192) ) { if (((Me = o.memoizedState !== null), (o.stateNode.isHidden = Me) && !Ke && o.mode & 1)) for (vt = o, Ke = o.child; Ke !== null; ) { for (Ze = vt = Ke; vt !== null; ) { switch (((qe = vt), (gt = qe.child), qe.tag)) { case 0: case 11: case 14: case 15: Hl(4, qe, qe.return) break case 1: Ea(qe, qe.return) var _t = qe.stateNode if (typeof _t.componentWillUnmount == 'function') { ;(v = qe), (p = qe.return) try { ;(u = v), (_t.props = u.memoizedProps), (_t.state = u.memoizedState), _t.componentWillUnmount() } catch (St) { En(v, p, St) } } break case 5: Ea(qe, qe.return) break case 22: if (qe.memoizedState !== null) { Bl(Ze) continue } } gt !== null ? ((gt.return = qe), (vt = gt)) : Bl(Ze) } Ke = Ke.sibling } e: for (Ke = null, Ze = o; ; ) { if (Ze.tag === 5) { if (Ke === null) { Ke = Ze try { ;(w = Ze.stateNode), Me ? ((E = w.style), typeof E.setProperty == 'function' ? E.setProperty('display', 'none', 'important') : (E.display = 'none')) : ((ne = Ze.stateNode), (le = Ze.memoizedProps.style), (F = le != null && le.hasOwnProperty('display') ? le.display : null), (ne.style.display = Bu('display', F))) } catch (St) { En(o, o.return, St) } } } else if (Ze.tag === 6) { if (Ke === null) try { Ze.stateNode.nodeValue = Me ? '' : Ze.memoizedProps } catch (St) { En(o, o.return, St) } } else if ( ((Ze.tag !== 22 && Ze.tag !== 23) || Ze.memoizedState === null || Ze === o) && Ze.child !== null ) { ;(Ze.child.return = Ze), (Ze = Ze.child) continue } if (Ze === o) break e for (; Ze.sibling === null; ) { if (Ze.return === null || Ze.return === o) break e Ke === Ze && (Ke = null), (Ze = Ze.return) } Ke === Ze && (Ke = null), (Ze.sibling.return = Ze.return), (Ze = Ze.sibling) } } break case 19: di(u, o), fi(o), v & 4 && Lp(o) break case 21: break default: di(u, o), fi(o) } } function fi(o) { var u = o.flags if (u & 2) { try { e: { for (var p = o.return; p !== null; ) { if (iu(p)) { var v = p break e } p = p.return } throw Error(T(160)) } switch (v.tag) { case 5: var w = v.stateNode v.flags & 32 && (No(w, ''), (v.flags &= -33)) var E = xr(o) Dn(o, E, w) break case 3: case 4: var F = v.stateNode.containerInfo, ne = xr(o) Jd(o, ne, F) break default: throw Error(T(161)) } } catch (le) { En(o, o.return, le) } o.flags &= -3 } u & 4096 && (o.flags &= -4097) } function $p(o, u, p) { ;(vt = o), ef(o, u, p) } function ef(o, u, p) { for (var v = (o.mode & 1) !== 0; vt !== null; ) { var w = vt, E = w.child if (w.tag === 22 && v) { var F = w.memoizedState !== null || nu if (!F) { var ne = w.alternate, le = (ne !== null && ne.memoizedState !== null) || ir ne = nu var Me = ir if (((nu = F), (ir = le) && !Me)) for (vt = w; vt !== null; ) (F = vt), (le = F.child), F.tag === 22 && F.memoizedState !== null ? Bp(w) : le !== null ? ((le.return = F), (vt = le)) : Bp(w) for (; E !== null; ) (vt = E), ef(E, u, p), (E = E.sibling) ;(vt = w), (nu = ne), (ir = Me) } Hp(o, u, p) } else w.subtreeFlags & 8772 && E !== null ? ((E.return = w), (vt = E)) : Hp(o, u, p) } } function Hp(o) { for (; vt !== null; ) { var u = vt if (u.flags & 8772) { var p = u.alternate try { if (u.flags & 8772) switch (u.tag) { case 0: case 11: case 15: ir || Ms(5, u) break case 1: var v = u.stateNode if (u.flags & 4 && !ir) if (p === null) v.componentDidMount() else { var w = u.elementType === u.type ? p.memoizedProps : oi(u.type, p.memoizedProps) v.componentDidUpdate(w, p.memoizedState, v.__reactInternalSnapshotBeforeUpdate) } var E = u.updateQueue E !== null && Di(u, E, v) break case 3: var F = u.updateQueue if (F !== null) { if (((p = null), u.child !== null)) switch (u.child.tag) { case 5: p = u.child.stateNode break case 1: p = u.child.stateNode } Di(u, F, p) } break case 5: var ne = u.stateNode if (p === null && u.flags & 4) { p = ne var le = u.memoizedProps switch (u.type) { case 'button': case 'input': case 'select': case 'textarea': le.autoFocus && p.focus() break case 'img': le.src && (p.src = le.src) } } break case 6: break case 4: break case 12: break case 13: if (u.memoizedState === null) { var Me = u.alternate if (Me !== null) { var Ke = Me.memoizedState if (Ke !== null) { var Ze = Ke.dehydrated Ze !== null && Ya(Ze) } } } break case 19: case 17: case 21: case 22: case 23: case 25: break default: throw Error(T(163)) } ir || (u.flags & 512 && Qd(u)) } catch (qe) { En(u, u.return, qe) } } if (u === o) { vt = null break } if (((p = u.sibling), p !== null)) { ;(p.return = u.return), (vt = p) break } vt = u.return } } function Bl(o) { for (; vt !== null; ) { var u = vt if (u === o) { vt = null break } var p = u.sibling if (p !== null) { ;(p.return = u.return), (vt = p) break } vt = u.return } } function Bp(o) { for (; vt !== null; ) { var u = vt try { switch (u.tag) { case 0: case 11: case 15: var p = u.return try { Ms(4, u) } catch (le) { En(u, p, le) } break case 1: var v = u.stateNode if (typeof v.componentDidMount == 'function') { var w = u.return try { v.componentDidMount() } catch (le) { En(u, w, le) } } var E = u.return try { Qd(u) } catch (le) { En(u, E, le) } break case 5: var F = u.return try { Qd(u) } catch (le) { En(u, F, le) } } } catch (le) { En(u, u.return, le) } if (u === o) { vt = null break } var ne = u.sibling if (ne !== null) { ;(ne.return = u.return), (vt = ne) break } vt = u.return } } var Up = Math.ceil, Oa = we.ReactCurrentDispatcher, tf = we.ReactCurrentOwner, qr = we.ReactCurrentBatchConfig, en = 0, Fn = null, Rn = null, Mt = 0, Lr = 0, As = to(0), Nn = 0, Ul = null, mo = 0, au = 0, nf = 0, Wl = null, Cr = null, rf = 0, Ns = 1 / 0, Gi = null, ou = !1, af = null, Ii = null, su = !1, Qr = null, js = 0, ho = 0, vo = null, ar = -1, Vl = 0 function bn() { return en & 6 ? Xt() : ar !== -1 ? ar : (ar = Xt()) } function Ta(o) { return o.mode & 1 ? en & 2 && Mt !== 0 ? Mt & -Mt : oo.transition !== null ? (Vl === 0 && (Vl = Zu()), Vl) : ((o = Zt), o !== 0 || ((o = window.event), (o = o === void 0 ? 16 : Jo(o.type))), o) : 1 } function Jr(o, u, p, v) { if (50 < ho) throw ((ho = 0), (vo = null), Error(T(185))) Va(o, p, v), (!(en & 2) || o !== Fn) && (o === Fn && (!(en & 2) && (au |= p), Nn === 4 && fn(o, Mt)), Pn(o, v), p === 1 && en === 0 && !(u.mode & 1) && ((Ns = Xt() + 500), Cd && Oi())) } function Pn(o, u) { var p = o.callbackNode al(o, u) var v = il(o, o === Fn ? Mt : 0) if (v === 0) p !== null && bc(p), (o.callbackNode = null), (o.callbackPriority = 0) else if (((u = v & -v), o.callbackPriority !== u)) { if ((p != null && bc(p), u === 1)) o.tag === 0 ? Fm(lf.bind(null, o)) : cn(lf.bind(null, o)), yd(function () { !(en & 6) && Oi() }), (p = null) else { switch (Ec(v)) { case 1: p = Wo break case 4: p = rl break case 16: p = Vo break case 536870912: p = Li break default: p = Vo } p = Yp(p, lu.bind(null, o)) } ;(o.callbackPriority = u), (o.callbackNode = p) } } function lu(o, u) { if (((ar = -1), (Vl = 0), en & 6)) throw Error(T(327)) var p = o.callbackNode if (zs() && o.callbackNode !== p) return null var v = il(o, o === Fn ? Mt : 0) if (v === 0) return null if (v & 30 || v & o.expiredLanes || u) u = Gl(o, v) else { u = v var w = en en |= 2 var E = Vp() ;(Fn !== o || Mt !== u) && ((Gi = null), (Ns = Xt() + 500), pi(o, u)) do try { Jm() break } catch (ne) { cf(o, ne) } while (1) Td(), (Oa.current = E), (en = w), Rn !== null ? (u = 0) : ((Fn = null), (Mt = 0), (u = Nn)) } if (u !== 0) { if ((u === 2 && ((w = xc(o)), w !== 0 && ((v = w), (u = of(o, w)))), u === 1)) throw ((p = Ul), pi(o, 0), fn(o, v), Pn(o, Xt()), p) if (u === 6) fn(o, v) else { if ( ((w = o.current.alternate), !(v & 30) && !Wp(w) && ((u = Gl(o, v)), u === 2 && ((E = xc(o)), E !== 0 && ((v = E), (u = of(o, E)))), u === 1)) ) throw ((p = Ul), pi(o, 0), fn(o, v), Pn(o, Xt()), p) switch (((o.finishedWork = w), (o.finishedLanes = v), u)) { case 0: case 1: throw Error(T(345)) case 2: Xi(o, Cr, Gi) break case 3: if ((fn(o, v), (v & 130023424) === v && ((u = rf + 500 - Xt()), 10 < u))) { if (il(o, 0) !== 0) break if (((w = o.suspendedLanes), (w & v) !== v)) { bn(), (o.pingedLanes |= o.suspendedLanes & w) break } o.timeoutHandle = eo(Xi.bind(null, o, Cr, Gi), u) break } Xi(o, Cr, Gi) break case 4: if ((fn(o, v), (v & 4194240) === v)) break for (u = o.eventTimes, w = -1; 0 < v; ) { var F = 31 - Hr(v) ;(E = 1 << F), (F = u[F]), F > w && (w = F), (v &= ~E) } if ( ((v = w), (v = Xt() - v), (v = (120 > v ? 120 : 480 > v ? 480 : 1080 > v ? 1080 : 1920 > v ? 1920 : 3e3 > v ? 3e3 : 4320 > v ? 4320 : 1960 * Up(v / 1960)) - v), 10 < v) ) { o.timeoutHandle = eo(Xi.bind(null, o, Cr, Gi), v) break } Xi(o, Cr, Gi) break case 5: Xi(o, Cr, Gi) break default: throw Error(T(329)) } } } return Pn(o, Xt()), o.callbackNode === p ? lu.bind(null, o) : null } function of(o, u) { var p = Wl return ( o.current.memoizedState.isDehydrated && (pi(o, u).flags |= 256), (o = Gl(o, u)), o !== 2 && ((u = Cr), (Cr = p), u !== null && sf(u)), o ) } function sf(o) { Cr === null ? (Cr = o) : Cr.push.apply(Cr, o) } function Wp(o) { for (var u = o; ; ) { if (u.flags & 16384) { var p = u.updateQueue if (p !== null && ((p = p.stores), p !== null)) for (var v = 0; v < p.length; v++) { var w = p[v], E = w.getSnapshot w = w.value try { if (!Rr(E(), w)) return !1 } catch (F) { return !1 } } } if (((p = u.child), u.subtreeFlags & 16384 && p !== null)) (p.return = u), (u = p) else { if (u === o) break for (; u.sibling === null; ) { if (u.return === null || u.return === o) return !0 u = u.return } ;(u.sibling.return = u.return), (u = u.sibling) } } return !0 } function fn(o, u) { for (u &= ~nf, u &= ~au, o.suspendedLanes |= u, o.pingedLanes &= ~u, o = o.expirationTimes; 0 < u; ) { var p = 31 - Hr(u), v = 1 << p ;(o[p] = -1), (u &= ~v) } } function lf(o) { if (en & 6) throw Error(T(327)) zs() var u = il(o, 0) if (!(u & 1)) return Pn(o, Xt()), null var p = Gl(o, u) if (o.tag !== 0 && p === 2) { var v = xc(o) v !== 0 && ((u = v), (p = of(o, v))) } if (p === 1) throw ((p = Ul), pi(o, 0), fn(o, u), Pn(o, Xt()), p) if (p === 6) throw Error(T(345)) return (o.finishedWork = o.current.alternate), (o.finishedLanes = u), Xi(o, Cr, Gi), Pn(o, Xt()), null } function _o(o, u) { var p = en en |= 1 try { return o(u) } finally { ;(en = p), en === 0 && ((Ns = Xt() + 500), Cd && Oi()) } } function Da(o) { Qr !== null && Qr.tag === 0 && !(en & 6) && zs() var u = en en |= 1 var p = qr.transition, v = Zt try { if (((qr.transition = null), (Zt = 1), o)) return o() } finally { ;(Zt = v), (qr.transition = p), (en = u), !(en & 6) && Oi() } } function cu() { ;(Lr = As.current), yn(As) } function pi(o, u) { ;(o.finishedWork = null), (o.finishedLanes = 0) var p = o.timeoutHandle if ((p !== -1 && ((o.timeoutHandle = -1), rp(p)), Rn !== null)) for (p = Rn.return; p !== null; ) { var v = p switch ((cp(v), v.tag)) { case 1: ;(v = v.type.childContextTypes), v != null && Bc() break case 3: Tl(), yn(Mr), yn(dr), Sp() break case 5: yp(v) break case 4: Tl() break case 13: yn(xn) break case 19: yn(xn) break case 10: wl(v.type._context) break case 22: case 23: cu() } p = p.return } if ( ((Fn = o), (Rn = o = Pa(o.current, null)), (Mt = Lr = u), (Nn = 0), (Ul = null), (nf = au = mo = 0), (Cr = Wl = null), Sa !== null) ) { for (u = 0; u < Sa.length; u++) if (((p = Sa[u]), (v = p.interleaved), v !== null)) { p.interleaved = null var w = v.next, E = p.pending if (E !== null) { var F = E.next ;(E.next = w), (v.next = F) } p.pending = v } Sa = null } return o } function cf(o, u) { do { var p = Rn try { if ((Td(), (Ad.current = Nl), Nd)) { for (var v = Cn.memoizedState; v !== null; ) { var w = v.queue w !== null && (w.pending = null), (v = v.next) } Nd = !1 } if ( ((bs = 0), (qn = zn = Cn = null), (Ss = !1), (Dl = 0), (tf.current = null), p === null || p.return === null) ) { ;(Nn = 1), (Ul = u), (Rn = null) break } e: { var E = o, F = p.return, ne = p, le = u if ( ((u = Mt), (ne.flags |= 32768), le !== null && typeof le == 'object' && typeof le.then == 'function') ) { var Me = le, Ke = ne, Ze = Ke.tag if (!(Ke.mode & 1) && (Ze === 0 || Ze === 11 || Ze === 15)) { var qe = Ke.alternate qe ? ((Ke.updateQueue = qe.updateQueue), (Ke.memoizedState = qe.memoizedState), (Ke.lanes = qe.lanes)) : ((Ke.updateQueue = null), (Ke.memoizedState = null)) } var gt = Ip(F) if (gt !== null) { ;(gt.flags &= -257), Ts(gt, F, ne, E, u), gt.mode & 1 && Os(E, Me, u), (u = gt), (le = Me) var _t = u.updateQueue if (_t === null) { var St = new Set() St.add(le), (u.updateQueue = St) } else _t.add(le) break e } else { if (!(u & 1)) { Os(E, Me, u), uf() break e } le = Error(T(426)) } } else if (vn && ne.mode & 1) { var Lt = Ip(F) if (Lt !== null) { !(Lt.flags & 65536) && (Lt.flags |= 256), Ts(Lt, F, ne, E, u), ms(ks(le, ne)) break e } } ;(E = le = ks(le, ne)), Nn !== 4 && (Nn = 2), Wl === null ? (Wl = [E]) : Wl.push(E), (E = F) do { switch (E.tag) { case 3: ;(E.flags |= 65536), (u &= -u), (E.lanes |= u) var Ce = Wd(E, le, u) Kr(E, Ce) break e case 1: ne = le var ge = E.type, Ee = E.stateNode if ( !(E.flags & 128) && (typeof ge.getDerivedStateFromError == 'function' || (Ee !== null && typeof Ee.componentDidCatch == 'function' && (Ii === null || !Ii.has(Ee)))) ) { ;(E.flags |= 65536), (u &= -u), (E.lanes |= u) var it = uo(E, ne, u) Kr(E, it) break e } } E = E.return } while (E !== null) } uu(p) } catch (wt) { ;(u = wt), Rn === p && p !== null && (Rn = p = p.return) continue } break } while (1) } function Vp() { var o = Oa.current return (Oa.current = Nl), o === null ? Nl : o } function uf() { ;(Nn === 0 || Nn === 3 || Nn === 2) && (Nn = 4), Fn === null || (!(mo & 268435455) && !(au & 268435455)) || fn(Fn, Mt) } function Gl(o, u) { var p = en en |= 2 var v = Vp() ;(Fn !== o || Mt !== u) && ((Gi = null), pi(o, u)) do try { Gp() break } catch (w) { cf(o, w) } while (1) if ((Td(), (en = p), (Oa.current = v), Rn !== null)) throw Error(T(261)) return (Fn = null), (Mt = 0), Nn } function Gp() { for (; Rn !== null; ) df(Rn) } function Jm() { for (; Rn !== null && !Xu(); ) df(Rn) } function df(o) { var u = fu(o.alternate, o, Lr) ;(o.memoizedProps = o.pendingProps), u === null ? uu(o) : (Rn = u), (tf.current = null) } function uu(o) { var u = o do { var p = u.alternate if (((o = u.return), u.flags & 32768)) { if (((p = qd(p, u)), p !== null)) { ;(p.flags &= 32767), (Rn = p) return } if (o !== null) (o.flags |= 32768), (o.subtreeFlags = 0), (o.deletions = null) else { ;(Nn = 6), (Rn = null) return } } else if (((p = Rs(p, u, Lr)), p !== null)) { Rn = p return } if (((u = u.sibling), u !== null)) { Rn = u return } Rn = u = o } while (u !== null) Nn === 0 && (Nn = 5) } function Xi(o, u, p) { var v = Zt, w = qr.transition try { ;(qr.transition = null), (Zt = 1), Zm(o, u, p, v) } finally { ;(qr.transition = w), (Zt = v) } return null } function Zm(o, u, p, v) { do zs() while (Qr !== null) if (en & 6) throw Error(T(327)) p = o.finishedWork var w = o.finishedLanes if (p === null) return null if (((o.finishedWork = null), (o.finishedLanes = 0), p === o.current)) throw Error(T(177)) ;(o.callbackNode = null), (o.callbackPriority = 0) var E = p.lanes | p.childLanes if ( (Ga(o, E), o === Fn && ((Rn = Fn = null), (Mt = 0)), (!(p.subtreeFlags & 2064) && !(p.flags & 2064)) || su || ((su = !0), Yp(Vo, function () { return zs(), null })), (E = (p.flags & 15990) !== 0), p.subtreeFlags & 15990 || E) ) { ;(E = qr.transition), (qr.transition = null) var F = Zt Zt = 1 var ne = en ;(en |= 4), (tf.current = null), ru(o, p), Fp(p, o), Nc(ss), (sl = !!ha), (ss = ha = null), (o.current = p), $p(p, o, w), Sc(), (en = ne), (Zt = F), (qr.transition = E) } else o.current = p if ( (su && ((su = !1), (Qr = o), (js = w)), (E = o.pendingLanes), E === 0 && (Ii = null), $f(p.stateNode, v), Pn(o, Xt()), u !== null) ) for (v = o.onRecoverableError, p = 0; p < u.length; p++) (w = u[p]), v(w.value, { componentStack: w.stack, digest: w.digest }) if (ou) throw ((ou = !1), (o = af), (af = null), o) return ( js & 1 && o.tag !== 0 && zs(), (E = o.pendingLanes), E & 1 ? (o === vo ? ho++ : ((ho = 0), (vo = o))) : (ho = 0), Oi(), null ) } function zs() { if (Qr !== null) { var o = Ec(js), u = qr.transition, p = Zt try { if (((qr.transition = null), (Zt = 16 > o ? 16 : o), Qr === null)) var v = !1 else { if (((o = Qr), (Qr = null), (js = 0), en & 6)) throw Error(T(331)) var w = en for (en |= 4, vt = o.current; vt !== null; ) { var E = vt, F = E.child if (vt.flags & 16) { var ne = E.deletions if (ne !== null) { for (var le = 0; le < ne.length; le++) { var Me = ne[le] for (vt = Me; vt !== null; ) { var Ke = vt switch (Ke.tag) { case 0: case 11: case 15: Hl(8, Ke, E) } var Ze = Ke.child if (Ze !== null) (Ze.return = Ke), (vt = Ze) else for (; vt !== null; ) { Ke = vt var qe = Ke.sibling, gt = Ke.return if ((zp(Ke), Ke === Me)) { vt = null break } if (qe !== null) { ;(qe.return = gt), (vt = qe) break } vt = gt } } } var _t = E.alternate if (_t !== null) { var St = _t.child if (St !== null) { _t.child = null do { var Lt = St.sibling ;(St.sibling = null), (St = Lt) } while (St !== null) } } vt = E } } if (E.subtreeFlags & 2064 && F !== null) (F.return = E), (vt = F) else e: for (; vt !== null; ) { if (((E = vt), E.flags & 2048)) switch (E.tag) { case 0: case 11: case 15: Hl(9, E, E.return) } var Ce = E.sibling if (Ce !== null) { ;(Ce.return = E.return), (vt = Ce) break e } vt = E.return } } var ge = o.current for (vt = ge; vt !== null; ) { F = vt var Ee = F.child if (F.subtreeFlags & 2064 && Ee !== null) (Ee.return = F), (vt = Ee) else e: for (F = ge; vt !== null; ) { if (((ne = vt), ne.flags & 2048)) try { switch (ne.tag) { case 0: case 11: case 15: Ms(9, ne) } } catch (wt) { En(ne, ne.return, wt) } if (ne === F) { vt = null break e } var it = ne.sibling if (it !== null) { ;(it.return = ne.return), (vt = it) break e } vt = ne.return } } if (((en = w), Oi(), Tr && typeof Tr.onPostCommitFiberRoot == 'function')) try { Tr.onPostCommitFiberRoot(Go, o) } catch (wt) {} v = !0 } return v } finally { ;(Zt = p), (qr.transition = u) } } return !1 } function du(o, u, p) { ;(u = ks(p, u)), (u = Wd(o, u, 1)), (o = Ti(o, u, 1)), (u = bn()), o !== null && (Va(o, 1, u), Pn(o, u)) } function En(o, u, p) { if (o.tag === 3) du(o, o, p) else for (; u !== null; ) { if (u.tag === 3) { du(u, o, p) break } else if (u.tag === 1) { var v = u.stateNode if ( typeof u.type.getDerivedStateFromError == 'function' || (typeof v.componentDidCatch == 'function' && (Ii === null || !Ii.has(v))) ) { ;(o = ks(p, o)), (o = uo(u, o, 1)), (u = Ti(u, o, 1)), (o = bn()), u !== null && (Va(u, 1, o), Pn(u, o)) break } } u = u.return } } function ff(o, u, p) { var v = o.pingCache v !== null && v.delete(u), (u = bn()), (o.pingedLanes |= o.suspendedLanes & p), Fn === o && (Mt & p) === p && (Nn === 4 || (Nn === 3 && (Mt & 130023424) === Mt && 500 > Xt() - rf) ? pi(o, 0) : (nf |= p)), Pn(o, u) } function Xp(o, u) { u === 0 && (o.mode & 1 ? ((u = oa), (oa <<= 1), !(oa & 130023424) && (oa = 4194304)) : (u = 1)) var p = bn() ;(o = si(o, u)), o !== null && (Va(o, u, p), Pn(o, p)) } function Zr(o) { var u = o.memoizedState, p = 0 u !== null && (p = u.retryLane), Xp(o, p) } function Kp(o, u) { var p = 0 switch (o.tag) { case 13: var v = o.stateNode, w = o.memoizedState w !== null && (p = w.retryLane) break case 19: v = o.stateNode break default: throw Error(T(314)) } v !== null && v.delete(u), Xp(o, p) } var fu fu = function (o, u, p) { if (o !== null) if (o.memoizedProps !== u.pendingProps || Mr.current) wr = !0 else { if (!(o.lanes & p) && !(u.flags & 128)) return (wr = !1), Qm(o, u, p) wr = !!(o.flags & 131072) } else (wr = !1), vn && u.flags & 1048576 && Wc(u, _l, u.index) switch (((u.lanes = 0), u.tag)) { case 2: var v = u.type xa(o, u), (o = u.pendingProps) var w = ds(u, dr.current) xl(u, p), (w = Ln(null, u, v, o, w, p)) var E = xp() return ( (u.flags |= 1), typeof w == 'object' && w !== null && typeof w.render == 'function' && w.$$typeof === void 0 ? ((u.tag = 1), (u.memoizedState = null), (u.updateQueue = null), fr(v) ? ((E = !0), Uc(u)) : (E = !1), (u.memoizedState = w.state !== null && w.state !== void 0 ? w.state : null), Pd(u), (w.updater = Kc), (u.stateNode = w), (w._reactInternals = u), Yc(u, v, o, p), (u = Ds(null, u, v, !0, E, p))) : ((u.tag = 0), vn && E && kd(u), mr(null, u, w, p), (u = u.child)), u ) case 16: v = u.elementType e: { switch ( (xa(o, u), (o = u.pendingProps), (w = v._init), (v = w(v._payload)), (u.type = v), (w = u.tag = eh(v)), (o = oi(v, o)), w) ) { case 0: u = Gd(null, u, v, o, p) break e case 1: u = qm(null, u, v, o, p) break e case 11: u = jl(null, u, v, o, p) break e case 14: u = Rp(null, u, v, oi(v.type, o), p) break e } throw Error(T(306, v, '')) } return u case 0: return (v = u.type), (w = u.pendingProps), (w = u.elementType === v ? w : oi(v, w)), Gd(o, u, v, w, p) case 1: return (v = u.type), (w = u.pendingProps), (w = u.elementType === v ? w : oi(v, w)), qm(o, u, v, w, p) case 3: e: { if ((Ap(u), o === null)) throw Error(T(387)) ;(v = u.pendingProps), (E = u.memoizedState), (w = E.element), gp(o, u), Gc(u, v, null, p) var F = u.memoizedState if (((v = F.element), E.isDehydrated)) if ( ((E = { element: v, isDehydrated: !1, cache: F.cache, pendingSuspenseBoundaries: F.pendingSuspenseBoundaries, transitions: F.transitions, }), (u.updateQueue.baseState = E), (u.memoizedState = E), u.flags & 256) ) { ;(w = ks(Error(T(423)), u)), (u = eu(o, u, v, p, w)) break e } else if (v !== w) { ;(w = ks(Error(T(424)), u)), (u = eu(o, u, v, p, w)) break e } else for ( Ar = va(u.stateNode.containerInfo.firstChild), Gr = u, vn = !0, Xr = null, p = Rd(u, null, v, p), u.child = p; p; ) (p.flags = (p.flags & -3) | 4096), (p = p.sibling) else { if ((ao(), v === w)) { u = Pi(o, u, p) break e } mr(o, u, v, p) } u = u.child } return u case 5: return ( $m(u), o === null && An(u), (v = u.type), (w = u.pendingProps), (E = o !== null ? o.memoizedProps : null), (F = w.children), _d(v, w) ? (F = null) : E !== null && _d(v, E) && (u.flags |= 32), Mp(o, u), mr(o, u, F, p), u.child ) case 6: return o === null && An(u), null case 13: return Kd(o, u, p) case 4: return ( _p(u, u.stateNode.containerInfo), (v = u.pendingProps), o === null ? (u.child = so(u, null, v, p)) : mr(o, u, v, p), u.child ) case 11: return (v = u.type), (w = u.pendingProps), (w = u.elementType === v ? w : oi(v, w)), jl(o, u, v, w, p) case 7: return mr(o, u, u.pendingProps, p), u.child case 8: return mr(o, u, u.pendingProps.children, p), u.child case 12: return mr(o, u, u.pendingProps.children, p), u.child case 10: e: { if ( ((v = u.type._context), (w = u.pendingProps), (E = u.memoizedProps), (F = w.value), hn(bl, v._currentValue), (v._currentValue = F), E !== null) ) if (Rr(E.value, F)) { if (E.children === w.children && !Mr.current) { u = Pi(o, u, p) break e } } else for (E = u.child, E !== null && (E.return = u); E !== null; ) { var ne = E.dependencies if (ne !== null) { F = E.child for (var le = ne.firstContext; le !== null; ) { if (le.context === v) { if (E.tag === 1) { ;(le = nr(-1, p & -p)), (le.tag = 2) var Me = E.updateQueue if (Me !== null) { Me = Me.shared var Ke = Me.pending Ke === null ? (le.next = le) : ((le.next = Ke.next), (Ke.next = le)), (Me.pending = le) } } ;(E.lanes |= p), (le = E.alternate), le !== null && (le.lanes |= p), Dd(E.return, p, u), (ne.lanes |= p) break } le = le.next } } else if (E.tag === 10) F = E.type === u.type ? null : E.child else if (E.tag === 18) { if (((F = E.return), F === null)) throw Error(T(341)) ;(F.lanes |= p), (ne = F.alternate), ne !== null && (ne.lanes |= p), Dd(F, p, u), (F = E.sibling) } else F = E.child if (F !== null) F.return = E else for (F = E; F !== null; ) { if (F === u) { F = null break } if (((E = F.sibling), E !== null)) { ;(E.return = F.return), (F = E) break } F = F.return } E = F } mr(o, u, w.children, p), (u = u.child) } return u case 9: return ( (w = u.type), (v = u.pendingProps.children), xl(u, p), (w = Nr(w)), (v = v(w)), (u.flags |= 1), mr(o, u, v, p), u.child ) case 14: return (v = u.type), (w = oi(v, u.pendingProps)), (w = oi(v.type, w)), Rp(o, u, v, w, p) case 15: return Vd(o, u, u.type, u.pendingProps, p) case 17: return ( (v = u.type), (w = u.pendingProps), (w = u.elementType === v ? w : oi(v, w)), xa(o, u), (u.tag = 1), fr(v) ? ((o = !0), Uc(u)) : (o = !1), xl(u, p), hp(u, v, w), Yc(u, v, w, p), Ds(null, u, v, !0, o, p) ) case 19: return Fl(o, u, p) case 22: return zl(o, u, p) } throw Error(T(156, u.tag)) } function Yp(o, u) { return yc(o, u) } function qp(o, u, p, v) { ;(this.tag = o), (this.key = p), (this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null), (this.index = 0), (this.ref = null), (this.pendingProps = u), (this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null), (this.mode = v), (this.subtreeFlags = this.flags = 0), (this.deletions = null), (this.childLanes = this.lanes = 0), (this.alternate = null) } function ei(o, u, p, v) { return new qp(o, u, p, v) } function pf(o) { return (o = o.prototype), !(!o || !o.isReactComponent) } function eh(o) { if (typeof o == 'function') return pf(o) ? 1 : 0 if (o != null) { if (((o = o.$$typeof), o === je)) return 11 if (o === X) return 14 } return 2 } function Pa(o, u) { var p = o.alternate return ( p === null ? ((p = ei(o.tag, u, o.key, o.mode)), (p.elementType = o.elementType), (p.type = o.type), (p.stateNode = o.stateNode), (p.alternate = o), (o.alternate = p)) : ((p.pendingProps = u), (p.type = o.type), (p.flags = 0), (p.subtreeFlags = 0), (p.deletions = null)), (p.flags = o.flags & 14680064), (p.childLanes = o.childLanes), (p.lanes = o.lanes), (p.child = o.child), (p.memoizedProps = o.memoizedProps), (p.memoizedState = o.memoizedState), (p.updateQueue = o.updateQueue), (u = o.dependencies), (p.dependencies = u === null ? null : { lanes: u.lanes, firstContext: u.firstContext }), (p.sibling = o.sibling), (p.index = o.index), (p.ref = o.ref), p ) } function pu(o, u, p, v, w, E) { var F = 2 if (((v = o), typeof o == 'function')) pf(o) && (F = 1) else if (typeof o == 'string') F = 5 else e: switch (o) { case st: return Ia(p.children, w, E, u) case rt: ;(F = 8), (w |= 8) break case ht: return (o = ei(12, p, u, w | 2)), (o.elementType = ht), (o.lanes = E), o case He: return (o = ei(13, p, u, w)), (o.elementType = He), (o.lanes = E), o case $e: return (o = ei(19, p, u, w)), (o.elementType = $e), (o.lanes = E), o case Se: return Ls(p, w, E, u) default: if (typeof o == 'object' && o !== null) switch (o.$$typeof) { case Wt: F = 10 break e case ee: F = 9 break e case je: F = 11 break e case X: F = 14 break e case Y: ;(F = 16), (v = null) break e } throw Error(T(130, o == null ? o : typeof o, '')) } return (u = ei(F, p, u, w)), (u.elementType = o), (u.type = v), (u.lanes = E), u } function Ia(o, u, p, v) { return (o = ei(7, o, v, u)), (o.lanes = p), o } function Ls(o, u, p, v) { return (o = ei(22, o, v, u)), (o.elementType = Se), (o.lanes = p), (o.stateNode = { isHidden: !1 }), o } function gf(o, u, p) { return (o = ei(6, o, null, u)), (o.lanes = p), o } function Ra(o, u, p) { return ( (u = ei(4, o.children !== null ? o.children : [], o.key, u)), (u.lanes = p), (u.stateNode = { containerInfo: o.containerInfo, pendingChildren: null, implementation: o.implementation }), u ) } function th(o, u, p, v, w) { ;(this.tag = u), (this.containerInfo = o), (this.finishedWork = this.pingCache = this.current = this.pendingChildren = null), (this.timeoutHandle = -1), (this.callbackNode = this.pendingContext = this.context = null), (this.callbackPriority = 0), (this.eventTimes = Cc(0)), (this.expirationTimes = Cc(-1)), (this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0), (this.entanglements = Cc(0)), (this.identifierPrefix = v), (this.onRecoverableError = w), (this.mutableSourceEagerHydrationData = null) } function mf(o, u, p, v, w, E, F, ne, le) { return ( (o = new th(o, u, p, ne, le)), u === 1 ? ((u = 1), E === !0 && (u |= 8)) : (u = 0), (E = ei(3, null, null, u)), (o.current = E), (E.stateNode = o), (E.memoizedState = { element: v, isDehydrated: p, cache: null, transitions: null, pendingSuspenseBoundaries: null, }), Pd(E), o ) } function nh(o, u, p) { var v = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null return { $$typeof: nt, key: v == null ? null : '' + v, children: o, containerInfo: u, implementation: p } } function hf(o) { if (!o) return no o = o._reactInternals e: { if (Mn(o) !== o || o.tag !== 1) throw Error(T(170)) var u = o do { switch (u.tag) { case 3: u = u.stateNode.context break e case 1: if (fr(u.type)) { u = u.stateNode.__reactInternalMemoizedMergedChildContext break e } } u = u.return } while (u !== null) throw Error(T(171)) } if (o.tag === 1) { var p = o.type if (fr(p)) return sp(o, p, u) } return u } function gu(o, u, p, v, w, E, F, ne, le) { return ( (o = mf(p, v, !0, o, w, E, F, ne, le)), (o.context = hf(null)), (p = o.current), (v = bn()), (w = Ta(p)), (E = nr(v, w)), (E.callback = u != null ? u : null), Ti(p, E, w), (o.current.lanes = w), Va(o, w, v), Pn(o, v), o ) } function Xl(o, u, p, v) { var w = u.current, E = bn(), F = Ta(w) return ( (p = hf(p)), u.context === null ? (u.context = p) : (u.pendingContext = p), (u = nr(E, F)), (u.payload = { element: o }), (v = v === void 0 ? null : v), v !== null && (u.callback = v), (o = Ti(w, u, F)), o !== null && (Jr(o, w, F, E), _s(o, w, F)), F ) } function mu(o) { if (((o = o.current), !o.child)) return null switch (o.child.tag) { case 5: return o.child.stateNode default: return o.child.stateNode } } function Qp(o, u) { if (((o = o.memoizedState), o !== null && o.dehydrated !== null)) { var p = o.retryLane o.retryLane = p !== 0 && p < u ? p : u } } function vf(o, u) { Qp(o, u), (o = o.alternate) && Qp(o, u) } function rh() { return null } var _f = typeof reportError == 'function' ? reportError : function (o) { console.error(o) } function yf(o) { this._internalRoot = o } ;(hu.prototype.render = yf.prototype.render = function (o) { var u = this._internalRoot if (u === null) throw Error(T(409)) Xl(o, u, null, null) }), (hu.prototype.unmount = yf.prototype.unmount = function () { var o = this._internalRoot if (o !== null) { this._internalRoot = null var u = o.containerInfo Da(function () { Xl(null, o, null, null) }), (u[Ui] = null) } }) function hu(o) { this._internalRoot = o } hu.prototype.unstable_scheduleHydration = function (o) { if (o) { var u = Xo() o = { blockedOn: null, target: o, priority: u } for (var p = 0; p < Hi.length && u !== 0 && u < Hi[p].priority; p++); Hi.splice(p, 0, o), p === 0 && Ka(o) } } function bf(o) { return !(!o || (o.nodeType !== 1 && o.nodeType !== 9 && o.nodeType !== 11)) } function vu(o) { return !( !o || (o.nodeType !== 1 && o.nodeType !== 9 && o.nodeType !== 11 && (o.nodeType !== 8 || o.nodeValue !== ' react-mount-point-unstable ')) ) } function Fs() {} function a_(o, u, p, v, w) { if (w) { if (typeof v == 'function') { var E = v v = function () { var Me = mu(F) E.call(Me) } } var F = gu(u, v, o, 0, null, !1, !1, '', Fs) return (o._reactRootContainer = F), (o[Ui] = F.current), rs(o.nodeType === 8 ? o.parentNode : o), Da(), F } for (; (w = o.lastChild); ) o.removeChild(w) if (typeof v == 'function') { var ne = v v = function () { var Me = mu(le) ne.call(Me) } } var le = mf(o, 0, !1, null, null, !1, !1, '', Fs) return ( (o._reactRootContainer = le), (o[Ui] = le.current), rs(o.nodeType === 8 ? o.parentNode : o), Da(function () { Xl(u, le, p, v) }), le ) } function _u(o, u, p, v, w) { var E = p._reactRootContainer if (E) { var F = E if (typeof w == 'function') { var ne = w w = function () { var le = mu(F) ne.call(le) } } Xl(u, F, o, w) } else F = a_(p, u, o, w, v) return mu(F) } ;(Dr = function (o) { switch (o.tag) { case 3: var u = o.stateNode if (u.current.memoizedState.isDehydrated) { var p = sa(u.pendingLanes) p !== 0 && (ol(u, p | 1), Pn(u, Xt()), !(en & 6) && ((Ns = Xt() + 500), Oi())) } break case 13: Da(function () { var v = si(o, 1) if (v !== null) { var w = bn() Jr(v, o, 1, w) } }), vf(o, 1) } }), (Br = function (o) { if (o.tag === 13) { var u = si(o, 134217728) if (u !== null) { var p = bn() Jr(u, o, 134217728, p) } vf(o, 134217728) } }), (kc = function (o) { if (o.tag === 13) { var u = Ta(o), p = si(o, u) if (p !== null) { var v = bn() Jr(p, o, u, v) } vf(o, u) } }), (Xo = function () { return Zt }), (ed = function (o, u) { var p = Zt try { return (Zt = o), u() } finally { Zt = p } }), (Js = function (o, u, p) { switch (u) { case 'input': if ((na(o, p), (u = p.name), p.type === 'radio' && u != null)) { for (p = o; p.parentNode; ) p = p.parentNode for ( p = p.querySelectorAll('input[name=' + JSON.stringify('' + u) + '][type="radio"]'), u = 0; u < p.length; u++ ) { var v = p[u] if (v !== o && v.form === o.form) { var w = wd(v) if (!w) throw Error(T(90)) Qt(v), na(v, w) } } } break case 'textarea': On(o, p) break case 'select': ;(u = p.value), u != null && _r(o, !!p.multiple, u, !1) } }), (Wu = _o), (mc = Da) var ih = { usingClientEntryPoint: !1, Events: [Hc, vl, wd, pc, gc, _o] }, Kl = { findFiberByHostInstance: cs, bundleType: 0, version: '18.2.0', rendererPackageName: 'react-dom' }, o_ = { bundleType: Kl.bundleType, version: Kl.version, rendererPackageName: Kl.rendererPackageName, rendererConfig: Kl.rendererConfig, overrideHookState: null, overrideHookStateDeletePath: null, overrideHookStateRenamePath: null, overrideProps: null, overridePropsDeletePath: null, overridePropsRenamePath: null, setErrorHandler: null, setSuspenseHandler: null, scheduleUpdate: null, currentDispatcherRef: we.ReactCurrentDispatcher, findHostInstanceByFiber: function (o) { return (o = _c(o)), o === null ? null : o.stateNode }, findFiberByHostInstance: Kl.findFiberByHostInstance || rh, findHostInstancesForRefresh: null, scheduleRefresh: null, scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, reconcilerVersion: '18.2.0-next-9e3b772b8-20220608', } if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ != 'undefined') { var Yl = __REACT_DEVTOOLS_GLOBAL_HOOK__ if (!Yl.isDisabled && Yl.supportsFiber) try { ;(Go = Yl.inject(o_)), (Tr = Yl) } catch (o) {} } ;(m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ih), (m.createPortal = function (o, u) { var p = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null if (!bf(u)) throw Error(T(200)) return nh(o, u, null, p) }), (m.createRoot = function (o, u) { if (!bf(o)) throw Error(T(299)) var p = !1, v = '', w = _f return ( u != null && (u.unstable_strictMode === !0 && (p = !0), u.identifierPrefix !== void 0 && (v = u.identifierPrefix), u.onRecoverableError !== void 0 && (w = u.onRecoverableError)), (u = mf(o, 1, !1, null, null, p, !1, v, w)), (o[Ui] = u.current), rs(o.nodeType === 8 ? o.parentNode : o), new yf(u) ) }), (m.findDOMNode = function (o) { if (o == null) return null if (o.nodeType === 1) return o var u = o._reactInternals if (u === void 0) throw typeof o.render == 'function' ? Error(T(188)) : ((o = Object.keys(o).join(',')), Error(T(268, o))) return (o = _c(u)), (o = o === null ? null : o.stateNode), o }), (m.flushSync = function (o) { return Da(o) }), (m.hydrate = function (o, u, p) { if (!vu(u)) throw Error(T(200)) return _u(null, o, u, !0, p) }), (m.hydrateRoot = function (o, u, p) { if (!bf(o)) throw Error(T(405)) var v = (p != null && p.hydratedSources) || null, w = !1, E = '', F = _f if ( (p != null && (p.unstable_strictMode === !0 && (w = !0), p.identifierPrefix !== void 0 && (E = p.identifierPrefix), p.onRecoverableError !== void 0 && (F = p.onRecoverableError)), (u = gu(u, null, o, 1, p != null ? p : null, w, !1, E, F)), (o[Ui] = u.current), rs(o), v) ) for (o = 0; o < v.length; o++) (p = v[o]), (w = p._getVersion), (w = w(p._source)), u.mutableSourceEagerHydrationData == null ? (u.mutableSourceEagerHydrationData = [p, w]) : u.mutableSourceEagerHydrationData.push(p, w) return new hu(u) }), (m.render = function (o, u, p) { if (!vu(u)) throw Error(T(200)) return _u(null, o, u, !1, p) }), (m.unmountComponentAtNode = function (o) { if (!vu(o)) throw Error(T(40)) return o._reactRootContainer ? (Da(function () { _u(null, null, o, !1, function () { ;(o._reactRootContainer = null), (o[Ui] = null) }) }), !0) : !1 }), (m.unstable_batchedUpdates = _o), (m.unstable_renderSubtreeIntoContainer = function (o, u, p, v) { if (!vu(p)) throw Error(T(200)) if (o == null || o._reactInternals === void 0) throw Error(T(38)) return _u(o, u, p, !1, v) }), (m.version = '18.2.0-next-9e3b772b8-20220608') }, 745: function (z, m, C) { 'use strict' var I = C(3935) if (!0) (m.createRoot = I.createRoot), (m.hydrateRoot = I.hydrateRoot) else var $ }, 3935: function (z, m, C) { 'use strict' function I() { if ( !( typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ == 'undefined' || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != 'function' ) ) try { __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I) } catch ($) { console.error($) } } I(), (z.exports = C(4448)) }, 5668: function (z, m, C) { 'use strict' function I(Z) { return ( (I = typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' ? function (G) { return typeof G } : function (G) { return G && typeof Symbol == 'function' && G.constructor === Symbol && G !== Symbol.prototype ? 'symbol' : typeof G }), I(Z) ) } Object.defineProperty(m, '__esModule', { value: !0 }), Object.defineProperty(m, 'DraggableCore', { enumerable: !0, get: function () { return ke.default }, }), (m.default = void 0) var $ = Ae(C(7294)), T = _e(C(5697)), V = _e(C(3935)), B = _e(C(6010)), K = C(1825), q = C(2849), pe = C(9280), ke = _e(C(783)), ve = _e(C(5904)), Ie = [ 'axis', 'bounds', 'children', 'defaultPosition', 'defaultClassName', 'defaultClassNameDragging', 'defaultClassNameDragged', 'position', 'positionOffset', 'scale', ] function _e(Z) { return Z && Z.__esModule ? Z : { default: Z } } function Re(Z) { if (typeof WeakMap != 'function') return null var G = new WeakMap(), ue = new WeakMap() return (Re = function (Pe) { return Pe ? ue : G })(Z) } function Ae(Z, G) { if (!G && Z && Z.__esModule) return Z if (Z === null || (I(Z) !== 'object' && typeof Z != 'function')) return { default: Z } var ue = Re(G) if (ue && ue.has(Z)) return ue.get(Z) var he = {}, Pe = Object.defineProperty && Object.getOwnPropertyDescriptor for (var Fe in Z) if (Fe !== 'default' && Object.prototype.hasOwnProperty.call(Z, Fe)) { var Je = Pe ? Object.getOwnPropertyDescriptor(Z, Fe) : null Je && (Je.get || Je.set) ? Object.defineProperty(he, Fe, Je) : (he[Fe] = Z[Fe]) } return (he.default = Z), ue && ue.set(Z, he), he } function Le() { return ( (Le = Object.assign || function (Z) { for (var G = 1; G < arguments.length; G++) { var ue = arguments[G] for (var he in ue) Object.prototype.hasOwnProperty.call(ue, he) && (Z[he] = ue[he]) } return Z }), Le.apply(this, arguments) ) } function xe(Z, G) { if (Z == null) return {} var ue = Ne(Z, G), he, Pe if (Object.getOwnPropertySymbols) { var Fe = Object.getOwnPropertySymbols(Z) for (Pe = 0; Pe < Fe.length; Pe++) (he = Fe[Pe]), !(G.indexOf(he) >= 0) && Object.prototype.propertyIsEnumerable.call(Z, he) && (ue[he] = Z[he]) } return ue } function Ne(Z, G) { if (Z == null) return {} var ue = {}, he = Object.keys(Z), Pe, Fe for (Fe = 0; Fe < he.length; Fe++) (Pe = he[Fe]), !(G.indexOf(Pe) >= 0) && (ue[Pe] = Z[Pe]) return ue } function tt(Z, G) { var ue = Object.keys(Z) if (Object.getOwnPropertySymbols) { var he = Object.getOwnPropertySymbols(Z) G && (he = he.filter(function (Pe) { return Object.getOwnPropertyDescriptor(Z, Pe).enumerable })), ue.push.apply(ue, he) } return ue } function be(Z) { for (var G = 1; G < arguments.length; G++) { var ue = arguments[G] != null ? arguments[G] : {} G % 2 ? tt(Object(ue), !0).forEach(function (he) { W(Z, he, ue[he]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(Z, Object.getOwnPropertyDescriptors(ue)) : tt(Object(ue)).forEach(function (he) { Object.defineProperty(Z, he, Object.getOwnPropertyDescriptor(ue, he)) }) } return Z } function We(Z, G) { return rt(Z) || st(Z, G) || ut(Z, G) || we() } function we() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) } function ut(Z, G) { if (Z) { if (typeof Z == 'string') return nt(Z, G) var ue = Object.prototype.toString.call(Z).slice(8, -1) if ((ue === 'Object' && Z.constructor && (ue = Z.constructor.name), ue === 'Map' || ue === 'Set')) return Array.from(Z) if (ue === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ue)) return nt(Z, G) } } function nt(Z, G) { ;(G == null || G > Z.length) && (G = Z.length) for (var ue = 0, he = new Array(G); ue < G; ue++) he[ue] = Z[ue] return he } function st(Z, G) { var ue = Z == null ? null : (typeof Symbol != 'undefined' && Z[Symbol.iterator]) || Z['@@iterator'] if (ue != null) { var he = [], Pe = !0, Fe = !1, Je, Ue try { for ( ue = ue.call(Z); !(Pe = (Je = ue.next()).done) && (he.push(Je.value), !(G && he.length === G)); Pe = !0 ); } catch (ct) { ;(Fe = !0), (Ue = ct) } finally { try { !Pe && ue.return != null && ue.return() } finally { if (Fe) throw Ue } } return he } } function rt(Z) { if (Array.isArray(Z)) return Z } function ht(Z, G) { if (!(Z instanceof G)) throw new TypeError('Cannot call a class as a function') } function Wt(Z, G) { for (var ue = 0; ue < G.length; ue++) { var he = G[ue] ;(he.enumerable = he.enumerable || !1), (he.configurable = !0), 'value' in he && (he.writable = !0), Object.defineProperty(Z, he.key, he) } } function ee(Z, G, ue) { return G && Wt(Z.prototype, G), ue && Wt(Z, ue), Object.defineProperty(Z, 'prototype', { writable: !1 }), Z } function je(Z, G) { if (typeof G != 'function' && G !== null) throw new TypeError('Super expression must either be null or a function') ;(Z.prototype = Object.create(G && G.prototype, { constructor: { value: Z, writable: !0, configurable: !0 }, })), Object.defineProperty(Z, 'prototype', { writable: !1 }), G && He(Z, G) } function He(Z, G) { return ( (He = Object.setPrototypeOf || function (he, Pe) { return (he.__proto__ = Pe), he }), He(Z, G) ) } function $e(Z) { var G = Se() return function () { var he = re(Z), Pe if (G) { var Fe = re(this).constructor Pe = Reflect.construct(he, arguments, Fe) } else Pe = he.apply(this, arguments) return X(this, Pe) } } function X(Z, G) { if (G && (I(G) === 'object' || typeof G == 'function')) return G if (G !== void 0) throw new TypeError('Derived constructors may only return object or undefined') return Y(Z) } function Y(Z) { if (Z === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called") return Z } function Se() { if (typeof Reflect == 'undefined' || !Reflect.construct || Reflect.construct.sham) return !1 if (typeof Proxy == 'function') return !0 try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0 } catch (Z) { return !1 } } function re(Z) { return ( (re = Object.setPrototypeOf ? Object.getPrototypeOf : function (ue) { return ue.__proto__ || Object.getPrototypeOf(ue) }), re(Z) ) } function W(Z, G, ue) { return ( G in Z ? Object.defineProperty(Z, G, { value: ue, enumerable: !0, configurable: !0, writable: !0 }) : (Z[G] = ue), Z ) } var Q = (function (Z) { je(ue, Z) var G = $e(ue) function ue(he) { var Pe return ( ht(this, ue), (Pe = G.call(this, he)), W(Y(Pe), 'onDragStart', function (Fe, Je) { ;(0, ve.default)('Draggable: onDragStart: %j', Je) var Ue = Pe.props.onStart(Fe, (0, q.createDraggableData)(Y(Pe), Je)) if (Ue === !1) return !1 Pe.setState({ dragging: !0, dragged: !0 }) }), W(Y(Pe), 'onDrag', function (Fe, Je) { if (!Pe.state.dragging) return !1 ;(0, ve.default)('Draggable: onDrag: %j', Je) var Ue = (0, q.createDraggableData)(Y(Pe), Je), ct = { x: Ue.x, y: Ue.y } if (Pe.props.bounds) { var Gt = ct.x, nn = ct.y ;(ct.x += Pe.state.slackX), (ct.y += Pe.state.slackY) var Qt = (0, q.getBoundPosition)(Y(Pe), ct.x, ct.y), sn = We(Qt, 2), Gn = sn[0], Xn = sn[1] ;(ct.x = Gn), (ct.y = Xn), (ct.slackX = Pe.state.slackX + (Gt - ct.x)), (ct.slackY = Pe.state.slackY + (nn - ct.y)), (Ue.x = ct.x), (Ue.y = ct.y), (Ue.deltaX = ct.x - Pe.state.x), (Ue.deltaY = ct.y - Pe.state.y) } var er = Pe.props.onDrag(Fe, Ue) if (er === !1) return !1 Pe.setState(ct) }), W(Y(Pe), 'onDragStop', function (Fe, Je) { if (!Pe.state.dragging) return !1 var Ue = Pe.props.onStop(Fe, (0, q.createDraggableData)(Y(Pe), Je)) if (Ue === !1) return !1 ;(0, ve.default)('Draggable: onDragStop: %j', Je) var ct = { dragging: !1, slackX: 0, slackY: 0 }, Gt = Boolean(Pe.props.position) if (Gt) { var nn = Pe.props.position, Qt = nn.x, sn = nn.y ;(ct.x = Qt), (ct.y = sn) } Pe.setState(ct) }), (Pe.state = { dragging: !1, dragged: !1, x: he.position ? he.position.x : he.defaultPosition.x, y: he.position ? he.position.y : he.defaultPosition.y, prevPropsPosition: be({}, he.position), slackX: 0, slackY: 0, isElementSVG: !1, }), he.position && !(he.onDrag || he.onStop) && console.warn( 'A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.' ), Pe ) } return ( ee( ue, [ { key: 'componentDidMount', value: function () { typeof window.SVGElement != 'undefined' && this.findDOMNode() instanceof window.SVGElement && this.setState({ isElementSVG: !0 }) }, }, { key: 'componentWillUnmount', value: function () { this.setState({ dragging: !1 }) }, }, { key: 'findDOMNode', value: function () { var Pe, Fe, Je return (Pe = (Fe = this.props) === null || Fe === void 0 || (Je = Fe.nodeRef) === null || Je === void 0 ? void 0 : Je.current) !== null && Pe !== void 0 ? Pe : V.default.findDOMNode(this) }, }, { key: 'render', value: function () { var Pe, Fe = this.props, Je = Fe.axis, Ue = Fe.bounds, ct = Fe.children, Gt = Fe.defaultPosition, nn = Fe.defaultClassName, Qt = Fe.defaultClassNameDragging, sn = Fe.defaultClassNameDragged, Gn = Fe.position, Xn = Fe.positionOffset, er = Fe.scale, na = xe(Fe, Ie), zi = {}, Fr = null, Or = Boolean(Gn), _r = !Or || this.state.dragging, $r = Gn || Gt, ra = { x: (0, q.canDragX)(this) && _r ? this.state.x : $r.x, y: (0, q.canDragY)(this) && _r ? this.state.y : $r.y, } this.state.isElementSVG ? (Fr = (0, K.createSVGTransform)(ra, Xn)) : (zi = (0, K.createCSSTransform)(ra, Xn)) var On = (0, B.default)( ct.props.className || '', nn, ((Pe = {}), W(Pe, Qt, this.state.dragging), W(Pe, sn, this.state.dragged), Pe) ) return $.createElement( ke.default, Le({}, na, { onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop }), $.cloneElement($.Children.only(ct), { className: On, style: be(be({}, ct.props.style), zi), transform: Fr, }) ) }, }, ], [ { key: 'getDerivedStateFromProps', value: function (Pe, Fe) { var Je = Pe.position, Ue = Fe.prevPropsPosition return Je && (!Ue || Je.x !== Ue.x || Je.y !== Ue.y) ? ((0, ve.default)('Draggable: getDerivedStateFromProps %j', { position: Je, prevPropsPosition: Ue, }), { x: Je.x, y: Je.y, prevPropsPosition: be({}, Je) }) : null }, }, ] ), ue ) })($.Component) ;(m.default = Q), W(Q, 'displayName', 'Draggable'), W( Q, 'propTypes', be( be({}, ke.default.propTypes), {}, { axis: T.default.oneOf(['both', 'x', 'y', 'none']), bounds: T.default.oneOfType([ T.default.shape({ left: T.default.number, right: T.default.number, top: T.default.number, bottom: T.default.number, }), T.default.string, T.default.oneOf([!1]), ]), defaultClassName: T.default.string, defaultClassNameDragging: T.default.string, defaultClassNameDragged: T.default.string, defaultPosition: T.default.shape({ x: T.default.number, y: T.default.number }), positionOffset: T.default.shape({ x: T.default.oneOfType([T.default.number, T.default.string]), y: T.default.oneOfType([T.default.number, T.default.string]), }), position: T.default.shape({ x: T.default.number, y: T.default.number }), className: pe.dontSetMe, style: pe.dontSetMe, transform: pe.dontSetMe, } ) ), W( Q, 'defaultProps', be( be({}, ke.default.defaultProps), {}, { axis: 'both', bounds: !1, defaultClassName: 'react-draggable', defaultClassNameDragging: 'react-draggable-dragging', defaultClassNameDragged: 'react-draggable-dragged', defaultPosition: { x: 0, y: 0 }, scale: 1, } ) ) }, 783: function (z, m, C) { 'use strict' function I(X) { return ( (I = typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' ? function (Y) { return typeof Y } : function (Y) { return Y && typeof Symbol == 'function' && Y.constructor === Symbol && Y !== Symbol.prototype ? 'symbol' : typeof Y }), I(X) ) } Object.defineProperty(m, '__esModule', { value: !0 }), (m.default = void 0) var $ = Ie(C(7294)), T = ke(C(5697)), V = ke(C(3935)), B = C(1825), K = C(2849), q = C(9280), pe = ke(C(5904)) function ke(X) { return X && X.__esModule ? X : { default: X } } function ve(X) { if (typeof WeakMap != 'function') return null var Y = new WeakMap(), Se = new WeakMap() return (ve = function (W) { return W ? Se : Y })(X) } function Ie(X, Y) { if (!Y && X && X.__esModule) return X if (X === null || (I(X) !== 'object' && typeof X != 'function')) return { default: X } var Se = ve(Y) if (Se && Se.has(X)) return Se.get(X) var re = {}, W = Object.defineProperty && Object.getOwnPropertyDescriptor for (var Q in X) if (Q !== 'default' && Object.prototype.hasOwnProperty.call(X, Q)) { var Z = W ? Object.getOwnPropertyDescriptor(X, Q) : null Z && (Z.get || Z.set) ? Object.defineProperty(re, Q, Z) : (re[Q] = X[Q]) } return (re.default = X), Se && Se.set(X, re), re } function _e(X, Y) { return Ne(X) || xe(X, Y) || Ae(X, Y) || Re() } function Re() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) } function Ae(X, Y) { if (X) { if (typeof X == 'string') return Le(X, Y) var Se = Object.prototype.toString.call(X).slice(8, -1) if ((Se === 'Object' && X.constructor && (Se = X.constructor.name), Se === 'Map' || Se === 'Set')) return Array.from(X) if (Se === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Se)) return Le(X, Y) } } function Le(X, Y) { ;(Y == null || Y > X.length) && (Y = X.length) for (var Se = 0, re = new Array(Y); Se < Y; Se++) re[Se] = X[Se] return re } function xe(X, Y) { var Se = X == null ? null : (typeof Symbol != 'undefined' && X[Symbol.iterator]) || X['@@iterator'] if (Se != null) { var re = [], W = !0, Q = !1, Z, G try { for (Se = Se.call(X); !(W = (Z = Se.next()).done) && (re.push(Z.value), !(Y && re.length === Y)); W = !0); } catch (ue) { ;(Q = !0), (G = ue) } finally { try { !W && Se.return != null && Se.return() } finally { if (Q) throw G } } return re } } function Ne(X) { if (Array.isArray(X)) return X } function tt(X, Y) { if (!(X instanceof Y)) throw new TypeError('Cannot call a class as a function') } function be(X, Y) { for (var Se = 0; Se < Y.length; Se++) { var re = Y[Se] ;(re.enumerable = re.enumerable || !1), (re.configurable = !0), 'value' in re && (re.writable = !0), Object.defineProperty(X, re.key, re) } } function We(X, Y, Se) { return Y && be(X.prototype, Y), Se && be(X, Se), Object.defineProperty(X, 'prototype', { writable: !1 }), X } function we(X, Y) { if (typeof Y != 'function' && Y !== null) throw new TypeError('Super expression must either be null or a function') ;(X.prototype = Object.create(Y && Y.prototype, { constructor: { value: X, writable: !0, configurable: !0 }, })), Object.defineProperty(X, 'prototype', { writable: !1 }), Y && ut(X, Y) } function ut(X, Y) { return ( (ut = Object.setPrototypeOf || function (re, W) { return (re.__proto__ = W), re }), ut(X, Y) ) } function nt(X) { var Y = ht() return function () { var re = Wt(X), W if (Y) { var Q = Wt(this).constructor W = Reflect.construct(re, arguments, Q) } else W = re.apply(this, arguments) return st(this, W) } } function st(X, Y) { if (Y && (I(Y) === 'object' || typeof Y == 'function')) return Y if (Y !== void 0) throw new TypeError('Derived constructors may only return object or undefined') return rt(X) } function rt(X) { if (X === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called") return X } function ht() { if (typeof Reflect == 'undefined' || !Reflect.construct || Reflect.construct.sham) return !1 if (typeof Proxy == 'function') return !0 try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0 } catch (X) { return !1 } } function Wt(X) { return ( (Wt = Object.setPrototypeOf ? Object.getPrototypeOf : function (Se) { return Se.__proto__ || Object.getPrototypeOf(Se) }), Wt(X) ) } function ee(X, Y, Se) { return ( Y in X ? Object.defineProperty(X, Y, { value: Se, enumerable: !0, configurable: !0, writable: !0 }) : (X[Y] = Se), X ) } var je = { touch: { start: 'touchstart', move: 'touchmove', stop: 'touchend' }, mouse: { start: 'mousedown', move: 'mousemove', stop: 'mouseup' }, }, He = je.mouse, $e = (function (X) { we(Se, X) var Y = nt(Se) function Se() { var re tt(this, Se) for (var W = arguments.length, Q = new Array(W), Z = 0; Z < W; Z++) Q[Z] = arguments[Z] return ( (re = Y.call.apply(Y, [this].concat(Q))), ee(rt(re), 'state', { dragging: !1, lastX: NaN, lastY: NaN, touchIdentifier: null }), ee(rt(re), 'mounted', !1), ee(rt(re), 'handleDragStart', function (G) { if ( (re.props.onMouseDown(G), !re.props.allowAnyClick && typeof G.button == 'number' && G.button !== 0) ) return !1 var ue = re.findDOMNode() if (!ue || !ue.ownerDocument || !ue.ownerDocument.body) throw new Error(' not mounted on DragStart!') var he = ue.ownerDocument if ( !( re.props.disabled || !(G.target instanceof he.defaultView.Node) || (re.props.handle && !(0, B.matchesSelectorAndParentsTo)(G.target, re.props.handle, ue)) || (re.props.cancel && (0, B.matchesSelectorAndParentsTo)(G.target, re.props.cancel, ue)) ) ) { G.type === 'touchstart' && G.preventDefault() var Pe = (0, B.getTouchIdentifier)(G) re.setState({ touchIdentifier: Pe }) var Fe = (0, K.getControlPosition)(G, Pe, rt(re)) if (Fe != null) { var Je = Fe.x, Ue = Fe.y, ct = (0, K.createCoreData)(rt(re), Je, Ue) ;(0, pe.default)('DraggableCore: handleDragStart: %j', ct), (0, pe.default)('calling', re.props.onStart) var Gt = re.props.onStart(G, ct) Gt === !1 || re.mounted === !1 || (re.props.enableUserSelectHack && (0, B.addUserSelectStyles)(he), re.setState({ dragging: !0, lastX: Je, lastY: Ue }), (0, B.addEvent)(he, He.move, re.handleDrag), (0, B.addEvent)(he, He.stop, re.handleDragStop)) } } }), ee(rt(re), 'handleDrag', function (G) { var ue = (0, K.getControlPosition)(G, re.state.touchIdentifier, rt(re)) if (ue != null) { var he = ue.x, Pe = ue.y if (Array.isArray(re.props.grid)) { var Fe = he - re.state.lastX, Je = Pe - re.state.lastY, Ue = (0, K.snapToGrid)(re.props.grid, Fe, Je), ct = _e(Ue, 2) if (((Fe = ct[0]), (Je = ct[1]), !Fe && !Je)) return ;(he = re.state.lastX + Fe), (Pe = re.state.lastY + Je) } var Gt = (0, K.createCoreData)(rt(re), he, Pe) ;(0, pe.default)('DraggableCore: handleDrag: %j', Gt) var nn = re.props.onDrag(G, Gt) if (nn === !1 || re.mounted === !1) { try { re.handleDragStop(new MouseEvent('mouseup')) } catch (sn) { var Qt = document.createEvent('MouseEvents') Qt.initMouseEvent('mouseup', !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), re.handleDragStop(Qt) } return } re.setState({ lastX: he, lastY: Pe }) } }), ee(rt(re), 'handleDragStop', function (G) { if (re.state.dragging) { var ue = (0, K.getControlPosition)(G, re.state.touchIdentifier, rt(re)) if (ue != null) { var he = ue.x, Pe = ue.y if (Array.isArray(re.props.grid)) { var Fe = he - re.state.lastX || 0, Je = Pe - re.state.lastY || 0, Ue = (0, K.snapToGrid)(re.props.grid, Fe, Je), ct = _e(Ue, 2) ;(Fe = ct[0]), (Je = ct[1]), (he = re.state.lastX + Fe), (Pe = re.state.lastY + Je) } var Gt = (0, K.createCoreData)(rt(re), he, Pe), nn = re.props.onStop(G, Gt) if (nn === !1 || re.mounted === !1) return !1 var Qt = re.findDOMNode() Qt && re.props.enableUserSelectHack && (0, B.removeUserSelectStyles)(Qt.ownerDocument), (0, pe.default)('DraggableCore: handleDragStop: %j', Gt), re.setState({ dragging: !1, lastX: NaN, lastY: NaN }), Qt && ((0, pe.default)('DraggableCore: Removing handlers'), (0, B.removeEvent)(Qt.ownerDocument, He.move, re.handleDrag), (0, B.removeEvent)(Qt.ownerDocument, He.stop, re.handleDragStop)) } } }), ee(rt(re), 'onMouseDown', function (G) { return (He = je.mouse), re.handleDragStart(G) }), ee(rt(re), 'onMouseUp', function (G) { return (He = je.mouse), re.handleDragStop(G) }), ee(rt(re), 'onTouchStart', function (G) { return (He = je.touch), re.handleDragStart(G) }), ee(rt(re), 'onTouchEnd', function (G) { return (He = je.touch), re.handleDragStop(G) }), re ) } return ( We(Se, [ { key: 'componentDidMount', value: function () { this.mounted = !0 var W = this.findDOMNode() W && (0, B.addEvent)(W, je.touch.start, this.onTouchStart, { passive: !1 }) }, }, { key: 'componentWillUnmount', value: function () { this.mounted = !1 var W = this.findDOMNode() if (W) { var Q = W.ownerDocument ;(0, B.removeEvent)(Q, je.mouse.move, this.handleDrag), (0, B.removeEvent)(Q, je.touch.move, this.handleDrag), (0, B.removeEvent)(Q, je.mouse.stop, this.handleDragStop), (0, B.removeEvent)(Q, je.touch.stop, this.handleDragStop), (0, B.removeEvent)(W, je.touch.start, this.onTouchStart, { passive: !1 }), this.props.enableUserSelectHack && (0, B.removeUserSelectStyles)(Q) } }, }, { key: 'findDOMNode', value: function () { var W, Q, Z return (W = this.props) !== null && W !== void 0 && W.nodeRef ? (Q = this.props) === null || Q === void 0 || (Z = Q.nodeRef) === null || Z === void 0 ? void 0 : Z.current : V.default.findDOMNode(this) }, }, { key: 'render', value: function () { return $.cloneElement($.Children.only(this.props.children), { onMouseDown: this.onMouseDown, onMouseUp: this.onMouseUp, onTouchEnd: this.onTouchEnd, }) }, }, ]), Se ) })($.Component) ;(m.default = $e), ee($e, 'displayName', 'DraggableCore'), ee($e, 'propTypes', { allowAnyClick: T.default.bool, disabled: T.default.bool, enableUserSelectHack: T.default.bool, offsetParent: function (Y, Se) { if (Y[Se] && Y[Se].nodeType !== 1) throw new Error("Draggable's offsetParent must be a DOM Node.") }, grid: T.default.arrayOf(T.default.number), handle: T.default.string, cancel: T.default.string, nodeRef: T.default.object, onStart: T.default.func, onDrag: T.default.func, onStop: T.default.func, onMouseDown: T.default.func, scale: T.default.number, className: q.dontSetMe, style: q.dontSetMe, transform: q.dontSetMe, }), ee($e, 'defaultProps', { allowAnyClick: !1, disabled: !1, enableUserSelectHack: !0, onStart: function () {}, onDrag: function () {}, onStop: function () {}, onMouseDown: function () {}, scale: 1, }) }, 1193: function (z, m, C) { 'use strict' var I = C(5668), $ = I.default, T = I.DraggableCore ;(z.exports = $), (z.exports.default = $), (z.exports.DraggableCore = T) }, 1825: function (z, m, C) { 'use strict' function I(ee) { return ( (I = typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' ? function (je) { return typeof je } : function (je) { return je && typeof Symbol == 'function' && je.constructor === Symbol && je !== Symbol.prototype ? 'symbol' : typeof je }), I(ee) ) } Object.defineProperty(m, '__esModule', { value: !0 }), (m.addClassName = ht), (m.addEvent = _e), (m.addUserSelectStyles = st), (m.createCSSTransform = be), (m.createSVGTransform = We), (m.getTouch = ut), (m.getTouchIdentifier = nt), (m.getTranslation = we), (m.innerHeight = xe), (m.innerWidth = Ne), (m.matchesSelector = ve), (m.matchesSelectorAndParentsTo = Ie), (m.offsetXYFromParent = tt), (m.outerHeight = Ae), (m.outerWidth = Le), (m.removeClassName = Wt), (m.removeEvent = Re), (m.removeUserSelectStyles = rt) var $ = C(9280), T = B(C(8650)) function V(ee) { if (typeof WeakMap != 'function') return null var je = new WeakMap(), He = new WeakMap() return (V = function (X) { return X ? He : je })(ee) } function B(ee, je) { if (!je && ee && ee.__esModule) return ee if (ee === null || (I(ee) !== 'object' && typeof ee != 'function')) return { default: ee } var He = V(je) if (He && He.has(ee)) return He.get(ee) var $e = {}, X = Object.defineProperty && Object.getOwnPropertyDescriptor for (var Y in ee) if (Y !== 'default' && Object.prototype.hasOwnProperty.call(ee, Y)) { var Se = X ? Object.getOwnPropertyDescriptor(ee, Y) : null Se && (Se.get || Se.set) ? Object.defineProperty($e, Y, Se) : ($e[Y] = ee[Y]) } return ($e.default = ee), He && He.set(ee, $e), $e } function K(ee, je) { var He = Object.keys(ee) if (Object.getOwnPropertySymbols) { var $e = Object.getOwnPropertySymbols(ee) je && ($e = $e.filter(function (X) { return Object.getOwnPropertyDescriptor(ee, X).enumerable })), He.push.apply(He, $e) } return He } function q(ee) { for (var je = 1; je < arguments.length; je++) { var He = arguments[je] != null ? arguments[je] : {} je % 2 ? K(Object(He), !0).forEach(function ($e) { pe(ee, $e, He[$e]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(ee, Object.getOwnPropertyDescriptors(He)) : K(Object(He)).forEach(function ($e) { Object.defineProperty(ee, $e, Object.getOwnPropertyDescriptor(He, $e)) }) } return ee } function pe(ee, je, He) { return ( je in ee ? Object.defineProperty(ee, je, { value: He, enumerable: !0, configurable: !0, writable: !0 }) : (ee[je] = He), ee ) } var ke = '' function ve(ee, je) { return ( ke || (ke = (0, $.findInArray)( ['matches', 'webkitMatchesSelector', 'mozMatchesSelector', 'msMatchesSelector', 'oMatchesSelector'], function (He) { return (0, $.isFunction)(ee[He]) } )), (0, $.isFunction)(ee[ke]) ? ee[ke](je) : !1 ) } function Ie(ee, je, He) { var $e = ee do { if (ve($e, je)) return !0 if ($e === He) return !1 $e = $e.parentNode } while ($e) return !1 } function _e(ee, je, He, $e) { if (ee) { var X = q({ capture: !0 }, $e) ee.addEventListener ? ee.addEventListener(je, He, X) : ee.attachEvent ? ee.attachEvent('on' + je, He) : (ee['on' + je] = He) } } function Re(ee, je, He, $e) { if (ee) { var X = q({ capture: !0 }, $e) ee.removeEventListener ? ee.removeEventListener(je, He, X) : ee.detachEvent ? ee.detachEvent('on' + je, He) : (ee['on' + je] = null) } } function Ae(ee) { var je = ee.clientHeight, He = ee.ownerDocument.defaultView.getComputedStyle(ee) return (je += (0, $.int)(He.borderTopWidth)), (je += (0, $.int)(He.borderBottomWidth)), je } function Le(ee) { var je = ee.clientWidth, He = ee.ownerDocument.defaultView.getComputedStyle(ee) return (je += (0, $.int)(He.borderLeftWidth)), (je += (0, $.int)(He.borderRightWidth)), je } function xe(ee) { var je = ee.clientHeight, He = ee.ownerDocument.defaultView.getComputedStyle(ee) return (je -= (0, $.int)(He.paddingTop)), (je -= (0, $.int)(He.paddingBottom)), je } function Ne(ee) { var je = ee.clientWidth, He = ee.ownerDocument.defaultView.getComputedStyle(ee) return (je -= (0, $.int)(He.paddingLeft)), (je -= (0, $.int)(He.paddingRight)), je } function tt(ee, je, He) { var $e = je === je.ownerDocument.body, X = $e ? { left: 0, top: 0 } : je.getBoundingClientRect(), Y = (ee.clientX + je.scrollLeft - X.left) / He, Se = (ee.clientY + je.scrollTop - X.top) / He return { x: Y, y: Se } } function be(ee, je) { var He = we(ee, je, 'px') return pe({}, (0, T.browserPrefixToKey)('transform', T.default), He) } function We(ee, je) { var He = we(ee, je, '') return He } function we(ee, je, He) { var $e = ee.x, X = ee.y, Y = 'translate('.concat($e).concat(He, ',').concat(X).concat(He, ')') if (je) { var Se = ''.concat(typeof je.x == 'string' ? je.x : je.x + He), re = ''.concat(typeof je.y == 'string' ? je.y : je.y + He) Y = 'translate('.concat(Se, ', ').concat(re, ')') + Y } return Y } function ut(ee, je) { return ( (ee.targetTouches && (0, $.findInArray)(ee.targetTouches, function (He) { return je === He.identifier })) || (ee.changedTouches && (0, $.findInArray)(ee.changedTouches, function (He) { return je === He.identifier })) ) } function nt(ee) { if (ee.targetTouches && ee.targetTouches[0]) return ee.targetTouches[0].identifier if (ee.changedTouches && ee.changedTouches[0]) return ee.changedTouches[0].identifier } function st(ee) { if (ee) { var je = ee.getElementById('react-draggable-style-el') je || ((je = ee.createElement('style')), (je.type = 'text/css'), (je.id = 'react-draggable-style-el'), (je.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;} `), (je.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;} `), ee.getElementsByTagName('head')[0].appendChild(je)), ee.body && ht(ee.body, 'react-draggable-transparent-selection') } } function rt(ee) { if (ee) try { if ((ee.body && Wt(ee.body, 'react-draggable-transparent-selection'), ee.selection)) ee.selection.empty() else { var je = (ee.defaultView || window).getSelection() je && je.type !== 'Caret' && je.removeAllRanges() } } catch (He) {} } function ht(ee, je) { ee.classList ? ee.classList.add(je) : ee.className.match(new RegExp('(?:^|\\s)'.concat(je, '(?!\\S)'))) || (ee.className += ' '.concat(je)) } function Wt(ee, je) { ee.classList ? ee.classList.remove(je) : (ee.className = ee.className.replace(new RegExp('(?:^|\\s)'.concat(je, '(?!\\S)'), 'g'), '')) } }, 8650: function (z, m) { 'use strict' Object.defineProperty(m, '__esModule', { value: !0 }), (m.browserPrefixToKey = $), (m.browserPrefixToStyle = T), (m.default = void 0), (m.getPrefix = I) var C = ['Moz', 'Webkit', 'O', 'ms'] function I() { var K, q, pe = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 'transform' if (typeof window == 'undefined') return '' var ke = (K = window.document) === null || K === void 0 || (q = K.documentElement) === null || q === void 0 ? void 0 : q.style if (!ke || pe in ke) return '' for (var ve = 0; ve < C.length; ve++) if ($(pe, C[ve]) in ke) return C[ve] return '' } function $(K, q) { return q ? ''.concat(q).concat(V(K)) : K } function T(K, q) { return q ? '-'.concat(q.toLowerCase(), '-').concat(K) : K } function V(K) { for (var q = '', pe = !0, ke = 0; ke < K.length; ke++) pe ? ((q += K[ke].toUpperCase()), (pe = !1)) : K[ke] === '-' ? (pe = !0) : (q += K[ke]) return q } var B = I() m.default = B }, 5904: function (z, m) { 'use strict' Object.defineProperty(m, '__esModule', { value: !0 }), (m.default = C) function C() { var I } }, 2849: function (z, m, C) { 'use strict' Object.defineProperty(m, '__esModule', { value: !0 }), (m.canDragX = B), (m.canDragY = K), (m.createCoreData = pe), (m.createDraggableData = ke), (m.getBoundPosition = T), (m.getControlPosition = q), (m.snapToGrid = V) var I = C(9280), $ = C(1825) function T(_e, Re, Ae) { if (!_e.props.bounds) return [Re, Ae] var Le = _e.props.bounds Le = typeof Le == 'string' ? Le : ve(Le) var xe = Ie(_e) if (typeof Le == 'string') { var Ne = xe.ownerDocument, tt = Ne.defaultView, be if ((Le === 'parent' ? (be = xe.parentNode) : (be = Ne.querySelector(Le)), !(be instanceof tt.HTMLElement))) throw new Error('Bounds selector "' + Le + '" could not find an element.') var We = be, we = tt.getComputedStyle(xe), ut = tt.getComputedStyle(We) Le = { left: -xe.offsetLeft + (0, I.int)(ut.paddingLeft) + (0, I.int)(we.marginLeft), top: -xe.offsetTop + (0, I.int)(ut.paddingTop) + (0, I.int)(we.marginTop), right: (0, $.innerWidth)(We) - (0, $.outerWidth)(xe) - xe.offsetLeft + (0, I.int)(ut.paddingRight) - (0, I.int)(we.marginRight), bottom: (0, $.innerHeight)(We) - (0, $.outerHeight)(xe) - xe.offsetTop + (0, I.int)(ut.paddingBottom) - (0, I.int)(we.marginBottom), } } return ( (0, I.isNum)(Le.right) && (Re = Math.min(Re, Le.right)), (0, I.isNum)(Le.bottom) && (Ae = Math.min(Ae, Le.bottom)), (0, I.isNum)(Le.left) && (Re = Math.max(Re, Le.left)), (0, I.isNum)(Le.top) && (Ae = Math.max(Ae, Le.top)), [Re, Ae] ) } function V(_e, Re, Ae) { var Le = Math.round(Re / _e[0]) * _e[0], xe = Math.round(Ae / _e[1]) * _e[1] return [Le, xe] } function B(_e) { return _e.props.axis === 'both' || _e.props.axis === 'x' } function K(_e) { return _e.props.axis === 'both' || _e.props.axis === 'y' } function q(_e, Re, Ae) { var Le = typeof Re == 'number' ? (0, $.getTouch)(_e, Re) : null if (typeof Re == 'number' && !Le) return null var xe = Ie(Ae), Ne = Ae.props.offsetParent || xe.offsetParent || xe.ownerDocument.body return (0, $.offsetXYFromParent)(Le || _e, Ne, Ae.props.scale) } function pe(_e, Re, Ae) { var Le = _e.state, xe = !(0, I.isNum)(Le.lastX), Ne = Ie(_e) return xe ? { node: Ne, deltaX: 0, deltaY: 0, lastX: Re, lastY: Ae, x: Re, y: Ae } : { node: Ne, deltaX: Re - Le.lastX, deltaY: Ae - Le.lastY, lastX: Le.lastX, lastY: Le.lastY, x: Re, y: Ae } } function ke(_e, Re) { var Ae = _e.props.scale return { node: Re.node, x: _e.state.x + Re.deltaX / Ae, y: _e.state.y + Re.deltaY / Ae, deltaX: Re.deltaX / Ae, deltaY: Re.deltaY / Ae, lastX: _e.state.x, lastY: _e.state.y, } } function ve(_e) { return { left: _e.left, top: _e.top, right: _e.right, bottom: _e.bottom } } function Ie(_e) { var Re = _e.findDOMNode() if (!Re) throw new Error(': Unmounted during event!') return Re } }, 9280: function (z, m) { 'use strict' Object.defineProperty(m, '__esModule', { value: !0 }), (m.dontSetMe = V), (m.findInArray = C), (m.int = T), (m.isFunction = I), (m.isNum = $) function C(B, K) { for (var q = 0, pe = B.length; q < pe; q++) if (K.apply(K, [B[q], q, B])) return B[q] } function I(B) { return typeof B == 'function' || Object.prototype.toString.call(B) === '[object Function]' } function $(B) { return typeof B == 'number' && !isNaN(B) } function T(B) { return parseInt(B, 10) } function V(B, K, q) { if (B[K]) return new Error( 'Invalid prop '.concat(K, ' passed to ').concat(q, ' - do not set this, set it on the child.') ) } }, 9921: function (z, m) { 'use strict' var C = typeof Symbol == 'function' && Symbol.for, I = C ? Symbol.for('react.element') : 60103, $ = C ? Symbol.for('react.portal') : 60106, T = C ? Symbol.for('react.fragment') : 60107, V = C ? Symbol.for('react.strict_mode') : 60108, B = C ? Symbol.for('react.profiler') : 60114, K = C ? Symbol.for('react.provider') : 60109, q = C ? Symbol.for('react.context') : 60110, pe = C ? Symbol.for('react.async_mode') : 60111, ke = C ? Symbol.for('react.concurrent_mode') : 60111, ve = C ? Symbol.for('react.forward_ref') : 60112, Ie = C ? Symbol.for('react.suspense') : 60113, _e = C ? Symbol.for('react.suspense_list') : 60120, Re = C ? Symbol.for('react.memo') : 60115, Ae = C ? Symbol.for('react.lazy') : 60116, Le = C ? Symbol.for('react.block') : 60121, xe = C ? Symbol.for('react.fundamental') : 60117, Ne = C ? Symbol.for('react.responder') : 60118, tt = C ? Symbol.for('react.scope') : 60119 function be(we) { if (typeof we == 'object' && we !== null) { var ut = we.$$typeof switch (ut) { case I: switch (((we = we.type), we)) { case pe: case ke: case T: case B: case V: case Ie: return we default: switch (((we = we && we.$$typeof), we)) { case q: case ve: case Ae: case Re: case K: return we default: return ut } } case $: return ut } } } function We(we) { return be(we) === ke } ;(m.AsyncMode = pe), (m.ConcurrentMode = ke), (m.ContextConsumer = q), (m.ContextProvider = K), (m.Element = I), (m.ForwardRef = ve), (m.Fragment = T), (m.Lazy = Ae), (m.Memo = Re), (m.Portal = $), (m.Profiler = B), (m.StrictMode = V), (m.Suspense = Ie), (m.isAsyncMode = function (we) { return We(we) || be(we) === pe }), (m.isConcurrentMode = We), (m.isContextConsumer = function (we) { return be(we) === q }), (m.isContextProvider = function (we) { return be(we) === K }), (m.isElement = function (we) { return typeof we == 'object' && we !== null && we.$$typeof === I }), (m.isForwardRef = function (we) { return be(we) === ve }), (m.isFragment = function (we) { return be(we) === T }), (m.isLazy = function (we) { return be(we) === Ae }), (m.isMemo = function (we) { return be(we) === Re }), (m.isPortal = function (we) { return be(we) === $ }), (m.isProfiler = function (we) { return be(we) === B }), (m.isStrictMode = function (we) { return be(we) === V }), (m.isSuspense = function (we) { return be(we) === Ie }), (m.isValidElementType = function (we) { return ( typeof we == 'string' || typeof we == 'function' || we === T || we === ke || we === B || we === V || we === Ie || we === _e || (typeof we == 'object' && we !== null && (we.$$typeof === Ae || we.$$typeof === Re || we.$$typeof === K || we.$$typeof === q || we.$$typeof === ve || we.$$typeof === xe || we.$$typeof === Ne || we.$$typeof === tt || we.$$typeof === Le)) ) }), (m.typeOf = be) }, 9864: function (z, m, C) { 'use strict' z.exports = C(9921) }, 7571: function (z, m, C) { 'use strict' Object.defineProperty(m, '__esModule', { value: !0 }) var I = C(7294), $ = B(I), T = C(5697), V = B(T) function B(q) { return q && q.__esModule ? q : { default: q } } var K = function (pe) { return $.default.createElement( 'button', { className: pe.classNames.clearAll, onClick: pe.onClick }, 'Clear all' ) } ;(K.propTypes = { classNames: V.default.object, onClick: V.default.func }), (m.default = K) }, 2486: function (z, m, C) { 'use strict' var I ;(I = { value: !0 }), (I = I = m.V = void 0) var $ = Object.assign || function (W) { for (var Q = 1; Q < arguments.length; Q++) { var Z = arguments[Q] for (var G in Z) Object.prototype.hasOwnProperty.call(Z, G) && (W[G] = Z[G]) } return W }, T = (function () { function W(Q, Z) { for (var G = 0; G < Z.length; G++) { var ue = Z[G] ;(ue.enumerable = ue.enumerable || !1), (ue.configurable = !0), 'value' in ue && (ue.writable = !0), Object.defineProperty(Q, ue.key, ue) } } return function (Q, Z, G) { return Z && W(Q.prototype, Z), G && W(Q, G), Q } })(), V = C(7294), B = ht(V), K = C(1976), q = C(2250), pe = C(8446), ke = ht(pe), ve = C(308), Ie = ht(ve), _e = C(4908), Re = ht(_e), Ae = C(7571), Le = ht(Ae), xe = C(1331), Ne = ht(xe), tt = C(5697), be = ht(tt), We = C(4184), we = ht(We), ut = C(5129), nt = ht(ut), st = C(3332), rt = C(1117) function ht(W) { return W && W.__esModule ? W : { default: W } } function Wt(W) { if (Array.isArray(W)) { for (var Q = 0, Z = Array(W.length); Q < W.length; Q++) Z[Q] = W[Q] return Z } else return Array.from(W) } function ee(W, Q) { var Z = {} for (var G in W) Q.indexOf(G) >= 0 || (Object.prototype.hasOwnProperty.call(W, G) && (Z[G] = W[G])) return Z } function je(W, Q, Z) { return ( Q in W ? Object.defineProperty(W, Q, { value: Z, enumerable: !0, configurable: !0, writable: !0 }) : (W[Q] = Z), W ) } function He(W, Q) { if (!(W instanceof Q)) throw new TypeError('Cannot call a class as a function') } function $e(W, Q) { if (!W) throw new ReferenceError("this hasn't been initialised - super() hasn't been called") return Q && (typeof Q == 'object' || typeof Q == 'function') ? Q : W } function X(W, Q) { if (typeof Q != 'function' && Q !== null) throw new TypeError('Super expression must either be null or a function, not ' + typeof Q) ;(W.prototype = Object.create(Q && Q.prototype, { constructor: { value: W, enumerable: !1, writable: !0, configurable: !0 }, })), Q && (Object.setPrototypeOf ? Object.setPrototypeOf(W, Q) : (W.__proto__ = Q)) } var Y = (function (W) { X(Q, W) function Q(Z) { He(this, Q) var G = $e(this, (Q.__proto__ || Object.getPrototypeOf(Q)).call(this, Z)) Se.call(G), Z.inline || console.warn( '[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.' ) var ue = Z.suggestions return ( (G.state = { suggestions: ue, query: '', isFocused: !1, selectedIndex: -1, selectionMode: !1, ariaLiveStatus: '', currentEditIndex: -1, }), (G.reactTagsRef = (0, V.createRef)()), (G.handleFocus = G.handleFocus.bind(G)), (G.handleBlur = G.handleBlur.bind(G)), (G.handleKeyDown = G.handleKeyDown.bind(G)), (G.handleChange = G.handleChange.bind(G)), (G.moveTag = G.moveTag.bind(G)), (G.handlePaste = G.handlePaste.bind(G)), (G.handleSuggestionHover = G.handleSuggestionHover.bind(G)), (G.handleSuggestionClick = G.handleSuggestionClick.bind(G)), G ) } return ( T(Q, [ { key: 'componentDidMount', value: function () { var G = this.props, ue = G.autofocus, he = G.readOnly ue && !he && this.resetAndFocusInput() }, }, { key: 'componentDidUpdate', value: function (G) { ;(0, ke.default)(G.suggestions, this.props.suggestions) || this.updateSuggestions() }, }, { key: 'handleDelete', value: function (G, ue) { ue.preventDefault(), ue.stopPropagation() var he = this.props.tags.slice() if (he.length !== 0) { var Pe = 'Tag at index ' + G + ' with value ' + he[G].id + ' deleted.' this.props.handleDelete(G, ue) var Fe = this.reactTagsRef.current.querySelectorAll('.ReactTags__remove'), Je = void 0, Ue = void 0, ct = void 0 G === 0 && he.length > 1 ? ((Je = Fe[0]), (Ue = 0), (ct = he[1])) : ((Je = Fe[G - 1]), (Ue = G - 1), (ct = he[Ue])), Je || ((Ue = -1), (Je = this.textInput)), Ue >= 0 ? (Pe += ' Tag at index ' + Ue + ' with value ' + ct.id + ' focussed. Press backspace to remove') : (Pe += 'Input focussed. Press enter to add a new tag'), Je.focus(), this.setState({ ariaLiveStatus: Pe }) } }, }, { key: 'handleTagClick', value: function (G, ue, he) { var Pe = this, Fe = this.props, Je = Fe.editable, Ue = Fe.handleTagClick, ct = Fe.labelField Je && this.setState({ currentEditIndex: G, query: ue[ct] }, function () { Pe.tagInput.focus() }), Ue && Ue(G, he) }, }, { key: 'handleChange', value: function (G) { this.props.handleInputChange && this.props.handleInputChange(G.target.value) var ue = G.target.value.trim() this.setState({ query: ue }, this.updateSuggestions) }, }, { key: 'handleFocus', value: function (G) { var ue = G.target.value this.props.handleInputFocus && this.props.handleInputFocus(ue), this.setState({ isFocused: !0 }) }, }, { key: 'handleBlur', value: function (G) { var ue = G.target.value this.props.handleInputBlur && (this.props.handleInputBlur(ue), this.textInput && (this.textInput.value = '')), this.setState({ isFocused: !1, currentEditIndex: -1 }) }, }, { key: 'handleKeyDown', value: function (G) { var ue = this.state, he = ue.query, Pe = ue.selectedIndex, Fe = ue.suggestions, Je = ue.selectionMode if ( (G.keyCode === rt.KEYS.ESCAPE && (G.preventDefault(), G.stopPropagation(), this.setState({ selectedIndex: -1, selectionMode: !1, suggestions: [], currentEditIndex: -1 })), this.props.delimiters.indexOf(G.keyCode) !== -1 && !G.shiftKey) ) { ;(G.keyCode !== rt.KEYS.TAB || he !== '') && G.preventDefault() var Ue = Je && Pe !== -1 ? Fe[Pe] : je({ id: he }, this.props.labelField, he) Ue !== '' && this.addTag(Ue) } G.keyCode === rt.KEYS.BACKSPACE && he === '' && this.props.allowDeleteFromEmptyInput && this.handleDelete(this.props.tags.length - 1, G), G.keyCode === rt.KEYS.UP_ARROW && (G.preventDefault(), this.setState({ selectedIndex: Pe <= 0 ? Fe.length - 1 : Pe - 1, selectionMode: !0 })), G.keyCode === rt.KEYS.DOWN_ARROW && (G.preventDefault(), this.setState({ selectedIndex: Fe.length === 0 ? -1 : (Pe + 1) % Fe.length, selectionMode: !0 })) }, }, { key: 'handlePaste', value: function (G) { var ue = this if (this.props.allowAdditionFromPaste) { G.preventDefault() var he = G.clipboardData || window.clipboardData, Pe = he.getData('text'), Fe = this.props.maxLength, Je = Fe === void 0 ? Pe.length : Fe, Ue = Math.min(Je, Pe.length), ct = he.getData('text').substr(0, Ue), Gt = (0, st.buildRegExpFromDelimiters)(this.props.delimiters), nn = ct.split(Gt) ;(0, Re.default)(nn).forEach(function (Qt) { return ue.addTag(je({ id: Qt }, ue.props.labelField, Qt)) }) } }, }, { key: 'handleSuggestionClick', value: function (G) { this.addTag(this.state.suggestions[G]) }, }, { key: 'handleSuggestionHover', value: function (G) { this.setState({ selectedIndex: G, selectionMode: !0 }) }, }, { key: 'moveTag', value: function (G, ue) { var he = this.props.tags, Pe = he[G] this.props.handleDrag(Pe, G, ue) }, }, { key: 'render', value: function () { var G = this, ue = this.getTagItems(), he = $({}, rt.DEFAULT_CLASSNAMES, this.props.classNames), Pe = this.state.query.trim(), Fe = this.state.selectedIndex, Je = this.state.suggestions, Ue = this.props, ct = Ue.placeholder, Gt = Ue.name, nn = Ue.id, Qt = Ue.maxLength, sn = Ue.inline, Gn = Ue.inputFieldPosition, Xn = Ue.inputValue, er = Ue.inputProps, na = Ue.clearAll, zi = Ue.tags, Fr = sn ? Gn : rt.INPUT_FIELD_POSITIONS.BOTTOM, Or = this.props.readOnly ? null : B.default.createElement( 'div', { className: he.tagInput }, B.default.createElement( 'input', $({}, er, { ref: function ($r) { G.textInput = $r }, className: he.tagInputField, type: 'text', placeholder: ct, 'aria-label': ct, onFocus: this.handleFocus, onBlur: this.handleBlur, onChange: this.handleChange, onKeyDown: this.handleKeyDown, onPaste: this.handlePaste, name: Gt, id: nn, maxLength: Qt, value: Xn, 'data-automation': 'input', 'data-testid': 'input', }) ), B.default.createElement(Ne.default, { query: Pe, suggestions: Je, labelField: this.props.labelField, selectedIndex: Fe, handleClick: this.handleSuggestionClick, handleHover: this.handleSuggestionHover, minQueryLength: this.props.minQueryLength, shouldRenderSuggestions: this.props.shouldRenderSuggestions, isFocused: this.state.isFocused, classNames: he, renderSuggestion: this.props.renderSuggestion, }), na && zi.length > 0 && B.default.createElement(Le.default, { classNames: he, onClick: this.clearAll }) ) return B.default.createElement( 'div', { className: (0, we.default)(he.tags, 'react-tags-wrapper'), ref: this.reactTagsRef }, B.default.createElement( 'p', { role: 'alert', className: 'sr-only', style: { position: 'absolute', overflow: 'hidden', clip: 'rect(0 0 0 0)', margin: '-1px', padding: 0, width: '1px', height: '1px', border: 0, }, }, this.state.ariaLiveStatus ), Fr === rt.INPUT_FIELD_POSITIONS.TOP && Or, B.default.createElement( 'div', { className: he.selected }, ue, Fr === rt.INPUT_FIELD_POSITIONS.INLINE && Or ), Fr === rt.INPUT_FIELD_POSITIONS.BOTTOM && Or ) }, }, ]), Q ) })(V.Component) ;(Y.propTypes = { placeholder: be.default.string, labelField: be.default.string, suggestions: be.default.arrayOf(be.default.shape({ id: be.default.string.isRequired })), delimiters: be.default.arrayOf(be.default.number), autofocus: be.default.bool, inline: be.default.bool, inputFieldPosition: be.default.oneOf([ rt.INPUT_FIELD_POSITIONS.INLINE, rt.INPUT_FIELD_POSITIONS.TOP, rt.INPUT_FIELD_POSITIONS.BOTTOM, ]), handleDelete: be.default.func, handleAddition: be.default.func, onTagUpdate: be.default.func, handleDrag: be.default.func, handleFilterSuggestions: be.default.func, handleTagClick: be.default.func, allowDeleteFromEmptyInput: be.default.bool, allowAdditionFromPaste: be.default.bool, allowDragDrop: be.default.bool, handleInputChange: be.default.func, handleInputFocus: be.default.func, handleInputBlur: be.default.func, minQueryLength: be.default.number, shouldRenderSuggestions: be.default.func, removeComponent: be.default.func, autocomplete: be.default.oneOfType([be.default.bool, be.default.number]), readOnly: be.default.bool, classNames: be.default.object, name: be.default.string, id: be.default.string, maxLength: be.default.number, inputValue: be.default.string, tags: be.default.arrayOf( be.default.shape({ id: be.default.string.isRequired, className: be.default.string }) ), allowUnique: be.default.bool, renderSuggestion: be.default.func, inputProps: be.default.object, editable: be.default.bool, clearAll: be.default.bool, onClearAll: be.default.func, }), (Y.defaultProps = { placeholder: rt.DEFAULT_PLACEHOLDER, labelField: rt.DEFAULT_LABEL_FIELD, suggestions: [], delimiters: [].concat(Wt(rt.KEYS.ENTER), [rt.KEYS.TAB]), autofocus: !0, inline: !0, inputFieldPosition: rt.INPUT_FIELD_POSITIONS.INLINE, handleDelete: Ie.default, handleAddition: Ie.default, allowDeleteFromEmptyInput: !0, allowAdditionFromPaste: !0, autocomplete: !1, readOnly: !1, allowUnique: !0, allowDragDrop: !0, tags: [], inputProps: {}, onTagUpdate: Ie.default, editable: !1, clearAll: !1, handleClearAll: Ie.default, }) var Se = function () { var Q = this ;(this.filteredSuggestions = function (Z) { var G = Q.props.suggestions if (Q.props.allowUnique) { var ue = Q.props.tags.map(function (Fe) { return Fe.id.toLowerCase() }) G = G.filter(function (Fe) { return !ue.includes(Fe.id.toLowerCase()) }) } if (Q.props.handleFilterSuggestions) return Q.props.handleFilterSuggestions(Z, G) var he = G.filter(function (Fe) { return Q.getQueryIndex(Z, Fe) === 0 }), Pe = G.filter(function (Fe) { return Q.getQueryIndex(Z, Fe) > 0 }) return he.concat(Pe) }), (this.getQueryIndex = function (Z, G) { return G[Q.props.labelField].toLowerCase().indexOf(Z.toLowerCase()) }), (this.resetAndFocusInput = function () { Q.setState({ query: '' }), Q.textInput && ((Q.textInput.value = ''), Q.textInput.focus()) }), (this.updateSuggestions = function () { var Z = Q.state, G = Z.query, ue = Z.selectedIndex, he = Q.filteredSuggestions(G) Q.setState({ suggestions: he, selectedIndex: ue >= he.length ? he.length - 1 : ue }) }), (this.addTag = function (Z) { var G = Q.props, ue = G.tags, he = G.labelField, Pe = G.allowUnique, Fe = Q.state.currentEditIndex if (!(!Z.id || !Z[he])) { var Je = ue.map(function (ct) { return ct.id.toLowerCase() }) if (!(Pe && Je.indexOf(Z.id.toLowerCase()) >= 0)) { if (Q.props.autocomplete) { var Ue = Q.filteredSuggestions(Z[he]) ;((Q.props.autocomplete === 1 && Ue.length === 1) || (Q.props.autocomplete === !0 && Ue.length)) && (Z = Ue[0]) } Fe !== -1 && Q.props.onTagUpdate ? Q.props.onTagUpdate(Fe, Z) : Q.props.handleAddition(Z), Q.setState({ query: '', selectionMode: !1, selectedIndex: -1, currentEditIndex: -1 }), Q.resetAndFocusInput() } } }), (this.clearAll = function () { Q.props.onClearAll && Q.props.onClearAll() }), (this.getTagItems = function () { var Z = Q.props, G = Z.tags, ue = Z.labelField, he = Z.removeComponent, Pe = Z.readOnly, Fe = Z.allowDragDrop, Je = $({}, rt.DEFAULT_CLASSNAMES, Q.props.classNames), Ue = Q.state, ct = Ue.currentEditIndex, Gt = Ue.query, nn = Fe ? Q.moveTag : null return G.map(function (Qt, sn) { return B.default.createElement( B.default.Fragment, { key: sn }, ct === sn ? B.default.createElement( 'div', { className: Je.editTagInput }, B.default.createElement('input', { ref: function (Xn) { Q.tagInput = Xn }, onFocus: Q.handleFocus, value: Gt, onChange: Q.handleChange, onKeyDown: Q.handleKeyDown, onBlur: Q.handleBlur, className: Je.editTagInputField, onPaste: Q.handlePaste, 'data-testid': 'tag-edit', }) ) : B.default.createElement(nt.default, { index: sn, tag: Qt, labelField: ue, onDelete: Q.handleDelete.bind(Q, sn), moveTag: nn, removeComponent: he, onTagClicked: Q.handleTagClick.bind(Q, sn, Qt), readOnly: Pe, classNames: Je, allowDragDrop: Fe, }) ) }) }) }, re = function (Q) { var Z = ee(Q, []) return B.default.createElement(K.DndProvider, { backend: q.HTML5Backend }, B.default.createElement(Y, Z)) } ;(m.V = re), (I = Y), (I = rt.KEYS) }, 2585: function (z, m, C) { 'use strict' Object.defineProperty(m, '__esModule', { value: !0 }) var I = C(7294), $ = K(I), T = C(5697), V = K(T), B = C(1117) function K(ke) { return ke && ke.__esModule ? ke : { default: ke } } var q = String.fromCharCode(215), pe = function (ve) { var Ie = ve.readOnly, _e = ve.removeComponent, Re = ve.onRemove, Ae = ve.className, Le = ve.tag, xe = ve.index, Ne = function (we) { if (B.KEYS.ENTER.includes(we.keyCode) || we.keyCode === B.KEYS.SPACE) { we.preventDefault(), we.stopPropagation() return } we.keyCode === B.KEYS.BACKSPACE && Re(we) } if (Ie) return $.default.createElement('span', null) var tt = 'Tag at index ' + xe + ' with value ' + Le.id + ' focussed. Press backspace to remove' if (_e) { var be = _e return $.default.createElement(be, { onRemove: Re, onKeyDown: Ne, className: Ae, 'aria-label': tt, tag: Le, index: xe, }) } return $.default.createElement( 'button', { onClick: Re, onKeyDown: Ne, className: Ae, type: 'button', 'aria-label': tt }, q ) } ;(pe.propTypes = { className: V.default.string, onRemove: V.default.func.isRequired, readOnly: V.default.bool, removeComponent: V.default.func, tag: V.default.shape({ id: V.default.string.isRequired, className: V.default.string, key: V.default.string }), index: V.default.number.isRequired, }), (m.default = pe) }, 1331: function (z, m, C) { 'use strict' Object.defineProperty(m, '__esModule', { value: !0 }) var I = (function () { function xe(Ne, tt) { for (var be = 0; be < tt.length; be++) { var We = tt[be] ;(We.enumerable = We.enumerable || !1), (We.configurable = !0), 'value' in We && (We.writable = !0), Object.defineProperty(Ne, We.key, We) } } return function (Ne, tt, be) { return tt && xe(Ne.prototype, tt), be && xe(Ne, be), Ne } })(), $ = C(7294), T = ve($), V = C(5697), B = ve(V), K = C(8446), q = ve(K), pe = C(7187), ke = ve(pe) function ve(xe) { return xe && xe.__esModule ? xe : { default: xe } } function Ie(xe, Ne) { if (!(xe instanceof Ne)) throw new TypeError('Cannot call a class as a function') } function _e(xe, Ne) { if (!xe) throw new ReferenceError("this hasn't been initialised - super() hasn't been called") return Ne && (typeof Ne == 'object' || typeof Ne == 'function') ? Ne : xe } function Re(xe, Ne) { if (typeof Ne != 'function' && Ne !== null) throw new TypeError('Super expression must either be null or a function, not ' + typeof Ne) ;(xe.prototype = Object.create(Ne && Ne.prototype, { constructor: { value: xe, enumerable: !1, writable: !0, configurable: !0 }, })), Ne && (Object.setPrototypeOf ? Object.setPrototypeOf(xe, Ne) : (xe.__proto__ = Ne)) } var Ae = function (Ne, tt) { var be = tt.offsetHeight, We = Ne.offsetHeight, we = Ne.offsetTop - tt.scrollTop we + We >= be ? (tt.scrollTop += we - be + We) : we < 0 && (tt.scrollTop += we) }, Le = (function (xe) { Re(Ne, xe) function Ne() { var tt, be, We, we Ie(this, Ne) for (var ut = arguments.length, nt = Array(ut), st = 0; st < ut; st++) nt[st] = arguments[st] return ( (we = ((be = ((We = _e( this, (tt = Ne.__proto__ || Object.getPrototypeOf(Ne)).call.apply(tt, [this].concat(nt)) )), We)), (We.markIt = function (rt, ht) { var Wt = ht.trim().replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&'), ee = rt[We.props.labelField] return { __html: ee.replace(RegExp(Wt, 'gi'), function (je) { return '' + (0, ke.default)(je) + '' }), } }), (We.shouldRenderSuggestions = function (rt) { var ht = We.props, Wt = ht.minQueryLength, ee = ht.isFocused return rt.length >= Wt && ee }), (We.renderSuggestion = function (rt, ht) { var Wt = We.props.renderSuggestion return typeof Wt == 'function' ? Wt(rt, ht) : T.default.createElement('span', { dangerouslySetInnerHTML: We.markIt(rt, ht) }) }), be)), _e(We, we) ) } return ( I(Ne, [ { key: 'shouldComponentUpdate', value: function (be) { var We = this.props, we = We.shouldRenderSuggestions || this.shouldRenderSuggestions return ( We.isFocused !== be.isFocused || !(0, q.default)(We.suggestions, be.suggestions) || we(be.query) || we(be.query) !== we(We.query) ) }, }, { key: 'componentDidUpdate', value: function (be) { var We = this.props, we = We.selectedIndex, ut = We.classNames if (this.suggestionsContainer && be.selectedIndex !== we) { var nt = this.suggestionsContainer.querySelector('.' + ut.activeSuggestion) nt && Ae(nt, this.suggestionsContainer) } }, }, { key: 'render', value: function () { var be = this, We = this.props, we = We.suggestions.map( function (nt, st) { return T.default.createElement( 'li', { key: st, onMouseDown: We.handleClick.bind(null, st), onTouchStart: We.handleClick.bind(null, st), onMouseOver: We.handleHover.bind(null, st), className: st === We.selectedIndex ? We.classNames.activeSuggestion : '', }, this.renderSuggestion(nt, We.query) ) }.bind(this) ), ut = We.shouldRenderSuggestions || this.shouldRenderSuggestions return we.length === 0 || !ut(We.query) ? null : T.default.createElement( 'div', { ref: function (st) { be.suggestionsContainer = st }, className: this.props.classNames.suggestions, }, T.default.createElement('ul', null, ' ', we, ' ') ) }, }, ]), Ne ) })($.Component) ;(Le.propTypes = { query: B.default.string.isRequired, selectedIndex: B.default.number.isRequired, suggestions: B.default.array.isRequired, handleClick: B.default.func.isRequired, handleHover: B.default.func.isRequired, minQueryLength: B.default.number, shouldRenderSuggestions: B.default.func, isFocused: B.default.bool.isRequired, classNames: B.default.object, labelField: B.default.string.isRequired, renderSuggestion: B.default.func, }), (Le.defaultProps = { minQueryLength: 2 }), (m.default = Le) }, 5129: function (z, m, C) { 'use strict' Object.defineProperty(m, '__esModule', { value: !0 }) var I = (function () { function Le(xe, Ne) { var tt = [], be = !0, We = !1, we = void 0 try { for ( var ut = xe[Symbol.iterator](), nt; !(be = (nt = ut.next()).done) && (tt.push(nt.value), !(Ne && tt.length === Ne)); be = !0 ); } catch (st) { ;(We = !0), (we = st) } finally { try { !be && ut.return && ut.return() } finally { if (We) throw we } } return tt } return function (xe, Ne) { if (Array.isArray(xe)) return xe if (Symbol.iterator in Object(xe)) return Le(xe, Ne) throw new TypeError('Invalid attempt to destructure non-iterable instance') } })(), $ = C(7294), T = _e($), V = C(1976), B = C(5697), K = _e(B), q = C(4184), pe = _e(q), ke = C(3332), ve = C(2585), Ie = _e(ve) function _e(Le) { return Le && Le.__esModule ? Le : { default: Le } } var Re = { TAG: 'tag' }, Ae = function (xe) { var Ne = (0, $.useRef)(null), tt = xe.readOnly, be = xe.tag, We = xe.classNames, we = xe.index, ut = (0, V.useDrag)(function () { return { type: Re.TAG, collect: function (re) { return { isDragging: !!re.isDragging() } }, item: xe, canDrag: function () { return (0, ke.canDrag)(xe) }, } }), nt = I(ut, 2), st = nt[0].isDragging, rt = nt[1], ht = (0, V.useDrop)(function () { return { accept: Re.TAG, drop: function (re, W) { var Q = re.index, Z = we Q !== Z && xe.moveTag(Q, Z) }, canDrop: function (re) { return (0, ke.canDrop)(re) }, } }), Wt = I(ht, 2), ee = Wt[1] rt(ee(Ne)) var je = xe.tag[xe.labelField], He = be.className, $e = He === void 0 ? '' : He, X = st ? 0 : 1, Y = T.default.createElement( 'span', { ref: Ne, className: (0, pe.default)('tag-wrapper', We.tag, $e), style: { opacity: X, cursor: (0, ke.canDrag)(xe) ? 'move' : 'auto' }, onClick: xe.onTagClicked, onTouchStart: xe.onTagClicked, }, je, T.default.createElement(Ie.default, { tag: xe.tag, className: We.remove, removeComponent: xe.removeComponent, onRemove: xe.onDelete, readOnly: tt, index: we, }) ) return Y } ;(Ae.propTypes = { labelField: K.default.string, onDelete: K.default.func.isRequired, tag: K.default.shape({ id: K.default.string.isRequired, className: K.default.string, key: K.default.string }), moveTag: K.default.func, removeComponent: K.default.func, onTagClicked: K.default.func, classNames: K.default.object, readOnly: K.default.bool, index: K.default.number.isRequired, }), (Ae.defaultProps = { labelField: 'text', readOnly: !1 }), (m.default = Ae) }, 1117: function (z, m) { 'use strict' Object.defineProperty(m, '__esModule', { value: !0 }) var C = (m.KEYS = { ENTER: [10, 13], TAB: 9, BACKSPACE: 8, UP_ARROW: 38, DOWN_ARROW: 40, ESCAPE: 27, SPACE: 32, COMMA: 188, }), I = (m.DEFAULT_PLACEHOLDER = 'Press enter to add new tag'), $ = (m.DEFAULT_LABEL_FIELD = 'text'), T = (m.DEFAULT_CLASSNAMES = { tags: 'ReactTags__tags', tagInput: 'ReactTags__tagInput', tagInputField: 'ReactTags__tagInputField', selected: 'ReactTags__selected', tag: 'ReactTags__tag', remove: 'ReactTags__remove', suggestions: 'ReactTags__suggestions', activeSuggestion: 'ReactTags__activeSuggestion', editTagInput: 'ReactTags__editTagInput', editTagInputField: 'ReactTags__editTagInputField', clearAll: 'ReactTags__clearAll', }), V = (m.INPUT_FIELD_POSITIONS = { INLINE: 'inline', TOP: 'top', BOTTOM: 'bottom' }) }, 3332: function (z, m, C) { 'use strict' Object.defineProperty(m, '__esModule', { value: !0 }), (m.buildRegExpFromDelimiters = V), (m.canDrag = B), (m.canDrop = K) var I = C(3522), $ = T(I) function T(q) { return q && q.__esModule ? q : { default: q } } function V(q) { var pe = q .map(function (ve) { var Ie = ve - 48 * Math.floor(ve / 48) return String.fromCharCode(96 <= ve ? Ie : ve) }) .join(''), ke = (0, $.default)(pe) return new RegExp('[' + ke + ']+') } function B(q) { var pe = q.moveTag, ke = q.readOnly, ve = q.allowDragDrop return pe !== void 0 && !ke && ve } function K(q) { var pe = q.readOnly, ke = q.allowDragDrop return !pe && ke } }, 5251: function (z, m, C) { 'use strict' var I var $ = C(7294), T = Symbol.for('react.element'), V = Symbol.for('react.fragment'), B = Object.prototype.hasOwnProperty, K = $.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, q = { key: !0, ref: !0, __self: !0, __source: !0 } function pe(ke, ve, Ie) { var _e, Re = {}, Ae = null, Le = null Ie !== void 0 && (Ae = '' + Ie), ve.key !== void 0 && (Ae = '' + ve.key), ve.ref !== void 0 && (Le = ve.ref) for (_e in ve) B.call(ve, _e) && !q.hasOwnProperty(_e) && (Re[_e] = ve[_e]) if (ke && ke.defaultProps) for (_e in ((ve = ke.defaultProps), ve)) Re[_e] === void 0 && (Re[_e] = ve[_e]) return { $$typeof: T, type: ke, key: Ae, ref: Le, props: Re, _owner: K.current } } ;(I = V), (m.jsx = pe), (m.jsxs = pe) }, 2408: function (z, m) { 'use strict' var C = Symbol.for('react.element'), I = Symbol.for('react.portal'), $ = Symbol.for('react.fragment'), T = Symbol.for('react.strict_mode'), V = Symbol.for('react.profiler'), B = Symbol.for('react.provider'), K = Symbol.for('react.context'), q = Symbol.for('react.forward_ref'), pe = Symbol.for('react.suspense'), ke = Symbol.for('react.memo'), ve = Symbol.for('react.lazy'), Ie = Symbol.iterator function _e(W) { return W === null || typeof W != 'object' ? null : ((W = (Ie && W[Ie]) || W['@@iterator']), typeof W == 'function' ? W : null) } var Re = { isMounted: function () { return !1 }, enqueueForceUpdate: function () {}, enqueueReplaceState: function () {}, enqueueSetState: function () {}, }, Ae = Object.assign, Le = {} function xe(W, Q, Z) { ;(this.props = W), (this.context = Q), (this.refs = Le), (this.updater = Z || Re) } ;(xe.prototype.isReactComponent = {}), (xe.prototype.setState = function (W, Q) { if (typeof W != 'object' && typeof W != 'function' && W != null) throw Error( 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.' ) this.updater.enqueueSetState(this, W, Q, 'setState') }), (xe.prototype.forceUpdate = function (W) { this.updater.enqueueForceUpdate(this, W, 'forceUpdate') }) function Ne() {} Ne.prototype = xe.prototype function tt(W, Q, Z) { ;(this.props = W), (this.context = Q), (this.refs = Le), (this.updater = Z || Re) } var be = (tt.prototype = new Ne()) ;(be.constructor = tt), Ae(be, xe.prototype), (be.isPureReactComponent = !0) var We = Array.isArray, we = Object.prototype.hasOwnProperty, ut = { current: null }, nt = { key: !0, ref: !0, __self: !0, __source: !0 } function st(W, Q, Z) { var G, ue = {}, he = null, Pe = null if (Q != null) for (G in (Q.ref !== void 0 && (Pe = Q.ref), Q.key !== void 0 && (he = '' + Q.key), Q)) we.call(Q, G) && !nt.hasOwnProperty(G) && (ue[G] = Q[G]) var Fe = arguments.length - 2 if (Fe === 1) ue.children = Z else if (1 < Fe) { for (var Je = Array(Fe), Ue = 0; Ue < Fe; Ue++) Je[Ue] = arguments[Ue + 2] ue.children = Je } if (W && W.defaultProps) for (G in ((Fe = W.defaultProps), Fe)) ue[G] === void 0 && (ue[G] = Fe[G]) return { $$typeof: C, type: W, key: he, ref: Pe, props: ue, _owner: ut.current } } function rt(W, Q) { return { $$typeof: C, type: W.type, key: Q, ref: W.ref, props: W.props, _owner: W._owner } } function ht(W) { return typeof W == 'object' && W !== null && W.$$typeof === C } function Wt(W) { var Q = { '=': '=0', ':': '=2' } return ( '$' + W.replace(/[=:]/g, function (Z) { return Q[Z] }) ) } var ee = /\/+/g function je(W, Q) { return typeof W == 'object' && W !== null && W.key != null ? Wt('' + W.key) : Q.toString(36) } function He(W, Q, Z, G, ue) { var he = typeof W ;(he === 'undefined' || he === 'boolean') && (W = null) var Pe = !1 if (W === null) Pe = !0 else switch (he) { case 'string': case 'number': Pe = !0 break case 'object': switch (W.$$typeof) { case C: case I: Pe = !0 } } if (Pe) return ( (Pe = W), (ue = ue(Pe)), (W = G === '' ? '.' + je(Pe, 0) : G), We(ue) ? ((Z = ''), W != null && (Z = W.replace(ee, '$&/') + '/'), He(ue, Q, Z, '', function (Ue) { return Ue })) : ue != null && (ht(ue) && (ue = rt( ue, Z + (!ue.key || (Pe && Pe.key === ue.key) ? '' : ('' + ue.key).replace(ee, '$&/') + '/') + W )), Q.push(ue)), 1 ) if (((Pe = 0), (G = G === '' ? '.' : G + ':'), We(W))) for (var Fe = 0; Fe < W.length; Fe++) { he = W[Fe] var Je = G + je(he, Fe) Pe += He(he, Q, Z, Je, ue) } else if (((Je = _e(W)), typeof Je == 'function')) for (W = Je.call(W), Fe = 0; !(he = W.next()).done; ) (he = he.value), (Je = G + je(he, Fe++)), (Pe += He(he, Q, Z, Je, ue)) else if (he === 'object') throw ( ((Q = String(W)), Error( 'Objects are not valid as a React child (found: ' + (Q === '[object Object]' ? 'object with keys {' + Object.keys(W).join(', ') + '}' : Q) + '). If you meant to render a collection of children, use an array instead.' )) ) return Pe } function $e(W, Q, Z) { if (W == null) return W var G = [], ue = 0 return ( He(W, G, '', '', function (he) { return Q.call(Z, he, ue++) }), G ) } function X(W) { if (W._status === -1) { var Q = W._result ;(Q = Q()), Q.then( function (Z) { ;(W._status === 0 || W._status === -1) && ((W._status = 1), (W._result = Z)) }, function (Z) { ;(W._status === 0 || W._status === -1) && ((W._status = 2), (W._result = Z)) } ), W._status === -1 && ((W._status = 0), (W._result = Q)) } if (W._status === 1) return W._result.default throw W._result } var Y = { current: null }, Se = { transition: null }, re = { ReactCurrentDispatcher: Y, ReactCurrentBatchConfig: Se, ReactCurrentOwner: ut } ;(m.Children = { map: $e, forEach: function (W, Q, Z) { $e( W, function () { Q.apply(this, arguments) }, Z ) }, count: function (W) { var Q = 0 return ( $e(W, function () { Q++ }), Q ) }, toArray: function (W) { return ( $e(W, function (Q) { return Q }) || [] ) }, only: function (W) { if (!ht(W)) throw Error('React.Children.only expected to receive a single React element child.') return W }, }), (m.Component = xe), (m.Fragment = $), (m.Profiler = V), (m.PureComponent = tt), (m.StrictMode = T), (m.Suspense = pe), (m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = re), (m.cloneElement = function (W, Q, Z) { if (W == null) throw Error('React.cloneElement(...): The argument must be a React element, but you passed ' + W + '.') var G = Ae({}, W.props), ue = W.key, he = W.ref, Pe = W._owner if (Q != null) { if ( (Q.ref !== void 0 && ((he = Q.ref), (Pe = ut.current)), Q.key !== void 0 && (ue = '' + Q.key), W.type && W.type.defaultProps) ) var Fe = W.type.defaultProps for (Je in Q) we.call(Q, Je) && !nt.hasOwnProperty(Je) && (G[Je] = Q[Je] === void 0 && Fe !== void 0 ? Fe[Je] : Q[Je]) } var Je = arguments.length - 2 if (Je === 1) G.children = Z else if (1 < Je) { Fe = Array(Je) for (var Ue = 0; Ue < Je; Ue++) Fe[Ue] = arguments[Ue + 2] G.children = Fe } return { $$typeof: C, type: W.type, key: ue, ref: he, props: G, _owner: Pe } }), (m.createContext = function (W) { return ( (W = { $$typeof: K, _currentValue: W, _currentValue2: W, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null, }), (W.Provider = { $$typeof: B, _context: W }), (W.Consumer = W) ) }), (m.createElement = st), (m.createFactory = function (W) { var Q = st.bind(null, W) return (Q.type = W), Q }), (m.createRef = function () { return { current: null } }), (m.forwardRef = function (W) { return { $$typeof: q, render: W } }), (m.isValidElement = ht), (m.lazy = function (W) { return { $$typeof: ve, _payload: { _status: -1, _result: W }, _init: X } }), (m.memo = function (W, Q) { return { $$typeof: ke, type: W, compare: Q === void 0 ? null : Q } }), (m.startTransition = function (W) { var Q = Se.transition Se.transition = {} try { W() } finally { Se.transition = Q } }), (m.unstable_act = function () { throw Error('act(...) is not supported in production builds of React.') }), (m.useCallback = function (W, Q) { return Y.current.useCallback(W, Q) }), (m.useContext = function (W) { return Y.current.useContext(W) }), (m.useDebugValue = function () {}), (m.useDeferredValue = function (W) { return Y.current.useDeferredValue(W) }), (m.useEffect = function (W, Q) { return Y.current.useEffect(W, Q) }), (m.useId = function () { return Y.current.useId() }), (m.useImperativeHandle = function (W, Q, Z) { return Y.current.useImperativeHandle(W, Q, Z) }), (m.useInsertionEffect = function (W, Q) { return Y.current.useInsertionEffect(W, Q) }), (m.useLayoutEffect = function (W, Q) { return Y.current.useLayoutEffect(W, Q) }), (m.useMemo = function (W, Q) { return Y.current.useMemo(W, Q) }), (m.useReducer = function (W, Q, Z) { return Y.current.useReducer(W, Q, Z) }), (m.useRef = function (W) { return Y.current.useRef(W) }), (m.useState = function (W) { return Y.current.useState(W) }), (m.useSyncExternalStore = function (W, Q, Z) { return Y.current.useSyncExternalStore(W, Q, Z) }), (m.useTransition = function () { return Y.current.useTransition() }), (m.version = '18.2.0') }, 7294: function (z, m, C) { 'use strict' z.exports = C(2408) }, 5893: function (z, m, C) { 'use strict' z.exports = C(5251) }, 53: function (z, m) { 'use strict' function C(Y, Se) { var re = Y.length Y.push(Se) e: for (; 0 < re; ) { var W = (re - 1) >>> 1, Q = Y[W] if (0 < T(Q, Se)) (Y[W] = Se), (Y[re] = Q), (re = W) else break e } } function I(Y) { return Y.length === 0 ? null : Y[0] } function $(Y) { if (Y.length === 0) return null var Se = Y[0], re = Y.pop() if (re !== Se) { Y[0] = re e: for (var W = 0, Q = Y.length, Z = Q >>> 1; W < Z; ) { var G = 2 * (W + 1) - 1, ue = Y[G], he = G + 1, Pe = Y[he] if (0 > T(ue, re)) he < Q && 0 > T(Pe, ue) ? ((Y[W] = Pe), (Y[he] = re), (W = he)) : ((Y[W] = ue), (Y[G] = re), (W = G)) else if (he < Q && 0 > T(Pe, re)) (Y[W] = Pe), (Y[he] = re), (W = he) else break e } } return Se } function T(Y, Se) { var re = Y.sortIndex - Se.sortIndex return re !== 0 ? re : Y.id - Se.id } if (typeof performance == 'object' && typeof performance.now == 'function') { var V = performance m.unstable_now = function () { return V.now() } } else { var B = Date, K = B.now() m.unstable_now = function () { return B.now() - K } } var q = [], pe = [], ke = 1, ve = null, Ie = 3, _e = !1, Re = !1, Ae = !1, Le = typeof setTimeout == 'function' ? setTimeout : null, xe = typeof clearTimeout == 'function' ? clearTimeout : null, Ne = typeof setImmediate != 'undefined' ? setImmediate : null typeof navigator != 'undefined' && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling) function tt(Y) { for (var Se = I(pe); Se !== null; ) { if (Se.callback === null) $(pe) else if (Se.startTime <= Y) $(pe), (Se.sortIndex = Se.expirationTime), C(q, Se) else break Se = I(pe) } } function be(Y) { if (((Ae = !1), tt(Y), !Re)) if (I(q) !== null) (Re = !0), $e(We) else { var Se = I(pe) Se !== null && X(be, Se.startTime - Y) } } function We(Y, Se) { ;(Re = !1), Ae && ((Ae = !1), xe(nt), (nt = -1)), (_e = !0) var re = Ie try { for (tt(Se), ve = I(q); ve !== null && (!(ve.expirationTime > Se) || (Y && !ht())); ) { var W = ve.callback if (typeof W == 'function') { ;(ve.callback = null), (Ie = ve.priorityLevel) var Q = W(ve.expirationTime <= Se) ;(Se = m.unstable_now()), typeof Q == 'function' ? (ve.callback = Q) : ve === I(q) && $(q), tt(Se) } else $(q) ve = I(q) } if (ve !== null) var Z = !0 else { var G = I(pe) G !== null && X(be, G.startTime - Se), (Z = !1) } return Z } finally { ;(ve = null), (Ie = re), (_e = !1) } } var we = !1, ut = null, nt = -1, st = 5, rt = -1 function ht() { return !(m.unstable_now() - rt < st) } function Wt() { if (ut !== null) { var Y = m.unstable_now() rt = Y var Se = !0 try { Se = ut(!0, Y) } finally { Se ? ee() : ((we = !1), (ut = null)) } } else we = !1 } var ee if (typeof Ne == 'function') ee = function () { Ne(Wt) } else if (typeof MessageChannel != 'undefined') { var je = new MessageChannel(), He = je.port2 ;(je.port1.onmessage = Wt), (ee = function () { He.postMessage(null) }) } else ee = function () { Le(Wt, 0) } function $e(Y) { ;(ut = Y), we || ((we = !0), ee()) } function X(Y, Se) { nt = Le(function () { Y(m.unstable_now()) }, Se) } ;(m.unstable_IdlePriority = 5), (m.unstable_ImmediatePriority = 1), (m.unstable_LowPriority = 4), (m.unstable_NormalPriority = 3), (m.unstable_Profiling = null), (m.unstable_UserBlockingPriority = 2), (m.unstable_cancelCallback = function (Y) { Y.callback = null }), (m.unstable_continueExecution = function () { Re || _e || ((Re = !0), $e(We)) }), (m.unstable_forceFrameRate = function (Y) { 0 > Y || 125 < Y ? console.error( 'forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported' ) : (st = 0 < Y ? Math.floor(1e3 / Y) : 5) }), (m.unstable_getCurrentPriorityLevel = function () { return Ie }), (m.unstable_getFirstCallbackNode = function () { return I(q) }), (m.unstable_next = function (Y) { switch (Ie) { case 1: case 2: case 3: var Se = 3 break default: Se = Ie } var re = Ie Ie = Se try { return Y() } finally { Ie = re } }), (m.unstable_pauseExecution = function () {}), (m.unstable_requestPaint = function () {}), (m.unstable_runWithPriority = function (Y, Se) { switch (Y) { case 1: case 2: case 3: case 4: case 5: break default: Y = 3 } var re = Ie Ie = Y try { return Se() } finally { Ie = re } }), (m.unstable_scheduleCallback = function (Y, Se, re) { var W = m.unstable_now() switch ( (typeof re == 'object' && re !== null ? ((re = re.delay), (re = typeof re == 'number' && 0 < re ? W + re : W)) : (re = W), Y) ) { case 1: var Q = -1 break case 2: Q = 250 break case 5: Q = 1073741823 break case 4: Q = 1e4 break default: Q = 5e3 } return ( (Q = re + Q), (Y = { id: ke++, callback: Se, priorityLevel: Y, startTime: re, expirationTime: Q, sortIndex: -1 }), re > W ? ((Y.sortIndex = re), C(pe, Y), I(q) === null && Y === I(pe) && (Ae ? (xe(nt), (nt = -1)) : (Ae = !0), X(be, re - W))) : ((Y.sortIndex = Q), C(q, Y), Re || _e || ((Re = !0), $e(We))), Y ) }), (m.unstable_shouldYield = ht), (m.unstable_wrapCallback = function (Y) { var Se = Ie return function () { var re = Ie Ie = Se try { return Y.apply(this, arguments) } finally { Ie = re } } }) }, 3840: function (z, m, C) { 'use strict' z.exports = C(53) }, 6774: function (z) { z.exports = function (C, I, $, T) { var V = $ ? $.call(T, C, I) : void 0 if (V !== void 0) return !!V if (C === I) return !0 if (typeof C != 'object' || !C || typeof I != 'object' || !I) return !1 var B = Object.keys(C), K = Object.keys(I) if (B.length !== K.length) return !1 for (var q = Object.prototype.hasOwnProperty.bind(I), pe = 0; pe < B.length; pe++) { var ke = B[pe] if (!q(ke)) return !1 var ve = C[ke], Ie = I[ke] if (((V = $ ? $.call(T, ve, Ie, ke) : void 0), V === !1 || (V === void 0 && ve !== Ie))) return !1 } return !0 } }, 3250: function (z, m, C) { 'use strict' var I = C(7294) function $(_e, Re) { return (_e === Re && (_e !== 0 || 1 / _e === 1 / Re)) || (_e !== _e && Re !== Re) } var T = typeof Object.is == 'function' ? Object.is : $, V = I.useState, B = I.useEffect, K = I.useLayoutEffect, q = I.useDebugValue function pe(_e, Re) { var Ae = Re(), Le = V({ inst: { value: Ae, getSnapshot: Re } }), xe = Le[0].inst, Ne = Le[1] return ( K( function () { ;(xe.value = Ae), (xe.getSnapshot = Re), ke(xe) && Ne({ inst: xe }) }, [_e, Ae, Re] ), B( function () { return ( ke(xe) && Ne({ inst: xe }), _e(function () { ke(xe) && Ne({ inst: xe }) }) ) }, [_e] ), q(Ae), Ae ) } function ke(_e) { var Re = _e.getSnapshot _e = _e.value try { var Ae = Re() return !T(_e, Ae) } catch (Le) { return !0 } } function ve(_e, Re) { return Re() } var Ie = typeof window == 'undefined' || typeof window.document == 'undefined' || typeof window.document.createElement == 'undefined' ? ve : pe m.useSyncExternalStore = I.useSyncExternalStore !== void 0 ? I.useSyncExternalStore : Ie }, 139: function (z, m, C) { 'use strict' var I = C(7294), $ = C(1688) function T(ve, Ie) { return (ve === Ie && (ve !== 0 || 1 / ve === 1 / Ie)) || (ve !== ve && Ie !== Ie) } var V = typeof Object.is == 'function' ? Object.is : T, B = $.useSyncExternalStore, K = I.useRef, q = I.useEffect, pe = I.useMemo, ke = I.useDebugValue m.useSyncExternalStoreWithSelector = function (ve, Ie, _e, Re, Ae) { var Le = K(null) if (Le.current === null) { var xe = { hasValue: !1, value: null } Le.current = xe } else xe = Le.current Le = pe( function () { function tt(nt) { if (!be) { if (((be = !0), (We = nt), (nt = Re(nt)), Ae !== void 0 && xe.hasValue)) { var st = xe.value if (Ae(st, nt)) return (we = st) } return (we = nt) } if (((st = we), V(We, nt))) return st var rt = Re(nt) return Ae !== void 0 && Ae(st, rt) ? st : ((We = nt), (we = rt)) } var be = !1, We, we, ut = _e === void 0 ? null : _e return [ function () { return tt(Ie()) }, ut === null ? void 0 : function () { return tt(ut()) }, ] }, [Ie, _e, Re, Ae] ) var Ne = B(ve, Le[0], Le[1]) return ( q( function () { ;(xe.hasValue = !0), (xe.value = Ne) }, [Ne] ), ke(Ne), Ne ) } }, 1688: function (z, m, C) { 'use strict' z.exports = C(3250) }, 2798: function (z, m, C) { 'use strict' z.exports = C(139) }, 3897: function (z) { function m(C, I) { ;(I == null || I > C.length) && (I = C.length) for (var $ = 0, T = new Array(I); $ < I; $++) T[$] = C[$] return T } ;(z.exports = m), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 5372: function (z) { function m(C) { if (Array.isArray(C)) return C } ;(z.exports = m), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 3405: function (z, m, C) { var I = C(3897) function $(T) { if (Array.isArray(T)) return I(T) } ;(z.exports = $), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 6690: function (z) { function m(C, I) { if (!(C instanceof I)) throw new TypeError('Cannot call a class as a function') } ;(z.exports = m), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 9728: function (z, m, C) { var I = C(4062) function $(V, B) { for (var K = 0; K < B.length; K++) { var q = B[K] ;(q.enumerable = q.enumerable || !1), (q.configurable = !0), 'value' in q && (q.writable = !0), Object.defineProperty(V, I(q.key), q) } } function T(V, B, K) { return B && $(V.prototype, B), K && $(V, K), Object.defineProperty(V, 'prototype', { writable: !1 }), V } ;(z.exports = T), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 4704: function (z, m, C) { var I = C(6116) function $(T, V) { var B = (typeof Symbol != 'undefined' && T[Symbol.iterator]) || T['@@iterator'] if (!B) { if (Array.isArray(T) || (B = I(T)) || (V && T && typeof T.length == 'number')) { B && (T = B) var K = 0, q = function () {} return { s: q, n: function () { return K >= T.length ? { done: !0 } : { done: !1, value: T[K++] } }, e: function (_e) { throw _e }, f: q, } } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) } var pe = !0, ke = !1, ve return { s: function () { B = B.call(T) }, n: function () { var _e = B.next() return (pe = _e.done), _e }, e: function (_e) { ;(ke = !0), (ve = _e) }, f: function () { try { !pe && B.return != null && B.return() } finally { if (ke) throw ve } }, } } ;(z.exports = $), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 8416: function (z, m, C) { var I = C(4062) function $(T, V, B) { return ( (V = I(V)), V in T ? Object.defineProperty(T, V, { value: B, enumerable: !0, configurable: !0, writable: !0 }) : (T[V] = B), T ) } ;(z.exports = $), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 9498: function (z) { function m(C) { if ((typeof Symbol != 'undefined' && C[Symbol.iterator] != null) || C['@@iterator'] != null) return Array.from(C) } ;(z.exports = m), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 8872: function (z) { function m(C, I) { var $ = C == null ? null : (typeof Symbol != 'undefined' && C[Symbol.iterator]) || C['@@iterator'] if ($ != null) { var T, V, B, K, q = [], pe = !0, ke = !1 try { if (((B = ($ = $.call(C)).next), I === 0)) { if (Object($) !== $) return pe = !1 } else for (; !(pe = (T = B.call($)).done) && (q.push(T.value), q.length !== I); pe = !0); } catch (ve) { ;(ke = !0), (V = ve) } finally { try { if (!pe && $.return != null && ((K = $.return()), Object(K) !== K)) return } finally { if (ke) throw V } } return q } } ;(z.exports = m), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 2218: function (z) { function m() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) } ;(z.exports = m), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 2281: function (z) { function m() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) } ;(z.exports = m), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 2122: function (z, m, C) { var I = C(8416) function $(V, B) { var K = Object.keys(V) if (Object.getOwnPropertySymbols) { var q = Object.getOwnPropertySymbols(V) B && (q = q.filter(function (pe) { return Object.getOwnPropertyDescriptor(V, pe).enumerable })), K.push.apply(K, q) } return K } function T(V) { for (var B = 1; B < arguments.length; B++) { var K = arguments[B] != null ? arguments[B] : {} B % 2 ? $(Object(K), !0).forEach(function (q) { I(V, q, K[q]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(V, Object.getOwnPropertyDescriptors(K)) : $(Object(K)).forEach(function (q) { Object.defineProperty(V, q, Object.getOwnPropertyDescriptor(K, q)) }) } return V } ;(z.exports = T), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 7424: function (z, m, C) { var I = C(5372), $ = C(8872), T = C(6116), V = C(2218) function B(K, q) { return I(K) || $(K, q) || T(K, q) || V() } ;(z.exports = B), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 9400: function (z) { function m(C, I) { return I || (I = C.slice(0)), Object.freeze(Object.defineProperties(C, { raw: { value: Object.freeze(I) } })) } ;(z.exports = m), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 861: function (z, m, C) { var I = C(3405), $ = C(9498), T = C(6116), V = C(2281) function B(K) { return I(K) || $(K) || T(K) || V() } ;(z.exports = B), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 5036: function (z, m, C) { var I = C(8698).default function $(T, V) { if (I(T) !== 'object' || T === null) return T var B = T[Symbol.toPrimitive] if (B !== void 0) { var K = B.call(T, V || 'default') if (I(K) !== 'object') return K throw new TypeError('@@toPrimitive must return a primitive value.') } return (V === 'string' ? String : Number)(T) } ;(z.exports = $), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 4062: function (z, m, C) { var I = C(8698).default, $ = C(5036) function T(V) { var B = $(V, 'string') return I(B) === 'symbol' ? B : String(B) } ;(z.exports = T), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 8698: function (z) { function m(C) { return ( (z.exports = m = typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' ? function (I) { return typeof I } : function (I) { return I && typeof Symbol == 'function' && I.constructor === Symbol && I !== Symbol.prototype ? 'symbol' : typeof I }), (z.exports.__esModule = !0), (z.exports.default = z.exports), m(C) ) } ;(z.exports = m), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 6116: function (z, m, C) { var I = C(3897) function $(T, V) { if (T) { if (typeof T == 'string') return I(T, V) var B = Object.prototype.toString.call(T).slice(8, -1) if ((B === 'Object' && T.constructor && (B = T.constructor.name), B === 'Map' || B === 'Set')) return Array.from(T) if (B === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)) return I(T, V) } } ;(z.exports = $), (z.exports.__esModule = !0), (z.exports.default = z.exports) }, 1976: function (z, m, C) { 'use strict' C.r(m), C.d(m, { DndContext: function () { return $ }, DndProvider: function () { return xc }, DragPreviewImage: function () { return Ga }, useDrag: function () { return Bf }, useDragDropManager: function () { return ii }, useDragLayer: function () { return at }, useDrop: function () { return mn }, }) var I = C(7294), $ = (0, I.createContext)({ dragDropManager: void 0 }), T = C(7424), V = C(5893) function B(O) { return ( 'Minified Redux error #' + O + '; visit https://redux.js.org/Errors?code=' + O + ' for the full message or use the non-minified dev environment for full errors. ' ) } var K = (function () { return (typeof Symbol == 'function' && Symbol.observable) || '@@observable' })(), q = function () { return Math.random().toString(36).substring(7).split('').join('.') }, pe = { INIT: '@@redux/INIT' + q(), REPLACE: '@@redux/REPLACE' + q(), PROBE_UNKNOWN_ACTION: function () { return '@@redux/PROBE_UNKNOWN_ACTION' + q() }, } function ke(O) { if (typeof O != 'object' || O === null) return !1 for (var N = O; Object.getPrototypeOf(N) !== null; ) N = Object.getPrototypeOf(N) return Object.getPrototypeOf(O) === N } function ve(O) { if (O === void 0) return 'undefined' if (O === null) return 'null' var N = typeof O switch (N) { case 'boolean': case 'string': case 'number': case 'symbol': case 'function': return N } if (Array.isArray(O)) return 'array' if (Re(O)) return 'date' if (_e(O)) return 'error' var A = Ie(O) switch (A) { case 'Symbol': case 'Promise': case 'WeakMap': case 'WeakSet': case 'Map': case 'Set': return A } return N.slice(8, -1).toLowerCase().replace(/\s/g, '') } function Ie(O) { return typeof O.constructor == 'function' ? O.constructor.name : null } function _e(O) { return ( O instanceof Error || (typeof O.message == 'string' && O.constructor && typeof O.constructor.stackTraceLimit == 'number') ) } function Re(O) { return O instanceof Date ? !0 : typeof O.toDateString == 'function' && typeof O.getDate == 'function' && typeof O.setDate == 'function' } function Ae(O) { var N = typeof O return N } function Le(O, N, A) { var J if ( (typeof N == 'function' && typeof A == 'function') || (typeof A == 'function' && typeof arguments[3] == 'function') ) throw new Error(B(0)) if ((typeof N == 'function' && typeof A == 'undefined' && ((A = N), (N = void 0)), typeof A != 'undefined')) { if (typeof A != 'function') throw new Error(B(1)) return A(Le)(O, N) } if (typeof O != 'function') throw new Error(B(2)) var ce = O, Be = N, lt = [], mt = lt, It = !1 function Yt() { mt === lt && (mt = lt.slice()) } function Kt() { if (It) throw new Error(B(3)) return Be } function Ir(In) { if (typeof In != 'function') throw new Error(B(4)) if (It) throw new Error(B(5)) var Ei = !0 return ( Yt(), mt.push(In), function () { if (Ei) { if (It) throw new Error(B(6)) ;(Ei = !1), Yt() var lr = mt.indexOf(In) mt.splice(lr, 1), (lt = null) } } ) } function Sr(In) { if (!ke(In)) throw new Error(B(7)) if (typeof In.type == 'undefined') throw new Error(B(8)) if (It) throw new Error(B(9)) try { ;(It = !0), (Be = ce(Be, In)) } finally { It = !1 } for (var Ei = (lt = mt), Bi = 0; Bi < Ei.length; Bi++) { var lr = Ei[Bi] lr() } return In } function Ci(In) { if (typeof In != 'function') throw new Error(B(10)) ;(ce = In), Sr({ type: pe.REPLACE }) } function da() { var In, Ei = Ir return ( (In = { subscribe: function (lr) { if (typeof lr != 'object' || lr === null) throw new Error(B(11)) function Dc() { lr.next && lr.next(Kt()) } Dc() var rd = Ei(Dc) return { unsubscribe: rd } }, }), (In[K] = function () { return this }), In ) } return ( Sr({ type: pe.INIT }), (J = { dispatch: Sr, subscribe: Ir, getState: Kt, replaceReducer: Ci }), (J[K] = da), J ) } var xe = null function Ne(O) { typeof console != 'undefined' && typeof console.error == 'function' && console.error(O) try { throw new Error(O) } catch (N) {} } function tt(O, N, A, J) { var ce = Object.keys(N), Be = A && A.type === pe.INIT ? 'preloadedState argument passed to createStore' : 'previous state received by the reducer' if (ce.length === 0) return 'Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.' if (!ke(O)) return ( 'The ' + Be + ' has unexpected type of "' + Ae(O) + '". Expected argument to be an object with the following ' + ('keys: "' + ce.join('", "') + '"') ) var lt = Object.keys(O).filter(function (mt) { return !N.hasOwnProperty(mt) && !J[mt] }) if ( (lt.forEach(function (mt) { J[mt] = !0 }), !(A && A.type === pe.REPLACE) && lt.length > 0) ) return ( 'Unexpected ' + (lt.length > 1 ? 'keys' : 'key') + ' ' + ('"' + lt.join('", "') + '" found in ' + Be + '. ') + 'Expected to find one of the known reducer keys instead: ' + ('"' + ce.join('", "') + '". Unexpected keys will be ignored.') ) } function be(O) { Object.keys(O).forEach(function (N) { var A = O[N], J = A(void 0, { type: pe.INIT }) if (typeof J == 'undefined') throw new Error(B(12)) if (typeof A(void 0, { type: pe.PROBE_UNKNOWN_ACTION() }) == 'undefined') throw new Error(B(13)) }) } function We(O) { for (var N = Object.keys(O), A = {}, J = 0; J < N.length; J++) { var ce = N[J] typeof O[ce] == 'function' && (A[ce] = O[ce]) } var Be = Object.keys(A), lt, mt try { be(A) } catch (It) { mt = It } return function (Yt, Kt) { if ((Yt === void 0 && (Yt = {}), mt)) throw mt if (!1) var Ir for (var Sr = !1, Ci = {}, da = 0; da < Be.length; da++) { var In = Be[da], Ei = A[In], Bi = Yt[In], lr = Ei(Bi, Kt) if (typeof lr == 'undefined') { var Dc = Kt && Kt.type throw new Error(B(14)) } ;(Ci[In] = lr), (Sr = Sr || lr !== Bi) } return (Sr = Sr || Be.length !== Object.keys(Yt).length), Sr ? Ci : Yt } } function we(O, N) { return function () { return N(O.apply(this, arguments)) } } function ut(O, N) { if (typeof O == 'function') return we(O, N) if (typeof O != 'object' || O === null) throw new Error(B(16)) var A = {} for (var J in O) { var ce = O[J] typeof ce == 'function' && (A[J] = we(ce, N)) } return A } function nt() { for (var O = arguments.length, N = new Array(O), A = 0; A < O; A++) N[A] = arguments[A] return N.length === 0 ? function (J) { return J } : N.length === 1 ? N[0] : N.reduce(function (J, ce) { return function () { return J(ce.apply(void 0, arguments)) } }) } function st() { for (var O = arguments.length, N = new Array(O), A = 0; A < O; A++) N[A] = arguments[A] return function (J) { return function () { var ce = J.apply(void 0, arguments), Be = function () { throw new Error(B(15)) }, lt = { getState: ce.getState, dispatch: function () { return Be.apply(void 0, arguments) }, }, mt = N.map(function (It) { return It(lt) }) return ( (Be = nt.apply(void 0, mt)(ce.dispatch)), _objectSpread(_objectSpread({}, ce), {}, { dispatch: Be }) ) } } } var rt = C(6690), ht = C(9728), Wt = C(4155) function ee(O, N, ...A) { if (je() && N === void 0) throw new Error('invariant requires an error message argument') if (!O) { let J if (N === void 0) J = new Error( 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.' ) else { let ce = 0 ;(J = new Error( N.replace(/%s/g, function () { return A[ce++] }) )), (J.name = 'Invariant Violation') } throw ((J.framesToPop = 1), J) } } function je() { return typeof Wt != 'undefined' && !0 } var He = C(8698) function $e(O, N, A) { return N.split('.').reduce(function (J, ce) { return J && J[ce] ? J[ce] : A || null }, O) } function X(O, N) { return O.filter(function (A) { return A !== N }) } function Y(O) { return typeof O == 'string' } function Se(O) { return He(O) === 'object' } function re(O, N) { var A = new Map(), J = function (lt) { A.set(lt, A.has(lt) ? A.get(lt) + 1 : 1) } O.forEach(J), N.forEach(J) var ce = [] return ( A.forEach(function (Be, lt) { Be === 1 && ce.push(lt) }), ce ) } function W(O, N) { return O.filter(function (A) { return N.indexOf(A) > -1 }) } var Q = 'dnd-core/INIT_COORDS', Z = 'dnd-core/BEGIN_DRAG', G = 'dnd-core/PUBLISH_DRAG_SOURCE', ue = 'dnd-core/HOVER', he = 'dnd-core/DROP', Pe = 'dnd-core/END_DRAG' function Fe(O, N) { return { type: Q, payload: { sourceClientOffset: N || null, clientOffset: O || null } } } var Je = { type: Q, payload: { clientOffset: null, sourceClientOffset: null } } function Ue(O) { return function () { var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { publishSource: !0 }, ce = J.publishSource, Be = ce === void 0 ? !0 : ce, lt = J.clientOffset, mt = J.getSourceClientOffset, It = O.getMonitor(), Yt = O.getRegistry() O.dispatch(Fe(lt)), ct(A, It, Yt) var Kt = Qt(A, It) if (Kt == null) { O.dispatch(Je) return } var Ir = null if (lt) { if (!mt) throw new Error('getSourceClientOffset must be defined') Gt(mt), (Ir = mt(Kt)) } O.dispatch(Fe(lt, Ir)) var Sr = Yt.getSource(Kt), Ci = Sr.beginDrag(It, Kt) if (Ci != null) { nn(Ci), Yt.pinSource(Kt) var da = Yt.getSourceType(Kt) return { type: Z, payload: { itemType: da, item: Ci, sourceId: Kt, clientOffset: lt || null, sourceClientOffset: Ir || null, isSourcePublic: !!Be, }, } } } } function ct(O, N, A) { ee(!N.isDragging(), 'Cannot call beginDrag while dragging.'), O.forEach(function (J) { ee(A.getSource(J), 'Expected sourceIds to be registered.') }) } function Gt(O) { ee(typeof O == 'function', 'When clientOffset is provided, getSourceClientOffset must be a function.') } function nn(O) { ee(Se(O), 'Item must be an object.') } function Qt(O, N) { for (var A = null, J = O.length - 1; J >= 0; J--) if (N.canDragSource(O[J])) { A = O[J] break } return A } function sn(O, N, A) { return ( N in O ? Object.defineProperty(O, N, { value: A, enumerable: !0, configurable: !0, writable: !0 }) : (O[N] = A), O ) } function Gn(O) { for (var N = 1; N < arguments.length; N++) { var A = arguments[N] != null ? arguments[N] : {}, J = Object.keys(A) typeof Object.getOwnPropertySymbols == 'function' && (J = J.concat( Object.getOwnPropertySymbols(A).filter(function (ce) { return Object.getOwnPropertyDescriptor(A, ce).enumerable }) )), J.forEach(function (ce) { sn(O, ce, A[ce]) }) } return O } function Xn(O) { return function () { var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, J = O.getMonitor(), ce = O.getRegistry() er(J) var Be = Fr(J) Be.forEach(function (lt, mt) { var It = na(lt, mt, ce, J), Yt = { type: he, payload: { dropResult: Gn({}, A, It) } } O.dispatch(Yt) }) } } function er(O) { ee(O.isDragging(), 'Cannot call drop while not dragging.'), ee(!O.didDrop(), 'Cannot call drop twice during one drag operation.') } function na(O, N, A, J) { var ce = A.getTarget(O), Be = ce ? ce.drop(J, O) : void 0 return zi(Be), typeof Be == 'undefined' && (Be = N === 0 ? {} : J.getDropResult()), Be } function zi(O) { ee(typeof O == 'undefined' || Se(O), 'Drop result must either be an object or undefined.') } function Fr(O) { var N = O.getTargetIds().filter(O.canDropOnTarget, O) return N.reverse(), N } function Or(O) { return function () { var A = O.getMonitor(), J = O.getRegistry() _r(A) var ce = A.getSourceId() if (ce != null) { var Be = J.getSource(ce, !0) Be.endDrag(A, ce), J.unpinSource() } return { type: Pe } } } function _r(O) { ee(O.isDragging(), 'Cannot call endDrag while not dragging.') } function $r(O, N) { return N === null ? O === null : Array.isArray(O) ? O.some(function (A) { return A === N }) : O === N } function ra(O) { return function (A) { var J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, ce = J.clientOffset On(A) var Be = A.slice(0), lt = O.getMonitor(), mt = O.getRegistry(), It = lt.getItemType() return ( on(Be, mt, It), Fa(Be, lt, mt), Mo(Be, lt, mt), { type: ue, payload: { targetIds: Be, clientOffset: ce || null } } ) } } function On(O) { ee(Array.isArray(O), 'Expected targetIds to be an array.') } function Fa(O, N, A) { ee(N.isDragging(), 'Cannot call hover while not dragging.'), ee(!N.didDrop(), 'Cannot call hover after drop.') for (var J = 0; J < O.length; J++) { var ce = O[J] ee(O.lastIndexOf(ce) === J, 'Expected targetIds to be unique in the passed array.') var Be = A.getTarget(ce) ee(Be, 'Expected targetIds to be registered.') } } function on(O, N, A) { for (var J = O.length - 1; J >= 0; J--) { var ce = O[J], Be = N.getTargetType(ce) $r(Be, A) || O.splice(J, 1) } } function Mo(O, N, A) { O.forEach(function (J) { var ce = A.getTarget(J) ce.hover(N, J) }) } function ia(O) { return function () { var A = O.getMonitor() if (A.isDragging()) return { type: G } } } function Ao(O) { return { beginDrag: Ue(O), publishDragSource: ia(O), hover: ra(O), drop: Xn(O), endDrag: Or(O) } } var No = (function () { function O(N, A) { var J = this rt(this, O), (this.isSetUp = !1), (this.handleRefCountChange = function () { var ce = J.store.getState().refCount > 0 J.backend && (ce && !J.isSetUp ? (J.backend.setup(), (J.isSetUp = !0)) : !ce && J.isSetUp && (J.backend.teardown(), (J.isSetUp = !1))) }), (this.store = N), (this.monitor = A), N.subscribe(this.handleRefCountChange) } return ( ht(O, [ { key: 'receiveBackend', value: function (A) { this.backend = A }, }, { key: 'getMonitor', value: function () { return this.monitor }, }, { key: 'getBackend', value: function () { return this.backend }, }, { key: 'getRegistry', value: function () { return this.monitor.registry }, }, { key: 'getActions', value: function () { var A = this, J = this.store.dispatch function ce(lt) { return function () { for (var mt = arguments.length, It = new Array(mt), Yt = 0; Yt < mt; Yt++) It[Yt] = arguments[Yt] var Kt = lt.apply(A, It) typeof Kt != 'undefined' && J(Kt) } } var Be = Ao(this) return Object.keys(Be).reduce(function (lt, mt) { var It = Be[mt] return (lt[mt] = ce(It)), lt }, {}) }, }, { key: 'dispatch', value: function (A) { this.store.dispatch(A) }, }, ]), O ) })() function jo(O, N) { return { x: O.x + N.x, y: O.y + N.y } } function dc(O, N) { return { x: O.x - N.x, y: O.y - N.y } } function Bu(O) { var N = O.clientOffset, A = O.initialClientOffset, J = O.initialSourceClientOffset return !N || !A || !J ? null : dc(jo(N, J), A) } function Uu(O) { var N = O.clientOffset, A = O.initialClientOffset return !N || !A ? null : dc(N, A) } var zo = [], Lo = [] ;(zo.__IS_NONE__ = !0), (Lo.__IS_ALL__ = !0) function fc(O, N) { if (O === zo) return !1 if (O === Lo || typeof N == 'undefined') return !0 var A = W(N, O) return A.length > 0 } var Fo = (function () { function O(N, A) { rt(this, O), (this.store = N), (this.registry = A) } return ( ht(O, [ { key: 'subscribeToStateChange', value: function (A) { var J = this, ce = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Be = ce.handlerIds ee(typeof A == 'function', 'listener must be a function.'), ee( typeof Be == 'undefined' || Array.isArray(Be), 'handlerIds, when specified, must be an array of strings.' ) var lt = this.store.getState().stateId, mt = function () { var Yt = J.store.getState(), Kt = Yt.stateId try { var Ir = Kt === lt || (Kt === lt + 1 && !fc(Yt.dirtyHandlerIds, Be)) Ir || A() } finally { lt = Kt } } return this.store.subscribe(mt) }, }, { key: 'subscribeToOffsetChange', value: function (A) { var J = this ee(typeof A == 'function', 'listener must be a function.') var ce = this.store.getState().dragOffset, Be = function () { var mt = J.store.getState().dragOffset mt !== ce && ((ce = mt), A()) } return this.store.subscribe(Be) }, }, { key: 'canDragSource', value: function (A) { if (!A) return !1 var J = this.registry.getSource(A) return ( ee(J, 'Expected to find a valid source. sourceId='.concat(A)), this.isDragging() ? !1 : J.canDrag(this, A) ) }, }, { key: 'canDropOnTarget', value: function (A) { if (!A) return !1 var J = this.registry.getTarget(A) if ( (ee(J, 'Expected to find a valid target. targetId='.concat(A)), !this.isDragging() || this.didDrop()) ) return !1 var ce = this.registry.getTargetType(A), Be = this.getItemType() return $r(ce, Be) && J.canDrop(this, A) }, }, { key: 'isDragging', value: function () { return Boolean(this.getItemType()) }, }, { key: 'isDraggingSource', value: function (A) { if (!A) return !1 var J = this.registry.getSource(A, !0) if ( (ee(J, 'Expected to find a valid source. sourceId='.concat(A)), !this.isDragging() || !this.isSourcePublic()) ) return !1 var ce = this.registry.getSourceType(A), Be = this.getItemType() return ce !== Be ? !1 : J.isDragging(this, A) }, }, { key: 'isOverTarget', value: function (A) { var J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { shallow: !1 } if (!A) return !1 var ce = J.shallow if (!this.isDragging()) return !1 var Be = this.registry.getTargetType(A), lt = this.getItemType() if (lt && !$r(Be, lt)) return !1 var mt = this.getTargetIds() if (!mt.length) return !1 var It = mt.indexOf(A) return ce ? It === mt.length - 1 : It > -1 }, }, { key: 'getItemType', value: function () { return this.store.getState().dragOperation.itemType }, }, { key: 'getItem', value: function () { return this.store.getState().dragOperation.item }, }, { key: 'getSourceId', value: function () { return this.store.getState().dragOperation.sourceId }, }, { key: 'getTargetIds', value: function () { return this.store.getState().dragOperation.targetIds }, }, { key: 'getDropResult', value: function () { return this.store.getState().dragOperation.dropResult }, }, { key: 'didDrop', value: function () { return this.store.getState().dragOperation.didDrop }, }, { key: 'isSourcePublic', value: function () { return Boolean(this.store.getState().dragOperation.isSourcePublic) }, }, { key: 'getInitialClientOffset', value: function () { return this.store.getState().dragOffset.initialClientOffset }, }, { key: 'getInitialSourceClientOffset', value: function () { return this.store.getState().dragOffset.initialSourceClientOffset }, }, { key: 'getClientOffset', value: function () { return this.store.getState().dragOffset.clientOffset }, }, { key: 'getSourceClientOffset', value: function () { return Bu(this.store.getState().dragOffset) }, }, { key: 'getDifferenceFromInitialOffset', value: function () { return Uu(this.store.getState().dragOffset) }, }, ]), O ) })() const Qs = typeof global != 'undefined' ? global : self, Js = Qs.MutationObserver || Qs.WebKitMutationObserver function aa(O) { return function () { const A = setTimeout(ce, 0), J = setInterval(ce, 50) function ce() { clearTimeout(A), clearInterval(J), O() } } } function yr(O) { let N = 1 const A = new Js(O), J = document.createTextNode('') return ( A.observe(J, { characterData: !0 }), function () { ;(N = -N), (J.data = N) } ) } const Zs = typeof Js == 'function' ? yr : aa class pc { enqueueTask(N) { const { queue: A, requestFlush: J } = this A.length || (J(), (this.flushing = !0)), (A[A.length] = N) } constructor() { ;(this.queue = []), (this.pendingErrors = []), (this.flushing = !1), (this.index = 0), (this.capacity = 1024), (this.flush = () => { const { queue: N } = this for (; this.index < N.length; ) { const A = this.index if ((this.index++, N[A].call(), this.index > this.capacity)) { for (let J = 0, ce = N.length - this.index; J < ce; J++) N[J] = N[J + this.index] ;(N.length -= this.index), (this.index = 0) } } ;(N.length = 0), (this.index = 0), (this.flushing = !1) }), (this.registerPendingError = (N) => { this.pendingErrors.push(N), this.requestErrorThrow() }), (this.requestFlush = Zs(this.flush)), (this.requestErrorThrow = aa(() => { if (this.pendingErrors.length) throw this.pendingErrors.shift() })) } } class gc { call() { try { this.task && this.task() } catch (N) { this.onError(N) } finally { ;(this.task = null), this.release(this) } } constructor(N, A) { ;(this.onError = N), (this.release = A), (this.task = null) } } class Wu { create(N) { const A = this.freeTasks, J = A.length ? A.pop() : new gc(this.onError, (ce) => (A[A.length] = ce)) return (J.task = N), J } constructor(N) { ;(this.onError = N), (this.freeTasks = []) } } const mc = new pc(), $o = new Wu(mc.registerPendingError) function $a(O) { mc.enqueueTask($o.create(O)) } var wi = 'dnd-core/ADD_SOURCE', Ha = 'dnd-core/ADD_TARGET', xi = 'dnd-core/REMOVE_SOURCE', Ho = 'dnd-core/REMOVE_TARGET' function Ba(O) { return { type: wi, payload: { sourceId: O } } } function Bo(O) { return { type: Ha, payload: { targetId: O } } } function Ua(O) { return { type: xi, payload: { sourceId: O } } } function el(O) { return { type: Ho, payload: { targetId: O } } } function Vu(O) { ee(typeof O.canDrag == 'function', 'Expected canDrag to be a function.'), ee(typeof O.beginDrag == 'function', 'Expected beginDrag to be a function.'), ee(typeof O.endDrag == 'function', 'Expected endDrag to be a function.') } function Gu(O) { ee(typeof O.canDrop == 'function', 'Expected canDrop to be a function.'), ee(typeof O.hover == 'function', 'Expected hover to be a function.'), ee(typeof O.drop == 'function', 'Expected beginDrag to be a function.') } function tl(O, N) { if (N && Array.isArray(O)) { O.forEach(function (A) { return tl(A, !1) }) return } ee( typeof O == 'string' || He(O) === 'symbol', N ? 'Type can only be a string, a symbol, or an array of either.' : 'Type can only be a string or a symbol.' ) } var Mn ;(function (O) { ;(O.SOURCE = 'SOURCE'), (O.TARGET = 'TARGET') })(Mn || (Mn = {})) var nl = 0 function hc() { return nl++ } function vc(O) { var N = hc().toString() switch (O) { case Mn.SOURCE: return 'S'.concat(N) case Mn.TARGET: return 'T'.concat(N) default: throw new Error('Unknown Handler Role: '.concat(O)) } } function _c(O) { switch (O[0]) { case 'S': return Mn.SOURCE case 'T': return Mn.TARGET default: throw new Error('Cannot parse handler ID: '.concat(O)) } } function Uo(O, N) { var A = O.entries(), J = !1 do { var ce = A.next(), Be = ce.done, lt = T(ce.value, 2), mt = lt[1] if (mt === N) return !0 J = !!Be } while (!J) return !1 } var yc = (function () { function O(N) { rt(this, O), (this.types = new Map()), (this.dragSources = new Map()), (this.dropTargets = new Map()), (this.pinnedSourceId = null), (this.pinnedSource = null), (this.store = N) } return ( ht(O, [ { key: 'addSource', value: function (A, J) { tl(A), Vu(J) var ce = this.addHandler(Mn.SOURCE, A, J) return this.store.dispatch(Ba(ce)), ce }, }, { key: 'addTarget', value: function (A, J) { tl(A, !0), Gu(J) var ce = this.addHandler(Mn.TARGET, A, J) return this.store.dispatch(Bo(ce)), ce }, }, { key: 'containsHandler', value: function (A) { return Uo(this.dragSources, A) || Uo(this.dropTargets, A) }, }, { key: 'getSource', value: function (A) { var J = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1 ee(this.isSourceId(A), 'Expected a valid source ID.') var ce = J && A === this.pinnedSourceId, Be = ce ? this.pinnedSource : this.dragSources.get(A) return Be }, }, { key: 'getTarget', value: function (A) { return ee(this.isTargetId(A), 'Expected a valid target ID.'), this.dropTargets.get(A) }, }, { key: 'getSourceType', value: function (A) { return ee(this.isSourceId(A), 'Expected a valid source ID.'), this.types.get(A) }, }, { key: 'getTargetType', value: function (A) { return ee(this.isTargetId(A), 'Expected a valid target ID.'), this.types.get(A) }, }, { key: 'isSourceId', value: function (A) { var J = _c(A) return J === Mn.SOURCE }, }, { key: 'isTargetId', value: function (A) { var J = _c(A) return J === Mn.TARGET }, }, { key: 'removeSource', value: function (A) { var J = this ee(this.getSource(A), 'Expected an existing source.'), this.store.dispatch(Ua(A)), $a(function () { J.dragSources.delete(A), J.types.delete(A) }) }, }, { key: 'removeTarget', value: function (A) { ee(this.getTarget(A), 'Expected an existing target.'), this.store.dispatch(el(A)), this.dropTargets.delete(A), this.types.delete(A) }, }, { key: 'pinSource', value: function (A) { var J = this.getSource(A) ee(J, 'Expected an existing source.'), (this.pinnedSourceId = A), (this.pinnedSource = J) }, }, { key: 'unpinSource', value: function () { ee(this.pinnedSource, 'No source is pinned at the time.'), (this.pinnedSourceId = null), (this.pinnedSource = null) }, }, { key: 'addHandler', value: function (A, J, ce) { var Be = vc(A) return ( this.types.set(Be, J), A === Mn.SOURCE ? this.dragSources.set(Be, ce) : A === Mn.TARGET && this.dropTargets.set(Be, ce), Be ) }, }, ]), O ) })(), bc = function (N, A) { return N === A } function Xu(O, N) { return !O && !N ? !0 : !O || !N ? !1 : O.x === N.x && O.y === N.y } function Sc(O, N) { var A = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : bc if (O.length !== N.length) return !1 for (var J = 0; J < O.length; ++J) if (!A(O[J], N[J])) return !1 return !0 } function Xt() { var O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : zo, N = arguments.length > 1 ? arguments[1] : void 0 switch (N.type) { case ue: break case wi: case Ha: case Ho: case xi: return zo case Z: case G: case Pe: case he: default: return Lo } var A = N.payload, J = A.targetIds, ce = J === void 0 ? [] : J, Be = A.prevTargetIds, lt = Be === void 0 ? [] : Be, mt = re(ce, lt), It = mt.length > 0 || !Sc(ce, lt) if (!It) return zo var Yt = lt[lt.length - 1], Kt = ce[ce.length - 1] return Yt !== Kt && (Yt && mt.push(Yt), Kt && mt.push(Kt)), mt } function Ku(O, N, A) { return ( N in O ? Object.defineProperty(O, N, { value: A, enumerable: !0, configurable: !0, writable: !0 }) : (O[N] = A), O ) } function Wo(O) { for (var N = 1; N < arguments.length; N++) { var A = arguments[N] != null ? arguments[N] : {}, J = Object.keys(A) typeof Object.getOwnPropertySymbols == 'function' && (J = J.concat( Object.getOwnPropertySymbols(A).filter(function (ce) { return Object.getOwnPropertyDescriptor(A, ce).enumerable }) )), J.forEach(function (ce) { Ku(O, ce, A[ce]) }) } return O } var rl = { initialSourceClientOffset: null, initialClientOffset: null, clientOffset: null } function Vo() { var O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : rl, N = arguments.length > 1 ? arguments[1] : void 0, A = N.payload switch (N.type) { case Q: case Z: return { initialSourceClientOffset: A.sourceClientOffset, initialClientOffset: A.clientOffset, clientOffset: A.clientOffset, } case ue: return Xu(O.clientOffset, A.clientOffset) ? O : Wo({}, O, { clientOffset: A.clientOffset }) case Pe: case he: return rl default: return O } } function Yu(O, N, A) { return ( N in O ? Object.defineProperty(O, N, { value: A, enumerable: !0, configurable: !0, writable: !0 }) : (O[N] = A), O ) } function Li(O) { for (var N = 1; N < arguments.length; N++) { var A = arguments[N] != null ? arguments[N] : {}, J = Object.keys(A) typeof Object.getOwnPropertySymbols == 'function' && (J = J.concat( Object.getOwnPropertySymbols(A).filter(function (ce) { return Object.getOwnPropertyDescriptor(A, ce).enumerable }) )), J.forEach(function (ce) { Yu(O, ce, A[ce]) }) } return O } var Go = { itemType: null, item: null, sourceId: null, targetIds: [], dropResult: null, didDrop: !1, isSourcePublic: null, } function Tr() { var O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Go, N = arguments.length > 1 ? arguments[1] : void 0, A = N.payload switch (N.type) { case Z: return Li({}, O, { itemType: A.itemType, item: A.item, sourceId: A.sourceId, isSourcePublic: A.isSourcePublic, dropResult: null, didDrop: !1, }) case G: return Li({}, O, { isSourcePublic: !0 }) case ue: return Li({}, O, { targetIds: A.targetIds }) case Ho: return O.targetIds.indexOf(A.targetId) === -1 ? O : Li({}, O, { targetIds: X(O.targetIds, A.targetId) }) case he: return Li({}, O, { dropResult: A.dropResult, didDrop: !0, targetIds: [] }) case Pe: return Li({}, O, { itemType: null, item: null, sourceId: null, dropResult: null, didDrop: !1, isSourcePublic: null, targetIds: [], }) default: return O } } function $f() { var O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, N = arguments.length > 1 ? arguments[1] : void 0 switch (N.type) { case wi: case Ha: return O + 1 case xi: case Ho: return O - 1 default: return O } } function Hr() { var O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0 return O + 1 } function qu(O, N, A) { return ( N in O ? Object.defineProperty(O, N, { value: A, enumerable: !0, configurable: !0, writable: !0 }) : (O[N] = A), O ) } function Qu(O) { for (var N = 1; N < arguments.length; N++) { var A = arguments[N] != null ? arguments[N] : {}, J = Object.keys(A) typeof Object.getOwnPropertySymbols == 'function' && (J = J.concat( Object.getOwnPropertySymbols(A).filter(function (ce) { return Object.getOwnPropertyDescriptor(A, ce).enumerable }) )), J.forEach(function (ce) { qu(O, ce, A[ce]) }) } return O } function wc() { var O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, N = arguments.length > 1 ? arguments[1] : void 0 return { dirtyHandlerIds: Xt(O.dirtyHandlerIds, { type: N.type, payload: Qu({}, N.payload, { prevTargetIds: $e(O, 'dragOperation.targetIds', []) }), }), dragOffset: Vo(O.dragOffset, N), refCount: $f(O.refCount, N), dragOperation: Tr(O.dragOperation, N), stateId: Hr(O.stateId), } } function Wa(O) { var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : void 0, A = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, J = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, ce = oa(J), Be = new Fo(ce, new yc(ce)), lt = new No(ce, Be), mt = O(lt, N, A) return lt.receiveBackend(mt), lt } function oa(O) { var N = typeof window != 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__ return Le(wc, O && N && N({ name: 'dnd-core', instanceId: 'dnd-core' })) } function sa(O, N) { if (O == null) return {} var A = il(O, N), J, ce if (Object.getOwnPropertySymbols) { var Be = Object.getOwnPropertySymbols(O) for (ce = 0; ce < Be.length; ce++) (J = Be[ce]), !(N.indexOf(J) >= 0) && Object.prototype.propertyIsEnumerable.call(O, J) && (A[J] = O[J]) } return A } function il(O, N) { if (O == null) return {} var A = {}, J = Object.keys(O), ce, Be for (Be = 0; Be < J.length; Be++) (ce = J[Be]), !(N.indexOf(ce) >= 0) && (A[ce] = O[ce]) return A } var Ju = 0, al = Symbol.for('__REACT_DND_CONTEXT_INSTANCE__'), xc = (0, I.memo)(function (N) { var A = N.children, J = sa(N, ['children']), ce = Zu(J), Be = T(ce, 2), lt = Be[0], mt = Be[1] return ( (0, I.useEffect)(function () { if (mt) { var It = Va() return ( ++Ju, function () { --Ju === 0 && (It[al] = null) } ) } }, []), (0, V.jsx)($.Provider, { value: lt, children: A }) ) }) function Zu(O) { if ('manager' in O) { var N = { dragDropManager: O.manager } return [N, !1] } var A = Cc(O.backend, O.context, O.options, O.debugMode), J = !O.context return [A, J] } function Cc(O) { var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Va(), A = arguments.length > 2 ? arguments[2] : void 0, J = arguments.length > 3 ? arguments[3] : void 0, ce = N return ce[al] || (ce[al] = { dragDropManager: Wa(O, N, A, J) }), ce[al] } function Va() { return typeof global != 'undefined' ? global : window } var Ga = (0, I.memo)(function (N) { var A = N.connect, J = N.src return ( (0, I.useEffect)(function () { if (typeof Image != 'undefined') { var ce = !1, Be = new Image() return ( (Be.src = J), (Be.onload = function () { A(Be), (ce = !0) }), function () { ce && A(null) } ) } }), null ) }), ol = C(4063), Zt = typeof window != 'undefined' ? I.useLayoutEffect : I.useEffect function Ec(O, N, A) { var J = (0, I.useState)(function () { return N(O) }), ce = T(J, 2), Be = ce[0], lt = ce[1], mt = (0, I.useCallback)( function () { var It = N(O) ol(Be, It) || (lt(It), A && A()) }, [Be, O, A] ) return Zt(mt), [Be, mt] } function Dr(O, N, A) { var J = Ec(O, N, A), ce = T(J, 2), Be = ce[0], lt = ce[1] return ( Zt( function () { var It = O.getHandlerId() if (It != null) return O.subscribeToStateChange(lt, { handlerIds: [It] }) }, [O, lt] ), Be ) } function Br(O, N, A) { return Dr( N, O || function () { return {} }, function () { return A.reconnect() } ) } var kc = C(861) function Xo(O, N) { var A = kc(N || []) return ( N == null && typeof O != 'function' && A.push(O), (0, I.useMemo)(function () { return typeof O == 'function' ? O() : O }, A) ) } function ed(O) { return (0, I.useMemo)( function () { return O.hooks.dragSource() }, [O] ) } function Ko(O) { return (0, I.useMemo)( function () { return O.hooks.dragPreview() }, [O] ) } function la(O, N, A, J) { let ce = A ? A.call(J, O, N) : void 0 if (ce !== void 0) return !!ce if (O === N) return !0 if (typeof O != 'object' || !O || typeof N != 'object' || !N) return !1 const Be = Object.keys(O), lt = Object.keys(N) if (Be.length !== lt.length) return !1 const mt = Object.prototype.hasOwnProperty.bind(N) for (let It = 0; It < Be.length; It++) { const Yt = Be[It] if (!mt(Yt)) return !1 const Kt = O[Yt], Ir = N[Yt] if (((ce = A ? A.call(J, Kt, Ir, Yt) : void 0), ce === !1 || (ce === void 0 && Kt !== Ir))) return !1 } return !0 } function br(O) { return O !== null && He(O) === 'object' && Object.prototype.hasOwnProperty.call(O, 'current') } function Fi(O) { if (typeof O.type != 'string') { var N = O.type.displayName || O.type.name || 'the component' throw new Error( 'Only native element nodes can now be passed to React DnD connectors.' + 'You can either wrap '.concat(N, ' into a
, or turn it into a ') + 'drag source or a drop target itself.' ) } } function $i(O) { return function () { var N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null if (!(0, I.isValidElement)(N)) { var J = N return O(J, A), J } var ce = N Fi(ce) var Be = A ? function (lt) { return O(lt, A) } : O return Hi(ce, Be) } } function ca(O) { var N = {} return ( Object.keys(O).forEach(function (A) { var J = O[A] if (A.endsWith('Ref')) N[A] = O[A] else { var ce = $i(J) N[A] = function () { return ce } } }), N ) } function Pr(O, N) { typeof O == 'function' ? O(N) : (O.current = N) } function Hi(O, N) { var A = O.ref return ( ee( typeof A != 'string', 'Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs' ), A ? (0, I.cloneElement)(O, { ref: function (ce) { Pr(A, ce), Pr(N, ce) }, }) : (0, I.cloneElement)(O, { ref: N }) ) } var td = (function () { function O(N) { var A = this rt(this, O), (this.hooks = ca({ dragSource: function (ce, Be) { A.clearDragSource(), (A.dragSourceOptions = Be || null), br(ce) ? (A.dragSourceRef = ce) : (A.dragSourceNode = ce), A.reconnectDragSource() }, dragPreview: function (ce, Be) { A.clearDragPreview(), (A.dragPreviewOptions = Be || null), br(ce) ? (A.dragPreviewRef = ce) : (A.dragPreviewNode = ce), A.reconnectDragPreview() }, })), (this.handlerId = null), (this.dragSourceRef = null), (this.dragSourceOptionsInternal = null), (this.dragPreviewRef = null), (this.dragPreviewOptionsInternal = null), (this.lastConnectedHandlerId = null), (this.lastConnectedDragSource = null), (this.lastConnectedDragSourceOptions = null), (this.lastConnectedDragPreview = null), (this.lastConnectedDragPreviewOptions = null), (this.backend = N) } return ( ht(O, [ { key: 'receiveHandlerId', value: function (A) { this.handlerId !== A && ((this.handlerId = A), this.reconnect()) }, }, { key: 'connectTarget', get: function () { return this.dragSource }, }, { key: 'dragSourceOptions', get: function () { return this.dragSourceOptionsInternal }, set: function (A) { this.dragSourceOptionsInternal = A }, }, { key: 'dragPreviewOptions', get: function () { return this.dragPreviewOptionsInternal }, set: function (A) { this.dragPreviewOptionsInternal = A }, }, { key: 'reconnect', value: function () { var A = this.reconnectDragSource() this.reconnectDragPreview(A) }, }, { key: 'reconnectDragSource', value: function () { var A = this.dragSource, J = this.didHandlerIdChange() || this.didConnectedDragSourceChange() || this.didDragSourceOptionsChange() return ( J && this.disconnectDragSource(), this.handlerId ? A ? (J && ((this.lastConnectedHandlerId = this.handlerId), (this.lastConnectedDragSource = A), (this.lastConnectedDragSourceOptions = this.dragSourceOptions), (this.dragSourceUnsubscribe = this.backend.connectDragSource( this.handlerId, A, this.dragSourceOptions ))), J) : ((this.lastConnectedDragSource = A), J) : J ) }, }, { key: 'reconnectDragPreview', value: function () { var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, J = this.dragPreview, ce = A || this.didHandlerIdChange() || this.didConnectedDragPreviewChange() || this.didDragPreviewOptionsChange() if ((ce && this.disconnectDragPreview(), !!this.handlerId)) { if (!J) { this.lastConnectedDragPreview = J return } ce && ((this.lastConnectedHandlerId = this.handlerId), (this.lastConnectedDragPreview = J), (this.lastConnectedDragPreviewOptions = this.dragPreviewOptions), (this.dragPreviewUnsubscribe = this.backend.connectDragPreview( this.handlerId, J, this.dragPreviewOptions ))) } }, }, { key: 'didHandlerIdChange', value: function () { return this.lastConnectedHandlerId !== this.handlerId }, }, { key: 'didConnectedDragSourceChange', value: function () { return this.lastConnectedDragSource !== this.dragSource }, }, { key: 'didConnectedDragPreviewChange', value: function () { return this.lastConnectedDragPreview !== this.dragPreview }, }, { key: 'didDragSourceOptionsChange', value: function () { return !la(this.lastConnectedDragSourceOptions, this.dragSourceOptions) }, }, { key: 'didDragPreviewOptionsChange', value: function () { return !la(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions) }, }, { key: 'disconnectDragSource', value: function () { this.dragSourceUnsubscribe && (this.dragSourceUnsubscribe(), (this.dragSourceUnsubscribe = void 0)) }, }, { key: 'disconnectDragPreview', value: function () { this.dragPreviewUnsubscribe && (this.dragPreviewUnsubscribe(), (this.dragPreviewUnsubscribe = void 0), (this.dragPreviewNode = null), (this.dragPreviewRef = null)) }, }, { key: 'dragSource', get: function () { return this.dragSourceNode || (this.dragSourceRef && this.dragSourceRef.current) }, }, { key: 'dragPreview', get: function () { return this.dragPreviewNode || (this.dragPreviewRef && this.dragPreviewRef.current) }, }, { key: 'clearDragSource', value: function () { ;(this.dragSourceNode = null), (this.dragSourceRef = null) }, }, { key: 'clearDragPreview', value: function () { ;(this.dragPreviewNode = null), (this.dragPreviewRef = null) }, }, ]), O ) })() function ii() { var O = (0, I.useContext)($), N = O.dragDropManager return ee(N != null, 'Expected drag drop context'), N } function Xa(O, N) { var A = ii(), J = (0, I.useMemo)( function () { return new td(A.getBackend()) }, [A] ) return ( Zt( function () { return ( (J.dragSourceOptions = O || null), J.reconnect(), function () { return J.disconnectDragSource() } ) }, [J, O] ), Zt( function () { return ( (J.dragPreviewOptions = N || null), J.reconnect(), function () { return J.disconnectDragPreview() } ) }, [J, N] ), J ) } var Oc = !1, Ka = !1, Yo = (function () { function O(N) { rt(this, O), (this.sourceId = null), (this.internalMonitor = N.getMonitor()) } return ( ht(O, [ { key: 'receiveHandlerId', value: function (A) { this.sourceId = A }, }, { key: 'getHandlerId', value: function () { return this.sourceId }, }, { key: 'canDrag', value: function () { ee( !Oc, 'You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor' ) try { return (Oc = !0), this.internalMonitor.canDragSource(this.sourceId) } finally { Oc = !1 } }, }, { key: 'isDragging', value: function () { if (!this.sourceId) return !1 ee( !Ka, 'You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor' ) try { return (Ka = !0), this.internalMonitor.isDraggingSource(this.sourceId) } finally { Ka = !1 } }, }, { key: 'subscribeToStateChange', value: function (A, J) { return this.internalMonitor.subscribeToStateChange(A, J) }, }, { key: 'isDraggingSource', value: function (A) { return this.internalMonitor.isDraggingSource(A) }, }, { key: 'isOverTarget', value: function (A, J) { return this.internalMonitor.isOverTarget(A, J) }, }, { key: 'getTargetIds', value: function () { return this.internalMonitor.getTargetIds() }, }, { key: 'isSourcePublic', value: function () { return this.internalMonitor.isSourcePublic() }, }, { key: 'getSourceId', value: function () { return this.internalMonitor.getSourceId() }, }, { key: 'subscribeToOffsetChange', value: function (A) { return this.internalMonitor.subscribeToOffsetChange(A) }, }, { key: 'canDragSource', value: function (A) { return this.internalMonitor.canDragSource(A) }, }, { key: 'canDropOnTarget', value: function (A) { return this.internalMonitor.canDropOnTarget(A) }, }, { key: 'getItemType', value: function () { return this.internalMonitor.getItemType() }, }, { key: 'getItem', value: function () { return this.internalMonitor.getItem() }, }, { key: 'getDropResult', value: function () { return this.internalMonitor.getDropResult() }, }, { key: 'didDrop', value: function () { return this.internalMonitor.didDrop() }, }, { key: 'getInitialClientOffset', value: function () { return this.internalMonitor.getInitialClientOffset() }, }, { key: 'getInitialSourceClientOffset', value: function () { return this.internalMonitor.getInitialSourceClientOffset() }, }, { key: 'getSourceClientOffset', value: function () { return this.internalMonitor.getSourceClientOffset() }, }, { key: 'getClientOffset', value: function () { return this.internalMonitor.getClientOffset() }, }, { key: 'getDifferenceFromInitialOffset', value: function () { return this.internalMonitor.getDifferenceFromInitialOffset() }, }, ]), O ) })() function Tc() { var O = ii() return (0, I.useMemo)( function () { return new Yo(O) }, [O] ) } function nd(O, N, A) { var J = A.getRegistry(), ce = J.addTarget(O, N) return [ ce, function () { return J.removeTarget(ce) }, ] } function qo(O, N, A) { var J = A.getRegistry(), ce = J.addSource(O, N) return [ ce, function () { return J.removeSource(ce) }, ] } var Ya = (function () { function O(N, A, J) { rt(this, O), (this.spec = N), (this.monitor = A), (this.connector = J) } return ( ht(O, [ { key: 'beginDrag', value: function () { var A = this.spec, J = this.monitor, ce = null return ( He(A.item) === 'object' ? (ce = A.item) : typeof A.item == 'function' ? (ce = A.item(J)) : (ce = {}), ce != null ? ce : null ) }, }, { key: 'canDrag', value: function () { var A = this.spec, J = this.monitor return typeof A.canDrag == 'boolean' ? A.canDrag : typeof A.canDrag == 'function' ? A.canDrag(J) : !0 }, }, { key: 'isDragging', value: function (A, J) { var ce = this.spec, Be = this.monitor, lt = ce.isDragging return lt ? lt(Be) : J === A.getSourceId() }, }, { key: 'endDrag', value: function () { var A = this.spec, J = this.monitor, ce = this.connector, Be = A.end Be && Be(J.getItem(), J), ce.reconnect() }, }, ]), O ) })() function qa(O, N, A) { var J = (0, I.useMemo)( function () { return new Ya(O, N, A) }, [N, A] ) return ( (0, I.useEffect)( function () { J.spec = O }, [O] ), J ) } function sl(O) { return (0, I.useMemo)( function () { var N = O.type return ee(N != null, 'spec.type must be defined'), N }, [O] ) } function Hf(O, N, A) { var J = ii(), ce = qa(O, N, A), Be = sl(O) Zt( function () { if (Be != null) { var mt = qo(Be, ce, J), It = T(mt, 2), Yt = It[0], Kt = It[1] return N.receiveHandlerId(Yt), A.receiveHandlerId(Yt), Kt } }, [J, N, A, ce, Be] ) } function Bf(O, N) { var A = Xo(O, N) ee( !A.begin, 'useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)' ) var J = Tc(), ce = Xa(A.options, A.previewOptions) return Hf(A, J, ce), [Br(A.collect, J, ce), ed(ce), Ko(ce)] } function at(O) { var N = ii(), A = N.getMonitor(), J = Ec(A, O), ce = T(J, 2), Be = ce[0], lt = ce[1] return ( (0, I.useEffect)(function () { return A.subscribeToOffsetChange(lt) }), (0, I.useEffect)(function () { return A.subscribeToStateChange(lt) }), Be ) } function ua(O) { return (0, I.useMemo)( function () { return O.hooks.dropTarget() }, [O] ) } var Qo = (function () { function O(N) { var A = this rt(this, O), (this.hooks = ca({ dropTarget: function (ce, Be) { A.clearDropTarget(), (A.dropTargetOptions = Be), br(ce) ? (A.dropTargetRef = ce) : (A.dropTargetNode = ce), A.reconnect() }, })), (this.handlerId = null), (this.dropTargetRef = null), (this.dropTargetOptionsInternal = null), (this.lastConnectedHandlerId = null), (this.lastConnectedDropTarget = null), (this.lastConnectedDropTargetOptions = null), (this.backend = N) } return ( ht(O, [ { key: 'connectTarget', get: function () { return this.dropTarget }, }, { key: 'reconnect', value: function () { var A = this.didHandlerIdChange() || this.didDropTargetChange() || this.didOptionsChange() A && this.disconnectDropTarget() var J = this.dropTarget if (this.handlerId) { if (!J) { this.lastConnectedDropTarget = J return } A && ((this.lastConnectedHandlerId = this.handlerId), (this.lastConnectedDropTarget = J), (this.lastConnectedDropTargetOptions = this.dropTargetOptions), (this.unsubscribeDropTarget = this.backend.connectDropTarget( this.handlerId, J, this.dropTargetOptions ))) } }, }, { key: 'receiveHandlerId', value: function (A) { A !== this.handlerId && ((this.handlerId = A), this.reconnect()) }, }, { key: 'dropTargetOptions', get: function () { return this.dropTargetOptionsInternal }, set: function (A) { this.dropTargetOptionsInternal = A }, }, { key: 'didHandlerIdChange', value: function () { return this.lastConnectedHandlerId !== this.handlerId }, }, { key: 'didDropTargetChange', value: function () { return this.lastConnectedDropTarget !== this.dropTarget }, }, { key: 'didOptionsChange', value: function () { return !la(this.lastConnectedDropTargetOptions, this.dropTargetOptions) }, }, { key: 'disconnectDropTarget', value: function () { this.unsubscribeDropTarget && (this.unsubscribeDropTarget(), (this.unsubscribeDropTarget = void 0)) }, }, { key: 'dropTarget', get: function () { return this.dropTargetNode || (this.dropTargetRef && this.dropTargetRef.current) }, }, { key: 'clearDropTarget', value: function () { ;(this.dropTargetRef = null), (this.dropTargetNode = null) }, }, ]), O ) })() function Jo(O) { var N = ii(), A = (0, I.useMemo)( function () { return new Qo(N.getBackend()) }, [N] ) return ( Zt( function () { return ( (A.dropTargetOptions = O || null), A.reconnect(), function () { return A.disconnectDropTarget() } ) }, [O] ), A ) } var Ur = !1, Zo = (function () { function O(N) { rt(this, O), (this.targetId = null), (this.internalMonitor = N.getMonitor()) } return ( ht(O, [ { key: 'receiveHandlerId', value: function (A) { this.targetId = A }, }, { key: 'getHandlerId', value: function () { return this.targetId }, }, { key: 'subscribeToStateChange', value: function (A, J) { return this.internalMonitor.subscribeToStateChange(A, J) }, }, { key: 'canDrop', value: function () { if (!this.targetId) return !1 ee( !Ur, 'You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor' ) try { return (Ur = !0), this.internalMonitor.canDropOnTarget(this.targetId) } finally { Ur = !1 } }, }, { key: 'isOver', value: function (A) { return this.targetId ? this.internalMonitor.isOverTarget(this.targetId, A) : !1 }, }, { key: 'getItemType', value: function () { return this.internalMonitor.getItemType() }, }, { key: 'getItem', value: function () { return this.internalMonitor.getItem() }, }, { key: 'getDropResult', value: function () { return this.internalMonitor.getDropResult() }, }, { key: 'didDrop', value: function () { return this.internalMonitor.didDrop() }, }, { key: 'getInitialClientOffset', value: function () { return this.internalMonitor.getInitialClientOffset() }, }, { key: 'getInitialSourceClientOffset', value: function () { return this.internalMonitor.getInitialSourceClientOffset() }, }, { key: 'getSourceClientOffset', value: function () { return this.internalMonitor.getSourceClientOffset() }, }, { key: 'getClientOffset', value: function () { return this.internalMonitor.getClientOffset() }, }, { key: 'getDifferenceFromInitialOffset', value: function () { return this.internalMonitor.getDifferenceFromInitialOffset() }, }, ]), O ) })() function tr() { var O = ii() return (0, I.useMemo)( function () { return new Zo(O) }, [O] ) } function ln(O) { var N = O.accept return (0, I.useMemo)( function () { return ee(O.accept != null, 'accept must be defined'), Array.isArray(N) ? N : [N] }, [N] ) } var es = (function () { function O(N, A) { rt(this, O), (this.spec = N), (this.monitor = A) } return ( ht(O, [ { key: 'canDrop', value: function () { var A = this.spec, J = this.monitor return A.canDrop ? A.canDrop(J.getItem(), J) : !0 }, }, { key: 'hover', value: function () { var A = this.spec, J = this.monitor A.hover && A.hover(J.getItem(), J) }, }, { key: 'drop', value: function () { var A = this.spec, J = this.monitor if (A.drop) return A.drop(J.getItem(), J) }, }, ]), O ) })() function Qa(O, N) { var A = (0, I.useMemo)( function () { return new es(O, N) }, [N] ) return ( (0, I.useEffect)( function () { A.spec = O }, [O] ), A ) } function ll(O, N, A) { var J = ii(), ce = Qa(O, N), Be = ln(O) Zt( function () { var mt = nd(Be, ce, J), It = T(mt, 2), Yt = It[0], Kt = It[1] return N.receiveHandlerId(Yt), A.receiveHandlerId(Yt), Kt }, [ J, N, ce, A, Be.map(function (lt) { return lt.toString() }).join('|'), ] ) } function mn(O, N) { var A = Xo(O, N), J = tr(), ce = Jo(A.options) return ll(A, J, ce), [Br(A.collect, J, ce), ua(ce)] } }, 2250: function (z, m, C) { 'use strict' C.r(m), C.d(m, { HTML5Backend: function () { return He }, NativeTypes: function () { return I }, getEmptyImage: function () { return je }, }) var I = {} C.r(I), C.d(I, { FILE: function () { return q }, HTML: function () { return ve }, TEXT: function () { return ke }, URL: function () { return pe }, }) function $($e) { let X = null return () => (X == null && (X = $e()), X) } function T($e, X) { return $e.filter((Y) => Y !== X) } function V($e, X) { const Y = new Set(), Se = (W) => Y.add(W) $e.forEach(Se), X.forEach(Se) const re = [] return Y.forEach((W) => re.push(W)), re } class B { enter(X) { const Y = this.entered.length, Se = (re) => this.isNodeInDocument(re) && (!re.contains || re.contains(X)) return (this.entered = V(this.entered.filter(Se), [X])), Y === 0 && this.entered.length > 0 } leave(X) { const Y = this.entered.length return (this.entered = T(this.entered.filter(this.isNodeInDocument), X)), Y > 0 && this.entered.length === 0 } reset() { this.entered = [] } constructor(X) { ;(this.entered = []), (this.isNodeInDocument = X) } } class K { initializeExposedProperties() { Object.keys(this.config.exposeProperties).forEach((X) => { Object.defineProperty(this.item, X, { configurable: !0, enumerable: !0, get() { return console.warn(`Browser doesn't allow reading "${X}" until the drop event.`), null }, }) }) } loadDataTransfer(X) { if (X) { const Y = {} Object.keys(this.config.exposeProperties).forEach((Se) => { const re = this.config.exposeProperties[Se] re != null && (Y[Se] = { value: re(X, this.config.matchesTypes), configurable: !0, enumerable: !0 }) }), Object.defineProperties(this.item, Y) } } canDrag() { return !0 } beginDrag() { return this.item } isDragging(X, Y) { return Y === X.getSourceId() } endDrag() {} constructor(X) { ;(this.config = X), (this.item = {}), this.initializeExposedProperties() } } const q = '__NATIVE_FILE__', pe = '__NATIVE_URL__', ke = '__NATIVE_TEXT__', ve = '__NATIVE_HTML__' function Ie($e, X, Y) { const Se = X.reduce((re, W) => re || $e.getData(W), '') return Se != null ? Se : Y } const _e = { [q]: { exposeProperties: { files: ($e) => Array.prototype.slice.call($e.files), items: ($e) => $e.items, dataTransfer: ($e) => $e, }, matchesTypes: ['Files'], }, [ve]: { exposeProperties: { html: ($e, X) => Ie($e, X, ''), dataTransfer: ($e) => $e }, matchesTypes: ['Html', 'text/html'], }, [pe]: { exposeProperties: { urls: ($e, X) => Ie($e, X, '').split(` `), dataTransfer: ($e) => $e, }, matchesTypes: ['Url', 'text/uri-list'], }, [ke]: { exposeProperties: { text: ($e, X) => Ie($e, X, ''), dataTransfer: ($e) => $e }, matchesTypes: ['Text', 'text/plain'], }, } function Re($e, X) { const Y = _e[$e] if (!Y) throw new Error(`native type ${$e} has no configuration`) const Se = new K(Y) return Se.loadDataTransfer(X), Se } function Ae($e) { if (!$e) return null const X = Array.prototype.slice.call($e.types || []) return ( Object.keys(_e).filter((Y) => { const Se = _e[Y] return Se != null && Se.matchesTypes ? Se.matchesTypes.some((re) => X.indexOf(re) > -1) : !1 })[0] || null ) } const Le = $(() => /firefox/i.test(navigator.userAgent)), xe = $(() => Boolean(window.safari)) class Ne { interpolate(X) { const { xs: Y, ys: Se, c1s: re, c2s: W, c3s: Q } = this let Z = Y.length - 1 if (X === Y[Z]) return Se[Z] let G = 0, ue = Q.length - 1, he for (; G <= ue; ) { he = Math.floor(0.5 * (G + ue)) const Je = Y[he] if (Je < X) G = he + 1 else if (Je > X) ue = he - 1 else return Se[he] } Z = Math.max(0, ue) const Pe = X - Y[Z], Fe = Pe * Pe return Se[Z] + re[Z] * Pe + W[Z] * Fe + Q[Z] * Pe * Fe } constructor(X, Y) { const { length: Se } = X, re = [] for (let Ue = 0; Ue < Se; Ue++) re.push(Ue) re.sort((Ue, ct) => (X[Ue] < X[ct] ? -1 : 1)) const W = [], Q = [], Z = [] let G, ue for (let Ue = 0; Ue < Se - 1; Ue++) (G = X[Ue + 1] - X[Ue]), (ue = Y[Ue + 1] - Y[Ue]), Q.push(G), W.push(ue), Z.push(ue / G) const he = [Z[0]] for (let Ue = 0; Ue < Q.length - 1; Ue++) { const ct = Z[Ue], Gt = Z[Ue + 1] if (ct * Gt <= 0) he.push(0) else { G = Q[Ue] const nn = Q[Ue + 1], Qt = G + nn he.push((3 * Qt) / ((Qt + nn) / ct + (Qt + G) / Gt)) } } he.push(Z[Z.length - 1]) const Pe = [], Fe = [] let Je for (let Ue = 0; Ue < he.length - 1; Ue++) { Je = Z[Ue] const ct = he[Ue], Gt = 1 / Q[Ue], nn = ct + he[Ue + 1] - Je - Je Pe.push((Je - ct - nn) * Gt), Fe.push(nn * Gt * Gt) } ;(this.xs = X), (this.ys = Y), (this.c1s = he), (this.c2s = Pe), (this.c3s = Fe) } } const tt = 1 function be($e) { const X = $e.nodeType === tt ? $e : $e.parentElement if (!X) return null const { top: Y, left: Se } = X.getBoundingClientRect() return { x: Se, y: Y } } function We($e) { return { x: $e.clientX, y: $e.clientY } } function we($e) { var X return ( $e.nodeName === 'IMG' && (Le() || !(!((X = document.documentElement) === null || X === void 0) && X.contains($e))) ) } function ut($e, X, Y, Se) { let re = $e ? X.width : Y, W = $e ? X.height : Se return ( xe() && $e && ((W /= window.devicePixelRatio), (re /= window.devicePixelRatio)), { dragPreviewWidth: re, dragPreviewHeight: W } ) } function nt($e, X, Y, Se, re) { const W = we(X), Z = be(W ? $e : X), G = { x: Y.x - Z.x, y: Y.y - Z.y }, { offsetWidth: ue, offsetHeight: he } = $e, { anchorX: Pe, anchorY: Fe } = Se, { dragPreviewWidth: Je, dragPreviewHeight: Ue } = ut(W, X, ue, he), ct = () => { let er = new Ne([0, 0.5, 1], [G.y, (G.y / he) * Ue, G.y + Ue - he]).interpolate(Fe) return xe() && W && (er += (window.devicePixelRatio - 1) * Ue), er }, Gt = () => new Ne([0, 0.5, 1], [G.x, (G.x / ue) * Je, G.x + Je - ue]).interpolate(Pe), { offsetX: nn, offsetY: Qt } = re, sn = nn === 0 || nn, Gn = Qt === 0 || Qt return { x: sn ? nn : Gt(), y: Gn ? Qt : ct() } } class st { get window() { if (this.globalContext) return this.globalContext if (typeof window != 'undefined') return window } get document() { var X return !((X = this.globalContext) === null || X === void 0) && X.document ? this.globalContext.document : this.window ? this.window.document : void 0 } get rootElement() { var X return ((X = this.optionsArgs) === null || X === void 0 ? void 0 : X.rootElement) || this.window } constructor(X, Y) { ;(this.ownerDocument = null), (this.globalContext = X), (this.optionsArgs = Y) } } function rt($e, X, Y) { return ( X in $e ? Object.defineProperty($e, X, { value: Y, enumerable: !0, configurable: !0, writable: !0 }) : ($e[X] = Y), $e ) } function ht($e) { for (var X = 1; X < arguments.length; X++) { var Y = arguments[X] != null ? arguments[X] : {}, Se = Object.keys(Y) typeof Object.getOwnPropertySymbols == 'function' && (Se = Se.concat( Object.getOwnPropertySymbols(Y).filter(function (re) { return Object.getOwnPropertyDescriptor(Y, re).enumerable }) )), Se.forEach(function (re) { rt($e, re, Y[re]) }) } return $e } class Wt { profile() { var X, Y return { sourcePreviewNodes: this.sourcePreviewNodes.size, sourcePreviewNodeOptions: this.sourcePreviewNodeOptions.size, sourceNodeOptions: this.sourceNodeOptions.size, sourceNodes: this.sourceNodes.size, dragStartSourceIds: ((X = this.dragStartSourceIds) === null || X === void 0 ? void 0 : X.length) || 0, dropTargetIds: this.dropTargetIds.length, dragEnterTargetIds: this.dragEnterTargetIds.length, dragOverTargetIds: ((Y = this.dragOverTargetIds) === null || Y === void 0 ? void 0 : Y.length) || 0, } } get window() { return this.options.window } get document() { return this.options.document } get rootElement() { return this.options.rootElement } setup() { const X = this.rootElement if (X !== void 0) { if (X.__isReactDndBackendSetUp) throw new Error('Cannot have two HTML5 backends at the same time.') ;(X.__isReactDndBackendSetUp = !0), this.addEventListeners(X) } } teardown() { const X = this.rootElement if ( X !== void 0 && ((X.__isReactDndBackendSetUp = !1), this.removeEventListeners(this.rootElement), this.clearCurrentDragSourceNode(), this.asyncEndDragFrameId) ) { var Y ;(Y = this.window) === null || Y === void 0 || Y.cancelAnimationFrame(this.asyncEndDragFrameId) } } connectDragPreview(X, Y, Se) { return ( this.sourcePreviewNodeOptions.set(X, Se), this.sourcePreviewNodes.set(X, Y), () => { this.sourcePreviewNodes.delete(X), this.sourcePreviewNodeOptions.delete(X) } ) } connectDragSource(X, Y, Se) { this.sourceNodes.set(X, Y), this.sourceNodeOptions.set(X, Se) const re = (Q) => this.handleDragStart(Q, X), W = (Q) => this.handleSelectStart(Q) return ( Y.setAttribute('draggable', 'true'), Y.addEventListener('dragstart', re), Y.addEventListener('selectstart', W), () => { this.sourceNodes.delete(X), this.sourceNodeOptions.delete(X), Y.removeEventListener('dragstart', re), Y.removeEventListener('selectstart', W), Y.setAttribute('draggable', 'false') } ) } connectDropTarget(X, Y) { const Se = (Q) => this.handleDragEnter(Q, X), re = (Q) => this.handleDragOver(Q, X), W = (Q) => this.handleDrop(Q, X) return ( Y.addEventListener('dragenter', Se), Y.addEventListener('dragover', re), Y.addEventListener('drop', W), () => { Y.removeEventListener('dragenter', Se), Y.removeEventListener('dragover', re), Y.removeEventListener('drop', W) } ) } addEventListeners(X) { X.addEventListener && (X.addEventListener('dragstart', this.handleTopDragStart), X.addEventListener('dragstart', this.handleTopDragStartCapture, !0), X.addEventListener('dragend', this.handleTopDragEndCapture, !0), X.addEventListener('dragenter', this.handleTopDragEnter), X.addEventListener('dragenter', this.handleTopDragEnterCapture, !0), X.addEventListener('dragleave', this.handleTopDragLeaveCapture, !0), X.addEventListener('dragover', this.handleTopDragOver), X.addEventListener('dragover', this.handleTopDragOverCapture, !0), X.addEventListener('drop', this.handleTopDrop), X.addEventListener('drop', this.handleTopDropCapture, !0)) } removeEventListeners(X) { X.removeEventListener && (X.removeEventListener('dragstart', this.handleTopDragStart), X.removeEventListener('dragstart', this.handleTopDragStartCapture, !0), X.removeEventListener('dragend', this.handleTopDragEndCapture, !0), X.removeEventListener('dragenter', this.handleTopDragEnter), X.removeEventListener('dragenter', this.handleTopDragEnterCapture, !0), X.removeEventListener('dragleave', this.handleTopDragLeaveCapture, !0), X.removeEventListener('dragover', this.handleTopDragOver), X.removeEventListener('dragover', this.handleTopDragOverCapture, !0), X.removeEventListener('drop', this.handleTopDrop), X.removeEventListener('drop', this.handleTopDropCapture, !0)) } getCurrentSourceNodeOptions() { const X = this.monitor.getSourceId(), Y = this.sourceNodeOptions.get(X) return ht({ dropEffect: this.altKeyPressed ? 'copy' : 'move' }, Y || {}) } getCurrentDropEffect() { return this.isDraggingNativeItem() ? 'copy' : this.getCurrentSourceNodeOptions().dropEffect } getCurrentSourcePreviewNodeOptions() { const X = this.monitor.getSourceId(), Y = this.sourcePreviewNodeOptions.get(X) return ht({ anchorX: 0.5, anchorY: 0.5, captureDraggingState: !1 }, Y || {}) } isDraggingNativeItem() { const X = this.monitor.getItemType() return Object.keys(I).some((Y) => I[Y] === X) } beginDragNativeItem(X, Y) { this.clearCurrentDragSourceNode(), (this.currentNativeSource = Re(X, Y)), (this.currentNativeHandle = this.registry.addSource(X, this.currentNativeSource)), this.actions.beginDrag([this.currentNativeHandle]) } setCurrentDragSourceNode(X) { this.clearCurrentDragSourceNode(), (this.currentDragSourceNode = X) const Y = 1e3 this.mouseMoveTimeoutTimer = setTimeout(() => { var Se return (Se = this.rootElement) === null || Se === void 0 ? void 0 : Se.addEventListener('mousemove', this.endDragIfSourceWasRemovedFromDOM, !0) }, Y) } clearCurrentDragSourceNode() { if (this.currentDragSourceNode) { if (((this.currentDragSourceNode = null), this.rootElement)) { var X ;(X = this.window) === null || X === void 0 || X.clearTimeout(this.mouseMoveTimeoutTimer || void 0), this.rootElement.removeEventListener('mousemove', this.endDragIfSourceWasRemovedFromDOM, !0) } return (this.mouseMoveTimeoutTimer = null), !0 } return !1 } handleDragStart(X, Y) { X.defaultPrevented || (this.dragStartSourceIds || (this.dragStartSourceIds = []), this.dragStartSourceIds.unshift(Y)) } handleDragEnter(X, Y) { this.dragEnterTargetIds.unshift(Y) } handleDragOver(X, Y) { this.dragOverTargetIds === null && (this.dragOverTargetIds = []), this.dragOverTargetIds.unshift(Y) } handleDrop(X, Y) { this.dropTargetIds.unshift(Y) } constructor(X, Y, Se) { ;(this.sourcePreviewNodes = new Map()), (this.sourcePreviewNodeOptions = new Map()), (this.sourceNodes = new Map()), (this.sourceNodeOptions = new Map()), (this.dragStartSourceIds = null), (this.dropTargetIds = []), (this.dragEnterTargetIds = []), (this.currentNativeSource = null), (this.currentNativeHandle = null), (this.currentDragSourceNode = null), (this.altKeyPressed = !1), (this.mouseMoveTimeoutTimer = null), (this.asyncEndDragFrameId = null), (this.dragOverTargetIds = null), (this.lastClientOffset = null), (this.hoverRafId = null), (this.getSourceClientOffset = (re) => { const W = this.sourceNodes.get(re) return (W && be(W)) || null }), (this.endDragNativeItem = () => { this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), (this.currentNativeHandle = null), (this.currentNativeSource = null)) }), (this.isNodeInDocument = (re) => Boolean(re && this.document && this.document.body && this.document.body.contains(re))), (this.endDragIfSourceWasRemovedFromDOM = () => { const re = this.currentDragSourceNode re == null || this.isNodeInDocument(re) || (this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover()) }), (this.scheduleHover = (re) => { this.hoverRafId === null && typeof requestAnimationFrame != 'undefined' && (this.hoverRafId = requestAnimationFrame(() => { this.monitor.isDragging() && this.actions.hover(re || [], { clientOffset: this.lastClientOffset }), (this.hoverRafId = null) })) }), (this.cancelHover = () => { this.hoverRafId !== null && typeof cancelAnimationFrame != 'undefined' && (cancelAnimationFrame(this.hoverRafId), (this.hoverRafId = null)) }), (this.handleTopDragStartCapture = () => { this.clearCurrentDragSourceNode(), (this.dragStartSourceIds = []) }), (this.handleTopDragStart = (re) => { if (re.defaultPrevented) return const { dragStartSourceIds: W } = this this.dragStartSourceIds = null const Q = We(re) this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(W || [], { publishSource: !1, getSourceClientOffset: this.getSourceClientOffset, clientOffset: Q, }) const { dataTransfer: Z } = re, G = Ae(Z) if (this.monitor.isDragging()) { if (Z && typeof Z.setDragImage == 'function') { const he = this.monitor.getSourceId(), Pe = this.sourceNodes.get(he), Fe = this.sourcePreviewNodes.get(he) || Pe if (Fe) { const { anchorX: Je, anchorY: Ue, offsetX: ct, offsetY: Gt, } = this.getCurrentSourcePreviewNodeOptions(), sn = nt(Pe, Fe, Q, { anchorX: Je, anchorY: Ue }, { offsetX: ct, offsetY: Gt }) Z.setDragImage(Fe, sn.x, sn.y) } } try { Z == null || Z.setData('application/json', {}) } catch (he) {} this.setCurrentDragSourceNode(re.target) const { captureDraggingState: ue } = this.getCurrentSourcePreviewNodeOptions() ue ? this.actions.publishDragSource() : setTimeout(() => this.actions.publishDragSource(), 0) } else if (G) this.beginDragNativeItem(G) else { if (Z && !Z.types && ((re.target && !re.target.hasAttribute) || !re.target.hasAttribute('draggable'))) return re.preventDefault() } }), (this.handleTopDragEndCapture = () => { this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover() }), (this.handleTopDragEnterCapture = (re) => { if (((this.dragEnterTargetIds = []), this.isDraggingNativeItem())) { var W ;(W = this.currentNativeSource) === null || W === void 0 || W.loadDataTransfer(re.dataTransfer) } if (!this.enterLeaveCounter.enter(re.target) || this.monitor.isDragging()) return const { dataTransfer: Z } = re, G = Ae(Z) G && this.beginDragNativeItem(G, Z) }), (this.handleTopDragEnter = (re) => { const { dragEnterTargetIds: W } = this if (((this.dragEnterTargetIds = []), !this.monitor.isDragging())) return ;(this.altKeyPressed = re.altKey), W.length > 0 && this.actions.hover(W, { clientOffset: We(re) }), W.some((Z) => this.monitor.canDropOnTarget(Z)) && (re.preventDefault(), re.dataTransfer && (re.dataTransfer.dropEffect = this.getCurrentDropEffect())) }), (this.handleTopDragOverCapture = (re) => { if (((this.dragOverTargetIds = []), this.isDraggingNativeItem())) { var W ;(W = this.currentNativeSource) === null || W === void 0 || W.loadDataTransfer(re.dataTransfer) } }), (this.handleTopDragOver = (re) => { const { dragOverTargetIds: W } = this if (((this.dragOverTargetIds = []), !this.monitor.isDragging())) { re.preventDefault(), re.dataTransfer && (re.dataTransfer.dropEffect = 'none') return } ;(this.altKeyPressed = re.altKey), (this.lastClientOffset = We(re)), this.scheduleHover(W), (W || []).some((Z) => this.monitor.canDropOnTarget(Z)) ? (re.preventDefault(), re.dataTransfer && (re.dataTransfer.dropEffect = this.getCurrentDropEffect())) : this.isDraggingNativeItem() ? re.preventDefault() : (re.preventDefault(), re.dataTransfer && (re.dataTransfer.dropEffect = 'none')) }), (this.handleTopDragLeaveCapture = (re) => { this.isDraggingNativeItem() && re.preventDefault(), this.enterLeaveCounter.leave(re.target) && (this.isDraggingNativeItem() && setTimeout(() => this.endDragNativeItem(), 0), this.cancelHover()) }), (this.handleTopDropCapture = (re) => { if (((this.dropTargetIds = []), this.isDraggingNativeItem())) { var W re.preventDefault(), (W = this.currentNativeSource) === null || W === void 0 || W.loadDataTransfer(re.dataTransfer) } else Ae(re.dataTransfer) && re.preventDefault() this.enterLeaveCounter.reset() }), (this.handleTopDrop = (re) => { const { dropTargetIds: W } = this ;(this.dropTargetIds = []), this.actions.hover(W, { clientOffset: We(re) }), this.actions.drop({ dropEffect: this.getCurrentDropEffect() }), this.isDraggingNativeItem() ? this.endDragNativeItem() : this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover() }), (this.handleSelectStart = (re) => { const W = re.target typeof W.dragDrop == 'function' && (W.tagName === 'INPUT' || W.tagName === 'SELECT' || W.tagName === 'TEXTAREA' || W.isContentEditable || (re.preventDefault(), W.dragDrop())) }), (this.options = new st(Y, Se)), (this.actions = X.getActions()), (this.monitor = X.getMonitor()), (this.registry = X.getRegistry()), (this.enterLeaveCounter = new B(this.isNodeInDocument)) } } let ee function je() { return ( ee || ((ee = new Image()), (ee.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==')), ee ) } const He = function (X, Y, Se) { return new Wt(X, Y, Se) } }, }, Zn = {} function dt(z) { var m = Zn[z] if (m !== void 0) return m.exports var C = (Zn[z] = { id: z, loaded: !1, exports: {} }) return Vn[z](C, C.exports, dt), (C.loaded = !0), C.exports } ;(function () { dt.n = function (z) { var m = z && z.__esModule ? function () { return z.default } : function () { return z } return dt.d(m, { a: m }), m } })(), (function () { var z = Object.getPrototypeOf ? function (C) { return Object.getPrototypeOf(C) } : function (C) { return C.__proto__ }, m dt.t = function (C, I) { if ( (I & 1 && (C = this(C)), I & 8 || (typeof C == 'object' && C && ((I & 4 && C.__esModule) || (I & 16 && typeof C.then == 'function')))) ) return C var $ = Object.create(null) dt.r($) var T = {} m = m || [null, z({}), z([]), z(z)] for (var V = I & 2 && C; typeof V == 'object' && !~m.indexOf(V); V = z(V)) Object.getOwnPropertyNames(V).forEach(function (B) { T[B] = function () { return C[B] } }) return ( (T.default = function () { return C }), dt.d($, T), $ ) } })(), (function () { dt.d = function (z, m) { for (var C in m) dt.o(m, C) && !dt.o(z, C) && Object.defineProperty(z, C, { enumerable: !0, get: m[C] }) } })(), (function () { dt.g = (function () { if (typeof globalThis == 'object') return globalThis try { return this || new Function('return this')() } catch (z) { if (typeof window == 'object') return window } })() })(), (function () { dt.o = function (z, m) { return Object.prototype.hasOwnProperty.call(z, m) } })(), (function () { dt.r = function (z) { typeof Symbol != 'undefined' && Symbol.toStringTag && Object.defineProperty(z, Symbol.toStringTag, { value: 'Module' }), Object.defineProperty(z, '__esModule', { value: !0 }) } })(), (function () { dt.nmd = function (z) { return (z.paths = []), z.children || (z.children = []), z } })(), (function () { dt.nc = void 0 })() var ta = {} ;(function () { 'use strict' var z = {} dt.r(z), dt.d(z, { exclude: function () { return pE }, extract: function () { return Gh }, parse: function () { return Xh }, parseUrl: function () { return _y }, pick: function () { return by }, stringify: function () { return vy }, stringifyUrl: function () { return yy }, }) var m = dt(7294), C = dt.t(m, 2), I = dt(745), $ = dt(7424), T = dt.n($), V = dt(6690), B = dt.n(V), K = dt(9728), q = dt.n(K), pe = (function () { function e() { B()(this, e) } return ( q()(e, null, [ { key: 'setFavicon', value: function () { var n = document.createElement('link') ;(n.rel = 'icon'), (n.type = 'image/svg+xml'), (n.href = 'https://gw.alipayobjects.com/zos/bmw-prod/51a51720-8a30-4430-b6c9-be5712364f04.svg'), document.getElementsByTagName('head')[0].appendChild(n) }, }, ]), e ) })() onUiLoaded(function () {}) var ke = function () { pe.setFavicon() }, ve = dt(4704), Ie = dt.n(ve), _e = (function () { function e() { B()(this, e) } return ( q()(e, null, [ { key: 'round', value: function (n) { return Math.round(n * 1e4) / 1e4 }, }, { key: 'convertStr', value: function (n) { return n.replace(/:/g, ':').replace(/(/g, '(').replace(/)/g, ')') }, }, { key: 'convertStr2Array', value: function (n) { var a = /([()<>[\]])/g, l = function (_) { for (var b = [], S = 0, x = 0, k; (k = a.exec(_)) !== null; ) x === 0 && k.index > S && (b.push(_.substring(S, k.index)), (S = k.index)), k[0] === '(' || k[0] === '<' || k[0] === '[' ? x++ : (k[0] === ')' || k[0] === '>' || k[0] === ']') && x--, x === 0 && (b.push(_.substring(S, k.index + 1)), (S = k.index + 1)) return S < _.length && b.push(_.substring(S)), b }, f = function (_) { for (var b = [], S = 0, x = !1, k = 0; k < _.length; k++) _[k] === ',' && !x ? (b.push(_.substring(S, k).trim()), (S = k + 1)) : _[k].match(a) && (x = !x) return b.push(_.substring(S).trim()), b }, g = function (_) { var b = l(_) return ( (b = b.flatMap(function (S) { return f(S) })), b.filter(function (S) { return S !== '' }) ) } return g(n) .filter(function (h) { var _ = /^[,\s, ]+$/ return !_.test(h) }) .filter(Boolean) .sort(function (h, _) { return h.includes('<') && !_.includes('<') ? 1 : _.includes('<') && !h.includes('<') ? -1 : 0 }) }, }, { key: 'convertArray2Str', value: function (n) { var a = n.map(function (l) { if (l.includes('<')) return l var f = l .replace(/\s+/g, ' ') .replace(/,|\.\|。/g, ',') .replace(/“|‘|”|"|\/'/g, '') .replace(/, /g, ',') .replace(/,,/g, ',') .replace(/,/g, ', ') return e.convertStr2Array(f).join(', ') }) return a.join(', ') }, }, { key: 'convert', value: function (n) { var a = /\{|\[|\}|\]|(?:(?![\[\]\{\}])[\s\S])+/gm, l = e.convertStr(n), f = e.convertStr2Array(l) l = e.convertArray2Str(f) var g = [], h = 1.05, _ = 1 / 1.05, b = { '{': { stack: [], multiplier: h }, '[': { stack: [], multiplier: _ } } function S(ae, de) { for (var ye = ae; ye < g.length; ye++) g[ye][1] = e.round(g[ye][1] * de) } var x = Ie()(l.matchAll(a)), k try { for (x.s(); !(k = x.n()).done; ) { var D = k.value, M = D[0] if (M in b) b[M].stack.push(g.length) else if (M === '}' || M === ']') { var P = b[M === '}' ? '{' : '['] P.stack.length > 0 && S(P.stack.pop(), P.multiplier) } else g.push([M, 1]) } } catch (ae) { x.e(ae) } finally { x.f() } Object.keys(b).forEach(function (ae) { b[ae].stack.forEach(function (de) { S(de, b[ae].multiplier) }) }), g.length === 0 && (g = [['', 1]]) for (var R = 0; R + 1 < g.length; ) g[R][1] === g[R + 1][1] ? ((g[R][0] += g[R + 1][0]), g.splice(R + 1, 1)) : (R += 1) for (var j = '', L = 0, H = g; L < H.length; L++) { var U = T()(H[L], 2), te = U[0], ie = U[1] j += ie === 1 ? te : '('.concat(te, ':').concat(ie.toString(), ')') } return j }, }, { key: 'dispatchInputEvent', value: function (n) { var a = new Event('input') Object.defineProperty(a, 'target', { value: n }), n.dispatchEvent(a) }, }, { key: 'onClickConvert', value: function (n) { var a = '', l = '', f = gradioApp().querySelector('#'.concat(n, '_prompt > label > textarea')), g = e.convert(f.value) ;(f.value = g.match(/^masterpiece, best quality,/) === null ? a + g : g), e.dispatchInputEvent(f) var h = gradioApp().querySelector('#'.concat(n, '_neg_prompt > label > textarea')), _ = e.convert(h.value) ;(h.value = _.match(/^lowres,/) === null ? (_.length === 0 ? l : l + _) : _), e.dispatchInputEvent(h) }, }, { key: 'createButton', value: function (n, a, l) { var f = document.createElement('button') return ( (f.id = n), (f.type = 'button'), (f.innerHTML = a), (f.title = 'Format prompt~\u{1FA84}'), (f.className = 'lg secondary gradio-button tool svelte-1ipelgc'), f.addEventListener('click', l), f ) }, }, { key: 'addPromptButton', value: function (n) { var a, l = gradioApp().querySelector('#'.concat(n, '_generate')), f = gradioApp().querySelector('#'.concat(n, '_style_create')), g = gradioApp().querySelector('#'.concat(n, '_formatconvert')) if (!(!l || !f || g)) { var h = e.createButton(''.concat(n, '_formatconvert'), '\u{1FA84}', function () { return e.onClickConvert(n) }) ;(a = f.parentNode) === null || a === void 0 || a.append(h) } }, }, ]), e ) })() onUiUpdate(function () {}) var Re = function () { _e.addPromptButton('txt2img'), _e.addPromptButton('img2img') }, Ae = dt(8416), Le = dt.n(Ae), xe = q()(function e(t, n) { var a = this B()(this, e), Le()(this, 'textArea', void 0), Le()(this, 'counterElt', void 0), Le()(this, 'errorStrings', void 0), Le()(this, 'check', function () { var l = '' a.errorStrings.forEach(function (f) { var g = f.regex, h = f.error, _ = (a.textArea.value.match(new RegExp(g, 'g')) || []).length, b = ( a.textArea.value.match( new RegExp(g.replace(/\(/g, ')').replace(/\[/g, ']').replace(/\{/g, '}'), 'g') ) || [] ).length _ !== b ? a.counterElt.title.includes(h) || (l += h) : (l = a.counterElt.title.replace(h, '')) }), (a.counterElt.title = l), a.counterElt.classList.toggle('error', !!l) }), (this.textArea = t), (this.counterElt = n), (this.errorStrings = [ { regex: '\\(', error: `(...) - Different number of opening and closing parentheses detected. `, }, { regex: '\\[', error: `[...] - Different number of opening and closing square brackets detected. `, }, { regex: '\\{', error: `{...} - Different number of opening and closing curly brackets detected. `, }, ]) }), Ne = function (t, n) { var a = gradioApp().querySelector('#'.concat(t, ' > label > textarea')), l = gradioApp().getElementById(n), f = new xe(a, l) a.addEventListener('input', f.check) } onUiUpdate(function () {}) var tt = function () { var e = ['txt2img', 'txt2img_neg', 'img2img', 'img2img_neg'] e.forEach(function (t) { Ne(''.concat(t, '_prompt'), ''.concat(t, '_token_counter')), Ne(''.concat(t, '_prompt'), ''.concat(t, '_negative_token_counter')) }) } function be(e) { if (e.sheet) return e.sheet for (var t = 0; t < document.styleSheets.length; t++) if (document.styleSheets[t].ownerNode === e) return document.styleSheets[t] } function We(e) { var t = document.createElement('style') return ( t.setAttribute('data-emotion', e.key), e.nonce !== void 0 && t.setAttribute('nonce', e.nonce), t.appendChild(document.createTextNode('')), t.setAttribute('data-s', ''), t ) } var we = (function () { function e(n) { var a = this ;(this._insertTag = function (l) { var f a.tags.length === 0 ? a.insertionPoint ? (f = a.insertionPoint.nextSibling) : a.prepend ? (f = a.container.firstChild) : (f = a.before) : (f = a.tags[a.tags.length - 1].nextSibling), a.container.insertBefore(l, f), a.tags.push(l) }), (this.isSpeedy = n.speedy === void 0 ? !0 : n.speedy), (this.tags = []), (this.ctr = 0), (this.nonce = n.nonce), (this.key = n.key), (this.container = n.container), (this.prepend = n.prepend), (this.insertionPoint = n.insertionPoint), (this.before = null) } var t = e.prototype return ( (t.hydrate = function (a) { a.forEach(this._insertTag) }), (t.insert = function (a) { this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(We(this)) var l = this.tags[this.tags.length - 1] if (!1) var f if (this.isSpeedy) { var g = be(l) try { g.insertRule(a, g.cssRules.length) } catch (h) {} } else l.appendChild(document.createTextNode(a)) this.ctr++ }), (t.flush = function () { this.tags.forEach(function (a) { return a.parentNode && a.parentNode.removeChild(a) }), (this.tags = []), (this.ctr = 0) }), e ) })(), ut = Math.abs, nt = String.fromCharCode, st = Object.assign function rt(e, t) { return He(e, 0) ^ 45 ? (((((((t << 2) ^ He(e, 0)) << 2) ^ He(e, 1)) << 2) ^ He(e, 2)) << 2) ^ He(e, 3) : 0 } function ht(e) { return e.trim() } function Wt(e, t) { return (e = t.exec(e)) ? e[0] : e } function ee(e, t, n) { return e.replace(t, n) } function je(e, t) { return e.indexOf(t) } function He(e, t) { return e.charCodeAt(t) | 0 } function $e(e, t, n) { return e.slice(t, n) } function X(e) { return e.length } function Y(e) { return e.length } function Se(e, t) { return t.push(e), e } function re(e, t) { return e.map(t).join('') } var W = 1, Q = 1, Z = 0, G = 0, ue = 0, he = '' function Pe(e, t, n, a, l, f, g) { return { value: e, root: t, parent: n, type: a, props: l, children: f, line: W, column: Q, length: g, return: '' } } function Fe(e, t) { return st(Pe('', null, null, '', null, null, 0), e, { length: -e.length }, t) } function Je() { return ue } function Ue() { return (ue = G > 0 ? He(he, --G) : 0), Q--, ue === 10 && ((Q = 1), W--), ue } function ct() { return (ue = G < Z ? He(he, G++) : 0), Q++, ue === 10 && ((Q = 1), W++), ue } function Gt() { return He(he, G) } function nn() { return G } function Qt(e, t) { return $e(he, e, t) } function sn(e) { switch (e) { case 0: case 9: case 10: case 13: case 32: return 5 case 33: case 43: case 44: case 47: case 62: case 64: case 126: case 59: case 123: case 125: return 4 case 58: return 3 case 34: case 39: case 40: case 91: return 2 case 41: case 93: return 1 } return 0 } function Gn(e) { return (W = Q = 1), (Z = X((he = e))), (G = 0), [] } function Xn(e) { return (he = ''), e } function er(e) { return ht(Qt(G - 1, _r(e === 91 ? e + 2 : e === 40 ? e + 1 : e))) } function na(e) { return Xn(Fr(Gn(e))) } function zi(e) { for (; (ue = Gt()) && ue < 33; ) ct() return sn(e) > 2 || sn(ue) > 3 ? '' : ' ' } function Fr(e) { for (; ct(); ) switch (sn(ue)) { case 0: append(ra(G - 1), e) break case 2: append(er(ue), e) break default: append(from(ue), e) } return e } function Or(e, t) { for (; --t && ct() && !(ue < 48 || ue > 102 || (ue > 57 && ue < 65) || (ue > 70 && ue < 97)); ); return Qt(e, nn() + (t < 6 && Gt() == 32 && ct() == 32)) } function _r(e) { for (; ct(); ) switch (ue) { case e: return G case 34: case 39: e !== 34 && e !== 39 && _r(ue) break case 40: e === 41 && _r(e) break case 92: ct() break } return G } function $r(e, t) { for (; ct() && e + ue !== 47 + 10; ) if (e + ue === 42 + 42 && Gt() === 47) break return '/*' + Qt(t, G - 1) + '*' + nt(e === 47 ? e : ct()) } function ra(e) { for (; !sn(Gt()); ) ct() return Qt(e, G) } var On = '-ms-', Fa = '-moz-', on = '-webkit-', Mo = 'comm', ia = 'rule', Ao = 'decl', No = '@page', jo = '@media', dc = '@import', Bu = '@charset', Uu = '@viewport', zo = '@supports', Lo = '@document', fc = '@namespace', Fo = '@keyframes', Qs = '@font-face', Js = '@counter-style', aa = '@font-feature-values' function yr(e, t) { for (var n = '', a = Y(e), l = 0; l < a; l++) n += t(e[l], l, e, t) || '' return n } function Zs(e, t, n, a) { switch (e.type) { case dc: case Ao: return (e.return = e.return || e.value) case Mo: return '' case Fo: return (e.return = e.value + '{' + yr(e.children, a) + '}') case ia: e.value = e.props.join(',') } return X((n = yr(e.children, a))) ? (e.return = e.value + '{' + n + '}') : '' } function pc(e) { var t = Y(e) return function (n, a, l, f) { for (var g = '', h = 0; h < t; h++) g += e[h](n, a, l, f) || '' return g } } function gc(e) { return function (t) { t.root || ((t = t.return) && e(t)) } } function Wu(e, t, n, a) { if (e.length > -1 && !e.return) switch (e.type) { case DECLARATION: e.return = prefix(e.value, e.length, n) return case KEYFRAMES: return serialize([copy(e, { value: replace(e.value, '@', '@' + WEBKIT) })], a) case RULESET: if (e.length) return combine(e.props, function (l) { switch (match(l, /(::plac\w+|:read-\w+)/)) { case ':read-only': case ':read-write': return serialize([copy(e, { props: [replace(l, /:(read-\w+)/, ':' + MOZ + '$1')] })], a) case '::placeholder': return serialize( [ copy(e, { props: [replace(l, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')] }), copy(e, { props: [replace(l, /:(plac\w+)/, ':' + MOZ + '$1')] }), copy(e, { props: [replace(l, /:(plac\w+)/, MS + 'input-$1')] }), ], a ) } return '' }) } } function mc(e) { switch (e.type) { case RULESET: e.props = e.props.map(function (t) { return combine(tokenize(t), function (n, a, l) { switch (charat(n, 0)) { case 12: return substr(n, 1, strlen(n)) case 0: case 40: case 43: case 62: case 126: return n case 58: l[++a] === 'global' && ((l[a] = ''), (l[++a] = '\f' + substr(l[a], (a = 1), -1))) case 32: return a === 1 ? '' : n default: switch (a) { case 0: return (e = n), sizeof(l) > 1 ? '' : n case (a = sizeof(l) - 1): case 2: return a === 2 ? n + e + e : n + e default: return n } } }) }) } } function $o(e) { return Xn($a('', null, null, null, [''], (e = Gn(e)), 0, [0], e)) } function $a(e, t, n, a, l, f, g, h, _) { for ( var b = 0, S = 0, x = g, k = 0, D = 0, M = 0, P = 1, R = 1, j = 1, L = 0, H = '', U = l, te = f, ie = a, ae = H; R; ) switch (((M = L), (L = ct()))) { case 40: if (M != 108 && He(ae, x - 1) == 58) { je((ae += ee(er(L), '&', '&\f')), '&\f') != -1 && (j = -1) break } case 34: case 39: case 91: ae += er(L) break case 9: case 10: case 13: case 32: ae += zi(M) break case 92: ae += Or(nn() - 1, 7) continue case 47: switch (Gt()) { case 42: case 47: Se(Ha($r(ct(), nn()), t, n), _) break default: ae += '/' } break case 123 * P: h[b++] = X(ae) * j case 125 * P: case 59: case 0: switch (L) { case 0: case 125: R = 0 case 59 + S: D > 0 && X(ae) - x && Se(D > 32 ? xi(ae + ';', a, n, x - 1) : xi(ee(ae, ' ', '') + ';', a, n, x - 2), _) break case 59: ae += ';' default: if ((Se((ie = wi(ae, t, n, b, S, l, h, H, (U = []), (te = []), x)), f), L === 123)) if (S === 0) $a(ae, t, ie, ie, U, f, x, h, te) else switch (k === 99 && He(ae, 3) === 110 ? 100 : k) { case 100: case 109: case 115: $a( e, ie, ie, a && Se(wi(e, ie, ie, 0, 0, l, h, H, l, (U = []), x), te), l, te, x, h, a ? U : te ) break default: $a(ae, ie, ie, ie, [''], te, 0, h, te) } } ;(b = S = D = 0), (P = j = 1), (H = ae = ''), (x = g) break case 58: ;(x = 1 + X(ae)), (D = M) default: if (P < 1) { if (L == 123) --P else if (L == 125 && P++ == 0 && Ue() == 125) continue } switch (((ae += nt(L)), L * P)) { case 38: j = S > 0 ? 1 : ((ae += '\f'), -1) break case 44: ;(h[b++] = (X(ae) - 1) * j), (j = 1) break case 64: Gt() === 45 && (ae += er(ct())), (k = Gt()), (S = x = X((H = ae += ra(nn())))), L++ break case 45: M === 45 && X(ae) == 2 && (P = 0) } } return f } function wi(e, t, n, a, l, f, g, h, _, b, S) { for (var x = l - 1, k = l === 0 ? f : [''], D = Y(k), M = 0, P = 0, R = 0; M < a; ++M) for (var j = 0, L = $e(e, x + 1, (x = ut((P = g[M])))), H = e; j < D; ++j) (H = ht(P > 0 ? k[j] + ' ' + L : ee(L, /&\f/g, k[j]))) && (_[R++] = H) return Pe(e, t, n, l === 0 ? ia : h, _, b, S) } function Ha(e, t, n) { return Pe(e, t, n, Mo, nt(Je()), $e(e, 2, -2), 0) } function xi(e, t, n, a) { return Pe(e, t, n, Ao, $e(e, 0, a), $e(e, a + 1, -1), a) } var Ho = function (t, n, a) { for (var l = 0, f = 0; (l = f), (f = Gt()), l === 38 && f === 12 && (n[a] = 1), !sn(f); ) ct() return Qt(t, G) }, Ba = function (t, n) { var a = -1, l = 44 do switch (sn(l)) { case 0: l === 38 && Gt() === 12 && (n[a] = 1), (t[a] += Ho(G - 1, n, a)) break case 2: t[a] += er(l) break case 4: if (l === 44) { ;(t[++a] = Gt() === 58 ? '&\f' : ''), (n[a] = t[a].length) break } default: t[a] += nt(l) } while ((l = ct())) return t }, Bo = function (t, n) { return Xn(Ba(Gn(t), n)) }, Ua = new WeakMap(), el = function (t) { if (!(t.type !== 'rule' || !t.parent || t.length < 1)) { for (var n = t.value, a = t.parent, l = t.column === a.column && t.line === a.line; a.type !== 'rule'; ) if (((a = a.parent), !a)) return if (!(t.props.length === 1 && n.charCodeAt(0) !== 58 && !Ua.get(a)) && !l) { Ua.set(t, !0) for (var f = [], g = Bo(n, f), h = a.props, _ = 0, b = 0; _ < g.length; _++) for (var S = 0; S < h.length; S++, b++) t.props[b] = f[_] ? g[_].replace(/&\f/g, h[S]) : h[S] + ' ' + g[_] } } }, Vu = function (t) { if (t.type === 'decl') { var n = t.value n.charCodeAt(0) === 108 && n.charCodeAt(2) === 98 && ((t.return = ''), (t.value = '')) } }, Gu = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason', tl = function (t) { return t.type === 'comm' && t.children.indexOf(Gu) > -1 }, Mn = function (t) { return function (n, a, l) { if (!(n.type !== 'rule' || t.compat)) { var f = n.value.match(/(:first|:nth|:nth-last)-child/g) if (f) { for (var g = !!n.parent, h = g ? n.parent.children : l, _ = h.length - 1; _ >= 0; _--) { var b = h[_] if (b.line < n.line) break if (b.column < n.column) { if (tl(b)) return break } } f.forEach(function (S) { console.error( 'The pseudo class "' + S + '" is potentially unsafe when doing server-side rendering. Try changing it to "' + S.split('-child')[0] + '-of-type".' ) }) } } } }, nl = function (t) { return t.type.charCodeAt(1) === 105 && t.type.charCodeAt(0) === 64 }, hc = function (t, n) { for (var a = t - 1; a >= 0; a--) if (!nl(n[a])) return !0 return !1 }, vc = function (t) { ;(t.type = ''), (t.value = ''), (t.return = ''), (t.children = ''), (t.props = '') }, _c = function (t, n, a) { nl(t) && (t.parent ? (console.error( "`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles." ), vc(t)) : hc(n, a) && (console.error( "`@import` rules can't be after other rules. Please put your `@import` rules before your other rules." ), vc(t))) } function Uo(e, t) { switch (rt(e, t)) { case 5103: return on + 'print-' + e + e case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: case 6391: case 5879: case 5623: case 6135: case 4599: case 4855: case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: return on + e + e case 5349: case 4246: case 4810: case 6968: case 2756: return on + e + Fa + e + On + e + e case 6828: case 4268: return on + e + On + e + e case 6165: return on + e + On + 'flex-' + e + e case 5187: return on + e + ee(e, /(\w+).+(:[^]+)/, on + 'box-$1$2' + On + 'flex-$1$2') + e case 5443: return on + e + On + 'flex-item-' + ee(e, /flex-|-self/, '') + e case 4675: return on + e + On + 'flex-line-pack' + ee(e, /align-content|flex-|-self/, '') + e case 5548: return on + e + On + ee(e, 'shrink', 'negative') + e case 5292: return on + e + On + ee(e, 'basis', 'preferred-size') + e case 6060: return on + 'box-' + ee(e, '-grow', '') + on + e + On + ee(e, 'grow', 'positive') + e case 4554: return on + ee(e, /([^-])(transform)/g, '$1' + on + '$2') + e case 6187: return ee(ee(ee(e, /(zoom-|grab)/, on + '$1'), /(image-set)/, on + '$1'), e, '') + e case 5495: case 3959: return ee(e, /(image-set\([^]*)/, on + '$1$`$1') case 4968: return ( ee(ee(e, /(.+:)(flex-)?(.*)/, on + 'box-pack:$3' + On + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + on + e + e ) case 4095: case 3583: case 4068: case 2532: return ee(e, /(.+)-inline(.+)/, on + '$1$2') + e case 8116: case 7059: case 5753: case 5535: case 5445: case 5701: case 4933: case 4677: case 5533: case 5789: case 5021: case 4765: if (X(e) - 1 - t > 6) switch (He(e, t + 1)) { case 109: if (He(e, t + 4) !== 45) break case 102: return ( ee(e, /(.+:)(.+)-([^]+)/, '$1' + on + '$2-$3$1' + Fa + (He(e, t + 3) == 108 ? '$3' : '$2-$3')) + e ) case 115: return ~je(e, 'stretch') ? Uo(ee(e, 'stretch', 'fill-available'), t) + e : e } break case 4949: if (He(e, t + 1) !== 115) break case 6444: switch (He(e, X(e) - 3 - (~je(e, '!important') && 10))) { case 107: return ee(e, ':', ':' + on) + e case 101: return ( ee( e, /(.+:)([^;!]+)(;|!.+)?/, '$1' + on + (He(e, 14) === 45 ? 'inline-' : '') + 'box$3$1' + on + '$2$3$1' + On + '$2box$3' ) + e ) } break case 5936: switch (He(e, t + 11)) { case 114: return on + e + On + ee(e, /[svh]\w+-[tblr]{2}/, 'tb') + e case 108: return on + e + On + ee(e, /[svh]\w+-[tblr]{2}/, 'tb-rl') + e case 45: return on + e + On + ee(e, /[svh]\w+-[tblr]{2}/, 'lr') + e } return on + e + On + e + e } return e } var yc = function (t, n, a, l) { if (t.length > -1 && !t.return) switch (t.type) { case Ao: t.return = Uo(t.value, t.length) break case Fo: return yr([Fe(t, { value: ee(t.value, '@', '@' + on) })], l) case ia: if (t.length) return re(t.props, function (f) { switch (Wt(f, /(::plac\w+|:read-\w+)/)) { case ':read-only': case ':read-write': return yr([Fe(t, { props: [ee(f, /:(read-\w+)/, ':' + Fa + '$1')] })], l) case '::placeholder': return yr( [ Fe(t, { props: [ee(f, /:(plac\w+)/, ':' + on + 'input-$1')] }), Fe(t, { props: [ee(f, /:(plac\w+)/, ':' + Fa + '$1')] }), Fe(t, { props: [ee(f, /:(plac\w+)/, On + 'input-$1')] }), ], l ) } return '' }) } }, bc = [yc], Xu = function (t) { var n = t.key if (n === 'css') { var a = document.querySelectorAll('style[data-emotion]:not([data-s])') Array.prototype.forEach.call(a, function (P) { var R = P.getAttribute('data-emotion') R.indexOf(' ') !== -1 && (document.head.appendChild(P), P.setAttribute('data-s', '')) }) } var l = t.stylisPlugins || bc, f = {}, g, h = [] ;(g = t.container || document.head), Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="' + n + ' "]'), function (P) { for (var R = P.getAttribute('data-emotion').split(' '), j = 1; j < R.length; j++) f[R[j]] = !0 h.push(P) }) var _, b = [el, Vu] { var S, x = [ Zs, gc(function (P) { S.insert(P) }), ], k = pc(b.concat(l, x)), D = function (R) { return yr($o(R), k) } _ = function (R, j, L, H) { ;(S = L), D(R ? R + '{' + j.styles + '}' : j.styles), H && (M.inserted[j.name] = !0) } } var M = { key: n, sheet: new we({ key: n, container: g, nonce: t.nonce, speedy: t.speedy, prepend: t.prepend, insertionPoint: t.insertionPoint, }), nonce: t.nonce, inserted: f, registered: {}, insert: _, } return M.sheet.hydrate(h), M }, Sc = Xu function Xt() { return ( (Xt = Object.assign ? Object.assign.bind() : function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]) } return e }), Xt.apply(this, arguments) ) } var Ku = function (t) { var n = new WeakMap() return function (a) { if (n.has(a)) return n.get(a) var l = t(a) return n.set(a, l), l } }, Wo = Ku function rl(e) { for (var t = 0, n, a = 0, l = e.length; l >= 4; ++a, l -= 4) (n = (e.charCodeAt(a) & 255) | ((e.charCodeAt(++a) & 255) << 8) | ((e.charCodeAt(++a) & 255) << 16) | ((e.charCodeAt(++a) & 255) << 24)), (n = (n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)), (n ^= n >>> 24), (t = ((n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)) ^ ((t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16))) switch (l) { case 3: t ^= (e.charCodeAt(a + 2) & 255) << 16 case 2: t ^= (e.charCodeAt(a + 1) & 255) << 8 case 1: ;(t ^= e.charCodeAt(a) & 255), (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)) } return ( (t ^= t >>> 13), (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)), ((t ^ (t >>> 15)) >>> 0).toString(36) ) } var Vo = rl, Yu = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1, }, Li = Yu function Go(e) { var t = Object.create(null) return function (n) { return t[n] === void 0 && (t[n] = e(n)), t[n] } } var Tr = Go, $f = `You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`, Hr = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).", qu = /[A-Z]|^ms/g, Qu = /_EMO_([^_]+?)_([^]*?)_EMO_/g, wc = function (t) { return t.charCodeAt(1) === 45 }, Wa = function (t) { return t != null && typeof t != 'boolean' }, oa = Tr(function (e) { return wc(e) ? e : e.replace(qu, '-$&').toLowerCase() }), sa = function (t, n) { switch (t) { case 'animation': case 'animationName': if (typeof n == 'string') return n.replace(Qu, function (a, l, f) { return (Dr = { name: l, styles: f, next: Dr }), l }) } return Li[t] !== 1 && !wc(t) && typeof n == 'number' && n !== 0 ? n + 'px' : n } if (!1) var il, Ju, al, xc, Zu, Cc var Va = null function Ga(e, t, n) { if (n == null) return '' if (n.__emotion_styles !== void 0) return n switch (typeof n) { case 'boolean': return '' case 'object': { if (n.anim === 1) return (Dr = { name: n.name, styles: n.styles, next: Dr }), n.name if (n.styles !== void 0) { var a = n.next if (a !== void 0) for (; a !== void 0; ) (Dr = { name: a.name, styles: a.styles, next: Dr }), (a = a.next) var l = n.styles + ';' return l } return ol(e, t, n) } case 'function': { if (e !== void 0) { var f = Dr, g = n(e) return (Dr = f), Ga(e, t, g) } break } case 'string': if (!1) var h, _ break } if (t == null) return n var b = t[n] return b !== void 0 ? b : n } function ol(e, t, n) { var a = '' if (Array.isArray(n)) for (var l = 0; l < n.length; l++) a += Ga(e, t, n[l]) + ';' else for (var f in n) { var g = n[f] if (typeof g != 'object') t != null && t[g] !== void 0 ? (a += f + '{' + t[g] + '}') : Wa(g) && (a += oa(f) + ':' + sa(f, g) + ';') else if (Array.isArray(g) && typeof g[0] == 'string' && (t == null || t[g[0]] === void 0)) for (var h = 0; h < g.length; h++) Wa(g[h]) && (a += oa(f) + ':' + sa(f, g[h]) + ';') else { var _ = Ga(e, t, g) switch (f) { case 'animation': case 'animationName': { a += oa(f) + ':' + _ + ';' break } default: a += f + '{' + _ + '}' } } } return a } var Zt = /label:\s*([^\s;\n{]+)\s*(;|$)/g, Ec, Dr, Br = function (t, n, a) { if (t.length === 1 && typeof t[0] == 'object' && t[0] !== null && t[0].styles !== void 0) return t[0] var l = !0, f = '' Dr = void 0 var g = t[0] g == null || g.raw === void 0 ? ((l = !1), (f += Ga(a, n, g))) : (f += g[0]) for (var h = 1; h < t.length; h++) (f += Ga(a, n, t[h])), l && (f += g[h]) var _ Zt.lastIndex = 0 for (var b = '', S; (S = Zt.exec(f)) !== null; ) b += '-' + S[1] var x = Vo(f) + b return { name: x, styles: f, next: Dr } }, kc = function (t) { return t() }, Xo = C['useInsertionEffect'] ? C['useInsertionEffect'] : !1, ed = Xo || kc, Ko = Xo || m.useLayoutEffect, la = {}.hasOwnProperty, br = (0, m.createContext)(typeof HTMLElement != 'undefined' ? Sc({ key: 'css' }) : null), Fi = br.Provider, $i = function () { return useContext(br) }, ca = function (t) { return (0, m.forwardRef)(function (n, a) { var l = (0, m.useContext)(br) return t(n, l, a) }) }, Pr = (0, m.createContext)({}), Hi = function () { return useContext(Pr) }, td = function (t, n) { if (typeof n == 'function') { var a = n(t) return a } return Xt({}, t, n) }, ii = Wo(function (e) { return Wo(function (t) { return td(e, t) }) }), Xa = function (t) { var n = (0, m.useContext)(Pr) return t.theme !== n && (n = ii(n)(t.theme)), (0, m.createElement)(Pr.Provider, { value: n }, t.children) } function Oc(e) { var t = e.displayName || e.name || 'Component', n = function (f, g) { var h = useContext(Pr) return createElement(e, _extends({ theme: h, ref: g }, f)) }, a = forwardRef(n) return (a.displayName = 'WithTheme(' + t + ')'), hoistNonReactStatics(a, e) } var Ka = function (t) { var n = t.split('.') return n[n.length - 1] }, Yo = function (t) { var n = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t) if (n || ((n = /^([A-Za-z0-9$.]+)@/.exec(t)), n)) return Ka(n[1]) }, Tc = new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']), nd = function (t) { return t.replace(/\$/g, '-') }, qo = function (t) { if (t) for ( var n = t.split(` `), a = 0; a < n.length; a++ ) { var l = Yo(n[a]) if (l) { if (Tc.has(l)) break if (/^[A-Z]/.test(l)) return nd(l) } } }, Ya = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__', qa = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__', sl = function (t, n) { var a = {} for (var l in n) la.call(n, l) && (a[l] = n[l]) if (((a[Ya] = t), !1)) var f return a }, Hf = function (t) { var n = t.cache, a = t.serialized, l = t.isStringTag registerStyles(n, a, l) var f = useInsertionEffectAlwaysWithSyncFallback(function () { return insertStyles(n, a, l) }) return null }, Bf = null, at = dt(5893), ua = function (t) { if (t.ThemeProvider) return t.ThemeProvider var n = t.ThemeContext return function (a) { return (0, at.jsx)(n.Provider, { value: a.theme, children: a.children }) } }, Qo = Xa, Jo = Pr, Ur = function (t) { if (!t.ThemeContext) throw 'ThemeContext is required. Please check your config.' ;(Jo = t.ThemeContext), (Qo = ua(t)) }, Zo = 'acss' function tr(e, t) { if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') } function ln(e) { return ( (ln = typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol' ? function (t) { return typeof t } : function (t) { return t && typeof Symbol == 'function' && t.constructor === Symbol && t !== Symbol.prototype ? 'symbol' : typeof t }), ln(e) ) } function es(e, t) { if (ln(e) !== 'object' || e === null) return e var n = e[Symbol.toPrimitive] if (n !== void 0) { var a = n.call(e, t || 'default') if (ln(a) !== 'object') return a throw new TypeError('@@toPrimitive must return a primitive value.') } return (t === 'string' ? String : Number)(e) } function Qa(e) { var t = es(e, 'string') return ln(t) === 'symbol' ? t : String(t) } function ll(e, t) { for (var n = 0; n < t.length; n++) { var a = t[n] ;(a.enumerable = a.enumerable || !1), (a.configurable = !0), 'value' in a && (a.writable = !0), Object.defineProperty(e, Qa(a.key), a) } } function mn(e, t, n) { return t && ll(e.prototype, t), n && ll(e, n), Object.defineProperty(e, 'prototype', { writable: !1 }), e } function O(e, t, n) { return ( (t = Qa(t)), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : (e[t] = n), e ) } var N = !0 function A(e, t, n) { var a = '' return ( n.split(' ').forEach(function (l) { e[l] !== void 0 ? t.push(e[l] + ';') : (a += l + ' ') }), a ) } var J = function (t, n, a) { var l = t.key + '-' + n.name ;(a === !1 || N === !1) && t.registered[l] === void 0 && (t.registered[l] = n.styles) }, ce = function (t, n, a) { J(t, n, a) var l = t.key + '-' + n.name if (t.inserted[n.name] === void 0) { var f = n do { var g = t.insert(n === f ? '.' + l : '', f, t.sheet, !0) f = f.next } while (f !== void 0) } } function Be(e, t) { if (e.inserted[t.name] === void 0) return e.insert('', t, e.sheet, !0) } function lt(e, t, n) { var a = [], l = A(e, a, n) return a.length < 2 ? n : l + t(a) } var mt = function (t) { var n = Sc(t) ;(n.sheet.speedy = function (h) { this.isSpeedy = h }), (n.compat = !0) var a = function () { for (var _ = arguments.length, b = new Array(_), S = 0; S < _; S++) b[S] = arguments[S] var x = Br(b, n.registered, void 0) return ce(n, x, !1), n.key + '-' + x.name }, l = function () { for (var _ = arguments.length, b = new Array(_), S = 0; S < _; S++) b[S] = arguments[S] var x = Br(b, n.registered), k = 'animation-' + x.name return Be(n, { name: x.name, styles: '@keyframes ' + k + '{' + x.styles + '}' }), k }, f = function () { for (var _ = arguments.length, b = new Array(_), S = 0; S < _; S++) b[S] = arguments[S] var x = Br(b, n.registered) Be(n, x) }, g = function () { for (var _ = arguments.length, b = new Array(_), S = 0; S < _; S++) b[S] = arguments[S] return lt(n.registered, a, It(b)) } return { css: a, cx: g, injectGlobal: f, keyframes: l, hydrate: function (_) { _.forEach(function (b) { n.inserted[b] = !0 }) }, flush: function () { ;(n.registered = {}), (n.inserted = {}), n.sheet.flush() }, sheet: n.sheet, cache: n, getRegisteredStyles: A.bind(null, n.registered), merge: lt.bind(null, n.registered, a), } }, It = function e(t) { for (var n = '', a = 0; a < t.length; a++) { var l = t[a] if (l != null) { var f = void 0 switch (typeof l) { case 'boolean': break case 'object': { if (Array.isArray(l)) f = e(l) else { f = '' for (var g in l) l[g] && g && (f && (f += ' '), (f += g)) } break } default: f = l } f && (n && (n += ' '), (n += f)) } } return n }, Yt = mt, Kt = Yt({ key: 'css' }), Ir = Kt.flush, Sr = Kt.hydrate, Ci = Kt.cx, da = Kt.merge, In = Kt.getRegisteredStyles, Ei = Kt.injectGlobal, Bi = Kt.keyframes, lr = Kt.css, Dc = Kt.sheet, rd = Kt.cache, mm = (function () { function e() { tr(this, e), O(this, '_cacheList', [rd]) } return ( mn(e, [ { key: 'add', value: function (n) { this._cacheList.includes(n) || this._cacheList.push(n) }, }, { key: 'getCacheList', value: function () { return this._cacheList }, }, ]), e ) })(), Uf = typeof document != 'undefined', id = function (t, n, a) { var l = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 'high' J(t, n, a) var f = '.'.concat(t.key, '-').concat(n.name), g = l === 'low' ? ':where('.concat(f, ')') : f if (t.inserted[n.name] === void 0) { var h = '', _ = n do { var b = t.insert(n === _ ? g : '', _, t.sheet, !0) !Uf && b !== void 0 && (h += b), (_ = _.next) } while (_ !== void 0) if (!Uf && h.length !== 0) return h } }, ad = function (t) { return ln(t) === 'object' && 'styles' in t && 'name' in t && 'toString' in t }, hm = function e(t) { for (var n = '', a = 0; a < t.length; a++) { var l = t[a] if (l !== null) { var f = void 0 switch (ln(l)) { case 'boolean': break case 'object': { if (Array.isArray(l)) f = e(l) else { f = '' for (var g in l) l[g] && g && (f && (f += ' '), (f += g)) } break } default: f = l } f && (n && (n += ' '), (n += f)) } } return n }, vm = function (t, n, a) { var l = [], f = A(t, l, a) return l.length < 2 ? a : f + n(l) }, Wf = function (t, n) { return function () { for (var a = arguments.length, l = new Array(a), f = 0; f < a; f++) l[f] = arguments[f] var g = Br(l, t.registered, void 0) return id(t, g, !1, n), ''.concat(t.key, '-').concat(g.name) } }, _m = function (t, n) { return function () { for (var a = arguments.length, l = new Array(a), f = 0; f < a; f++) l[f] = arguments[f] var g = l.map(function (h) { return ad(h) ? n(h) : h }) return vm(t.registered, n, hm(g)) } }, Vf = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'high', a = Wf(t, n), l = _m(t, a) return { css: a, cx: l } }, cl = function () { for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++) n[a] = arguments[a] return Br(n) }, ym = function (t) { return (0, m.createContext)(t) }, bm = dt(8679), Sm = dt.n(bm), e_ = { name: '@emotion/react', version: '11.10.6', main: 'dist/emotion-react.cjs.js', module: 'dist/emotion-react.esm.js', browser: { './dist/emotion-react.esm.js': './dist/emotion-react.browser.esm.js' }, exports: { '.': { module: { worker: './dist/emotion-react.worker.esm.js', browser: './dist/emotion-react.browser.esm.js', default: './dist/emotion-react.esm.js', }, default: './dist/emotion-react.cjs.js', }, './jsx-runtime': { module: { worker: './jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js', browser: './jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js', default: './jsx-runtime/dist/emotion-react-jsx-runtime.esm.js', }, default: './jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js', }, './_isolated-hnrs': { module: { worker: './_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js', browser: './_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js', default: './_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js', }, default: './_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js', }, './jsx-dev-runtime': { module: { worker: './jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js', browser: './jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js', default: './jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js', }, default: './jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js', }, './package.json': './package.json', './types/css-prop': './types/css-prop.d.ts', './macro': './macro.js', }, types: 'types/index.d.ts', files: [ 'src', 'dist', 'jsx-runtime', 'jsx-dev-runtime', '_isolated-hnrs', 'types/*.d.ts', 'macro.js', 'macro.d.ts', 'macro.js.flow', ], sideEffects: !1, author: 'Emotion Contributors', license: 'MIT', scripts: { 'test:typescript': 'dtslint types' }, dependencies: { '@babel/runtime': '^7.18.3', '@emotion/babel-plugin': '^11.10.6', '@emotion/cache': '^11.10.5', '@emotion/serialize': '^1.1.1', '@emotion/use-insertion-effect-with-fallbacks': '^1.0.0', '@emotion/utils': '^1.2.0', '@emotion/weak-memoize': '^0.3.0', 'hoist-non-react-statics': '^3.3.1', }, peerDependencies: { react: '>=16.8.0' }, peerDependenciesMeta: { '@types/react': { optional: !0 } }, devDependencies: { '@definitelytyped/dtslint': '0.0.112', '@emotion/css': '11.10.6', '@emotion/css-prettifier': '1.1.1', '@emotion/server': '11.10.0', '@emotion/styled': '11.10.6', 'html-tag-names': '^1.1.2', react: '16.14.0', 'svg-tag-names': '^1.1.1', typescript: '^4.5.5', }, repository: 'https://github.com/emotion-js/emotion/tree/main/packages/react', publishConfig: { access: 'public' }, 'umd:main': 'dist/emotion-react.umd.min.js', preconstruct: { entrypoints: ['./index.js', './jsx-runtime.js', './jsx-dev-runtime.js', './_isolated-hnrs.js'], umdName: 'emotionReact', exports: { envConditions: ['browser', 'worker'], extra: { './types/css-prop': './types/css-prop.d.ts', './macro': './macro.js' }, }, }, }, Gf = function (t, n) { var a = arguments if (n == null || !hasOwnProperty.call(n, 'css')) return createElement.apply(void 0, a) var l = a.length, f = new Array(l) ;(f[0] = Emotion), (f[1] = createEmotionProps(t, n)) for (var g = 2; g < l; g++) f[g] = a[g] return createElement.apply(null, f) }, Pc = !1, wm = ca(function (e, t) { var n = e.styles, a = Br([n], void 0, (0, m.useContext)(Pr)), l = (0, m.useRef)() return ( Ko( function () { var f = t.key + '-global', g = new t.sheet.constructor({ key: f, nonce: t.sheet.nonce, container: t.sheet.container, speedy: t.sheet.isSpeedy, }), h = !1, _ = document.querySelector('style[data-emotion="' + f + ' ' + a.name + '"]') return ( t.sheet.tags.length && (g.before = t.sheet.tags[0]), _ !== null && ((h = !0), _.setAttribute('data-emotion', f), g.hydrate([_])), (l.current = [g, h]), function () { g.flush() } ) }, [t] ), Ko( function () { var f = l.current, g = f[0], h = f[1] if (h) { f[1] = !1 return } if ((a.next !== void 0 && ce(t, a.next, !0), g.tags.length)) { var _ = g.tags[g.tags.length - 1].nextElementSibling ;(g.before = _), g.flush() } t.insert('', a, g, !1) }, [t, a.name] ), null ) }) function Xf() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return serializeStyles(t) } var xm = function () { var t = Xf.apply(void 0, arguments), n = 'animation-' + t.name return { name: n, styles: '@keyframes ' + n + '{' + t.styles + '}', anim: 1, toString: function () { return '_EMO_' + this.name + '_' + this.styles + '_EMO_' }, } }, Cm = function e(t) { for (var n = t.length, a = 0, l = ''; a < n; a++) { var f = t[a] if (f != null) { var g = void 0 switch (typeof f) { case 'boolean': break case 'object': { if (Array.isArray(f)) g = e(f) else { g = '' for (var h in f) f[h] && h && (g && (g += ' '), (g += h)) } break } default: g = f } g && (l && (l += ' '), (l += g)) } } return l } function Em(e, t, n) { var a = [], l = getRegisteredStyles(e, a, n) return a.length < 2 ? n : l + t(a) } var km = function (t) { var n = t.cache, a = t.serializedArr, l = useInsertionEffectAlwaysWithSyncFallback(function () { for (var f = 0; f < a.length; f++) var g = insertStyles(n, a[f], !1) }) return null }, ul = null if (!1) var t_, n_, r_, Om function od(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e) t && (a = a.filter(function (l) { return Object.getOwnPropertyDescriptor(e, l).enumerable })), n.push.apply(n, a) } return n } function ts(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {} t % 2 ? od(Object(n), !0).forEach(function (a) { O(e, a, n[a]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : od(Object(n)).forEach(function (a) { Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a)) }) } return e } var dl = function (t) { return function () { for (var n = arguments.length, a = new Array(n), l = 0; l < n; l++) a[l] = arguments[l] return (0, m.memo)(function (f) { var g = t() return (0, at.jsx)(wm, { styles: Br(a, void 0, ts(ts({}, f), {}, { theme: g })) }) }) } }, Tm = function (t) { return function (n) { var a = t(n) return function (l) { var f = a(l), g = f.styles return g } } } function Ic(e, t) { if (e == null) return {} var n = {}, a = Object.keys(e), l, f for (f = 0; f < a.length; f++) (l = a[f]), !(t.indexOf(l) >= 0) && (n[l] = e[l]) return n } function Kn(e, t) { if (e == null) return {} var n = Ic(e, t), a, l if (Object.getOwnPropertySymbols) { var f = Object.getOwnPropertySymbols(e) for (l = 0; l < f.length; l++) (a = f[l]), !(t.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (n[a] = e[a]) } return n } function sd(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e) t && (a = a.filter(function (l) { return Object.getOwnPropertyDescriptor(e, l).enumerable })), n.push.apply(n, a) } return n } function ze(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {} t % 2 ? sd(Object(n), !0).forEach(function (a) { O(e, a, n[a]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : sd(Object(n)).forEach(function (a) { Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a)) }) } return e } function fl(e, t) { ;(t == null || t > e.length) && (t = e.length) for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n] return a } function Kf(e) { if (Array.isArray(e)) return fl(e) } function ld(e) { if ((typeof Symbol != 'undefined' && e[Symbol.iterator] != null) || e['@@iterator'] != null) return Array.from(e) } function Rc(e, t) { if (e) { if (typeof e == 'string') return fl(e, t) var n = Object.prototype.toString.call(e).slice(8, -1) if ((n === 'Object' && e.constructor && (n = e.constructor.name), n === 'Map' || n === 'Set')) return Array.from(e) if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return fl(e, t) } } function Dm() { throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) } function kt(e) { return Kf(e) || ld(e) || Rc(e) || Dm() } function Pm(e) { for (var t = 0, n, a = 0, l = e.length; l >= 4; ++a, l -= 4) (n = (e.charCodeAt(a) & 255) | ((e.charCodeAt(++a) & 255) << 8) | ((e.charCodeAt(++a) & 255) << 16) | ((e.charCodeAt(++a) & 255) << 24)), (n = (n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)), (n ^= n >>> 24), (t = ((n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)) ^ ((t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16))) switch (l) { case 3: t ^= (e.charCodeAt(a + 2) & 255) << 16 case 2: t ^= (e.charCodeAt(a + 1) & 255) << 8 case 1: ;(t ^= e.charCodeAt(a) & 255), (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)) } return ( (t ^= t >>> 13), (t = (t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)), ((t ^ (t >>> 15)) >>> 0).toString(36) ) } var cd = Pm function Mc(e, t, n) { var a = m.useRef({}) return ( (!('value' in a.current) || n(a.current.condition, t)) && ((a.current.value = e()), (a.current.condition = t)), a.current.value ) } var Rr = {}, pl = [], Yf = function (t) { pl.push(t) } function ud(e, t) { if (!1) var n } function qf(e, t) { if (!1) var n } function Qf() { Rr = {} } function Ac(e, t, n) { !t && !Rr[n] && (e(!1, n), (Rr[n] = !0)) } function Nc(e, t) { Ac(ud, e, t) } function Im(e, t) { Ac(qf, e, t) } ;(Nc.preMessage = Yf), (Nc.resetWarned = Qf), (Nc.noteOnce = Im) var cr = Nc function dd(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, a = new Set() function l(f, g) { var h = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, _ = a.has(f) if ((cr(!_, 'Warning: There may be circular references'), _)) return !1 if (f === g) return !0 if (n && h > 1) return !1 a.add(f) var b = h + 1 if (Array.isArray(f)) { if (!Array.isArray(g) || f.length !== g.length) return !1 for (var S = 0; S < f.length; S++) if (!l(f[S], g[S], b)) return !1 return !0 } if (f && g && ln(f) === 'object' && ln(g) === 'object') { var x = Object.keys(f) return x.length !== Object.keys(g).length ? !1 : x.every(function (k) { return l(f[k], g[k], b) }) } return !1 } return l(e, t) } var Ja = dd, fd = (function () { function e() { tr(this, e), O(this, 'cache', new Map()) } return ( mn(e, [ { key: 'get', value: function (n) { return this.cache.get(n.join('%')) || null }, }, { key: 'update', value: function (n, a) { var l = n.join('%'), f = this.cache.get(l), g = a(f) g === null ? this.cache.delete(l) : this.cache.set(l, g) }, }, ]), e ) })(), Jf = fd, jc = ['children'], fa = 'data-token-hash', pa = 'data-css-hash', Rm = 'data-dev-cache-path', ga = '__cssinjs_instance__', gl = Math.random().toString(12).slice(2) function pd() { if (typeof document != 'undefined' && document.head && document.body) { var e = document.body.querySelectorAll('style['.concat(pa, ']')) || [], t = document.head.firstChild Array.from(e).forEach(function (a) { ;(a[ga] = a[ga] || gl), document.head.insertBefore(a, t) }) var n = {} Array.from(document.querySelectorAll('style['.concat(pa, ']'))).forEach(function (a) { var l = a.getAttribute(pa) if (n[l]) { if (a[ga] === gl) { var f ;(f = a.parentNode) === null || f === void 0 || f.removeChild(a) } } else n[l] = !0 }) } return new Jf() } var zc = m.createContext({ hashPriority: 'low', cache: pd(), defaultCache: !0 }), Zf = function (t) { var n = t.children, a = Kn(t, jc), l = m.useContext(zc), f = Mc( function () { var g = ze({}, l) Object.keys(a).forEach(function (_) { var b = a[_] a[_] !== void 0 && (g[_] = b) }) var h = a.cache return (g.cache = g.cache || pd()), (g.defaultCache = !h && l.defaultCache), g }, [l, a], function (g, h) { return !Ja(g[0], h[0], !0) || !Ja(g[1], h[1], !0) } ) return m.createElement(zc.Provider, { value: f }, n) }, gd = zc function md(e) { if (Array.isArray(e)) return e } function ma(e, t) { var n = e == null ? null : (typeof Symbol != 'undefined' && e[Symbol.iterator]) || e['@@iterator'] if (n != null) { var a, l, f, g, h = [], _ = !0, b = !1 try { if (((f = (n = n.call(e)).next), t === 0)) { if (Object(n) !== n) return _ = !1 } else for (; !(_ = (a = f.call(n)).done) && (h.push(a.value), h.length !== t); _ = !0); } catch (S) { ;(b = !0), (l = S) } finally { try { if (!_ && n.return != null && ((g = n.return()), Object(g) !== g)) return } finally { if (b) throw l } } return h } } function Lc() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) } function pt(e, t) { return md(e) || ma(e, t) || Rc(e, t) || Lc() } function Mm() { return !1 } var Am = !1 function Fc() { return Am } var Nm = Mm if (!1) var jm, zm function gn(e, t, n, a) { var l = m.useContext(gd), f = l.cache, g = [e].concat(kt(t)), h = Nm() return ( m.useMemo( function () { f.update(g, function (_) { var b = _ || [], S = pt(b, 2), x = S[0], k = x === void 0 ? 0 : x, D = S[1], M = D, P = M || n() return [k + 1, P] }) }, [g.join('_')] ), m.useEffect(function () { return function () { f.update(g, function (_) { var b = _ || [], S = pt(b, 2), x = S[0], k = x === void 0 ? 0 : x, D = S[1], M = k - 1 return M === 0 ? (a == null || a(D, !1), null) : [k - 1, D] }) } }, g), f.get(g)[1] ) } function ur() { return !!(typeof window != 'undefined' && window.document && window.document.createElement) } function ns(e, t) { if (!e) return !1 if (e.contains) return e.contains(t) for (var n = t; n; ) { if (n === e) return !0 n = n.parentNode } return !1 } var rs = 'data-rc-order', ep = 'rc-util-key', is = new Map() function as() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mark return t ? (t.startsWith('data-') ? t : 'data-'.concat(t)) : ep } function Za(e) { if (e.attachTo) return e.attachTo var t = document.querySelector('head') return t || document.body } function os(e) { return e === 'queue' ? 'prependQueue' : e ? 'prepend' : 'append' } function hd(e) { return Array.from((is.get(e) || e).children).filter(function (t) { return t.tagName === 'STYLE' }) } function tp(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {} if (!ur()) return null var n = t.csp, a = t.prepend, l = document.createElement('style') l.setAttribute(rs, os(a)), n != null && n.nonce && (l.nonce = n == null ? void 0 : n.nonce), (l.innerHTML = e) var f = Za(t), g = f.firstChild if (a) { if (a === 'queue') { var h = hd(f).filter(function (_) { return ['prepend', 'prependQueue'].includes(_.getAttribute(rs)) }) if (h.length) return f.insertBefore(l, h[h.length - 1].nextSibling), l } f.insertBefore(l, g) } else f.appendChild(l) return l } function np(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = Za(t) return hd(n).find(function (a) { return a.getAttribute(as(t)) === e }) } function ml(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = np(e, t) if (n) { var a = Za(t) a.removeChild(n) } } function $c(e, t) { var n = is.get(e) if (!n || !ns(document, n)) { var a = tp('', t), l = a.parentNode is.set(e, l), e.removeChild(a) } } function vd() { is.clear() } function ha(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = Za(n) $c(a, n) var l = np(t, n) if (l) { var f, g if ( (f = n.csp) !== null && f !== void 0 && f.nonce && l.nonce !== ((g = n.csp) === null || g === void 0 ? void 0 : g.nonce) ) { var h l.nonce = (h = n.csp) === null || h === void 0 ? void 0 : h.nonce } return l.innerHTML !== e && (l.innerHTML = e), l } var _ = tp(e, n) return _.setAttribute(as(n), t), _ } function ss(e) { var t = '' return ( Object.keys(e).forEach(function (n) { var a = e[n] ;(t += n), a && ln(a) === 'object' ? (t += ss(a)) : (t += a) }), t ) } function _d(e, t) { return cd(''.concat(t, '_').concat(ss(e))) } var eo = 'layer-'.concat(Date.now(), '-').concat(Math.random()).replace(/\./g, ''), rp = '903px' function ip(e, t) { if (ur()) { var n ha(e, eo) var a = document.createElement('div') ;(a.style.position = 'fixed'), (a.style.left = '0'), (a.style.top = '0'), t == null || t(a), document.body.appendChild(a) var l = getComputedStyle(a).width === rp return (n = a.parentNode) === null || n === void 0 || n.removeChild(a), ml(eo), l } return !1 } var yd = void 0 function Lm() { return ( yd === void 0 && (yd = ip('@layer '.concat(eo, ' { .').concat(eo, ' { width: ').concat(rp, '!important; } }'), function (e) { e.className = eo })), yd ) } var bd = {}, va = 'css', _a = new Map() function ls(e) { _a.set(e, (_a.get(e) || 0) + 1) } function ki(e) { if (typeof document != 'undefined') { var t = document.querySelectorAll('style['.concat(fa, '="').concat(e, '"]')) t.forEach(function (n) { if (n[ga] === gl) { var a ;(a = n.parentNode) === null || a === void 0 || a.removeChild(n) } }) } } function hl(e) { _a.set(e, (_a.get(e) || 0) - 1) var t = Array.from(_a.keys()), n = t.filter(function (a) { var l = _a.get(a) || 0 return l <= 0 }) n.length < t.length && n.forEach(function (a) { ki(a), _a.delete(a) }) } function Ui(e, t) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = n.salt, l = a === void 0 ? '' : a, f = n.override, g = f === void 0 ? bd : f, h = n.formatToken, _ = m.useMemo( function () { return Object.assign.apply(Object, [{}].concat(kt(t))) }, [t] ), b = m.useMemo( function () { return ss(_) }, [_] ), S = m.useMemo( function () { return ss(g) }, [g] ), x = gn( 'token', [l, e.id, b, S], function () { var k = e.getDerivativeToken(_), D = ze(ze({}, k), g) h && (D = h(D)) var M = _d(D, l) ;(D._tokenKey = M), ls(M) var P = ''.concat(va, '-').concat(cd(M)) return (D._hashId = P), [D, P] }, function (k) { hl(k[0]._tokenKey) } ) return x } var Sd = { animationIterationCount: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, boxFlex: 1, boxFlexGroup: 1, boxOrdinalGroup: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexPositive: 1, flexShrink: 1, flexNegative: 1, flexOrder: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, msGridRow: 1, msGridRowSpan: 1, msGridColumn: 1, msGridColumnSpan: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1, }, ap = Sd function i_(e, t) { var n = t.path, a = t.parentSelectors devWarning( !1, '[Ant Design CSS-in-JS] ' .concat(n ? 'Error in '.concat(n, ': ') : '') .concat(e) .concat(a.length ? ' Selector: '.concat(a.join(' | ')) : '') ) } var cs = function (t, n, a) { if (t === 'content') { var l = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/, f = ['normal', 'none', 'initial', 'inherit', 'unset'] ;(typeof n != 'string' || (f.indexOf(n) === -1 && !l.test(n) && (n.charAt(0) !== n.charAt(n.length - 1) || (n.charAt(0) !== '"' && n.charAt(0) !== "'")))) && lintWarning( "You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat( n, '"\'`.' ), a ) } }, Hc = null, vl = function (t, n, a) { t === 'animation' && a.hashId && n !== 'none' && lintWarning( "You seem to be using hashed animation '".concat( n, "', in which case 'animationName' with Keyframe as value is recommended." ), a ) }, wd = null function xd(e) { var t, n = ((t = e.match(/:not\(([^)]*)\)/)) === null || t === void 0 ? void 0 : t[1]) || '', a = n.split(/(\[[^[]*])|(?=[.#])/).filter(function (l) { return l }) return a.length > 1 } function us(e) { return e.parentSelectors.reduce(function (t, n) { return t ? (n.includes('&') ? n.replace(/&/g, t) : ''.concat(t, ' ').concat(n)) : n }, '') } var to = function (t, n, a) { var l = us(a), f = l.match(/:not\([^)]*\)/g) || [] f.length > 0 && f.some(xd) && lintWarning("Concat ':not' selector not support in legacy browsers.", a) }, yn = null, hn = function (t, n, a) { switch (t) { case 'marginLeft': case 'marginRight': case 'paddingLeft': case 'paddingRight': case 'left': case 'right': case 'borderLeft': case 'borderLeftWidth': case 'borderLeftStyle': case 'borderLeftColor': case 'borderRight': case 'borderRightWidth': case 'borderRightStyle': case 'borderRightColor': case 'borderTopLeftRadius': case 'borderTopRightRadius': case 'borderBottomLeftRadius': case 'borderBottomRightRadius': lintWarning( "You seem to be using non-logical property '".concat( t, "' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties." ), a ) return case 'margin': case 'padding': case 'borderWidth': case 'borderStyle': if (typeof n == 'string') { var l = n.split(' ').map(function (h) { return h.trim() }) l.length === 4 && l[1] !== l[3] && lintWarning( "You seem to be using '" .concat(t, "' property with different left ") .concat(t, ' and right ') .concat( t, ', which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.' ), a ) } return case 'clear': case 'textAlign': ;(n === 'left' || n === 'right') && lintWarning( "You seem to be using non-logical value '" .concat(n, "' of ") .concat( t, ', which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.' ), a ) return case 'borderRadius': if (typeof n == 'string') { var f = n.split('/').map(function (h) { return h.trim() }), g = f.reduce(function (h, _) { if (h) return h var b = _.split(' ').map(function (S) { return S.trim() }) return (b.length >= 2 && b[0] !== b[1]) || (b.length === 3 && b[1] !== b[2]) || (b.length === 4 && b[2] !== b[3]) ? !0 : h }, !1) g && lintWarning( "You seem to be using non-logical value '" .concat(n, "' of ") .concat( t, ', which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.' ), a ) } return default: } }, no = null, dr = function (t, n, a) { a.parentSelectors.some(function (l) { var f = l.split(',') return f.some(function (g) { return g.split('&').length > 2 }) }) && lintWarning('Should not use more than one `&` in a selector.', a) }, Mr = null, ya = ur(), ds = '_skip_check_' function fr(e) { var t = yr($o(e), Zs) return t.replace(/\{%%%\:[^;];}/g, ';') } function Bc(e) { return ln(e) === 'object' && e && ds in e } function op(e, t, n) { if (!t) return e var a = '.'.concat(t), l = n === 'low' ? ':where('.concat(a, ')') : a, f = e.split(',').map(function (g) { var h, _ = g.trim().split(/\s+/), b = _[0] || '', S = ((h = b.match(/^\w+/)) === null || h === void 0 ? void 0 : h[0]) || '' return (b = ''.concat(S).concat(l).concat(b.slice(S.length))), [b].concat(kt(_.slice(1))).join(' ') }) return f.join(',') } var sp = function e(t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : { root: !0, parentSelectors: [] }, l = a.root, f = a.injectHash, g = a.parentSelectors, h = n.hashId, _ = n.layer, b = n.path, S = n.hashPriority, x = n.transformers, k = x === void 0 ? [] : x, D = n.linters, M = D === void 0 ? [] : D, P = '', R = {} function j(ie) { var ae = ie.getName(h) if (!R[ae]) { var de = e(ie.style, n, { root: !1, parentSelectors: g }), ye = pt(de, 1), me = ye[0] R[ae] = '@keyframes '.concat(ie.getName(h)).concat(me) } } function L(ie) { var ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [] return ( ie.forEach(function (de) { Array.isArray(de) ? L(de, ae) : de && ae.push(de) }), ae ) } var H = L(Array.isArray(t) ? t : [t]) if ( (H.forEach(function (ie) { var ae = typeof ie == 'string' && !l ? {} : ie if (typeof ae == 'string') P += ''.concat( ae, ` ` ) else if (ae._keyframe) j(ae) else { var de = k.reduce(function (ye, me) { var De return (me == null || (De = me.visit) === null || De === void 0 ? void 0 : De.call(me, ye)) || ye }, ae) Object.keys(de).forEach(function (ye) { var me = de[ye] if (ln(me) === 'object' && me && (ye !== 'animationName' || !me._keyframe) && !Bc(me)) { var De = !1, se = ye.trim(), oe = !1 ;(l || f) && h ? se.startsWith('@') ? (De = !0) : (se = op(ye, h, S)) : l && !h && (se === '&' || se === '') && ((se = ''), (oe = !0)) var fe = e(me, n, { root: oe, injectHash: De, parentSelectors: [].concat(kt(g), [se]) }), Oe = pt(fe, 2), Ve = Oe[0], Qe = Oe[1] ;(R = ze(ze({}, R), Qe)), (P += ''.concat(se).concat(Ve)) } else { var ft, Ot = (ft = me == null ? void 0 : me.value) !== null && ft !== void 0 ? ft : me, Nt = ye.replace(/[A-Z]/g, function (Ge) { return '-'.concat(Ge.toLowerCase()) }), Ct = Ot !ap[ye] && typeof Ct == 'number' && Ct !== 0 && (Ct = ''.concat(Ct, 'px')), ye === 'animationName' && me !== null && me !== void 0 && me._keyframe && (j(me), (Ct = me.getName(h))), (P += ''.concat(Nt, ':').concat(Ct, ';')) } }) } }), !l) ) P = '{'.concat(P, '}') else if (_ && Lm()) { var U = _.split(','), te = U[U.length - 1].trim() ;(P = '@layer '.concat(te, ' {').concat(P, '}')), U.length > 1 && (P = '@layer '.concat(_, '{%%%:%}').concat(P)) } return [P, R] } function Uc(e, t) { return cd(''.concat(e.join('%')).concat(t)) } function lp() { return null } function ai(e, t) { var n = e.token, a = e.path, l = e.hashId, f = e.layer, g = e.nonce, h = m.useContext(gd), _ = h.autoClear, b = h.mock, S = h.defaultCache, x = h.hashPriority, k = h.container, D = h.ssrInline, M = h.transformers, P = h.linters, R = n._tokenKey, j = [R].concat(kt(a)), L = ya, H = gn( 'style', j, function () { var de = t(), ye = sp(de, { hashId: l, hashPriority: x, layer: f, path: a.join('-'), transformers: M, linters: P }), me = pt(ye, 2), De = me[0], se = me[1], oe = fr(De), fe = Uc(j, oe) if (L) { var Oe = { mark: pa, prepend: 'queue', attachTo: k }, Ve = typeof g == 'function' ? g() : g Ve && (Oe.csp = { nonce: Ve }) var Qe = ha(oe, fe, Oe) ;(Qe[ga] = gl), Qe.setAttribute(fa, R), Object.keys(se).forEach(function (ft) { ha(fr(se[ft]), '_effect-'.concat(ft), Oe) }) } return [oe, R, fe] }, function (de, ye) { var me = pt(de, 3), De = me[2] ;(ye || _) && ya && ml(De, { mark: pa }) } ), U = pt(H, 3), te = U[0], ie = U[1], ae = U[2] return function (de) { var ye if (!D || L || !S) ye = m.createElement(lp, null) else { var me ye = m.createElement( 'style', Xt({}, ((me = {}), O(me, fa, ie), O(me, pa, ae), me), { dangerouslySetInnerHTML: { __html: te } }) ) } return m.createElement(m.Fragment, null, ye, de) } } function Cd(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = Array.from(e.cache.keys()).filter(function (l) { return l.startsWith('style%') }), a = '' return ( n.forEach(function (l) { var f = _slicedToArray(e.cache.get(l)[1], 3), g = f[0], h = f[1], _ = f[2] a += t ? g : '') }), a ) } var Ed = (function () { function e(t, n) { tr(this, e), O(this, 'name', void 0), O(this, 'style', void 0), O(this, '_keyframe', !0), (this.name = t), (this.style = n) } return ( mn(e, [ { key: 'getName', value: function () { var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '' return n ? ''.concat(n, '-').concat(this.name) : this.name }, }, ]), e ) })(), cn = Ed function Fm(e, t) { if (e.length !== t.length) return !1 for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1 return !0 } var Oi = (function () { function e() { tr(this, e), O(this, 'cache', void 0), O(this, 'keys', void 0), O(this, 'cacheCallTimes', void 0), (this.cache = new Map()), (this.keys = []), (this.cacheCallTimes = 0) } return ( mn(e, [ { key: 'size', value: function () { return this.keys.length }, }, { key: 'internalGet', value: function (n) { var a, l, f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, g = { map: this.cache } return ( n.forEach(function (h) { if (!g) g = void 0 else { var _, b g = (_ = g) === null || _ === void 0 || (b = _.map) === null || b === void 0 ? void 0 : b.get(h) } }), (a = g) !== null && a !== void 0 && a.value && f && (g.value[1] = this.cacheCallTimes++), (l = g) === null || l === void 0 ? void 0 : l.value ) }, }, { key: 'get', value: function (n) { var a return (a = this.internalGet(n, !0)) === null || a === void 0 ? void 0 : a[0] }, }, { key: 'has', value: function (n) { return !!this.internalGet(n) }, }, { key: 'set', value: function (n, a) { var l = this if (!this.has(n)) { if (this.size() + 1 > e.MAX_CACHE_SIZE + e.MAX_CACHE_OFFSET) { var f = this.keys.reduce( function (b, S) { var x = pt(b, 2), k = x[1] return l.internalGet(S)[1] < k ? [S, l.internalGet(S)[1]] : b }, [this.keys[0], this.cacheCallTimes] ), g = pt(f, 1), h = g[0] this.delete(h) } this.keys.push(n) } var _ = this.cache n.forEach(function (b, S) { if (S === n.length - 1) _.set(b, { value: [a, l.cacheCallTimes++] }) else { var x = _.get(b) x ? x.map || (x.map = new Map()) : _.set(b, { map: new Map() }), (_ = _.get(b).map) } }) }, }, { key: 'deleteByPath', value: function (n, a) { var l = n.get(a[0]) if (a.length === 1) { var f return ( l.map ? n.set(a[0], { map: l.map }) : n.delete(a[0]), (f = l.value) === null || f === void 0 ? void 0 : f[0] ) } var g = this.deleteByPath(l.map, a.slice(1)) return (!l.map || l.map.size === 0) && !l.value && n.delete(a[0]), g }, }, { key: 'delete', value: function (n) { if (this.has(n)) return ( (this.keys = this.keys.filter(function (a) { return !Fm(a, n) })), this.deleteByPath(this.cache, n) ) }, }, ]), e ) })() O(Oi, 'MAX_CACHE_SIZE', 20), O(Oi, 'MAX_CACHE_OFFSET', 5) var ro = 0, fs = (function () { function e(t) { tr(this, e), O(this, 'derivatives', void 0), O(this, 'id', void 0), (this.derivatives = Array.isArray(t) ? t : [t]), (this.id = ro), t.length === 0 && ud(t.length > 0, '[Ant Design CSS-in-JS] Theme should have at least one derivative function.'), (ro += 1) } return ( mn(e, [ { key: 'getDerivativeToken', value: function (n) { return this.derivatives.reduce(function (a, l) { return l(n, a) }, void 0) }, }, ]), e ) })(), ps = new Oi() function _l(e) { var t = Array.isArray(e) ? e : [e] return ps.has(t) || ps.set(t, new fs(t)), ps.get(t) } function Wr(e) { if (typeof e == 'number') return [[e], !1] var t = String(e).trim(), n = t.match(/(.*)(!important)/), a = (n ? n[1] : t).trim().split(/\s+/), l = '', f = 0 return [ a.reduce(function (g, h) { return ( h.includes('(') ? ((l += h), (f += h.split('(').length - 1)) : h.includes(')') ? ((l += h), (f -= h.split(')').length - 1), f === 0 && (g.push(l), (l = ''))) : f > 0 ? (l += h) : g.push(h), g ) }, []), !!n, ] } function Yn(e) { return (e.notSplit = !0), e } var io = { inset: ['top', 'right', 'bottom', 'left'], insetBlock: ['top', 'bottom'], insetBlockStart: ['top'], insetBlockEnd: ['bottom'], insetInline: ['left', 'right'], insetInlineStart: ['left'], insetInlineEnd: ['right'], marginBlock: ['marginTop', 'marginBottom'], marginBlockStart: ['marginTop'], marginBlockEnd: ['marginBottom'], marginInline: ['marginLeft', 'marginRight'], marginInlineStart: ['marginLeft'], marginInlineEnd: ['marginRight'], paddingBlock: ['paddingTop', 'paddingBottom'], paddingBlockStart: ['paddingTop'], paddingBlockEnd: ['paddingBottom'], paddingInline: ['paddingLeft', 'paddingRight'], paddingInlineStart: ['paddingLeft'], paddingInlineEnd: ['paddingRight'], borderBlock: Yn(['borderTop', 'borderBottom']), borderBlockStart: Yn(['borderTop']), borderBlockEnd: Yn(['borderBottom']), borderInline: Yn(['borderLeft', 'borderRight']), borderInlineStart: Yn(['borderLeft']), borderInlineEnd: Yn(['borderRight']), borderBlockWidth: ['borderTopWidth', 'borderBottomWidth'], borderBlockStartWidth: ['borderTopWidth'], borderBlockEndWidth: ['borderBottomWidth'], borderInlineWidth: ['borderLeftWidth', 'borderRightWidth'], borderInlineStartWidth: ['borderLeftWidth'], borderInlineEndWidth: ['borderRightWidth'], borderBlockStyle: ['borderTopStyle', 'borderBottomStyle'], borderBlockStartStyle: ['borderTopStyle'], borderBlockEndStyle: ['borderBottomStyle'], borderInlineStyle: ['borderLeftStyle', 'borderRightStyle'], borderInlineStartStyle: ['borderLeftStyle'], borderInlineEndStyle: ['borderRightStyle'], borderBlockColor: ['borderTopColor', 'borderBottomColor'], borderBlockStartColor: ['borderTopColor'], borderBlockEndColor: ['borderBottomColor'], borderInlineColor: ['borderLeftColor', 'borderRightColor'], borderInlineStartColor: ['borderLeftColor'], borderInlineEndColor: ['borderRightColor'], borderStartStartRadius: ['borderTopLeftRadius'], borderStartEndRadius: ['borderTopRightRadius'], borderEndStartRadius: ['borderBottomLeftRadius'], borderEndEndRadius: ['borderBottomRightRadius'], } function Vr(e, t) { var n = e return t && (n = ''.concat(n, ' !important')), { _skip_check_: !0, value: n } } var ba = { visit: function (t) { var n = {} return ( Object.keys(t).forEach(function (a) { var l = t[a], f = io[a] if (f && (typeof l == 'number' || typeof l == 'string')) { var g = Wr(l), h = pt(g, 2), _ = h[0], b = h[1] f.length && f.notSplit ? f.forEach(function (S) { n[S] = Vr(l, b) }) : f.length === 1 ? (n[f[0]] = Vr(l, b)) : f.length === 2 ? f.forEach(function (S, x) { var k n[S] = Vr((k = _[x]) !== null && k !== void 0 ? k : _[0], b) }) : f.length === 4 ? f.forEach(function (S, x) { var k, D n[S] = Vr( (k = (D = _[x]) !== null && D !== void 0 ? D : _[x - 2]) !== null && k !== void 0 ? k : _[0], b ) }) : (n[a] = l) } else n[a] = l }), n ) }, }, gs = null, Wc = /url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g function kd(e, t) { var n = Math.pow(10, t + 1), a = Math.floor(e * n) return (Math.round(a / 10) * 10) / n } var cp = function () { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = t.rootValue, a = n === void 0 ? 16 : n, l = t.precision, f = l === void 0 ? 5 : l, g = t.mediaQuery, h = g === void 0 ? !1 : g, _ = function (x, k) { if (!k) return x var D = parseFloat(k) if (D <= 1) return x var M = kd(D / a, f) return ''.concat(M, 'rem') }, b = function (x) { var k = _objectSpread({}, x) return ( Object.entries(x).forEach(function (D) { var M = _slicedToArray(D, 2), P = M[0], R = M[1] if (typeof R == 'string' && R.includes('px')) { var j = R.replace(Wc, _) k[P] = j } !unitless[P] && typeof R == 'number' && R !== 0 && (k[P] = ''.concat(R, 'px').replace(Wc, _)) var L = P.trim() if (L.startsWith('@') && L.includes('px') && h) { var H = P.replace(Wc, _) ;(k[H] = k[P]), delete k[P] } }), k ) } return { visit: b } }, Gr = null, Ar = ['children', 'prefix', 'speedy', 'getStyleManager', 'container', 'nonce', 'insertionPoint', 'stylisPlugins'] function vn(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e) t && (a = a.filter(function (l) { return Object.getOwnPropertyDescriptor(e, l).enumerable })), n.push.apply(n, a) } return n } function Xr(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {} t % 2 ? vn(Object(n), !0).forEach(function (a) { O(e, a, n[a]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : vn(Object(n)).forEach(function (a) { Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a)) }) } return e } var up = function (t, n) { return (0, m.memo)(function (a) { var l = a.children, f = a.prefix, g = f === void 0 ? (n == null ? void 0 : n.prefix) || Zo : f, h = a.speedy, _ = h === void 0 ? (n == null ? void 0 : n.speedy) : h, b = a.getStyleManager, S = a.container, x = a.nonce, k = a.insertionPoint, D = a.stylisPlugins, M = Kn(a, Ar), P = (0, m.useMemo)( function () { var j = !1 return Yt({ speedy: _ != null ? _ : j, key: g, container: S, nonce: x, insertionPoint: k, stylisPlugins: D, }) }, [g, _, S, x, k, D] ) ;(0, m.useEffect)( function () { b == null || b(P) }, [P] ) var R = (0, at.jsx)(t.Provider, { value: P, children: l }) return M.cache ? (0, at.jsx)(Zf, Xr(Xr({}, M), {}, { children: R })) : R }) }, dp = '5.4.2', Od = dp function An(e, t) { Vc(e) && (e = '100%') var n = fp(e) return ( (e = t === 360 ? e : Math.min(t, Math.max(0, parseFloat(e)))), n && (e = parseInt(String(e * t), 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : (t === 360 ? (e = (e < 0 ? (e % t) + t : e % t) / parseFloat(String(t))) : (e = (e % t) / parseFloat(String(t))), e) ) } function yl(e) { return Math.min(1, Math.max(0, e)) } function Vc(e) { return typeof e == 'string' && e.indexOf('.') !== -1 && parseFloat(e) === 1 } function fp(e) { return typeof e == 'string' && e.indexOf('%') !== -1 } function ao(e) { return (e = parseFloat(e)), (isNaN(e) || e < 0 || e > 1) && (e = 1), e } function ms(e) { return e <= 1 ? ''.concat(Number(e) * 100, '%') : e } function oo(e) { return e.length === 1 ? '0' + e : String(e) } function oi(e, t, n) { return { r: An(e, 255) * 255, g: An(t, 255) * 255, b: An(n, 255) * 255 } } function bl(e, t, n) { ;(e = An(e, 255)), (t = An(t, 255)), (n = An(n, 255)) var a = Math.max(e, t, n), l = Math.min(e, t, n), f = 0, g = 0, h = (a + l) / 2 if (a === l) (g = 0), (f = 0) else { var _ = a - l switch (((g = h > 0.5 ? _ / (2 - a - l) : _ / (a + l)), a)) { case e: f = (t - n) / _ + (t < n ? 6 : 0) break case t: f = (n - e) / _ + 2 break case n: f = (e - t) / _ + 4 break default: break } f /= 6 } return { h: f, s: g, l: h } } function hs(e, t, n) { return ( n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * (6 * n) : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e ) } function vs(e, t, n) { var a, l, f if (((e = An(e, 360)), (t = An(t, 100)), (n = An(n, 100)), t === 0)) (l = n), (f = n), (a = n) else { var g = n < 0.5 ? n * (1 + t) : n + t - n * t, h = 2 * n - g ;(a = hs(h, g, e + 1 / 3)), (l = hs(h, g, e)), (f = hs(h, g, e - 1 / 3)) } return { r: a * 255, g: l * 255, b: f * 255 } } function Sl(e, t, n) { ;(e = An(e, 255)), (t = An(t, 255)), (n = An(n, 255)) var a = Math.max(e, t, n), l = Math.min(e, t, n), f = 0, g = a, h = a - l, _ = a === 0 ? 0 : h / a if (a === l) f = 0 else { switch (a) { case e: f = (t - n) / h + (t < n ? 6 : 0) break case t: f = (n - e) / h + 2 break case n: f = (e - t) / h + 4 break default: break } f /= 6 } return { h: f, s: _, v: g } } function Td(e, t, n) { ;(e = An(e, 360) * 6), (t = An(t, 100)), (n = An(n, 100)) var a = Math.floor(e), l = e - a, f = n * (1 - t), g = n * (1 - l * t), h = n * (1 - (1 - l) * t), _ = a % 6, b = [n, g, f, f, h, n][_], S = [h, n, n, g, f, f][_], x = [f, f, h, n, n, g][_] return { r: b * 255, g: S * 255, b: x * 255 } } function wl(e, t, n, a) { var l = [oo(Math.round(e).toString(16)), oo(Math.round(t).toString(16)), oo(Math.round(n).toString(16))] return a && l[0].startsWith(l[0].charAt(1)) && l[1].startsWith(l[1].charAt(1)) && l[2].startsWith(l[2].charAt(1)) ? l[0].charAt(0) + l[1].charAt(0) + l[2].charAt(0) : l.join('') } function Dd(e, t, n, a, l) { var f = [ oo(Math.round(e).toString(16)), oo(Math.round(t).toString(16)), oo(Math.round(n).toString(16)), oo(Nr(a)), ] return l && f[0].startsWith(f[0].charAt(1)) && f[1].startsWith(f[1].charAt(1)) && f[2].startsWith(f[2].charAt(1)) && f[3].startsWith(f[3].charAt(1)) ? f[0].charAt(0) + f[1].charAt(0) + f[2].charAt(0) + f[3].charAt(0) : f.join('') } function xl(e, t, n, a) { var l = [ pad2(Nr(a)), pad2(Math.round(e).toString(16)), pad2(Math.round(t).toString(16)), pad2(Math.round(n).toString(16)), ] return l.join('') } function Nr(e) { return Math.round(parseFloat(e) * 255).toString(16) } function Sa(e) { return pr(e) / 255 } function pr(e) { return parseInt(e, 16) } function pp(e) { return { r: e >> 16, g: (e & 65280) >> 8, b: e & 255 } } var si = { aliceblue: '#f0f8ff', antiquewhite: '#faebd7', aqua: '#00ffff', aquamarine: '#7fffd4', azure: '#f0ffff', beige: '#f5f5dc', bisque: '#ffe4c4', black: '#000000', blanchedalmond: '#ffebcd', blue: '#0000ff', blueviolet: '#8a2be2', brown: '#a52a2a', burlywood: '#deb887', cadetblue: '#5f9ea0', chartreuse: '#7fff00', chocolate: '#d2691e', coral: '#ff7f50', cornflowerblue: '#6495ed', cornsilk: '#fff8dc', crimson: '#dc143c', cyan: '#00ffff', darkblue: '#00008b', darkcyan: '#008b8b', darkgoldenrod: '#b8860b', darkgray: '#a9a9a9', darkgreen: '#006400', darkgrey: '#a9a9a9', darkkhaki: '#bdb76b', darkmagenta: '#8b008b', darkolivegreen: '#556b2f', darkorange: '#ff8c00', darkorchid: '#9932cc', darkred: '#8b0000', darksalmon: '#e9967a', darkseagreen: '#8fbc8f', darkslateblue: '#483d8b', darkslategray: '#2f4f4f', darkslategrey: '#2f4f4f', darkturquoise: '#00ced1', darkviolet: '#9400d3', deeppink: '#ff1493', deepskyblue: '#00bfff', dimgray: '#696969', dimgrey: '#696969', dodgerblue: '#1e90ff', firebrick: '#b22222', floralwhite: '#fffaf0', forestgreen: '#228b22', fuchsia: '#ff00ff', gainsboro: '#dcdcdc', ghostwhite: '#f8f8ff', goldenrod: '#daa520', gold: '#ffd700', gray: '#808080', green: '#008000', greenyellow: '#adff2f', grey: '#808080', honeydew: '#f0fff0', hotpink: '#ff69b4', indianred: '#cd5c5c', indigo: '#4b0082', ivory: '#fffff0', khaki: '#f0e68c', lavenderblush: '#fff0f5', lavender: '#e6e6fa', lawngreen: '#7cfc00', lemonchiffon: '#fffacd', lightblue: '#add8e6', lightcoral: '#f08080', lightcyan: '#e0ffff', lightgoldenrodyellow: '#fafad2', lightgray: '#d3d3d3', lightgreen: '#90ee90', lightgrey: '#d3d3d3', lightpink: '#ffb6c1', lightsalmon: '#ffa07a', lightseagreen: '#20b2aa', lightskyblue: '#87cefa', lightslategray: '#778899', lightslategrey: '#778899', lightsteelblue: '#b0c4de', lightyellow: '#ffffe0', lime: '#00ff00', limegreen: '#32cd32', linen: '#faf0e6', magenta: '#ff00ff', maroon: '#800000', mediumaquamarine: '#66cdaa', mediumblue: '#0000cd', mediumorchid: '#ba55d3', mediumpurple: '#9370db', mediumseagreen: '#3cb371', mediumslateblue: '#7b68ee', mediumspringgreen: '#00fa9a', mediumturquoise: '#48d1cc', mediumvioletred: '#c71585', midnightblue: '#191970', mintcream: '#f5fffa', mistyrose: '#ffe4e1', moccasin: '#ffe4b5', navajowhite: '#ffdead', navy: '#000080', oldlace: '#fdf5e6', olive: '#808000', olivedrab: '#6b8e23', orange: '#ffa500', orangered: '#ff4500', orchid: '#da70d6', palegoldenrod: '#eee8aa', palegreen: '#98fb98', paleturquoise: '#afeeee', palevioletred: '#db7093', papayawhip: '#ffefd5', peachpuff: '#ffdab9', peru: '#cd853f', pink: '#ffc0cb', plum: '#dda0dd', powderblue: '#b0e0e6', purple: '#800080', rebeccapurple: '#663399', red: '#ff0000', rosybrown: '#bc8f8f', royalblue: '#4169e1', saddlebrown: '#8b4513', salmon: '#fa8072', sandybrown: '#f4a460', seagreen: '#2e8b57', seashell: '#fff5ee', sienna: '#a0522d', silver: '#c0c0c0', skyblue: '#87ceeb', slateblue: '#6a5acd', slategray: '#708090', slategrey: '#708090', snow: '#fffafa', springgreen: '#00ff7f', steelblue: '#4682b4', tan: '#d2b48c', teal: '#008080', thistle: '#d8bfd8', tomato: '#ff6347', turquoise: '#40e0d0', violet: '#ee82ee', wheat: '#f5deb3', white: '#ffffff', whitesmoke: '#f5f5f5', yellow: '#ffff00', yellowgreen: '#9acd32', } function jr(e) { var t = { r: 0, g: 0, b: 0 }, n = 1, a = null, l = null, f = null, g = !1, h = !1 return ( typeof e == 'string' && (e = Gc(e)), typeof e == 'object' && (Di(e.r) && Di(e.g) && Di(e.b) ? ((t = oi(e.r, e.g, e.b)), (g = !0), (h = String(e.r).substr(-1) === '%' ? 'prgb' : 'rgb')) : Di(e.h) && Di(e.s) && Di(e.v) ? ((a = ms(e.s)), (l = ms(e.v)), (t = Td(e.h, a, l)), (g = !0), (h = 'hsv')) : Di(e.h) && Di(e.s) && Di(e.l) && ((a = ms(e.s)), (f = ms(e.l)), (t = vs(e.h, a, f)), (g = !0), (h = 'hsl')), Object.prototype.hasOwnProperty.call(e, 'a') && (n = e.a)), (n = ao(n)), { ok: g, format: e.format || h, r: Math.min(255, Math.max(t.r, 0)), g: Math.min(255, Math.max(t.g, 0)), b: Math.min(255, Math.max(t.b, 0)), a: n, } ) } var Pd = '[-\\+]?\\d+%?', gp = '[-\\+]?\\d*\\.\\d+%?', nr = '(?:'.concat(gp, ')|(?:').concat(Pd, ')'), Ti = '[\\s|\\(]+('.concat(nr, ')[,|\\s]+(').concat(nr, ')[,|\\s]+(').concat(nr, ')\\s*\\)?'), _s = '[\\s|\\(]+(' .concat(nr, ')[,|\\s]+(') .concat(nr, ')[,|\\s]+(') .concat(nr, ')[,|\\s]+(') .concat(nr, ')\\s*\\)?'), Kr = { CSS_UNIT: new RegExp(nr), rgb: new RegExp('rgb' + Ti), rgba: new RegExp('rgba' + _s), hsl: new RegExp('hsl' + Ti), hsla: new RegExp('hsla' + _s), hsv: new RegExp('hsv' + Ti), hsva: new RegExp('hsva' + _s), hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/, hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/, } function Gc(e) { if (((e = e.trim().toLowerCase()), e.length === 0)) return !1 var t = !1 if (si[e]) (e = si[e]), (t = !0) else if (e === 'transparent') return { r: 0, g: 0, b: 0, a: 0, format: 'name' } var n = Kr.rgb.exec(e) return n ? { r: n[1], g: n[2], b: n[3] } : ((n = Kr.rgba.exec(e)), n ? { r: n[1], g: n[2], b: n[3], a: n[4] } : ((n = Kr.hsl.exec(e)), n ? { h: n[1], s: n[2], l: n[3] } : ((n = Kr.hsla.exec(e)), n ? { h: n[1], s: n[2], l: n[3], a: n[4] } : ((n = Kr.hsv.exec(e)), n ? { h: n[1], s: n[2], v: n[3] } : ((n = Kr.hsva.exec(e)), n ? { h: n[1], s: n[2], v: n[3], a: n[4] } : ((n = Kr.hex8.exec(e)), n ? { r: pr(n[1]), g: pr(n[2]), b: pr(n[3]), a: Sa(n[4]), format: t ? 'name' : 'hex8' } : ((n = Kr.hex6.exec(e)), n ? { r: pr(n[1]), g: pr(n[2]), b: pr(n[3]), format: t ? 'name' : 'hex' } : ((n = Kr.hex4.exec(e)), n ? { r: pr(n[1] + n[1]), g: pr(n[2] + n[2]), b: pr(n[3] + n[3]), a: Sa(n[4] + n[4]), format: t ? 'name' : 'hex8', } : ((n = Kr.hex3.exec(e)), n ? { r: pr(n[1] + n[1]), g: pr(n[2] + n[2]), b: pr(n[3] + n[3]), format: t ? 'name' : 'hex', } : !1))))))))) } function Di(e) { return Boolean(Kr.CSS_UNIT.exec(String(e))) } var Cl = 2, Xc = 0.16, Kc = 0.05, mp = 0.05, hp = 0.15, Id = 5, Yc = 4, El = [ { index: 7, opacity: 0.15 }, { index: 6, opacity: 0.25 }, { index: 5, opacity: 0.3 }, { index: 5, opacity: 0.45 }, { index: 5, opacity: 0.65 }, { index: 5, opacity: 0.85 }, { index: 4, opacity: 0.9 }, { index: 3, opacity: 0.95 }, { index: 2, opacity: 0.97 }, { index: 1, opacity: 0.98 }, ] function kl(e) { var t = e.r, n = e.g, a = e.b, l = Sl(t, n, a) return { h: l.h * 360, s: l.s, v: l.v } } function Ol(e) { var t = e.r, n = e.g, a = e.b return '#'.concat(wl(t, n, a, !1)) } function vp(e, t, n) { var a = n / 100, l = { r: (t.r - e.r) * a + e.r, g: (t.g - e.g) * a + e.g, b: (t.b - e.b) * a + e.b } return l } function so(e, t, n) { var a return ( Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? (a = n ? Math.round(e.h) - Cl * t : Math.round(e.h) + Cl * t) : (a = n ? Math.round(e.h) + Cl * t : Math.round(e.h) - Cl * t), a < 0 ? (a += 360) : a >= 360 && (a -= 360), a ) } function Rd(e, t, n) { if (e.h === 0 && e.s === 0) return e.s var a return ( n ? (a = e.s - Xc * t) : t === Yc ? (a = e.s + Xc) : (a = e.s + Kc * t), a > 1 && (a = 1), n && t === Id && a > 0.1 && (a = 0.1), a < 0.06 && (a = 0.06), Number(a.toFixed(2)) ) } function ys(e, t, n) { var a return n ? (a = e.v + mp * t) : (a = e.v - hp * t), a > 1 && (a = 1), Number(a.toFixed(2)) } function jn(e) { for ( var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [], a = jr(e), l = Id; l > 0; l -= 1 ) { var f = kl(a), g = Ol(jr({ h: so(f, l, !0), s: Rd(f, l, !0), v: ys(f, l, !0) })) n.push(g) } n.push(Ol(a)) for (var h = 1; h <= Yc; h += 1) { var _ = kl(a), b = Ol(jr({ h: so(_, h), s: Rd(_, h), v: ys(_, h) })) n.push(b) } return t.theme === 'dark' ? El.map(function (S) { var x = S.index, k = S.opacity, D = Ol(vp(jr(t.backgroundColor || '#141414'), jr(n[x]), k * 100)) return D }) : n } var lo = { red: '#F5222D', volcano: '#FA541C', orange: '#FA8C16', gold: '#FAAD14', yellow: '#FADB14', lime: '#A0D911', green: '#52C41A', cyan: '#13C2C2', blue: '#1677FF', geekblue: '#2F54EB', purple: '#722ED1', magenta: '#EB2F96', grey: '#666666', }, Tn = {}, Wi = {} Object.keys(lo).forEach(function (e) { ;(Tn[e] = jn(lo[e])), (Tn[e].primary = Tn[e][5]), (Wi[e] = jn(lo[e], { theme: 'dark', backgroundColor: '#141414' })), (Wi[e].primary = Wi[e][5]) }) var _p = Tn.red, Tl = Tn.volcano, $m = Tn.gold, yp = Tn.orange, xn = Tn.yellow, Md = Tn.lime, bp = Tn.green, Sp = Tn.cyan, Ad = Tn.blue, wp = Tn.geekblue, bs = Tn.purple, Cn = Tn.magenta, zn = Tn.grey, qn = Tn.grey, Ss = (e) => { const { controlHeight: t } = e return { controlHeightSM: t * 0.75, controlHeightXS: t * 0.5, controlHeightLG: t * 1.25 } } function Dl(e) { const { sizeUnit: t, sizeStep: n } = e return { sizeXXL: t * (n + 8), sizeXL: t * (n + 4), sizeLG: t * (n + 2), sizeMD: t * (n + 1), sizeMS: t * n, size: t * n, sizeSM: t * (n - 1), sizeXS: t * (n - 2), sizeXXS: t * (n - 3), } } const jd = { blue: '#1677ff', purple: '#722ED1', cyan: '#13C2C2', green: '#52C41A', magenta: '#EB2F96', pink: '#eb2f96', red: '#F5222D', orange: '#FA8C16', yellow: '#FADB14', volcano: '#FA541C', geekblue: '#2F54EB', gold: '#FAAD14', lime: '#A0D911', } var ws = Object.assign(Object.assign({}, jd), { colorPrimary: '#1677ff', colorSuccess: '#52c41a', colorWarning: '#faad14', colorError: '#ff4d4f', colorInfo: '#1677ff', colorTextBase: '', colorBgBase: '', fontFamily: `-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`, fontFamilyCode: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace", fontSize: 14, lineWidth: 1, lineType: 'solid', motionUnit: 0.1, motionBase: 0, motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)', motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)', motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)', motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)', motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)', motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)', motionEaseInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)', motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)', borderRadius: 6, sizeUnit: 4, sizeStep: 4, sizePopupArrow: 16, controlHeight: 32, zIndexBase: 0, zIndexPopupBase: 1e3, opacityImage: 1, wireframe: !1, }), Ln = (function () { function e(t, n) { t === void 0 && (t = ''), n === void 0 && (n = {}) var a if (t instanceof e) return t typeof t == 'number' && (t = pp(t)), (this.originalInput = t) var l = jr(t) ;(this.originalInput = t), (this.r = l.r), (this.g = l.g), (this.b = l.b), (this.a = l.a), (this.roundA = Math.round(100 * this.a) / 100), (this.format = (a = n.format) !== null && a !== void 0 ? a : l.format), (this.gradientType = n.gradientType), this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), (this.isValid = l.ok) } return ( (e.prototype.isDark = function () { return this.getBrightness() < 128 }), (e.prototype.isLight = function () { return !this.isDark() }), (e.prototype.getBrightness = function () { var t = this.toRgb() return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3 }), (e.prototype.getLuminance = function () { var t = this.toRgb(), n, a, l, f = t.r / 255, g = t.g / 255, h = t.b / 255 return ( f <= 0.03928 ? (n = f / 12.92) : (n = Math.pow((f + 0.055) / 1.055, 2.4)), g <= 0.03928 ? (a = g / 12.92) : (a = Math.pow((g + 0.055) / 1.055, 2.4)), h <= 0.03928 ? (l = h / 12.92) : (l = Math.pow((h + 0.055) / 1.055, 2.4)), 0.2126 * n + 0.7152 * a + 0.0722 * l ) }), (e.prototype.getAlpha = function () { return this.a }), (e.prototype.setAlpha = function (t) { return (this.a = ao(t)), (this.roundA = Math.round(100 * this.a) / 100), this }), (e.prototype.isMonochrome = function () { var t = this.toHsl().s return t === 0 }), (e.prototype.toHsv = function () { var t = Sl(this.r, this.g, this.b) return { h: t.h * 360, s: t.s, v: t.v, a: this.a } }), (e.prototype.toHsvString = function () { var t = Sl(this.r, this.g, this.b), n = Math.round(t.h * 360), a = Math.round(t.s * 100), l = Math.round(t.v * 100) return this.a === 1 ? 'hsv('.concat(n, ', ').concat(a, '%, ').concat(l, '%)') : 'hsva('.concat(n, ', ').concat(a, '%, ').concat(l, '%, ').concat(this.roundA, ')') }), (e.prototype.toHsl = function () { var t = bl(this.r, this.g, this.b) return { h: t.h * 360, s: t.s, l: t.l, a: this.a } }), (e.prototype.toHslString = function () { var t = bl(this.r, this.g, this.b), n = Math.round(t.h * 360), a = Math.round(t.s * 100), l = Math.round(t.l * 100) return this.a === 1 ? 'hsl('.concat(n, ', ').concat(a, '%, ').concat(l, '%)') : 'hsla('.concat(n, ', ').concat(a, '%, ').concat(l, '%, ').concat(this.roundA, ')') }), (e.prototype.toHex = function (t) { return t === void 0 && (t = !1), wl(this.r, this.g, this.b, t) }), (e.prototype.toHexString = function (t) { return t === void 0 && (t = !1), '#' + this.toHex(t) }), (e.prototype.toHex8 = function (t) { return t === void 0 && (t = !1), Dd(this.r, this.g, this.b, this.a, t) }), (e.prototype.toHex8String = function (t) { return t === void 0 && (t = !1), '#' + this.toHex8(t) }), (e.prototype.toHexShortString = function (t) { return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t) }), (e.prototype.toRgb = function () { return { r: Math.round(this.r), g: Math.round(this.g), b: Math.round(this.b), a: this.a } }), (e.prototype.toRgbString = function () { var t = Math.round(this.r), n = Math.round(this.g), a = Math.round(this.b) return this.a === 1 ? 'rgb('.concat(t, ', ').concat(n, ', ').concat(a, ')') : 'rgba('.concat(t, ', ').concat(n, ', ').concat(a, ', ').concat(this.roundA, ')') }), (e.prototype.toPercentageRgb = function () { var t = function (n) { return ''.concat(Math.round(An(n, 255) * 100), '%') } return { r: t(this.r), g: t(this.g), b: t(this.b), a: this.a } }), (e.prototype.toPercentageRgbString = function () { var t = function (n) { return Math.round(An(n, 255) * 100) } return this.a === 1 ? 'rgb('.concat(t(this.r), '%, ').concat(t(this.g), '%, ').concat(t(this.b), '%)') : 'rgba(' .concat(t(this.r), '%, ') .concat(t(this.g), '%, ') .concat(t(this.b), '%, ') .concat(this.roundA, ')') }), (e.prototype.toName = function () { if (this.a === 0) return 'transparent' if (this.a < 1) return !1 for (var t = '#' + wl(this.r, this.g, this.b, !1), n = 0, a = Object.entries(si); n < a.length; n++) { var l = a[n], f = l[0], g = l[1] if (t === g) return f } return !1 }), (e.prototype.toString = function (t) { var n = Boolean(t) t = t != null ? t : this.format var a = !1, l = this.a < 1 && this.a >= 0, f = !n && l && (t.startsWith('hex') || t === 'name') return f ? t === 'name' && this.a === 0 ? this.toName() : this.toRgbString() : (t === 'rgb' && (a = this.toRgbString()), t === 'prgb' && (a = this.toPercentageRgbString()), (t === 'hex' || t === 'hex6') && (a = this.toHexString()), t === 'hex3' && (a = this.toHexString(!0)), t === 'hex4' && (a = this.toHex8String(!0)), t === 'hex8' && (a = this.toHex8String()), t === 'name' && (a = this.toName()), t === 'hsl' && (a = this.toHslString()), t === 'hsv' && (a = this.toHsvString()), a || this.toHexString()) }), (e.prototype.toNumber = function () { return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b) }), (e.prototype.clone = function () { return new e(this.toString()) }), (e.prototype.lighten = function (t) { t === void 0 && (t = 10) var n = this.toHsl() return (n.l += t / 100), (n.l = yl(n.l)), new e(n) }), (e.prototype.brighten = function (t) { t === void 0 && (t = 10) var n = this.toRgb() return ( (n.r = Math.max(0, Math.min(255, n.r - Math.round(255 * -(t / 100))))), (n.g = Math.max(0, Math.min(255, n.g - Math.round(255 * -(t / 100))))), (n.b = Math.max(0, Math.min(255, n.b - Math.round(255 * -(t / 100))))), new e(n) ) }), (e.prototype.darken = function (t) { t === void 0 && (t = 10) var n = this.toHsl() return (n.l -= t / 100), (n.l = yl(n.l)), new e(n) }), (e.prototype.tint = function (t) { return t === void 0 && (t = 10), this.mix('white', t) }), (e.prototype.shade = function (t) { return t === void 0 && (t = 10), this.mix('black', t) }), (e.prototype.desaturate = function (t) { t === void 0 && (t = 10) var n = this.toHsl() return (n.s -= t / 100), (n.s = yl(n.s)), new e(n) }), (e.prototype.saturate = function (t) { t === void 0 && (t = 10) var n = this.toHsl() return (n.s += t / 100), (n.s = yl(n.s)), new e(n) }), (e.prototype.greyscale = function () { return this.desaturate(100) }), (e.prototype.spin = function (t) { var n = this.toHsl(), a = (n.h + t) % 360 return (n.h = a < 0 ? 360 + a : a), new e(n) }), (e.prototype.mix = function (t, n) { n === void 0 && (n = 50) var a = this.toRgb(), l = new e(t).toRgb(), f = n / 100, g = { r: (l.r - a.r) * f + a.r, g: (l.g - a.g) * f + a.g, b: (l.b - a.b) * f + a.b, a: (l.a - a.a) * f + a.a, } return new e(g) }), (e.prototype.analogous = function (t, n) { t === void 0 && (t = 6), n === void 0 && (n = 30) var a = this.toHsl(), l = 360 / n, f = [this] for (a.h = (a.h - ((l * t) >> 1) + 720) % 360; --t; ) (a.h = (a.h + l) % 360), f.push(new e(a)) return f }), (e.prototype.complement = function () { var t = this.toHsl() return (t.h = (t.h + 180) % 360), new e(t) }), (e.prototype.monochromatic = function (t) { t === void 0 && (t = 6) for (var n = this.toHsv(), a = n.h, l = n.s, f = n.v, g = [], h = 1 / t; t--; ) g.push(new e({ h: a, s: l, v: f })), (f = (f + h) % 1) return g }), (e.prototype.splitcomplement = function () { var t = this.toHsl(), n = t.h return [this, new e({ h: (n + 72) % 360, s: t.s, l: t.l }), new e({ h: (n + 216) % 360, s: t.s, l: t.l })] }), (e.prototype.onBackground = function (t) { var n = this.toRgb(), a = new e(t).toRgb(), l = n.a + a.a * (1 - n.a) return new e({ r: (n.r * n.a + a.r * a.a * (1 - n.a)) / l, g: (n.g * n.a + a.g * a.a * (1 - n.a)) / l, b: (n.b * n.a + a.b * a.a * (1 - n.a)) / l, a: l, }) }), (e.prototype.triad = function () { return this.polyad(3) }), (e.prototype.tetrad = function () { return this.polyad(4) }), (e.prototype.polyad = function (t) { for (var n = this.toHsl(), a = n.h, l = [this], f = 360 / t, g = 1; g < t; g++) l.push(new e({ h: (a + g * f) % 360, s: n.s, l: n.l })) return l }), (e.prototype.equals = function (t) { return this.toRgbString() === new e(t).toRgbString() }), e ) })() function xp(e, t) { return e === void 0 && (e = ''), t === void 0 && (t = {}), new Ln(e, t) } function li(e, t) { let { generateColorPalettes: n, generateNeutralColorPalettes: a } = t const { colorSuccess: l, colorWarning: f, colorError: g, colorInfo: h, colorPrimary: _, colorBgBase: b, colorTextBase: S, } = e, x = n(_), k = n(l), D = n(f), M = n(g), P = n(h), R = a(b, S) return Object.assign(Object.assign({}, R), { colorPrimaryBg: x[1], colorPrimaryBgHover: x[2], colorPrimaryBorder: x[3], colorPrimaryBorderHover: x[4], colorPrimaryHover: x[5], colorPrimary: x[6], colorPrimaryActive: x[7], colorPrimaryTextHover: x[8], colorPrimaryText: x[9], colorPrimaryTextActive: x[10], colorSuccessBg: k[1], colorSuccessBgHover: k[2], colorSuccessBorder: k[3], colorSuccessBorderHover: k[4], colorSuccessHover: k[4], colorSuccess: k[6], colorSuccessActive: k[7], colorSuccessTextHover: k[8], colorSuccessText: k[9], colorSuccessTextActive: k[10], colorErrorBg: M[1], colorErrorBgHover: M[2], colorErrorBorder: M[3], colorErrorBorderHover: M[4], colorErrorHover: M[5], colorError: M[6], colorErrorActive: M[7], colorErrorTextHover: M[8], colorErrorText: M[9], colorErrorTextActive: M[10], colorWarningBg: D[1], colorWarningBgHover: D[2], colorWarningBorder: D[3], colorWarningBorderHover: D[4], colorWarningHover: D[4], colorWarning: D[6], colorWarningActive: D[7], colorWarningTextHover: D[8], colorWarningText: D[9], colorWarningTextActive: D[10], colorInfoBg: P[1], colorInfoBgHover: P[2], colorInfoBorder: P[3], colorInfoBorderHover: P[4], colorInfoHover: P[4], colorInfo: P[6], colorInfoActive: P[7], colorInfoTextHover: P[8], colorInfoText: P[9], colorInfoTextActive: P[10], colorBgMask: new Ln('#000').setAlpha(0.45).toRgbString(), colorWhite: '#fff', }) } var Pl = (e) => { let t = e, n = e, a = e, l = e return ( e < 6 && e >= 5 ? (t = e + 1) : e < 16 && e >= 6 ? (t = e + 2) : e >= 16 && (t = 16), e < 7 && e >= 5 ? (n = 4) : e < 8 && e >= 7 ? (n = 5) : e < 14 && e >= 8 ? (n = 6) : e < 16 && e >= 14 ? (n = 7) : e >= 16 && (n = 8), e < 6 && e >= 2 ? (a = 1) : e >= 6 && (a = 2), e > 4 && e < 8 ? (l = 4) : e >= 8 && (l = 6), { borderRadius: e > 16 ? 16 : e, borderRadiusXS: a, borderRadiusSM: n, borderRadiusLG: t, borderRadiusOuter: l } ) } function zd(e) { const { motionUnit: t, motionBase: n, borderRadius: a, lineWidth: l } = e return Object.assign( { motionDurationFast: `${(n + t).toFixed(1)}s`, motionDurationMid: `${(n + t * 2).toFixed(1)}s`, motionDurationSlow: `${(n + t * 3).toFixed(1)}s`, lineWidthBold: l + 1, }, Pl(a) ) } const ui = (e, t) => new Ln(e).setAlpha(t).toRgbString(), xs = (e, t) => new Ln(e).darken(t).toHexString(), Cp = (e) => { const t = jn(e) return { 1: t[0], 2: t[1], 3: t[2], 4: t[3], 5: t[4], 6: t[5], 7: t[6], 8: t[4], 9: t[5], 10: t[6] } }, Ep = (e, t) => { const n = e || '#fff', a = t || '#000' return { colorBgBase: n, colorTextBase: a, colorText: ui(a, 0.88), colorTextSecondary: ui(a, 0.65), colorTextTertiary: ui(a, 0.45), colorTextQuaternary: ui(a, 0.25), colorFill: ui(a, 0.15), colorFillSecondary: ui(a, 0.06), colorFillTertiary: ui(a, 0.04), colorFillQuaternary: ui(a, 0.02), colorBgLayout: xs(n, 4), colorBgContainer: xs(n, 0), colorBgElevated: xs(n, 0), colorBgSpotlight: ui(a, 0.85), colorBorder: xs(n, 15), colorBorderSecondary: xs(n, 6), } } function kp(e) { const t = new Array(10).fill(null).map((n, a) => { const l = a - 1, f = e * Math.pow(2.71828, l / 5), g = a > 1 ? Math.floor(f) : Math.ceil(f) return Math.floor(g / 2) * 2 }) return ( (t[1] = e), t.map((n) => { const a = n + 8 return { size: n, lineHeight: a / n } }) ) } var Ld = (e) => { const t = kp(e), n = t.map((l) => l.size), a = t.map((l) => l.lineHeight) return { fontSizeSM: n[0], fontSize: n[1], fontSizeLG: n[2], fontSizeXL: n[3], fontSizeHeading1: n[6], fontSizeHeading2: n[5], fontSizeHeading3: n[4], fontSizeHeading4: n[3], fontSizeHeading5: n[2], lineHeight: a[1], lineHeightLG: a[2], lineHeightSM: a[0], lineHeightHeading1: a[6], lineHeightHeading2: a[5], lineHeightHeading3: a[4], lineHeightHeading4: a[3], lineHeightHeading5: a[2], } } function Il(e) { const t = Object.keys(jd) .map((n) => { const a = jn(e[n]) return new Array(10) .fill(1) .reduce((l, f, g) => ((l[`${n}-${g + 1}`] = a[g]), (l[`${n}${g + 1}`] = a[g]), l), {}) }) .reduce((n, a) => ((n = Object.assign(Object.assign({}, n), a)), n), {}) return Object.assign( Object.assign( Object.assign( Object.assign( Object.assign( Object.assign(Object.assign({}, e), t), li(e, { generateColorPalettes: Cp, generateNeutralColorPalettes: Ep }) ), Ld(e.fontSize) ), Dl(e) ), Ss(e) ), zd(e) ) } function qc(e) { return e >= 0 && e <= 255 } function Rl(e, t) { const { r: n, g: a, b: l, a: f } = new Ln(e).toRgb() if (f < 1) return e const { r: g, g: h, b: _ } = new Ln(t).toRgb() for (let b = 0.01; b <= 1; b += 0.01) { const S = Math.round((n - g * (1 - b)) / b), x = Math.round((a - h * (1 - b)) / b), k = Math.round((l - _ * (1 - b)) / b) if (qc(S) && qc(x) && qc(k)) return new Ln({ r: S, g: x, b: k, a: Math.round(b * 100) / 100 }).toRgbString() } return new Ln({ r: n, g: a, b: l, a: 1 }).toRgbString() } var Ml = Rl, Qc = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } function Jc(e) { const { override: t } = e, n = Qc(e, ['override']), a = Object.assign({}, t) Object.keys(ws).forEach((k) => { delete a[k] }) const l = Object.assign(Object.assign({}, n), a), f = 480, g = 576, h = 768, _ = 992, b = 1200, S = 1600 return Object.assign( Object.assign(Object.assign({}, l), { colorLink: l.colorInfoText, colorLinkHover: l.colorInfoHover, colorLinkActive: l.colorInfoActive, colorFillContent: l.colorFillSecondary, colorFillContentHover: l.colorFill, colorFillAlter: l.colorFillQuaternary, colorBgContainerDisabled: l.colorFillTertiary, colorBorderBg: l.colorBgContainer, colorSplit: Ml(l.colorBorderSecondary, l.colorBgContainer), colorTextPlaceholder: l.colorTextQuaternary, colorTextDisabled: l.colorTextQuaternary, colorTextHeading: l.colorText, colorTextLabel: l.colorTextSecondary, colorTextDescription: l.colorTextTertiary, colorTextLightSolid: l.colorWhite, colorHighlight: l.colorError, colorBgTextHover: l.colorFillSecondary, colorBgTextActive: l.colorFill, colorIcon: l.colorTextTertiary, colorIconHover: l.colorText, colorErrorOutline: Ml(l.colorErrorBg, l.colorBgContainer), colorWarningOutline: Ml(l.colorWarningBg, l.colorBgContainer), fontSizeIcon: l.fontSizeSM, lineWidthFocus: l.lineWidth * 4, lineWidth: l.lineWidth, controlOutlineWidth: l.lineWidth * 2, controlInteractiveSize: l.controlHeight / 2, controlItemBgHover: l.colorFillTertiary, controlItemBgActive: l.colorPrimaryBg, controlItemBgActiveHover: l.colorPrimaryBgHover, controlItemBgActiveDisabled: l.colorFill, controlTmpOutline: l.colorFillQuaternary, controlOutline: Ml(l.colorPrimaryBg, l.colorBgContainer), lineType: l.lineType, borderRadius: l.borderRadius, borderRadiusXS: l.borderRadiusXS, borderRadiusSM: l.borderRadiusSM, borderRadiusLG: l.borderRadiusLG, fontWeightStrong: 600, opacityLoading: 0.65, linkDecoration: 'none', linkHoverDecoration: 'none', linkFocusDecoration: 'none', controlPaddingHorizontal: 12, controlPaddingHorizontalSM: 8, paddingXXS: l.sizeXXS, paddingXS: l.sizeXS, paddingSM: l.sizeSM, padding: l.size, paddingMD: l.sizeMD, paddingLG: l.sizeLG, paddingXL: l.sizeXL, paddingContentHorizontalLG: l.sizeLG, paddingContentVerticalLG: l.sizeMS, paddingContentHorizontal: l.sizeMS, paddingContentVertical: l.sizeSM, paddingContentHorizontalSM: l.size, paddingContentVerticalSM: l.sizeXS, marginXXS: l.sizeXXS, marginXS: l.sizeXS, marginSM: l.sizeSM, margin: l.size, marginMD: l.sizeMD, marginLG: l.sizeLG, marginXL: l.sizeXL, marginXXL: l.sizeXXL, boxShadow: ` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `, boxShadowSecondary: ` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `, boxShadowTertiary: ` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `, screenXS: f, screenXSMin: f, screenXSMax: g - 1, screenSM: g, screenSMMin: g, screenSMMax: h - 1, screenMD: h, screenMDMin: h, screenMDMax: _ - 1, screenLG: _, screenLGMin: _, screenLGMax: b - 1, screenXL: b, screenXLMin: b, screenXLMax: S - 1, screenXXL: S, screenXXLMin: S, boxShadowPopoverArrow: '2px 2px 5px rgba(0, 0, 0, 0.05)', boxShadowCard: ` 0 1px 2px -2px ${new Ln('rgba(0, 0, 0, 0.16)').toRgbString()}, 0 3px 6px 0 ${new Ln('rgba(0, 0, 0, 0.12)').toRgbString()}, 0 5px 12px 4px ${new Ln('rgba(0, 0, 0, 0.09)').toRgbString()} `, boxShadowDrawerRight: ` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `, boxShadowDrawerLeft: ` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `, boxShadowDrawerUp: ` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `, boxShadowDrawerDown: ` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `, boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)', boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)', boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)', boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)', }), a ) } const Op = _l(Il), Cs = { token: ws, hashed: !0 }, Fd = m.createContext(Cs) function Es() { const { token: e, hashed: t, theme: n, components: a } = m.useContext(Fd), l = `${Od}-${t || ''}`, f = n || Op, [g, h] = Ui(f, [ws, e], { salt: l, override: Object.assign({ override: e }, a), formatToken: Jc }) return [f, g, t ? h : ''] } const Vi = (e, t) => new Ln(e).setAlpha(t).toRgbString(), co = (e, t) => new Ln(e).lighten(t).toHexString(), $d = (e) => { const t = jn(e, { theme: 'dark' }) return { 1: t[0], 2: t[1], 3: t[2], 4: t[3], 5: t[6], 6: t[5], 7: t[4], 8: t[6], 9: t[5], 10: t[4] } }, Tp = (e, t) => { const n = e || '#000', a = t || '#fff' return { colorBgBase: n, colorTextBase: a, colorText: Vi(a, 0.85), colorTextSecondary: Vi(a, 0.65), colorTextTertiary: Vi(a, 0.45), colorTextQuaternary: Vi(a, 0.25), colorFill: Vi(a, 0.18), colorFillSecondary: Vi(a, 0.12), colorFillTertiary: Vi(a, 0.08), colorFillQuaternary: Vi(a, 0.04), colorBgElevated: co(n, 12), colorBgContainer: co(n, 8), colorBgLayout: co(n, 0), colorBgSpotlight: co(n, 26), colorBorder: co(n, 26), colorBorderSecondary: co(n, 19), } } var Dp = (e, t) => { const n = Object.keys(jd) .map((l) => { const f = jn(e[l], { theme: 'dark' }) return new Array(10) .fill(1) .reduce((g, h, _) => ((g[`${l}-${_ + 1}`] = f[_]), (g[`${l}${_ + 1}`] = f[_]), g), {}) }) .reduce((l, f) => ((l = Object.assign(Object.assign({}, l), f)), l), {}), a = t != null ? t : Il(e) return Object.assign( Object.assign(Object.assign({}, a), n), li(e, { generateColorPalettes: $d, generateNeutralColorPalettes: Tp }) ) } function Um(e) { const { sizeUnit: t, sizeStep: n } = e, a = n - 2 return { sizeXXL: t * (a + 10), sizeXL: t * (a + 6), sizeLG: t * (a + 2), sizeMD: t * (a + 2), sizeMS: t * (a + 1), size: t * a, sizeSM: t * a, sizeXS: t * (a - 1), sizeXXS: t * (a - 1), } } var Vm = (e, t) => { const n = t != null ? t : Il(e), a = n.fontSizeSM, l = n.controlHeight - 4 return Object.assign( Object.assign(Object.assign(Object.assign(Object.assign({}, n), Um(t != null ? t : e)), Ld(a)), { controlHeight: l, }), Ss(Object.assign(Object.assign({}, n), { controlHeight: l })) ) } function Gm() { const [e, t, n] = Es() return { theme: e, token: t, hashId: n } } var Al = { defaultConfig: Cs, defaultSeed: Cs.token, useToken: Gm, defaultAlgorithm: Il, darkAlgorithm: Dp, compactAlgorithm: Vm, }, Zc = function () { var t = Al.useToken(), n = t.token return n } function Hd(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e) t && (a = a.filter(function (l) { return Object.getOwnPropertyDescriptor(e, l).enumerable })), n.push.apply(n, a) } return n } function Nl(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {} t % 2 ? Hd(Object(n), !0).forEach(function (a) { O(e, a, n[a]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Hd(Object(n)).forEach(function (a) { Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a)) }) } return e } var Pp = function (t) { return Nl(Nl({}, t), {}, { mobile: t.xs, tablet: t.md, laptop: t.lg, desktop: t.xxl }) }, Xm = function () { var t = Zc(), n = { xs: '@media (max-width: '.concat(t.screenXSMax, 'px)'), sm: '@media (max-width: '.concat(t.screenSMMax, 'px)'), md: '@media (max-width: '.concat(t.screenMDMax, 'px)'), lg: '@media (max-width: '.concat(t.screenLGMax, 'px)'), xl: '@media (max-width: '.concat(t.screenXLMax, 'px)'), xxl: '@media (min-width: '.concat(t.screenXXLMin, 'px)'), } return (0, m.useMemo)( function () { return Pp(n) }, [t] ) }, Km = function (t, n) { return Object.entries(t) .map(function (a) { var l = pt(a, 2), f = l[0], g = l[1], h = g return ad(g) || (h = cl(g)), n[f] ? ''.concat(n[f], ' {').concat(h.styles, '}') : '' }) .join('') }, ks = ['stylish', 'appearance', 'isDarkMode', 'prefixCls'], Bd = ['prefixCls'], Ud = function (t) { var n = t.hashPriority, a = t.cache, l = t.useTheme return function (f, g) { var h = Vf(a, (g == null ? void 0 : g.hashPriority) || n), _ = h.cx, b = h.css return function (S) { var x = l(), k = Xm(), D = (0, m.useMemo)( function () { var M if (f instanceof Function) { var P = x.stylish, R = x.appearance, j = x.isDarkMode, L = x.prefixCls, H = Kn(x, ks), U = function (ie) { return Km(ie, k) } Object.assign(U, k), (M = f( { token: H, stylish: P, appearance: R, isDarkMode: j, prefixCls: L, cx: _, css: cl, responsive: U, }, S )) } else M = f return ( ln(M) === 'object' && (ad(M) ? (M = b(M)) : (M = Object.fromEntries( Object.entries(M).map(function (te) { var ie = pt(te, 2), ae = ie[0], de = ie[1] return ln(de) === 'object' ? [ae, b(de)] : [ae, de] }) ))), M ) }, [S, x] ) return (0, m.useMemo)( function () { var M = x.prefixCls, P = Kn(x, Bd) return { styles: D, cx: _, theme: P, prefixCls: M } }, [D, x] ) } } } function zr() { 'use strict' zr = function () { return e } var e = {}, t = Object.prototype, n = t.hasOwnProperty, a = Object.defineProperty || function (se, oe, fe) { se[oe] = fe.value }, l = typeof Symbol == 'function' ? Symbol : {}, f = l.iterator || '@@iterator', g = l.asyncIterator || '@@asyncIterator', h = l.toStringTag || '@@toStringTag' function _(se, oe, fe) { return Object.defineProperty(se, oe, { value: fe, enumerable: !0, configurable: !0, writable: !0 }), se[oe] } try { _({}, '') } catch (se) { _ = function (fe, Oe, Ve) { return (fe[Oe] = Ve) } } function b(se, oe, fe, Oe) { var Ve = oe && oe.prototype instanceof k ? oe : k, Qe = Object.create(Ve.prototype), ft = new ye(Oe || []) return a(Qe, '_invoke', { value: te(se, fe, ft) }), Qe } function S(se, oe, fe) { try { return { type: 'normal', arg: se.call(oe, fe) } } catch (Oe) { return { type: 'throw', arg: Oe } } } e.wrap = b var x = {} function k() {} function D() {} function M() {} var P = {} _(P, f, function () { return this }) var R = Object.getPrototypeOf, j = R && R(R(me([]))) j && j !== t && n.call(j, f) && (P = j) var L = (M.prototype = k.prototype = Object.create(P)) function H(se) { ;['next', 'throw', 'return'].forEach(function (oe) { _(se, oe, function (fe) { return this._invoke(oe, fe) }) }) } function U(se, oe) { function fe(Ve, Qe, ft, Ot) { var Nt = S(se[Ve], se, Qe) if (Nt.type !== 'throw') { var Ct = Nt.arg, Ge = Ct.value return Ge && ln(Ge) == 'object' && n.call(Ge, '__await') ? oe.resolve(Ge.__await).then( function (Xe) { fe('next', Xe, ft, Ot) }, function (Xe) { fe('throw', Xe, ft, Ot) } ) : oe.resolve(Ge).then( function (Xe) { ;(Ct.value = Xe), ft(Ct) }, function (Xe) { return fe('throw', Xe, ft, Ot) } ) } Ot(Nt.arg) } var Oe a(this, '_invoke', { value: function (Qe, ft) { function Ot() { return new oe(function (Nt, Ct) { fe(Qe, ft, Nt, Ct) }) } return (Oe = Oe ? Oe.then(Ot, Ot) : Ot()) }, }) } function te(se, oe, fe) { var Oe = 'suspendedStart' return function (Ve, Qe) { if (Oe === 'executing') throw new Error('Generator is already running') if (Oe === 'completed') { if (Ve === 'throw') throw Qe return De() } for (fe.method = Ve, fe.arg = Qe; ; ) { var ft = fe.delegate if (ft) { var Ot = ie(ft, fe) if (Ot) { if (Ot === x) continue return Ot } } if (fe.method === 'next') fe.sent = fe._sent = fe.arg else if (fe.method === 'throw') { if (Oe === 'suspendedStart') throw ((Oe = 'completed'), fe.arg) fe.dispatchException(fe.arg) } else fe.method === 'return' && fe.abrupt('return', fe.arg) Oe = 'executing' var Nt = S(se, oe, fe) if (Nt.type === 'normal') { if (((Oe = fe.done ? 'completed' : 'suspendedYield'), Nt.arg === x)) continue return { value: Nt.arg, done: fe.done } } Nt.type === 'throw' && ((Oe = 'completed'), (fe.method = 'throw'), (fe.arg = Nt.arg)) } } } function ie(se, oe) { var fe = oe.method, Oe = se.iterator[fe] if (Oe === void 0) return ( (oe.delegate = null), (fe === 'throw' && se.iterator.return && ((oe.method = 'return'), (oe.arg = void 0), ie(se, oe), oe.method === 'throw')) || (fe !== 'return' && ((oe.method = 'throw'), (oe.arg = new TypeError("The iterator does not provide a '" + fe + "' method")))), x ) var Ve = S(Oe, se.iterator, oe.arg) if (Ve.type === 'throw') return (oe.method = 'throw'), (oe.arg = Ve.arg), (oe.delegate = null), x var Qe = Ve.arg return Qe ? Qe.done ? ((oe[se.resultName] = Qe.value), (oe.next = se.nextLoc), oe.method !== 'return' && ((oe.method = 'next'), (oe.arg = void 0)), (oe.delegate = null), x) : Qe : ((oe.method = 'throw'), (oe.arg = new TypeError('iterator result is not an object')), (oe.delegate = null), x) } function ae(se) { var oe = { tryLoc: se[0] } 1 in se && (oe.catchLoc = se[1]), 2 in se && ((oe.finallyLoc = se[2]), (oe.afterLoc = se[3])), this.tryEntries.push(oe) } function de(se) { var oe = se.completion || {} ;(oe.type = 'normal'), delete oe.arg, (se.completion = oe) } function ye(se) { ;(this.tryEntries = [{ tryLoc: 'root' }]), se.forEach(ae, this), this.reset(!0) } function me(se) { if (se) { var oe = se[f] if (oe) return oe.call(se) if (typeof se.next == 'function') return se if (!isNaN(se.length)) { var fe = -1, Oe = function Ve() { for (; ++fe < se.length; ) if (n.call(se, fe)) return (Ve.value = se[fe]), (Ve.done = !1), Ve return (Ve.value = void 0), (Ve.done = !0), Ve } return (Oe.next = Oe) } } return { next: De } } function De() { return { value: void 0, done: !0 } } return ( (D.prototype = M), a(L, 'constructor', { value: M, configurable: !0 }), a(M, 'constructor', { value: D, configurable: !0 }), (D.displayName = _(M, h, 'GeneratorFunction')), (e.isGeneratorFunction = function (se) { var oe = typeof se == 'function' && se.constructor return !!oe && (oe === D || (oe.displayName || oe.name) === 'GeneratorFunction') }), (e.mark = function (se) { return ( Object.setPrototypeOf ? Object.setPrototypeOf(se, M) : ((se.__proto__ = M), _(se, h, 'GeneratorFunction')), (se.prototype = Object.create(L)), se ) }), (e.awrap = function (se) { return { __await: se } }), H(U.prototype), _(U.prototype, g, function () { return this }), (e.AsyncIterator = U), (e.async = function (se, oe, fe, Oe, Ve) { Ve === void 0 && (Ve = Promise) var Qe = new U(b(se, oe, fe, Oe), Ve) return e.isGeneratorFunction(oe) ? Qe : Qe.next().then(function (ft) { return ft.done ? ft.value : Qe.next() }) }), H(L), _(L, h, 'Generator'), _(L, f, function () { return this }), _(L, 'toString', function () { return '[object Generator]' }), (e.keys = function (se) { var oe = Object(se), fe = [] for (var Oe in oe) fe.push(Oe) return ( fe.reverse(), function Ve() { for (; fe.length; ) { var Qe = fe.pop() if (Qe in oe) return (Ve.value = Qe), (Ve.done = !1), Ve } return (Ve.done = !0), Ve } ) }), (e.values = me), (ye.prototype = { constructor: ye, reset: function (oe) { if ( ((this.prev = 0), (this.next = 0), (this.sent = this._sent = void 0), (this.done = !1), (this.delegate = null), (this.method = 'next'), (this.arg = void 0), this.tryEntries.forEach(de), !oe) ) for (var fe in this) fe.charAt(0) === 't' && n.call(this, fe) && !isNaN(+fe.slice(1)) && (this[fe] = void 0) }, stop: function () { this.done = !0 var oe = this.tryEntries[0].completion if (oe.type === 'throw') throw oe.arg return this.rval }, dispatchException: function (oe) { if (this.done) throw oe var fe = this function Oe(Ct, Ge) { return ( (ft.type = 'throw'), (ft.arg = oe), (fe.next = Ct), Ge && ((fe.method = 'next'), (fe.arg = void 0)), !!Ge ) } for (var Ve = this.tryEntries.length - 1; Ve >= 0; --Ve) { var Qe = this.tryEntries[Ve], ft = Qe.completion if (Qe.tryLoc === 'root') return Oe('end') if (Qe.tryLoc <= this.prev) { var Ot = n.call(Qe, 'catchLoc'), Nt = n.call(Qe, 'finallyLoc') if (Ot && Nt) { if (this.prev < Qe.catchLoc) return Oe(Qe.catchLoc, !0) if (this.prev < Qe.finallyLoc) return Oe(Qe.finallyLoc) } else if (Ot) { if (this.prev < Qe.catchLoc) return Oe(Qe.catchLoc, !0) } else { if (!Nt) throw new Error('try statement without catch or finally') if (this.prev < Qe.finallyLoc) return Oe(Qe.finallyLoc) } } } }, abrupt: function (oe, fe) { for (var Oe = this.tryEntries.length - 1; Oe >= 0; --Oe) { var Ve = this.tryEntries[Oe] if (Ve.tryLoc <= this.prev && n.call(Ve, 'finallyLoc') && this.prev < Ve.finallyLoc) { var Qe = Ve break } } Qe && (oe === 'break' || oe === 'continue') && Qe.tryLoc <= fe && fe <= Qe.finallyLoc && (Qe = null) var ft = Qe ? Qe.completion : {} return ( (ft.type = oe), (ft.arg = fe), Qe ? ((this.method = 'next'), (this.next = Qe.finallyLoc), x) : this.complete(ft) ) }, complete: function (oe, fe) { if (oe.type === 'throw') throw oe.arg return ( oe.type === 'break' || oe.type === 'continue' ? (this.next = oe.arg) : oe.type === 'return' ? ((this.rval = this.arg = oe.arg), (this.method = 'return'), (this.next = 'end')) : oe.type === 'normal' && fe && (this.next = fe), x ) }, finish: function (oe) { for (var fe = this.tryEntries.length - 1; fe >= 0; --fe) { var Oe = this.tryEntries[fe] if (Oe.finallyLoc === oe) return this.complete(Oe.completion, Oe.afterLoc), de(Oe), x } }, catch: function (oe) { for (var fe = this.tryEntries.length - 1; fe >= 0; --fe) { var Oe = this.tryEntries[fe] if (Oe.tryLoc === oe) { var Ve = Oe.completion if (Ve.type === 'throw') { var Qe = Ve.arg de(Oe) } return Qe } } throw new Error('illegal catch attempt') }, delegateYield: function (oe, fe, Oe) { return ( (this.delegate = { iterator: me(oe), resultName: fe, nextLoc: Oe }), this.method === 'next' && (this.arg = void 0), x ) }, }), e ) } function Wd(e, t, n, a, l, f, g) { try { var h = e[f](g), _ = h.value } catch (b) { n(b) return } h.done ? t(_) : Promise.resolve(_).then(a, l) } function uo(e) { return function () { var t = this, n = arguments return new Promise(function (a, l) { var f = e.apply(t, n) function g(_) { Wd(f, a, l, g, h, 'next', _) } function h(_) { Wd(f, a, l, g, h, 'throw', _) } g(void 0) }) } } var Os = dt(3935), Ip = dt.t(Os, 2), Ts = ze({}, Ip), Ym = Ts.version, wr = Ts.render, mr = Ts.unmountComponentAtNode, jl try { var Rp = Number((Ym || '').split('.')[0]) Rp >= 18 && (jl = Ts.createRoot) } catch (e) {} function Vd(e) { var t = Ts.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED t && ln(t) === 'object' && (t.usingClientEntryPoint = e) } var zl = '__rc_react_root__' function Mp(e, t) { Vd(!0) var n = t[zl] || jl(t) Vd(!1), n.render(e), (t[zl] = n) } function Gd(e, t) { wr(e, t) } function qm(e, t) {} function Ds(e, t) { if (jl) { Mp(e, t) return } Gd(e, t) } function Ap(e) { return eu.apply(this, arguments) } function eu() { return ( (eu = uo( zr().mark(function e(t) { return zr().wrap(function (a) { for (;;) switch ((a.prev = a.next)) { case 0: return a.abrupt( 'return', Promise.resolve().then(function () { var l ;(l = t[zl]) === null || l === void 0 || l.unmount(), delete t[zl] }) ) case 1: case 'end': return a.stop() } }, e) }) )), eu.apply(this, arguments) ) } function Xd(e) { mr(e) } function Np(e) {} function Kd(e) { return Ll.apply(this, arguments) } function Ll() { return ( (Ll = uo( zr().mark(function e(t) { return zr().wrap(function (a) { for (;;) switch ((a.prev = a.next)) { case 0: if (jl === void 0) { a.next = 2 break } return a.abrupt('return', Ap(t)) case 2: Xd(t) case 3: case 'end': return a.stop() } }, e) }) )), Ll.apply(this, arguments) ) } var tu = (0, m.createContext)({}), Yd = tu function Ps(e) { if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called") return e } function wa(e, t) { return ( (wa = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (a, l) { return (a.__proto__ = l), a }), wa(e, t) ) } function Fl(e, t) { if (typeof t != 'function' && t !== null) 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 } })), Object.defineProperty(e, 'prototype', { writable: !1 }), t && wa(e, t) } function xa(e) { return ( (xa = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (n) { return n.__proto__ || Object.getPrototypeOf(n) }), xa(e) ) } function Pi() { if (typeof Reflect == 'undefined' || !Reflect.construct || Reflect.construct.sham) return !1 if (typeof Proxy == 'function') return !0 try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0 } catch (e) { return !1 } } function Qm(e, t) { if (t && (ln(t) === 'object' || typeof t == 'function')) return t if (t !== void 0) throw new TypeError('Derived constructors may only return object or undefined') return Ps(e) } function $l(e) { var t = Pi() return function () { var a = xa(e), l if (t) { var f = xa(this).constructor l = Reflect.construct(a, arguments, f) } else l = a.apply(this, arguments) return Qm(this, l) } } var Is = dt(9864) function fo(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = [] return ( m.Children.forEach(e, function (a) { ;(a == null && !t.keepEmpty) || (Array.isArray(a) ? (n = n.concat(fo(a))) : (0, Is.isFragment)(a) && a.props ? (n = n.concat(fo(a.props.children, t))) : n.push(a)) }), n ) } var Ca = 'RC_FORM_INTERNAL_HOOKS', un = function () { cr(!1, 'Can not find FormContext. Please make sure you wrap Field under Form.') }, rr = m.createContext({ getFieldValue: un, getFieldsValue: un, getFieldError: un, getFieldWarning: un, getFieldsError: un, isFieldsTouched: un, isFieldTouched: un, isFieldValidating: un, isFieldsValidating: un, resetFields: un, setFields: un, setFieldValue: un, setFieldsValue: un, validateFields: un, submit: un, getInternalHooks: function () { return ( un(), { dispatch: un, initEntityValue: un, registerField: un, useSubscribe: un, setInitialValues: un, destroyForm: un, setCallbacks: un, registerWatch: un, getFields: un, setValidateMessages: un, setPreserve: un, getInitialValue: un, } ) }, }), Rs = rr function qd(e) { return e == null ? [] : Array.isArray(e) ? e : [e] } function nu(e) { return e && !!e._init } var ir = dt(4155) function po() { return ( (po = Object.assign ? Object.assign.bind() : function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]) } return e }), po.apply(this, arguments) ) } function vt(e, t) { ;(e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), go(e, t) } function Ea(e) { return ( (Ea = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (n) { return n.__proto__ || Object.getPrototypeOf(n) }), Ea(e) ) } function go(e, t) { return ( (go = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (a, l) { return (a.__proto__ = l), a }), go(e, t) ) } function jp() { if (typeof Reflect == 'undefined' || !Reflect.construct || Reflect.construct.sham) return !1 if (typeof Proxy == 'function') return !0 try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})), !0 } catch (e) { return !1 } } function ru(e, t, n) { return ( jp() ? (ru = Reflect.construct.bind()) : (ru = function (l, f, g) { var h = [null] h.push.apply(h, f) var _ = Function.bind.apply(l, h), b = new _() return g && go(b, g.prototype), b }), ru.apply(null, arguments) ) } function Hl(e) { return Function.toString.call(e).indexOf('[native code]') !== -1 } function Ms(e) { var t = typeof Map == 'function' ? new Map() : void 0 return ( (Ms = function (a) { if (a === null || !Hl(a)) return a if (typeof a != 'function') throw new TypeError('Super expression must either be null or a function') if (typeof t != 'undefined') { if (t.has(a)) return t.get(a) t.set(a, l) } function l() { return ru(a, arguments, Ea(this).constructor) } return ( (l.prototype = Object.create(a.prototype, { constructor: { value: l, enumerable: !1, writable: !0, configurable: !0 }, })), go(l, a) ) }), Ms(e) ) } var Qd = /%[sdj%]/g, zp = function () {} function iu(e) { if (!e || !e.length) return null var t = {} return ( e.forEach(function (n) { var a = n.field ;(t[a] = t[a] || []), t[a].push(n) }), t ) } function xr(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a] var l = 0, f = n.length if (typeof e == 'function') return e.apply(null, n) if (typeof e == 'string') { var g = e.replace(Qd, function (h) { if (h === '%%') return '%' if (l >= f) return h switch (h) { case '%s': return String(n[l++]) case '%d': return Number(n[l++]) case '%j': try { return JSON.stringify(n[l++]) } catch (_) { return '[Circular]' } break default: return h } }) return g } return e } function Jd(e) { return e === 'string' || e === 'url' || e === 'hex' || e === 'email' || e === 'date' || e === 'pattern' } function Dn(e, t) { return !!(e == null || (t === 'array' && Array.isArray(e) && !e.length) || (Jd(t) && typeof e == 'string' && !e)) } function Qn(e, t, n) { var a = [], l = 0, f = e.length function g(h) { a.push.apply(a, h || []), l++, l === f && n(a) } e.forEach(function (h) { t(h, g) }) } function Yr(e, t, n) { var a = 0, l = e.length function f(g) { if (g && g.length) { n(g) return } var h = a ;(a = a + 1), h < l ? t(e[h], f) : n([]) } f([]) } function ka(e) { var t = [] return ( Object.keys(e).forEach(function (n) { t.push.apply(t, e[n] || []) }), t ) } var Zd = (function (e) { vt(t, e) function t(n, a) { var l return (l = e.call(this, 'Async Validation Error') || this), (l.errors = n), (l.fields = a), l } return t })(Ms(Error)) function Lp(e, t, n, a, l) { if (t.first) { var f = new Promise(function (k, D) { var M = function (j) { return a(j), j.length ? D(new Zd(j, iu(j))) : k(l) }, P = ka(e) Yr(P, n, M) }) return ( f.catch(function (k) { return k }), f ) } var g = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], h = Object.keys(e), _ = h.length, b = 0, S = [], x = new Promise(function (k, D) { var M = function (R) { if ((S.push.apply(S, R), b++, b === _)) return a(S), S.length ? D(new Zd(S, iu(S))) : k(l) } h.length || (a(S), k(l)), h.forEach(function (P) { var R = e[P] g.indexOf(P) !== -1 ? Yr(R, n, M) : Qn(R, n, M) }) }) return ( x.catch(function (k) { return k }), x ) } function di(e) { return !!(e && e.message !== void 0) } function Fp(e, t) { for (var n = e, a = 0; a < t.length; a++) { if (n == null) return n n = n[t[a]] } return n } function fi(e, t) { return function (n) { var a return ( e.fullFields ? (a = Fp(t, e.fullFields)) : (a = t[n.field || e.fullField]), di(n) ? ((n.field = n.field || e.fullField), (n.fieldValue = a), n) : { message: typeof n == 'function' ? n() : n, fieldValue: a, field: n.field || e.fullField } ) } } function $p(e, t) { if (t) { for (var n in t) if (t.hasOwnProperty(n)) { var a = t[n] typeof a == 'object' && typeof e[n] == 'object' ? (e[n] = po({}, e[n], a)) : (e[n] = a) } } return e } var ef = function (t, n, a, l, f, g) { t.required && (!a.hasOwnProperty(t.field) || Dn(n, g || t.type)) && l.push(xr(f.messages.required, t.fullField)) }, Hp = function (t, n, a, l, f) { ;(/^\s+$/.test(n) || n === '') && l.push(xr(f.messages.whitespace, t.fullField)) }, Bl, Bp = function () { if (Bl) return Bl var e = '[a-fA-F\\d:]', t = function (U) { return U && U.includeBoundaries ? '(?:(?<=\\s|^)(?=' + e + ')|(?<=' + e + ')(?=\\s|$))' : '' }, n = '(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}', a = '[a-fA-F\\d]{1,4}', l = ( ` (?: (?:` + a + ':){7}(?:' + a + `|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 (?:` + a + ':){6}(?:' + n + '|:' + a + `|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 (?:` + a + ':){5}(?::' + n + '|(?::' + a + `){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 (?:` + a + ':){4}(?:(?::' + a + '){0,1}:' + n + '|(?::' + a + `){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 (?:` + a + ':){3}(?:(?::' + a + '){0,2}:' + n + '|(?::' + a + `){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 (?:` + a + ':){2}(?:(?::' + a + '){0,3}:' + n + '|(?::' + a + `){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 (?:` + a + ':){1}(?:(?::' + a + '){0,4}:' + n + '|(?::' + a + `){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 (?::(?:(?::` + a + '){0,5}:' + n + '|(?::' + a + `){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 ` ) .replace(/\s*\/\/.*$/gm, '') .replace(/\n/g, '') .trim(), f = new RegExp('(?:^' + n + '$)|(?:^' + l + '$)'), g = new RegExp('^' + n + '$'), h = new RegExp('^' + l + '$'), _ = function (U) { return U && U.exact ? f : new RegExp('(?:' + t(U) + n + t(U) + ')|(?:' + t(U) + l + t(U) + ')', 'g') } ;(_.v4 = function (H) { return H && H.exact ? g : new RegExp('' + t(H) + n + t(H), 'g') }), (_.v6 = function (H) { return H && H.exact ? h : new RegExp('' + t(H) + l + t(H), 'g') }) var b = '(?:(?:[a-z]+:)?//)', S = '(?:\\S+(?::\\S*)?@)?', x = _.v4().source, k = _.v6().source, D = '(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)', M = '(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*', P = '(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))', R = '(?::\\d{2,5})?', j = '(?:[/?#][^\\s"]*)?', L = '(?:' + b + '|www\\.)' + S + '(?:localhost|' + x + '|' + k + '|' + D + M + P + ')' + R + j return (Bl = new RegExp('(?:^' + L + '$)', 'i')), Bl }, Up = { email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/, hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i, }, Oa = { integer: function (t) { return Oa.number(t) && parseInt(t, 10) === t }, float: function (t) { return Oa.number(t) && !Oa.integer(t) }, array: function (t) { return Array.isArray(t) }, regexp: function (t) { if (t instanceof RegExp) return !0 try { return !!new RegExp(t) } catch (n) { return !1 } }, date: function (t) { return ( typeof t.getTime == 'function' && typeof t.getMonth == 'function' && typeof t.getYear == 'function' && !isNaN(t.getTime()) ) }, number: function (t) { return isNaN(t) ? !1 : typeof t == 'number' }, object: function (t) { return typeof t == 'object' && !Oa.array(t) }, method: function (t) { return typeof t == 'function' }, email: function (t) { return typeof t == 'string' && t.length <= 320 && !!t.match(Up.email) }, url: function (t) { return typeof t == 'string' && t.length <= 2048 && !!t.match(Bp()) }, hex: function (t) { return typeof t == 'string' && !!t.match(Up.hex) }, }, tf = function (t, n, a, l, f) { if (t.required && n === void 0) { ef(t, n, a, l, f) return } var g = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'], h = t.type g.indexOf(h) > -1 ? Oa[h](n) || l.push(xr(f.messages.types[h], t.fullField, t.type)) : h && typeof n !== t.type && l.push(xr(f.messages.types[h], t.fullField, t.type)) }, qr = function (t, n, a, l, f) { var g = typeof t.len == 'number', h = typeof t.min == 'number', _ = typeof t.max == 'number', b = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, S = n, x = null, k = typeof n == 'number', D = typeof n == 'string', M = Array.isArray(n) if ((k ? (x = 'number') : D ? (x = 'string') : M && (x = 'array'), !x)) return !1 M && (S = n.length), D && (S = n.replace(b, '_').length), g ? S !== t.len && l.push(xr(f.messages[x].len, t.fullField, t.len)) : h && !_ && S < t.min ? l.push(xr(f.messages[x].min, t.fullField, t.min)) : _ && !h && S > t.max ? l.push(xr(f.messages[x].max, t.fullField, t.max)) : h && _ && (S < t.min || S > t.max) && l.push(xr(f.messages[x].range, t.fullField, t.min, t.max)) }, en = 'enum', Fn = function (t, n, a, l, f) { ;(t[en] = Array.isArray(t[en]) ? t[en] : []), t[en].indexOf(n) === -1 && l.push(xr(f.messages[en], t.fullField, t[en].join(', '))) }, Rn = function (t, n, a, l, f) { if (t.pattern) { if (t.pattern instanceof RegExp) (t.pattern.lastIndex = 0), t.pattern.test(n) || l.push(xr(f.messages.pattern.mismatch, t.fullField, n, t.pattern)) else if (typeof t.pattern == 'string') { var g = new RegExp(t.pattern) g.test(n) || l.push(xr(f.messages.pattern.mismatch, t.fullField, n, t.pattern)) } } }, Mt = { required: ef, whitespace: Hp, type: tf, range: qr, enum: Fn, pattern: Rn }, Lr = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n, 'string') && !t.required) return a() Mt.required(t, n, l, g, f, 'string'), Dn(n, 'string') || (Mt.type(t, n, l, g, f), Mt.range(t, n, l, g, f), Mt.pattern(t, n, l, g, f), t.whitespace === !0 && Mt.whitespace(t, n, l, g, f)) } a(g) }, As = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n) && !t.required) return a() Mt.required(t, n, l, g, f), n !== void 0 && Mt.type(t, n, l, g, f) } a(g) }, Nn = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if ((n === '' && (n = void 0), Dn(n) && !t.required)) return a() Mt.required(t, n, l, g, f), n !== void 0 && (Mt.type(t, n, l, g, f), Mt.range(t, n, l, g, f)) } a(g) }, Ul = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n) && !t.required) return a() Mt.required(t, n, l, g, f), n !== void 0 && Mt.type(t, n, l, g, f) } a(g) }, mo = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n) && !t.required) return a() Mt.required(t, n, l, g, f), Dn(n) || Mt.type(t, n, l, g, f) } a(g) }, au = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n) && !t.required) return a() Mt.required(t, n, l, g, f), n !== void 0 && (Mt.type(t, n, l, g, f), Mt.range(t, n, l, g, f)) } a(g) }, nf = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n) && !t.required) return a() Mt.required(t, n, l, g, f), n !== void 0 && (Mt.type(t, n, l, g, f), Mt.range(t, n, l, g, f)) } a(g) }, Wl = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (n == null && !t.required) return a() Mt.required(t, n, l, g, f, 'array'), n != null && (Mt.type(t, n, l, g, f), Mt.range(t, n, l, g, f)) } a(g) }, Cr = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n) && !t.required) return a() Mt.required(t, n, l, g, f), n !== void 0 && Mt.type(t, n, l, g, f) } a(g) }, rf = 'enum', Ns = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n) && !t.required) return a() Mt.required(t, n, l, g, f), n !== void 0 && Mt[rf](t, n, l, g, f) } a(g) }, Gi = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n, 'string') && !t.required) return a() Mt.required(t, n, l, g, f), Dn(n, 'string') || Mt.pattern(t, n, l, g, f) } a(g) }, ou = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n, 'date') && !t.required) return a() if ((Mt.required(t, n, l, g, f), !Dn(n, 'date'))) { var _ n instanceof Date ? (_ = n) : (_ = new Date(n)), Mt.type(t, _, l, g, f), _ && Mt.range(t, _.getTime(), l, g, f) } } a(g) }, af = function (t, n, a, l, f) { var g = [], h = Array.isArray(n) ? 'array' : typeof n Mt.required(t, n, l, g, f, h), a(g) }, Ii = function (t, n, a, l, f) { var g = t.type, h = [], _ = t.required || (!t.required && l.hasOwnProperty(t.field)) if (_) { if (Dn(n, g) && !t.required) return a() Mt.required(t, n, l, h, f, g), Dn(n, g) || Mt.type(t, n, l, h, f) } a(h) }, su = function (t, n, a, l, f) { var g = [], h = t.required || (!t.required && l.hasOwnProperty(t.field)) if (h) { if (Dn(n) && !t.required) return a() Mt.required(t, n, l, g, f) } a(g) }, Qr = { string: Lr, method: As, number: Nn, boolean: Ul, regexp: mo, integer: au, float: nf, array: Wl, object: Cr, enum: Ns, pattern: Gi, date: ou, url: Ii, hex: Ii, email: Ii, required: af, any: su, } function js() { return { default: 'Validation error on field %s', required: '%s is required', enum: '%s must be one of %s', whitespace: '%s cannot be empty', date: { format: '%s date %s is invalid for format %s', parse: '%s date could not be parsed, %s is invalid ', invalid: '%s date %s is invalid', }, types: { string: '%s is not a %s', method: '%s is not a %s (function)', array: '%s is not an %s', object: '%s is not an %s', number: '%s is not a %s', date: '%s is not a %s', boolean: '%s is not a %s', integer: '%s is not an %s', float: '%s is not a %s', regexp: '%s is not a valid %s', email: '%s is not a valid %s', url: '%s is not a valid %s', hex: '%s is not a valid %s', }, string: { len: '%s must be exactly %s characters', min: '%s must be at least %s characters', max: '%s cannot be longer than %s characters', range: '%s must be between %s and %s characters', }, number: { len: '%s must equal %s', min: '%s cannot be less than %s', max: '%s cannot be greater than %s', range: '%s must be between %s and %s', }, array: { len: '%s must be exactly %s in length', min: '%s cannot be less than %s in length', max: '%s cannot be greater than %s in length', range: '%s must be between %s and %s in length', }, pattern: { mismatch: '%s value %s does not match pattern %s' }, clone: function () { var t = JSON.parse(JSON.stringify(this)) return (t.clone = this.clone), t }, } } var ho = js(), vo = (function () { function e(n) { ;(this.rules = null), (this._messages = ho), this.define(n) } var t = e.prototype return ( (t.define = function (a) { var l = this if (!a) throw new Error('Cannot configure a schema with no rules') if (typeof a != 'object' || Array.isArray(a)) throw new Error('Rules must be an object') ;(this.rules = {}), Object.keys(a).forEach(function (f) { var g = a[f] l.rules[f] = Array.isArray(g) ? g : [g] }) }), (t.messages = function (a) { return a && (this._messages = $p(js(), a)), this._messages }), (t.validate = function (a, l, f) { var g = this l === void 0 && (l = {}), f === void 0 && (f = function () {}) var h = a, _ = l, b = f if ((typeof _ == 'function' && ((b = _), (_ = {})), !this.rules || Object.keys(this.rules).length === 0)) return b && b(null, h), Promise.resolve(h) function S(P) { var R = [], j = {} function L(U) { if (Array.isArray(U)) { var te R = (te = R).concat.apply(te, U) } else R.push(U) } for (var H = 0; H < P.length; H++) L(P[H]) R.length ? ((j = iu(R)), b(R, j)) : b(null, h) } if (_.messages) { var x = this.messages() x === ho && (x = js()), $p(x, _.messages), (_.messages = x) } else _.messages = this.messages() var k = {}, D = _.keys || Object.keys(this.rules) D.forEach(function (P) { var R = g.rules[P], j = h[P] R.forEach(function (L) { var H = L typeof H.transform == 'function' && (h === a && (h = po({}, h)), (j = h[P] = H.transform(j))), typeof H == 'function' ? (H = { validator: H }) : (H = po({}, H)), (H.validator = g.getValidationMethod(H)), H.validator && ((H.field = P), (H.fullField = H.fullField || P), (H.type = g.getType(H)), (k[P] = k[P] || []), k[P].push({ rule: H, value: j, source: h, field: P })) }) }) var M = {} return Lp( k, _, function (P, R) { var j = P.rule, L = (j.type === 'object' || j.type === 'array') && (typeof j.fields == 'object' || typeof j.defaultField == 'object') ;(L = L && (j.required || (!j.required && P.value))), (j.field = P.field) function H(ie, ae) { return po({}, ae, { fullField: j.fullField + '.' + ie, fullFields: j.fullFields ? [].concat(j.fullFields, [ie]) : [ie], }) } function U(ie) { ie === void 0 && (ie = []) var ae = Array.isArray(ie) ? ie : [ie] !_.suppressWarning && ae.length && e.warning('async-validator:', ae), ae.length && j.message !== void 0 && (ae = [].concat(j.message)) var de = ae.map(fi(j, h)) if (_.first && de.length) return (M[j.field] = 1), R(de) if (!L) R(de) else { if (j.required && !P.value) return ( j.message !== void 0 ? (de = [].concat(j.message).map(fi(j, h))) : _.error && (de = [_.error(j, xr(_.messages.required, j.field))]), R(de) ) var ye = {} j.defaultField && Object.keys(P.value).map(function (se) { ye[se] = j.defaultField }), (ye = po({}, ye, P.rule.fields)) var me = {} Object.keys(ye).forEach(function (se) { var oe = ye[se], fe = Array.isArray(oe) ? oe : [oe] me[se] = fe.map(H.bind(null, se)) }) var De = new e(me) De.messages(_.messages), P.rule.options && ((P.rule.options.messages = _.messages), (P.rule.options.error = _.error)), De.validate(P.value, P.rule.options || _, function (se) { var oe = [] de && de.length && oe.push.apply(oe, de), se && se.length && oe.push.apply(oe, se), R(oe.length ? oe : null) }) } } var te if (j.asyncValidator) te = j.asyncValidator(j, P.value, U, P.source, _) else if (j.validator) { try { te = j.validator(j, P.value, U, P.source, _) } catch (ie) { console.error == null || console.error(ie), _.suppressValidatorError || setTimeout(function () { throw ie }, 0), U(ie.message) } te === !0 ? U() : te === !1 ? U( typeof j.message == 'function' ? j.message(j.fullField || j.field) : j.message || (j.fullField || j.field) + ' fails' ) : te instanceof Array ? U(te) : te instanceof Error && U(te.message) } te && te.then && te.then( function () { return U() }, function (ie) { return U(ie) } ) }, function (P) { S(P) }, h ) }), (t.getType = function (a) { if ( (a.type === void 0 && a.pattern instanceof RegExp && (a.type = 'pattern'), typeof a.validator != 'function' && a.type && !Qr.hasOwnProperty(a.type)) ) throw new Error(xr('Unknown rule type %s', a.type)) return a.type || 'string' }), (t.getValidationMethod = function (a) { if (typeof a.validator == 'function') return a.validator var l = Object.keys(a), f = l.indexOf('message') return ( f !== -1 && l.splice(f, 1), l.length === 1 && l[0] === 'required' ? Qr.required : Qr[this.getType(a)] || void 0 ) }), e ) })() ;(vo.register = function (t, n) { if (typeof n != 'function') throw new Error('Cannot register a validator by type, validator is not a function') Qr[t] = n }), (vo.warning = zp), (vo.messages = ho), (vo.validators = Qr) var ar = "'${name}' is not a valid ${type}", Vl = { default: "Validation error on field '${name}'", required: "'${name}' is required", enum: "'${name}' must be one of [${enum}]", whitespace: "'${name}' cannot be empty", date: { format: "'${name}' is invalid for format date", parse: "'${name}' could not be parsed as date", invalid: "'${name}' is invalid date", }, types: { string: ar, method: ar, array: ar, object: ar, number: ar, date: ar, boolean: ar, integer: ar, float: ar, regexp: ar, email: ar, url: ar, hex: ar, }, string: { len: "'${name}' must be exactly ${len} characters", min: "'${name}' must be at least ${min} characters", max: "'${name}' cannot be longer than ${max} characters", range: "'${name}' must be between ${min} and ${max} characters", }, number: { len: "'${name}' must equal ${len}", min: "'${name}' cannot be less than ${min}", max: "'${name}' cannot be greater than ${max}", range: "'${name}' must be between ${min} and ${max}", }, array: { len: "'${name}' must be exactly ${len} in length", min: "'${name}' cannot be less than ${min} in length", max: "'${name}' cannot be greater than ${max} in length", range: "'${name}' must be between ${min} and ${max} in length", }, pattern: { mismatch: "'${name}' does not match pattern ${pattern}" }, } function bn(e, t) { for (var n = e, a = 0; a < t.length; a += 1) { if (n == null) return n = n[t[a]] } return n } function Ta(e) { return md(e) || ld(e) || Rc(e) || Lc() } function Jr(e, t, n, a) { if (!t.length) return n var l = Ta(t), f = l[0], g = l.slice(1), h return ( !e && typeof f == 'number' ? (h = []) : Array.isArray(e) ? (h = kt(e)) : (h = ze({}, e)), a && n === void 0 && g.length === 1 ? delete h[f][g[0]] : (h[f] = Jr(h[f], g, n, a)), h ) } function Pn(e, t, n) { var a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1 return t.length && a && n === void 0 && !bn(e, t.slice(0, -1)) ? e : Jr(e, t, n, a) } function lu(e) { return Array.isArray(e) ? sf(e) : ln(e) === 'object' && e !== null ? of(e) : e } function of(e) { if (Object.getPrototypeOf(e) === Object.prototype) { var t = {} for (var n in e) t[n] = lu(e[n]) return t } return e } function sf(e) { return e.map(function (t) { return lu(t) }) } var Wp = lu function fn(e) { return qd(e) } function lf(e, t) { var n = {} return ( t.forEach(function (a) { var l = bn(e, a) n = Pn(n, a, l) }), n ) } function _o(e, t) { return ( e && e.some(function (n) { return cf(n, t) }) ) } function Da(e) { return ln(e) === 'object' && e !== null && Object.getPrototypeOf(e) === Object.prototype } function cu(e, t) { var n = Array.isArray(e) ? kt(e) : ze({}, e) return ( t && Object.keys(t).forEach(function (a) { var l = n[a], f = t[a], g = Da(l) && Da(f) n[a] = g ? cu(l, f || {}) : Wp(f) }), n ) } function pi(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a] return n.reduce(function (l, f) { return cu(l, f) }, e) } function cf(e, t) { return !e || !t || e.length !== t.length ? !1 : e.every(function (n, a) { return t[a] === n }) } function Vp(e, t) { if (e === t) return !0 if ((!e && t) || (e && !t) || !e || !t || ln(e) !== 'object' || ln(t) !== 'object') return !1 var n = Object.keys(e), a = Object.keys(t), l = new Set([].concat(n, a)) return kt(l).every(function (f) { var g = e[f], h = t[f] return typeof g == 'function' && typeof h == 'function' ? !0 : g === h }) } function uf(e) { var t = arguments.length <= 1 ? void 0 : arguments[1] return t && t.target && ln(t.target) === 'object' && e in t.target ? t.target[e] : t } function Gl(e, t, n) { var a = e.length if (t < 0 || t >= a || n < 0 || n >= a) return e var l = e[t], f = t - n return f > 0 ? [].concat(kt(e.slice(0, n)), [l], kt(e.slice(n, t)), kt(e.slice(t + 1, a))) : f < 0 ? [].concat(kt(e.slice(0, t)), kt(e.slice(t + 1, n + 1)), [l], kt(e.slice(n + 1, a))) : e } var Gp = vo function Jm(e, t) { return e.replace(/\$\{\w+\}/g, function (n) { var a = n.slice(2, -1) return t[a] }) } var df = 'CODE_LOGIC_ERROR' function uu(e, t, n, a, l) { return Xi.apply(this, arguments) } function Xi() { return ( (Xi = uo( zr().mark(function e(t, n, a, l, f) { var g, h, _, b, S, x, k, D, M return zr().wrap( function (R) { for (;;) switch ((R.prev = R.next)) { case 0: return ( (g = ze({}, a)), delete g.ruleIndex, (Gp.warning = function () {}), g.validator && ((h = g.validator), (g.validator = function () { try { return h.apply(void 0, arguments) } catch (j) { return console.error(j), Promise.reject(df) } })), (_ = null), g && g.type === 'array' && g.defaultField && ((_ = g.defaultField), delete g.defaultField), (b = new Gp(O({}, t, [g]))), (S = pi({}, Vl, l.validateMessages)), b.messages(S), (x = []), (R.prev = 10), (R.next = 13), Promise.resolve(b.validate(O({}, t, n), ze({}, l))) ) case 13: R.next = 18 break case 15: ;(R.prev = 15), (R.t0 = R.catch(10)), R.t0.errors && (x = R.t0.errors.map(function (j, L) { var H = j.message, U = H === df ? S.default : H return m.isValidElement(U) ? m.cloneElement(U, { key: 'error_'.concat(L) }) : U })) case 18: if (!(!x.length && _)) { R.next = 23 break } return ( (R.next = 21), Promise.all( n.map(function (j, L) { return uu(''.concat(t, '.').concat(L), j, _, l, f) }) ) ) case 21: return ( (k = R.sent), R.abrupt( 'return', k.reduce(function (j, L) { return [].concat(kt(j), kt(L)) }, []) ) ) case 23: return ( (D = ze(ze({}, a), {}, { name: t, enum: (a.enum || []).join(', ') }, f)), (M = x.map(function (j) { return typeof j == 'string' ? Jm(j, D) : j })), R.abrupt('return', M) ) case 26: case 'end': return R.stop() } }, e, null, [[10, 15]] ) }) )), Xi.apply(this, arguments) ) } function Zm(e, t, n, a, l, f) { var g = e.join('.'), h = n .map(function (S, x) { var k = S.validator, D = ze(ze({}, S), {}, { ruleIndex: x }) return ( k && (D.validator = function (M, P, R) { var j = !1, L = function () { for (var te = arguments.length, ie = new Array(te), ae = 0; ae < te; ae++) ie[ae] = arguments[ae] Promise.resolve().then(function () { cr(!j, 'Your validator function has already return a promise. `callback` will be ignored.'), j || R.apply(void 0, ie) }) }, H = k(M, P, L) ;(j = H && typeof H.then == 'function' && typeof H.catch == 'function'), cr(j, '`callback` is deprecated. Please return a promise instead.'), j && H.then(function () { R() }).catch(function (U) { R(U || ' ') }) }), D ) }) .sort(function (S, x) { var k = S.warningOnly, D = S.ruleIndex, M = x.warningOnly, P = x.ruleIndex return !!k == !!M ? D - P : k ? 1 : -1 }), _ if (l === !0) _ = new Promise( (function () { var S = uo( zr().mark(function x(k, D) { var M, P, R return zr().wrap(function (L) { for (;;) switch ((L.prev = L.next)) { case 0: M = 0 case 1: if (!(M < h.length)) { L.next = 12 break } return (P = h[M]), (L.next = 5), uu(g, t, P, a, f) case 5: if (((R = L.sent), !R.length)) { L.next = 9 break } return D([{ errors: R, rule: P }]), L.abrupt('return') case 9: ;(M += 1), (L.next = 1) break case 12: k([]) case 13: case 'end': return L.stop() } }, x) }) ) return function (x, k) { return S.apply(this, arguments) } })() ) else { var b = h.map(function (S) { return uu(g, t, S, a, f).then(function (x) { return { errors: x, rule: S } }) }) _ = (l ? En(b) : zs(b)).then(function (S) { return Promise.reject(S) }) } return ( _.catch(function (S) { return S }), _ ) } function zs(e) { return du.apply(this, arguments) } function du() { return ( (du = uo( zr().mark(function e(t) { return zr().wrap(function (a) { for (;;) switch ((a.prev = a.next)) { case 0: return a.abrupt( 'return', Promise.all(t).then(function (l) { var f, g = (f = []).concat.apply(f, kt(l)) return g }) ) case 1: case 'end': return a.stop() } }, e) }) )), du.apply(this, arguments) ) } function En(e) { return ff.apply(this, arguments) } function ff() { return ( (ff = uo( zr().mark(function e(t) { var n return zr().wrap(function (l) { for (;;) switch ((l.prev = l.next)) { case 0: return ( (n = 0), l.abrupt( 'return', new Promise(function (f) { t.forEach(function (g) { g.then(function (h) { h.errors.length && f([h]), (n += 1), n === t.length && f([]) }) }) }) ) ) case 2: case 'end': return l.stop() } }, e) }) )), ff.apply(this, arguments) ) } var Xp = ['name'], Zr = [] function Kp(e, t, n, a, l, f) { return typeof e == 'function' ? e(t, n, 'source' in f ? { source: f.source } : {}) : a !== l } var fu = (function (e) { Fl(n, e) var t = $l(n) function n(a) { var l if ( (tr(this, n), (l = t.call(this, a)), (l.state = { resetCount: 0 }), (l.cancelRegisterFunc = null), (l.mounted = !1), (l.touched = !1), (l.dirty = !1), (l.validatePromise = void 0), (l.prevValidating = void 0), (l.errors = Zr), (l.warnings = Zr), (l.cancelRegister = function () { var _ = l.props, b = _.preserve, S = _.isListField, x = _.name l.cancelRegisterFunc && l.cancelRegisterFunc(S, b, fn(x)), (l.cancelRegisterFunc = null) }), (l.getNamePath = function () { var _ = l.props, b = _.name, S = _.fieldContext, x = S.prefixName, k = x === void 0 ? [] : x return b !== void 0 ? [].concat(kt(k), kt(b)) : [] }), (l.getRules = function () { var _ = l.props, b = _.rules, S = b === void 0 ? [] : b, x = _.fieldContext return S.map(function (k) { return typeof k == 'function' ? k(x) : k }) }), (l.refresh = function () { l.mounted && l.setState(function (_) { var b = _.resetCount return { resetCount: b + 1 } }) }), (l.triggerMetaEvent = function (_) { var b = l.props.onMetaChange b == null || b(ze(ze({}, l.getMeta()), {}, { destroy: _ })) }), (l.onStoreChange = function (_, b, S) { var x = l.props, k = x.shouldUpdate, D = x.dependencies, M = D === void 0 ? [] : D, P = x.onReset, R = S.store, j = l.getNamePath(), L = l.getValue(_), H = l.getValue(R), U = b && _o(b, j) switch ( (S.type === 'valueUpdate' && S.source === 'external' && L !== H && ((l.touched = !0), (l.dirty = !0), (l.validatePromise = null), (l.errors = Zr), (l.warnings = Zr), l.triggerMetaEvent()), S.type) ) { case 'reset': if (!b || U) { ;(l.touched = !1), (l.dirty = !1), (l.validatePromise = null), (l.errors = Zr), (l.warnings = Zr), l.triggerMetaEvent(), P == null || P(), l.refresh() return } break case 'remove': { if (k) { l.reRender() return } break } case 'setField': { if (U) { var te = S.data 'touched' in te && (l.touched = te.touched), 'validating' in te && !('originRCField' in te) && (l.validatePromise = te.validating ? Promise.resolve([]) : null), 'errors' in te && (l.errors = te.errors || Zr), 'warnings' in te && (l.warnings = te.warnings || Zr), (l.dirty = !0), l.triggerMetaEvent(), l.reRender() return } if (k && !j.length && Kp(k, _, R, L, H, S)) { l.reRender() return } break } case 'dependenciesUpdate': { var ie = M.map(fn) if ( ie.some(function (ae) { return _o(S.relatedFields, ae) }) ) { l.reRender() return } break } default: if (U || ((!M.length || j.length || k) && Kp(k, _, R, L, H, S))) { l.reRender() return } break } k === !0 && l.reRender() }), (l.validateRules = function (_) { var b = l.getNamePath(), S = l.getValue(), x = Promise.resolve().then(function () { if (!l.mounted) return [] var k = l.props, D = k.validateFirst, M = D === void 0 ? !1 : D, P = k.messageVariables, R = _ || {}, j = R.triggerName, L = l.getRules() j && (L = L.filter(function (U) { return U }).filter(function (U) { var te = U.validateTrigger if (!te) return !0 var ie = qd(te) return ie.includes(j) })) var H = Zm(b, S, L, _, M, P) return ( H.catch(function (U) { return U }).then(function () { var U = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Zr if (l.validatePromise === x) { var te l.validatePromise = null var ie = [], ae = [] ;(te = U.forEach) === null || te === void 0 || te.call(U, function (de) { var ye = de.rule.warningOnly, me = de.errors, De = me === void 0 ? Zr : me ye ? ae.push.apply(ae, kt(De)) : ie.push.apply(ie, kt(De)) }), (l.errors = ie), (l.warnings = ae), l.triggerMetaEvent(), l.reRender() } }), H ) }) return ( (l.validatePromise = x), (l.dirty = !0), (l.errors = Zr), (l.warnings = Zr), l.triggerMetaEvent(), l.reRender(), x ) }), (l.isFieldValidating = function () { return !!l.validatePromise }), (l.isFieldTouched = function () { return l.touched }), (l.isFieldDirty = function () { if (l.dirty || l.props.initialValue !== void 0) return !0 var _ = l.props.fieldContext, b = _.getInternalHooks(Ca), S = b.getInitialValue return S(l.getNamePath()) !== void 0 }), (l.getErrors = function () { return l.errors }), (l.getWarnings = function () { return l.warnings }), (l.isListField = function () { return l.props.isListField }), (l.isList = function () { return l.props.isList }), (l.isPreserve = function () { return l.props.preserve }), (l.getMeta = function () { l.prevValidating = l.isFieldValidating() var _ = { touched: l.isFieldTouched(), validating: l.prevValidating, errors: l.errors, warnings: l.warnings, name: l.getNamePath(), validated: l.validatePromise === null, } return _ }), (l.getOnlyChild = function (_) { if (typeof _ == 'function') { var b = l.getMeta() return ze(ze({}, l.getOnlyChild(_(l.getControlled(), b, l.props.fieldContext))), {}, { isFunction: !0 }) } var S = fo(_) return S.length !== 1 || !m.isValidElement(S[0]) ? { child: S, isFunction: !1 } : { child: S[0], isFunction: !1 } }), (l.getValue = function (_) { var b = l.props.fieldContext.getFieldsValue, S = l.getNamePath() return bn(_ || b(!0), S) }), (l.getControlled = function () { var _ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, b = l.props, S = b.trigger, x = b.validateTrigger, k = b.getValueFromEvent, D = b.normalize, M = b.valuePropName, P = b.getValueProps, R = b.fieldContext, j = x !== void 0 ? x : R.validateTrigger, L = l.getNamePath(), H = R.getInternalHooks, U = R.getFieldsValue, te = H(Ca), ie = te.dispatch, ae = l.getValue(), de = P || function (se) { return O({}, M, se) }, ye = _[S], me = ze(ze({}, _), de(ae)) me[S] = function () { ;(l.touched = !0), (l.dirty = !0), l.triggerMetaEvent() for (var se, oe = arguments.length, fe = new Array(oe), Oe = 0; Oe < oe; Oe++) fe[Oe] = arguments[Oe] k ? (se = k.apply(void 0, fe)) : (se = uf.apply(void 0, [M].concat(fe))), D && (se = D(se, ae, U(!0))), ie({ type: 'updateValue', namePath: L, value: se }), ye && ye.apply(void 0, fe) } var De = qd(j || []) return ( De.forEach(function (se) { var oe = me[se] me[se] = function () { oe && oe.apply(void 0, arguments) var fe = l.props.rules fe && fe.length && ie({ type: 'validateField', namePath: L, triggerName: se }) } }), me ) }), a.fieldContext) ) { var f = a.fieldContext.getInternalHooks, g = f(Ca), h = g.initEntityValue h(Ps(l)) } return l } return ( mn(n, [ { key: 'componentDidMount', value: function () { var l = this.props, f = l.shouldUpdate, g = l.fieldContext if (((this.mounted = !0), g)) { var h = g.getInternalHooks, _ = h(Ca), b = _.registerField this.cancelRegisterFunc = b(this) } f === !0 && this.reRender() }, }, { key: 'componentWillUnmount', value: function () { this.cancelRegister(), this.triggerMetaEvent(!0), (this.mounted = !1) }, }, { key: 'reRender', value: function () { this.mounted && this.forceUpdate() }, }, { key: 'render', value: function () { var l = this.state.resetCount, f = this.props.children, g = this.getOnlyChild(f), h = g.child, _ = g.isFunction, b return ( _ ? (b = h) : m.isValidElement(h) ? (b = m.cloneElement(h, this.getControlled(h.props))) : (cr(!h, '`children` of Field is not validate ReactElement.'), (b = h)), m.createElement(m.Fragment, { key: l }, b) ) }, }, ]), n ) })(m.Component) ;(fu.contextType = Rs), (fu.defaultProps = { trigger: 'onChange', valuePropName: 'value' }) function Yp(e) { var t = e.name, n = Kn(e, Xp), a = m.useContext(Rs), l = t !== void 0 ? fn(t) : void 0, f = 'keep' return ( n.isListField || (f = '_'.concat((l || []).join('_'))), m.createElement(fu, Xt({ key: f, name: l }, n, { fieldContext: a })) ) } var qp = Yp, ei = m.createContext(null), pf = ei, eh = function (t) { var n = t.name, a = t.initialValue, l = t.children, f = t.rules, g = t.validateTrigger, h = t.isListField, _ = m.useContext(Rs), b = m.useRef({ keys: [], id: 0 }), S = b.current, x = m.useMemo( function () { var P = fn(_.prefixName) || [] return [].concat(kt(P), kt(fn(n))) }, [_.prefixName, n] ), k = m.useMemo( function () { return ze(ze({}, _), {}, { prefixName: x }) }, [_, x] ), D = m.useMemo( function () { return { getKey: function (R) { var j = x.length, L = R[j] return [S.keys[L], R.slice(j + 1)] }, } }, [x] ) if (typeof l != 'function') return cr(!1, 'Form.List only accepts function as children.'), null var M = function (R, j, L) { var H = L.source return H === 'internal' ? !1 : R !== j } return m.createElement( pf.Provider, { value: D }, m.createElement( Rs.Provider, { value: k }, m.createElement( qp, { name: [], shouldUpdate: M, rules: f, validateTrigger: g, initialValue: a, isList: !0, isListField: h }, function (P, R) { var j = P.value, L = j === void 0 ? [] : j, H = P.onChange, U = _.getFieldValue, te = function () { var ye = U(x || []) return ye || [] }, ie = { add: function (ye, me) { var De = te() me >= 0 && me <= De.length ? ((S.keys = [].concat(kt(S.keys.slice(0, me)), [S.id], kt(S.keys.slice(me)))), H([].concat(kt(De.slice(0, me)), [ye], kt(De.slice(me))))) : ((S.keys = [].concat(kt(S.keys), [S.id])), H([].concat(kt(De), [ye]))), (S.id += 1) }, remove: function (ye) { var me = te(), De = new Set(Array.isArray(ye) ? ye : [ye]) De.size <= 0 || ((S.keys = S.keys.filter(function (se, oe) { return !De.has(oe) })), H( me.filter(function (se, oe) { return !De.has(oe) }) )) }, move: function (ye, me) { if (ye !== me) { var De = te() ye < 0 || ye >= De.length || me < 0 || me >= De.length || ((S.keys = Gl(S.keys, ye, me)), H(Gl(De, ye, me))) } }, }, ae = L || [] return ( Array.isArray(ae) || (ae = []), l( ae.map(function (de, ye) { var me = S.keys[ye] return ( me === void 0 && ((S.keys[ye] = S.id), (me = S.keys[ye]), (S.id += 1)), { name: ye, key: me, isListField: !0 } ) }), ie, R ) ) } ) ) ) }, Pa = eh function pu(e) { var t = !1, n = e.length, a = [] return e.length ? new Promise(function (l, f) { e.forEach(function (g, h) { g.catch(function (_) { return (t = !0), _ }).then(function (_) { ;(n -= 1), (a[h] = _), !(n > 0) && (t && f(a), l(a)) }) }) }) : Promise.resolve([]) } var Ia = '__@field_split__' function Ls(e) { return e .map(function (t) { return ''.concat(ln(t), ':').concat(t) }) .join(Ia) } var gf = (function () { function e() { tr(this, e), (this.kvs = new Map()) } return ( mn(e, [ { key: 'set', value: function (n, a) { this.kvs.set(Ls(n), a) }, }, { key: 'get', value: function (n) { return this.kvs.get(Ls(n)) }, }, { key: 'update', value: function (n, a) { var l = this.get(n), f = a(l) f ? this.set(n, f) : this.delete(n) }, }, { key: 'delete', value: function (n) { this.kvs.delete(Ls(n)) }, }, { key: 'map', value: function (n) { return kt(this.kvs.entries()).map(function (a) { var l = pt(a, 2), f = l[0], g = l[1], h = f.split(Ia) return n({ key: h.map(function (_) { var b = _.match(/^([^:]*):(.*)$/), S = pt(b, 3), x = S[1], k = S[2] return x === 'number' ? Number(k) : k }), value: g, }) }) }, }, { key: 'toJSON', value: function () { var n = {} return ( this.map(function (a) { var l = a.key, f = a.value return (n[l.join('.')] = f), null }), n ) }, }, ]), e ) })(), Ra = gf, th = ['name'], mf = mn(function e(t) { var n = this tr(this, e), (this.formHooked = !1), (this.forceRootUpdate = void 0), (this.subscribable = !0), (this.store = {}), (this.fieldEntities = []), (this.initialValues = {}), (this.callbacks = {}), (this.validateMessages = null), (this.preserve = null), (this.lastValidatePromise = null), (this.getForm = function () { return { getFieldValue: n.getFieldValue, getFieldsValue: n.getFieldsValue, getFieldError: n.getFieldError, getFieldWarning: n.getFieldWarning, getFieldsError: n.getFieldsError, isFieldsTouched: n.isFieldsTouched, isFieldTouched: n.isFieldTouched, isFieldValidating: n.isFieldValidating, isFieldsValidating: n.isFieldsValidating, resetFields: n.resetFields, setFields: n.setFields, setFieldValue: n.setFieldValue, setFieldsValue: n.setFieldsValue, validateFields: n.validateFields, submit: n.submit, _init: !0, getInternalHooks: n.getInternalHooks, } }), (this.getInternalHooks = function (a) { return a === Ca ? ((n.formHooked = !0), { dispatch: n.dispatch, initEntityValue: n.initEntityValue, registerField: n.registerField, useSubscribe: n.useSubscribe, setInitialValues: n.setInitialValues, destroyForm: n.destroyForm, setCallbacks: n.setCallbacks, setValidateMessages: n.setValidateMessages, getFields: n.getFields, setPreserve: n.setPreserve, getInitialValue: n.getInitialValue, registerWatch: n.registerWatch, }) : (cr(!1, '`getInternalHooks` is internal usage. Should not call directly.'), null) }), (this.useSubscribe = function (a) { n.subscribable = a }), (this.prevWithoutPreserves = null), (this.setInitialValues = function (a, l) { if (((n.initialValues = a || {}), l)) { var f, g = pi({}, a, n.store) ;(f = n.prevWithoutPreserves) === null || f === void 0 || f.map(function (h) { var _ = h.key g = Pn(g, _, bn(a, _)) }), (n.prevWithoutPreserves = null), n.updateStore(g) } }), (this.destroyForm = function () { var a = new Ra() n.getFieldEntities(!0).forEach(function (l) { n.isMergedPreserve(l.isPreserve()) || a.set(l.getNamePath(), !0) }), (n.prevWithoutPreserves = a) }), (this.getInitialValue = function (a) { var l = bn(n.initialValues, a) return a.length ? Wp(l) : l }), (this.setCallbacks = function (a) { n.callbacks = a }), (this.setValidateMessages = function (a) { n.validateMessages = a }), (this.setPreserve = function (a) { n.preserve = a }), (this.watchList = []), (this.registerWatch = function (a) { return ( n.watchList.push(a), function () { n.watchList = n.watchList.filter(function (l) { return l !== a }) } ) }), (this.notifyWatch = function () { var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [] if (n.watchList.length) { var l = n.getFieldsValue(), f = n.getFieldsValue(!0) n.watchList.forEach(function (g) { g(l, f, a) }) } }), (this.timeoutId = null), (this.warningUnhooked = function () {}), (this.updateStore = function (a) { n.store = a }), (this.getFieldEntities = function () { var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1 return a ? n.fieldEntities.filter(function (l) { return l.getNamePath().length }) : n.fieldEntities }), (this.getFieldsMap = function () { var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, l = new Ra() return ( n.getFieldEntities(a).forEach(function (f) { var g = f.getNamePath() l.set(g, f) }), l ) }), (this.getFieldEntitiesForNamePathList = function (a) { if (!a) return n.getFieldEntities(!0) var l = n.getFieldsMap(!0) return a.map(function (f) { var g = fn(f) return l.get(g) || { INVALIDATE_NAME_PATH: fn(f) } }) }), (this.getFieldsValue = function (a, l) { if ((n.warningUnhooked(), a === !0 && !l)) return n.store var f = n.getFieldEntitiesForNamePathList(Array.isArray(a) ? a : null), g = [] return ( f.forEach(function (h) { var _, b = 'INVALIDATE_NAME_PATH' in h ? h.INVALIDATE_NAME_PATH : h.getNamePath() if (!(!a && !((_ = h.isListField) === null || _ === void 0) && _.call(h))) if (!l) g.push(b) else { var S = 'getMeta' in h ? h.getMeta() : null l(S) && g.push(b) } }), lf(n.store, g.map(fn)) ) }), (this.getFieldValue = function (a) { n.warningUnhooked() var l = fn(a) return bn(n.store, l) }), (this.getFieldsError = function (a) { n.warningUnhooked() var l = n.getFieldEntitiesForNamePathList(a) return l.map(function (f, g) { return f && !('INVALIDATE_NAME_PATH' in f) ? { name: f.getNamePath(), errors: f.getErrors(), warnings: f.getWarnings() } : { name: fn(a[g]), errors: [], warnings: [] } }) }), (this.getFieldError = function (a) { n.warningUnhooked() var l = fn(a), f = n.getFieldsError([l])[0] return f.errors }), (this.getFieldWarning = function (a) { n.warningUnhooked() var l = fn(a), f = n.getFieldsError([l])[0] return f.warnings }), (this.isFieldsTouched = function () { n.warningUnhooked() for (var a = arguments.length, l = new Array(a), f = 0; f < a; f++) l[f] = arguments[f] var g = l[0], h = l[1], _, b = !1 l.length === 0 ? (_ = null) : l.length === 1 ? Array.isArray(g) ? ((_ = g.map(fn)), (b = !1)) : ((_ = null), (b = g)) : ((_ = g.map(fn)), (b = h)) var S = n.getFieldEntities(!0), x = function (R) { return R.isFieldTouched() } if (!_) return b ? S.every(x) : S.some(x) var k = new Ra() _.forEach(function (P) { k.set(P, []) }), S.forEach(function (P) { var R = P.getNamePath() _.forEach(function (j) { j.every(function (L, H) { return R[H] === L }) && k.update(j, function (L) { return [].concat(kt(L), [P]) }) }) }) var D = function (R) { return R.some(x) }, M = k.map(function (P) { var R = P.value return R }) return b ? M.every(D) : M.some(D) }), (this.isFieldTouched = function (a) { return n.warningUnhooked(), n.isFieldsTouched([a]) }), (this.isFieldsValidating = function (a) { n.warningUnhooked() var l = n.getFieldEntities() if (!a) return l.some(function (g) { return g.isFieldValidating() }) var f = a.map(fn) return l.some(function (g) { var h = g.getNamePath() return _o(f, h) && g.isFieldValidating() }) }), (this.isFieldValidating = function (a) { return n.warningUnhooked(), n.isFieldsValidating([a]) }), (this.resetWithFieldInitialValue = function () { var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = new Ra(), f = n.getFieldEntities(!0) f.forEach(function (_) { var b = _.props.initialValue, S = _.getNamePath() if (b !== void 0) { var x = l.get(S) || new Set() x.add({ entity: _, value: b }), l.set(S, x) } }) var g = function (b) { b.forEach(function (S) { var x = S.props.initialValue if (x !== void 0) { var k = S.getNamePath(), D = n.getInitialValue(k) if (D !== void 0) cr( !1, "Form already set 'initialValues' with path '".concat( k.join('.'), "'. Field can not overwrite it." ) ) else { var M = l.get(k) if (M && M.size > 1) cr( !1, "Multiple Field with path '".concat( k.join('.'), "' set 'initialValue'. Can not decide which one to pick." ) ) else if (M) { var P = n.getFieldValue(k) ;(!a.skipExist || P === void 0) && n.updateStore(Pn(n.store, k, kt(M)[0].value)) } } } }) }, h a.entities ? (h = a.entities) : a.namePathList ? ((h = []), a.namePathList.forEach(function (_) { var b = l.get(_) if (b) { var S ;(S = h).push.apply( S, kt( kt(b).map(function (x) { return x.entity }) ) ) } })) : (h = f), g(h) }), (this.resetFields = function (a) { n.warningUnhooked() var l = n.store if (!a) { n.updateStore(pi({}, n.initialValues)), n.resetWithFieldInitialValue(), n.notifyObservers(l, null, { type: 'reset' }), n.notifyWatch() return } var f = a.map(fn) f.forEach(function (g) { var h = n.getInitialValue(g) n.updateStore(Pn(n.store, g, h)) }), n.resetWithFieldInitialValue({ namePathList: f }), n.notifyObservers(l, f, { type: 'reset' }), n.notifyWatch(f) }), (this.setFields = function (a) { n.warningUnhooked() var l = n.store, f = [] a.forEach(function (g) { var h = g.name, _ = Kn(g, th), b = fn(h) f.push(b), 'value' in _ && n.updateStore(Pn(n.store, b, _.value)), n.notifyObservers(l, [b], { type: 'setField', data: g }) }), n.notifyWatch(f) }), (this.getFields = function () { var a = n.getFieldEntities(!0), l = a.map(function (f) { var g = f.getNamePath(), h = f.getMeta(), _ = ze(ze({}, h), {}, { name: g, value: n.getFieldValue(g) }) return Object.defineProperty(_, 'originRCField', { value: !0 }), _ }) return l }), (this.initEntityValue = function (a) { var l = a.props.initialValue if (l !== void 0) { var f = a.getNamePath(), g = bn(n.store, f) g === void 0 && n.updateStore(Pn(n.store, f, l)) } }), (this.isMergedPreserve = function (a) { var l = a !== void 0 ? a : n.preserve return l != null ? l : !0 }), (this.registerField = function (a) { n.fieldEntities.push(a) var l = a.getNamePath() if ((n.notifyWatch([l]), a.props.initialValue !== void 0)) { var f = n.store n.resetWithFieldInitialValue({ entities: [a], skipExist: !0 }), n.notifyObservers(f, [a.getNamePath()], { type: 'valueUpdate', source: 'internal' }) } return function (g, h) { var _ = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [] if ( ((n.fieldEntities = n.fieldEntities.filter(function (x) { return x !== a })), !n.isMergedPreserve(h) && (!g || _.length > 1)) ) { var b = g ? void 0 : n.getInitialValue(l) if ( l.length && n.getFieldValue(l) !== b && n.fieldEntities.every(function (x) { return !cf(x.getNamePath(), l) }) ) { var S = n.store n.updateStore(Pn(S, l, b, !0)), n.notifyObservers(S, [l], { type: 'remove' }), n.triggerDependenciesUpdate(S, l) } } n.notifyWatch([l]) } }), (this.dispatch = function (a) { switch (a.type) { case 'updateValue': { var l = a.namePath, f = a.value n.updateValue(l, f) break } case 'validateField': { var g = a.namePath, h = a.triggerName n.validateFields([g], { triggerName: h }) break } default: } }), (this.notifyObservers = function (a, l, f) { if (n.subscribable) { var g = ze(ze({}, f), {}, { store: n.getFieldsValue(!0) }) n.getFieldEntities().forEach(function (h) { var _ = h.onStoreChange _(a, l, g) }) } else n.forceRootUpdate() }), (this.triggerDependenciesUpdate = function (a, l) { var f = n.getDependencyChildrenFields(l) return ( f.length && n.validateFields(f), n.notifyObservers(a, f, { type: 'dependenciesUpdate', relatedFields: [l].concat(kt(f)) }), f ) }), (this.updateValue = function (a, l) { var f = fn(a), g = n.store n.updateStore(Pn(n.store, f, l)), n.notifyObservers(g, [f], { type: 'valueUpdate', source: 'internal' }), n.notifyWatch([f]) var h = n.triggerDependenciesUpdate(g, f), _ = n.callbacks.onValuesChange if (_) { var b = lf(n.store, [f]) _(b, n.getFieldsValue()) } n.triggerOnFieldsChange([f].concat(kt(h))) }), (this.setFieldsValue = function (a) { n.warningUnhooked() var l = n.store if (a) { var f = pi(n.store, a) n.updateStore(f) } n.notifyObservers(l, null, { type: 'valueUpdate', source: 'external' }), n.notifyWatch() }), (this.setFieldValue = function (a, l) { n.setFields([{ name: a, value: l }]) }), (this.getDependencyChildrenFields = function (a) { var l = new Set(), f = [], g = new Ra() n.getFieldEntities().forEach(function (_) { var b = _.props.dependencies ;(b || []).forEach(function (S) { var x = fn(S) g.update(x, function () { var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : new Set() return k.add(_), k }) }) }) var h = function _(b) { var S = g.get(b) || new Set() S.forEach(function (x) { if (!l.has(x)) { l.add(x) var k = x.getNamePath() x.isFieldDirty() && k.length && (f.push(k), _(k)) } }) } return h(a), f }), (this.triggerOnFieldsChange = function (a, l) { var f = n.callbacks.onFieldsChange if (f) { var g = n.getFields() if (l) { var h = new Ra() l.forEach(function (b) { var S = b.name, x = b.errors h.set(S, x) }), g.forEach(function (b) { b.errors = h.get(b.name) || b.errors }) } var _ = g.filter(function (b) { var S = b.name return _o(a, S) }) f(_, g) } }), (this.validateFields = function (a, l) { n.warningUnhooked() var f = !!a, g = f ? a.map(fn) : [], h = [] n.getFieldEntities(!0).forEach(function (S) { if ((f || g.push(S.getNamePath()), l != null && l.recursive && f)) { var x = S.getNamePath() x.every(function (M, P) { return a[P] === M || a[P] === void 0 }) && g.push(x) } if (!(!S.props.rules || !S.props.rules.length)) { var k = S.getNamePath() if (!f || _o(g, k)) { var D = S.validateRules(ze({ validateMessages: ze(ze({}, Vl), n.validateMessages) }, l)) h.push( D.then(function () { return { name: k, errors: [], warnings: [] } }).catch(function (M) { var P, R = [], j = [] return ( (P = M.forEach) === null || P === void 0 || P.call(M, function (L) { var H = L.rule.warningOnly, U = L.errors H ? j.push.apply(j, kt(U)) : R.push.apply(R, kt(U)) }), R.length ? Promise.reject({ name: k, errors: R, warnings: j }) : { name: k, errors: R, warnings: j } ) }) ) } } }) var _ = pu(h) ;(n.lastValidatePromise = _), _.catch(function (S) { return S }).then(function (S) { var x = S.map(function (k) { var D = k.name return D }) n.notifyObservers(n.store, x, { type: 'validateFinish' }), n.triggerOnFieldsChange(x, S) }) var b = _.then(function () { return n.lastValidatePromise === _ ? Promise.resolve(n.getFieldsValue(g)) : Promise.reject([]) }).catch(function (S) { var x = S.filter(function (k) { return k && k.errors.length }) return Promise.reject({ values: n.getFieldsValue(g), errorFields: x, outOfDate: n.lastValidatePromise !== _, }) }) return ( b.catch(function (S) { return S }), n.triggerOnFieldsChange(g), b ) }), (this.submit = function () { n.warningUnhooked(), n .validateFields() .then(function (a) { var l = n.callbacks.onFinish if (l) try { l(a) } catch (f) { console.error(f) } }) .catch(function (a) { var l = n.callbacks.onFinishFailed l && l(a) }) }), (this.forceRootUpdate = t) }) function nh(e) { var t = m.useRef(), n = m.useState({}), a = pt(n, 2), l = a[1] if (!t.current) if (e) t.current = e else { var f = function () { l({}) }, g = new mf(f) t.current = g.getForm() } return [t.current] } var hf = nh, gu = m.createContext({ triggerFormChange: function () {}, triggerFormFinish: function () {}, registerForm: function () {}, unregisterForm: function () {}, }), Xl = function (t) { var n = t.validateMessages, a = t.onFormChange, l = t.onFormFinish, f = t.children, g = m.useContext(gu), h = m.useRef({}) return m.createElement( gu.Provider, { value: ze( ze({}, g), {}, { validateMessages: ze(ze({}, g.validateMessages), n), triggerFormChange: function (b, S) { a && a(b, { changedFields: S, forms: h.current }), g.triggerFormChange(b, S) }, triggerFormFinish: function (b, S) { l && l(b, { values: S, forms: h.current }), g.triggerFormFinish(b, S) }, registerForm: function (b, S) { b && (h.current = ze(ze({}, h.current), {}, O({}, b, S))), g.registerForm(b, S) }, unregisterForm: function (b) { var S = ze({}, h.current) delete S[b], (h.current = S), g.unregisterForm(b) }, } ), }, f ) }, mu = gu, Qp = [ 'name', 'initialValues', 'fields', 'form', 'preserve', 'children', 'component', 'validateMessages', 'validateTrigger', 'onValuesChange', 'onFieldsChange', 'onFinish', 'onFinishFailed', ], vf = function (t, n) { var a = t.name, l = t.initialValues, f = t.fields, g = t.form, h = t.preserve, _ = t.children, b = t.component, S = b === void 0 ? 'form' : b, x = t.validateMessages, k = t.validateTrigger, D = k === void 0 ? 'onChange' : k, M = t.onValuesChange, P = t.onFieldsChange, R = t.onFinish, j = t.onFinishFailed, L = Kn(t, Qp), H = m.useContext(mu), U = hf(g), te = pt(U, 1), ie = te[0], ae = ie.getInternalHooks(Ca), de = ae.useSubscribe, ye = ae.setInitialValues, me = ae.setCallbacks, De = ae.setValidateMessages, se = ae.setPreserve, oe = ae.destroyForm m.useImperativeHandle(n, function () { return ie }), m.useEffect( function () { return ( H.registerForm(a, ie), function () { H.unregisterForm(a) } ) }, [H, ie, a] ), De(ze(ze({}, H.validateMessages), x)), me({ onValuesChange: M, onFieldsChange: function (Ge) { if ((H.triggerFormChange(a, Ge), P)) { for (var Xe = arguments.length, ot = new Array(Xe > 1 ? Xe - 1 : 0), Ye = 1; Ye < Xe; Ye++) ot[Ye - 1] = arguments[Ye] P.apply(void 0, [Ge].concat(ot)) } }, onFinish: function (Ge) { H.triggerFormFinish(a, Ge), R && R(Ge) }, onFinishFailed: j, }), se(h) var fe = m.useRef(null) ye(l, !fe.current), fe.current || (fe.current = !0), m.useEffect(function () { return oe }, []) var Oe, Ve = typeof _ == 'function' if (Ve) { var Qe = ie.getFieldsValue(!0) Oe = _(Qe, ie) } else Oe = _ de(!Ve) var ft = m.useRef() m.useEffect( function () { Vp(ft.current || [], f || []) || ie.setFields(f || []), (ft.current = f) }, [f, ie] ) var Ot = m.useMemo( function () { return ze(ze({}, ie), {}, { validateTrigger: D }) }, [ie, D] ), Nt = m.createElement(Rs.Provider, { value: Ot }, Oe) return S === !1 ? Nt : m.createElement( S, Xt({}, L, { onSubmit: function (Ge) { Ge.preventDefault(), Ge.stopPropagation(), ie.submit() }, onReset: function (Ge) { var Xe Ge.preventDefault(), ie.resetFields(), (Xe = L.onReset) === null || Xe === void 0 || Xe.call(L, Ge) }, }), Nt ) }, rh = vf function _f(e) { try { return JSON.stringify(e) } catch (t) { return Math.random() } } var yf = function () {} function hu() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] var a = t[0], l = a === void 0 ? [] : a, f = t[1], g = f === void 0 ? {} : f, h = nu(g) ? { form: g } : g, _ = h.form, b = (0, m.useState)(), S = pt(b, 2), x = S[0], k = S[1], D = (0, m.useMemo)( function () { return _f(x) }, [x] ), M = (0, m.useRef)(D) M.current = D var P = (0, m.useContext)(Rs), R = _ || P, j = R && R._init, L = fn(l), H = (0, m.useRef)(L) return ( (H.current = L), yf(L), (0, m.useEffect)( function () { if (j) { var U = R.getFieldsValue, te = R.getInternalHooks, ie = te(Ca), ae = ie.registerWatch, de = ae(function (me, De) { var se = bn(h.preserve ? De : me, H.current), oe = _f(se) M.current !== oe && ((M.current = oe), k(se)) }), ye = bn(h.preserve ? U(!0) : U(), H.current) return k(ye), de } }, [j] ), x ) } var bf = hu, vu = m.forwardRef(rh), Fs = vu ;(Fs.FormProvider = Xl), (Fs.Field = qp), (Fs.List = Pa), (Fs.useForm = hf), (Fs.useWatch = bf) var a_ = null, _u = { items_per_page: '/ page', jump_to: 'Go to', jump_to_confirm: 'confirm', page: 'Page', prev_page: 'Previous Page', next_page: 'Next Page', prev_5: 'Previous 5 Pages', next_5: 'Next 5 Pages', prev_3: 'Previous 3 Pages', next_3: 'Next 3 Pages', page_size: 'Page Size', }, ih = { locale: 'en_US', today: 'Today', now: 'Now', backToToday: 'Back to today', ok: 'OK', clear: 'Clear', month: 'Month', year: 'Year', timeSelect: 'select time', dateSelect: 'select date', weekSelect: 'Choose a week', monthSelect: 'Choose a month', yearSelect: 'Choose a year', decadeSelect: 'Choose a decade', yearFormat: 'YYYY', dateFormat: 'M/D/YYYY', dayFormat: 'D', dateTimeFormat: 'M/D/YYYY HH:mm:ss', monthBeforeYear: !0, previousMonth: 'Previous month (PageUp)', nextMonth: 'Next month (PageDown)', previousYear: 'Last year (Control + left)', nextYear: 'Next year (Control + right)', previousDecade: 'Last decade', nextDecade: 'Next decade', previousCentury: 'Last century', nextCentury: 'Next century', }, Kl = ih, Yl = { placeholder: 'Select time', rangePlaceholder: ['Start time', 'End time'] }, u = { lang: Object.assign( { placeholder: 'Select date', yearPlaceholder: 'Select year', quarterPlaceholder: 'Select quarter', monthPlaceholder: 'Select month', weekPlaceholder: 'Select week', rangePlaceholder: ['Start date', 'End date'], rangeYearPlaceholder: ['Start year', 'End year'], rangeQuarterPlaceholder: ['Start quarter', 'End quarter'], rangeMonthPlaceholder: ['Start month', 'End month'], rangeWeekPlaceholder: ['Start week', 'End week'], }, Kl ), timePickerLocale: Object.assign({}, Yl), }, p = u const v = '${label} is not a valid ${type}' var E = { locale: 'en', Pagination: _u, DatePicker: u, TimePicker: Yl, Calendar: p, global: { placeholder: 'Please select' }, Table: { filterTitle: 'Filter menu', filterConfirm: 'OK', filterReset: 'Reset', filterEmptyText: 'No filters', filterCheckall: 'Select all items', filterSearchPlaceholder: 'Search in filters', emptyText: 'No data', selectAll: 'Select current page', selectInvert: 'Invert current page', selectNone: 'Clear all data', selectionAll: 'Select all data', sortTitle: 'Sort', expand: 'Expand row', collapse: 'Collapse row', triggerDesc: 'Click to sort descending', triggerAsc: 'Click to sort ascending', cancelSort: 'Click to cancel sorting', }, Tour: { Next: 'Next', Previous: 'Previous', Finish: 'Finish' }, Modal: { okText: 'OK', cancelText: 'Cancel', justOkText: 'OK' }, Popconfirm: { okText: 'OK', cancelText: 'Cancel' }, Transfer: { titles: ['', ''], searchPlaceholder: 'Search here', itemUnit: 'item', itemsUnit: 'items', remove: 'Remove', selectCurrent: 'Select current page', removeCurrent: 'Remove current page', selectAll: 'Select all data', removeAll: 'Remove all data', selectInvert: 'Invert current page', }, Upload: { uploading: 'Uploading...', removeFile: 'Remove file', uploadError: 'Upload error', previewFile: 'Preview file', downloadFile: 'Download file', }, Empty: { description: 'No data' }, Icon: { icon: 'icon' }, Text: { edit: 'Edit', copy: 'Copy', copied: 'Copied', expand: 'Expand' }, PageHeader: { back: 'Back' }, Form: { optional: '(optional)', defaultValidateMessages: { default: 'Field validation error for ${label}', required: 'Please enter ${label}', enum: '${label} must be one of [${enum}]', whitespace: '${label} cannot be a blank character', date: { format: '${label} date format is invalid', parse: '${label} cannot be converted to a date', invalid: '${label} is an invalid date', }, types: { string: v, method: v, array: v, object: v, number: v, date: v, boolean: v, integer: v, float: v, regexp: v, email: v, url: v, hex: v, }, string: { len: '${label} must be ${len} characters', min: '${label} must be at least ${min} characters', max: '${label} must be up to ${max} characters', range: '${label} must be between ${min}-${max} characters', }, number: { len: '${label} must be equal to ${len}', min: '${label} must be minimum ${min}', max: '${label} must be maximum ${max}', range: '${label} must be between ${min}-${max}', }, array: { len: 'Must be ${len} ${label}', min: 'At least ${min} ${label}', max: 'At most ${max} ${label}', range: 'The amount of ${label} must be between ${min}-${max}', }, pattern: { mismatch: '${label} does not match the pattern ${pattern}' }, }, }, Image: { preview: 'Preview' }, QRCode: { expired: 'QR code expired', refresh: 'Refresh' }, } let F = Object.assign({}, E.Modal) function ne(e) { e ? (F = Object.assign(Object.assign({}, F), e)) : (F = Object.assign({}, E.Modal)) } function le() { return F } var Ke = (0, m.createContext)(void 0) const Ze = 'internalMark' var gt = (e) => { const { locale: t = {}, children: n, _ANT_MARK__: a } = e m.useEffect( () => ( ne(t && t.Modal), () => { ne() } ), [t] ) const l = m.useMemo(() => Object.assign(Object.assign({}, t), { exist: !0 }), [t]) return m.createElement(Ke.Provider, { value: l }, n) } const _t = 'anticon', St = (e, t) => t || (e ? `ant-${e}` : 'ant'), Lt = m.createContext({ getPrefixCls: St, iconPrefixCls: _t }), { Consumer: Ce } = Lt, ge = `-ant-${Date.now()}-${Math.random()}` function Ee(e, t) { const n = {}, a = (g, h) => { let _ = g.clone() return (_ = (h == null ? void 0 : h(_)) || _), _.toRgbString() }, l = (g, h) => { const _ = new Ln(g), b = jn(_.toRgbString()) ;(n[`${h}-color`] = a(_)), (n[`${h}-color-disabled`] = b[1]), (n[`${h}-color-hover`] = b[4]), (n[`${h}-color-active`] = b[6]), (n[`${h}-color-outline`] = _.clone().setAlpha(0.2).toRgbString()), (n[`${h}-color-deprecated-bg`] = b[0]), (n[`${h}-color-deprecated-border`] = b[2]) } if (t.primaryColor) { l(t.primaryColor, 'primary') const g = new Ln(t.primaryColor), h = jn(g.toRgbString()) h.forEach((b, S) => { n[`primary-${S + 1}`] = b }), (n['primary-color-deprecated-l-35'] = a(g, (b) => b.lighten(35))), (n['primary-color-deprecated-l-20'] = a(g, (b) => b.lighten(20))), (n['primary-color-deprecated-t-20'] = a(g, (b) => b.tint(20))), (n['primary-color-deprecated-t-50'] = a(g, (b) => b.tint(50))), (n['primary-color-deprecated-f-12'] = a(g, (b) => b.setAlpha(b.getAlpha() * 0.12))) const _ = new Ln(h[0]) ;(n['primary-color-active-deprecated-f-30'] = a(_, (b) => b.setAlpha(b.getAlpha() * 0.3))), (n['primary-color-active-deprecated-d-02'] = a(_, (b) => b.darken(2))) } return ( t.successColor && l(t.successColor, 'success'), t.warningColor && l(t.warningColor, 'warning'), t.errorColor && l(t.errorColor, 'error'), t.infoColor && l(t.infoColor, 'info'), ` :root { ${Object.keys(n).map((g) => `--${e}-${g}: ${n[g]};`).join(` `)} } `.trim() ) } function it(e, t) { const n = Ee(e, t) ur() && ha(n, `${ge}-dynamic-theme`) } const wt = m.createContext(!1), At = (e) => { let { children: t, disabled: n } = e const a = m.useContext(wt) return m.createElement(wt.Provider, { value: n != null ? n : a }, t) } var Rt = wt const zt = m.createContext(void 0), $n = (e) => { let { children: t, size: n } = e const a = m.useContext(zt) return m.createElement(zt.Provider, { value: n || a }, t) } var rn = zt function Ma() { const e = (0, m.useContext)(Rt), t = (0, m.useContext)(rn) return { componentDisabled: e, componentSize: t } } var ah = Ma function eS(e, t) { const n = e || {}, a = n.inherit === !1 || !t ? Cs : t return Mc( () => { if (!e) return t const f = Object.assign({}, a.components) return ( Object.keys(e.components || {}).forEach((g) => { f[g] = Object.assign(Object.assign({}, f[g]), e.components[g]) }), Object.assign(Object.assign(Object.assign({}, a), n), { token: Object.assign(Object.assign({}, a.token), n.token), components: f, }) ) }, [n, a], (f, g) => f.some((h, _) => { const b = g[_] return !Ja(h, b, !0) }) ) } const AP = { overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' }, yo = (e) => ({ boxSizing: 'border-box', margin: 0, padding: 0, color: e.colorText, fontSize: e.fontSize, lineHeight: e.lineHeight, listStyle: 'none', fontFamily: e.fontFamily, }), tS = () => ({ display: 'inline-flex', alignItems: 'center', color: 'inherit', fontStyle: 'normal', lineHeight: 0, textAlign: 'center', textTransform: 'none', verticalAlign: '-0.125em', textRendering: 'optimizeLegibility', '-webkit-font-smoothing': 'antialiased', '-moz-osx-font-smoothing': 'grayscale', '> *': { lineHeight: 1 }, svg: { display: 'inline-block' }, }), nS = () => ({ '&::before': { display: 'table', content: '""' }, '&::after': { display: 'table', clear: 'both', content: '""' }, }), rS = (e) => ({ a: { color: e.colorLink, textDecoration: e.linkDecoration, backgroundColor: 'transparent', outline: 'none', cursor: 'pointer', transition: `color ${e.motionDurationSlow}`, '-webkit-text-decoration-skip': 'objects', '&:hover': { color: e.colorLinkHover }, '&:active': { color: e.colorLinkActive }, [`&:active, &:hover`]: { textDecoration: e.linkHoverDecoration, outline: 0 }, '&:focus': { textDecoration: e.linkFocusDecoration, outline: 0 }, '&[disabled]': { color: e.colorTextDisabled, cursor: 'not-allowed' }, }, }), iS = (e, t) => { const { fontFamily: n, fontSize: a } = e, l = `[class^="${t}"], [class*=" ${t}"]` return { [l]: { fontFamily: n, fontSize: a, boxSizing: 'border-box', '&::before, &::after': { boxSizing: 'border-box' }, [l]: { boxSizing: 'border-box', '&::before, &::after': { boxSizing: 'border-box' } }, }, } }, aS = (e) => ({ outline: `${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`, outlineOffset: 1, transition: 'outline-offset 0s, outline 0s', }), s_ = (e) => ({ '&:focus-visible': Object.assign({}, aS(e)) }) var oS = (e, t) => { const [n, a] = Es() return ai( { theme: n, token: a, hashId: '', path: ['ant-design-icons', e], nonce: () => (t == null ? void 0 : t.nonce), }, () => [{ [`.${e}`]: Object.assign(Object.assign({}, tS()), { [`.${e} .${e}-icon`]: { display: 'block' } }) }] ) }, sS = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } let jP = !1 const zP = null, LP = null, lS = [ 'getTargetContainer', 'getPopupContainer', 'renderEmpty', 'pageHeader', 'input', 'pagination', 'form', 'select', ], cS = 'ant' let Jp, l_ function Zp() { return Jp || cS } function uS() { return l_ || _t } const dS = (e) => { let { prefixCls: t, iconPrefixCls: n, theme: a } = e t !== void 0 && (Jp = t), n !== void 0 && (l_ = n), a && it(Zp(), a) }, Sf = () => ({ getPrefixCls: (e, t) => t || (e ? `${Zp()}-${e}` : Zp()), getIconPrefixCls: uS, getRootPrefixCls: () => Jp || Zp(), }), fS = (e) => { const { children: t, csp: n, autoInsertSpaceInButton: a, form: l, locale: f, componentSize: g, direction: h, space: _, virtual: b, dropdownMatchSelectWidth: S, legacyLocale: x, parentContext: k, iconPrefixCls: D, theme: M, componentDisabled: P, } = e, R = m.useCallback( (oe, fe) => { const { prefixCls: Oe } = e if (fe) return fe const Ve = Oe || k.getPrefixCls('') return oe ? `${Ve}-${oe}` : Ve }, [k.getPrefixCls, e.prefixCls] ), j = D || k.iconPrefixCls || _t, L = j !== k.iconPrefixCls, H = n || k.csp, U = oS(j, H), te = eS(M, k.theme), ie = { csp: H, autoInsertSpaceInButton: a, locale: f || x, direction: h, space: _, virtual: b, dropdownMatchSelectWidth: S, getPrefixCls: R, iconPrefixCls: j, theme: te, }, ae = Object.assign({}, k) Object.keys(ie).forEach((oe) => { ie[oe] !== void 0 && (ae[oe] = ie[oe]) }), lS.forEach((oe) => { const fe = e[oe] fe && (ae[oe] = fe) }) const de = Mc( () => ae, ae, (oe, fe) => { const Oe = Object.keys(oe), Ve = Object.keys(fe) return Oe.length !== Ve.length || Oe.some((Qe) => oe[Qe] !== fe[Qe]) } ), ye = m.useMemo(() => ({ prefixCls: j, csp: H }), [j, H]) let me = L ? U(t) : t const De = m.useMemo(() => { var oe, fe, Oe return pi( {}, ((oe = E.Form) === null || oe === void 0 ? void 0 : oe.defaultValidateMessages) || {}, ((Oe = (fe = de.locale) === null || fe === void 0 ? void 0 : fe.Form) === null || Oe === void 0 ? void 0 : Oe.defaultValidateMessages) || {}, (l == null ? void 0 : l.validateMessages) || {} ) }, [de, l == null ? void 0 : l.validateMessages]) Object.keys(De).length > 0 && (me = m.createElement(Xl, { validateMessages: De }, t)), f && (me = m.createElement(gt, { locale: f, _ANT_MARK__: Ze }, me)), (j || H) && (me = m.createElement(Yd.Provider, { value: ye }, me)), g && (me = m.createElement($n, { size: g }, me)) const se = m.useMemo(() => { const oe = te || {}, { algorithm: fe, token: Oe } = oe, Ve = sS(oe, ['algorithm', 'token']), Qe = fe && (!Array.isArray(fe) || fe.length > 0) ? _l(fe) : void 0 return Object.assign(Object.assign({}, Ve), { theme: Qe, token: Object.assign(Object.assign({}, ws), Oe) }) }, [te]) return ( M && (me = m.createElement(Fd.Provider, { value: se }, me)), P !== void 0 && (me = m.createElement(At, { disabled: P }, me)), m.createElement(Lt.Provider, { value: de }, me) ) }, yu = (e) => { const t = m.useContext(Lt), n = m.useContext(Ke) return m.createElement(fS, Object.assign({ parentContext: t, legacyLocale: n }, e)) } ;(yu.ConfigContext = Lt), (yu.SizeContext = rn), (yu.config = dS), (yu.useConfig = ah), Object.defineProperty(yu, 'SizeContext', { get: () => rn }) var eg = yu, pS = { icon: { tag: 'svg', attrs: { viewBox: '0 0 1024 1024', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z', }, }, ], }, name: 'loading', theme: 'outlined', }, gS = pS, mS = dt(4184), bt = dt.n(mS) function hS(e, t) { cr(e, '[@ant-design/icons] '.concat(t)) } function c_(e) { return ( ln(e) === 'object' && typeof e.name == 'string' && typeof e.theme == 'string' && (ln(e.icon) === 'object' || typeof e.icon == 'function') ) } function u_() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {} return Object.keys(e).reduce(function (t, n) { var a = e[n] switch (n) { case 'class': ;(t.className = a), delete t.class break default: t[n] = a } return t }, {}) } function oh(e, t, n) { return n ? m.createElement( e.tag, ze(ze({ key: t }, u_(e.attrs)), n), (e.children || []).map(function (a, l) { return oh(a, ''.concat(t, '-').concat(e.tag, '-').concat(l)) }) ) : m.createElement( e.tag, ze({ key: t }, u_(e.attrs)), (e.children || []).map(function (a, l) { return oh(a, ''.concat(t, '-').concat(e.tag, '-').concat(l)) }) ) } function d_(e) { return jn(e)[0] } function f_(e) { return e ? (Array.isArray(e) ? e : [e]) : [] } var FP = { width: '1em', height: '1em', fill: 'currentColor', 'aria-hidden': 'true', focusable: 'false' }, vS = ` .anticon { display: inline-block; color: inherit; font-style: normal; line-height: 0; text-align: center; text-transform: none; vertical-align: -0.125em; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .anticon > * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `, _S = function () { var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : vS, n = (0, m.useContext)(Yd), a = n.csp, l = n.prefixCls, f = t l && (f = f.replace(/anticon/g, l)), (0, m.useEffect)(function () { ha(f, '@ant-design-icons', { prepend: !0, csp: a }) }, []) }, yS = ['icon', 'className', 'onClick', 'style', 'primaryColor', 'secondaryColor'], wf = { primaryColor: '#333', secondaryColor: '#E6E6E6', calculated: !1 } function bS(e) { var t = e.primaryColor, n = e.secondaryColor ;(wf.primaryColor = t), (wf.secondaryColor = n || d_(t)), (wf.calculated = !!n) } function SS() { return ze({}, wf) } var tg = function (t) { var n = t.icon, a = t.className, l = t.onClick, f = t.style, g = t.primaryColor, h = t.secondaryColor, _ = Kn(t, yS), b = wf if ( (g && (b = { primaryColor: g, secondaryColor: h || d_(g) }), _S(), hS(c_(n), 'icon should be icon definiton, but got '.concat(n)), !c_(n)) ) return null var S = n return ( S && typeof S.icon == 'function' && (S = ze(ze({}, S), {}, { icon: S.icon(b.primaryColor, b.secondaryColor) })), oh( S.icon, 'svg-'.concat(S.name), ze( { className: a, onClick: l, style: f, 'data-icon': S.name, width: '1em', height: '1em', fill: 'currentColor', 'aria-hidden': 'true', }, _ ) ) ) } ;(tg.displayName = 'IconReact'), (tg.getTwoToneColors = SS), (tg.setTwoToneColors = bS) var sh = tg function p_(e) { var t = f_(e), n = pt(t, 2), a = n[0], l = n[1] return sh.setTwoToneColors({ primaryColor: a, secondaryColor: l }) } function wS() { var e = sh.getTwoToneColors() return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor } var xS = ['className', 'icon', 'spin', 'rotate', 'tabIndex', 'onClick', 'twoToneColor'] p_('#1890ff') var ng = m.forwardRef(function (e, t) { var n, a = e.className, l = e.icon, f = e.spin, g = e.rotate, h = e.tabIndex, _ = e.onClick, b = e.twoToneColor, S = Kn(e, xS), x = m.useContext(Yd), k = x.prefixCls, D = k === void 0 ? 'anticon' : k, M = x.rootClassName, P = bt()( M, D, ((n = {}), O(n, ''.concat(D, '-').concat(l.name), !!l.name), O(n, ''.concat(D, '-spin'), !!f || l.name === 'loading'), n), a ), R = h R === void 0 && _ && (R = -1) var j = g ? { msTransform: 'rotate('.concat(g, 'deg)'), transform: 'rotate('.concat(g, 'deg)') } : void 0, L = f_(b), H = pt(L, 2), U = H[0], te = H[1] return m.createElement( 'span', ze(ze({ role: 'img', 'aria-label': l.name }, S), {}, { ref: t, tabIndex: R, onClick: _, className: P }), m.createElement(sh, { icon: l, primaryColor: U, secondaryColor: te, style: j }) ) }) ;(ng.displayName = 'AntdIcon'), (ng.getTwoToneColor = wS), (ng.setTwoToneColor = p_) var ti = ng, g_ = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: gS })) } g_.displayName = 'LoadingOutlined' var rg = m.forwardRef(g_), CS = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z', }, }, ], }, name: 'exclamation-circle', theme: 'filled', }, ES = CS, m_ = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: ES })) } m_.displayName = 'ExclamationCircleFilled' var ig = m.forwardRef(m_), kS = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z', }, }, ], }, name: 'close-circle', theme: 'filled', }, OS = kS, h_ = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: OS })) } h_.displayName = 'CloseCircleFilled' var ag = m.forwardRef(h_), TS = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z', }, }, ], }, name: 'check-circle', theme: 'filled', }, DS = TS, v_ = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: DS })) } v_.displayName = 'CheckCircleFilled' var og = m.forwardRef(v_), PS = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z', }, }, ], }, name: 'info-circle', theme: 'filled', }, IS = PS, __ = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: IS })) } __.displayName = 'InfoCircleFilled' var sg = m.forwardRef(__) function lg(e) { return e instanceof HTMLElement || e instanceof SVGElement } function lh(e) { return lg(e) ? e : e instanceof m.Component ? Os.findDOMNode(e) : null } function ch(e, t) { typeof e == 'function' ? e(t) : ln(e) === 'object' && e && 'current' in e && (e.current = t) } function cg() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] var a = t.filter(function (l) { return l }) return a.length <= 1 ? a[0] : function (l) { t.forEach(function (f) { ch(f, l) }) } } function y_() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return Mc( function () { return cg.apply(void 0, t) }, t, function (a, l) { return ( a.length === l.length && a.every(function (f, g) { return f === l[g] }) ) } ) } function xf(e) { var t, n, a = (0, Is.isMemo)(e) ? e.type.type : e.type return !( (typeof a == 'function' && !((t = a.prototype) !== null && t !== void 0 && t.render)) || (typeof e == 'function' && !((n = e.prototype) !== null && n !== void 0 && n.render)) ) } function b_(e, t) { var n = {} return ( (n[e.toLowerCase()] = t.toLowerCase()), (n['Webkit'.concat(e)] = 'webkit'.concat(t)), (n['Moz'.concat(e)] = 'moz'.concat(t)), (n['ms'.concat(e)] = 'MS'.concat(t)), (n['O'.concat(e)] = 'o'.concat(t.toLowerCase())), n ) } function RS(e, t) { var n = { animationend: b_('Animation', 'AnimationEnd'), transitionend: b_('Transition', 'TransitionEnd') } return ( e && ('AnimationEvent' in t || delete n.animationend.animation, 'TransitionEvent' in t || delete n.transitionend.transition), n ) } var AS = RS(ur(), typeof window != 'undefined' ? window : {}), S_ = {} if (ur()) { var NS = document.createElement('div') S_ = NS.style } var ug = {} function w_(e) { if (ug[e]) return ug[e] var t = AS[e] if (t) for (var n = Object.keys(t), a = n.length, l = 0; l < a; l += 1) { var f = n[l] if (Object.prototype.hasOwnProperty.call(t, f) && f in S_) return (ug[e] = t[f]), ug[e] } return '' } var x_ = w_('animationend'), C_ = w_('transitionend'), E_ = !!(x_ && C_), k_ = x_ || 'animationend', O_ = C_ || 'transitionend' function T_(e, t) { if (!e) return null if (ln(e) === 'object') { var n = t.replace(/-\w/g, function (a) { return a[1].toUpperCase() }) return e[n] } return ''.concat(e, '-').concat(t) } var bu = 'none', dg = 'appear', fg = 'enter', pg = 'leave', D_ = 'none', bo = 'prepare', Su = 'start', wu = 'active', uh = 'end' function ql(e) { var t = m.useRef(!1), n = m.useState(e), a = pt(n, 2), l = a[0], f = a[1] m.useEffect(function () { return ( (t.current = !1), function () { t.current = !0 } ) }, []) function g(h, _) { ;(_ && t.current) || f(h) } return [l, g] } var P_ = function (t) { return +setTimeout(t, 16) }, I_ = function (t) { return clearTimeout(t) } typeof window != 'undefined' && 'requestAnimationFrame' in window && ((P_ = function (t) { return window.requestAnimationFrame(t) }), (I_ = function (t) { return window.cancelAnimationFrame(t) })) var R_ = 0, dh = new Map() function M_(e) { dh.delete(e) } var A_ = function (t) { var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1 R_ += 1 var a = R_ function l(f) { if (f === 0) M_(a), t() else { var g = P_(function () { l(f - 1) }) dh.set(a, g) } } return l(n), a } A_.cancel = function (e) { var t = dh.get(e) return M_(t), I_(t) } var $s = A_, jS = function () { var e = m.useRef(null) function t() { $s.cancel(e.current) } function n(a) { var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2 t() var f = $s(function () { l <= 1 ? a({ isCanceled: function () { return f !== e.current }, }) : n(a, l - 1) }) e.current = f } return ( m.useEffect(function () { return function () { t() } }, []), [n, t] ) }, zS = ur() ? m.useLayoutEffect : m.useEffect, N_ = zS, j_ = [bo, Su, wu, uh], z_ = !1, LS = !0 function L_(e) { return e === wu || e === uh } var FS = function (e, t) { var n = ql(D_), a = pt(n, 2), l = a[0], f = a[1], g = jS(), h = pt(g, 2), _ = h[0], b = h[1] function S() { f(bo, !0) } return ( N_( function () { if (l !== D_ && l !== uh) { var x = j_.indexOf(l), k = j_[x + 1], D = t(l) D === z_ ? f(k, !0) : _(function (M) { function P() { M.isCanceled() || f(k, !0) } D === !0 ? P() : Promise.resolve(D).then(P) }) } }, [e, l] ), m.useEffect(function () { return function () { b() } }, []), [S, l] ) }, $S = function (e) { var t = (0, m.useRef)(), n = (0, m.useRef)(e) n.current = e var a = m.useCallback(function (g) { n.current(g) }, []) function l(g) { g && (g.removeEventListener(O_, a), g.removeEventListener(k_, a)) } function f(g) { t.current && t.current !== g && l(t.current), g && g !== t.current && (g.addEventListener(O_, a), g.addEventListener(k_, a), (t.current = g)) } return ( m.useEffect(function () { return function () { l(t.current) } }, []), [f, l] ) } function HS(e, t, n, a) { var l = a.motionEnter, f = l === void 0 ? !0 : l, g = a.motionAppear, h = g === void 0 ? !0 : g, _ = a.motionLeave, b = _ === void 0 ? !0 : _, S = a.motionDeadline, x = a.motionLeaveImmediately, k = a.onAppearPrepare, D = a.onEnterPrepare, M = a.onLeavePrepare, P = a.onAppearStart, R = a.onEnterStart, j = a.onLeaveStart, L = a.onAppearActive, H = a.onEnterActive, U = a.onLeaveActive, te = a.onAppearEnd, ie = a.onEnterEnd, ae = a.onLeaveEnd, de = a.onVisibleChanged, ye = ql(), me = pt(ye, 2), De = me[0], se = me[1], oe = ql(bu), fe = pt(oe, 2), Oe = fe[0], Ve = fe[1], Qe = ql(null), ft = pt(Qe, 2), Ot = ft[0], Nt = ft[1], Ct = (0, m.useRef)(!1), Ge = (0, m.useRef)(null) function Xe() { return n() } var ot = (0, m.useRef)(!1) function Ye(Tt) { var Dt = Xe() if (!(Tt && !Tt.deadline && Tt.target !== Dt)) { var tn = ot.current, Vt Oe === dg && tn ? (Vt = te == null ? void 0 : te(Dt, Tt)) : Oe === fg && tn ? (Vt = ie == null ? void 0 : ie(Dt, Tt)) : Oe === pg && tn && (Vt = ae == null ? void 0 : ae(Dt, Tt)), Oe !== bu && tn && Vt !== !1 && (Ve(bu, !0), Nt(null, !0)) } } var Te = $S(Ye), xt = pt(Te, 1), et = xt[0], Ft = m.useMemo( function () { var Tt, Dt, tn switch (Oe) { case dg: return (Tt = {}), O(Tt, bo, k), O(Tt, Su, P), O(Tt, wu, L), Tt case fg: return (Dt = {}), O(Dt, bo, D), O(Dt, Su, R), O(Dt, wu, H), Dt case pg: return (tn = {}), O(tn, bo, M), O(tn, Su, j), O(tn, wu, U), tn default: return {} } }, [Oe] ), $t = FS(Oe, function (Tt) { if (Tt === bo) { var Dt = Ft[bo] return Dt ? Dt(Xe()) : z_ } if (Ht in Ft) { var tn Nt(((tn = Ft[Ht]) === null || tn === void 0 ? void 0 : tn.call(Ft, Xe(), null)) || null) } return ( Ht === wu && (et(Xe()), S > 0 && (clearTimeout(Ge.current), (Ge.current = setTimeout(function () { Ye({ deadline: !0 }) }, S)))), LS ) }), yt = pt($t, 2), Et = yt[0], Ht = yt[1], dn = L_(Ht) ;(ot.current = dn), N_( function () { se(t) var Tt = Ct.current if (((Ct.current = !0), !!e)) { var Dt !Tt && t && h && (Dt = dg), Tt && t && f && (Dt = fg), ((Tt && !t && b) || (!Tt && x && !t && b)) && (Dt = pg), Dt && (Ve(Dt), Et()) } }, [t] ), (0, m.useEffect)( function () { ;((Oe === dg && !h) || (Oe === fg && !f) || (Oe === pg && !b)) && Ve(bu) }, [h, f, b] ), (0, m.useEffect)(function () { return function () { ;(Ct.current = !1), clearTimeout(Ge.current) } }, []) var qt = m.useRef(!1) ;(0, m.useEffect)( function () { De && (qt.current = !0), De !== void 0 && Oe === bu && ((qt.current || De) && (de == null || de(De)), (qt.current = !0)) }, [De, Oe] ) var _n = Ot return Ft[bo] && Ht === Su && (_n = ze({ transition: 'none' }, _n)), [Oe, Ht, _n, De != null ? De : t] } var BS = (function (e) { Fl(n, e) var t = $l(n) function n() { return tr(this, n), t.apply(this, arguments) } return ( mn(n, [ { key: 'render', value: function () { return this.props.children }, }, ]), n ) })(m.Component), US = BS function WS(e) { var t = e ln(e) === 'object' && (t = e.transitionSupport) function n(l) { return !!(l.motionName && t) } var a = m.forwardRef(function (l, f) { var g = l.visible, h = g === void 0 ? !0 : g, _ = l.removeOnLeave, b = _ === void 0 ? !0 : _, S = l.forceRender, x = l.children, k = l.motionName, D = l.leavedClassName, M = l.eventProps, P = n(l), R = (0, m.useRef)(), j = (0, m.useRef)() function L() { try { return R.current instanceof HTMLElement ? R.current : lh(j.current) } catch (Qe) { return null } } var H = HS(P, h, L, l), U = pt(H, 4), te = U[0], ie = U[1], ae = U[2], de = U[3], ye = m.useRef(de) de && (ye.current = !0) var me = m.useCallback( function (Qe) { ;(R.current = Qe), ch(f, Qe) }, [f] ), De, se = ze(ze({}, M), {}, { visible: h }) if (!x) De = null else if (te === bu || !n(l)) de ? (De = x(ze({}, se), me)) : !b && ye.current && D ? (De = x(ze(ze({}, se), {}, { className: D }), me)) : S || (!b && !D) ? (De = x(ze(ze({}, se), {}, { style: { display: 'none' } }), me)) : (De = null) else { var oe, fe ie === bo ? (fe = 'prepare') : L_(ie) ? (fe = 'active') : ie === Su && (fe = 'start'), (De = x( ze( ze({}, se), {}, { className: bt()( T_(k, te), ((oe = {}), O(oe, T_(k, ''.concat(te, '-').concat(fe)), fe), O(oe, k, typeof k == 'string'), oe) ), style: ae, } ), me )) } if (m.isValidElement(De) && xf(De)) { var Oe = De, Ve = Oe.ref Ve || (De = m.cloneElement(De, { ref: me })) } return m.createElement(US, { ref: j }, De) }) return (a.displayName = 'CSSMotion'), a } var F_ = WS(E_), fh = 'add', ph = 'keep', gh = 'remove', mh = 'removed' function VS(e) { var t return ( e && ln(e) === 'object' && 'key' in e ? (t = e) : (t = { key: e }), ze(ze({}, t), {}, { key: String(t.key) }) ) } function hh() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [] return e.map(VS) } function GS() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = [], a = 0, l = t.length, f = hh(e), g = hh(t) f.forEach(function (b) { for (var S = !1, x = a; x < l; x += 1) { var k = g[x] if (k.key === b.key) { a < x && ((n = n.concat( g.slice(a, x).map(function (D) { return ze(ze({}, D), {}, { status: fh }) }) )), (a = x)), n.push(ze(ze({}, k), {}, { status: ph })), (a += 1), (S = !0) break } } S || n.push(ze(ze({}, b), {}, { status: gh })) }), a < l && (n = n.concat( g.slice(a).map(function (b) { return ze(ze({}, b), {}, { status: fh }) }) )) var h = {} n.forEach(function (b) { var S = b.key h[S] = (h[S] || 0) + 1 }) var _ = Object.keys(h).filter(function (b) { return h[b] > 1 }) return ( _.forEach(function (b) { ;(n = n.filter(function (S) { var x = S.key, k = S.status return x !== b || k !== gh })), n.forEach(function (S) { S.key === b && (S.status = ph) }) }), n ) } var XS = ['component', 'children', 'onVisibleChanged', 'onAllRemoved'], KS = ['status'], YS = [ 'eventProps', 'visible', 'children', 'motionName', 'motionAppear', 'motionEnter', 'motionLeave', 'motionLeaveImmediately', 'motionDeadline', 'removeOnLeave', 'leavedClassName', 'onAppearStart', 'onAppearActive', 'onAppearEnd', 'onEnterStart', 'onEnterActive', 'onEnterEnd', 'onLeaveStart', 'onLeaveActive', 'onLeaveEnd', ] function qS(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : F_, n = (function (a) { Fl(f, a) var l = $l(f) function f() { var g tr(this, f) for (var h = arguments.length, _ = new Array(h), b = 0; b < h; b++) _[b] = arguments[b] return ( (g = l.call.apply(l, [this].concat(_))), O(Ps(g), 'state', { keyEntities: [] }), O(Ps(g), 'removeKey', function (S) { var x = g.state.keyEntities, k = x.map(function (D) { return D.key !== S ? D : ze(ze({}, D), {}, { status: mh }) }) return ( g.setState({ keyEntities: k }), k.filter(function (D) { var M = D.status return M !== mh }).length ) }), g ) } return ( mn( f, [ { key: 'render', value: function () { var h = this, _ = this.state.keyEntities, b = this.props, S = b.component, x = b.children, k = b.onVisibleChanged, D = b.onAllRemoved, M = Kn(b, XS), P = S || m.Fragment, R = {} return ( YS.forEach(function (j) { ;(R[j] = M[j]), delete M[j] }), delete M.keys, m.createElement( P, M, _.map(function (j) { var L = j.status, H = Kn(j, KS), U = L === fh || L === ph return m.createElement( t, Xt({}, R, { key: H.key, visible: U, eventProps: H, onVisibleChanged: function (ie) { if ((k == null || k(ie, { key: H.key }), !ie)) { var ae = h.removeKey(H.key) ae === 0 && D && D() } }, }), x ) }) ) ) }, }, ], [ { key: 'getDerivedStateFromProps', value: function (h, _) { var b = h.keys, S = _.keyEntities, x = hh(b), k = GS(S, x) return { keyEntities: k.filter(function (D) { var M = S.find(function (P) { var R = P.key return D.key === R }) return !(M && M.status === mh && D.status === gh) }), } }, }, ] ), f ) })(m.Component) return O(n, 'defaultProps', { component: 'div' }), n } var QS = qS(E_), So = F_, Bt = { MAC_ENTER: 3, BACKSPACE: 8, TAB: 9, NUM_CENTER: 12, ENTER: 13, SHIFT: 16, CTRL: 17, ALT: 18, PAUSE: 19, CAPS_LOCK: 20, ESC: 27, SPACE: 32, PAGE_UP: 33, PAGE_DOWN: 34, END: 35, HOME: 36, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, PRINT_SCREEN: 44, INSERT: 45, DELETE: 46, ZERO: 48, ONE: 49, TWO: 50, THREE: 51, FOUR: 52, FIVE: 53, SIX: 54, SEVEN: 55, EIGHT: 56, NINE: 57, QUESTION_MARK: 63, A: 65, B: 66, C: 67, D: 68, E: 69, F: 70, G: 71, H: 72, I: 73, J: 74, K: 75, L: 76, M: 77, N: 78, O: 79, P: 80, Q: 81, R: 82, S: 83, T: 84, U: 85, V: 86, W: 87, X: 88, Y: 89, Z: 90, META: 91, WIN_KEY_RIGHT: 92, CONTEXT_MENU: 93, NUM_ZERO: 96, NUM_ONE: 97, NUM_TWO: 98, NUM_THREE: 99, NUM_FOUR: 100, NUM_FIVE: 101, NUM_SIX: 102, NUM_SEVEN: 103, NUM_EIGHT: 104, NUM_NINE: 105, NUM_MULTIPLY: 106, NUM_PLUS: 107, NUM_MINUS: 109, NUM_PERIOD: 110, NUM_DIVISION: 111, F1: 112, F2: 113, F3: 114, F4: 115, F5: 116, F6: 117, F7: 118, F8: 119, F9: 120, F10: 121, F11: 122, F12: 123, NUMLOCK: 144, SEMICOLON: 186, DASH: 189, EQUALS: 187, COMMA: 188, PERIOD: 190, SLASH: 191, APOSTROPHE: 192, SINGLE_QUOTE: 222, OPEN_SQUARE_BRACKET: 219, BACKSLASH: 220, CLOSE_SQUARE_BRACKET: 221, WIN_KEY: 224, MAC_FF_META: 224, WIN_IME: 229, isTextModifyingKeyEvent: function (t) { var n = t.keyCode if ((t.altKey && !t.ctrlKey) || t.metaKey || (n >= Bt.F1 && n <= Bt.F12)) return !1 switch (n) { case Bt.ALT: case Bt.CAPS_LOCK: case Bt.CONTEXT_MENU: case Bt.CTRL: case Bt.DOWN: case Bt.END: case Bt.ESC: case Bt.HOME: case Bt.INSERT: case Bt.LEFT: case Bt.MAC_FF_META: case Bt.META: case Bt.NUMLOCK: case Bt.NUM_CENTER: case Bt.PAGE_DOWN: case Bt.PAGE_UP: case Bt.PAUSE: case Bt.PRINT_SCREEN: case Bt.RIGHT: case Bt.SHIFT: case Bt.UP: case Bt.WIN_KEY: case Bt.WIN_KEY_RIGHT: return !1 default: return !0 } }, isCharacterKey: function (t) { if ( (t >= Bt.ZERO && t <= Bt.NINE) || (t >= Bt.NUM_ZERO && t <= Bt.NUM_MULTIPLY) || (t >= Bt.A && t <= Bt.Z) || (window.navigator.userAgent.indexOf('WebKit') !== -1 && t === 0) ) return !0 switch (t) { case Bt.SPACE: case Bt.QUESTION_MARK: case Bt.NUM_PLUS: case Bt.NUM_MINUS: case Bt.NUM_PERIOD: case Bt.NUM_DIVISION: case Bt.SEMICOLON: case Bt.DASH: case Bt.EQUALS: case Bt.COMMA: case Bt.PERIOD: case Bt.SLASH: case Bt.APOSTROPHE: case Bt.SINGLE_QUOTE: case Bt.OPEN_SQUARE_BRACKET: case Bt.BACKSLASH: case Bt.CLOSE_SQUARE_BRACKET: return !0 default: return !1 } }, }, vh = Bt, JS = m.forwardRef(function (e, t) { var n = e.prefixCls, a = e.style, l = e.className, f = e.duration, g = f === void 0 ? 4.5 : f, h = e.eventKey, _ = e.content, b = e.closable, S = e.closeIcon, x = S === void 0 ? 'x' : S, k = e.props, D = e.onClick, M = e.onNoticeClose, P = e.times, R = m.useState(!1), j = pt(R, 2), L = j[0], H = j[1], U = function () { M(h) }, te = function (de) { ;(de.key === 'Enter' || de.code === 'Enter' || de.keyCode === vh.ENTER) && U() } m.useEffect( function () { if (!L && g > 0) { var ae = setTimeout(function () { U() }, g * 1e3) return function () { clearTimeout(ae) } } }, [g, L, P] ) var ie = ''.concat(n, '-notice') return m.createElement( 'div', Xt({}, k, { ref: t, className: bt()(ie, l, O({}, ''.concat(ie, '-closable'), b)), style: a, onMouseEnter: function () { H(!0) }, onMouseLeave: function () { H(!1) }, onClick: D, }), m.createElement('div', { className: ''.concat(ie, '-content') }, _), b && m.createElement( 'a', { tabIndex: 0, className: ''.concat(ie, '-close'), onKeyDown: te, onClick: function (de) { de.preventDefault(), de.stopPropagation(), U() }, }, x ) ) }), _h = JS, ZS = m.forwardRef(function (e, t) { var n = e.prefixCls, a = n === void 0 ? 'rc-notification' : n, l = e.container, f = e.motion, g = e.maxCount, h = e.className, _ = e.style, b = e.onAllRemoved, S = m.useState([]), x = pt(S, 2), k = x[0], D = x[1], M = function (ae) { var de, ye = k.find(function (me) { return me.key === ae }) ye == null || (de = ye.onClose) === null || de === void 0 || de.call(ye), D(function (me) { return me.filter(function (De) { return De.key !== ae }) }) } m.useImperativeHandle(t, function () { return { open: function (ae) { D(function (de) { var ye = kt(de), me = ye.findIndex(function (oe) { return oe.key === ae.key }), De = ze({}, ae) if (me >= 0) { var se ;(De.times = (((se = de[me]) === null || se === void 0 ? void 0 : se.times) || 0) + 1), (ye[me] = De) } else (De.times = 0), ye.push(De) return g > 0 && ye.length > g && (ye = ye.slice(-g)), ye }) }, close: function (ae) { M(ae) }, destroy: function () { D([]) }, } }) var P = m.useState({}), R = pt(P, 2), j = R[0], L = R[1] m.useEffect( function () { var ie = {} k.forEach(function (ae) { var de = ae.placement, ye = de === void 0 ? 'topRight' : de ye && ((ie[ye] = ie[ye] || []), ie[ye].push(ae)) }), Object.keys(j).forEach(function (ae) { ie[ae] = ie[ae] || [] }), L(ie) }, [k] ) var H = function (ae) { L(function (de) { var ye = ze({}, de), me = ye[ae] || [] return me.length || delete ye[ae], ye }) }, U = m.useRef(!1) if ( (m.useEffect( function () { Object.keys(j).length > 0 ? (U.current = !0) : U.current && (b == null || b(), (U.current = !1)) }, [j] ), !l) ) return null var te = Object.keys(j) return (0, Os.createPortal)( m.createElement( m.Fragment, null, te.map(function (ie) { var ae = j[ie], de = ae.map(function (me) { return { config: me, key: me.key } }), ye = typeof f == 'function' ? f(ie) : f return m.createElement( QS, Xt( { key: ie, className: bt()(a, ''.concat(a, '-').concat(ie), h == null ? void 0 : h(ie)), style: _ == null ? void 0 : _(ie), keys: de, motionAppear: !0, }, ye, { onAllRemoved: function () { H(ie) }, } ), function (me, De) { var se = me.config, oe = me.className, fe = me.style, Oe = se.key, Ve = se.times, Qe = se.className, ft = se.style return m.createElement( _h, Xt({}, se, { ref: De, prefixCls: a, className: bt()(oe, Qe), style: ze(ze({}, fe), ft), times: Ve, key: Oe, eventKey: Oe, onNoticeClose: M, }) ) } ) }) ), l ) }), ew = ZS, tw = ['getContainer', 'motion', 'prefixCls', 'maxCount', 'className', 'style', 'onAllRemoved'], nw = function () { return document.body }, $_ = 0 function rw() { for (var e = {}, t = arguments.length, n = new Array(t), a = 0; a < t; a++) n[a] = arguments[a] return ( n.forEach(function (l) { l && Object.keys(l).forEach(function (f) { var g = l[f] g !== void 0 && (e[f] = g) }) }), e ) } function H_() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.getContainer, n = t === void 0 ? nw : t, a = e.motion, l = e.prefixCls, f = e.maxCount, g = e.className, h = e.style, _ = e.onAllRemoved, b = Kn(e, tw), S = m.useState(), x = pt(S, 2), k = x[0], D = x[1], M = m.useRef(), P = m.createElement(ew, { container: k, ref: M, prefixCls: l, motion: a, maxCount: f, className: g, style: h, onAllRemoved: _, }), R = m.useState([]), j = pt(R, 2), L = j[0], H = j[1], U = m.useMemo(function () { return { open: function (ie) { var ae = rw(b, ie) ;(ae.key === null || ae.key === void 0) && ((ae.key = 'rc-notification-'.concat($_)), ($_ += 1)), H(function (de) { return [].concat(kt(de), [{ type: 'open', config: ae }]) }) }, close: function (ie) { H(function (ae) { return [].concat(kt(ae), [{ type: 'close', key: ie }]) }) }, destroy: function () { H(function (ie) { return [].concat(kt(ie), [{ type: 'destroy' }]) }) }, } }, []) return ( m.useEffect(function () { D(n()) }), m.useEffect( function () { M.current && L.length && (L.forEach(function (te) { switch (te.type) { case 'open': M.current.open(te.config) break case 'close': M.current.close(te.key) break case 'destroy': M.current.destroy() break } }), H([])) }, [L] ), [U, P] ) } const B_ = typeof CSSINJS_STATISTIC != 'undefined' let yh = !0 function Ri() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] if (!B_) return Object.assign.apply(Object, [{}].concat(t)) yh = !1 const a = {} return ( t.forEach((l) => { Object.keys(l).forEach((g) => { Object.defineProperty(a, g, { configurable: !0, enumerable: !0, get: () => l[g] }) }) }), (yh = !0), a ) } const iw = {}, $P = {} function aw() {} function ow(e) { let t, n = e, a = aw return ( B_ && ((t = new Set()), (n = new Proxy(e, { get(l, f) { return yh && t.add(f), l[f] }, })), (a = (l, f) => { iw[l] = { global: Array.from(t), component: f } })), { token: n, keys: t, flush: a } ) } function Aa(e, t, n, a) { return (l) => { const [f, g, h] = Es(), { getPrefixCls: _, iconPrefixCls: b, csp: S } = (0, m.useContext)(Lt), x = _(), k = { theme: f, token: g, hashId: h, nonce: () => (S == null ? void 0 : S.nonce) } return ( ai(Object.assign(Object.assign({}, k), { path: ['Shared', x] }), () => [{ '&': rS(g) }]), [ ai(Object.assign(Object.assign({}, k), { path: [e, l, b] }), () => { const { token: D, flush: M } = ow(g), P = typeof n == 'function' ? n(D) : n, R = Object.assign(Object.assign({}, P), g[e]), j = `.${l}`, L = Ri(D, { componentCls: j, prefixCls: l, iconCls: `.${b}`, antCls: `.${x}` }, R), H = t(L, { hashId: h, prefixCls: l, rootPrefixCls: x, iconPrefixCls: b, overrideComponentToken: g[e] }) return M(e, R), [(a == null ? void 0 : a.resetStyle) === !1 ? null : iS(g, l), H] }), h, ] ) } } const sw = (e) => { const { componentCls: t, iconCls: n, boxShadow: a, colorText: l, colorBgElevated: f, colorSuccess: g, colorError: h, colorWarning: _, colorInfo: b, fontSizeLG: S, motionEaseInOutCirc: x, motionDurationSlow: k, marginXS: D, paddingXS: M, borderRadiusLG: P, zIndexPopup: R, messageNoticeContentPadding: j, } = e, L = new cn('MessageMoveIn', { '0%': { padding: 0, transform: 'translateY(-100%)', opacity: 0 }, '100%': { padding: M, transform: 'translateY(0)', opacity: 1 }, }), H = new cn('MessageMoveOut', { '0%': { maxHeight: e.height, padding: M, opacity: 1 }, '100%': { maxHeight: 0, padding: 0, opacity: 0 }, }) return [ { [t]: Object.assign(Object.assign({}, yo(e)), { color: l, position: 'fixed', top: D, width: '100%', pointerEvents: 'none', zIndex: R, [`${t}-move-up`]: { animationFillMode: 'forwards' }, [` ${t}-move-up-appear, ${t}-move-up-enter `]: { animationName: L, animationDuration: k, animationPlayState: 'paused', animationTimingFunction: x }, [` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active `]: { animationPlayState: 'running' }, [`${t}-move-up-leave`]: { animationName: H, animationDuration: k, animationPlayState: 'paused', animationTimingFunction: x, }, [`${t}-move-up-leave${t}-move-up-leave-active`]: { animationPlayState: 'running' }, '&-rtl': { direction: 'rtl', span: { direction: 'rtl' } }, }), }, { [`${t}-notice`]: { padding: M, textAlign: 'center', [`${t}-custom-content > ${n}`]: { verticalAlign: 'text-bottom', marginInlineEnd: D, fontSize: S }, [`${t}-notice-content`]: { display: 'inline-block', padding: j, background: f, borderRadius: P, boxShadow: a, pointerEvents: 'all', }, [`${t}-success > ${n}`]: { color: g }, [`${t}-error > ${n}`]: { color: h }, [`${t}-warning > ${n}`]: { color: _ }, [` ${t}-info > ${n}, ${t}-loading > ${n}`]: { color: b }, }, }, { [`${t}-notice-pure-panel`]: { padding: 0, textAlign: 'start' } }, ] } var U_ = Aa( 'Message', (e) => { const t = Ri(e, { messageNoticeContentPadding: `${(e.controlHeightLG - e.fontSize * e.lineHeight) / 2}px ${e.paddingSM}px`, }) return [sw(t)] }, (e) => ({ height: 150, zIndexPopup: e.zIndexPopupBase + 10 }) ), lw = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const cw = { info: m.createElement(sg, null), success: m.createElement(og, null), error: m.createElement(ag, null), warning: m.createElement(ig, null), loading: m.createElement(rg, null), } function W_(e) { let { prefixCls: t, type: n, icon: a, children: l } = e return m.createElement( 'div', { className: bt()(`${t}-custom-content`, `${t}-${n}`) }, a || cw[n], m.createElement('span', null, l) ) } function uw(e) { const { prefixCls: t, className: n, type: a, icon: l, content: f } = e, g = lw(e, ['prefixCls', 'className', 'type', 'icon', 'content']), { getPrefixCls: h } = m.useContext(Lt), _ = t || h('message'), [, b] = U_(_) return m.createElement( _h, Object.assign({}, g, { prefixCls: _, className: bt()(n, b, `${_}-notice-pure-panel`), eventKey: 'pure', duration: null, content: m.createElement(W_, { prefixCls: _, type: a, icon: l }, f), }) ) } var dw = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z', }, }, ], }, name: 'close', theme: 'outlined', }, fw = dw, V_ = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: fw })) } V_.displayName = 'CloseOutlined' var gg = m.forwardRef(V_) function pw(e, t) { return { motionName: t != null ? t : `${e}-move-up` } } function bh(e) { let t const n = new Promise((l) => { t = e(() => { l(!0) }) }), a = () => { t == null || t() } return (a.then = (l, f) => n.then(l, f)), (a.promise = n), a } var gw = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const mw = 8, hw = 3, vw = m.forwardRef((e, t) => { const { top: n, prefixCls: a, getContainer: l, maxCount: f, duration: g = hw, rtl: h, transitionName: _, onAllRemoved: b, } = e, { getPrefixCls: S, getPopupContainer: x } = m.useContext(Lt), k = a || S('message'), [, D] = U_(k), M = () => ({ left: '50%', transform: 'translateX(-50%)', top: n != null ? n : mw }), P = () => bt()(D, h ? `${k}-rtl` : ''), R = () => pw(k, _), j = m.createElement( 'span', { className: `${k}-close-x` }, m.createElement(gg, { className: `${k}-close-icon` }) ), [L, H] = H_({ prefixCls: k, style: M, className: P, motion: R, closable: !1, closeIcon: j, duration: g, getContainer: () => (l == null ? void 0 : l()) || (x == null ? void 0 : x()) || document.body, maxCount: f, onAllRemoved: b, }) return m.useImperativeHandle(t, () => Object.assign(Object.assign({}, L), { prefixCls: k, hashId: D })), H }) let G_ = 0 function X_(e) { const t = m.useRef(null) return [ m.useMemo(() => { const a = (_) => { var b ;(b = t.current) === null || b === void 0 || b.close(_) }, l = (_) => { if (!t.current) { const te = () => {} return (te.then = () => {}), te } const { open: b, prefixCls: S, hashId: x } = t.current, k = `${S}-notice`, { content: D, icon: M, type: P, key: R, className: j, onClose: L } = _, H = gw(_, ['content', 'icon', 'type', 'key', 'className', 'onClose']) let U = R return ( U == null && ((G_ += 1), (U = `antd-message-${G_}`)), bh( (te) => ( b( Object.assign(Object.assign({}, H), { key: U, content: m.createElement(W_, { prefixCls: S, type: P, icon: M }, D), placement: 'top', className: bt()(P && `${k}-${P}`, x, j), onClose: () => { L == null || L(), te() }, }) ), () => { a(U) } ) ) ) }, g = { open: l, destroy: (_) => { var b _ !== void 0 ? a(_) : (b = t.current) === null || b === void 0 || b.destroy() }, } return ( ['info', 'success', 'warning', 'error', 'loading'].forEach((_) => { const b = (S, x, k) => { let D S && typeof S == 'object' && 'content' in S ? (D = S) : (D = { content: S }) let M, P typeof x == 'function' ? (P = x) : ((M = x), (P = k)) const R = Object.assign(Object.assign({ onClose: P, duration: M }, D), { type: _ }) return l(R) } g[_] = b }), g ) }, []), m.createElement(vw, Object.assign({ key: 'message-holder' }, e, { ref: t })), ] } function _w(e) { return X_(e) } let Mi = null, Ql = (e) => e(), Cf = [], mg = {} function yw() { const { prefixCls: e, getContainer: t, duration: n, rtl: a, maxCount: l, top: f } = mg, g = e != null ? e : Sf().getPrefixCls('message'), h = (t == null ? void 0 : t()) || document.body return { prefixCls: g, container: h, duration: n, rtl: a, maxCount: l, top: f } } const bw = m.forwardRef((e, t) => { const n = () => { const { prefixCls: x, container: k, maxCount: D, duration: M, rtl: P, top: R } = yw() return { prefixCls: x, getContainer: () => k, maxCount: D, duration: M, rtl: P, top: R } }, [a, l] = m.useState(n), [f, g] = X_(a), h = Sf(), _ = h.getRootPrefixCls(), b = h.getIconPrefixCls(), S = () => { l(n) } return ( m.useEffect(S, []), m.useImperativeHandle(t, () => { const x = Object.assign({}, f) return ( Object.keys(x).forEach((k) => { x[k] = function () { return S(), f[k].apply(f, arguments) } }), { instance: x, sync: S } ) }), m.createElement(eg, { prefixCls: _, iconPrefixCls: b }, g) ) }) function hg() { if (!Mi) { const e = document.createDocumentFragment(), t = { fragment: e } ;(Mi = t), Ql(() => { Ds( m.createElement(bw, { ref: (n) => { const { instance: a, sync: l } = n || {} Promise.resolve().then(() => { !t.instance && a && ((t.instance = a), (t.sync = l), hg()) }) }, }), e ) }) return } Mi.instance && (Cf.forEach((e) => { const { type: t, skipped: n } = e if (!n) switch (t) { case 'open': { Ql(() => { const a = Mi.instance.open(Object.assign(Object.assign({}, mg), e.config)) a == null || a.then(e.resolve), e.setCloseFn(a) }) break } case 'destroy': Ql(() => { Mi == null || Mi.instance.destroy(e.key) }) break default: Ql(() => { var a const l = (a = Mi.instance)[t].apply(a, kt(e.args)) l == null || l.then(e.resolve), e.setCloseFn(l) }) } }), (Cf = [])) } function Sw(e) { ;(mg = Object.assign(Object.assign({}, mg), e)), Ql(() => { var t ;(t = Mi == null ? void 0 : Mi.sync) === null || t === void 0 || t.call(Mi) }) } function ww(e) { const t = bh((n) => { let a const l = { type: 'open', config: e, resolve: n, setCloseFn: (f) => { a = f }, } return ( Cf.push(l), () => { a ? Ql(() => { a() }) : (l.skipped = !0) } ) }) return hg(), t } function xw(e, t) { const n = bh((a) => { let l const f = { type: e, args: t, resolve: a, setCloseFn: (g) => { l = g }, } return ( Cf.push(f), () => { l ? Ql(() => { l() }) : (f.skipped = !0) } ) }) return hg(), n } function Cw(e) { Cf.push({ type: 'destroy', key: e }), hg() } const Ew = ['success', 'info', 'warning', 'error', 'loading'], K_ = { open: ww, destroy: Cw, config: Sw, useMessage: _w, _InternalPanelDoNotUseOrYouWillBeFired: uw } Ew.forEach((e) => { K_[e] = function () { for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++) n[a] = arguments[a] return xw(e, n) } }) const BP = () => {} let UP = null, WP = null var kw = K_, Ow = (e) => { const { componentCls: t, width: n, notificationMarginEdge: a } = e, l = new cn('antNotificationTopFadeIn', { '0%': { marginTop: '-100%', opacity: 0 }, '100%': { marginTop: 0, opacity: 1 }, }), f = new cn('antNotificationBottomFadeIn', { '0%': { marginBottom: '-100%', opacity: 0 }, '100%': { marginBottom: 0, opacity: 1 }, }), g = new cn('antNotificationLeftFadeIn', { '0%': { right: { _skip_check_: !0, value: n }, opacity: 0 }, '100%': { right: { _skip_check_: !0, value: 0 }, opacity: 1 }, }) return { [`&${t}-top, &${t}-bottom`]: { marginInline: 0 }, [`&${t}-top`]: { [`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]: { animationName: l }, }, [`&${t}-bottom`]: { [`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]: { animationName: f }, }, [`&${t}-topLeft, &${t}-bottomLeft`]: { marginInlineEnd: 0, marginInlineStart: a, [`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]: { animationName: g }, }, } } const Tw = (e) => { const { iconCls: t, componentCls: n, boxShadow: a, fontSizeLG: l, notificationMarginBottom: f, borderRadiusLG: g, colorSuccess: h, colorInfo: _, colorWarning: b, colorError: S, colorTextHeading: x, notificationBg: k, notificationPadding: D, notificationMarginEdge: M, motionDurationMid: P, motionEaseInOut: R, fontSize: j, lineHeight: L, width: H, notificationIconSize: U, } = e, te = `${n}-notice`, ie = new cn('antNotificationFadeIn', { '0%': { left: { _skip_check_: !0, value: H }, opacity: 0 }, '100%': { left: { _skip_check_: !0, value: 0 }, opacity: 1 }, }), ae = new cn('antNotificationFadeOut', { '0%': { maxHeight: e.animationMaxHeight, marginBottom: f, opacity: 1 }, '100%': { maxHeight: 0, marginBottom: 0, paddingTop: 0, paddingBottom: 0, opacity: 0 }, }) return [ { [n]: Object.assign( Object.assign( Object.assign(Object.assign({}, yo(e)), { position: 'fixed', zIndex: e.zIndexPopup, marginInlineEnd: M, [`${n}-hook-holder`]: { position: 'relative' }, [`&${n}-top, &${n}-bottom`]: { [`${n}-notice`]: { marginInline: 'auto auto' } }, [`&${n}-topLeft, &${n}-bottomLeft`]: { [`${n}-notice`]: { marginInlineEnd: 'auto', marginInlineStart: 0 }, }, [`${n}-fade-enter, ${n}-fade-appear`]: { animationDuration: e.motionDurationMid, animationTimingFunction: R, animationFillMode: 'both', opacity: 0, animationPlayState: 'paused', }, [`${n}-fade-leave`]: { animationTimingFunction: R, animationFillMode: 'both', animationDuration: P, animationPlayState: 'paused', }, [`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]: { animationName: ie, animationPlayState: 'running', }, [`${n}-fade-leave${n}-fade-leave-active`]: { animationName: ae, animationPlayState: 'running' }, }), Ow(e) ), { '&-rtl': { direction: 'rtl', [`${n}-notice-btn`]: { float: 'left' } } } ), }, { [te]: { position: 'relative', width: H, maxWidth: `calc(100vw - ${M * 2}px)`, marginBottom: f, marginInlineStart: 'auto', padding: D, overflow: 'hidden', lineHeight: L, wordWrap: 'break-word', background: k, borderRadius: g, boxShadow: a, [`${n}-close-icon`]: { fontSize: j, cursor: 'pointer' }, [`${te}-message`]: { marginBottom: e.marginXS, color: x, fontSize: l, lineHeight: e.lineHeightLG }, [`${te}-description`]: { fontSize: j }, [`&${te}-closable ${te}-message`]: { paddingInlineEnd: e.paddingLG }, [`${te}-with-icon ${te}-message`]: { marginBottom: e.marginXS, marginInlineStart: e.marginSM + U, fontSize: l, }, [`${te}-with-icon ${te}-description`]: { marginInlineStart: e.marginSM + U, fontSize: j }, [`${te}-icon`]: { position: 'absolute', fontSize: U, lineHeight: 0, [`&-success${t}`]: { color: h }, [`&-info${t}`]: { color: _ }, [`&-warning${t}`]: { color: b }, [`&-error${t}`]: { color: S }, }, [`${te}-close`]: { position: 'absolute', top: e.notificationPaddingVertical, insetInlineEnd: e.notificationPaddingHorizontal, color: e.colorIcon, outline: 'none', width: e.notificationCloseButtonSize, height: e.notificationCloseButtonSize, borderRadius: e.borderRadiusSM, transition: `background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`, display: 'flex', alignItems: 'center', justifyContent: 'center', '&:hover': { color: e.colorIconHover, backgroundColor: e.wireframe ? 'transparent' : e.colorFillContent }, }, [`${te}-btn`]: { float: 'right', marginTop: e.marginSM }, }, }, { [`${te}-pure-panel`]: { margin: 0 } }, ] } var Y_ = Aa( 'Notification', (e) => { const t = e.paddingMD, n = e.paddingLG, a = Ri(e, { notificationBg: e.colorBgElevated, notificationPaddingVertical: t, notificationPaddingHorizontal: n, notificationPadding: `${e.paddingMD}px ${e.paddingContentHorizontalLG}px`, notificationMarginBottom: e.margin, notificationMarginEdge: e.marginLG, animationMaxHeight: 150, notificationIconSize: e.fontSizeLG * e.lineHeightLG, notificationCloseButtonSize: e.controlHeightLG * 0.55, }) return [Tw(a)] }, (e) => ({ zIndexPopup: e.zIndexPopupBase + 50, width: 384 }) ), Dw = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const GP = { info: m.createElement(sg, null), success: m.createElement(og, null), error: m.createElement(ag, null), warning: m.createElement(ig, null), loading: m.createElement(rg, null), } function q_(e, t) { return ( t || m.createElement('span', { className: `${e}-close-x` }, m.createElement(gg, { className: `${e}-close-icon` })) ) } const Pw = { success: og, info: sg, error: ag, warning: ig } function Q_(e) { let { prefixCls: t, icon: n, type: a, message: l, description: f, btn: g } = e, h = null return ( n ? (h = m.createElement('span', { className: `${t}-icon` }, n)) : a && (h = m.createElement(Pw[a] || null, { className: bt()(`${t}-icon`, `${t}-icon-${a}`) })), m.createElement( 'div', { className: bt()({ [`${t}-with-icon`]: h }), role: 'alert' }, h, m.createElement('div', { className: `${t}-message` }, l), m.createElement('div', { className: `${t}-description` }, f), g && m.createElement('div', { className: `${t}-btn` }, g) ) ) } function Iw(e) { const { prefixCls: t, className: n, icon: a, type: l, message: f, description: g, btn: h, closable: _ = !0, closeIcon: b, } = e, S = Dw(e, ['prefixCls', 'className', 'icon', 'type', 'message', 'description', 'btn', 'closable', 'closeIcon']), { getPrefixCls: x } = m.useContext(Lt), k = t || x('notification'), D = `${k}-notice`, [, M] = Y_(k) return m.createElement( _h, Object.assign({}, S, { prefixCls: k, className: bt()(n, M, `${D}-pure-panel`), eventKey: 'pure', duration: null, closable: _, closeIcon: q_(k, b), content: m.createElement(Q_, { prefixCls: D, icon: a, type: l, message: f, description: g, btn: h }), }) ) } function Rw(e, t, n) { let a switch (e) { case 'top': a = { left: '50%', transform: 'translateX(-50%)', right: 'auto', top: t, bottom: 'auto' } break case 'topLeft': a = { left: 0, top: t, bottom: 'auto' } break case 'topRight': a = { right: 0, top: t, bottom: 'auto' } break case 'bottom': a = { left: '50%', transform: 'translateX(-50%)', right: 'auto', top: 'auto', bottom: n } break case 'bottomLeft': a = { left: 0, top: 'auto', bottom: n } break default: a = { right: 0, top: 'auto', bottom: n } break } return a } function Mw(e) { return { motionName: `${e}-fade` } } var Aw = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const J_ = 24, Nw = 4.5, jw = m.forwardRef((e, t) => { const { top: n, bottom: a, prefixCls: l, getContainer: f, maxCount: g, rtl: h, onAllRemoved: _ } = e, { getPrefixCls: b, getPopupContainer: S } = m.useContext(Lt), x = l || b('notification'), k = (L) => Rw(L, n != null ? n : J_, a != null ? a : J_), [, D] = Y_(x), M = () => bt()(D, { [`${x}-rtl`]: h }), P = () => Mw(x), [R, j] = H_({ prefixCls: x, style: k, className: M, motion: P, closable: !0, closeIcon: q_(x), duration: Nw, getContainer: () => (f == null ? void 0 : f()) || (S == null ? void 0 : S()) || document.body, maxCount: g, onAllRemoved: _, }) return m.useImperativeHandle(t, () => Object.assign(Object.assign({}, R), { prefixCls: x, hashId: D })), j }) function Z_(e) { const t = m.useRef(null) return [ m.useMemo(() => { const a = (h) => { if (!t.current) return const { open: _, prefixCls: b, hashId: S } = t.current, x = `${b}-notice`, { message: k, description: D, icon: M, type: P, btn: R, className: j } = h, L = Aw(h, ['message', 'description', 'icon', 'type', 'btn', 'className']) return _( Object.assign(Object.assign({ placement: 'topRight' }, L), { content: m.createElement(Q_, { prefixCls: x, icon: M, type: P, message: k, description: D, btn: R }), className: bt()(P && `${x}-${P}`, S, j), }) ) }, f = { open: a, destroy: (h) => { var _, b h !== void 0 ? (_ = t.current) === null || _ === void 0 || _.close(h) : (b = t.current) === null || b === void 0 || b.destroy() }, } return ( ['success', 'info', 'warning', 'error'].forEach((h) => { f[h] = (_) => a(Object.assign(Object.assign({}, _), { type: h })) }), f ) }, []), m.createElement(jw, Object.assign({ key: 'notification-holder' }, e, { ref: t })), ] } function zw(e) { return Z_(e) } let Ki = null, vg = (e) => e(), _g = [], yg = {} function Lw() { const { prefixCls: e, getContainer: t, rtl: n, maxCount: a, top: l, bottom: f } = yg, g = e != null ? e : Sf().getPrefixCls('notification'), h = (t == null ? void 0 : t()) || document.body return { prefixCls: g, container: h, rtl: n, maxCount: a, top: l, bottom: f } } const Fw = m.forwardRef((e, t) => { const [n, a] = m.useState(), [l, f] = m.useState(), [g, h] = m.useState(), [_, b] = m.useState(), [S, x] = m.useState(), [k, D] = m.useState(), [M, P] = Z_({ prefixCls: n, getContainer: () => l, maxCount: g, rtl: _, top: S, bottom: k }), R = Sf(), j = R.getRootPrefixCls(), L = R.getIconPrefixCls(), H = () => { const { prefixCls: U, container: te, maxCount: ie, rtl: ae, top: de, bottom: ye } = Lw() a(U), f(te), h(ie), b(ae), x(de), D(ye) } return ( m.useEffect(H, []), m.useImperativeHandle(t, () => { const U = Object.assign({}, M) return ( Object.keys(U).forEach((te) => { U[te] = function () { return H(), M[te].apply(M, arguments) } }), { instance: U, sync: H } ) }), m.createElement(eg, { prefixCls: j, iconPrefixCls: L }, P) ) }) function Sh() { if (!Ki) { const e = document.createDocumentFragment(), t = { fragment: e } ;(Ki = t), vg(() => { Ds( m.createElement(Fw, { ref: (n) => { const { instance: a, sync: l } = n || {} Promise.resolve().then(() => { !t.instance && a && ((t.instance = a), (t.sync = l), Sh()) }) }, }), e ) }) return } Ki.instance && (_g.forEach((e) => { switch (e.type) { case 'open': { vg(() => { Ki.instance.open(Object.assign(Object.assign({}, yg), e.config)) }) break } case 'destroy': vg(() => { Ki == null || Ki.instance.destroy(e.key) }) break } }), (_g = [])) } function $w(e) { ;(yg = Object.assign(Object.assign({}, yg), e)), vg(() => { var t ;(t = Ki == null ? void 0 : Ki.sync) === null || t === void 0 || t.call(Ki) }) } function e0(e) { _g.push({ type: 'open', config: e }), Sh() } function Hw(e) { _g.push({ type: 'destroy', key: e }), Sh() } const Bw = ['success', 'info', 'warning', 'error'], t0 = { open: e0, destroy: Hw, config: $w, useNotification: zw, _InternalPanelDoNotUseOrYouWillBeFired: Iw } Bw.forEach((e) => { t0[e] = (t) => e0(Object.assign(Object.assign({}, t), { type: e })) }) const KP = () => {} let YP = null var Uw = t0, wh = (e, t) => { const n = m.useContext(Ke), a = m.useMemo(() => { var f const g = t || E[e], h = (f = n == null ? void 0 : n[e]) !== null && f !== void 0 ? f : {} return Object.assign(Object.assign({}, typeof g == 'function' ? g() : g), h || {}) }, [e, t, n]), l = m.useMemo(() => { const f = n == null ? void 0 : n.locale return n != null && n.exist && !f ? E.locale : f }, [n]) return [a, l] } function xh(e, t) { var n = ze({}, e) return ( Array.isArray(t) && t.forEach(function (a) { delete n[a] }), n ) } var n0 = function (e) { if (!e) return !1 if (e instanceof Element) { if (e.offsetParent) return !0 if (e.getBBox) { var t = e.getBBox(), n = t.width, a = t.height if (n || a) return !0 } if (e.getBoundingClientRect) { var l = e.getBoundingClientRect(), f = l.width, g = l.height if (f || g) return !0 } } return !1 } const { isValidElement: Ef } = C function r0(e) { return e && Ef(e) && e.type === m.Fragment } function Ww(e, t, n) { return Ef(e) ? m.cloneElement(e, typeof n == 'function' ? n(e.props || {}) : n) : t } function Hs(e, t) { return Ww(e, e, t) } const Vw = (e) => { const { componentCls: t, colorPrimary: n } = e return { [t]: { position: 'absolute', background: 'transparent', pointerEvents: 'none', boxSizing: 'border-box', color: `var(--wave-color, ${n})`, boxShadow: '0 0 0 0 currentcolor', opacity: 0.2, '&.wave-motion-appear': { transition: [`box-shadow 0.4s ${e.motionEaseOutCirc}`, `opacity 2s ${e.motionEaseOutCirc}`].join(','), '&-active': { boxShadow: '0 0 0 6px currentcolor', opacity: 0 }, }, }, } } var Gw = Aa('Wave', (e) => [Vw(e)]) function Xw(e) { const t = (e || '').match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/) return t && t[1] && t[2] && t[3] ? !(t[1] === t[2] && t[2] === t[3]) : !0 } function Ch(e) { return ( e && e !== '#fff' && e !== '#ffffff' && e !== 'rgb(255, 255, 255)' && e !== 'rgba(255, 255, 255, 1)' && Xw(e) && !/rgba\((?:\d*, ){3}0\)/.test(e) && e !== 'transparent' ) } function Kw(e) { const { borderTopColor: t, borderColor: n, backgroundColor: a } = getComputedStyle(e) return Ch(t) ? t : Ch(n) ? n : Ch(a) ? a : null } function Eh(e) { return Number.isNaN(e) ? 0 : e } const Yw = (e) => { const { className: t, target: n } = e, a = m.useRef(null), [l, f] = m.useState(null), [g, h] = m.useState([]), [_, b] = m.useState(0), [S, x] = m.useState(0), [k, D] = m.useState(0), [M, P] = m.useState(0), [R, j] = m.useState(!1), L = { left: _, top: S, width: k, height: M, borderRadius: g.map((U) => `${U}px`).join(' ') } l && (L['--wave-color'] = l) function H() { const U = getComputedStyle(n) f(Kw(n)) const te = U.position === 'static', { borderLeftWidth: ie, borderTopWidth: ae } = U b(te ? n.offsetLeft : Eh(-parseFloat(ie))), x(te ? n.offsetTop : Eh(-parseFloat(ae))), D(n.offsetWidth), P(n.offsetHeight) const { borderTopLeftRadius: de, borderTopRightRadius: ye, borderBottomLeftRadius: me, borderBottomRightRadius: De, } = U h([de, ye, De, me].map((se) => Eh(parseFloat(se)))) } return ( m.useEffect(() => { if (n) { const U = $s(() => { H(), j(!0) }) let te return ( typeof ResizeObserver != 'undefined' && ((te = new ResizeObserver(H)), te.observe(n)), () => { $s.cancel(U), te == null || te.disconnect() } ) } }, []), R ? m.createElement( So, { visible: !0, motionAppear: !0, motionName: 'wave-motion', motionDeadline: 5e3, onAppearEnd: (U, te) => { var ie if (te.deadline || te.propertyName === 'opacity') { const ae = (ie = a.current) === null || ie === void 0 ? void 0 : ie.parentElement Kd(ae).then(() => { var de ;(de = ae.parentElement) === null || de === void 0 || de.removeChild(ae) }) } return !1 }, }, (U) => { let { className: te } = U return m.createElement('div', { ref: a, className: bt()(t, te), style: L }) } ) : null ) } function qw(e, t) { const n = document.createElement('div') ;(n.style.position = 'absolute'), (n.style.left = '0px'), (n.style.top = '0px'), e == null || e.insertBefore(n, e == null ? void 0 : e.firstChild), Ds(m.createElement(Yw, { target: e, className: t }), n) } function Qw(e, t) { function n() { const a = e.current qw(a, t) } return n } var Jw = (e) => { const { children: t, disabled: n } = e, { getPrefixCls: a } = (0, m.useContext)(Lt), l = (0, m.useRef)(null), f = a('wave'), [, g] = Gw(f), h = Qw(l, bt()(f, g)) if ( (m.useEffect(() => { const b = l.current if (!b || b.nodeType !== 1 || n) return const S = (x) => { x.target.tagName === 'INPUT' || !n0(x.target) || !b.getAttribute || b.getAttribute('disabled') || b.disabled || b.className.includes('disabled') || b.className.includes('-leave') || h() } return ( b.addEventListener('click', S, !0), () => { b.removeEventListener('click', S, !0) } ) }, [n]), !m.isValidElement(t)) ) return t != null ? t : null const _ = xf(t) ? cg(t.ref, l) : l return Hs(t, { ref: _ }) }, Zw = (e) => { const { componentCls: t } = e return { [t]: { display: 'inline-flex', '&-block': { display: 'flex', width: '100%' }, '&-vertical': { flexDirection: 'column' }, }, } } const ex = (e) => { const { componentCls: t } = e return { [t]: { display: 'inline-flex', '&-rtl': { direction: 'rtl' }, '&-vertical': { flexDirection: 'column' }, '&-align': { flexDirection: 'column', '&-center': { alignItems: 'center' }, '&-start': { alignItems: 'flex-start' }, '&-end': { alignItems: 'flex-end' }, '&-baseline': { alignItems: 'baseline' }, }, [`${t}-item:empty`]: { display: 'none' }, }, } } var i0 = Aa( 'Space', (e) => [ex(e), Zw(e)], () => ({}), { resetStyle: !1 } ), a0 = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const bg = m.createContext(null), tx = (e, t) => { const n = m.useContext(bg), a = m.useMemo(() => { if (!n) return '' const { compactDirection: l, isFirstItem: f, isLastItem: g } = n, h = l === 'vertical' ? '-vertical-' : '-' return bt()({ [`${e}-compact${h}item`]: !0, [`${e}-compact${h}first-item`]: f, [`${e}-compact${h}last-item`]: g, [`${e}-compact${h}item-rtl`]: t === 'rtl', }) }, [e, t, n]) return { compactSize: n == null ? void 0 : n.compactSize, compactDirection: n == null ? void 0 : n.compactDirection, compactItemClassnames: a, } }, nx = (e) => { let { children: t } = e return m.createElement(bg.Provider, { value: null }, t) }, rx = (e) => { var { children: t } = e, n = a0(e, ['children']) return m.createElement(bg.Provider, { value: n }, t) } var ix = (e) => { const { getPrefixCls: t, direction: n } = m.useContext(Lt), { size: a = 'middle', direction: l, block: f, prefixCls: g, className: h, rootClassName: _, children: b } = e, S = a0(e, ['size', 'direction', 'block', 'prefixCls', 'className', 'rootClassName', 'children']), x = t('space-compact', g), [k, D] = i0(x), M = bt()(x, D, { [`${x}-rtl`]: n === 'rtl', [`${x}-block`]: f, [`${x}-vertical`]: l === 'vertical' }, h, _), P = m.useContext(bg), R = fo(b), j = m.useMemo( () => R.map((L, H) => { const U = (L && L.key) || `${x}-item-${H}` return m.createElement( rx, { key: U, compactSize: a, compactDirection: l, isFirstItem: H === 0 && (!P || (P == null ? void 0 : P.isFirstItem)), isLastItem: H === R.length - 1 && (!P || (P == null ? void 0 : P.isLastItem)), }, L ) }), [a, R, P] ) return R.length === 0 ? null : k(m.createElement('div', Object.assign({ className: M }, S), j)) } const kh = () => ({ width: 0, opacity: 0, transform: 'scale(0)' }), Oh = (e) => ({ width: e.scrollWidth, opacity: 1, transform: 'scale(1)' }) var ax = (e) => { let { prefixCls: t, loading: n, existIcon: a } = e const l = !!n return a ? m.createElement('span', { className: `${t}-loading-icon` }, m.createElement(rg, null)) : m.createElement( So, { visible: l, motionName: `${t}-loading-icon-motion`, removeOnLeave: !0, onAppearStart: kh, onAppearActive: Oh, onEnterStart: kh, onEnterActive: Oh, onLeaveStart: Oh, onLeaveActive: kh, }, (f, g) => { let { className: h, style: _ } = f return m.createElement( 'span', { className: `${t}-loading-icon`, style: _, ref: g }, m.createElement(rg, { className: h }) ) } ) }, ox = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const o0 = m.createContext(void 0) var sx = (e) => { const { getPrefixCls: t, direction: n } = m.useContext(Lt), { prefixCls: a, size: l, className: f } = e, g = ox(e, ['prefixCls', 'size', 'className']), h = t('btn-group', a), [, , _] = Es() let b = '' switch (l) { case 'large': b = 'lg' break case 'small': b = 'sm' break case 'middle': case void 0: break default: } const S = bt()(h, { [`${h}-${b}`]: b, [`${h}-rtl`]: n === 'rtl' }, f, _) return m.createElement(o0.Provider, { value: l }, m.createElement('div', Object.assign({}, g, { className: S }))) } const s0 = /^[\u4e00-\u9fa5]{2}$/, Th = s0.test.bind(s0) function lx(e) { return typeof e == 'string' } function Dh(e) { return e === 'text' || e === 'link' } function cx(e, t) { if (e == null) return const n = t ? ' ' : '' return typeof e != 'string' && typeof e != 'number' && lx(e.type) && Th(e.props.children) ? Hs(e, { children: e.props.children.split('').join(n) }) : typeof e == 'string' ? Th(e) ? m.createElement('span', null, e.split('').join(n)) : m.createElement('span', null, e) : r0(e) ? m.createElement('span', null, e) : e } function ux(e, t) { let n = !1 const a = [] return ( m.Children.forEach(e, (l) => { const f = typeof l, g = f === 'string' || f === 'number' if (n && g) { const h = a.length - 1, _ = a[h] a[h] = `${_}${l}` } else a.push(l) n = g }), m.Children.map(a, (l) => cx(l, t)) ) } const nI = null, rI = null, iI = null, l0 = (e, t) => ({ [`> span, > ${e}`]: { '&:not(:last-child)': { [`&, & > ${e}`]: { '&:not(:disabled)': { borderInlineEndColor: t } } }, '&:not(:first-child)': { [`&, & > ${e}`]: { '&:not(:disabled)': { borderInlineStartColor: t } } }, }, }) var dx = (e) => { const { componentCls: t, fontSize: n, lineWidth: a, colorPrimaryHover: l, colorErrorHover: f } = e return { [`${t}-group`]: [ { position: 'relative', display: 'inline-flex', [`> span, > ${t}`]: { '&:not(:last-child)': { [`&, & > ${t}`]: { borderStartEndRadius: 0, borderEndEndRadius: 0 } }, '&:not(:first-child)': { marginInlineStart: -a, [`&, & > ${t}`]: { borderStartStartRadius: 0, borderEndStartRadius: 0 }, }, }, [t]: { position: 'relative', zIndex: 1, [`&:hover, &:focus, &:active`]: { zIndex: 2 }, '&[disabled]': { zIndex: 0 }, }, [`${t}-icon-only`]: { fontSize: n }, }, l0(`${t}-primary`, l), l0(`${t}-danger`, f), ], } } function fx(e, t, n) { const { focusElCls: a, focus: l, borderElCls: f } = n, g = f ? '> *' : '', h = ['hover', l ? 'focus' : null, 'active'] .filter(Boolean) .map((_) => `&:${_} ${g}`) .join(',') return { [`&-item:not(${t}-last-item)`]: { marginInlineEnd: -e.lineWidth }, '&-item': Object.assign(Object.assign({ [h]: { zIndex: 2 } }, a ? { [`&${a}`]: { zIndex: 2 } } : {}), { [`&[disabled] ${g}`]: { zIndex: 0 }, }), } } function px(e, t, n) { const { borderElCls: a } = n, l = a ? `> ${a}` : '' return { [`&-item:not(${t}-first-item):not(${t}-last-item) ${l}`]: { borderRadius: 0 }, [`&-item:not(${t}-last-item)${t}-first-item`]: { [`& ${l}, &${e}-sm ${l}, &${e}-lg ${l}`]: { borderStartEndRadius: 0, borderEndEndRadius: 0 }, }, [`&-item:not(${t}-first-item)${t}-last-item`]: { [`& ${l}, &${e}-sm ${l}, &${e}-lg ${l}`]: { borderStartStartRadius: 0, borderEndStartRadius: 0 }, }, } } function gx(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : { focus: !0 } const { componentCls: n } = e, a = `${n}-compact` return { [a]: Object.assign(Object.assign({}, fx(e, a, t)), px(n, a, t)) } } function mx(e, t) { return { [`&-item:not(${t}-last-item)`]: { marginBottom: -e.lineWidth }, '&-item': { '&:hover,&:focus,&:active': { zIndex: 2 }, '&[disabled]': { zIndex: 0 } }, } } function hx(e, t) { return { [`&-item:not(${t}-first-item):not(${t}-last-item)`]: { borderRadius: 0 }, [`&-item${t}-first-item:not(${t}-last-item)`]: { [`&, &${e}-sm, &${e}-lg`]: { borderEndEndRadius: 0, borderEndStartRadius: 0 }, }, [`&-item${t}-last-item:not(${t}-first-item)`]: { [`&, &${e}-sm, &${e}-lg`]: { borderStartStartRadius: 0, borderStartEndRadius: 0 }, }, } } function vx(e) { const t = `${e.componentCls}-compact-vertical` return { [t]: Object.assign(Object.assign({}, mx(e, t)), hx(e.componentCls, t)) } } const _x = (e) => { const { componentCls: t, iconCls: n } = e return { [t]: { outline: 'none', position: 'relative', display: 'inline-block', fontWeight: 400, whiteSpace: 'nowrap', textAlign: 'center', backgroundImage: 'none', backgroundColor: 'transparent', border: `${e.lineWidth}px ${e.lineType} transparent`, cursor: 'pointer', transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`, userSelect: 'none', touchAction: 'manipulation', lineHeight: e.lineHeight, color: e.colorText, '> span': { display: 'inline-block' }, [`> ${n} + span, > span + ${n}`]: { marginInlineStart: e.marginXS }, '> a': { color: 'currentColor' }, '&:not(:disabled)': Object.assign({}, s_(e)), [`&-icon-only${t}-compact-item`]: { flex: 'none' }, [`&-compact-item${t}-primary`]: { [`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]: { position: 'relative', '&:before': { position: 'absolute', top: -e.lineWidth, insetInlineStart: -e.lineWidth, display: 'inline-block', width: e.lineWidth, height: `calc(100% + ${e.lineWidth * 2}px)`, backgroundColor: e.colorPrimaryHover, content: '""', }, }, }, '&-compact-vertical-item': { [`&${t}-primary`]: { [`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]: { position: 'relative', '&:before': { position: 'absolute', top: -e.lineWidth, insetInlineStart: -e.lineWidth, display: 'inline-block', width: `calc(100% + ${e.lineWidth * 2}px)`, height: e.lineWidth, backgroundColor: e.colorPrimaryHover, content: '""', }, }, }, }, }, } }, wo = (e, t) => ({ '&:not(:disabled)': { '&:hover': e, '&:active': t } }), yx = (e) => ({ minWidth: e.controlHeight, paddingInlineStart: 0, paddingInlineEnd: 0, borderRadius: '50%' }), bx = (e) => ({ borderRadius: e.controlHeight, paddingInlineStart: e.controlHeight / 2, paddingInlineEnd: e.controlHeight / 2, }), Ph = (e) => ({ cursor: 'not-allowed', borderColor: e.colorBorder, color: e.colorTextDisabled, backgroundColor: e.colorBgContainerDisabled, boxShadow: 'none', }), Sg = (e, t, n, a, l, f, g) => ({ [`&${e}-background-ghost`]: Object.assign( Object.assign( { color: t || void 0, backgroundColor: 'transparent', borderColor: n || void 0, boxShadow: 'none' }, wo( Object.assign({ backgroundColor: 'transparent' }, f), Object.assign({ backgroundColor: 'transparent' }, g) ) ), { '&:disabled': { cursor: 'not-allowed', color: a || void 0, borderColor: l || void 0 } } ), }), Ih = (e) => ({ '&:disabled': Object.assign({}, Ph(e)) }), c0 = (e) => Object.assign({}, Ih(e)), wg = (e) => ({ '&:disabled': { cursor: 'not-allowed', color: e.colorTextDisabled } }), u0 = (e) => Object.assign( Object.assign( Object.assign( Object.assign(Object.assign({}, c0(e)), { backgroundColor: e.colorBgContainer, borderColor: e.colorBorder, boxShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`, }), wo( { color: e.colorPrimaryHover, borderColor: e.colorPrimaryHover }, { color: e.colorPrimaryActive, borderColor: e.colorPrimaryActive } ) ), Sg(e.componentCls, e.colorBgContainer, e.colorBgContainer, e.colorTextDisabled, e.colorBorder) ), { [`&${e.componentCls}-dangerous`]: Object.assign( Object.assign( Object.assign( { color: e.colorError, borderColor: e.colorError }, wo( { color: e.colorErrorHover, borderColor: e.colorErrorBorderHover }, { color: e.colorErrorActive, borderColor: e.colorErrorActive } ) ), Sg(e.componentCls, e.colorError, e.colorError, e.colorTextDisabled, e.colorBorder) ), Ih(e) ), } ), Sx = (e) => Object.assign( Object.assign( Object.assign( Object.assign(Object.assign({}, c0(e)), { color: e.colorTextLightSolid, backgroundColor: e.colorPrimary, boxShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`, }), wo( { color: e.colorTextLightSolid, backgroundColor: e.colorPrimaryHover }, { color: e.colorTextLightSolid, backgroundColor: e.colorPrimaryActive } ) ), Sg( e.componentCls, e.colorPrimary, e.colorPrimary, e.colorTextDisabled, e.colorBorder, { color: e.colorPrimaryHover, borderColor: e.colorPrimaryHover }, { color: e.colorPrimaryActive, borderColor: e.colorPrimaryActive } ) ), { [`&${e.componentCls}-dangerous`]: Object.assign( Object.assign( Object.assign( { backgroundColor: e.colorError, boxShadow: `0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}` }, wo({ backgroundColor: e.colorErrorHover }, { backgroundColor: e.colorErrorActive }) ), Sg( e.componentCls, e.colorError, e.colorError, e.colorTextDisabled, e.colorBorder, { color: e.colorErrorHover, borderColor: e.colorErrorHover }, { color: e.colorErrorActive, borderColor: e.colorErrorActive } ) ), Ih(e) ), } ), wx = (e) => Object.assign(Object.assign({}, u0(e)), { borderStyle: 'dashed' }), xx = (e) => Object.assign( Object.assign( Object.assign({ color: e.colorLink }, wo({ color: e.colorLinkHover }, { color: e.colorLinkActive })), wg(e) ), { [`&${e.componentCls}-dangerous`]: Object.assign( Object.assign({ color: e.colorError }, wo({ color: e.colorErrorHover }, { color: e.colorErrorActive })), wg(e) ), } ), Cx = (e) => Object.assign( Object.assign( Object.assign( {}, wo( { color: e.colorText, backgroundColor: e.colorBgTextHover }, { color: e.colorText, backgroundColor: e.colorBgTextActive } ) ), wg(e) ), { [`&${e.componentCls}-dangerous`]: Object.assign( Object.assign({ color: e.colorError }, wg(e)), wo( { color: e.colorErrorHover, backgroundColor: e.colorErrorBg }, { color: e.colorErrorHover, backgroundColor: e.colorErrorBg } ) ), } ), Ex = (e) => Object.assign(Object.assign({}, Ph(e)), { [`&${e.componentCls}:hover`]: Object.assign({}, Ph(e)) }), kx = (e) => { const { componentCls: t } = e return { [`${t}-default`]: u0(e), [`${t}-primary`]: Sx(e), [`${t}-dashed`]: wx(e), [`${t}-link`]: xx(e), [`${t}-text`]: Cx(e), [`${t}-disabled`]: Ex(e), } }, Rh = function (e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : '' const { componentCls: n, iconCls: a, controlHeight: l, fontSize: f, lineHeight: g, lineWidth: h, borderRadius: _, buttonPaddingHorizontal: b, } = e, S = Math.max(0, (l - f * g) / 2 - h), x = b - h, k = `${n}-icon-only` return [ { [`${n}${t}`]: { fontSize: f, height: l, padding: `${S}px ${x}px`, borderRadius: _, [`&${k}`]: { width: l, paddingInlineStart: 0, paddingInlineEnd: 0, [`&${n}-round`]: { width: 'auto' }, '> span': { transform: 'scale(1.143)' }, }, [`&${n}-loading`]: { opacity: e.opacityLoading, cursor: 'default' }, [`${n}-loading-icon`]: { transition: `width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`, }, [`&:not(${k}) ${n}-loading-icon > ${a}`]: { marginInlineEnd: e.marginXS }, }, }, { [`${n}${n}-circle${t}`]: yx(e) }, { [`${n}${n}-round${t}`]: bx(e) }, ] }, Ox = (e) => Rh(e), Tx = (e) => { const t = Ri(e, { controlHeight: e.controlHeightSM, padding: e.paddingXS, buttonPaddingHorizontal: 8, borderRadius: e.borderRadiusSM, }) return Rh(t, `${e.componentCls}-sm`) }, Dx = (e) => { const t = Ri(e, { controlHeight: e.controlHeightLG, fontSize: e.fontSizeLG, borderRadius: e.borderRadiusLG }) return Rh(t, `${e.componentCls}-lg`) }, Px = (e) => { const { componentCls: t } = e return { [t]: { [`&${t}-block`]: { width: '100%' } } } } var Ix = Aa('Button', (e) => { const { controlTmpOutline: t, paddingContentHorizontal: n } = e, a = Ri(e, { colorOutlineDefault: t, buttonPaddingHorizontal: n }) return [_x(a), Tx(a), Ox(a), Dx(a), Px(a), kx(a), dx(a), gx(e), vx(e)] }), Rx = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } function d0(e) { return e === 'danger' ? { danger: !0 } : { type: e } } function Mx(e) { if (typeof e == 'object' && e) { const t = e == null ? void 0 : e.delay return { loading: !1, delay: !Number.isNaN(t) && typeof t == 'number' ? t : 0 } } return { loading: !!e, delay: 0 } } const Ax = (e, t) => { const { loading: n = !1, prefixCls: a, type: l = 'default', danger: f, shape: g = 'default', size: h, disabled: _, className: b, rootClassName: S, children: x, icon: k, ghost: D = !1, block: M = !1, htmlType: P = 'button', } = e, R = Rx(e, [ 'loading', 'prefixCls', 'type', 'danger', 'shape', 'size', 'disabled', 'className', 'rootClassName', 'children', 'icon', 'ghost', 'block', 'htmlType', ]), { getPrefixCls: j, autoInsertSpaceInButton: L, direction: H } = m.useContext(Lt), U = j('btn', a), [te, ie] = Ix(U), ae = m.useContext(rn), de = m.useContext(Rt), ye = _ != null ? _ : de, me = m.useContext(o0), De = m.useMemo(() => Mx(n), [n]), [se, oe] = m.useState(De.loading), [fe, Oe] = m.useState(!1), Ve = t || m.createRef(), Qe = () => m.Children.count(x) === 1 && !k && !Dh(l), ft = () => { if (!Ve || !Ve.current || L === !1) return const Ht = Ve.current.textContent Qe() && Th(Ht) ? fe || Oe(!0) : fe && Oe(!1) } m.useEffect(() => { let Ht = null De.delay > 0 ? (Ht = window.setTimeout(() => { ;(Ht = null), oe(!0) }, De.delay)) : oe(De.loading) function dn() { Ht && (window.clearTimeout(Ht), (Ht = null)) } return dn }, [De]), m.useEffect(ft, [Ve]) const Ot = (Ht) => { const { onClick: dn } = e if (se || ye) { Ht.preventDefault() return } dn == null || dn(Ht) }, Nt = L !== !1, { compactSize: Ct, compactItemClassnames: Ge } = tx(U, H), Xe = { large: 'lg', small: 'sm', middle: void 0 }, ot = Ct || me || h || ae, Ye = (ot && Xe[ot]) || '', Te = se ? 'loading' : k, xt = xh(R, ['navigate']), et = xt.href !== void 0 && ye, Ft = bt()( U, ie, { [`${U}-${g}`]: g !== 'default' && g, [`${U}-${l}`]: l, [`${U}-${Ye}`]: Ye, [`${U}-icon-only`]: !x && x !== 0 && !!Te, [`${U}-background-ghost`]: D && !Dh(l), [`${U}-loading`]: se, [`${U}-two-chinese-chars`]: fe && Nt && !se, [`${U}-block`]: M, [`${U}-dangerous`]: !!f, [`${U}-rtl`]: H === 'rtl', [`${U}-disabled`]: et, }, Ge, b, S ), $t = k && !se ? k : m.createElement(ax, { existIcon: !!k, prefixCls: U, loading: !!se }), yt = x || x === 0 ? ux(x, Qe() && Nt) : null if (xt.href !== void 0) return te(m.createElement('a', Object.assign({}, xt, { className: Ft, onClick: Ot, ref: Ve }), $t, yt)) let Et = m.createElement( 'button', Object.assign({}, R, { type: P, className: Ft, onClick: Ot, disabled: ye, ref: Ve }), $t, yt ) return Dh(l) || (Et = m.createElement(Jw, { disabled: !!se }, Et)), te(Et) }, Mh = m.forwardRef(Ax) ;(Mh.Group = sx), (Mh.__ANT_BUTTON = !0) var Nx = Mh, Jl = Nx function f0(e) { return !!(e && e.then) } var p0 = (e) => { const { type: t, children: n, prefixCls: a, buttonProps: l, close: f, autoFocus: g, emitEvent: h, quitOnNullishReturnValue: _, actionFn: b, } = e, S = m.useRef(!1), x = m.useRef(null), [k, D] = ql(!1), M = function () { f == null || f.apply(void 0, arguments) } m.useEffect(() => { let j = null return ( g && (j = setTimeout(() => { var L ;(L = x.current) === null || L === void 0 || L.focus() })), () => { j && clearTimeout(j) } ) }, []) const P = (j) => { f0(j) && (D(!0), j.then( function () { D(!1, !0), M.apply(void 0, arguments), (S.current = !1) }, (L) => (D(!1, !0), (S.current = !1), Promise.reject(L)) )) }, R = (j) => { if (S.current) return if (((S.current = !0), !b)) { M() return } let L if (h) { if (((L = b(j)), _ && !f0(L))) { ;(S.current = !1), M(j) return } } else if (b.length) (L = b(f)), (S.current = !1) else if (((L = b()), !L)) { M() return } P(L) } return m.createElement(Jl, Object.assign({}, d0(t), { onClick: R, loading: k, prefixCls: a }, l, { ref: x }), n) } const Ah = () => ({ height: 0, opacity: 0 }), g0 = (e) => { const { scrollHeight: t } = e return { height: t, opacity: 1 } }, jx = (e) => ({ height: e ? e.offsetHeight : 0 }), Nh = (e, t) => (t == null ? void 0 : t.deadline) === !0 || t.propertyName === 'height', sI = function () { return { motionName: `${arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 'ant'}-motion-collapse`, onAppearStart: Ah, onEnterStart: Ah, onAppearActive: g0, onEnterActive: g0, onLeaveStart: jx, onLeaveActive: Ah, onAppearEnd: Nh, onEnterEnd: Nh, onLeaveEnd: Nh, motionDeadline: 500, } }, lI = null, cI = (e) => (e !== void 0 && (e === 'topLeft' || e === 'topRight') ? 'slide-down' : 'slide-up'), kf = (e, t, n) => (n !== void 0 ? n : `${e}-${t}`) var uI = null, zx = m.createContext(null), m0 = zx, jh = ur() ? m.useLayoutEffect : m.useEffect, gi = jh, h0 = function (t, n) { var a = m.useRef(!0) jh(function () { if (!a.current) return t() }, n), jh(function () { return ( (a.current = !1), function () { a.current = !0 } ) }, []) }, v0 = [] function Lx(e, t) { var n = m.useState(function () { if (!ur()) return null var M = document.createElement('div') return M }), a = pt(n, 1), l = a[0], f = m.useRef(!1), g = m.useContext(m0), h = m.useState(v0), _ = pt(h, 2), b = _[0], S = _[1], x = g || (f.current ? void 0 : function (M) { S(function (P) { var R = [M].concat(kt(P)) return R }) }) function k() { l.parentElement || document.body.appendChild(l), (f.current = !0) } function D() { var M ;(M = l.parentElement) === null || M === void 0 || M.removeChild(l), (f.current = !1) } return ( gi( function () { return e ? (g ? g(k) : k()) : D(), D }, [e] ), gi( function () { b.length && (b.forEach(function (M) { return M() }), S(v0)) }, [b] ), [l, x] ) } var zh function _0(e) { if (typeof document == 'undefined') return 0 if (e || zh === void 0) { var t = document.createElement('div') ;(t.style.width = '100%'), (t.style.height = '200px') var n = document.createElement('div'), a = n.style ;(a.position = 'absolute'), (a.top = '0'), (a.left = '0'), (a.pointerEvents = 'none'), (a.visibility = 'hidden'), (a.width = '200px'), (a.height = '150px'), (a.overflow = 'hidden'), n.appendChild(t), document.body.appendChild(n) var l = t.offsetWidth n.style.overflow = 'scroll' var f = t.offsetWidth l === f && (f = n.clientWidth), document.body.removeChild(n), (zh = l - f) } return zh } function y0(e) { var t = e.match(/^(.*)px$/), n = Number(t == null ? void 0 : t[1]) return Number.isNaN(n) ? _0() : n } function dI(e) { if (typeof document == 'undefined' || !e || !(e instanceof Element)) return { width: 0, height: 0 } var t = getComputedStyle(e, '::-webkit-scrollbar'), n = t.width, a = t.height return { width: y0(n), height: y0(a) } } function Fx() { return ( document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth ) } var $x = 'rc-util-locker-'.concat(Date.now()), b0 = 0 function Hx(e) { var t = !!e, n = m.useState(function () { return (b0 += 1), ''.concat($x, '_').concat(b0) }), a = pt(n, 1), l = a[0] gi( function () { if (t) { var f = _0(), g = Fx() ha( ` html body { overflow-y: hidden; `.concat( g ? 'width: calc(100% - '.concat(f, 'px);') : '', ` }` ), l ) } else ml(l) return function () { ml(l) } }, [t, l] ) } var S0 = !1 function Bx(e) { return typeof e == 'boolean' && (S0 = e), S0 } var w0 = function (t) { return t === !1 ? !1 : !ur() || !t ? null : typeof t == 'string' ? document.querySelector(t) : typeof t == 'function' ? t() : t }, Ux = m.forwardRef(function (e, t) { var n = e.open, a = e.autoLock, l = e.getContainer, f = e.debug, g = e.autoDestroy, h = g === void 0 ? !0 : g, _ = e.children, b = m.useState(n), S = pt(b, 2), x = S[0], k = S[1], D = x || n m.useEffect( function () { ;(h || n) && k(n) }, [n, h] ) var M = m.useState(function () { return w0(l) }), P = pt(M, 2), R = P[0], j = P[1] m.useEffect(function () { var se = w0(l) j(se != null ? se : null) }) var L = Lx(D && !R, f), H = pt(L, 2), U = H[0], te = H[1], ie = R != null ? R : U Hx(a && n && ur() && (ie === U || ie === document.body)) var ae = null if (_ && xf(_) && t) { var de = _ ae = de.ref } var ye = y_(ae, t) if (!D || !ur() || R === void 0) return null var me = ie === !1 || Bx(), De = _ return ( t && (De = m.cloneElement(_, { ref: ye })), m.createElement(m0.Provider, { value: te }, me ? De : (0, Os.createPortal)(De, ie)) ) }), Wx = Ux, Lh = Wx function Vx() { var e = ze({}, C) return e.useId } var x0 = 0 function fI() {} function C0(e) { var t = m.useState('ssr-id'), n = pt(t, 2), a = n[0], l = n[1], f = Vx(), g = f == null ? void 0 : f() return ( m.useEffect(function () { if (!f) { var h = x0 ;(x0 += 1), l('rc_unique_'.concat(h)) } }, []), e || g || a ) } var Gx = `accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`, Xx = `onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`, Kx = '' .concat(Gx, ' ') .concat(Xx) .split(/[\s\n]+/), Yx = 'aria-', qx = 'data-' function E0(e, t) { return e.indexOf(t) === 0 } function Qx(e) { var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n t === !1 ? (n = { aria: !0, data: !0, attr: !0 }) : t === !0 ? (n = { aria: !0 }) : (n = ze({}, t)) var a = {} return ( Object.keys(e).forEach(function (l) { ;((n.aria && (l === 'role' || E0(l, Yx))) || (n.data && E0(l, qx)) || (n.attr && Kx.includes(l))) && (a[l] = e[l]) }), a ) } function k0(e, t, n) { var a = t return !a && n && (a = ''.concat(e, '-').concat(n)), a } function O0(e, t) { var n = e['page'.concat(t ? 'Y' : 'X', 'Offset')], a = 'scroll'.concat(t ? 'Top' : 'Left') if (typeof n != 'number') { var l = e.document ;(n = l.documentElement[a]), typeof n != 'number' && (n = l.body[a]) } return n } function Jx(e) { var t = e.getBoundingClientRect(), n = { left: t.left, top: t.top }, a = e.ownerDocument, l = a.defaultView || a.parentWindow return (n.left += O0(l)), (n.top += O0(l, !0)), n } var Zx = m.memo( function (e) { var t = e.children return t }, function (e, t) { var n = t.shouldUpdate return !n } ), T0 = { width: 0, height: 0, overflow: 'hidden', outline: 'none' }, eC = m.forwardRef(function (e, t) { var n = e.prefixCls, a = e.className, l = e.style, f = e.title, g = e.ariaId, h = e.footer, _ = e.closable, b = e.closeIcon, S = e.onClose, x = e.children, k = e.bodyStyle, D = e.bodyProps, M = e.modalRender, P = e.onMouseDown, R = e.onMouseUp, j = e.holderRef, L = e.visible, H = e.forceRender, U = e.width, te = e.height, ie = (0, m.useRef)(), ae = (0, m.useRef)() m.useImperativeHandle(t, function () { return { focus: function () { var fe ;(fe = ie.current) === null || fe === void 0 || fe.focus() }, changeActive: function (fe) { var Oe = document, Ve = Oe.activeElement fe && Ve === ae.current ? ie.current.focus() : !fe && Ve === ie.current && ae.current.focus() }, } }) var de = {} U !== void 0 && (de.width = U), te !== void 0 && (de.height = te) var ye h && (ye = m.createElement('div', { className: ''.concat(n, '-footer') }, h)) var me f && (me = m.createElement( 'div', { className: ''.concat(n, '-header') }, m.createElement('div', { className: ''.concat(n, '-title'), id: g }, f) )) var De _ && (De = m.createElement( 'button', { type: 'button', onClick: S, 'aria-label': 'Close', className: ''.concat(n, '-close') }, b || m.createElement('span', { className: ''.concat(n, '-close-x') }) )) var se = m.createElement( 'div', { className: ''.concat(n, '-content') }, De, me, m.createElement('div', Xt({ className: ''.concat(n, '-body'), style: k }, D), x), ye ) return m.createElement( 'div', { key: 'dialog-element', role: 'dialog', 'aria-labelledby': f ? g : null, 'aria-modal': 'true', ref: j, style: ze(ze({}, l), de), className: bt()(n, a), onMouseDown: P, onMouseUp: R, }, m.createElement('div', { tabIndex: 0, ref: ie, style: T0, 'aria-hidden': 'true' }), m.createElement(Zx, { shouldUpdate: L || H }, M ? M(se) : se), m.createElement('div', { tabIndex: 0, ref: ae, style: T0, 'aria-hidden': 'true' }) ) }), D0 = eC, P0 = m.forwardRef(function (e, t) { var n = e.prefixCls, a = e.title, l = e.style, f = e.className, g = e.visible, h = e.forceRender, _ = e.destroyOnClose, b = e.motionName, S = e.ariaId, x = e.onVisibleChanged, k = e.mousePosition, D = (0, m.useRef)(), M = m.useState(), P = pt(M, 2), R = P[0], j = P[1], L = {} R && (L.transformOrigin = R) function H() { var U = Jx(D.current) j(k ? ''.concat(k.x - U.left, 'px ').concat(k.y - U.top, 'px') : '') } return m.createElement( So, { visible: g, onVisibleChanged: x, onAppearPrepare: H, onEnterPrepare: H, forceRender: h, motionName: b, removeOnLeave: _, ref: D, }, function (U, te) { var ie = U.className, ae = U.style return m.createElement( D0, Xt({}, e, { ref: t, title: a, ariaId: S, prefixCls: n, holderRef: te, style: ze(ze(ze({}, ae), l), L), className: bt()(f, ie), }) ) } ) }) P0.displayName = 'Content' var tC = P0 function nC(e) { var t = e.prefixCls, n = e.style, a = e.visible, l = e.maskProps, f = e.motionName return m.createElement( So, { key: 'mask', visible: a, motionName: f, leavedClassName: ''.concat(t, '-mask-hidden') }, function (g, h) { var _ = g.className, b = g.style return m.createElement( 'div', Xt({ ref: h, style: ze(ze({}, b), n), className: bt()(''.concat(t, '-mask'), _) }, l) ) } ) } function rC(e) { var t = e.prefixCls, n = t === void 0 ? 'rc-dialog' : t, a = e.zIndex, l = e.visible, f = l === void 0 ? !1 : l, g = e.keyboard, h = g === void 0 ? !0 : g, _ = e.focusTriggerAfterClose, b = _ === void 0 ? !0 : _, S = e.wrapStyle, x = e.wrapClassName, k = e.wrapProps, D = e.onClose, M = e.afterOpenChange, P = e.afterClose, R = e.transitionName, j = e.animation, L = e.closable, H = L === void 0 ? !0 : L, U = e.mask, te = U === void 0 ? !0 : U, ie = e.maskTransitionName, ae = e.maskAnimation, de = e.maskClosable, ye = de === void 0 ? !0 : de, me = e.maskStyle, De = e.maskProps, se = e.rootClassName, oe = (0, m.useRef)(), fe = (0, m.useRef)(), Oe = (0, m.useRef)(), Ve = m.useState(f), Qe = pt(Ve, 2), ft = Qe[0], Ot = Qe[1], Nt = C0() function Ct() { ns(fe.current, document.activeElement) || (oe.current = document.activeElement) } function Ge() { if (!ns(fe.current, document.activeElement)) { var yt ;(yt = Oe.current) === null || yt === void 0 || yt.focus() } } function Xe(yt) { if (yt) Ge() else { if ((Ot(!1), te && oe.current && b)) { try { oe.current.focus({ preventScroll: !0 }) } catch (Et) {} oe.current = null } ft && (P == null || P()) } M == null || M(yt) } function ot(yt) { D == null || D(yt) } var Ye = (0, m.useRef)(!1), Te = (0, m.useRef)(), xt = function () { clearTimeout(Te.current), (Ye.current = !0) }, et = function () { Te.current = setTimeout(function () { Ye.current = !1 }) }, Ft = null ye && (Ft = function (Et) { Ye.current ? (Ye.current = !1) : fe.current === Et.target && ot(Et) }) function $t(yt) { if (h && yt.keyCode === vh.ESC) { yt.stopPropagation(), ot(yt) return } f && yt.keyCode === vh.TAB && Oe.current.changeActive(!yt.shiftKey) } return ( (0, m.useEffect)( function () { f && (Ot(!0), Ct()) }, [f] ), (0, m.useEffect)(function () { return function () { clearTimeout(Te.current) } }, []), m.createElement( 'div', Xt({ className: bt()(''.concat(n, '-root'), se) }, Qx(e, { data: !0 })), m.createElement(nC, { prefixCls: n, visible: te && f, motionName: k0(n, ie, ae), style: ze({ zIndex: a }, me), maskProps: De, }), m.createElement( 'div', Xt( { tabIndex: -1, onKeyDown: $t, className: bt()(''.concat(n, '-wrap'), x), ref: fe, onClick: Ft, style: ze(ze({ zIndex: a }, S), {}, { display: ft ? null : 'none' }), }, k ), m.createElement( tC, Xt({}, e, { onMouseDown: xt, onMouseUp: et, ref: Oe, closable: H, ariaId: Nt, prefixCls: n, visible: f && ft, onClose: ot, onVisibleChanged: Xe, motionName: k0(n, R, j), }) ) ) ) ) } var I0 = function (t) { var n = t.visible, a = t.getContainer, l = t.forceRender, f = t.destroyOnClose, g = f === void 0 ? !1 : f, h = t.afterClose, _ = m.useState(n), b = pt(_, 2), S = b[0], x = b[1] return ( m.useEffect( function () { n && x(!0) }, [n] ), !l && g && !S ? null : m.createElement( Lh, { open: n || l || S, autoDestroy: !1, getContainer: a, autoLock: n || S }, m.createElement( rC, Xt({}, t, { destroyOnClose: g, afterClose: function () { h == null || h(), x(!1) }, }) ) ) ) } I0.displayName = 'Dialog' var iC = I0, aC = iC const pI = m.createContext({ labelAlign: 'right', vertical: !1, itemRef: () => {} }), gI = null, mI = (e) => { const t = omit(e, ['prefixCls']) return React.createElement(RcFormProvider, Object.assign({}, t)) }, hI = m.createContext({ prefixCls: '' }), R0 = m.createContext({}), oC = (e) => { let { children: t, status: n, override: a } = e const l = (0, m.useContext)(R0), f = (0, m.useMemo)(() => { const g = Object.assign({}, l) return a && delete g.isFormItemInput, n && (delete g.status, delete g.hasFeedback, delete g.feedbackIcon), g }, [n, a, l]) return m.createElement(R0.Provider, { value: f }, t) }, M0 = () => ur() && window.document.documentElement let xg const sC = () => { if (!M0()) return !1 if (xg !== void 0) return xg const e = document.createElement('div') return ( (e.style.display = 'flex'), (e.style.flexDirection = 'column'), (e.style.rowGap = '1px'), e.appendChild(document.createElement('div')), e.appendChild(document.createElement('div')), document.body.appendChild(e), (xg = e.scrollHeight === 1), document.body.removeChild(e), xg ) }, lC = (e) => ({ animationDuration: e, animationFillMode: 'both' }), cC = (e) => ({ animationDuration: e, animationFillMode: 'both' }), Fh = function (e, t, n, a) { const f = (arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1) ? '&' : '' return { [` ${f}${e}-enter, ${f}${e}-appear `]: Object.assign(Object.assign({}, lC(a)), { animationPlayState: 'paused' }), [`${f}${e}-leave`]: Object.assign(Object.assign({}, cC(a)), { animationPlayState: 'paused' }), [` ${f}${e}-enter${e}-enter-active, ${f}${e}-appear${e}-appear-active `]: { animationName: t, animationPlayState: 'running' }, [`${f}${e}-leave${e}-leave-active`]: { animationName: n, animationPlayState: 'running', pointerEvents: 'none', }, } }, uC = new cn('antFadeIn', { '0%': { opacity: 0 }, '100%': { opacity: 1 } }), dC = new cn('antFadeOut', { '0%': { opacity: 1 }, '100%': { opacity: 0 } }), A0 = function (e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1 const { antCls: n } = e, a = `${n}-fade`, l = t ? '&' : '' return [ Fh(a, uC, dC, e.motionDurationMid, t), { [` ${l}${a}-enter, ${l}${a}-appear `]: { opacity: 0, animationTimingFunction: 'linear' }, [`${l}${a}-leave`]: { animationTimingFunction: 'linear' }, }, ] }, fC = new cn('antZoomIn', { '0%': { transform: 'scale(0.2)', opacity: 0 }, '100%': { transform: 'scale(1)', opacity: 1 }, }), pC = new cn('antZoomOut', { '0%': { transform: 'scale(1)' }, '100%': { transform: 'scale(0.2)', opacity: 0 } }), N0 = new cn('antZoomBigIn', { '0%': { transform: 'scale(0.8)', opacity: 0 }, '100%': { transform: 'scale(1)', opacity: 1 }, }), j0 = new cn('antZoomBigOut', { '0%': { transform: 'scale(1)' }, '100%': { transform: 'scale(0.8)', opacity: 0 }, }), gC = new cn('antZoomUpIn', { '0%': { transform: 'scale(0.8)', transformOrigin: '50% 0%', opacity: 0 }, '100%': { transform: 'scale(1)', transformOrigin: '50% 0%' }, }), mC = new cn('antZoomUpOut', { '0%': { transform: 'scale(1)', transformOrigin: '50% 0%' }, '100%': { transform: 'scale(0.8)', transformOrigin: '50% 0%', opacity: 0 }, }), hC = new cn('antZoomLeftIn', { '0%': { transform: 'scale(0.8)', transformOrigin: '0% 50%', opacity: 0 }, '100%': { transform: 'scale(1)', transformOrigin: '0% 50%' }, }), vC = new cn('antZoomLeftOut', { '0%': { transform: 'scale(1)', transformOrigin: '0% 50%' }, '100%': { transform: 'scale(0.8)', transformOrigin: '0% 50%', opacity: 0 }, }), _C = new cn('antZoomRightIn', { '0%': { transform: 'scale(0.8)', transformOrigin: '100% 50%', opacity: 0 }, '100%': { transform: 'scale(1)', transformOrigin: '100% 50%' }, }), yC = new cn('antZoomRightOut', { '0%': { transform: 'scale(1)', transformOrigin: '100% 50%' }, '100%': { transform: 'scale(0.8)', transformOrigin: '100% 50%', opacity: 0 }, }), bC = new cn('antZoomDownIn', { '0%': { transform: 'scale(0.8)', transformOrigin: '50% 100%', opacity: 0 }, '100%': { transform: 'scale(1)', transformOrigin: '50% 100%' }, }), SC = new cn('antZoomDownOut', { '0%': { transform: 'scale(1)', transformOrigin: '50% 100%' }, '100%': { transform: 'scale(0.8)', transformOrigin: '50% 100%', opacity: 0 }, }), wC = { zoom: { inKeyframes: fC, outKeyframes: pC }, 'zoom-big': { inKeyframes: N0, outKeyframes: j0 }, 'zoom-big-fast': { inKeyframes: N0, outKeyframes: j0 }, 'zoom-left': { inKeyframes: hC, outKeyframes: vC }, 'zoom-right': { inKeyframes: _C, outKeyframes: yC }, 'zoom-up': { inKeyframes: gC, outKeyframes: mC }, 'zoom-down': { inKeyframes: bC, outKeyframes: SC }, }, z0 = (e, t) => { const { antCls: n } = e, a = `${n}-${t}`, { inKeyframes: l, outKeyframes: f } = wC[t] return [ Fh(a, l, f, t === 'zoom-big-fast' ? e.motionDurationFast : e.motionDurationMid), { [` ${a}-enter, ${a}-appear `]: { transform: 'scale(0)', opacity: 0, animationTimingFunction: e.motionEaseOutCirc, '&-prepare': { transform: 'none' }, }, [`${a}-leave`]: { animationTimingFunction: e.motionEaseInOutCirc }, }, ] } function L0(e) { return { position: e, top: 0, insetInlineEnd: 0, bottom: 0, insetInlineStart: 0 } } const xC = (e) => { const { componentCls: t, antCls: n } = e return [ { [`${t}-root`]: { [`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]: { transform: 'none', opacity: 0, animationDuration: e.motionDurationSlow, userSelect: 'none', }, [`${t}${n}-zoom-leave ${t}-content`]: { pointerEvents: 'none' }, [`${t}-mask`]: Object.assign(Object.assign({}, L0('fixed')), { zIndex: e.zIndexPopupBase, height: '100%', backgroundColor: e.colorBgMask, [`${t}-hidden`]: { display: 'none' }, }), [`${t}-wrap`]: Object.assign(Object.assign({}, L0('fixed')), { overflow: 'auto', outline: 0, WebkitOverflowScrolling: 'touch', }), }, }, { [`${t}-root`]: A0(e) }, ] }, CC = (e) => { const { componentCls: t } = e return [ { [`${t}-root`]: { [`${t}-wrap`]: { zIndex: e.zIndexPopupBase, position: 'fixed', inset: 0, overflow: 'auto', outline: 0, WebkitOverflowScrolling: 'touch', }, [`${t}-wrap-rtl`]: { direction: 'rtl' }, [`${t}-centered`]: { textAlign: 'center', '&::before': { display: 'inline-block', width: 0, height: '100%', verticalAlign: 'middle', content: '""', }, [t]: { top: 0, display: 'inline-block', paddingBottom: 0, textAlign: 'start', verticalAlign: 'middle' }, }, [`@media (max-width: ${e.screenSMMax})`]: { [t]: { maxWidth: 'calc(100vw - 16px)', margin: `${e.marginXS} auto` }, [`${t}-centered`]: { [t]: { flex: 1 } }, }, }, }, { [t]: Object.assign(Object.assign({}, yo(e)), { pointerEvents: 'none', position: 'relative', top: 100, width: 'auto', maxWidth: `calc(100vw - ${e.margin * 2}px)`, margin: '0 auto', paddingBottom: e.paddingLG, [`${t}-title`]: { margin: 0, color: e.modalHeadingColor, fontWeight: e.fontWeightStrong, fontSize: e.modalHeaderTitleFontSize, lineHeight: e.modalHeaderTitleLineHeight, wordWrap: 'break-word', }, [`${t}-content`]: { position: 'relative', backgroundColor: e.modalContentBg, backgroundClip: 'padding-box', border: 0, borderRadius: e.borderRadiusLG, boxShadow: e.boxShadow, pointerEvents: 'auto', padding: `${e.paddingMD}px ${e.paddingContentHorizontalLG}px`, }, [`${t}-close`]: Object.assign( { position: 'absolute', top: (e.modalHeaderCloseSize - e.modalCloseBtnSize) / 2, insetInlineEnd: (e.modalHeaderCloseSize - e.modalCloseBtnSize) / 2, zIndex: e.zIndexPopupBase + 10, padding: 0, color: e.modalCloseColor, fontWeight: e.fontWeightStrong, lineHeight: 1, textDecoration: 'none', background: 'transparent', borderRadius: e.borderRadiusSM, width: e.modalConfirmIconSize, height: e.modalConfirmIconSize, border: 0, outline: 0, cursor: 'pointer', transition: `color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`, '&-x': { display: 'block', fontSize: e.fontSizeLG, fontStyle: 'normal', lineHeight: `${e.modalCloseBtnSize}px`, textAlign: 'center', textTransform: 'none', textRendering: 'auto', }, '&:hover': { color: e.modalIconHoverColor, backgroundColor: e.wireframe ? 'transparent' : e.colorFillContent, textDecoration: 'none', }, '&:active': { backgroundColor: e.wireframe ? 'transparent' : e.colorFillContentHover }, }, s_(e) ), [`${t}-header`]: { color: e.colorText, background: e.modalHeaderBg, borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`, marginBottom: e.marginXS, }, [`${t}-body`]: { fontSize: e.fontSize, lineHeight: e.lineHeight, wordWrap: 'break-word' }, [`${t}-footer`]: { textAlign: 'end', background: e.modalFooterBg, marginTop: e.marginSM, [`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]: { marginBottom: 0, marginInlineStart: e.marginXS, }, }, [`${t}-open`]: { overflow: 'hidden' }, }), }, { [`${t}-pure-panel`]: { top: 'auto', padding: 0, display: 'flex', flexDirection: 'column', [`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]: { display: 'flex', flexDirection: 'column', flex: 'auto' }, [`${t}-confirm-body`]: { marginBottom: 'auto' }, }, }, ] }, EC = (e) => { const { componentCls: t } = e, n = `${t}-confirm` return { [n]: { '&-rtl': { direction: 'rtl' }, [`${e.antCls}-modal-header`]: { display: 'none' }, [`${n}-body-wrapper`]: Object.assign({}, nS()), [`${n}-body`]: { display: 'flex', flexWrap: 'wrap', alignItems: 'center', [`${n}-title`]: { flex: '0 0 100%', display: 'block', overflow: 'hidden', color: e.colorTextHeading, fontWeight: e.fontWeightStrong, fontSize: e.modalHeaderTitleFontSize, lineHeight: e.modalHeaderTitleLineHeight, [`+ ${n}-content`]: { marginBlockStart: e.marginXS, flexBasis: '100%', maxWidth: `calc(100% - ${e.modalConfirmIconSize + e.marginSM}px)`, }, }, [`${n}-content`]: { color: e.colorText, fontSize: e.fontSize }, [`> ${e.iconCls}`]: { flex: 'none', marginInlineEnd: e.marginSM, fontSize: e.modalConfirmIconSize, [`+ ${n}-title`]: { flex: 1 }, [`+ ${n}-title + ${n}-content`]: { marginInlineStart: e.modalConfirmIconSize + e.marginSM }, }, }, [`${n}-btns`]: { textAlign: 'end', marginTop: e.marginSM, [`${e.antCls}-btn + ${e.antCls}-btn`]: { marginBottom: 0, marginInlineStart: e.marginXS }, }, }, [`${n}-error ${n}-body > ${e.iconCls}`]: { color: e.colorError }, [`${n}-warning ${n}-body > ${e.iconCls}, ${n}-confirm ${n}-body > ${e.iconCls}`]: { color: e.colorWarning }, [`${n}-info ${n}-body > ${e.iconCls}`]: { color: e.colorInfo }, [`${n}-success ${n}-body > ${e.iconCls}`]: { color: e.colorSuccess }, } }, kC = (e) => { const { componentCls: t } = e return { [`${t}-root`]: { [`${t}-wrap-rtl`]: { direction: 'rtl', [`${t}-confirm-body`]: { direction: 'rtl' } } }, } }, OC = (e) => { const { componentCls: t, antCls: n } = e, a = `${t}-confirm` return { [t]: { [`${t}-content`]: { padding: 0 }, [`${t}-header`]: { padding: e.modalHeaderPadding, borderBottom: `${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`, marginBottom: 0, }, [`${t}-body`]: { padding: e.modalBodyPadding }, [`${t}-footer`]: { padding: `${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`, borderTop: `${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`, borderRadius: `0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`, marginTop: 0, }, }, [a]: { [`${n}-modal-body`]: { padding: `${e.padding * 2}px ${e.padding * 2}px ${e.paddingLG}px` }, [`${a}-body`]: { [`> ${e.iconCls}`]: { marginInlineEnd: e.margin, [`+ ${a}-title + ${a}-content`]: { marginInlineStart: e.modalConfirmIconSize + e.margin }, }, }, [`${a}-btns`]: { marginTop: e.marginLG }, }, } } var F0 = Aa('Modal', (e) => { const t = e.padding, n = e.fontSizeHeading5, a = e.lineHeightHeading5, l = Ri(e, { modalBodyPadding: e.paddingLG, modalHeaderBg: e.colorBgElevated, modalHeaderPadding: `${t}px ${e.paddingLG}px`, modalHeaderBorderWidth: e.lineWidth, modalHeaderBorderStyle: e.lineType, modalHeaderTitleLineHeight: a, modalHeaderTitleFontSize: n, modalHeaderBorderColorSplit: e.colorSplit, modalHeaderCloseSize: a * n + t * 2, modalContentBg: e.colorBgElevated, modalHeadingColor: e.colorTextHeading, modalCloseColor: e.colorTextDescription, modalFooterBg: 'transparent', modalFooterBorderColorSplit: e.colorSplit, modalFooterBorderStyle: e.lineType, modalFooterPaddingVertical: e.paddingXS, modalFooterPaddingHorizontal: e.padding, modalFooterBorderWidth: e.lineWidth, modalConfirmTitleFontSize: e.fontSizeLG, modalIconHoverColor: e.colorIconHover, modalConfirmIconSize: e.fontSize * e.lineHeight, modalCloseBtnSize: e.controlHeightLG * 0.55, }) return [CC(l), EC(l), kC(l), xC(l), e.wireframe && OC(l), z0(l, 'zoom')] }), TC = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } function $0(e, t) { return m.createElement( 'span', { className: `${e}-close-x` }, t || m.createElement(gg, { className: `${e}-close-icon` }) ) } const H0 = (e) => { const { okText: t, okType: n = 'primary', cancelText: a, confirmLoading: l, onOk: f, onCancel: g, okButtonProps: h, cancelButtonProps: _, } = e, [b] = wh('Modal', le()) return m.createElement( m.Fragment, null, m.createElement(Jl, Object.assign({ onClick: g }, _), a || (b == null ? void 0 : b.cancelText)), m.createElement( Jl, Object.assign({}, d0(n), { loading: l, onClick: f }, h), t || (b == null ? void 0 : b.okText) ) ) } var DC = (e) => { const { prefixCls: t, className: n, closeIcon: a, closable: l, type: f, title: g, children: h } = e, _ = TC(e, ['prefixCls', 'className', 'closeIcon', 'closable', 'type', 'title', 'children']), { getPrefixCls: b } = m.useContext(Lt), S = b(), x = t || b('modal'), [, k] = F0(x), D = `${x}-confirm` let M = {} return ( f ? (M = { closable: l != null ? l : !1, title: '', footer: '', children: m.createElement( U0, Object.assign({}, e, { confirmPrefixCls: D, rootPrefixCls: S, content: h }) ), }) : (M = { closable: l != null ? l : !0, title: g, footer: e.footer === void 0 ? m.createElement(H0, Object.assign({}, e)) : e.footer, children: h, }), m.createElement( D0, Object.assign( { prefixCls: x, className: bt()(k, `${x}-pure-panel`, f && D, f && `${D}-${f}`, n) }, _, { closeIcon: $0(x, a), closable: l }, M ) ) ) }, PC = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } let $h const IC = (e) => { ;($h = { x: e.pageX, y: e.pageY }), setTimeout(() => { $h = null }, 100) } M0() && document.documentElement.addEventListener('click', IC, !0) var B0 = (e) => { var t const { getPopupContainer: n, getPrefixCls: a, direction: l } = m.useContext(Lt), f = (me) => { const { onCancel: De } = e De == null || De(me) }, g = (me) => { const { onOk: De } = e De == null || De(me) }, { prefixCls: h, className: _, rootClassName: b, open: S, wrapClassName: x, centered: k, getContainer: D, closeIcon: M, focusTriggerAfterClose: P = !0, visible: R, width: j = 520, footer: L, } = e, H = PC(e, [ 'prefixCls', 'className', 'rootClassName', 'open', 'wrapClassName', 'centered', 'getContainer', 'closeIcon', 'focusTriggerAfterClose', 'visible', 'width', 'footer', ]), U = a('modal', h), te = a(), [ie, ae] = F0(U), de = bt()(x, { [`${U}-centered`]: !!k, [`${U}-wrap-rtl`]: l === 'rtl' }), ye = L === void 0 ? m.createElement(H0, Object.assign({}, e, { onOk: g, onCancel: f })) : L return ie( m.createElement( nx, null, m.createElement( oC, { status: !0, override: !0 }, m.createElement( aC, Object.assign({ width: j }, H, { getContainer: D === void 0 ? n : D, prefixCls: U, rootClassName: bt()(ae, b), wrapClassName: de, footer: ye, visible: S != null ? S : R, mousePosition: (t = H.mousePosition) !== null && t !== void 0 ? t : $h, onClose: f, closeIcon: $0(U, M), focusTriggerAfterClose: P, transitionName: kf(te, 'zoom', e.transitionName), maskTransitionName: kf(te, 'fade', e.maskTransitionName), className: bt()(ae, _), }) ) ) ) ) } function U0(e) { const { icon: t, onCancel: n, onOk: a, close: l, okText: f, okButtonProps: g, cancelText: h, cancelButtonProps: _, confirmPrefixCls: b, rootPrefixCls: S, type: x, okCancel: k, footer: D, locale: M, } = e let P = t if (!t && t !== null) switch (x) { case 'info': P = m.createElement(sg, null) break case 'success': P = m.createElement(og, null) break case 'error': P = m.createElement(ag, null) break default: P = m.createElement(ig, null) } const R = e.okType || 'primary', j = k != null ? k : x === 'confirm', L = e.autoFocusButton === null ? !1 : e.autoFocusButton || 'ok', [H] = wh('Modal'), U = M || H, te = j && m.createElement( p0, { actionFn: n, close: l, autoFocus: L === 'cancel', buttonProps: _, prefixCls: `${S}-btn` }, h || (U == null ? void 0 : U.cancelText) ) return m.createElement( 'div', { className: `${b}-body-wrapper` }, m.createElement( 'div', { className: `${b}-body` }, P, e.title === void 0 ? null : m.createElement('span', { className: `${b}-title` }, e.title), m.createElement('div', { className: `${b}-content` }, e.content) ), D === void 0 ? m.createElement( 'div', { className: `${b}-btns` }, te, m.createElement( p0, { type: R, actionFn: a, close: l, autoFocus: L === 'ok', buttonProps: g, prefixCls: `${S}-btn` }, f || (j ? (U == null ? void 0 : U.okText) : U == null ? void 0 : U.justOkText) ) ) : D ) } var W0 = (e) => { const { close: t, zIndex: n, afterClose: a, visible: l, open: f, keyboard: g, centered: h, getContainer: _, maskStyle: b, direction: S, prefixCls: x, wrapClassName: k, rootPrefixCls: D, iconPrefixCls: M, bodyStyle: P, closable: R = !1, closeIcon: j, modalRender: L, focusTriggerAfterClose: H, } = e, U = `${x}-confirm`, te = e.width || 416, ie = e.style || {}, ae = e.mask === void 0 ? !0 : e.mask, de = e.maskClosable === void 0 ? !1 : e.maskClosable, ye = bt()(U, `${U}-${e.type}`, { [`${U}-rtl`]: S === 'rtl' }, e.className) return m.createElement( eg, { prefixCls: D, iconPrefixCls: M, direction: S }, m.createElement( B0, { prefixCls: x, className: ye, wrapClassName: bt()({ [`${U}-centered`]: !!e.centered }, k), onCancel: () => (t == null ? void 0 : t({ triggerCancel: !0 })), open: f, title: '', footer: null, transitionName: kf(D, 'zoom', e.transitionName), maskTransitionName: kf(D, 'fade', e.maskTransitionName), mask: ae, maskClosable: de, maskStyle: b, style: ie, bodyStyle: P, width: te, zIndex: n, afterClose: a, keyboard: g, centered: h, getContainer: _, closable: R, closeIcon: j, modalRender: L, focusTriggerAfterClose: H, }, m.createElement(U0, Object.assign({}, e, { confirmPrefixCls: U })) ) ) }, Zl = [], RC = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } let V0 = '' function MC() { return V0 } function Of(e) { const t = document.createDocumentFragment() let n = Object.assign(Object.assign({}, e), { close: g, open: !0 }), a function l() { for (var _ = arguments.length, b = new Array(_), S = 0; S < _; S++) b[S] = arguments[S] const x = b.some((k) => k && k.triggerCancel) e.onCancel && x && e.onCancel.apply(e, [() => {}].concat(kt(b.slice(1)))) for (let k = 0; k < Zl.length; k++) if (Zl[k] === g) { Zl.splice(k, 1) break } Kd(t) } function f(_) { var { okText: b, cancelText: S, prefixCls: x } = _, k = RC(_, ['okText', 'cancelText', 'prefixCls']) clearTimeout(a), (a = setTimeout(() => { const D = le(), { getPrefixCls: M, getIconPrefixCls: P } = Sf(), R = M(void 0, MC()), j = x || `${R}-modal`, L = P() Ds( m.createElement( W0, Object.assign({}, k, { prefixCls: j, rootPrefixCls: R, iconPrefixCls: L, okText: b, locale: D, cancelText: S || D.cancelText, }) ), t ) })) } function g() { for (var _ = arguments.length, b = new Array(_), S = 0; S < _; S++) b[S] = arguments[S] ;(n = Object.assign(Object.assign({}, n), { open: !1, afterClose: () => { typeof e.afterClose == 'function' && e.afterClose(), l.apply(this, b) }, })), n.visible && delete n.visible, f(n) } function h(_) { typeof _ == 'function' ? (n = _(n)) : (n = Object.assign(Object.assign({}, n), _)), f(n) } return f(n), Zl.push(g), { destroy: g, update: h } } function G0(e) { return Object.assign(Object.assign({}, e), { type: 'warning' }) } function X0(e) { return Object.assign(Object.assign({}, e), { type: 'info' }) } function K0(e) { return Object.assign(Object.assign({}, e), { type: 'success' }) } function Y0(e) { return Object.assign(Object.assign({}, e), { type: 'error' }) } function q0(e) { return Object.assign(Object.assign({}, e), { type: 'confirm' }) } function AC(e) { let { rootPrefixCls: t } = e V0 = t } function NC() { const [e, t] = m.useState([]), n = m.useCallback( (a) => ( t((l) => [].concat(kt(l), [a])), () => { t((l) => l.filter((f) => f !== a)) } ), [] ) return [e, n] } const jC = (e, t) => { let { afterClose: n, config: a } = e var l const [f, g] = m.useState(!0), [h, _] = m.useState(a), { direction: b, getPrefixCls: S } = m.useContext(Lt), x = S('modal'), k = S(), D = () => { var j n(), (j = h.afterClose) === null || j === void 0 || j.call(h) }, M = function () { g(!1) for (var j = arguments.length, L = new Array(j), H = 0; H < j; H++) L[H] = arguments[H] const U = L.some((te) => te && te.triggerCancel) h.onCancel && U && h.onCancel.apply(h, [() => {}].concat(kt(L.slice(1)))) } m.useImperativeHandle(t, () => ({ destroy: M, update: (j) => { _((L) => Object.assign(Object.assign({}, L), j)) }, })) const P = (l = h.okCancel) !== null && l !== void 0 ? l : h.type === 'confirm', [R] = wh('Modal', E.Modal) return m.createElement( W0, Object.assign({ prefixCls: x, rootPrefixCls: k }, h, { close: M, open: f, afterClose: D, okText: h.okText || (P ? (R == null ? void 0 : R.okText) : R == null ? void 0 : R.justOkText), direction: h.direction || b, cancelText: h.cancelText || (R == null ? void 0 : R.cancelText), }) ) } var zC = m.forwardRef(jC) let Q0 = 0 const LC = m.memo( m.forwardRef((e, t) => { const [n, a] = NC() return m.useImperativeHandle(t, () => ({ patchElement: a }), []), m.createElement(m.Fragment, null, n) }) ) function FC() { const e = m.useRef(null), [t, n] = m.useState([]) m.useEffect(() => { t.length && (kt(t).forEach((g) => { g() }), n([])) }, [t]) const a = m.useCallback( (f) => function (h) { var _ Q0 += 1 const b = m.createRef() let S const x = m.createElement(zC, { key: `modal-${Q0}`, config: f(h), ref: b, afterClose: () => { S == null || S() }, }) return ( (S = (_ = e.current) === null || _ === void 0 ? void 0 : _.patchElement(x)), S && Zl.push(S), { destroy: () => { function k() { var D ;(D = b.current) === null || D === void 0 || D.destroy() } b.current ? k() : n((D) => [].concat(kt(D), [k])) }, update: (k) => { function D() { var M ;(M = b.current) === null || M === void 0 || M.update(k) } b.current ? D() : n((M) => [].concat(kt(M), [D])) }, } ) }, [] ) return [ m.useMemo(() => ({ info: a(X0), success: a(K0), error: a(Y0), warning: a(G0), confirm: a(q0) }), []), m.createElement(LC, { key: 'modal-holder', ref: e }), ] } var $C = FC function J0(e) { return Of(G0(e)) } const Yi = B0 ;(Yi.useModal = $C), (Yi.info = function (t) { return Of(X0(t)) }), (Yi.success = function (t) { return Of(K0(t)) }), (Yi.error = function (t) { return Of(Y0(t)) }), (Yi.warning = J0), (Yi.warn = J0), (Yi.confirm = function (t) { return Of(q0(t)) }), (Yi.destroyAll = function () { for (; Zl.length; ) { const t = Zl.pop() t && t() } }), (Yi.config = AC), (Yi._InternalPanelDoNotUseOrYouWillBeFired = DC) var HC = Yi, xu = function (t) { return typeof window != 'undefined' ? matchMedia && matchMedia('(prefers-color-scheme: '.concat(t, ')')) : { matches: !1 } }, Hh, Z0 = (0, m.createContext)({ appearance: 'light', isDarkMode: !1, themeMode: 'light', browserPrefers: (Hh = xu('dark')) !== null && Hh !== void 0 && Hh.matches ? 'dark' : 'light', }), Cg = function () { return (0, m.useContext)(Z0) } function ey(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e) t && (a = a.filter(function (l) { return Object.getOwnPropertyDescriptor(e, l).enumerable })), n.push.apply(n, a) } return n } function ty(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {} t % 2 ? ey(Object(n), !0).forEach(function (a) { O(e, a, n[a]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ey(Object(n)).forEach(function (a) { Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a)) }) } return e } var BC = (0, m.memo)(function (e) { var t = e.children, n = e.theme, a = e.prefixCls, l = e.getStaticInstance, f = e.staticInstanceConfig, g = Cg(), h = g.appearance, _ = g.isDarkMode, b = kw.useMessage(f == null ? void 0 : f.message), S = pt(b, 2), x = S[0], k = S[1], D = Uw.useNotification(f == null ? void 0 : f.notification), M = pt(D, 2), P = M[0], R = M[1], j = HC.useModal(), L = pt(j, 2), H = L[0], U = L[1] ;(0, m.useEffect)(function () { l == null || l({ message: x, modal: H, notification: P }) }, []) var te = (0, m.useMemo)( function () { var ie = _ ? Al.darkAlgorithm : Al.defaultAlgorithm, ae = n if ((typeof n == 'function' && (ae = n(h)), !ae)) return { algorithm: ie } var de = ae.algorithm ? (ae.algorithm instanceof Array ? ae.algorithm : [ae.algorithm]) : [] return ty(ty({}, ae), {}, { algorithm: ae.algorithm ? [ie].concat(kt(de)) : ie }) }, [n, _] ) return (0, at.jsxs)(eg, { prefixCls: a, theme: te, children: [k, R, U, t] }) }), UC = BC, WC = function (t, n) { var a = n || {}, l = a.defaultValue, f = a.value, g = a.onChange, h = a.postState, _ = m.useState(function () { return f !== void 0 ? f : l !== void 0 ? typeof l == 'function' ? l() : l : typeof t == 'function' ? t() : t }), b = pt(_, 2), S = b[0], x = b[1], k = f !== void 0 ? f : S h && (k = h(k)) function D(M) { x(M), k !== M && g && g(M, k) } return [k, D] }, Bs, VC = function (t) { var n = t.themeMode, a = t.setAppearance, l = t.setBrowserPrefers, f = function () { xu('dark').matches ? a('dark') : a('light') }, g = function () { xu('dark').matches ? l('dark') : l('light') } return ( (0, m.useLayoutEffect)( function () { if (n !== 'auto') { a(n) return } return ( setTimeout(f, 1), Bs || (Bs = xu('dark')), Bs.addEventListener('change', f), function () { Bs.removeEventListener('change', f) } ) }, [n] ), (0, m.useEffect)(function () { return ( Bs || (Bs = xu('dark')), Bs.addEventListener('change', g), function () { Bs.removeEventListener('change', g) } ) }, []), null ) }, GC = (0, m.memo)(function (e) { var t, n = e.children, a = e.appearance, l = e.defaultAppearance, f = e.onAppearanceChange, g = e.themeMode, h = e.useTheme, _ = h(), b = _.appearance, S = _.themeMode, x = (0, m.useMemo)( function () { return g != null ? g : S }, [g, S] ), k = WC('light', { value: a, defaultValue: l != null ? l : b, onChange: f }), D = pt(k, 2), M = D[0], P = D[1], R = (0, m.useState)((t = xu('dark')) !== null && t !== void 0 && t.matches ? 'dark' : 'light'), j = pt(R, 2), L = j[0], H = j[1], U = (0, m.useState)(!1), te = pt(U, 2), ie = te[0], ae = te[1] return ( (0, m.useEffect)(function () { ae(!0) }, []), (0, at.jsxs)(Z0.Provider, { value: { themeMode: x, appearance: M, isDarkMode: M === 'dark', browserPrefers: L }, children: [ie && (0, at.jsx)(VC, { themeMode: x, setAppearance: P, setBrowserPrefers: H }), n], }) ) }), XC = GC, KC = function (t) { var n = t.css, a = t.token return { buttonDefaultHover: n({ backgroundColor: a.colorBgContainer, border: '1px solid '.concat(a.colorBorder), cursor: 'pointer', ':hover': { color: a.colorPrimaryHover, borderColor: a.colorPrimaryHover }, ':active': { color: a.colorPrimaryActive, borderColor: a.colorPrimaryActive }, }), } }, YC = function (t) { return Object.fromEntries( Object.entries(t).map(function (n) { var a = pt(n, 2), l = a[0], f = a[1] return [l, f.styles] }) ) }, qC = function () { var t = Zc(), n = Cg(), a = n.appearance, l = n.isDarkMode return (0, m.useMemo)( function () { return YC(KC({ token: t, css: cl, appearance: a, isDarkMode: l })) }, [t, a, l] ) } function ny(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e) t && (a = a.filter(function (l) { return Object.getOwnPropertyDescriptor(e, l).enumerable })), n.push.apply(n, a) } return n } function ry(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {} t % 2 ? ny(Object(n), !0).forEach(function (a) { O(e, a, n[a]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ny(Object(n)).forEach(function (a) { Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a)) }) } return e } var iy = function () { var t = Zc(), n = qC() return (0, m.useMemo)( function () { return ry(ry({}, t), {}, { stylish: n }) }, [t, n] ) }, QC = ['stylish'] function ay(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e) t && (a = a.filter(function (l) { return Object.getOwnPropertyDescriptor(e, l).enumerable })), n.push.apply(n, a) } return n } function Ai(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {} t % 2 ? ay(Object(n), !0).forEach(function (a) { O(e, a, n[a]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ay(Object(n)).forEach(function (a) { Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a)) }) } return e } var JC = function (t) { var n = t.children, a = t.customToken, l = t.defaultCustomToken, f = t.customStylish, g = t.prefixCls, h = g === void 0 ? 'ant' : g, _ = t.StyledThemeProvider, b = Cg(), S = b.appearance, x = b.isDarkMode, k = iy(), D = k.stylish, M = Kn(k, QC), P = (0, m.useMemo)( function () { return l ? (l instanceof Function ? l({ token: M, appearance: S, isDarkMode: x }) : l) : {} }, [l, M, S] ), R = (0, m.useMemo)( function () { return a instanceof Function ? Ai(Ai({}, P), a({ token: M, appearance: S, isDarkMode: x })) : Ai(Ai({}, P), a) }, [P, a, M, S] ), j = (0, m.useMemo)( function () { return f ? f({ token: Ai(Ai({}, M), R), stylish: D, appearance: S, isDarkMode: x, css: cl }) : {} }, [f, M, R, D, S] ), L = (0, m.useMemo)( function () { return Ai(Ai({}, j), D) }, [j, D] ), H = Ai(Ai(Ai(Ai({}, M), R), {}, { stylish: L }, b), {}, { prefixCls: h }) return (0, at.jsx)(_, { theme: H, children: n }) }, ZC = JC, eE = function (t) { var n = t.styledConfig ? ua(t.styledConfig) : void 0, a = t.StyleEngineContext return (0, m.memo)(function (l) { var f = l.children, g = l.customToken, h = l.customStylish, _ = l.theme, b = l.getStaticInstance, S = l.prefixCls, x = l.staticInstanceConfig, k = l.appearance, D = l.defaultAppearance, M = l.onAppearanceChange, P = l.themeMode, R = l.styled, j = (0, m.useContext)(a), L = j.prefixCls, H = j.StyledThemeContext, U = j.CustomThemeContext, te = (0, m.useContext)(U), ie = R ? ua(R) : n || Qo return (0, at.jsx)(a.Provider, { value: { prefixCls: S || L, StyledThemeContext: (R == null ? void 0 : R.ThemeContext) || H || Jo, CustomThemeContext: U }, children: (0, at.jsx)(XC, { themeMode: P, defaultAppearance: D, appearance: k, onAppearanceChange: M, useTheme: t.useTheme, children: (0, at.jsx)(UC, { prefixCls: S, staticInstanceConfig: x, theme: _, getStaticInstance: b, children: (0, at.jsx)(ZC, { prefixCls: S, customToken: g, defaultCustomToken: te, customStylish: h, StyledThemeProvider: ie, children: f }) }) }) }) }) } function oy(e, t) { var n = Object.keys(e) if (Object.getOwnPropertySymbols) { var a = Object.getOwnPropertySymbols(e) t && (a = a.filter(function (l) { return Object.getOwnPropertyDescriptor(e, l).enumerable })), n.push.apply(n, a) } return n } function Eg(e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] != null ? arguments[t] : {} t % 2 ? oy(Object(n), !0).forEach(function (a) { O(e, a, n[a]) }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : oy(Object(n)).forEach(function (a) { Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a)) }) } return e } var tE = function (t) { return function () { var n = t.StyleEngineContext, a = (0, m.useContext)(n), l = a.StyledThemeContext, f = a.CustomThemeContext, g = a.prefixCls, h = iy(), _ = Cg(), b = (0, m.useContext)(f), S = (0, m.useContext)(l != null ? l : Jo) || {}, x = (0, m.useMemo)( function () { return Eg(Eg(Eg(Eg({}, h), _), b), {}, { prefixCls: g || 'ant' }) }, [h, _, g, b] ) return !S || Object.keys(S).length === 0 ? x : S } }, sy = new mm() typeof dt.g != 'undefined' && (dt.g.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__ = sy) var nE = function (t) { var n, a = t.key || 'css', l = Yt({ key: a, speedy: t.speedy }) sy.add(l.cache) var f = l.cache, g = l.injectGlobal, h = l.keyframes, _ = Vf(f, t.hashPriority), b = _.cx, S = (0, m.createContext)(t.customToken ? t.customToken : {}), x = (n = t.styled) === null || n === void 0 ? void 0 : n.ThemeContext, k = (0, m.createContext)({ CustomThemeContext: S, StyledThemeContext: x, prefixCls: t == null ? void 0 : t.prefixCls, }), D = tE({ StyleEngineContext: k }), M = Ud({ cache: f, hashPriority: t.hashPriority, useTheme: D }), P = dl(D), R = Tm(M), j = eE({ styledConfig: t.styled, StyleEngineContext: k, useTheme: D }), L = ym(l), H = up(L, { speedy: t.speedy, prefix: a }) return { createStyles: M, createGlobalStyle: P, createStylish: R, css: cl, cx: b, keyframes: h, injectGlobal: g, styleManager: l, useTheme: D, StyleProvider: H, ThemeProvider: j, } }, qi = nE({ key: Zo, speedy: !1 }), rE = qi.createStyles, SI = qi.createGlobalStyle, wI = qi.createStylish, mi = qi.css, Qi = qi.cx, xI = qi.keyframes, CI = qi.injectGlobal, EI = qi.styleManager, iE = qi.ThemeProvider, kI = qi.StyleProvider, OI = qi.useTheme, xo = dt(2122), hi = dt.n(xo), Bh = dt(8698), ni = dt(861), ly = dt.n(ni) const cy = '%[a-f0-9]{2}', uy = new RegExp('(' + cy + ')|([^%]+?)', 'gi'), dy = new RegExp('(' + cy + ')+', 'gi') function Uh(e, t) { try { return [decodeURIComponent(e.join(''))] } catch (l) {} if (e.length === 1) return e t = t || 1 const n = e.slice(0, t), a = e.slice(t) return Array.prototype.concat.call([], Uh(n), Uh(a)) } function aE(e) { try { return decodeURIComponent(e) } catch (t) { let n = e.match(uy) || [] for (let a = 1; a < n.length; a++) (e = Uh(n, a).join('')), (n = e.match(uy) || []) return e } } function oE(e) { const t = { '%FE%FF': '\uFFFD\uFFFD', '%FF%FE': '\uFFFD\uFFFD' } let n = dy.exec(e) for (; n; ) { try { t[n[0]] = decodeURIComponent(n[0]) } catch (l) { const f = aE(n[0]) f !== n[0] && (t[n[0]] = f) } n = dy.exec(e) } t['%C2'] = '\uFFFD' const a = Object.keys(t) for (const l of a) e = e.replace(new RegExp(l, 'g'), t[l]) return e } function sE(e) { if (typeof e != 'string') throw new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof e + '`') try { return decodeURIComponent(e) } catch (t) { return oE(e) } } function fy(e, t) { if (!(typeof e == 'string' && typeof t == 'string')) throw new TypeError('Expected the arguments to be of type `string`') if (e === '' || t === '') return [] const n = e.indexOf(t) return n === -1 ? [] : [e.slice(0, n), e.slice(n + t.length)] } function Wh(e, t) { const n = {} if (Array.isArray(t)) for (const a of t) { const l = Object.getOwnPropertyDescriptor(e, a) l != null && l.enumerable && Object.defineProperty(n, a, l) } else for (const a of Reflect.ownKeys(e)) { const l = Object.getOwnPropertyDescriptor(e, a) if (l.enumerable) { const f = e[a] t(a, f, e) && Object.defineProperty(n, a, l) } } return n } function TI(e, t) { if (Array.isArray(t)) { const n = new Set(t) return Wh(e, (a) => !n.has(a)) } return Wh(e, (n, a, l) => !t(n, a, l)) } var lE = function (t) { return t == null }, cE = function (t) { return encodeURIComponent(t).replace(/[!'()*]/g, function (n) { return '%'.concat(n.charCodeAt(0).toString(16).toUpperCase()) }) }, Vh = Symbol('encodeFragmentIdentifier') function uE(e) { switch (e.arrayFormat) { case 'index': return function (n) { return function (a, l) { var f = a.length return l === void 0 || (e.skipNull && l === null) || (e.skipEmptyString && l === '') ? a : l === null ? [].concat(ni(a), [[Hn(n, e), '[', f, ']'].join('')]) : [].concat(ni(a), [[Hn(n, e), '[', Hn(f, e), ']=', Hn(l, e)].join('')]) } } case 'bracket': return function (n) { return function (a, l) { return l === void 0 || (e.skipNull && l === null) || (e.skipEmptyString && l === '') ? a : l === null ? [].concat(ni(a), [[Hn(n, e), '[]'].join('')]) : [].concat(ni(a), [[Hn(n, e), '[]=', Hn(l, e)].join('')]) } } case 'colon-list-separator': return function (n) { return function (a, l) { return l === void 0 || (e.skipNull && l === null) || (e.skipEmptyString && l === '') ? a : l === null ? [].concat(ni(a), [[Hn(n, e), ':list='].join('')]) : [].concat(ni(a), [[Hn(n, e), ':list=', Hn(l, e)].join('')]) } } case 'comma': case 'separator': case 'bracket-separator': { var t = e.arrayFormat === 'bracket-separator' ? '[]=' : '=' return function (n) { return function (a, l) { return l === void 0 || (e.skipNull && l === null) || (e.skipEmptyString && l === '') ? a : ((l = l === null ? '' : l), a.length === 0 ? [[Hn(n, e), t, Hn(l, e)].join('')] : [[a, Hn(l, e)].join(e.arrayFormatSeparator)]) } } } default: return function (n) { return function (a, l) { return l === void 0 || (e.skipNull && l === null) || (e.skipEmptyString && l === '') ? a : l === null ? [].concat(ni(a), [Hn(n, e)]) : [].concat(ni(a), [[Hn(n, e), '=', Hn(l, e)].join('')]) } } } } function dE(e) { var t switch (e.arrayFormat) { case 'index': return function (n, a, l) { if (((t = /\[(\d*)]$/.exec(n)), (n = n.replace(/\[\d*]$/, '')), !t)) { l[n] = a return } l[n] === void 0 && (l[n] = {}), (l[n][t[1]] = a) } case 'bracket': return function (n, a, l) { if (((t = /(\[])$/.exec(n)), (n = n.replace(/\[]$/, '')), !t)) { l[n] = a return } if (l[n] === void 0) { l[n] = [a] return } l[n] = [].concat(ni(l[n]), [a]) } case 'colon-list-separator': return function (n, a, l) { if (((t = /(:list)$/.exec(n)), (n = n.replace(/:list$/, '')), !t)) { l[n] = a return } if (l[n] === void 0) { l[n] = [a] return } l[n] = [].concat(ni(l[n]), [a]) } case 'comma': case 'separator': return function (n, a, l) { var f = typeof a == 'string' && a.includes(e.arrayFormatSeparator), g = typeof a == 'string' && !f && Co(a, e).includes(e.arrayFormatSeparator) a = g ? Co(a, e) : a var h = f || g ? a.split(e.arrayFormatSeparator).map(function (_) { return Co(_, e) }) : a === null ? a : Co(a, e) l[n] = h } case 'bracket-separator': return function (n, a, l) { var f = /(\[])$/.test(n) if (((n = n.replace(/\[]$/, '')), !f)) { l[n] = a && Co(a, e) return } var g = a === null ? [] : a.split(e.arrayFormatSeparator).map(function (h) { return Co(h, e) }) if (l[n] === void 0) { l[n] = g return } l[n] = [].concat(ni(l[n]), ni(g)) } default: return function (n, a, l) { if (l[n] === void 0) { l[n] = a return } l[n] = [].concat(ni([l[n]].flat()), [a]) } } } function py(e) { if (typeof e != 'string' || e.length !== 1) throw new TypeError('arrayFormatSeparator must be single character string') } function Hn(e, t) { return t.encode ? (t.strict ? cE(e) : encodeURIComponent(e)) : e } function Co(e, t) { return t.decode ? sE(e) : e } function gy(e) { return Array.isArray(e) ? e.sort() : Bh(e) === 'object' ? gy(Object.keys(e)) .sort(function (t, n) { return Number(t) - Number(n) }) .map(function (t) { return e[t] }) : e } function my(e) { var t = e.indexOf('#') return t !== -1 && (e = e.slice(0, t)), e } function fE(e) { var t = '', n = e.indexOf('#') return n !== -1 && (t = e.slice(n)), t } function hy(e, t) { return ( t.parseNumbers && !Number.isNaN(Number(e)) && typeof e == 'string' && e.trim() !== '' ? (e = Number(e)) : t.parseBooleans && e !== null && (e.toLowerCase() === 'true' || e.toLowerCase() === 'false') && (e = e.toLowerCase() === 'true'), e ) } function Gh(e) { e = my(e) var t = e.indexOf('?') return t === -1 ? '' : e.slice(t + 1) } function Xh(e, t) { ;(t = xo( { decode: !0, sort: !0, arrayFormat: 'none', arrayFormatSeparator: ',', parseNumbers: !1, parseBooleans: !1 }, t )), py(t.arrayFormatSeparator) var n = dE(t), a = Object.create(null) if (typeof e != 'string' || ((e = e.trim().replace(/^[?#&]/, '')), !e)) return a var l = ve(e.split('&')), f try { for (l.s(); !(f = l.n()).done; ) { var g = f.value if (g !== '') { var h = t.decode ? g.replace(/\+/g, ' ') : g, _ = fy(h, '='), b = $(_, 2), S = b[0], x = b[1] S === void 0 && (S = h), (x = x === void 0 ? null : ['comma', 'separator', 'bracket-separator'].includes(t.arrayFormat) ? x : Co(x, t)), n(Co(S, t), x, a) } } } catch (ie) { l.e(ie) } finally { l.f() } for (var k = 0, D = Object.entries(a); k < D.length; k++) { var M = $(D[k], 2), P = M[0], R = M[1] if (Bh(R) === 'object' && R !== null) for (var j = 0, L = Object.entries(R); j < L.length; j++) { var H = $(L[j], 2), U = H[0], te = H[1] R[U] = hy(te, t) } else a[P] = hy(R, t) } return t.sort === !1 ? a : (t.sort === !0 ? Object.keys(a).sort() : Object.keys(a).sort(t.sort)).reduce(function (ie, ae) { var de = a[ae] return Boolean(de) && Bh(de) === 'object' && !Array.isArray(de) ? (ie[ae] = gy(de)) : (ie[ae] = de), ie }, Object.create(null)) } function vy(e, t) { if (!e) return '' ;(t = xo({ encode: !0, strict: !0, arrayFormat: 'none', arrayFormatSeparator: ',' }, t)), py(t.arrayFormatSeparator) for ( var n = function (k) { return (t.skipNull && lE(e[k])) || (t.skipEmptyString && e[k] === '') }, a = uE(t), l = {}, f = 0, g = Object.entries(e); f < g.length; f++ ) { var h = $(g[f], 2), _ = h[0], b = h[1] n(_) || (l[_] = b) } var S = Object.keys(l) return ( t.sort !== !1 && S.sort(t.sort), S.map(function (x) { var k = e[x] return k === void 0 ? '' : k === null ? Hn(x, t) : Array.isArray(k) ? k.length === 0 && t.arrayFormat === 'bracket-separator' ? Hn(x, t) + '[]' : k.reduce(a(x), []).join('&') : Hn(x, t) + '=' + Hn(k, t) }) .filter(function (x) { return x.length > 0 }) .join('&') ) } function _y(e, t) { var n, a, l t = xo({ decode: !0 }, t) var f = fy(e, '#'), g = $(f, 2), h = g[0], _ = g[1] return ( h === void 0 && (h = e), xo( { url: (n = (a = h) === null || a === void 0 || (l = a.split('?')) === null || l === void 0 ? void 0 : l[0]) !== null && n !== void 0 ? n : '', query: Xh(Gh(e), t), }, t && t.parseFragmentIdentifier && _ ? { fragmentIdentifier: Co(_, t) } : {} ) ) } function yy(e, t) { t = xo(Ae({ encode: !0, strict: !0 }, Vh, !0), t) var n = my(e.url).split('?')[0] || '', a = Gh(e.url), l = xo(xo({}, Xh(a, { sort: !1 })), e.query), f = vy(l, t) f && (f = '?'.concat(f)) var g = fE(e.url) if (e.fragmentIdentifier) { var h = new URL(n) ;(h.hash = e.fragmentIdentifier), (g = t[Vh] ? h.hash : '#'.concat(e.fragmentIdentifier)) } return ''.concat(n).concat(f).concat(g) } function by(e, t, n) { n = xo(Ae({ parseFragmentIdentifier: !0 }, Vh, !1), n) var a = _y(e, n), l = a.url, f = a.query, g = a.fragmentIdentifier return yy({ url: l, query: Wh(f, t), fragmentIdentifier: g }, n) } function pE(e, t, n) { var a = Array.isArray(t) ? function (l) { return !t.includes(l) } : function (l, f) { return !t(l, f) } return by(e, a, n) } var Kh = z, gE = dt(6774), mE = dt.n(gE) function hE(e) { function t(Ge, Xe, ot, Ye, Te) { for ( var xt = 0, et = 0, Ft = 0, $t = 0, yt, Et, Ht = 0, dn = 0, qt, _n = (qt = yt = 0), Tt = 0, Dt = 0, tn = 0, Vt = 0, ri = ot.length, Un = ri - 1, Wn, Ut = '', an = '', _i = '', hr = '', yi; Tt < ri; ) { if ( ((Et = ot.charCodeAt(Tt)), Tt === Un && et + $t + Ft + xt !== 0 && (et !== 0 && (Et = et === 47 ? 10 : 47), ($t = Ft = xt = 0), ri++, Un++), et + $t + Ft + xt === 0) ) { if (Tt === Un && (0 < Dt && (Ut = Ut.replace(k, '')), 0 < Ut.trim().length)) { switch (Et) { case 32: case 9: case 59: case 13: case 10: break default: Ut += ot.charAt(Tt) } Et = 59 } switch (Et) { case 123: for (Ut = Ut.trim(), yt = Ut.charCodeAt(0), qt = 1, Vt = ++Tt; Tt < ri; ) { switch ((Et = ot.charCodeAt(Tt))) { case 123: qt++ break case 125: qt-- break case 47: switch ((Et = ot.charCodeAt(Tt + 1))) { case 42: case 47: e: { for (_n = Tt + 1; _n < Un; ++_n) switch (ot.charCodeAt(_n)) { case 47: if (Et === 42 && ot.charCodeAt(_n - 1) === 42 && Tt + 2 !== _n) { Tt = _n + 1 break e } break case 10: if (Et === 47) { Tt = _n + 1 break e } } Tt = _n } } break case 91: Et++ case 40: Et++ case 34: case 39: for (; Tt++ < Un && ot.charCodeAt(Tt) !== Et; ); } if (qt === 0) break Tt++ } switch ( ((qt = ot.substring(Vt, Tt)), yt === 0 && (yt = (Ut = Ut.replace(x, '').trim()).charCodeAt(0)), yt) ) { case 64: switch ((0 < Dt && (Ut = Ut.replace(k, '')), (Et = Ut.charCodeAt(1)), Et)) { case 100: case 109: case 115: case 45: Dt = Xe break default: Dt = Ve } if ( ((qt = t(Xe, Dt, qt, Et, Te + 1)), (Vt = qt.length), 0 < ft && ((Dt = n(Ve, Ut, tn)), (yi = h(3, qt, Dt, Xe, oe, se, Vt, Et, Te, Ye)), (Ut = Dt.join('')), yi !== void 0 && (Vt = (qt = yi.trim()).length) === 0 && ((Et = 0), (qt = ''))), 0 < Vt) ) switch (Et) { case 115: Ut = Ut.replace(ie, g) case 100: case 109: case 45: qt = Ut + '{' + qt + '}' break case 107: ;(Ut = Ut.replace(L, '$1 $2')), (qt = Ut + '{' + qt + '}'), (qt = Oe === 1 || (Oe === 2 && f('@' + qt, 3)) ? '@-webkit-' + qt + '@' + qt : '@' + qt) break default: ;(qt = Ut + qt), Ye === 112 && (qt = ((an += qt), '')) } else qt = '' break default: qt = t(Xe, n(Xe, Ut, tn), qt, Ye, Te + 1) } ;(_i += qt), (qt = tn = Dt = _n = yt = 0), (Ut = ''), (Et = ot.charCodeAt(++Tt)) break case 125: case 59: if (((Ut = (0 < Dt ? Ut.replace(k, '') : Ut).trim()), 1 < (Vt = Ut.length))) switch ( (_n === 0 && ((yt = Ut.charCodeAt(0)), yt === 45 || (96 < yt && 123 > yt)) && (Vt = (Ut = Ut.replace(' ', ':')).length), 0 < ft && (yi = h(1, Ut, Xe, Ge, oe, se, an.length, Ye, Te, Ye)) !== void 0 && (Vt = (Ut = yi.trim()).length) === 0 && (Ut = '\0\0'), (yt = Ut.charCodeAt(0)), (Et = Ut.charCodeAt(1)), yt) ) { case 0: break case 64: if (Et === 105 || Et === 99) { hr += Ut + ot.charAt(Tt) break } default: Ut.charCodeAt(Vt - 1) !== 58 && (an += l(Ut, yt, Et, Ut.charCodeAt(2))) } ;(tn = Dt = _n = yt = 0), (Ut = ''), (Et = ot.charCodeAt(++Tt)) } } switch (Et) { case 13: case 10: et === 47 ? (et = 0) : 1 + yt === 0 && Ye !== 107 && 0 < Ut.length && ((Dt = 1), (Ut += '\0')), 0 < ft * Nt && h(0, Ut, Xe, Ge, oe, se, an.length, Ye, Te, Ye), (se = 1), oe++ break case 59: case 125: if (et + $t + Ft + xt === 0) { se++ break } default: switch ((se++, (Wn = ot.charAt(Tt)), Et)) { case 9: case 32: if ($t + xt + et === 0) switch (Ht) { case 44: case 58: case 9: case 32: Wn = '' break default: Et !== 32 && (Wn = ' ') } break case 0: Wn = '\\0' break case 12: Wn = '\\f' break case 11: Wn = '\\v' break case 38: $t + et + xt === 0 && ((Dt = tn = 1), (Wn = '\f' + Wn)) break case 108: if ($t + et + xt + fe === 0 && 0 < _n) switch (Tt - _n) { case 2: Ht === 112 && ot.charCodeAt(Tt - 3) === 58 && (fe = Ht) case 8: dn === 111 && (fe = dn) } break case 58: $t + et + xt === 0 && (_n = Tt) break case 44: et + Ft + $t + xt === 0 && ((Dt = 1), (Wn += '\r')) break case 34: case 39: et === 0 && ($t = $t === Et ? 0 : $t === 0 ? Et : $t) break case 91: $t + et + Ft === 0 && xt++ break case 93: $t + et + Ft === 0 && xt-- break case 41: $t + et + xt === 0 && Ft-- break case 40: if ($t + et + xt === 0) { if (yt === 0) switch (2 * Ht + 3 * dn) { case 533: break default: yt = 1 } Ft++ } break case 64: et + Ft + $t + xt + _n + qt === 0 && (qt = 1) break case 42: case 47: if (!(0 < $t + xt + Ft)) switch (et) { case 0: switch (2 * Et + 3 * ot.charCodeAt(Tt + 1)) { case 235: et = 47 break case 220: ;(Vt = Tt), (et = 42) } break case 42: Et === 47 && Ht === 42 && Vt + 2 !== Tt && (ot.charCodeAt(Vt + 2) === 33 && (an += ot.substring(Vt, Tt + 1)), (Wn = ''), (et = 0)) } } et === 0 && (Ut += Wn) } ;(dn = Ht), (Ht = Et), Tt++ } if (((Vt = an.length), 0 < Vt)) { if ( ((Dt = Xe), 0 < ft && ((yi = h(2, an, Dt, Ge, oe, se, Vt, Ye, Te, Ye)), yi !== void 0 && (an = yi).length === 0)) ) return hr + an + _i if (((an = Dt.join(',') + '{' + an + '}'), Oe * fe !== 0)) { switch ((Oe !== 2 || f(an, 2) || (fe = 0), fe)) { case 111: an = an.replace(U, ':-moz-$1') + an break case 112: an = an.replace(H, '::-webkit-input-$1') + an.replace(H, '::-moz-$1') + an.replace(H, ':-ms-input-$1') + an } fe = 0 } } return hr + an + _i } function n(Ge, Xe, ot) { var Ye = Xe.trim().split(R) Xe = Ye var Te = Ye.length, xt = Ge.length switch (xt) { case 0: case 1: var et = 0 for (Ge = xt === 0 ? '' : Ge[0] + ' '; et < Te; ++et) Xe[et] = a(Ge, Xe[et], ot).trim() break default: var Ft = (et = 0) for (Xe = []; et < Te; ++et) for (var $t = 0; $t < xt; ++$t) Xe[Ft++] = a(Ge[$t] + ' ', Ye[et], ot).trim() } return Xe } function a(Ge, Xe, ot) { var Ye = Xe.charCodeAt(0) switch ((33 > Ye && (Ye = (Xe = Xe.trim()).charCodeAt(0)), Ye)) { case 38: return Xe.replace(j, '$1' + Ge.trim()) case 58: return Ge.trim() + Xe.replace(j, '$1' + Ge.trim()) default: if (0 < 1 * ot && 0 < Xe.indexOf('\f')) return Xe.replace(j, (Ge.charCodeAt(0) === 58 ? '' : '$1') + Ge.trim()) } return Ge + Xe } function l(Ge, Xe, ot, Ye) { var Te = Ge + ';', xt = 2 * Xe + 3 * ot + 4 * Ye if (xt === 944) { Ge = Te.indexOf(':', 9) + 1 var et = Te.substring(Ge, Te.length - 1).trim() return ( (et = Te.substring(0, Ge).trim() + et + ';'), Oe === 1 || (Oe === 2 && f(et, 1)) ? '-webkit-' + et + et : et ) } if (Oe === 0 || (Oe === 2 && !f(Te, 1))) return Te switch (xt) { case 1015: return Te.charCodeAt(10) === 97 ? '-webkit-' + Te + Te : Te case 951: return Te.charCodeAt(3) === 116 ? '-webkit-' + Te + Te : Te case 963: return Te.charCodeAt(5) === 110 ? '-webkit-' + Te + Te : Te case 1009: if (Te.charCodeAt(4) !== 100) break case 969: case 942: return '-webkit-' + Te + Te case 978: return '-webkit-' + Te + '-moz-' + Te + Te case 1019: case 983: return '-webkit-' + Te + '-moz-' + Te + '-ms-' + Te + Te case 883: if (Te.charCodeAt(8) === 45) return '-webkit-' + Te + Te if (0 < Te.indexOf('image-set(', 11)) return Te.replace(De, '$1-webkit-$2') + Te break case 932: if (Te.charCodeAt(4) === 45) switch (Te.charCodeAt(5)) { case 103: return ( '-webkit-box-' + Te.replace('-grow', '') + '-webkit-' + Te + '-ms-' + Te.replace('grow', 'positive') + Te ) case 115: return '-webkit-' + Te + '-ms-' + Te.replace('shrink', 'negative') + Te case 98: return '-webkit-' + Te + '-ms-' + Te.replace('basis', 'preferred-size') + Te } return '-webkit-' + Te + '-ms-' + Te + Te case 964: return '-webkit-' + Te + '-ms-flex-' + Te + Te case 1023: if (Te.charCodeAt(8) !== 99) break return ( (et = Te.substring(Te.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify')), '-webkit-box-pack' + et + '-webkit-' + Te + '-ms-flex-pack' + et + Te ) case 1005: return M.test(Te) ? Te.replace(D, ':-webkit-') + Te.replace(D, ':-moz-') + Te : Te case 1e3: switch ( ((et = Te.substring(13).trim()), (Xe = et.indexOf('-') + 1), et.charCodeAt(0) + et.charCodeAt(Xe)) ) { case 226: et = Te.replace(te, 'tb') break case 232: et = Te.replace(te, 'tb-rl') break case 220: et = Te.replace(te, 'lr') break default: return Te } return '-webkit-' + Te + '-ms-' + et + Te case 1017: if (Te.indexOf('sticky', 9) === -1) break case 975: switch ( ((Xe = (Te = Ge).length - 10), (et = (Te.charCodeAt(Xe) === 33 ? Te.substring(0, Xe) : Te).substring(Ge.indexOf(':', 7) + 1).trim()), (xt = et.charCodeAt(0) + (et.charCodeAt(7) | 0))) ) { case 203: if (111 > et.charCodeAt(8)) break case 115: Te = Te.replace(et, '-webkit-' + et) + ';' + Te break case 207: case 102: Te = Te.replace(et, '-webkit-' + (102 < xt ? 'inline-' : '') + 'box') + ';' + Te.replace(et, '-webkit-' + et) + ';' + Te.replace(et, '-ms-' + et + 'box') + ';' + Te } return Te + ';' case 938: if (Te.charCodeAt(5) === 45) switch (Te.charCodeAt(6)) { case 105: return (et = Te.replace('-items', '')), '-webkit-' + Te + '-webkit-box-' + et + '-ms-flex-' + et + Te case 115: return '-webkit-' + Te + '-ms-flex-item-' + Te.replace(de, '') + Te default: return '-webkit-' + Te + '-ms-flex-line-pack' + Te.replace('align-content', '').replace(de, '') + Te } break case 973: case 989: if (Te.charCodeAt(3) !== 45 || Te.charCodeAt(4) === 122) break case 931: case 953: if (me.test(Ge) === !0) return (et = Ge.substring(Ge.indexOf(':') + 1)).charCodeAt(0) === 115 ? l(Ge.replace('stretch', 'fill-available'), Xe, ot, Ye).replace(':fill-available', ':stretch') : Te.replace(et, '-webkit-' + et) + Te.replace(et, '-moz-' + et.replace('fill-', '')) + Te break case 962: if ( ((Te = '-webkit-' + Te + (Te.charCodeAt(5) === 102 ? '-ms-' + Te : '') + Te), ot + Ye === 211 && Te.charCodeAt(13) === 105 && 0 < Te.indexOf('transform', 10)) ) return Te.substring(0, Te.indexOf(';', 27) + 1).replace(P, '$1-webkit-$2') + Te } return Te } function f(Ge, Xe) { var ot = Ge.indexOf(Xe === 1 ? ':' : '{'), Ye = Ge.substring(0, Xe !== 3 ? ot : 10) return (ot = Ge.substring(ot + 1, Ge.length - 1)), Ot(Xe !== 2 ? Ye : Ye.replace(ye, '$1'), ot, Xe) } function g(Ge, Xe) { var ot = l(Xe, Xe.charCodeAt(0), Xe.charCodeAt(1), Xe.charCodeAt(2)) return ot !== Xe + ';' ? ot.replace(ae, ' or ($1)').substring(4) : '(' + Xe + ')' } function h(Ge, Xe, ot, Ye, Te, xt, et, Ft, $t, yt) { for (var Et = 0, Ht = Xe, dn; Et < ft; ++Et) switch ((dn = Qe[Et].call(S, Ge, Ht, ot, Ye, Te, xt, et, Ft, $t, yt))) { case void 0: case !1: case !0: case null: break default: Ht = dn } if (Ht !== Xe) return Ht } function _(Ge) { switch (Ge) { case void 0: case null: ft = Qe.length = 0 break default: if (typeof Ge == 'function') Qe[ft++] = Ge else if (typeof Ge == 'object') for (var Xe = 0, ot = Ge.length; Xe < ot; ++Xe) _(Ge[Xe]) else Nt = !!Ge | 0 } return _ } function b(Ge) { return ( (Ge = Ge.prefix), Ge !== void 0 && ((Ot = null), Ge ? (typeof Ge != 'function' ? (Oe = 1) : ((Oe = 2), (Ot = Ge))) : (Oe = 0)), b ) } function S(Ge, Xe) { var ot = Ge if ((33 > ot.charCodeAt(0) && (ot = ot.trim()), (Ct = ot), (ot = [Ct]), 0 < ft)) { var Ye = h(-1, Xe, ot, ot, oe, se, 0, 0, 0, 0) Ye !== void 0 && typeof Ye == 'string' && (Xe = Ye) } var Te = t(Ve, ot, Xe, 0, 0) return ( 0 < ft && ((Ye = h(-2, Te, ot, ot, oe, se, Te.length, 0, 0, 0)), Ye !== void 0 && (Te = Ye)), (Ct = ''), (fe = 0), (se = oe = 1), Te ) } var x = /^\0+/g, k = /[\0\r\f]/g, D = /: */g, M = /zoo|gra/, P = /([,: ])(transform)/g, R = /,\r+?/g, j = /([\t\r\n ])*\f?&/g, L = /@(k\w+)\s*(\S*)\s*/, H = /::(place)/g, U = /:(read-only)/g, te = /[svh]\w+-[tblr]{2}/, ie = /\(\s*(.*)\s*\)/g, ae = /([\s\S]*?);/g, de = /-self|flex-/g, ye = /[^]*?(:[rp][el]a[\w-]+)[^]*/, me = /stretch|:\s*\w+\-(?:conte|avail)/, De = /([^-])(image-set\()/, se = 1, oe = 1, fe = 0, Oe = 1, Ve = [], Qe = [], ft = 0, Ot = null, Nt = 0, Ct = '' return (S.use = _), (S.set = b), e !== void 0 && b(e), S } var vE = hE, _E = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|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|enterKeyHint|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|incremental|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)-.*))$/, yE = Tr(function (e) { return _E.test(e) || (e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91) }), Sy = yE, wy = dt(4155) function vi() { return (vi = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t] for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]) } return e }).apply(this, arguments) } var xy = function (e, t) { for (var n = [e[0]], a = 0, l = t.length; a < l; a += 1) n.push(t[a], e[a + 1]) return n }, Yh = function (e) { return ( e !== null && typeof e == 'object' && (e.toString ? e.toString() : Object.prototype.toString.call(e)) === '[object Object]' && !(0, Is.typeOf)(e) ) }, kg = Object.freeze([]), Us = Object.freeze({}) function Cu(e) { return typeof e == 'function' } function qh(e) { return e.displayName || e.name || 'Component' } function Qh(e) { return e && typeof e.styledComponentId == 'string' } var Ws = (typeof wy != 'undefined' && { npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', } !== void 0 && ({ npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', }.REACT_APP_SC_ATTR || { npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', }.SC_ATTR)) || 'data-styled', DI = '5.3.9', Jh = typeof window != 'undefined' && 'HTMLElement' in window, bE = Boolean( typeof SC_DISABLE_SPEEDY == 'boolean' ? SC_DISABLE_SPEEDY : typeof wy != 'undefined' && { npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', } !== void 0 && ({ npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', }.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && { npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', }.REACT_APP_SC_DISABLE_SPEEDY !== '' ? { npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', }.REACT_APP_SC_DISABLE_SPEEDY !== 'false' && { npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', }.REACT_APP_SC_DISABLE_SPEEDY : { npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', }.SC_DISABLE_SPEEDY !== void 0 && { npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', }.SC_DISABLE_SPEEDY !== '' ? { npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', }.SC_DISABLE_SPEEDY !== 'false' && { npm_package_devDependencies_react_dom: '^18', npm_package_devDependencies_lint_staged: '^13.2.1', npm_package_devDependencies_stylelint_config_recommended: '^12.0.0', npm_package_devDependencies_prettier: '^2', npm_package_scripts_prettier: 'prettier -c --write "**/**" && npm run lint && npm run stylelint', NODE: '/usr/local/bin/node', INIT_CWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_typescript: '^5.0.0', npm_config_version_git_tag: 'true', TERM: 'xterm-256color', SHELL: '/opt/homebrew/bin/fish', npm_package_devDependencies_eslint_import_resolver_alias: '^1.1.2', TMPDIR: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/', npm_package_devDependencies_stylelint_less: '^1.0.6', npm_package_scripts_release: 'semantic-release', npm_package_scripts_lint: 'eslint "{src,javascript}/**/*.{js,jsx,ts,tsx}" --fix', npm_config_init_license: 'MIT', npm_config_email: '', npm_package_devDependencies_concurrently: '^8.0.1', npm_package_devDependencies__types_react_rnd: '^8.0.0', npm_package_scripts_dev: 'umi build', TERM_SESSION_ID: 'f26f597f-7b5d-4db8-a7dc-bf35685e3bbf', npm_package_devDependencies_stylelint_order: '^6.0.3', npm_package_devDependencies_semantic_release_config_gitmoji: '^1', npm_package_devDependencies_re_resizable: '^6.9.9', npm_package_sideEffects: 'false', npm_package_private: 'true', npm_config_registry: 'https://registry.yarnpkg.com', npm_package_repository_url: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme.git', __INTELLIJ_COMMAND_HISTFILE__: '/Users/canisminor/Library/Caches/JetBrains/WebStorm2022.3/terminal/history/sd-web-ui-kitchen-theme-history2', npm_package_readmeFilename: 'README.md', npm_package_devDependencies_react_rnd: '^10.4.1', USER: 'canisminor', npm_package_description: '- \u{1F308} Supports light and dark themes with switch button. - \u{1FA84} Supports Prompt formatting. - \u{1F39B}\uFE0F Quick Setting in draggable sidebar. - \u{1F3A8} Based on Antd CSS Token.', npm_package_devDependencies_react: '^18', npm_package_devDependencies_semantic_release: '^21', npm_package_devDependencies__types_react_tag_input: '^6.6.1', npm_package_devDependencies__types_react: '^18', npm_package_lint_staged____ts_tsx__0: 'eslint --fix', npm_package_license: 'MIT', COMMAND_MODE: 'unix2003', npm_package_devDependencies__types_styled_components: '^5.1.26', npm_package_lint_staged____ts_tsx__1: 'prettier --parser=typescript --write', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.rzwcISDepa/Listeners', __CF_USER_TEXT_ENCODING: '0x1F5:0x19:0x34', npm_package_devDependencies_eslint: '^8', LOGIN_SHELL: '1', npm_execpath: '/opt/homebrew/lib/node_modules/yarn/bin/yarn.js', npm_package_devDependencies_query_string: '^8.1.0', omp_last_status_generation: '27', npm_package_devDependencies_antd: '^5.4.2', npm_package_author_name: 'canisminor1990', npm_package_devDependencies_react_layout_kit: '^1.6.1', npm_package_devDependencies__types_react_dom: '^18', npm_package_scripts_type_check: 'tsc -p tsconfig-check.json', npm_package_devDependencies_styled_components: '^5.3.9', PATH: '/var/folders/24/xm1q01d93q74n4jfzsrtyr9r0000gn/T/yarn--1682059147037-0.7579674969509707:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin:/Users/canisminor/.config/yarn/link/node_modules/.bin:/Users/canisminor/.yarn/bin:/usr/local/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/bin/node_modules/npm/bin/node-gyp-bin:/opt/homebrew/sbin:/opt/homebrew/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin', npm_config_argv: '{"remain":[],"cooked":["run","build"],"original":["build"]}', npm_package_devDependencies_postcss_less: '^6.0.0', npm_package_devDependencies__umijs_lint: '^4.0.66', TERMINAL_EMULATOR: 'JetBrains-JediTerm', npm_package_devDependencies_prettier_plugin_packagejson: '^2', _: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/.bin/umi', npm_package_devDependencies_commitlint_config_gitmoji: '^2', __CFBundleIdentifier: 'com.jetbrains.WebStorm', npm_package_devDependencies_webpack_shell_plugin_next: '^2.3.1', npm_package_devDependencies_commitlint: '^17', PWD: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme', npm_package_devDependencies_zustand: '^4.3.7', npm_lifecycle_event: 'build', npm_package_repository_type: 'git', npm_package_name: 'sd-web-ui-kitchen-theme', npm_package_devDependencies_stylelint_config_prettier: '^9.0.5', npm_package_devDependencies_react_tag_input: '^6.8.1', npm_package_lint_staged____json__0: 'prettier --write --no-error-on-unmatched-pattern', npm_package_scripts_start: 'umi build', npm_package_scripts_build: 'umi build', npm_config_version_commit_hooks: 'true', XPC_FLAGS: '0x0', npm_package_devDependencies_stylelint: '^15.4.0', npm_package_devDependencies__ant_design_icons: '^5.0.1', npm_config_bin_links: 'true', omp_lastcommand: 'yarn build', XPC_SERVICE_NAME: 'application.com.jetbrains.WebStorm.114282868.114283552', npm_package_devDependencies_umi: '^4.0.64', npm_package_scripts_sd_debug: 'cd ../../ && ./webui.sh', npm_package_version: '1.3.0', npm_package_devDependencies_eslint_import_resolver_typescript: '^3.5.5', HOME: '/Users/canisminor', SHLVL: '2', npm_package_devDependencies__types_react_dnd: '^3.0.2', npm_package_scripts_test: 'npm run lint', npm_config_save_prefix: '^', npm_config_strict_ssl: 'true', npm_package_devDependencies_polished: '^4.2.2', npm_package_devDependencies_husky: '^8.0.3', npm_package_devDependencies__commitlint_cli: '^17', npm_config_version_git_message: 'v%s', npm_config_lockfile: '', npm_package_devDependencies_object_to_css_variables: '^0.2.1', npm_package_lint_staged____less__0: 'stylelint --fix', LOGNAME: 'canisminor', YARN_WRAP_OUTPUT: 'false', npm_package_lint_staged____less__1: 'prettier --write', npm_lifecycle_script: 'umi build', LC_CTYPE: 'en_US.UTF-8', npm_package_author_email: 'i@canisminor.cc', npm_package_devDependencies_react_dnd_html5_backend: '^16.0.1', npm_package_lint_staged____js_jsx__0: 'eslint --fix', npm_package_lint_staged____js_jsx__1: 'prettier --write', npm_config_version_git_sign: '', npm_config_ignore_scripts: '', npm_config_user_agent: 'yarn/1.22.19 npm/? node/v18.15.0 darwin arm64', npm_package_devDependencies__types_node: '^18', npm_package_devDependencies_use_merge_value: '^1.2.0', npm_package_devDependencies_antd_style: '^3.0.0', npm_package_scripts_prepare: 'husky install', POSH_THEME: '/Users/canisminor/.cmli/omp/mytheme.omp.json', npm_package_devDependencies_prettier_plugin_organize_imports: '^3', npm_config_init_version: '1.0.0', npm_config_ignore_optional: '', npm_package_scripts_setup: 'umi setup', npm_package_devDependencies_react_dnd: '^16.0.1', npm_package_scripts_stylelint: 'stylelint "src/**/*.less" --fix', npm_node_execpath: '/usr/local/bin/node', npm_config_version_tag_prefix: 'v', NODE_ENV: 'production', UMI_DIR: '/Users/canisminor/stable-diffusion-webui/extensions/sd-web-ui-kitchen-theme/node_modules/umi', }.SC_DISABLE_SPEEDY : !1) ), SE = {}, PI = {} function II() { for (var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, a = arguments.length; n < a; n += 1) t.push(n < 0 || arguments.length <= n ? void 0 : arguments[n]) return ( t.forEach(function (l) { e = e.replace(/%[a-z]/, l) }), e ) } function Ji(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a] throw new Error( 'An error occurred. See https://git.io/JUIaE#' + e + ' for more information.' + (n.length > 0 ? ' Args: ' + n.join(', ') : '') ) } var wE = (function () { function e(n) { ;(this.groupSizes = new Uint32Array(512)), (this.length = 512), (this.tag = n) } var t = e.prototype return ( (t.indexOfGroup = function (n) { for (var a = 0, l = 0; l < n; l++) a += this.groupSizes[l] return a }), (t.insertRules = function (n, a) { if (n >= this.groupSizes.length) { for (var l = this.groupSizes, f = l.length, g = f; n >= g; ) (g <<= 1) < 0 && Ji(16, '' + n) ;(this.groupSizes = new Uint32Array(g)), this.groupSizes.set(l), (this.length = g) for (var h = f; h < g; h++) this.groupSizes[h] = 0 } for (var _ = this.indexOfGroup(n + 1), b = 0, S = a.length; b < S; b++) this.tag.insertRule(_, a[b]) && (this.groupSizes[n]++, _++) }), (t.clearGroup = function (n) { if (n < this.length) { var a = this.groupSizes[n], l = this.indexOfGroup(n), f = l + a this.groupSizes[n] = 0 for (var g = l; g < f; g++) this.tag.deleteRule(l) } }), (t.getGroup = function (n) { var a = '' if (n >= this.length || this.groupSizes[n] === 0) return a for (var l = this.groupSizes[n], f = this.indexOfGroup(n), g = f + l, h = f; h < g; h++) a += this.tag.getRule(h) + `/*!sc*/ ` return a }), e ) })(), Og = new Map(), Tg = new Map(), Tf = 1, Dg = function (e) { if (Og.has(e)) return Og.get(e) for (; Tg.has(Tf); ) Tf++ var t = Tf++ return Og.set(e, t), Tg.set(t, e), t }, xE = function (e) { return Tg.get(e) }, CE = function (e, t) { t >= Tf && (Tf = t + 1), Og.set(e, t), Tg.set(t, e) }, EE = 'style[' + Ws + '][data-styled-version="5.3.9"]', kE = new RegExp('^' + Ws + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'), OE = function (e, t, n) { for (var a, l = n.split(','), f = 0, g = l.length; f < g; f++) (a = l[f]) && e.registerName(t, a) }, TE = function (e, t) { for ( var n = (t.textContent || '').split(`/*!sc*/ `), a = [], l = 0, f = n.length; l < f; l++ ) { var g = n[l].trim() if (g) { var h = g.match(kE) if (h) { var _ = 0 | parseInt(h[1], 10), b = h[2] _ !== 0 && (CE(b, _), OE(e, b, h[3]), e.getTag().insertRules(_, a)), (a.length = 0) } else a.push(g) } } }, Zh = function () { return dt.nc }, Cy = function (e) { var t = document.head, n = e || t, a = document.createElement('style'), l = (function (h) { for (var _ = h.childNodes, b = _.length; b >= 0; b--) { var S = _[b] if (S && S.nodeType === 1 && S.hasAttribute(Ws)) return S } })(n), f = l !== void 0 ? l.nextSibling : null a.setAttribute(Ws, 'active'), a.setAttribute('data-styled-version', '5.3.9') var g = Zh() return g && a.setAttribute('nonce', g), n.insertBefore(a, f), a }, DE = (function () { function e(n) { var a = (this.element = Cy(n)) a.appendChild(document.createTextNode('')), (this.sheet = (function (l) { if (l.sheet) return l.sheet for (var f = document.styleSheets, g = 0, h = f.length; g < h; g++) { var _ = f[g] if (_.ownerNode === l) return _ } Ji(17) })(a)), (this.length = 0) } var t = e.prototype return ( (t.insertRule = function (n, a) { try { return this.sheet.insertRule(a, n), this.length++, !0 } catch (l) { return !1 } }), (t.deleteRule = function (n) { this.sheet.deleteRule(n), this.length-- }), (t.getRule = function (n) { var a = this.sheet.cssRules[n] return a !== void 0 && typeof a.cssText == 'string' ? a.cssText : '' }), e ) })(), PE = (function () { function e(n) { var a = (this.element = Cy(n)) ;(this.nodes = a.childNodes), (this.length = 0) } var t = e.prototype return ( (t.insertRule = function (n, a) { if (n <= this.length && n >= 0) { var l = document.createTextNode(a), f = this.nodes[n] return this.element.insertBefore(l, f || null), this.length++, !0 } return !1 }), (t.deleteRule = function (n) { this.element.removeChild(this.nodes[n]), this.length-- }), (t.getRule = function (n) { return n < this.length ? this.nodes[n].textContent : '' }), e ) })(), IE = (function () { function e(n) { ;(this.rules = []), (this.length = 0) } var t = e.prototype return ( (t.insertRule = function (n, a) { return n <= this.length && (this.rules.splice(n, 0, a), this.length++, !0) }), (t.deleteRule = function (n) { this.rules.splice(n, 1), this.length-- }), (t.getRule = function (n) { return n < this.length ? this.rules[n] : '' }), e ) })(), Ey = Jh, RE = { isServer: !Jh, useCSSOMInjection: !bE }, Eu = (function () { function e(n, a, l) { n === void 0 && (n = Us), a === void 0 && (a = {}), (this.options = vi({}, RE, {}, n)), (this.gs = a), (this.names = new Map(l)), (this.server = !!n.isServer), !this.server && Jh && Ey && ((Ey = !1), (function (f) { for (var g = document.querySelectorAll(EE), h = 0, _ = g.length; h < _; h++) { var b = g[h] b && b.getAttribute(Ws) !== 'active' && (TE(f, b), b.parentNode && b.parentNode.removeChild(b)) } })(this)) } e.registerId = function (n) { return Dg(n) } var t = e.prototype return ( (t.reconstructWithOptions = function (n, a) { return a === void 0 && (a = !0), new e(vi({}, this.options, {}, n), this.gs, (a && this.names) || void 0) }), (t.allocateGSInstance = function (n) { return (this.gs[n] = (this.gs[n] || 0) + 1) }), (t.getTag = function () { return ( this.tag || (this.tag = ((l = (a = this.options).isServer), (f = a.useCSSOMInjection), (g = a.target), (n = l ? new IE(g) : f ? new DE(g) : new PE(g)), new wE(n))) ) var n, a, l, f, g }), (t.hasNameForId = function (n, a) { return this.names.has(n) && this.names.get(n).has(a) }), (t.registerName = function (n, a) { if ((Dg(n), this.names.has(n))) this.names.get(n).add(a) else { var l = new Set() l.add(a), this.names.set(n, l) } }), (t.insertRules = function (n, a, l) { this.registerName(n, a), this.getTag().insertRules(Dg(n), l) }), (t.clearNames = function (n) { this.names.has(n) && this.names.get(n).clear() }), (t.clearRules = function (n) { this.getTag().clearGroup(Dg(n)), this.clearNames(n) }), (t.clearTag = function () { this.tag = void 0 }), (t.toString = function () { return (function (n) { for (var a = n.getTag(), l = a.length, f = '', g = 0; g < l; g++) { var h = xE(g) if (h !== void 0) { var _ = n.names.get(h), b = a.getGroup(g) if (_ && b && _.size) { var S = Ws + '.g' + g + '[id="' + h + '"]', x = '' _ !== void 0 && _.forEach(function (k) { k.length > 0 && (x += k + ',') }), (f += '' + b + S + '{content:"' + x + `"}/*!sc*/ `) } } } return f })(this) }), e ) })(), ME = /(a)(d)/gi, ky = function (e) { return String.fromCharCode(e + (e > 25 ? 39 : 97)) } function ev(e) { var t, n = '' for (t = Math.abs(e); t > 52; t = (t / 52) | 0) n = ky(t % 52) + n return (ky(t % 52) + n).replace(ME, '$1-$2') } var ku = function (e, t) { for (var n = t.length; n; ) e = (33 * e) ^ t.charCodeAt(--n) return e }, Oy = function (e) { return ku(5381, e) } function Ty(e) { for (var t = 0; t < e.length; t += 1) { var n = e[t] if (Cu(n) && !Qh(n)) return !1 } return !0 } var AE = Oy('5.3.9'), NE = (function () { function e(t, n, a) { ;(this.rules = t), (this.staticRulesId = ''), (this.isStatic = (a === void 0 || a.isStatic) && Ty(t)), (this.componentId = n), (this.baseHash = ku(AE, n)), (this.baseStyle = a), Eu.registerId(n) } return ( (e.prototype.generateAndInjectStyles = function (t, n, a) { var l = this.componentId, f = [] if ((this.baseStyle && f.push(this.baseStyle.generateAndInjectStyles(t, n, a)), this.isStatic && !a.hash)) if (this.staticRulesId && n.hasNameForId(l, this.staticRulesId)) f.push(this.staticRulesId) else { var g = ec(this.rules, t, n, a).join(''), h = ev(ku(this.baseHash, g) >>> 0) if (!n.hasNameForId(l, h)) { var _ = a(g, '.' + h, void 0, l) n.insertRules(l, h, _) } f.push(h), (this.staticRulesId = h) } else { for (var b = this.rules.length, S = ku(this.baseHash, a.hash), x = '', k = 0; k < b; k++) { var D = this.rules[k] if (typeof D == 'string') x += D else if (D) { var M = ec(D, t, n, a), P = Array.isArray(M) ? M.join('') : M ;(S = ku(S, P + k)), (x += P) } } if (x) { var R = ev(S >>> 0) if (!n.hasNameForId(l, R)) { var j = a(x, '.' + R, void 0, l) n.insertRules(l, R, j) } f.push(R) } } return f.join(' ') }), e ) })(), jE = /^\s*\/\/.*$/gm, zE = [':', '[', '.', '#'] function Dy(e) { var t, n, a, l, f = e === void 0 ? Us : e, g = f.options, h = g === void 0 ? Us : g, _ = f.plugins, b = _ === void 0 ? kg : _, S = new vE(h), x = [], k = (function (P) { function R(j) { if (j) try { P(j + '}') } catch (L) {} } return function (j, L, H, U, te, ie, ae, de, ye, me) { switch (j) { case 1: if (ye === 0 && L.charCodeAt(0) === 64) return P(L + ';'), '' break case 2: if (de === 0) return L + '/*|*/' break case 3: switch (de) { case 102: case 112: return P(H[0] + L), '' default: return L + (me === 0 ? '/*|*/' : '') } case -2: L.split('/*|*/}').forEach(R) } } })(function (P) { x.push(P) }), D = function (P, R, j) { return (R === 0 && zE.indexOf(j[n.length]) !== -1) || j.match(l) ? P : '.' + t } function M(P, R, j, L) { L === void 0 && (L = '&') var H = P.replace(jE, ''), U = R && j ? j + ' ' + R + ' { ' + H + ' }' : H return ( (t = L), (n = R), (a = new RegExp('\\' + n + '\\b', 'g')), (l = new RegExp('(\\' + n + '\\b){2,}')), S(j || !R ? '' : R, U) ) } return ( S.use( [].concat(b, [ function (P, R, j) { P === 2 && j.length && j[0].lastIndexOf(n) > 0 && (j[0] = j[0].replace(a, D)) }, k, function (P) { if (P === -2) { var R = x return (x = []), R } }, ]) ), (M.hash = b.length ? b .reduce(function (P, R) { return R.name || Ji(15), ku(P, R.name) }, 5381) .toString() : ''), M ) } var tv = m.createContext(), RI = tv.Consumer, nv = m.createContext(), Py = (nv.Consumer, new Eu()), rv = Dy() function iv() { return (0, m.useContext)(tv) || Py } function Iy() { return (0, m.useContext)(nv) || rv } function LE(e) { var t = (0, m.useState)(e.stylisPlugins), n = t[0], a = t[1], l = iv(), f = (0, m.useMemo)( function () { var h = l return ( e.sheet ? (h = e.sheet) : e.target && (h = h.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (h = h.reconstructWithOptions({ useCSSOMInjection: !1 })), h ) }, [e.disableCSSOMInjection, e.sheet, e.target] ), g = (0, m.useMemo)( function () { return Dy({ options: { prefix: !e.disableVendorPrefixes }, plugins: n }) }, [e.disableVendorPrefixes, n] ) return ( (0, m.useEffect)( function () { mE()(n, e.stylisPlugins) || a(e.stylisPlugins) }, [e.stylisPlugins] ), m.createElement(tv.Provider, { value: f }, m.createElement(nv.Provider, { value: g }, e.children)) ) } var Ry = (function () { function e(t, n) { var a = this ;(this.inject = function (l, f) { f === void 0 && (f = rv) var g = a.name + f.hash l.hasNameForId(a.id, g) || l.insertRules(a.id, g, f(a.rules, g, '@keyframes')) }), (this.toString = function () { return Ji(12, String(a.name)) }), (this.name = t), (this.id = 'sc-keyframes-' + t), (this.rules = n) } return ( (e.prototype.getName = function (t) { return t === void 0 && (t = rv), this.name + t.hash }), e ) })(), FE = /([A-Z])/, $E = /([A-Z])/g, HE = /^ms-/, BE = function (e) { return '-' + e.toLowerCase() } function My(e) { return FE.test(e) ? e.replace($E, BE).replace(HE, '-ms-') : e } var Ay = function (e) { return e == null || e === !1 || e === '' } function ec(e, t, n, a) { if (Array.isArray(e)) { for (var l, f = [], g = 0, h = e.length; g < h; g += 1) (l = ec(e[g], t, n, a)) !== '' && (Array.isArray(l) ? f.push.apply(f, l) : f.push(l)) return f } if (Ay(e)) return '' if (Qh(e)) return '.' + e.styledComponentId if (Cu(e)) { if (typeof (b = e) != 'function' || (b.prototype && b.prototype.isReactComponent) || !t) return e var _ = e(t) return ec(_, t, n, a) } var b return e instanceof Ry ? n ? (e.inject(n, a), e.getName(a)) : e : Yh(e) ? (function S(x, k) { var D, M, P = [] for (var R in x) x.hasOwnProperty(R) && !Ay(x[R]) && ((Array.isArray(x[R]) && x[R].isCss) || Cu(x[R]) ? P.push(My(R) + ':', x[R], ';') : Yh(x[R]) ? P.push.apply(P, S(x[R], R)) : P.push( My(R) + ': ' + ((D = R), (M = x[R]) == null || typeof M == 'boolean' || M === '' ? '' : typeof M != 'number' || M === 0 || D in ap ? String(M).trim() : M + 'px') + ';' )) return k ? [k + ' {'].concat(P, ['}']) : P })(e) : e.toString() } var Ny = function (e) { return Array.isArray(e) && (e.isCss = !0), e } function av(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a] return Cu(e) || Yh(e) ? Ny(ec(xy(kg, [e].concat(n)))) : n.length === 0 && e.length === 1 && typeof e[0] == 'string' ? e : Ny(ec(xy(e, n))) } var MI = /invalid hook call/i, AI = new Set(), NI = function (e, t) { if (!1) var n, a, l }, ov = function (e, t, n) { return n === void 0 && (n = Us), (e.theme !== n.theme && e.theme) || t || n.theme }, UE = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, WE = /(^-|-$)/g function sv(e) { return e.replace(UE, '-').replace(WE, '') } var lv = function (e) { return ev(Oy(e) >>> 0) } function Pg(e) { return typeof e == 'string' && !0 } var cv = function (e) { return typeof e == 'function' || (typeof e == 'object' && e !== null && !Array.isArray(e)) }, VE = function (e) { return e !== '__proto__' && e !== 'constructor' && e !== 'prototype' } function GE(e, t, n) { var a = e[n] cv(t) && cv(a) ? jy(a, t) : (e[n] = t) } function jy(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a] for (var l = 0, f = n; l < f.length; l++) { var g = f[l] if (cv(g)) for (var h in g) VE(h) && GE(e, g[h], h) } return e } var Vs = m.createContext(), jI = Vs.Consumer function zI(e) { var t = s(Vs), n = i( function () { return (function (a, l) { if (!a) return Ji(14) if (Cu(a)) { var f = a(l) return f } return Array.isArray(a) || typeof a != 'object' ? Ji(8) : l ? vi({}, l, {}, a) : a })(e.theme, t) }, [e.theme, t] ) return e.children ? r.createElement(Vs.Provider, { value: n }, e.children) : null } var uv = {} function zy(e, t, n) { var a = Qh(e), l = !Pg(e), f = t.attrs, g = f === void 0 ? kg : f, h = t.componentId, _ = h === void 0 ? (function (L, H) { var U = typeof L != 'string' ? 'sc' : sv(L) uv[U] = (uv[U] || 0) + 1 var te = U + '-' + lv('5.3.9' + U + uv[U]) return H ? H + '-' + te : te })(t.displayName, t.parentComponentId) : h, b = t.displayName, S = b === void 0 ? (function (L) { return Pg(L) ? 'styled.' + L : 'Styled(' + qh(L) + ')' })(e) : b, x = t.displayName && t.componentId ? sv(t.displayName) + '-' + t.componentId : t.componentId || _, k = a && e.attrs ? Array.prototype.concat(e.attrs, g).filter(Boolean) : g, D = t.shouldForwardProp a && e.shouldForwardProp && (D = t.shouldForwardProp ? function (L, H, U) { return e.shouldForwardProp(L, H, U) && t.shouldForwardProp(L, H, U) } : e.shouldForwardProp) var M, P = new NE(n, x, a ? e.componentStyle : void 0), R = P.isStatic && g.length === 0, j = function (L, H) { return (function (U, te, ie, ae) { var de = U.attrs, ye = U.componentStyle, me = U.defaultProps, De = U.foldedComponentIds, se = U.shouldForwardProp, oe = U.styledComponentId, fe = U.target, Oe = (function (Ye, Te, xt) { Ye === void 0 && (Ye = Us) var et = vi({}, Te, { theme: Ye }), Ft = {} return ( xt.forEach(function ($t) { var yt, Et, Ht, dn = $t for (yt in (Cu(dn) && (dn = dn(et)), dn)) et[yt] = Ft[yt] = yt === 'className' ? ((Et = Ft[yt]), (Ht = dn[yt]), Et && Ht ? Et + ' ' + Ht : Et || Ht) : dn[yt] }), [et, Ft] ) })(ov(te, (0, m.useContext)(Vs), me) || Us, te, de), Ve = Oe[0], Qe = Oe[1], ft = (function (Ye, Te, xt, et) { var Ft = iv(), $t = Iy(), yt = Te ? Ye.generateAndInjectStyles(Us, Ft, $t) : Ye.generateAndInjectStyles(xt, Ft, $t) return yt })(ye, ae, Ve, void 0), Ot = ie, Nt = Qe.$as || te.$as || Qe.as || te.as || fe, Ct = Pg(Nt), Ge = Qe !== te ? vi({}, te, {}, Qe) : te, Xe = {} for (var ot in Ge) ot[0] !== '$' && ot !== 'as' && (ot === 'forwardedAs' ? (Xe.as = Ge[ot]) : (se ? se(ot, Sy, Nt) : !Ct || Sy(ot)) && (Xe[ot] = Ge[ot])) return ( te.style && Qe.style !== te.style && (Xe.style = vi({}, te.style, {}, Qe.style)), (Xe.className = Array.prototype .concat(De, oe, ft !== oe ? ft : null, te.className, Qe.className) .filter(Boolean) .join(' ')), (Xe.ref = Ot), (0, m.createElement)(Nt, Xe) ) })(M, L, H, R) } return ( (j.displayName = S), ((M = m.forwardRef(j)).attrs = k), (M.componentStyle = P), (M.displayName = S), (M.shouldForwardProp = D), (M.foldedComponentIds = a ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : kg), (M.styledComponentId = x), (M.target = a ? e.target : e), (M.withComponent = function (L) { var H = t.componentId, U = (function (ie, ae) { if (ie == null) return {} var de, ye, me = {}, De = Object.keys(ie) for (ye = 0; ye < De.length; ye++) (de = De[ye]), ae.indexOf(de) >= 0 || (me[de] = ie[de]) return me })(t, ['componentId']), te = H && H + '-' + (Pg(L) ? L : sv(qh(L))) return zy(L, vi({}, U, { attrs: k, componentId: te }), n) }), Object.defineProperty(M, 'defaultProps', { get: function () { return this._foldedDefaultProps }, set: function (L) { this._foldedDefaultProps = a ? jy({}, e.defaultProps, L) : L }, }), Object.defineProperty(M, 'toString', { value: function () { return '.' + M.styledComponentId }, }), l && Sm()(M, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0, withComponent: !0, }), M ) } var dv = function (e) { return (function t(n, a, l) { if ((l === void 0 && (l = Us), !(0, Is.isValidElementType)(a))) return Ji(1, String(a)) var f = function () { return n(a, l, av.apply(void 0, arguments)) } return ( (f.withConfig = function (g) { return t(n, a, vi({}, l, {}, g)) }), (f.attrs = function (g) { return t(n, a, vi({}, l, { attrs: Array.prototype.concat(l.attrs, g).filter(Boolean) })) }), f ) })(zy, e) } ;[ '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', 'marker', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'textPath', 'tspan', ].forEach(function (e) { dv[e] = dv(e) }) var XE = (function () { function e(n, a) { ;(this.rules = n), (this.componentId = a), (this.isStatic = Ty(n)), Eu.registerId(this.componentId + 1) } var t = e.prototype return ( (t.createStyles = function (n, a, l, f) { var g = f(ec(this.rules, a, l, f).join(''), ''), h = this.componentId + n l.insertRules(h, h, g) }), (t.removeStyles = function (n, a) { a.clearRules(this.componentId + n) }), (t.renderStyles = function (n, a, l, f) { n > 2 && Eu.registerId(this.componentId + n), this.removeStyles(n, l), this.createStyles(n, a, l, f) }), e ) })() function LI(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a] var l = av.apply(void 0, [e].concat(n)), f = 'sc-global-' + lv(JSON.stringify(l)), g = new XE(l, f) function h(b) { var S = iv(), x = Iy(), k = s(Vs), D = c(S.allocateGSInstance(f)).current return ( S.server && _(D, b, S, k, x), d( function () { if (!S.server) return ( _(D, b, S, k, x), function () { return g.removeStyles(D, S) } ) }, [D, b, S, k, x] ), null ) } function _(b, S, x, k, D) { if (g.isStatic) g.renderStyles(b, SE, x, D) else { var M = vi({}, S, { theme: ov(S, k, h.defaultProps) }) g.renderStyles(b, M, x, D) } } return r.memo(h) } function FI(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a] var l = av.apply(void 0, [e].concat(n)).join(''), f = lv(l) return new Ry(f, l) } var $I = (function () { function e() { var n = this ;(this._emitSheetCSS = function () { var a = n.instance.toString() if (!a) return '' var l = Zh() return ( '' ) }), (this.getStyleTags = function () { return n.sealed ? Ji(2) : n._emitSheetCSS() }), (this.getStyleElement = function () { var a if (n.sealed) return Ji(2) var l = (((a = {})[Ws] = ''), (a['data-styled-version'] = '5.3.9'), (a.dangerouslySetInnerHTML = { __html: n.instance.toString() }), a), f = Zh() return f && (l.nonce = f), [m.createElement('style', vi({}, l, { key: 'sc-0-0' }))] }), (this.seal = function () { n.sealed = !0 }), (this.instance = new Eu({ isServer: !0 })), (this.sealed = !1) } var t = e.prototype return ( (t.collectStyles = function (n) { return this.sealed ? Ji(2) : m.createElement(LE, { sheet: this.instance }, n) }), (t.interleaveWithNodeStream = function (n) { return Ji(3) }), e ) })(), HI = function (e) { var t = r.forwardRef(function (n, a) { var l = s(Vs), f = e.defaultProps, g = ov(n, l, f) return r.createElement(e, vi({}, n, { theme: g, ref: a })) }) return y(t, e), (t.displayName = 'WithTheme(' + qh(e) + ')'), t }, BI = function () { return s(Vs) }, UI = { StyleSheet: Eu, masterSheet: Py }, Ni = dv, KE = dt(9400), Sn = dt.n(KE), YE = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z', }, }, ], }, name: 'down', theme: 'outlined', }, qE = YE, Ly = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: qE })) } Ly.displayName = 'DownOutlined' var QE = m.forwardRef(Ly), JE = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z', }, }, ], }, name: 'up', theme: 'outlined', }, ZE = JE, Fy = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: ZE })) } Fy.displayName = 'UpOutlined' var ek = m.forwardRef(Fy), tk = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z', }, }, ], }, name: 'left', theme: 'outlined', }, nk = tk, $y = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: nk })) } $y.displayName = 'LeftOutlined' var rk = m.forwardRef($y), ik = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z', }, }, ], }, name: 'right', theme: 'outlined', }, ak = ik, Hy = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: ak })) } Hy.displayName = 'RightOutlined' var ok = m.forwardRef(Hy), sk = (function () { var e = function (t, n) { return ( (e = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (a, l) { a.__proto__ = l }) || function (a, l) { for (var f in l) Object.prototype.hasOwnProperty.call(l, f) && (a[f] = l[f]) }), e(t, n) ) } return function (t, n) { e(t, n) function a() { this.constructor = t } t.prototype = n === null ? Object.create(n) : ((a.prototype = n.prototype), new a()) } })(), Bn = function () { return ( (Bn = Object.assign || function (e) { for (var t, n = 1, a = arguments.length; n < a; n++) { t = arguments[n] for (var l in t) Object.prototype.hasOwnProperty.call(t, l) && (e[l] = t[l]) } return e }), Bn.apply(this, arguments) ) }, By = { width: '100%', height: '10px', top: '0px', left: '0px', cursor: 'row-resize' }, Uy = { width: '10px', height: '100%', top: '0px', left: '0px', cursor: 'col-resize' }, Ig = { width: '20px', height: '20px', position: 'absolute' }, lk = { top: Bn(Bn({}, By), { top: '-5px' }), right: Bn(Bn({}, Uy), { left: void 0, right: '-5px' }), bottom: Bn(Bn({}, By), { top: void 0, bottom: '-5px' }), left: Bn(Bn({}, Uy), { left: '-5px' }), topRight: Bn(Bn({}, Ig), { right: '-10px', top: '-10px', cursor: 'ne-resize' }), bottomRight: Bn(Bn({}, Ig), { right: '-10px', bottom: '-10px', cursor: 'se-resize' }), bottomLeft: Bn(Bn({}, Ig), { left: '-10px', bottom: '-10px', cursor: 'sw-resize' }), topLeft: Bn(Bn({}, Ig), { left: '-10px', top: '-10px', cursor: 'nw-resize' }), }, ck = (function (e) { sk(t, e) function t() { var n = (e !== null && e.apply(this, arguments)) || this return ( (n.onMouseDown = function (a) { n.props.onResizeStart(a, n.props.direction) }), (n.onTouchStart = function (a) { n.props.onResizeStart(a, n.props.direction) }), n ) } return ( (t.prototype.render = function () { return m.createElement( 'div', { className: this.props.className || '', style: Bn( Bn({ position: 'absolute', userSelect: 'none' }, lk[this.props.direction]), this.props.replaceStyles || {} ), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart, }, this.props.children ) }), t ) })(m.PureComponent), uk = (function () { var e = function (t, n) { return ( (e = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (a, l) { a.__proto__ = l }) || function (a, l) { for (var f in l) Object.prototype.hasOwnProperty.call(l, f) && (a[f] = l[f]) }), e(t, n) ) } return function (t, n) { e(t, n) function a() { this.constructor = t } t.prototype = n === null ? Object.create(n) : ((a.prototype = n.prototype), new a()) } })(), Na = function () { return ( (Na = Object.assign || function (e) { for (var t, n = 1, a = arguments.length; n < a; n++) { t = arguments[n] for (var l in t) Object.prototype.hasOwnProperty.call(t, l) && (e[l] = t[l]) } return e }), Na.apply(this, arguments) ) }, dk = { width: 'auto', height: 'auto' }, Rg = function (e, t, n) { return Math.max(Math.min(e, n), t) }, Wy = function (e, t) { return Math.round(e / t) * t }, Ou = function (e, t) { return new RegExp(e, 'i').test(t) }, Mg = function (e) { return Boolean(e.touches && e.touches.length) }, fk = function (e) { return Boolean((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0)) }, Vy = function (e, t, n) { n === void 0 && (n = 0) var a = t.reduce(function (f, g, h) { return Math.abs(g - e) < Math.abs(t[f] - e) ? h : f }, 0), l = Math.abs(t[a] - e) return n === 0 || l < n ? t[a] : e }, fv = function (e) { return ( (e = e.toString()), e === 'auto' || e.endsWith('px') || e.endsWith('%') || e.endsWith('vh') || e.endsWith('vw') || e.endsWith('vmax') || e.endsWith('vmin') ? e : e + 'px' ) }, Ag = function (e, t, n, a) { if (e && typeof e == 'string') { if (e.endsWith('px')) return Number(e.replace('px', '')) if (e.endsWith('%')) { var l = Number(e.replace('%', '')) / 100 return t * l } if (e.endsWith('vw')) { var l = Number(e.replace('vw', '')) / 100 return n * l } if (e.endsWith('vh')) { var l = Number(e.replace('vh', '')) / 100 return a * l } } return e }, pk = function (e, t, n, a, l, f, g) { return ( (a = Ag(a, e.width, t, n)), (l = Ag(l, e.height, t, n)), (f = Ag(f, e.width, t, n)), (g = Ag(g, e.height, t, n)), { maxWidth: typeof a == 'undefined' ? void 0 : Number(a), maxHeight: typeof l == 'undefined' ? void 0 : Number(l), minWidth: typeof f == 'undefined' ? void 0 : Number(f), minHeight: typeof g == 'undefined' ? void 0 : Number(g), } ) }, gk = [ 'as', 'style', 'className', 'grid', 'snap', 'bounds', 'boundsByDirection', 'size', 'defaultSize', 'minWidth', 'minHeight', 'maxWidth', 'maxHeight', 'lockAspectRatio', 'lockAspectRatioExtraWidth', 'lockAspectRatioExtraHeight', 'enable', 'handleStyles', 'handleClasses', 'handleWrapperStyle', 'handleWrapperClass', 'children', 'onResizeStart', 'onResize', 'onResizeStop', 'handleComponent', 'scale', 'resizeRatio', 'snapGap', ], Gy = '__resizable_base__', mk = (function (e) { uk(t, e) function t(n) { var a = e.call(this, n) || this return ( (a.ratio = 1), (a.resizable = null), (a.parentLeft = 0), (a.parentTop = 0), (a.resizableLeft = 0), (a.resizableRight = 0), (a.resizableTop = 0), (a.resizableBottom = 0), (a.targetLeft = 0), (a.targetTop = 0), (a.appendBase = function () { if (!a.resizable || !a.window) return null var l = a.parentNode if (!l) return null var f = a.window.document.createElement('div') return ( (f.style.width = '100%'), (f.style.height = '100%'), (f.style.position = 'absolute'), (f.style.transform = 'scale(0, 0)'), (f.style.left = '0'), (f.style.flex = '0 0 100%'), f.classList ? f.classList.add(Gy) : (f.className += Gy), l.appendChild(f), f ) }), (a.removeBase = function (l) { var f = a.parentNode f && f.removeChild(l) }), (a.ref = function (l) { l && (a.resizable = l) }), (a.state = { isResizing: !1, width: typeof (a.propsSize && a.propsSize.width) == 'undefined' ? 'auto' : a.propsSize && a.propsSize.width, height: typeof (a.propsSize && a.propsSize.height) == 'undefined' ? 'auto' : a.propsSize && a.propsSize.height, direction: 'right', original: { x: 0, y: 0, width: 0, height: 0 }, backgroundStyle: { height: '100%', width: '100%', backgroundColor: 'rgba(0,0,0,0)', cursor: 'auto', opacity: 0, position: 'fixed', zIndex: 9999, top: '0', left: '0', bottom: '0', right: '0', }, flexBasis: void 0, }), (a.onResizeStart = a.onResizeStart.bind(a)), (a.onMouseMove = a.onMouseMove.bind(a)), (a.onMouseUp = a.onMouseUp.bind(a)), a ) } return ( Object.defineProperty(t.prototype, 'parentNode', { get: function () { return this.resizable ? this.resizable.parentNode : null }, enumerable: !1, configurable: !0, }), Object.defineProperty(t.prototype, 'window', { get: function () { return !this.resizable || !this.resizable.ownerDocument ? null : this.resizable.ownerDocument.defaultView }, enumerable: !1, configurable: !0, }), Object.defineProperty(t.prototype, 'propsSize', { get: function () { return this.props.size || this.props.defaultSize || dk }, enumerable: !1, configurable: !0, }), Object.defineProperty(t.prototype, 'size', { get: function () { var n = 0, a = 0 if (this.resizable && this.window) { var l = this.resizable.offsetWidth, f = this.resizable.offsetHeight, g = this.resizable.style.position g !== 'relative' && (this.resizable.style.position = 'relative'), (n = this.resizable.style.width !== 'auto' ? this.resizable.offsetWidth : l), (a = this.resizable.style.height !== 'auto' ? this.resizable.offsetHeight : f), (this.resizable.style.position = g) } return { width: n, height: a } }, enumerable: !1, configurable: !0, }), Object.defineProperty(t.prototype, 'sizeStyle', { get: function () { var n = this, a = this.props.size, l = function (h) { if (typeof n.state[h] == 'undefined' || n.state[h] === 'auto') return 'auto' if (n.propsSize && n.propsSize[h] && n.propsSize[h].toString().endsWith('%')) { if (n.state[h].toString().endsWith('%')) return n.state[h].toString() var _ = n.getParentSize(), b = Number(n.state[h].toString().replace('px', '')), S = (b / _[h]) * 100 return S + '%' } return fv(n.state[h]) }, f = a && typeof a.width != 'undefined' && !this.state.isResizing ? fv(a.width) : l('width'), g = a && typeof a.height != 'undefined' && !this.state.isResizing ? fv(a.height) : l('height') return { width: f, height: g } }, enumerable: !1, configurable: !0, }), (t.prototype.getParentSize = function () { if (!this.parentNode) return this.window ? { width: this.window.innerWidth, height: this.window.innerHeight } : { width: 0, height: 0 } var n = this.appendBase() if (!n) return { width: 0, height: 0 } var a = !1, l = this.parentNode.style.flexWrap l !== 'wrap' && ((a = !0), (this.parentNode.style.flexWrap = 'wrap')), (n.style.position = 'relative'), (n.style.minWidth = '100%'), (n.style.minHeight = '100%') var f = { width: n.offsetWidth, height: n.offsetHeight } return a && (this.parentNode.style.flexWrap = l), this.removeBase(n), f }), (t.prototype.bindEvents = function () { this.window && (this.window.addEventListener('mouseup', this.onMouseUp), this.window.addEventListener('mousemove', this.onMouseMove), this.window.addEventListener('mouseleave', this.onMouseUp), this.window.addEventListener('touchmove', this.onMouseMove, { capture: !0, passive: !1 }), this.window.addEventListener('touchend', this.onMouseUp)) }), (t.prototype.unbindEvents = function () { this.window && (this.window.removeEventListener('mouseup', this.onMouseUp), this.window.removeEventListener('mousemove', this.onMouseMove), this.window.removeEventListener('mouseleave', this.onMouseUp), this.window.removeEventListener('touchmove', this.onMouseMove, !0), this.window.removeEventListener('touchend', this.onMouseUp)) }), (t.prototype.componentDidMount = function () { if (!(!this.resizable || !this.window)) { var n = this.window.getComputedStyle(this.resizable) this.setState({ width: this.state.width || this.size.width, height: this.state.height || this.size.height, flexBasis: n.flexBasis !== 'auto' ? n.flexBasis : void 0, }) } }), (t.prototype.componentWillUnmount = function () { this.window && this.unbindEvents() }), (t.prototype.createSizeForCssProperty = function (n, a) { var l = this.propsSize && this.propsSize[a] return this.state[a] === 'auto' && this.state.original[a] === n && (typeof l == 'undefined' || l === 'auto') ? 'auto' : n }), (t.prototype.calculateNewMaxFromBoundary = function (n, a) { var l = this.props.boundsByDirection, f = this.state.direction, g = l && Ou('left', f), h = l && Ou('top', f), _, b if (this.props.bounds === 'parent') { var S = this.parentNode S && ((_ = g ? this.resizableRight - this.parentLeft : S.offsetWidth + (this.parentLeft - this.resizableLeft)), (b = h ? this.resizableBottom - this.parentTop : S.offsetHeight + (this.parentTop - this.resizableTop))) } else this.props.bounds === 'window' ? this.window && ((_ = g ? this.resizableRight : this.window.innerWidth - this.resizableLeft), (b = h ? this.resizableBottom : this.window.innerHeight - this.resizableTop)) : this.props.bounds && ((_ = g ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft)), (b = h ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop))) return ( _ && Number.isFinite(_) && (n = n && n < _ ? n : _), b && Number.isFinite(b) && (a = a && a < b ? a : b), { maxWidth: n, maxHeight: a } ) }), (t.prototype.calculateNewSizeFromDirection = function (n, a) { var l = this.props.scale || 1, f = this.props.resizeRatio || 1, g = this.state, h = g.direction, _ = g.original, b = this.props, S = b.lockAspectRatio, x = b.lockAspectRatioExtraHeight, k = b.lockAspectRatioExtraWidth, D = _.width, M = _.height, P = x || 0, R = k || 0 return ( Ou('right', h) && ((D = _.width + ((n - _.x) * f) / l), S && (M = (D - R) / this.ratio + P)), Ou('left', h) && ((D = _.width - ((n - _.x) * f) / l), S && (M = (D - R) / this.ratio + P)), Ou('bottom', h) && ((M = _.height + ((a - _.y) * f) / l), S && (D = (M - P) * this.ratio + R)), Ou('top', h) && ((M = _.height - ((a - _.y) * f) / l), S && (D = (M - P) * this.ratio + R)), { newWidth: D, newHeight: M } ) }), (t.prototype.calculateNewSizeFromAspectRatio = function (n, a, l, f) { var g = this.props, h = g.lockAspectRatio, _ = g.lockAspectRatioExtraHeight, b = g.lockAspectRatioExtraWidth, S = typeof f.width == 'undefined' ? 10 : f.width, x = typeof l.width == 'undefined' || l.width < 0 ? n : l.width, k = typeof f.height == 'undefined' ? 10 : f.height, D = typeof l.height == 'undefined' || l.height < 0 ? a : l.height, M = _ || 0, P = b || 0 if (h) { var R = (k - M) * this.ratio + P, j = (D - M) * this.ratio + P, L = (S - P) / this.ratio + M, H = (x - P) / this.ratio + M, U = Math.max(S, R), te = Math.min(x, j), ie = Math.max(k, L), ae = Math.min(D, H) ;(n = Rg(n, U, te)), (a = Rg(a, ie, ae)) } else (n = Rg(n, S, x)), (a = Rg(a, k, D)) return { newWidth: n, newHeight: a } }), (t.prototype.setBoundingClientRect = function () { if (this.props.bounds === 'parent') { var n = this.parentNode if (n) { var a = n.getBoundingClientRect() ;(this.parentLeft = a.left), (this.parentTop = a.top) } } if (this.props.bounds && typeof this.props.bounds != 'string') { var l = this.props.bounds.getBoundingClientRect() ;(this.targetLeft = l.left), (this.targetTop = l.top) } if (this.resizable) { var f = this.resizable.getBoundingClientRect(), g = f.left, h = f.top, _ = f.right, b = f.bottom ;(this.resizableLeft = g), (this.resizableRight = _), (this.resizableTop = h), (this.resizableBottom = b) } }), (t.prototype.onResizeStart = function (n, a) { if (!(!this.resizable || !this.window)) { var l = 0, f = 0 if ( (n.nativeEvent && fk(n.nativeEvent) ? ((l = n.nativeEvent.clientX), (f = n.nativeEvent.clientY)) : n.nativeEvent && Mg(n.nativeEvent) && ((l = n.nativeEvent.touches[0].clientX), (f = n.nativeEvent.touches[0].clientY)), this.props.onResizeStart && this.resizable) ) { var g = this.props.onResizeStart(n, a, this.resizable) if (g === !1) return } this.props.size && (typeof this.props.size.height != 'undefined' && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), typeof this.props.size.width != 'undefined' && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), (this.ratio = typeof this.props.lockAspectRatio == 'number' ? this.props.lockAspectRatio : this.size.width / this.size.height) var h, _ = this.window.getComputedStyle(this.resizable) if (_.flexBasis !== 'auto') { var b = this.parentNode if (b) { var S = this.window.getComputedStyle(b).flexDirection ;(this.flexDir = S.startsWith('row') ? 'row' : 'column'), (h = _.flexBasis) } } this.setBoundingClientRect(), this.bindEvents() var x = { original: { x: l, y: f, width: this.size.width, height: this.size.height }, isResizing: !0, backgroundStyle: Na(Na({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(n.target).cursor || 'auto', }), direction: a, flexBasis: h, } this.setState(x) } }), (t.prototype.onMouseMove = function (n) { var a = this if (!(!this.state.isResizing || !this.resizable || !this.window)) { if (this.window.TouchEvent && Mg(n)) try { n.preventDefault(), n.stopPropagation() } catch (Oe) {} var l = this.props, f = l.maxWidth, g = l.maxHeight, h = l.minWidth, _ = l.minHeight, b = Mg(n) ? n.touches[0].clientX : n.clientX, S = Mg(n) ? n.touches[0].clientY : n.clientY, x = this.state, k = x.direction, D = x.original, M = x.width, P = x.height, R = this.getParentSize(), j = pk(R, this.window.innerWidth, this.window.innerHeight, f, g, h, _) ;(f = j.maxWidth), (g = j.maxHeight), (h = j.minWidth), (_ = j.minHeight) var L = this.calculateNewSizeFromDirection(b, S), H = L.newHeight, U = L.newWidth, te = this.calculateNewMaxFromBoundary(f, g) this.props.snap && this.props.snap.x && (U = Vy(U, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (H = Vy(H, this.props.snap.y, this.props.snapGap)) var ie = this.calculateNewSizeFromAspectRatio( U, H, { width: te.maxWidth, height: te.maxHeight }, { width: h, height: _ } ) if (((U = ie.newWidth), (H = ie.newHeight), this.props.grid)) { var ae = Wy(U, this.props.grid[0]), de = Wy(H, this.props.grid[1]), ye = this.props.snapGap || 0 ;(U = ye === 0 || Math.abs(ae - U) <= ye ? ae : U), (H = ye === 0 || Math.abs(de - H) <= ye ? de : H) } var me = { width: U - D.width, height: H - D.height } if (M && typeof M == 'string') { if (M.endsWith('%')) { var De = (U / R.width) * 100 U = De + '%' } else if (M.endsWith('vw')) { var se = (U / this.window.innerWidth) * 100 U = se + 'vw' } else if (M.endsWith('vh')) { var oe = (U / this.window.innerHeight) * 100 U = oe + 'vh' } } if (P && typeof P == 'string') { if (P.endsWith('%')) { var De = (H / R.height) * 100 H = De + '%' } else if (P.endsWith('vw')) { var se = (H / this.window.innerWidth) * 100 H = se + 'vw' } else if (P.endsWith('vh')) { var oe = (H / this.window.innerHeight) * 100 H = oe + 'vh' } } var fe = { width: this.createSizeForCssProperty(U, 'width'), height: this.createSizeForCssProperty(H, 'height'), } this.flexDir === 'row' ? (fe.flexBasis = fe.width) : this.flexDir === 'column' && (fe.flexBasis = fe.height), (0, Os.flushSync)(function () { a.setState(fe) }), this.props.onResize && this.props.onResize(n, k, this.resizable, me) } }), (t.prototype.onMouseUp = function (n) { var a = this.state, l = a.isResizing, f = a.direction, g = a.original if (!(!l || !this.resizable)) { var h = { width: this.size.width - g.width, height: this.size.height - g.height } this.props.onResizeStop && this.props.onResizeStop(n, f, this.resizable, h), this.props.size && this.setState(this.props.size), this.unbindEvents(), this.setState({ isResizing: !1, backgroundStyle: Na(Na({}, this.state.backgroundStyle), { cursor: 'auto' }), }) } }), (t.prototype.updateSize = function (n) { this.setState({ width: n.width, height: n.height }) }), (t.prototype.renderResizer = function () { var n = this, a = this.props, l = a.enable, f = a.handleStyles, g = a.handleClasses, h = a.handleWrapperStyle, _ = a.handleWrapperClass, b = a.handleComponent if (!l) return null var S = Object.keys(l).map(function (x) { return l[x] !== !1 ? m.createElement( ck, { key: x, direction: x, onResizeStart: n.onResizeStart, replaceStyles: f && f[x], className: g && g[x], }, b && b[x] ? b[x] : null ) : null }) return m.createElement('div', { className: _, style: h }, S) }), (t.prototype.render = function () { var n = this, a = Object.keys(this.props).reduce(function (g, h) { return gk.indexOf(h) !== -1 || (g[h] = n.props[h]), g }, {}), l = Na( Na( Na({ position: 'relative', userSelect: this.state.isResizing ? 'none' : 'auto' }, this.props.style), this.sizeStyle ), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: 'border-box', flexShrink: 0, } ) this.state.flexBasis && (l.flexBasis = this.state.flexBasis) var f = this.props.as || 'div' return m.createElement( f, Na({ ref: this.ref, style: l, className: this.props.className }, a), this.state.isResizing && m.createElement('div', { style: this.state.backgroundStyle }), this.props.children, this.renderResizer() ) }), (t.defaultProps = { as: 'div', onResizeStart: function () {}, onResize: function () {}, onResizeStop: function () {}, enable: { top: !0, right: !0, bottom: !0, left: !0, topRight: !0, bottomRight: !0, bottomLeft: !0, topLeft: !0, }, style: {}, grid: [1, 1], lockAspectRatio: !1, lockAspectRatioExtraWidth: 0, lockAspectRatioExtraHeight: 0, scale: 1, resizeRatio: 1, snapGap: 0, }), t ) })(m.PureComponent) function hk(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })) } var vk = function (t) { return t || 'layoutkit' }, pv = function (t, n) { if (n) return 'row' switch (t) { case 'horizontal': return 'row' case 'horizontal-reverse': return 'row-reverse' case 'vertical': default: return 'column' case 'vertical-reverse': return 'column-reverse' } }, _k = function (t) { if (t) return ['space-between', 'space-around', 'space-evenly'].includes(t) }, yk = function (t, n) { return pv(t, n) === 'row' }, WI = function (t, n) { return pv(t, n) === 'column' }, Tu = function (t) { return typeof t == 'number' ? ''.concat(t, 'px') : t }, Xy, bk = [ 'visible', 'flex', 'gap', 'direction', 'horizontal', 'align', 'justify', 'distribution', 'height', 'width', 'padding', 'paddingInline', 'paddingBlock', 'as', 'internalClassName', 'className', 'children', ], Sk = function (t) { return function (n) { return (0, m.createElement)(t, n) } }, wk = function (t) { var n = t.visible, a = t.flex, l = t.gap, f = t.direction, g = t.horizontal, h = t.align, _ = t.justify, b = t.distribution, S = t.height, x = t.width, k = t.padding, D = t.paddingInline, M = t.paddingBlock, P = t.as, R = t.internalClassName, j = t.className, L = t.children, H = Kn(t, bk), U = _ || b, te = (0, m.useMemo)( function () { return yk(f, g) && !x && _k(U) ? '100%' : Tu(x) }, [f, g, U, x] ), ie = (0, m.useMemo)( function () { return Sk(P || 'div') }, [P] ) return (0, at.jsx)( ie, ze( ze({}, H), {}, { className: Ci( R, lr( Xy || (Xy = hk([ ` // \u662F\u5426\u663E\u793A display: `, `; flex: `, `; flex-direction: `, `; justify-content: `, `; align-items: `, `; width: `, `; height: `, `; padding: `, `; padding-inline: `, `; padding-block: `, `; gap: `, `; `, ])), n === !1 ? 'none' : 'flex', a, pv(f, g), U, h, te, Tu(S), Tu(k), Tu(D), Tu(M), Tu(l) ), j ), children: L, } ) ) }, xk = wk, Ck = ['children', 'className', 'prefixCls'], Ek = function (t) { var n = t.children, a = t.className, l = t.prefixCls, f = Kn(t, Ck) return (0, at.jsx)( xk, ze( ze({ internalClassName: ''.concat(vk(l), '-center'), className: a }, f), {}, { align: 'center', justify: 'center', children: n } ) ) }, kk = Ek function Ok(e, t) { var n = e == null ? null : (typeof Symbol != 'undefined' && e[Symbol.iterator]) || e['@@iterator'] if (n != null) { var a, l, f, g, h = [], _ = !0, b = !1 try { if (((f = (n = n.call(e)).next), t === 0)) { if (Object(n) !== n) return _ = !1 } else for (; !(_ = (a = f.call(n)).done) && (h.push(a.value), h.length !== t); _ = !0); } catch (S) { ;(b = !0), (l = S) } finally { try { if (!_ && n.return != null && ((g = n.return()), Object(g) !== g)) return } finally { if (b) throw l } } return h } } function Tk(e, t) { return Dk(e) || Ok(e, t) || Pk(e, t) || Ik() } function Dk(e) { if (Array.isArray(e)) return e } function Pk(e, t) { if (e) { if (typeof e == 'string') return Ky(e, t) var n = Object.prototype.toString.call(e).slice(8, -1) if ((n === 'Object' && e.constructor && (n = e.constructor.name), n === 'Map' || n === 'Set')) return Array.from(e) if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Ky(e, t) } } function Ky(e, t) { ;(t == null || t > e.length) && (t = e.length) for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n] return a } function Ik() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) } function Rk(e, t) { var n = t || {}, a = n.defaultValue, l = n.value, f = n.onChange, g = n.postState, h = m.useState(function () { return l !== void 0 ? l : a !== void 0 ? (typeof a == 'function' ? a() : a) : typeof e == 'function' ? e() : e }), _ = Tk(h, 2), b = _[0], S = _[1], x = l !== void 0 ? l : b g && (x = g(x)) function k(D) { S(D), x !== D && f && f(D, x) } return [x, k] } var Mk = Rk function Ak(e, t) { ;(e.prototype = Object.create(t.prototype)), (e.prototype.constructor = e), wa(e, t) } function Nk(e) { return Function.toString.call(e).indexOf('[native code]') !== -1 } function Ng(e, t, n) { return ( Pi() ? (Ng = Reflect.construct.bind()) : (Ng = function (l, f, g) { var h = [null] h.push.apply(h, f) var _ = Function.bind.apply(l, h), b = new _() return g && wa(b, g.prototype), b }), Ng.apply(null, arguments) ) } function gv(e) { var t = typeof Map == 'function' ? new Map() : void 0 return ( (gv = function (a) { if (a === null || !Nk(a)) return a if (typeof a != 'function') throw new TypeError('Super expression must either be null or a function') if (typeof t != 'undefined') { if (t.has(a)) return t.get(a) t.set(a, l) } function l() { return Ng(a, arguments, xa(this).constructor) } return ( (l.prototype = Object.create(a.prototype, { constructor: { value: l, enumerable: !1, writable: !0, configurable: !0 }, })), wa(l, a) ) }), gv(e) ) } function Yy() { var e return (e = arguments.length - 1), e < 0 || arguments.length <= e ? void 0 : arguments[e] } function jk(e) { return -e } function zk(e, t) { return e + t } function Lk(e, t) { return e - t } function Fk(e, t) { return e * t } function $k(e, t) { return e / t } function Hk() { return Math.max.apply(Math, arguments) } function Bk() { return Math.min.apply(Math, arguments) } function Uk() { return Array.of.apply(Array, arguments) } var VI = { symbols: { '*': { infix: { symbol: '*', f: Fk, notation: 'infix', precedence: 4, rightToLeft: 0, argCount: 2 }, symbol: '*', regSymbol: '\\*', }, '/': { infix: { symbol: '/', f: $k, notation: 'infix', precedence: 4, rightToLeft: 0, argCount: 2 }, symbol: '/', regSymbol: '/', }, '+': { infix: { symbol: '+', f: zk, notation: 'infix', precedence: 2, rightToLeft: 0, argCount: 2 }, prefix: { symbol: '+', f: Yy, notation: 'prefix', precedence: 3, rightToLeft: 0, argCount: 1 }, symbol: '+', regSymbol: '\\+', }, '-': { infix: { symbol: '-', f: Lk, notation: 'infix', precedence: 2, rightToLeft: 0, argCount: 2 }, prefix: { symbol: '-', f: jk, notation: 'prefix', precedence: 3, rightToLeft: 0, argCount: 1 }, symbol: '-', regSymbol: '-', }, ',': { infix: { symbol: ',', f: Uk, notation: 'infix', precedence: 1, rightToLeft: 0, argCount: 2 }, symbol: ',', regSymbol: ',', }, '(': { prefix: { symbol: '(', f: Yy, notation: 'prefix', precedence: 0, rightToLeft: 0, argCount: 1 }, symbol: '(', regSymbol: '\\(', }, ')': { postfix: { symbol: ')', f: void 0, notation: 'postfix', precedence: 0, rightToLeft: 0, argCount: 1 }, symbol: ')', regSymbol: '\\)', }, min: { func: { symbol: 'min', f: Bk, notation: 'func', precedence: 0, rightToLeft: 0, argCount: 1 }, symbol: 'min', regSymbol: 'min\\b', }, max: { func: { symbol: 'max', f: Hk, notation: 'func', precedence: 0, rightToLeft: 0, argCount: 1 }, symbol: 'max', regSymbol: 'max\\b', }, }, }, qy = null, GI = { 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }). `, 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }). `, 3: `Passed an incorrect argument to a color function, please pass a string representation of a color. `, 4: `Couldn't generate valid rgb string from %s, it returned %s. `, 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation. `, 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }). `, 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }). `, 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object. `, 9: `Please provide a number of steps to the modularScale helper. `, 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. `, 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s" `, 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead. `, 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead. `, 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12. `, 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12. `, 16: `You must provide a template to this method. `, 17: `You passed an unsupported selector state to this method. `, 18: `minScreen and maxScreen must be provided as stringified numbers with the same units. `, 19: `fromSize and toSize must be provided as stringified numbers with the same units. `, 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize. `, 21: 'expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n', 22: 'expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n', 23: `fontFace expects a name of a font-family. `, 24: `fontFace expects either the path to the font file(s) or a name of a local copy. `, 25: `fontFace expects localFonts to be an array. `, 26: `fontFace expects fileFormats to be an array. `, 27: `radialGradient requries at least 2 color-stops to properly render. `, 28: `Please supply a filename to retinaImage() as the first argument. `, 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. `, 30: 'Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n', 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation `, 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s']) To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s') `, 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation `, 34: `borderRadius expects a radius value as a string or number as the second argument. `, 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. `, 36: `Property must be a string value. `, 37: `Syntax Error at %s. `, 38: `Formula contains a function that needs parentheses at %s. `, 39: `Formula is missing closing parenthesis at %s. `, 40: `Formula has too many closing parentheses at %s. `, 41: `All values in a formula must have the same unit or be unitless. `, 42: `Please provide a number of steps to the modularScale helper. `, 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio. `, 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s. `, 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object. `, 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object. `, 47: `minScreen and maxScreen must be provided as stringified numbers with the same units. `, 48: `fromSize and toSize must be provided as stringified numbers with the same units. `, 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize. `, 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize. `, 51: `Expects the first argument object to have the properties prop, fromSize, and toSize. `, 52: `fontFace expects either the path to the font file(s) or a name of a local copy. `, 53: `fontFace expects localFonts to be an array. `, 54: `fontFace expects fileFormats to be an array. `, 55: `fontFace expects a name of a font-family. `, 56: `linearGradient requries at least 2 color-stops to properly render. `, 57: `radialGradient requries at least 2 color-stops to properly render. `, 58: `Please supply a filename to retinaImage() as the first argument. `, 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'. `, 60: 'Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n', 61: `Property must be a string value. `, 62: `borderRadius expects a radius value as a string or number as the second argument. `, 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument. `, 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation. `, 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s'). `, 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation. `, 67: `You must provide a template to this method. `, 68: `You passed an unsupported selector state to this method. `, 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead. `, 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead. `, 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12. `, 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12. `, 73: `Please provide a valid CSS variable. `, 74: `CSS variable not found and no default was provided. `, 75: `important requires a valid style object, got a %s instead. `, 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen. `, 77: `remToPx expects a value in "rem" but you provided it in "%s". `, 78: `base must be set in "px" or "%" but you set it in "%s". `, } function XI() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] var a = t[0], l = [], f for (f = 1; f < t.length; f += 1) l.push(t[f]) return ( l.forEach(function (g) { a = a.replace(/%[a-z]/, g) }), a ) } var jt = (function (e) { Ak(t, e) function t(n) { var a if (!0) a = e.call( this, 'An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#' + n + ' for more information.' ) || this else var l, f, g return Ps(a) } return t })(gv(Error)), Qy = /((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g function Wk(e) { var t = {} return (t.symbols = e ? _extends({}, qy.symbols, e.symbols) : _extends({}, qy.symbols)), t } function Jy(e, t) { var n, a = e.pop() return t.push(a.f.apply(a, (n = []).concat.apply(n, t.splice(-a.argCount)))), a.precedence } function Vk(e, t) { var n = Wk(t), a, l = [n.symbols['('].prefix], f = [], g = new RegExp( '\\d+(?:\\.\\d+)?|' + Object.keys(n.symbols) .map(function (R) { return n.symbols[R] }) .sort(function (R, j) { return j.symbol.length - R.symbol.length }) .map(function (R) { return R.regSymbol }) .join('|') + '|(\\S)', 'g' ) g.lastIndex = 0 var h = !1 do { a = g.exec(e) var _ = a || [')', void 0], b = _[0], S = _[1], x = n.symbols[b], k = x && !x.prefix && !x.func, D = !x || (!x.postfix && !x.infix) if (S || (h ? D : k)) throw new jt(37, a ? a.index : e.length, e) if (h) { var M = x.postfix || x.infix do { var P = l[l.length - 1] if ((M.precedence - P.precedence || P.rightToLeft) > 0) break } while (Jy(l, f)) ;(h = M.notation === 'postfix'), M.symbol !== ')' && (l.push(M), h && Jy(l, f)) } else if (x) { if ((l.push(x.prefix || x.func), x.func && ((a = g.exec(e)), !a || a[0] !== '('))) throw new jt(38, a ? a.index : e.length, e) } else f.push(+b), (h = !0) } while (a && l.length) if (l.length) throw new jt(39, a ? a.index : e.length, e) if (a) throw new jt(40, a ? a.index : e.length, e) return f.pop() } function mv(e) { return e.split('').reverse().join('') } function KI(e, t) { var n = mv(e), a = n.match(Qy) if ( a && !a.every(function (f) { return f === a[0] }) ) throw new jt(41) var l = mv(n.replace(Qy, '')) return '' + Vk(l, t) + (a ? mv(a[0]) : '') } var Gk = /--[\S]*/g function YI(e, t) { if (!e || !e.match(Gk)) throw new jt(73) var n if ( (typeof document != 'undefined' && document.documentElement !== null && (n = getComputedStyle(document.documentElement).getPropertyValue(e)), n) ) return n.trim() if (t) return t throw new jt(74) } function Df(e) { return e.charAt(0).toUpperCase() + e.slice(1) } var Xk = null function Kk(e, t) { if (!e) return t.toLowerCase() var n = e.split('-') if (n.length > 1) return ( n.splice(1, 0, t), n.reduce(function (l, f) { return '' + l + Df(f) }) ) var a = e.replace(/([a-z])([A-Z])/g, '$1' + t + '$2') return e === a ? '' + e + t : a } function Yk(e, t) { for (var n = {}, a = 0; a < t.length; a += 1) (t[a] || t[a] === 0) && (n[Kk(e, Xk[a])] = t[a]) return n } function tc(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a] var l = n[0], f = n[1], g = f === void 0 ? l : f, h = n[2], _ = h === void 0 ? l : h, b = n[3], S = b === void 0 ? g : b, x = [l, g, _, S] return Yk(e, x) } function Zy(e, t) { return e.substr(-t.length) === t } var qk = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/ function eb(e) { if (typeof e != 'string') return e var t = e.match(qk) return t ? parseFloat(e) : e } var qI = function (t) { return function (n, a) { a === void 0 && (a = '16px') var l = n, f = a if (typeof n == 'string') { if (!Zy(n, 'px')) throw new jt(69, t, n) l = eb(n) } if (typeof a == 'string') { if (!Zy(a, 'px')) throw new jt(70, t, a) f = eb(a) } if (typeof l == 'string') throw new jt(71, n, t) if (typeof f == 'string') throw new jt(72, a, t) return '' + l / f + t } }, QI = null, JI = null, ZI = null, Qk = /^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/ function Eo(e) { if (typeof e != 'string') return [e, ''] var t = e.match(Qk) return t ? [parseFloat(e), t[2]] : [e, void 0] } function Jk(e, t) { if (typeof e != 'object' || e === null) throw new jt(75, typeof e) var n = {} return ( Object.keys(e).forEach(function (a) { typeof e[a] == 'object' && e[a] !== null ? (n[a] = Jk(e[a], t)) : !t || (t && (t === a || t.indexOf(a) >= 0)) ? (n[a] = e[a] + ' !important') : (n[a] = e[a]) }), n ) } var tb = { minorSecond: 1.067, majorSecond: 1.125, minorThird: 1.2, majorThird: 1.25, perfectFourth: 1.333, augFourth: 1.414, perfectFifth: 1.5, minorSixth: 1.6, goldenSection: 1.618, majorSixth: 1.667, minorSeventh: 1.778, majorSeventh: 1.875, octave: 2, majorTenth: 2.5, majorEleventh: 2.667, majorTwelfth: 3, doubleOctave: 4, } function Zk(e) { return tb[e] } function eR(e, t, n) { if ((t === void 0 && (t = '1em'), n === void 0 && (n = 1.333), typeof e != 'number')) throw new jt(42) if (typeof n == 'string' && !tb[n]) throw new jt(43) var a = typeof t == 'string' ? Eo(t) : [t, ''], l = a[0], f = a[1], g = typeof n == 'string' ? Zk(n) : n if (typeof l == 'string') throw new jt(44, t) return '' + l * Math.pow(g, e) + (f || '') } var tR = null, nR = null, hv = 16 function nb(e) { var t = Eo(e) if (t[1] === 'px') return parseFloat(e) if (t[1] === '%') return (parseFloat(e) / 100) * hv throw new jt(78, t[1]) } function eO() { if (typeof document != 'undefined' && document.documentElement !== null) { var e = getComputedStyle(document.documentElement).fontSize return e ? nb(e) : hv } return hv } function rR(e, t) { var n = Eo(e) if (n[1] !== 'rem' && n[1] !== '') throw new jt(77, n[1]) var a = t ? nb(t) : eO() return n[0] * a + 'px' } var tO = { back: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)', circ: 'cubic-bezier(0.600, 0.040, 0.980, 0.335)', cubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)', expo: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)', quad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', quart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)', quint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)', sine: 'cubic-bezier(0.470, 0.000, 0.745, 0.715)', } function iR(e) { return tO[e.toLowerCase().trim()] } var nO = { back: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)', circ: 'cubic-bezier(0.785, 0.135, 0.150, 0.860)', cubic: 'cubic-bezier(0.645, 0.045, 0.355, 1.000)', expo: 'cubic-bezier(1.000, 0.000, 0.000, 1.000)', quad: 'cubic-bezier(0.455, 0.030, 0.515, 0.955)', quart: 'cubic-bezier(0.770, 0.000, 0.175, 1.000)', quint: 'cubic-bezier(0.860, 0.000, 0.070, 1.000)', sine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)', } function aR(e) { return nO[e.toLowerCase().trim()] } var rO = { back: 'cubic-bezier(0.175, 0.885, 0.320, 1.275)', cubic: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', circ: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)', expo: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)', quad: 'cubic-bezier(0.250, 0.460, 0.450, 0.940)', quart: 'cubic-bezier(0.165, 0.840, 0.440, 1.000)', quint: 'cubic-bezier(0.230, 1.000, 0.320, 1.000)', sine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)', } function oR(e) { return rO[e.toLowerCase().trim()] } function rb(e, t, n, a) { n === void 0 && (n = '320px'), a === void 0 && (a = '1200px') var l = Eo(e), f = l[0], g = l[1], h = Eo(t), _ = h[0], b = h[1], S = Eo(n), x = S[0], k = S[1], D = Eo(a), M = D[0], P = D[1] if (typeof x != 'number' || typeof M != 'number' || !k || !P || k !== P) throw new jt(47) if (typeof f != 'number' || typeof _ != 'number' || g !== b) throw new jt(48) if (g !== k || b !== P) throw new jt(76) var R = (f - _) / (x - M), j = _ - R * M return 'calc(' + j.toFixed(2) + (g || '') + ' + ' + (100 * R).toFixed(2) + 'vw)' } function sR(e) { var t e === void 0 && (e = '&') var n = e + '::after' return (t = {}), (t[n] = { clear: 'both', content: '""', display: 'table' }), t } function lR(e) { return e === void 0 && (e = 0), { position: 'absolute', top: e, right: e, bottom: e, left: e } } function cR(e, t) { t === void 0 && (t = 1) var n = { display: 'inline-block', maxWidth: e || '100%', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', wordWrap: 'normal', } return t > 1 ? _extends({}, n, { WebkitBoxOrient: 'vertical', WebkitLineClamp: t, display: '-webkit-box', whiteSpace: 'normal', }) : n } function iO(e, t) { var n = (typeof Symbol != 'undefined' && e[Symbol.iterator]) || e['@@iterator'] if (n) return (n = n.call(e)).next.bind(n) if (Array.isArray(e) || (n = aO(e)) || (t && e && typeof e.length == 'number')) { n && (e = n) var a = 0 return function () { return a >= e.length ? { done: !0 } : { done: !1, value: e[a++] } } } throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`) } function aO(e, t) { if (e) { if (typeof e == 'string') return ib(e, t) var n = Object.prototype.toString.call(e).slice(8, -1) if ((n === 'Object' && e.constructor && (n = e.constructor.name), n === 'Map' || n === 'Set')) return Array.from(e) if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return ib(e, t) } } function ib(e, t) { ;(t == null || t > e.length) && (t = e.length) for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n] return a } function uR(e, t, n) { if ( (t === void 0 && (t = '320px'), n === void 0 && (n = '1200px'), (!Array.isArray(e) && typeof e != 'object') || e === null) ) throw new jt(49) if (Array.isArray(e)) { for (var a = {}, l = {}, f = iO(e), g; !(g = f()).done; ) { var h, _, b = g.value if (!b.prop || !b.fromSize || !b.toSize) throw new jt(50) ;(l[b.prop] = b.fromSize), (a['@media (min-width: ' + t + ')'] = _extends( {}, a['@media (min-width: ' + t + ')'], ((h = {}), (h[b.prop] = rb(b.fromSize, b.toSize, t, n)), h) )), (a['@media (min-width: ' + n + ')'] = _extends( {}, a['@media (min-width: ' + n + ')'], ((_ = {}), (_[b.prop] = b.toSize), _) )) } return _extends({}, l, a) } else { var S, x, k if (!e.prop || !e.fromSize || !e.toSize) throw new jt(51) return ( (k = {}), (k[e.prop] = e.fromSize), (k['@media (min-width: ' + t + ')'] = ((S = {}), (S[e.prop] = rb(e.fromSize, e.toSize, t, n)), S)), (k['@media (min-width: ' + n + ')'] = ((x = {}), (x[e.prop] = e.toSize), x)), k ) } } var oO = /^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i, sO = { woff: 'woff', woff2: 'woff2', ttf: 'truetype', otf: 'opentype', eot: 'embedded-opentype', svg: 'svg', svgz: 'svg', } function ab(e, t) { return t ? ' format("' + sO[e] + '")' : '' } function lO(e) { return !!e.replace(/\s+/g, ' ').match(oO) } function cO(e, t, n) { if (lO(e)) return 'url("' + e + '")' + ab(t[0], n) var a = t.map(function (l) { return 'url("' + e + '.' + l + '")' + ab(l, n) }) return a.join(', ') } function uO(e) { var t = e.map(function (n) { return 'local("' + n + '")' }) return t.join(', ') } function dO(e, t, n, a) { var l = [] return t && l.push(uO(t)), e && l.push(cO(e, n, a)), l.join(', ') } function dR(e) { var t = e.fontFamily, n = e.fontFilePath, a = e.fontStretch, l = e.fontStyle, f = e.fontVariant, g = e.fontWeight, h = e.fileFormats, _ = h === void 0 ? ['eot', 'woff2', 'woff', 'ttf', 'svg'] : h, b = e.formatHint, S = b === void 0 ? !1 : b, x = e.localFonts, k = x === void 0 ? [t] : x, D = e.unicodeRange, M = e.fontDisplay, P = e.fontVariationSettings, R = e.fontFeatureSettings if (!t) throw new jt(55) if (!n && !k) throw new jt(52) if (k && !Array.isArray(k)) throw new jt(53) if (!Array.isArray(_)) throw new jt(54) var j = { '@font-face': { fontFamily: t, src: dO(n, k, _, S), unicodeRange: D, fontStretch: a, fontStyle: l, fontVariant: f, fontWeight: g, fontDisplay: M, fontVariationSettings: P, fontFeatureSettings: R, }, } return JSON.parse(JSON.stringify(j)) } function fR() { return { textIndent: '101%', overflow: 'hidden', whiteSpace: 'nowrap' } } function pR() { return { border: '0', clip: 'rect(0 0 0 0)', height: '1px', margin: '-1px', overflow: 'hidden', padding: '0', position: 'absolute', whiteSpace: 'nowrap', width: '1px', } } function fO(e) { return ( e === void 0 && (e = 1.3), ` @media only screen and (-webkit-min-device-pixel-ratio: ` + e + `), only screen and (min--moz-device-pixel-ratio: ` + e + `), only screen and (-o-min-device-pixel-ratio: ` + e + `/1), only screen and (min-resolution: ` + Math.round(e * 96) + `dpi), only screen and (min-resolution: ` + e + `dppx) ` ) } function ob(e) { for (var t = '', n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), l = 1; l < n; l++) a[l - 1] = arguments[l] for (var f = 0; f < e.length; f += 1) if (((t += e[f]), f === a.length - 1 && a[f])) { var g = a.filter(function (h) { return !!h }) g.length > 1 ? ((t = t.slice(0, -1)), (t += ', ' + a[f])) : g.length === 1 && (t += '' + a[f]) } else a[f] && (t += a[f] + ' ') return t.trim() } var sb function gR(e) { var t = e.colorStops, n = e.fallback, a = e.toDirection, l = a === void 0 ? '' : a if (!t || t.length < 2) throw new jt(56) return { backgroundColor: n || t[0] .replace(/,\s+/g, ',') .split(' ')[0] .replace(/,(?=\S)/g, ', '), backgroundImage: ob( sb || (sb = _taggedTemplateLiteralLoose(['linear-gradient(', '', ')'])), l, t.join(', ').replace(/,(?=\S)/g, ', ') ), } } function mR() { var e return [ ((e = { html: { lineHeight: '1.15', textSizeAdjust: '100%' }, body: { margin: '0' }, main: { display: 'block' }, h1: { fontSize: '2em', margin: '0.67em 0' }, hr: { boxSizing: 'content-box', height: '0', overflow: 'visible' }, pre: { fontFamily: 'monospace, monospace', fontSize: '1em' }, a: { backgroundColor: 'transparent' }, 'abbr[title]': { borderBottom: 'none', textDecoration: 'underline' }, }), (e[ `b, strong` ] = { fontWeight: 'bolder' }), (e[ `code, kbd, samp` ] = { fontFamily: 'monospace, monospace', fontSize: '1em' }), (e.small = { fontSize: '80%' }), (e[ `sub, sup` ] = { fontSize: '75%', lineHeight: '0', position: 'relative', verticalAlign: 'baseline' }), (e.sub = { bottom: '-0.25em' }), (e.sup = { top: '-0.5em' }), (e.img = { borderStyle: 'none' }), (e[ `button, input, optgroup, select, textarea` ] = { fontFamily: 'inherit', fontSize: '100%', lineHeight: '1.15', margin: '0' }), (e[ `button, input` ] = { overflow: 'visible' }), (e[ `button, select` ] = { textTransform: 'none' }), (e[ `button, html [type="button"], [type="reset"], [type="submit"]` ] = { WebkitAppearance: 'button' }), (e[ `button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner` ] = { borderStyle: 'none', padding: '0' }), (e[ `button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring` ] = { outline: '1px dotted ButtonText' }), (e.fieldset = { padding: '0.35em 0.625em 0.75em' }), (e.legend = { boxSizing: 'border-box', color: 'inherit', display: 'table', maxWidth: '100%', padding: '0', whiteSpace: 'normal', }), (e.progress = { verticalAlign: 'baseline' }), (e.textarea = { overflow: 'auto' }), (e[ `[type="checkbox"], [type="radio"]` ] = { boxSizing: 'border-box', padding: '0' }), (e[ `[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button` ] = { height: 'auto' }), (e['[type="search"]'] = { WebkitAppearance: 'textfield', outlineOffset: '-2px' }), (e['[type="search"]::-webkit-search-decoration'] = { WebkitAppearance: 'none' }), (e['::-webkit-file-upload-button'] = { WebkitAppearance: 'button', font: 'inherit' }), (e.details = { display: 'block' }), (e.summary = { display: 'list-item' }), (e.template = { display: 'none' }), (e['[hidden]'] = { display: 'none' }), e), { 'abbr[title]': { textDecoration: 'underline dotted' } }, ] } var lb function hR(e) { var t = e.colorStops, n = e.extent, a = n === void 0 ? '' : n, l = e.fallback, f = e.position, g = f === void 0 ? '' : f, h = e.shape, _ = h === void 0 ? '' : h if (!t || t.length < 2) throw new jt(57) return { backgroundColor: l || t[0].split(' ')[0], backgroundImage: ob( lb || (lb = _taggedTemplateLiteralLoose(['radial-gradient(', '', '', '', ')'])), g, _, a, t.join(', ') ), } } function vR(e, t, n, a, l) { var f if ((n === void 0 && (n = 'png'), l === void 0 && (l = '_2x'), !e)) throw new jt(58) var g = n.replace(/^\./, ''), h = a ? a + '.' + g : '' + e + l + '.' + g return ( (f = { backgroundImage: 'url(' + e + '.' + g + ')' }), (f[fO()] = _extends({ backgroundImage: 'url(' + h + ')' }, t ? { backgroundSize: t } : {})), f ) } var pO = { easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)', easeInCirc: 'cubic-bezier(0.600, 0.040, 0.980, 0.335)', easeInCubic: 'cubic-bezier(0.550, 0.055, 0.675, 0.190)', easeInExpo: 'cubic-bezier(0.950, 0.050, 0.795, 0.035)', easeInQuad: 'cubic-bezier(0.550, 0.085, 0.680, 0.530)', easeInQuart: 'cubic-bezier(0.895, 0.030, 0.685, 0.220)', easeInQuint: 'cubic-bezier(0.755, 0.050, 0.855, 0.060)', easeInSine: 'cubic-bezier(0.470, 0.000, 0.745, 0.715)', easeOutBack: 'cubic-bezier(0.175, 0.885, 0.320, 1.275)', easeOutCubic: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)', easeOutCirc: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)', easeOutExpo: 'cubic-bezier(0.190, 1.000, 0.220, 1.000)', easeOutQuad: 'cubic-bezier(0.250, 0.460, 0.450, 0.940)', easeOutQuart: 'cubic-bezier(0.165, 0.840, 0.440, 1.000)', easeOutQuint: 'cubic-bezier(0.230, 1.000, 0.320, 1.000)', easeOutSine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)', easeInOutBack: 'cubic-bezier(0.680, -0.550, 0.265, 1.550)', easeInOutCirc: 'cubic-bezier(0.785, 0.135, 0.150, 0.860)', easeInOutCubic: 'cubic-bezier(0.645, 0.045, 0.355, 1.000)', easeInOutExpo: 'cubic-bezier(1.000, 0.000, 0.000, 1.000)', easeInOutQuad: 'cubic-bezier(0.455, 0.030, 0.515, 0.955)', easeInOutQuart: 'cubic-bezier(0.770, 0.000, 0.175, 1.000)', easeInOutQuint: 'cubic-bezier(0.860, 0.000, 0.070, 1.000)', easeInOutSine: 'cubic-bezier(0.445, 0.050, 0.550, 0.950)', } function gO(e) { return pO[e] } function _R(e) { return gO(e) } var mO = function (t, n, a) { var l = '' + a[0] + (a[1] || ''), f = '' + a[0] / 2 + (a[1] || ''), g = '' + n[0] + (n[1] || ''), h = '' + n[0] / 2 + (n[1] || '') switch (t) { case 'top': return '0 ' + f + ' ' + g + ' ' + f case 'topLeft': return l + ' ' + g + ' 0 0' case 'left': return h + ' ' + l + ' ' + h + ' 0' case 'bottomLeft': return l + ' 0 0 ' + g case 'bottom': return g + ' ' + f + ' 0 ' + f case 'bottomRight': return '0 0 ' + l + ' ' + g case 'right': return h + ' 0 ' + h + ' ' + l case 'topRight': default: return '0 ' + l + ' ' + g + ' 0' } }, hO = function (t, n) { switch (t) { case 'top': case 'bottomRight': return { borderBottomColor: n } case 'right': case 'bottomLeft': return { borderLeftColor: n } case 'bottom': case 'topLeft': return { borderTopColor: n } case 'left': case 'topRight': return { borderRightColor: n } default: throw new jt(59) } } function yR(e) { var t = e.pointingDirection, n = e.height, a = e.width, l = e.foregroundColor, f = e.backgroundColor, g = f === void 0 ? 'transparent' : f, h = Eo(a), _ = Eo(n) if (isNaN(_[0]) || isNaN(h[0])) throw new jt(60) return _extends({ width: '0', height: '0', borderColor: g }, hO(t, l), { borderStyle: 'solid', borderWidth: mO(t, _, h), }) } function bR(e) { e === void 0 && (e = 'break-word') var t = e === 'break-word' ? 'break-all' : e return { overflowWrap: e, wordWrap: e, wordBreak: t } } function vv(e) { return Math.round(e * 255) } function vO(e, t, n) { return vv(e) + ',' + vv(t) + ',' + vv(n) } function Pf(e, t, n, a) { if ((a === void 0 && (a = vO), t === 0)) return a(n, n, n) var l = (((e % 360) + 360) % 360) / 60, f = (1 - Math.abs(2 * n - 1)) * t, g = f * (1 - Math.abs((l % 2) - 1)), h = 0, _ = 0, b = 0 l >= 0 && l < 1 ? ((h = f), (_ = g)) : l >= 1 && l < 2 ? ((h = g), (_ = f)) : l >= 2 && l < 3 ? ((_ = f), (b = g)) : l >= 3 && l < 4 ? ((_ = g), (b = f)) : l >= 4 && l < 5 ? ((h = g), (b = f)) : l >= 5 && l < 6 && ((h = f), (b = g)) var S = n - f / 2, x = h + S, k = _ + S, D = b + S return a(x, k, D) } var cb = { aliceblue: 'f0f8ff', antiquewhite: 'faebd7', aqua: '00ffff', aquamarine: '7fffd4', azure: 'f0ffff', beige: 'f5f5dc', bisque: 'ffe4c4', black: '000', blanchedalmond: 'ffebcd', blue: '0000ff', blueviolet: '8a2be2', brown: 'a52a2a', burlywood: 'deb887', cadetblue: '5f9ea0', chartreuse: '7fff00', chocolate: 'd2691e', coral: 'ff7f50', cornflowerblue: '6495ed', cornsilk: 'fff8dc', crimson: 'dc143c', cyan: '00ffff', darkblue: '00008b', darkcyan: '008b8b', darkgoldenrod: 'b8860b', darkgray: 'a9a9a9', darkgreen: '006400', darkgrey: 'a9a9a9', darkkhaki: 'bdb76b', darkmagenta: '8b008b', darkolivegreen: '556b2f', darkorange: 'ff8c00', darkorchid: '9932cc', darkred: '8b0000', darksalmon: 'e9967a', darkseagreen: '8fbc8f', darkslateblue: '483d8b', darkslategray: '2f4f4f', darkslategrey: '2f4f4f', darkturquoise: '00ced1', darkviolet: '9400d3', deeppink: 'ff1493', deepskyblue: '00bfff', dimgray: '696969', dimgrey: '696969', dodgerblue: '1e90ff', firebrick: 'b22222', floralwhite: 'fffaf0', forestgreen: '228b22', fuchsia: 'ff00ff', gainsboro: 'dcdcdc', ghostwhite: 'f8f8ff', gold: 'ffd700', goldenrod: 'daa520', gray: '808080', green: '008000', greenyellow: 'adff2f', grey: '808080', honeydew: 'f0fff0', hotpink: 'ff69b4', indianred: 'cd5c5c', indigo: '4b0082', ivory: 'fffff0', khaki: 'f0e68c', lavender: 'e6e6fa', lavenderblush: 'fff0f5', lawngreen: '7cfc00', lemonchiffon: 'fffacd', lightblue: 'add8e6', lightcoral: 'f08080', lightcyan: 'e0ffff', lightgoldenrodyellow: 'fafad2', lightgray: 'd3d3d3', lightgreen: '90ee90', lightgrey: 'd3d3d3', lightpink: 'ffb6c1', lightsalmon: 'ffa07a', lightseagreen: '20b2aa', lightskyblue: '87cefa', lightslategray: '789', lightslategrey: '789', lightsteelblue: 'b0c4de', lightyellow: 'ffffe0', lime: '0f0', limegreen: '32cd32', linen: 'faf0e6', magenta: 'f0f', maroon: '800000', mediumaquamarine: '66cdaa', mediumblue: '0000cd', mediumorchid: 'ba55d3', mediumpurple: '9370db', mediumseagreen: '3cb371', mediumslateblue: '7b68ee', mediumspringgreen: '00fa9a', mediumturquoise: '48d1cc', mediumvioletred: 'c71585', midnightblue: '191970', mintcream: 'f5fffa', mistyrose: 'ffe4e1', moccasin: 'ffe4b5', navajowhite: 'ffdead', navy: '000080', oldlace: 'fdf5e6', olive: '808000', olivedrab: '6b8e23', orange: 'ffa500', orangered: 'ff4500', orchid: 'da70d6', palegoldenrod: 'eee8aa', palegreen: '98fb98', paleturquoise: 'afeeee', palevioletred: 'db7093', papayawhip: 'ffefd5', peachpuff: 'ffdab9', peru: 'cd853f', pink: 'ffc0cb', plum: 'dda0dd', powderblue: 'b0e0e6', purple: '800080', rebeccapurple: '639', red: 'f00', rosybrown: 'bc8f8f', royalblue: '4169e1', saddlebrown: '8b4513', salmon: 'fa8072', sandybrown: 'f4a460', seagreen: '2e8b57', seashell: 'fff5ee', sienna: 'a0522d', silver: 'c0c0c0', skyblue: '87ceeb', slateblue: '6a5acd', slategray: '708090', slategrey: '708090', snow: 'fffafa', springgreen: '00ff7f', steelblue: '4682b4', tan: 'd2b48c', teal: '008080', thistle: 'd8bfd8', tomato: 'ff6347', turquoise: '40e0d0', violet: 'ee82ee', wheat: 'f5deb3', white: 'fff', whitesmoke: 'f5f5f5', yellow: 'ff0', yellowgreen: '9acd32', } function _O(e) { if (typeof e != 'string') return e var t = e.toLowerCase() return cb[t] ? '#' + cb[t] : e } var yO = /^#[a-fA-F0-9]{6}$/, bO = /^#[a-fA-F0-9]{8}$/, SO = /^#[a-fA-F0-9]{3}$/, wO = /^#[a-fA-F0-9]{4}$/, _v = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, xO = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, CO = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, EO = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i function Gs(e) { if (typeof e != 'string') throw new jt(3) var t = _O(e) if (t.match(yO)) 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(bO)) { var n = parseFloat((parseInt('' + t[7] + t[8], 16) / 255).toFixed(2)) return { red: parseInt('' + t[1] + t[2], 16), green: parseInt('' + t[3] + t[4], 16), blue: parseInt('' + t[5] + t[6], 16), alpha: n, } } if (t.match(SO)) return { red: parseInt('' + t[1] + t[1], 16), green: parseInt('' + t[2] + t[2], 16), blue: parseInt('' + t[3] + t[3], 16), } if (t.match(wO)) { var a = parseFloat((parseInt('' + t[4] + t[4], 16) / 255).toFixed(2)) return { red: parseInt('' + t[1] + t[1], 16), green: parseInt('' + t[2] + t[2], 16), blue: parseInt('' + t[3] + t[3], 16), alpha: a, } } var l = _v.exec(t) if (l) return { red: parseInt('' + l[1], 10), green: parseInt('' + l[2], 10), blue: parseInt('' + l[3], 10) } var f = xO.exec(t.substring(0, 50)) if (f) return { red: parseInt('' + f[1], 10), green: parseInt('' + f[2], 10), blue: parseInt('' + f[3], 10), alpha: parseFloat('' + f[4]) > 1 ? parseFloat('' + f[4]) / 100 : parseFloat('' + f[4]), } var g = CO.exec(t) if (g) { var h = parseInt('' + g[1], 10), _ = parseInt('' + g[2], 10) / 100, b = parseInt('' + g[3], 10) / 100, S = 'rgb(' + Pf(h, _, b) + ')', x = _v.exec(S) if (!x) throw new jt(4, t, S) return { red: parseInt('' + x[1], 10), green: parseInt('' + x[2], 10), blue: parseInt('' + x[3], 10) } } var k = EO.exec(t.substring(0, 50)) if (k) { var D = parseInt('' + k[1], 10), M = parseInt('' + k[2], 10) / 100, P = parseInt('' + k[3], 10) / 100, R = 'rgb(' + Pf(D, M, P) + ')', j = _v.exec(R) if (!j) throw new jt(4, t, R) return { red: parseInt('' + j[1], 10), green: parseInt('' + j[2], 10), blue: parseInt('' + j[3], 10), alpha: parseFloat('' + k[4]) > 1 ? parseFloat('' + k[4]) / 100 : parseFloat('' + k[4]), } } throw new jt(5) } function kO(e) { var t = e.red / 255, n = e.green / 255, a = e.blue / 255, l = Math.max(t, n, a), f = Math.min(t, n, a), g = (l + f) / 2 if (l === f) return e.alpha !== void 0 ? { hue: 0, saturation: 0, lightness: g, alpha: e.alpha } : { hue: 0, saturation: 0, lightness: g } var h, _ = l - f, b = g > 0.5 ? _ / (2 - l - f) : _ / (l + f) switch (l) { case t: h = (n - a) / _ + (n < a ? 6 : 0) break case n: h = (a - t) / _ + 2 break default: h = (t - n) / _ + 4 break } return ( (h *= 60), e.alpha !== void 0 ? { hue: h, saturation: b, lightness: g, alpha: e.alpha } : { hue: h, saturation: b, lightness: g } ) } function ja(e) { return kO(Gs(e)) } var OO = function (t) { return t.length === 7 && t[1] === t[2] && t[3] === t[4] && t[5] === t[6] ? '#' + t[1] + t[3] + t[5] : t }, yv = OO function nc(e) { var t = e.toString(16) return t.length === 1 ? '0' + t : t } function bv(e) { return nc(Math.round(e * 255)) } function TO(e, t, n) { return yv('#' + bv(e) + bv(t) + bv(n)) } function jg(e, t, n) { return Pf(e, t, n, TO) } function ub(e, t, n) { if (typeof e == 'number' && typeof t == 'number' && typeof n == 'number') return jg(e, t, n) if (typeof e == 'object' && t === void 0 && n === void 0) return jg(e.hue, e.saturation, e.lightness) throw new jt(1) } function db(e, t, n, a) { if (typeof e == 'number' && typeof t == 'number' && typeof n == 'number' && typeof a == 'number') return a >= 1 ? jg(e, t, n) : 'rgba(' + Pf(e, t, n) + ',' + a + ')' if (typeof e == 'object' && t === void 0 && n === void 0 && a === void 0) return e.alpha >= 1 ? jg(e.hue, e.saturation, e.lightness) : 'rgba(' + Pf(e.hue, e.saturation, e.lightness) + ',' + e.alpha + ')' throw new jt(2) } function zg(e, t, n) { if (typeof e == 'number' && typeof t == 'number' && typeof n == 'number') return yv('#' + nc(e) + nc(t) + nc(n)) if (typeof e == 'object' && t === void 0 && n === void 0) return yv('#' + nc(e.red) + nc(e.green) + nc(e.blue)) throw new jt(6) } function rc(e, t, n, a) { if (typeof e == 'string' && typeof t == 'number') { var l = Gs(e) return 'rgba(' + l.red + ',' + l.green + ',' + l.blue + ',' + t + ')' } else { if (typeof e == 'number' && typeof t == 'number' && typeof n == 'number' && typeof a == 'number') return a >= 1 ? zg(e, t, n) : 'rgba(' + e + ',' + t + ',' + n + ',' + a + ')' if (typeof e == 'object' && t === void 0 && n === void 0 && a === void 0) return e.alpha >= 1 ? zg(e.red, e.green, e.blue) : 'rgba(' + e.red + ',' + e.green + ',' + e.blue + ',' + e.alpha + ')' } throw new jt(7) } var DO = function (t) { return ( typeof t.red == 'number' && typeof t.green == 'number' && typeof t.blue == 'number' && (typeof t.alpha != 'number' || typeof t.alpha == 'undefined') ) }, PO = function (t) { return ( typeof t.red == 'number' && typeof t.green == 'number' && typeof t.blue == 'number' && typeof t.alpha == 'number' ) }, IO = function (t) { return ( typeof t.hue == 'number' && typeof t.saturation == 'number' && typeof t.lightness == 'number' && (typeof t.alpha != 'number' || typeof t.alpha == 'undefined') ) }, RO = function (t) { return ( typeof t.hue == 'number' && typeof t.saturation == 'number' && typeof t.lightness == 'number' && typeof t.alpha == 'number' ) } function Zi(e) { if (typeof e != 'object') throw new jt(8) if (PO(e)) return rc(e) if (DO(e)) return zg(e) if (RO(e)) return db(e) if (IO(e)) return ub(e) throw new jt(8) } function fb(e, t, n) { return function () { var l = n.concat(Array.prototype.slice.call(arguments)) return l.length >= t ? e.apply(this, l) : fb(e, t, l) } } function SR(e) { return fb(e, e.length, []) } function wR(e, t) { if (t === 'transparent') return t var n = ja(t) return Zi(_extends({}, n, { hue: n.hue + parseFloat(e) })) } var xR = null, CR = null function ER(e) { if (e === 'transparent') return e var t = ja(e) return Zi(_extends({}, t, { hue: (t.hue + 180) % 360 })) } function Du(e, t, n) { return Math.max(e, Math.min(t, n)) } function kR(e, t) { if (t === 'transparent') return t var n = ja(t) return Zi(_extends({}, n, { lightness: Du(0, 1, n.lightness - parseFloat(e)) })) } var OR = null, TR = null function DR(e, t) { if (t === 'transparent') return t var n = ja(t) return Zi(_extends({}, n, { saturation: Du(0, 1, n.saturation - parseFloat(e)) })) } var PR = null, IR = null function Sv(e) { if (e === 'transparent') return 0 var t = Gs(e), n = Object.keys(t).map(function (g) { var h = t[g] / 255 return h <= 0.03928 ? h / 12.92 : Math.pow((h + 0.055) / 1.055, 2.4) }), a = n[0], l = n[1], f = n[2] return parseFloat((0.2126 * a + 0.7152 * l + 0.0722 * f).toFixed(3)) } function pb(e, t) { var n = Sv(e), a = Sv(t) return parseFloat((n > a ? (n + 0.05) / (a + 0.05) : (a + 0.05) / (n + 0.05)).toFixed(2)) } function RR(e) { return e === 'transparent' ? e : Zi(_extends({}, ja(e), { saturation: 0 })) } function MR(e) { if ( typeof e == 'object' && typeof e.hue == 'number' && typeof e.saturation == 'number' && typeof e.lightness == 'number' ) return e.alpha && typeof e.alpha == 'number' ? db({ hue: e.hue, saturation: e.saturation, lightness: e.lightness, alpha: e.alpha }) : ub({ hue: e.hue, saturation: e.saturation, lightness: e.lightness }) throw new jt(45) } function AR(e) { if (e === 'transparent') return e var t = Gs(e) return Zi(_extends({}, t, { red: 255 - t.red, green: 255 - t.green, blue: 255 - t.blue })) } function NR(e, t) { if (t === 'transparent') return t var n = ja(t) return Zi(_extends({}, n, { lightness: Du(0, 1, n.lightness + parseFloat(e)) })) } var jR = null, zR = null function LR(e, t) { var n = pb(e, t) return { AA: n >= 4.5, AALarge: n >= 3, AAA: n >= 7, AAALarge: n >= 4.5 } } function FR(e, t, n) { if (t === 'transparent') return n if (n === 'transparent') return t if (e === 0) return n var a = Gs(t), l = _extends({}, a, { alpha: typeof a.alpha == 'number' ? a.alpha : 1 }), f = Gs(n), g = _extends({}, f, { alpha: typeof f.alpha == 'number' ? f.alpha : 1 }), h = l.alpha - g.alpha, _ = parseFloat(e) * 2 - 1, b = _ * h === -1 ? _ : _ + h, S = 1 + _ * h, x = (b / S + 1) / 2, k = 1 - x, D = { red: Math.floor(l.red * x + g.red * k), green: Math.floor(l.green * x + g.green * k), blue: Math.floor(l.blue * x + g.blue * k), alpha: l.alpha * parseFloat(e) + g.alpha * (1 - parseFloat(e)), } return rc(D) } var $R = null, gb = null function HR(e, t) { if (t === 'transparent') return t var n = Gs(t), a = typeof n.alpha == 'number' ? n.alpha : 1, l = _extends({}, n, { alpha: Du(0, 1, (a * 100 + parseFloat(e) * 100) / 100) }) return rc(l) } var BR = null, UR = null, mb = '#000', hb = '#fff' function WR(e, t, n, a) { t === void 0 && (t = mb), n === void 0 && (n = hb), a === void 0 && (a = !0) var l = Sv(e) > 0.179, f = l ? t : n return !a || pb(e, f) >= 4.5 ? f : l ? mb : hb } function VR(e) { if (typeof e == 'object' && typeof e.red == 'number' && typeof e.green == 'number' && typeof e.blue == 'number') return typeof e.alpha == 'number' ? rc({ red: e.red, green: e.green, blue: e.blue, alpha: e.alpha }) : zg({ red: e.red, green: e.green, blue: e.blue }) throw new jt(46) } function GR(e, t) { if (t === 'transparent') return t var n = ja(t) return Zi(_extends({}, n, { saturation: Du(0, 1, n.saturation + parseFloat(e)) })) } var XR = null, KR = null function YR(e, t) { return t === 'transparent' ? t : Zi(_extends({}, ja(t), { hue: parseFloat(e) })) } var qR = null, QR = null function JR(e, t) { return t === 'transparent' ? t : Zi(_extends({}, ja(t), { lightness: parseFloat(e) })) } var ZR = null, e5 = null function t5(e, t) { return t === 'transparent' ? t : Zi(_extends({}, ja(t), { saturation: parseFloat(e) })) } var n5 = null, r5 = null function i5(e, t) { return t === 'transparent' ? t : gb(parseFloat(e), 'rgb(0, 0, 0)', t) } var a5 = null, o5 = null function s5(e, t) { return t === 'transparent' ? t : gb(parseFloat(e), 'rgb(255, 255, 255)', t) } var l5 = null, c5 = null function u5(e, t) { if (t === 'transparent') return t var n = Gs(t), a = typeof n.alpha == 'number' ? n.alpha : 1, l = _extends({}, n, { alpha: Du(0, 1, +(a * 100 - parseFloat(e) * 100).toFixed(2) / 100) }) return rc(l) } var d5 = null, f5 = null function p5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] var a = Array.isArray(t[0]) if (!a && t.length > 8) throw new jt(64) var l = t .map(function (f) { if ((a && !Array.isArray(f)) || (!a && Array.isArray(f))) throw new jt(65) if (Array.isArray(f) && f.length > 8) throw new jt(66) return Array.isArray(f) ? f.join(' ') : f }) .join(', ') return { animation: l } } function g5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return { backgroundImage: t.join(', ') } } function m5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return { background: t.join(', ') } } var MO = null function h5(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 (typeof e == 'string' && MO.indexOf(e) >= 0) { var l return ( (l = {}), (l['border' + Df(e) + 'Width'] = n[0]), (l['border' + Df(e) + 'Style'] = n[1]), (l['border' + Df(e) + 'Color'] = n[2]), l ) } else return n.unshift(e), { borderWidth: n[0], borderStyle: n[1], borderColor: n[2] } } function v5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return tc.apply(void 0, ['borderColor'].concat(t)) } function _5(e, t) { var n = Df(e) if (!t && t !== 0) throw new jt(62) if (n === 'Top' || n === 'Bottom') { var a return (a = {}), (a['border' + n + 'RightRadius'] = t), (a['border' + n + 'LeftRadius'] = t), a } if (n === 'Left' || n === 'Right') { var l return (l = {}), (l['borderTop' + n + 'Radius'] = t), (l['borderBottom' + n + 'Radius'] = t), l } throw new jt(63) } function y5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return tc.apply(void 0, ['borderStyle'].concat(t)) } function b5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return tc.apply(void 0, ['borderWidth'].concat(t)) } function vb(e, t) { var n = t ? ':' + t : '' return e(n) } function _b(e, t, n) { if (!t) throw new jt(67) if (e.length === 0) return vb(t, null) for (var a = [], l = 0; l < e.length; l += 1) { if (n && n.indexOf(e[l]) < 0) throw new jt(68) a.push(vb(t, e[l])) } return (a = a.join(',')), a } var AO = null function NO(e) { return ( 'button' + e + `, input[type="button"]` + e + `, input[type="reset"]` + e + `, input[type="submit"]` + e ) } function S5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return _b(t, NO, AO) } function w5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return tc.apply(void 0, ['margin'].concat(t)) } function x5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return tc.apply(void 0, ['padding'].concat(t)) } var jO = null function C5(e) { for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++) n[a - 1] = arguments[a] return jO.indexOf(e) >= 0 && e ? _extends({}, tc.apply(void 0, [''].concat(n)), { position: e }) : tc.apply(void 0, ['', e].concat(n)) } function E5(e, t) { return t === void 0 && (t = e), { height: e, width: t } } var zO = null function LO(e) { return ( 'input[type="color"]' + e + `, input[type="date"]` + e + `, input[type="datetime"]` + e + `, input[type="datetime-local"]` + e + `, input[type="email"]` + e + `, input[type="month"]` + e + `, input[type="number"]` + e + `, input[type="password"]` + e + `, input[type="search"]` + e + `, input[type="tel"]` + e + `, input[type="text"]` + e + `, input[type="time"]` + e + `, input[type="url"]` + e + `, input[type="week"]` + e + `, input:not([type])` + e + `, textarea` + e ) } function k5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] return _b(t, LO, zO) } function O5() { for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++) t[n] = arguments[n] if (Array.isArray(t[0]) && t.length === 2) { var a = t[1] if (typeof a != 'string') throw new jt(61) var l = t[0] .map(function (f) { return f + ' ' + a }) .join(', ') return { transition: l } } else return { transition: t.join(', ') } } var yb, bb, Sb, wb, xb, Cb, Eb, kb, Ob, Tb, Db, Pb, Ib, Rb = rE(function (e, t) { var n = e.token, a = mi( yb || (yb = Sn()([ ` position: relative; &::before { position: absolute; z-index: 50; transition: all 0.3s ease-in-out; content: ''; } &:hover, &:active { &::before { background: `, `; } } `, ])), n.colorPrimary ), l = mi( bb || (bb = Sn()([ ` position: absolute; opacity: 0; z-index: 1001; transition: opacity 0.1s; border-radius: 4px; cursor: pointer; background: `, `; border-width: 1px; border-style: solid; color: `, `; border-color: `, `; &:hover { color: `, `; background: `, `; } `, ])), n.colorBgElevated, n.colorTextTertiary, n.colorBorder, n.colorTextSecondary, n.colorFillQuaternary ), f = 17, g = 40, h = 16 return { container: Qi( t, mi( Sb || (Sb = Sn()([ ` flex-shrink: 0; position: relative; border: 0 solid `, `; &:hover { .`, `-toggle { opacity: 1; } } `, ])), n.colorSplit, t ) ), toggleLeft: Qi( ''.concat(t, '-toggle'), ''.concat(t, '-toggle-left'), l, mi( wb || (wb = Sn()([ ` width: `, `px; height: `, `px; left: -`, `px; top: 50%; margin-top: -20px; border-radius: 4px 0 0 4px; border-right-width: 0; `, ])), h, g, f ) ), toggleRight: Qi( ''.concat(t, '-toggle'), ''.concat(t, '-toggle-right'), l, mi( xb || (xb = Sn()([ ` width: `, `px; height: `, `px; right: -`, `px; top: 50%; margin-top: -20px; border-radius: 0 4px 4px 0; border-left-width: 0; `, ])), h, g, f ) ), toggleTop: Qi( ''.concat(t, '-toggle'), ''.concat(t, '-toggle-top'), l, mi( Cb || (Cb = Sn()([ ` height: `, `px; width: `, `px; top: -`, `px; left: 50%; margin-left: -20px; border-radius: 4px 4px 0 0; border-bottom-width: 0; `, ])), h, g, f ) ), toggleBottom: Qi( ''.concat(t, '-toggle'), ''.concat(t, '-toggle-bottom'), l, mi( Eb || (Eb = Sn()([ ` height: 16px; width: `, `px; bottom: -`, `px; left: 50%; margin-left: -20px; border-radius: 0 0 4px 4px; border-top-width: 0; `, ])), g, f ) ), fixed: Qi( ''.concat(t, '-fixed'), mi( kb || (kb = Sn()([ ` background: `, `; backdrop-filter: blur(40px); overflow: hidden; position: relative; `, ])), rc(n.colorBgContainer, 0.75) ) ), float: Qi( ''.concat(t, '-float'), mi( Ob || (Ob = Sn()([ ` overflow: hidden; border-radius: 8px; background: `, `; backdrop-filter: blur(40px); box-shadow: `, `; z-index: 2000; position: relative; `, ])), rc(n.colorBgElevated, 0.75), n.boxShadowSecondary ) ), leftHandle: Qi( mi( Tb || (Tb = Sn()([ ` `, `; &::before { left: 50%; width: 2px; height: 100%; } `, ])), a ), ''.concat(t, '-left-handle') ), rightHandle: Qi( mi( Db || (Db = Sn()([ ` `, `; &::before { right: 50%; width: 2px; height: 100%; } `, ])), a ), ''.concat(t, '-right-handle') ), topHandle: Qi( ''.concat(t, '-top-handle'), mi( Pb || (Pb = Sn()([ ` `, `; &::before { top: 50%; height: 2px; width: 100%; } `, ])), a ) ), bottomHandle: Qi( ''.concat(t, '-bottom-handle'), mi( Ib || (Ib = Sn()([ ` `, `; &::before { bottom: 50%; height: 2px; width: 100%; } `, ])), a ) ), } }), FO = 150, $O = 400, wv = function (t) { switch (t) { case 'bottom': return 'top' case 'top': return 'bottom' case 'right': return 'left' case 'left': return 'right' } }, HO = (0, m.memo)(function (e) { var t = e.children, n = e.placement, a = n === void 0 ? 'right' : n, l = e.resize, f = e.style, g = e.size, h = e.defaultSize, _ = e.minWidth, b = e.minHeight, S = e.onSizeChange, x = e.onSizeDragging, k = e.expandable, D = k === void 0 ? !0 : k, M = e.isExpand, P = e.onExpandChange, R = e.className, j = 'draggable-panel', L = a === 'top' || a === 'bottom', H = Rb(j), U = H.styles, te = H.cx, ie = Mk(!0, { value: M, onChange: P }), ae = T()(ie, 2), de = ae[0], ye = ae[1], me = l !== !1 && de, De = (0, m.useMemo)( function () { return me ? Le()({}, wv(a), U[''.concat(wv(a), 'Handle')]) : {} }, [me, a] ), se = hi()( Le()( { top: !1, bottom: !1, right: !1, left: !1, topRight: !1, bottomRight: !1, bottomLeft: !1, topLeft: !1 }, wv(a), !0 ), l ), oe = (0, m.useMemo)( function () { return L ? hi()({ width: '100%', height: FO }, h) : hi()({ width: $O, height: '100%' }, h) }, [L] ), fe = de ? { minWidth: typeof _ == 'number' ? Math.max(_, 0) : 280, minHeight: typeof b == 'number' ? Math.max(b, 0) : void 0, defaultSize: oe, size: g, style: f, } : { minWidth: 0, minHeight: 0, size: { width: 0, height: 0 } }, Oe = (0, m.useMemo)( function () { switch (a) { case 'top': return { className: 'Bottom', Arrow: QE } case 'bottom': return { className: 'Top', Arrow: ek } case 'right': return { className: 'Left', Arrow: rk } case 'left': return { className: 'Right', Arrow: ok } } }, [U, a] ), Ve = Oe.Arrow, Qe = Oe.className return (0, at.jsxs)('div', { className: te(U.container, R), style: Le()({}, 'border'.concat(Qe, 'Width'), 1), children: [ D && (0, at.jsx)(kk, { className: te(U['toggle'.concat(Qe)]), onClick: function () { ye(!de) }, style: { opacity: de ? void 0 : 1 }, children: (0, at.jsx)(Ve, { rotate: de ? 180 : 0 }), }), (0, at.jsx)( mk, hi()( hi()({}, fe), {}, { className: U.fixed, enable: me ? se : void 0, handleClasses: De, onResizeStop: function (Ot, Nt, Ct, Ge) { S == null || S(Ge, { width: Ct.style.width, height: Ct.style.height }) }, onResize: function (Ot, Nt, Ct, Ge) { x == null || x(Ge, { width: Ct.style.width, height: Ct.style.height }) }, children: t, } ) ), ], }) }), BO = dt(1193), UO = dt.n(BO), WO = (function () { var e = function (t, n) { return ( (e = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (a, l) { a.__proto__ = l }) || function (a, l) { for (var f in l) Object.prototype.hasOwnProperty.call(l, f) && (a[f] = l[f]) }), e(t, n) ) } return function (t, n) { e(t, n) function a() { this.constructor = t } t.prototype = n === null ? Object.create(n) : ((a.prototype = n.prototype), new a()) } })(), Lg = function () { return ( (Lg = Object.assign || function (e) { for (var t, n = 1, a = arguments.length; n < a; n++) { t = arguments[n] for (var l in t) Object.prototype.hasOwnProperty.call(t, l) && (e[l] = t[l]) } return e }), Lg.apply(this, arguments) ) }, VO = { top: { width: '100%', height: '10px', top: '-5px', left: '0px', cursor: 'row-resize' }, right: { width: '10px', height: '100%', top: '0px', right: '-5px', cursor: 'col-resize' }, bottom: { width: '100%', height: '10px', bottom: '-5px', left: '0px', cursor: 'row-resize' }, left: { width: '10px', height: '100%', top: '0px', left: '-5px', cursor: 'col-resize' }, topRight: { width: '20px', height: '20px', position: 'absolute', right: '-10px', top: '-10px', cursor: 'ne-resize', }, bottomRight: { width: '20px', height: '20px', position: 'absolute', right: '-10px', bottom: '-10px', cursor: 'se-resize', }, bottomLeft: { width: '20px', height: '20px', position: 'absolute', left: '-10px', bottom: '-10px', cursor: 'sw-resize', }, topLeft: { width: '20px', height: '20px', position: 'absolute', left: '-10px', top: '-10px', cursor: 'nw-resize', }, }, GO = (function (e) { WO(t, e) function t() { var n = (e !== null && e.apply(this, arguments)) || this return ( (n.onMouseDown = function (a) { n.props.onResizeStart(a, n.props.direction) }), (n.onTouchStart = function (a) { n.props.onResizeStart(a, n.props.direction) }), n ) } return ( (t.prototype.render = function () { return m.createElement( 'div', { className: this.props.className || '', style: Lg( Lg({ position: 'absolute', userSelect: 'none' }, VO[this.props.direction]), this.props.replaceStyles || {} ), onMouseDown: this.onMouseDown, onTouchStart: this.onTouchStart, }, this.props.children ) }), t ) })(m.PureComponent), XO = dt(3316), ic = dt.n(XO), KO = (function () { var e = function (t, n) { return ( (e = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (a, l) { a.__proto__ = l }) || function (a, l) { for (var f in l) Object.prototype.hasOwnProperty.call(l, f) && (a[f] = l[f]) }), e(t, n) ) } return function (t, n) { e(t, n) function a() { this.constructor = t } t.prototype = n === null ? Object.create(n) : ((a.prototype = n.prototype), new a()) } })(), za = function () { return ( (za = Object.assign || function (e) { for (var t, n = 1, a = arguments.length; n < a; n++) { t = arguments[n] for (var l in t) Object.prototype.hasOwnProperty.call(t, l) && (e[l] = t[l]) } return e }), za.apply(this, arguments) ) }, YO = { width: 'auto', height: 'auto' }, Fg = ic()(function (e, t, n) { return Math.max(Math.min(e, n), t) }), Mb = ic()(function (e, t) { return Math.round(e / t) * t }), Pu = ic()(function (e, t) { return new RegExp(e, 'i').test(t) }), $g = function (e) { return Boolean(e.touches && e.touches.length) }, qO = function (e) { return Boolean((e.clientX || e.clientX === 0) && (e.clientY || e.clientY === 0)) }, Ab = ic()(function (e, t, n) { n === void 0 && (n = 0) var a = t.reduce(function (f, g, h) { return Math.abs(g - e) < Math.abs(t[f] - e) ? h : f }, 0), l = Math.abs(t[a] - e) return n === 0 || l < n ? t[a] : e }), or = ic()(function (e, t) { return e.substr(e.length - t.length, t.length) === t }), xv = ic()(function (e) { return ( (e = e.toString()), e === 'auto' || or(e, 'px') || or(e, '%') || or(e, 'vh') || or(e, 'vw') || or(e, 'vmax') || or(e, 'vmin') ? e : e + 'px' ) }), Hg = function (e, t, n, a) { if (e && typeof e == 'string') { if (or(e, 'px')) return Number(e.replace('px', '')) if (or(e, '%')) { var l = Number(e.replace('%', '')) / 100 return t * l } if (or(e, 'vw')) { var l = Number(e.replace('vw', '')) / 100 return n * l } if (or(e, 'vh')) { var l = Number(e.replace('vh', '')) / 100 return a * l } } return e }, QO = ic()(function (e, t, n, a, l, f, g) { return ( (a = Hg(a, e.width, t, n)), (l = Hg(l, e.height, t, n)), (f = Hg(f, e.width, t, n)), (g = Hg(g, e.height, t, n)), { maxWidth: typeof a == 'undefined' ? void 0 : Number(a), maxHeight: typeof l == 'undefined' ? void 0 : Number(l), minWidth: typeof f == 'undefined' ? void 0 : Number(f), minHeight: typeof g == 'undefined' ? void 0 : Number(g), } ) }), JO = [ 'as', 'style', 'className', 'grid', 'snap', 'bounds', 'boundsByDirection', 'size', 'defaultSize', 'minWidth', 'minHeight', 'maxWidth', 'maxHeight', 'lockAspectRatio', 'lockAspectRatioExtraWidth', 'lockAspectRatioExtraHeight', 'enable', 'handleStyles', 'handleClasses', 'handleWrapperStyle', 'handleWrapperClass', 'children', 'onResizeStart', 'onResize', 'onResizeStop', 'handleComponent', 'scale', 'resizeRatio', 'snapGap', ], Nb = '__resizable_base__', ZO = (function (e) { KO(t, e) function t(n) { var a = e.call(this, n) || this return ( (a.ratio = 1), (a.resizable = null), (a.parentLeft = 0), (a.parentTop = 0), (a.resizableLeft = 0), (a.resizableRight = 0), (a.resizableTop = 0), (a.resizableBottom = 0), (a.targetLeft = 0), (a.targetTop = 0), (a.appendBase = function () { if (!a.resizable || !a.window) return null var l = a.parentNode if (!l) return null var f = a.window.document.createElement('div') return ( (f.style.width = '100%'), (f.style.height = '100%'), (f.style.position = 'absolute'), (f.style.transform = 'scale(0, 0)'), (f.style.left = '0'), (f.style.flex = '0 0 100%'), f.classList ? f.classList.add(Nb) : (f.className += Nb), l.appendChild(f), f ) }), (a.removeBase = function (l) { var f = a.parentNode f && f.removeChild(l) }), (a.ref = function (l) { l && (a.resizable = l) }), (a.state = { isResizing: !1, width: typeof (a.propsSize && a.propsSize.width) == 'undefined' ? 'auto' : a.propsSize && a.propsSize.width, height: typeof (a.propsSize && a.propsSize.height) == 'undefined' ? 'auto' : a.propsSize && a.propsSize.height, direction: 'right', original: { x: 0, y: 0, width: 0, height: 0 }, backgroundStyle: { height: '100%', width: '100%', backgroundColor: 'rgba(0,0,0,0)', cursor: 'auto', opacity: 0, position: 'fixed', zIndex: 9999, top: '0', left: '0', bottom: '0', right: '0', }, flexBasis: void 0, }), (a.onResizeStart = a.onResizeStart.bind(a)), (a.onMouseMove = a.onMouseMove.bind(a)), (a.onMouseUp = a.onMouseUp.bind(a)), a ) } return ( Object.defineProperty(t.prototype, 'parentNode', { get: function () { return this.resizable ? this.resizable.parentNode : null }, enumerable: !1, configurable: !0, }), Object.defineProperty(t.prototype, 'window', { get: function () { return !this.resizable || !this.resizable.ownerDocument ? null : this.resizable.ownerDocument.defaultView }, enumerable: !1, configurable: !0, }), Object.defineProperty(t.prototype, 'propsSize', { get: function () { return this.props.size || this.props.defaultSize || YO }, enumerable: !1, configurable: !0, }), Object.defineProperty(t.prototype, 'size', { get: function () { var n = 0, a = 0 if (this.resizable && this.window) { var l = this.resizable.offsetWidth, f = this.resizable.offsetHeight, g = this.resizable.style.position g !== 'relative' && (this.resizable.style.position = 'relative'), (n = this.resizable.style.width !== 'auto' ? this.resizable.offsetWidth : l), (a = this.resizable.style.height !== 'auto' ? this.resizable.offsetHeight : f), (this.resizable.style.position = g) } return { width: n, height: a } }, enumerable: !1, configurable: !0, }), Object.defineProperty(t.prototype, 'sizeStyle', { get: function () { var n = this, a = this.props.size, l = function (h) { if (typeof n.state[h] == 'undefined' || n.state[h] === 'auto') return 'auto' if (n.propsSize && n.propsSize[h] && or(n.propsSize[h].toString(), '%')) { if (or(n.state[h].toString(), '%')) return n.state[h].toString() var _ = n.getParentSize(), b = Number(n.state[h].toString().replace('px', '')), S = (b / _[h]) * 100 return S + '%' } return xv(n.state[h]) }, f = a && typeof a.width != 'undefined' && !this.state.isResizing ? xv(a.width) : l('width'), g = a && typeof a.height != 'undefined' && !this.state.isResizing ? xv(a.height) : l('height') return { width: f, height: g } }, enumerable: !1, configurable: !0, }), (t.prototype.getParentSize = function () { if (!this.parentNode) return this.window ? { width: this.window.innerWidth, height: this.window.innerHeight } : { width: 0, height: 0 } var n = this.appendBase() if (!n) return { width: 0, height: 0 } var a = !1, l = this.parentNode.style.flexWrap l !== 'wrap' && ((a = !0), (this.parentNode.style.flexWrap = 'wrap')), (n.style.position = 'relative'), (n.style.minWidth = '100%'), (n.style.minHeight = '100%') var f = { width: n.offsetWidth, height: n.offsetHeight } return a && (this.parentNode.style.flexWrap = l), this.removeBase(n), f }), (t.prototype.bindEvents = function () { this.window && (this.window.addEventListener('mouseup', this.onMouseUp), this.window.addEventListener('mousemove', this.onMouseMove), this.window.addEventListener('mouseleave', this.onMouseUp), this.window.addEventListener('touchmove', this.onMouseMove, { capture: !0, passive: !1 }), this.window.addEventListener('touchend', this.onMouseUp)) }), (t.prototype.unbindEvents = function () { this.window && (this.window.removeEventListener('mouseup', this.onMouseUp), this.window.removeEventListener('mousemove', this.onMouseMove), this.window.removeEventListener('mouseleave', this.onMouseUp), this.window.removeEventListener('touchmove', this.onMouseMove, !0), this.window.removeEventListener('touchend', this.onMouseUp)) }), (t.prototype.componentDidMount = function () { if (!(!this.resizable || !this.window)) { var n = this.window.getComputedStyle(this.resizable) this.setState({ width: this.state.width || this.size.width, height: this.state.height || this.size.height, flexBasis: n.flexBasis !== 'auto' ? n.flexBasis : void 0, }) } }), (t.prototype.componentWillUnmount = function () { this.window && this.unbindEvents() }), (t.prototype.createSizeForCssProperty = function (n, a) { var l = this.propsSize && this.propsSize[a] return this.state[a] === 'auto' && this.state.original[a] === n && (typeof l == 'undefined' || l === 'auto') ? 'auto' : n }), (t.prototype.calculateNewMaxFromBoundary = function (n, a) { var l = this.props.boundsByDirection, f = this.state.direction, g = l && Pu('left', f), h = l && Pu('top', f), _, b if (this.props.bounds === 'parent') { var S = this.parentNode S && ((_ = g ? this.resizableRight - this.parentLeft : S.offsetWidth + (this.parentLeft - this.resizableLeft)), (b = h ? this.resizableBottom - this.parentTop : S.offsetHeight + (this.parentTop - this.resizableTop))) } else this.props.bounds === 'window' ? this.window && ((_ = g ? this.resizableRight : this.window.innerWidth - this.resizableLeft), (b = h ? this.resizableBottom : this.window.innerHeight - this.resizableTop)) : this.props.bounds && ((_ = g ? this.resizableRight - this.targetLeft : this.props.bounds.offsetWidth + (this.targetLeft - this.resizableLeft)), (b = h ? this.resizableBottom - this.targetTop : this.props.bounds.offsetHeight + (this.targetTop - this.resizableTop))) return ( _ && Number.isFinite(_) && (n = n && n < _ ? n : _), b && Number.isFinite(b) && (a = a && a < b ? a : b), { maxWidth: n, maxHeight: a } ) }), (t.prototype.calculateNewSizeFromDirection = function (n, a) { var l = this.props.scale || 1, f = this.props.resizeRatio || 1, g = this.state, h = g.direction, _ = g.original, b = this.props, S = b.lockAspectRatio, x = b.lockAspectRatioExtraHeight, k = b.lockAspectRatioExtraWidth, D = _.width, M = _.height, P = x || 0, R = k || 0 return ( Pu('right', h) && ((D = _.width + ((n - _.x) * f) / l), S && (M = (D - R) / this.ratio + P)), Pu('left', h) && ((D = _.width - ((n - _.x) * f) / l), S && (M = (D - R) / this.ratio + P)), Pu('bottom', h) && ((M = _.height + ((a - _.y) * f) / l), S && (D = (M - P) * this.ratio + R)), Pu('top', h) && ((M = _.height - ((a - _.y) * f) / l), S && (D = (M - P) * this.ratio + R)), { newWidth: D, newHeight: M } ) }), (t.prototype.calculateNewSizeFromAspectRatio = function (n, a, l, f) { var g = this.props, h = g.lockAspectRatio, _ = g.lockAspectRatioExtraHeight, b = g.lockAspectRatioExtraWidth, S = typeof f.width == 'undefined' ? 10 : f.width, x = typeof l.width == 'undefined' || l.width < 0 ? n : l.width, k = typeof f.height == 'undefined' ? 10 : f.height, D = typeof l.height == 'undefined' || l.height < 0 ? a : l.height, M = _ || 0, P = b || 0 if (h) { var R = (k - M) * this.ratio + P, j = (D - M) * this.ratio + P, L = (S - P) / this.ratio + M, H = (x - P) / this.ratio + M, U = Math.max(S, R), te = Math.min(x, j), ie = Math.max(k, L), ae = Math.min(D, H) ;(n = Fg(n, U, te)), (a = Fg(a, ie, ae)) } else (n = Fg(n, S, x)), (a = Fg(a, k, D)) return { newWidth: n, newHeight: a } }), (t.prototype.setBoundingClientRect = function () { if (this.props.bounds === 'parent') { var n = this.parentNode if (n) { var a = n.getBoundingClientRect() ;(this.parentLeft = a.left), (this.parentTop = a.top) } } if (this.props.bounds && typeof this.props.bounds != 'string') { var l = this.props.bounds.getBoundingClientRect() ;(this.targetLeft = l.left), (this.targetTop = l.top) } if (this.resizable) { var f = this.resizable.getBoundingClientRect(), g = f.left, h = f.top, _ = f.right, b = f.bottom ;(this.resizableLeft = g), (this.resizableRight = _), (this.resizableTop = h), (this.resizableBottom = b) } }), (t.prototype.onResizeStart = function (n, a) { if (!(!this.resizable || !this.window)) { var l = 0, f = 0 if ( (n.nativeEvent && qO(n.nativeEvent) ? ((l = n.nativeEvent.clientX), (f = n.nativeEvent.clientY)) : n.nativeEvent && $g(n.nativeEvent) && ((l = n.nativeEvent.touches[0].clientX), (f = n.nativeEvent.touches[0].clientY)), this.props.onResizeStart && this.resizable) ) { var g = this.props.onResizeStart(n, a, this.resizable) if (g === !1) return } this.props.size && (typeof this.props.size.height != 'undefined' && this.props.size.height !== this.state.height && this.setState({ height: this.props.size.height }), typeof this.props.size.width != 'undefined' && this.props.size.width !== this.state.width && this.setState({ width: this.props.size.width })), (this.ratio = typeof this.props.lockAspectRatio == 'number' ? this.props.lockAspectRatio : this.size.width / this.size.height) var h, _ = this.window.getComputedStyle(this.resizable) if (_.flexBasis !== 'auto') { var b = this.parentNode if (b) { var S = this.window.getComputedStyle(b).flexDirection ;(this.flexDir = S.startsWith('row') ? 'row' : 'column'), (h = _.flexBasis) } } this.setBoundingClientRect(), this.bindEvents() var x = { original: { x: l, y: f, width: this.size.width, height: this.size.height }, isResizing: !0, backgroundStyle: za(za({}, this.state.backgroundStyle), { cursor: this.window.getComputedStyle(n.target).cursor || 'auto', }), direction: a, flexBasis: h, } this.setState(x) } }), (t.prototype.onMouseMove = function (n) { if (!(!this.state.isResizing || !this.resizable || !this.window)) { if (this.window.TouchEvent && $g(n)) try { n.preventDefault(), n.stopPropagation() } catch (fe) {} var a = this.props, l = a.maxWidth, f = a.maxHeight, g = a.minWidth, h = a.minHeight, _ = $g(n) ? n.touches[0].clientX : n.clientX, b = $g(n) ? n.touches[0].clientY : n.clientY, S = this.state, x = S.direction, k = S.original, D = S.width, M = S.height, P = this.getParentSize(), R = QO(P, this.window.innerWidth, this.window.innerHeight, l, f, g, h) ;(l = R.maxWidth), (f = R.maxHeight), (g = R.minWidth), (h = R.minHeight) var j = this.calculateNewSizeFromDirection(_, b), L = j.newHeight, H = j.newWidth, U = this.calculateNewMaxFromBoundary(l, f) this.props.snap && this.props.snap.x && (H = Ab(H, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (L = Ab(L, this.props.snap.y, this.props.snapGap)) var te = this.calculateNewSizeFromAspectRatio( H, L, { width: U.maxWidth, height: U.maxHeight }, { width: g, height: h } ) if (((H = te.newWidth), (L = te.newHeight), this.props.grid)) { var ie = Mb(H, this.props.grid[0]), ae = Mb(L, this.props.grid[1]), de = this.props.snapGap || 0 ;(H = de === 0 || Math.abs(ie - H) <= de ? ie : H), (L = de === 0 || Math.abs(ae - L) <= de ? ae : L) } var ye = { width: H - k.width, height: L - k.height } if (D && typeof D == 'string') { if (or(D, '%')) { var me = (H / P.width) * 100 H = me + '%' } else if (or(D, 'vw')) { var De = (H / this.window.innerWidth) * 100 H = De + 'vw' } else if (or(D, 'vh')) { var se = (H / this.window.innerHeight) * 100 H = se + 'vh' } } if (M && typeof M == 'string') { if (or(M, '%')) { var me = (L / P.height) * 100 L = me + '%' } else if (or(M, 'vw')) { var De = (L / this.window.innerWidth) * 100 L = De + 'vw' } else if (or(M, 'vh')) { var se = (L / this.window.innerHeight) * 100 L = se + 'vh' } } var oe = { width: this.createSizeForCssProperty(H, 'width'), height: this.createSizeForCssProperty(L, 'height'), } this.flexDir === 'row' ? (oe.flexBasis = oe.width) : this.flexDir === 'column' && (oe.flexBasis = oe.height), this.setState(oe), this.props.onResize && this.props.onResize(n, x, this.resizable, ye) } }), (t.prototype.onMouseUp = function (n) { var a = this.state, l = a.isResizing, f = a.direction, g = a.original if (!(!l || !this.resizable)) { var h = { width: this.size.width - g.width, height: this.size.height - g.height } this.props.onResizeStop && this.props.onResizeStop(n, f, this.resizable, h), this.props.size && this.setState(this.props.size), this.unbindEvents(), this.setState({ isResizing: !1, backgroundStyle: za(za({}, this.state.backgroundStyle), { cursor: 'auto' }), }) } }), (t.prototype.updateSize = function (n) { this.setState({ width: n.width, height: n.height }) }), (t.prototype.renderResizer = function () { var n = this, a = this.props, l = a.enable, f = a.handleStyles, g = a.handleClasses, h = a.handleWrapperStyle, _ = a.handleWrapperClass, b = a.handleComponent if (!l) return null var S = Object.keys(l).map(function (x) { return l[x] !== !1 ? m.createElement( GO, { key: x, direction: x, onResizeStart: n.onResizeStart, replaceStyles: f && f[x], className: g && g[x], }, b && b[x] ? b[x] : null ) : null }) return m.createElement('div', { className: _, style: h }, S) }), (t.prototype.render = function () { var n = this, a = Object.keys(this.props).reduce(function (g, h) { return JO.indexOf(h) !== -1 || (g[h] = n.props[h]), g }, {}), l = za( za( za({ position: 'relative', userSelect: this.state.isResizing ? 'none' : 'auto' }, this.props.style), this.sizeStyle ), { maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight, minWidth: this.props.minWidth, minHeight: this.props.minHeight, boxSizing: 'border-box', flexShrink: 0, } ) this.state.flexBasis && (l.flexBasis = this.state.flexBasis) var f = this.props.as || 'div' return m.createElement( f, za({ ref: this.ref, style: l, className: this.props.className }, a), this.state.isResizing && m.createElement('div', { style: this.state.backgroundStyle }), this.props.children, this.renderResizer() ) }), (t.defaultProps = { as: 'div', onResizeStart: function () {}, onResize: function () {}, onResizeStop: function () {}, enable: { top: !0, right: !0, bottom: !0, left: !0, topRight: !0, bottomRight: !0, bottomLeft: !0, topLeft: !0, }, style: {}, grid: [1, 1], lockAspectRatio: !1, lockAspectRatioExtraWidth: 0, lockAspectRatioExtraHeight: 0, scale: 1, resizeRatio: 1, snapGap: 0, }), t ) })(m.PureComponent) var Cv = function (e, t) { return ( (Cv = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (n, a) { n.__proto__ = a }) || function (n, a) { for (var l in a) a.hasOwnProperty(l) && (n[l] = a[l]) }), Cv(e, t) ) } function eT(e, t) { Cv(e, t) function n() { this.constructor = e } e.prototype = t === null ? Object.create(t) : ((n.prototype = t.prototype), new n()) } var Jn = function () { return ( (Jn = Object.assign || function (t) { for (var n, a = 1, l = arguments.length; a < l; a++) { n = arguments[a] for (var f in n) Object.prototype.hasOwnProperty.call(n, f) && (t[f] = n[f]) } return t }), Jn.apply(this, arguments) ) } function tT(e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } var nT = UO(), rT = { width: 'auto', height: 'auto', display: 'inline-block', position: 'absolute', top: 0, left: 0 }, iT = function (e) { return { bottom: e, bottomLeft: e, bottomRight: e, left: e, right: e, top: e, topLeft: e, topRight: e } }, aT = (function (e) { eT(t, e) function t(n) { var a = e.call(this, n) || this return ( (a.resizingPosition = { x: 0, y: 0 }), (a.offsetFromParent = { left: 0, top: 0 }), (a.resizableElement = { current: null }), (a.originalPosition = { x: 0, y: 0 }), (a.refDraggable = function (l) { l && (a.draggable = l) }), (a.refResizable = function (l) { l && ((a.resizable = l), (a.resizableElement.current = l.resizable)) }), (a.state = { resizing: !1, bounds: { top: 0, right: 0, bottom: 0, left: 0 }, maxWidth: n.maxWidth, maxHeight: n.maxHeight, }), (a.onResizeStart = a.onResizeStart.bind(a)), (a.onResize = a.onResize.bind(a)), (a.onResizeStop = a.onResizeStop.bind(a)), (a.onDragStart = a.onDragStart.bind(a)), (a.onDrag = a.onDrag.bind(a)), (a.onDragStop = a.onDragStop.bind(a)), (a.getMaxSizesFromProps = a.getMaxSizesFromProps.bind(a)), a ) } return ( (t.prototype.componentDidMount = function () { this.updateOffsetFromParent() var n = this.offsetFromParent, a = n.left, l = n.top, f = this.getDraggablePosition(), g = f.x, h = f.y this.draggable.setState({ x: g - a, y: h - l }), this.forceUpdate() }), (t.prototype.getDraggablePosition = function () { var n = this.draggable.state, a = n.x, l = n.y return { x: a, y: l } }), (t.prototype.getParent = function () { return this.resizable && this.resizable.parentNode }), (t.prototype.getParentSize = function () { return this.resizable.getParentSize() }), (t.prototype.getMaxSizesFromProps = function () { var n = typeof this.props.maxWidth == 'undefined' ? Number.MAX_SAFE_INTEGER : this.props.maxWidth, a = typeof this.props.maxHeight == 'undefined' ? Number.MAX_SAFE_INTEGER : this.props.maxHeight return { maxWidth: n, maxHeight: a } }), (t.prototype.getSelfElement = function () { return this.resizable && this.resizable.resizable }), (t.prototype.getOffsetHeight = function (n) { var a = this.props.scale switch (this.props.bounds) { case 'window': return window.innerHeight / a case 'body': return document.body.offsetHeight / a default: return n.offsetHeight } }), (t.prototype.getOffsetWidth = function (n) { var a = this.props.scale switch (this.props.bounds) { case 'window': return window.innerWidth / a case 'body': return document.body.offsetWidth / a default: return n.offsetWidth } }), (t.prototype.onDragStart = function (n, a) { this.props.onDragStart && this.props.onDragStart(n, a) var l = this.getDraggablePosition() if (((this.originalPosition = l), !!this.props.bounds)) { var f = this.getParent(), g = this.props.scale, h if (this.props.bounds === 'parent') h = f else if (this.props.bounds === 'body') { var _ = f.getBoundingClientRect(), b = _.left, S = _.top, x = document.body.getBoundingClientRect(), k = -(b - f.offsetLeft * g - x.left) / g, D = -(S - f.offsetTop * g - x.top) / g, M = (document.body.offsetWidth - this.resizable.size.width * g) / g + k, P = (document.body.offsetHeight - this.resizable.size.height * g) / g + D return this.setState({ bounds: { top: D, right: M, bottom: P, left: k } }) } else if (this.props.bounds === 'window') { if (!this.resizable) return var R = f.getBoundingClientRect(), j = R.left, L = R.top, H = -(j - f.offsetLeft * g) / g, U = -(L - f.offsetTop * g) / g, M = (window.innerWidth - this.resizable.size.width * g) / g + H, P = (window.innerHeight - this.resizable.size.height * g) / g + U return this.setState({ bounds: { top: U, right: M, bottom: P, left: H } }) } else typeof this.props.bounds == 'string' ? (h = document.querySelector(this.props.bounds)) : this.props.bounds instanceof HTMLElement && (h = this.props.bounds) if (!(!(h instanceof HTMLElement) || !(f instanceof HTMLElement))) { var te = h.getBoundingClientRect(), ie = te.left, ae = te.top, de = f.getBoundingClientRect(), ye = de.left, me = de.top, De = (ie - ye) / g, se = ae - me if (this.resizable) { this.updateOffsetFromParent() var oe = this.offsetFromParent this.setState({ bounds: { top: se - oe.top, right: De + (h.offsetWidth - this.resizable.size.width) - oe.left / g, bottom: se + (h.offsetHeight - this.resizable.size.height) - oe.top, left: De - oe.left / g, }, }) } } } }), (t.prototype.onDrag = function (n, a) { if (this.props.onDrag) { var l = this.offsetFromParent, f = l.left, g = l.top if (!this.props.dragAxis || this.props.dragAxis === 'both') return this.props.onDrag(n, Jn(Jn({}, a), { x: a.x - f, y: a.y - g })) if (this.props.dragAxis === 'x') return this.props.onDrag(n, Jn(Jn({}, a), { x: a.x + f, y: this.originalPosition.y + g, deltaY: 0 })) if (this.props.dragAxis === 'y') return this.props.onDrag(n, Jn(Jn({}, a), { x: this.originalPosition.x + f, y: a.y + g, deltaX: 0 })) } }), (t.prototype.onDragStop = function (n, a) { if (this.props.onDragStop) { var l = this.offsetFromParent, f = l.left, g = l.top if (!this.props.dragAxis || this.props.dragAxis === 'both') return this.props.onDragStop(n, Jn(Jn({}, a), { x: a.x + f, y: a.y + g })) if (this.props.dragAxis === 'x') return this.props.onDragStop( n, Jn(Jn({}, a), { x: a.x + f, y: this.originalPosition.y + g, deltaY: 0 }) ) if (this.props.dragAxis === 'y') return this.props.onDragStop( n, Jn(Jn({}, a), { x: this.originalPosition.x + f, y: a.y + g, deltaX: 0 }) ) } }), (t.prototype.onResizeStart = function (n, a, l) { n.stopPropagation(), this.setState({ resizing: !0 }) var f = this.props.scale, g = this.offsetFromParent, h = this.getDraggablePosition() if ( ((this.resizingPosition = { x: h.x + g.left, y: h.y + g.top }), (this.originalPosition = h), this.props.bounds) ) { var _ = this.getParent(), b = void 0 this.props.bounds === 'parent' ? (b = _) : this.props.bounds === 'body' ? (b = document.body) : this.props.bounds === 'window' ? (b = window) : typeof this.props.bounds == 'string' ? (b = document.querySelector(this.props.bounds)) : this.props.bounds instanceof HTMLElement && (b = this.props.bounds) var S = this.getSelfElement() if (S instanceof Element && (b instanceof HTMLElement || b === window) && _ instanceof HTMLElement) { var x = this.getMaxSizesFromProps(), k = x.maxWidth, D = x.maxHeight, M = this.getParentSize() if (k && typeof k == 'string') if (k.endsWith('%')) { var P = Number(k.replace('%', '')) / 100 k = M.width * P } else k.endsWith('px') && (k = Number(k.replace('px', ''))) if (D && typeof D == 'string') if (D.endsWith('%')) { var P = Number(D.replace('%', '')) / 100 D = M.width * P } else D.endsWith('px') && (D = Number(D.replace('px', ''))) var R = S.getBoundingClientRect(), j = R.left, L = R.top, H = this.props.bounds === 'window' ? { left: 0, top: 0 } : b.getBoundingClientRect(), U = H.left, te = H.top, ie = this.getOffsetWidth(b), ae = this.getOffsetHeight(b), de = a.toLowerCase().endsWith('left'), ye = a.toLowerCase().endsWith('right'), me = a.startsWith('top'), De = a.startsWith('bottom') if ((de || me) && this.resizable) { var se = (j - U) / f + this.resizable.size.width this.setState({ maxWidth: se > Number(k) ? k : se }) } if (ye || (this.props.lockAspectRatio && !de && !me)) { var se = ie + (U - j) / f this.setState({ maxWidth: se > Number(k) ? k : se }) } if ((me || de) && this.resizable) { var se = (L - te) / f + this.resizable.size.height this.setState({ maxHeight: se > Number(D) ? D : se }) } if (De || (this.props.lockAspectRatio && !me && !de)) { var se = ae + (te - L) / f this.setState({ maxHeight: se > Number(D) ? D : se }) } } } else this.setState({ maxWidth: this.props.maxWidth, maxHeight: this.props.maxHeight }) this.props.onResizeStart && this.props.onResizeStart(n, a, l) }), (t.prototype.onResize = function (n, a, l, f) { var g = { x: this.originalPosition.x, y: this.originalPosition.y }, h = -f.width, _ = -f.height, b = ['top', 'left', 'topLeft', 'bottomLeft', 'topRight'] b.indexOf(a) !== -1 && (a === 'bottomLeft' ? (g.x += h) : (a === 'topRight' || (g.x += h), (g.y += _))), (g.x !== this.draggable.state.x || g.y !== this.draggable.state.y) && this.draggable.setState(g), this.updateOffsetFromParent() var S = this.offsetFromParent, x = this.getDraggablePosition().x + S.left, k = this.getDraggablePosition().y + S.top ;(this.resizingPosition = { x, y: k }), this.props.onResize && this.props.onResize(n, a, l, f, { x, y: k }) }), (t.prototype.onResizeStop = function (n, a, l, f) { this.setState({ resizing: !1 }) var g = this.getMaxSizesFromProps(), h = g.maxWidth, _ = g.maxHeight this.setState({ maxWidth: h, maxHeight: _ }), this.props.onResizeStop && this.props.onResizeStop(n, a, l, f, this.resizingPosition) }), (t.prototype.updateSize = function (n) { this.resizable && this.resizable.updateSize({ width: n.width, height: n.height }) }), (t.prototype.updatePosition = function (n) { this.draggable.setState(n) }), (t.prototype.updateOffsetFromParent = function () { var n = this.props.scale, a = this.getParent(), l = this.getSelfElement() if (!a || l === null) return { top: 0, left: 0 } var f = a.getBoundingClientRect(), g = f.left, h = f.top, _ = l.getBoundingClientRect(), b = this.getDraggablePosition(), S = a.scrollLeft, x = a.scrollTop this.offsetFromParent = { left: _.left - g + S - b.x * n, top: _.top - h + x - b.y * n } }), (t.prototype.render = function () { var n = this.props, a = n.disableDragging, l = n.style, f = n.dragHandleClassName, g = n.position, h = n.onMouseDown, _ = n.onMouseUp, b = n.dragAxis, S = n.dragGrid, x = n.bounds, k = n.enableUserSelectHack, D = n.cancel, M = n.children, P = n.onResizeStart, R = n.onResize, j = n.onResizeStop, L = n.onDragStart, H = n.onDrag, U = n.onDragStop, te = n.resizeHandleStyles, ie = n.resizeHandleClasses, ae = n.resizeHandleComponent, de = n.enableResizing, ye = n.resizeGrid, me = n.resizeHandleWrapperClass, De = n.resizeHandleWrapperStyle, se = n.scale, oe = n.allowAnyClick, fe = tT(n, [ 'disableDragging', 'style', 'dragHandleClassName', 'position', 'onMouseDown', 'onMouseUp', 'dragAxis', 'dragGrid', 'bounds', 'enableUserSelectHack', 'cancel', 'children', 'onResizeStart', 'onResize', 'onResizeStop', 'onDragStart', 'onDrag', 'onDragStop', 'resizeHandleStyles', 'resizeHandleClasses', 'resizeHandleComponent', 'enableResizing', 'resizeGrid', 'resizeHandleWrapperClass', 'resizeHandleWrapperStyle', 'scale', 'allowAnyClick', ]), Oe = this.props.default ? Jn({}, this.props.default) : void 0 delete fe.default var Ve = a || f ? { cursor: 'auto' } : { cursor: 'move' }, Qe = Jn(Jn(Jn({}, rT), Ve), l), ft = this.offsetFromParent, Ot = ft.left, Nt = ft.top, Ct g && (Ct = { x: g.x - Ot, y: g.y - Nt }) var Ge = this.state.resizing ? void 0 : Ct, Xe = this.state.resizing ? 'both' : b return (0, m.createElement)( nT, { ref: this.refDraggable, handle: f ? '.'.concat(f) : void 0, defaultPosition: Oe, onMouseDown: h, onMouseUp: _, onStart: this.onDragStart, onDrag: this.onDrag, onStop: this.onDragStop, axis: Xe, disabled: a, grid: S, bounds: x ? this.state.bounds : void 0, position: Ge, enableUserSelectHack: k, cancel: D, scale: se, allowAnyClick: oe, nodeRef: this.resizableElement, }, (0, m.createElement)( ZO, Jn({}, fe, { ref: this.refResizable, defaultSize: Oe, size: this.props.size, enable: typeof de == 'boolean' ? iT(de) : de, onResizeStart: this.onResizeStart, onResize: this.onResize, onResizeStop: this.onResizeStop, style: Qe, minWidth: this.props.minWidth, minHeight: this.props.minHeight, maxWidth: this.state.resizing ? this.state.maxWidth : this.props.maxWidth, maxHeight: this.state.resizing ? this.state.maxHeight : this.props.maxHeight, grid: ye, handleWrapperClass: me, handleWrapperStyle: De, lockAspectRatio: this.props.lockAspectRatio, lockAspectRatioExtraWidth: this.props.lockAspectRatioExtraWidth, lockAspectRatioExtraHeight: this.props.lockAspectRatioExtraHeight, handleStyles: te, handleClasses: ie, handleComponent: ae, scale: this.props.scale, }), M ) ) }), (t.defaultProps = { maxWidth: Number.MAX_SAFE_INTEGER, maxHeight: Number.MAX_SAFE_INTEGER, scale: 1, onResizeStart: function () {}, onResize: function () {}, onResizeStop: function () {}, onDragStart: function () {}, onDrag: function () {}, onDragStop: function () {}, }), t ) })(m.PureComponent), oT = 300, sT = 400, lT = (0, m.memo)(function (e) { var t = e.children, n = e.direction, a = e.resize, l = e.style, f = e.position, g = e.onPositionChange, h = e.size, _ = e.defaultSize, b = e.defaultPosition, S = e.minWidth, x = S === void 0 ? 280 : S, k = e.minHeight, D = k === void 0 ? 200 : k, M = e.prefixCls, P = e.canResizing, R = Rb(M), j = R.styles, L = (0, m.useMemo)( function () { return P ? { right: j.rightHandle, left: j.leftHandle, top: j.topHandle, bottom: j.bottomHandle } : {} }, [P, n] ), H = (0, m.useMemo)( function () { return P ? a : hi()( { top: !0, bottom: !0, right: !0, left: !0, topRight: !0, bottomRight: !0, bottomLeft: !0, topLeft: !0, }, a ) }, [P, a] ), U = hi()({ width: sT, height: oT }, _), te = hi()({ x: 100, y: 100 }, b), ie = { minWidth: Math.max(x, 0), minHeight: Math.max(D, 0), defaultSize: U, size: h, style: l } return (0, at.jsx)( aT, hi()( hi()( { position: f, resizeHandleClasses: L, default: hi()(hi()({}, te), U), onDragStop: function (de, ye) { g == null || g({ x: ye.x, y: ye.y }) }, bound: 'parent', enableResizing: H, }, ie ), {}, { className: j.float, children: t } ) ) }), jb = (0, m.memo)(function (e) { var t = e.children, n = e.className, a = e.mode, l = e.placement, f = l === void 0 ? 'right' : l, g = e.resize, h = e.style, _ = e.position, b = e.onPositionChange, S = e.size, x = e.defaultSize, k = e.defaultPosition, D = e.minWidth, M = e.minHeight, P = e.onSizeChange, R = e.onSizeDragging, j = e.expandable, L = j === void 0 ? !0 : j, H = e.isExpand, U = e.onExpandChange, te = 'draggable-panel' switch (a) { case 'fixed': default: return (0, at.jsx)(HO, { prefixCls: te, size: S, defaultSize: x, onSizeDragging: R, onSizeChange: P, minHeight: M, minWidth: D, resize: g, onExpandChange: U, expandable: L, isExpand: H, className: n, placement: f, style: h, children: t }) case 'float': return (0, at.jsx)(lT, { prefixCls: te, defaultPosition: k, position: _, onPositionChange: b, minHeight: M, minWidth: D, defaultSize: x, size: S, onSizeDragging: R, onSizeChange: P, resize: g, canResizing: g !== !1, className: n, style: h, children: t }) } }), cT = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z', }, }, ], }, name: 'bold', theme: 'outlined', }, uT = cT, zb = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: uT })) } zb.displayName = 'BoldOutlined' var dT = m.forwardRef(zb), fT = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z', }, }, ], }, name: 'github', theme: 'outlined', }, pT = fT, Lb = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: pT })) } Lb.displayName = 'GithubOutlined' var gT = m.forwardRef(Lb), mT = () => { const [e, t] = m.useState(!1) return ( m.useEffect(() => { t(sC()) }, []), e ) } function hT(e) { let { className: t, direction: n, index: a, marginDirection: l, children: f, split: g, wrap: h } = e const { horizontalSize: _, verticalSize: b, latestIndex: S, supportFlexGap: x } = m.useContext(Fb) let k = {} return ( x || (n === 'vertical' ? a < S && (k = { marginBottom: _ / (g ? 2 : 1) }) : (k = Object.assign(Object.assign({}, a < S && { [l]: _ / (g ? 2 : 1) }), h && { paddingBottom: b }))), f == null ? null : m.createElement( m.Fragment, null, m.createElement('div', { className: t, style: k }, f), a < S && g && m.createElement('span', { className: `${t}-split`, style: k }, g) ) ) } var vT = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const Fb = m.createContext({ latestIndex: 0, horizontalSize: 0, verticalSize: 0, supportFlexGap: !1 }), _T = { small: 8, middle: 16, large: 24 } function yT(e) { return typeof e == 'string' ? _T[e] : e || 0 } const $b = (e) => { const { getPrefixCls: t, space: n, direction: a } = m.useContext(Lt), { size: l = (n == null ? void 0 : n.size) || 'small', align: f, className: g, rootClassName: h, children: _, direction: b = 'horizontal', prefixCls: S, split: x, style: k, wrap: D = !1, } = e, M = vT(e, [ 'size', 'align', 'className', 'rootClassName', 'children', 'direction', 'prefixCls', 'split', 'style', 'wrap', ]), P = mT(), [R, j] = m.useMemo(() => (Array.isArray(l) ? l : [l, l]).map((fe) => yT(fe)), [l]), L = fo(_, { keepEmpty: !0 }), H = f === void 0 && b === 'horizontal' ? 'center' : f, U = t('space', S), [te, ie] = i0(U), ae = bt()(U, ie, `${U}-${b}`, { [`${U}-rtl`]: a === 'rtl', [`${U}-align-${H}`]: H }, g, h), de = `${U}-item`, ye = a === 'rtl' ? 'marginLeft' : 'marginRight' let me = 0 const De = L.map((fe, Oe) => { fe != null && (me = Oe) const Ve = (fe && fe.key) || `${de}-${Oe}` return m.createElement( hT, { className: de, key: Ve, direction: b, index: Oe, marginDirection: ye, split: x, wrap: D }, fe ) }), se = m.useMemo( () => ({ horizontalSize: R, verticalSize: j, latestIndex: me, supportFlexGap: P }), [R, j, me, P] ) if (L.length === 0) return null const oe = {} return ( D && ((oe.flexWrap = 'wrap'), P || (oe.marginBottom = -j)), P && ((oe.columnGap = R), (oe.rowGap = j)), te( m.createElement( 'div', Object.assign({ className: ae, style: Object.assign(Object.assign({}, oe), k) }, M), m.createElement(Fb.Provider, { value: se }, De) ) ) ) } $b.Compact = ix var bT = $b function ST() { const [, e] = m.useReducer((t) => t + 1, 0) return e } const wT = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'], xT = (e) => ({ xs: `(max-width: ${e.screenXSMax}px)`, sm: `(min-width: ${e.screenSM}px)`, md: `(min-width: ${e.screenMD}px)`, lg: `(min-width: ${e.screenLG}px)`, xl: `(min-width: ${e.screenXL}px)`, xxl: `(min-width: ${e.screenXXL}px)`, }), CT = (e) => { const t = e, n = [].concat(wT).reverse() return ( n.forEach((a, l) => { const f = a.toUpperCase(), g = `screen${f}Min`, h = `screen${f}` if (!(t[g] <= t[h])) throw new Error(`${g}<=${h} fails : !(${t[g]}<=${t[h]})`) if (l < n.length - 1) { const _ = `screen${f}Max` if (!(t[h] <= t[_])) throw new Error(`${h}<=${_} fails : !(${t[h]}<=${t[_]})`) const S = `screen${n[l + 1].toUpperCase()}Min` if (!(t[_] <= t[S])) throw new Error(`${_}<=${S} fails : !(${t[_]}<=${t[S]})`) } }), e ) } function ET() { const [, e] = Es(), t = xT(CT(e)) return m.useMemo(() => { const n = new Map() let a = -1, l = {} return { matchHandlers: {}, dispatch(f) { return (l = f), n.forEach((g) => g(l)), n.size >= 1 }, subscribe(f) { return n.size || this.register(), (a += 1), n.set(a, f), f(l), a }, unsubscribe(f) { n.delete(f), n.size || this.unregister() }, unregister() { Object.keys(t).forEach((f) => { const g = t[f], h = this.matchHandlers[g] h == null || h.mql.removeListener(h == null ? void 0 : h.listener) }), n.clear() }, register() { Object.keys(t).forEach((f) => { const g = t[f], h = (b) => { let { matches: S } = b this.dispatch(Object.assign(Object.assign({}, l), { [f]: S })) }, _ = window.matchMedia(g) _.addListener(h), (this.matchHandlers[g] = { mql: _, listener: h }), h(_) }) }, responsiveMap: t, } }, [e]) } function kT() { let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0 const t = (0, m.useRef)({}), n = ST(), a = ET() return ( (0, m.useEffect)(() => { const l = a.subscribe((f) => { ;(t.current = f), e && n() }) return () => a.unsubscribe(l) }, []), t.current ) } var OT = kT function TT() { return OT() } var DT = { useBreakpoint: TT }, Hb = function () { var t = DT.useBreakpoint() return (0, m.useMemo)( function () { return Pp(t) }, [t] ) }, PT = { light: (0, at.jsx)('span', { role: 'img', className: 'anticon anticon-github', children: (0, at.jsx)('svg', { viewBox: '0 0 16 16', width: '1em', height: '1em', fill: 'currentColor', children: (0, at.jsx)('path', { d: 'M8 13a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1ZM8 3a1 1 0 0 1-1-1V1a1 1 0 1 1 2 0v1a1 1 0 0 1-1 1Zm7 4a1 1 0 1 1 0 2h-1a1 1 0 1 1 0-2h1ZM3 8a1 1 0 0 1-1 1H1a1 1 0 1 1 0-2h1a1 1 0 0 1 1 1Zm9.95 3.536.707.707a1 1 0 0 1-1.414 1.414l-.707-.707a1 1 0 0 1 1.414-1.414Zm-9.9-7.072-.707-.707a1 1 0 0 1 1.414-1.414l.707.707A1 1 0 0 1 3.05 4.464Zm9.9 0a1 1 0 0 1-1.414-1.414l.707-.707a1 1 0 0 1 1.414 1.414l-.707.707Zm-9.9 7.072a1 1 0 0 1 1.414 1.414l-.707.707a1 1 0 0 1-1.414-1.414l.707-.707ZM8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm0 6.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z', }), }), }), dark: (0, at.jsx)('span', { role: 'img', className: 'anticon anticon-github', children: (0, at.jsx)('svg', { viewBox: '0 0 16 16', width: '1em', height: '1em', fill: 'currentColor', children: (0, at.jsx)('path', { d: 'M8.218 1.455c3.527.109 6.327 3.018 6.327 6.545 0 3.6-2.945 6.545-6.545 6.545a6.562 6.562 0 0 1-6.036-4h.218c3.6 0 6.545-2.945 6.545-6.545 0-.91-.182-1.745-.509-2.545m0-1.455c-.473 0-.909.218-1.2.618-.29.4-.327.946-.145 1.382.254.655.4 1.31.4 2 0 2.8-2.291 5.09-5.091 5.09h-.218c-.473 0-.91.22-1.2.62-.291.4-.328.945-.146 1.38C1.891 14.074 4.764 16 8 16c4.4 0 8-3.6 8-8a7.972 7.972 0 0 0-7.745-8h-.037Z', }), }), }), }, IT = 'https://gw.alipayobjects.com/zos/bmw-prod/9ecb2822-1592-4cb0-a087-ce0097fef2ca.svg', RT = 'https://gw.alipayobjects.com/zos/bmw-prod/e146116d-c65a-4306-a3d2-bb8d05e1c49b.svg', MT = (0, at.jsx)('span', { role: 'img', className: 'anticon civitai', children: (0, at.jsx)('svg', { viewBox: '0 0 16 16', width: '1em', height: '1em', fill: 'currentColor', children: (0, at.jsx)('path', { d: 'M2 4.5L8 1l6 3.5v7L8 15l-6-3.5v-7zm6-1.194L3.976 5.653v4.694L8 12.694l4.024-2.347V5.653L8 3.306zm0 1.589l2.662 1.552v.824H9.25L8 6.54l-1.25.73v1.458L8 9.46l1.25-.73h1.412v.824L8 11.105 5.338 9.553V6.447L8 4.895z', }), }), }), AT = function (t) { var n = t.size, a = n === void 0 ? 20 : n, l = t.style, f = t.themeMode return (0, at.jsx)('img', { src: f === 'dark' ? IT : RT, alt: 'logo', style: hi()({ height: a }, l) }) }, NT = m.memo(AT), Bb, jT = Ni.div( Bb || (Bb = Sn()([ ` padding: 16px 24px; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; #tabs.header { .tab-nav { border: none !important; margin: 0 !important; } button { cursor: pointer; border: none !important; background: transparent !important; flex: none; transition: all 0.2s ease-in-out; padding: 8px !important; border-radius: 4px !important; margin: 0 !important; flex: 0 !important; &:hover { border: none !important; color: var(--color-text) !important; background: var(--color-fill-tertiary) !important; flex: none; } &.selected { border: none !important; background: transparent !important; color: var(--color-text) !important; flex: none; font-weight: 600; } } } `, ])) ), zT = function (t) { var n = t.children, a = t.themeMode, l = Hb(), f = l.mobile, g = (0, m.useState)(!f), h = T()(g, 2), _ = h[0], b = h[1], S = (0, m.useCallback)( function () { var x = a === 'light' ? 'dark' : 'light', k = Kh.parseUrl(window.location.href) ;(k.query.__theme = x), window.location.replace(Kh.stringifyUrl(k)) }, [a] ) return (0, at.jsx)(jb, { placement: 'top', defaultSize: { height: 'auto' }, isExpand: _, onExpandChange: b, children: (0, at.jsxs)(jT, { id: 'header', style: { flexDirection: f ? 'column' : 'row' }, children: [ (0, at.jsx)('a', { href: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme', target: '_blank', rel: 'noreferrer', children: (0, at.jsx)(NT, { themeMode: a }), }), n, (0, at.jsxs)(bT.Compact, { children: [ (0, at.jsx)('a', { href: 'https://civitai.com/', target: '_blank', rel: 'noreferrer', children: (0, at.jsx)(Jl, { title: 'Civitai', icon: MT }), }), (0, at.jsx)('a', { href: 'https://www.birme.net/?target_width=512&target_height=512', target: '_blank', rel: 'noreferrer', children: (0, at.jsx)(Jl, { title: 'Birme', icon: (0, at.jsx)(dT, {}) }), }), (0, at.jsx)('a', { href: 'https://github.com/canisminor1990/sd-web-ui-kitchen-theme', target: '_blank', rel: 'noreferrer', children: (0, at.jsx)(Jl, { title: 'Github', icon: (0, at.jsx)(gT, {}) }), }), (0, at.jsx)(Jl, { title: 'Switch Theme', icon: PT[a], onClick: S }), ], }), ], }), }) }, LT = m.memo(zT), FT = dt(2486), Ub, $T = FT.V, HT = Ni.div( Ub || (Ub = Sn()([ ` /* Styles for the input */ .ReactTags__editTagInput, .ReactTags__tagInput { display: inline-block; margin: 0; width: -webkit-fill-available; input, input:focus { display: block; position: relative; margin: 0; width: -webkit-fill-available; border: var(--input-border-width) solid var(--input-border-color); border-radius: var(--input-radius); background: var(--input-background-fill); padding: var(--input-padding); color: var(--body-text-color); font-weight: var(--input-text-weight); font-size: var(--input-text-size); line-height: var(--line-sm); outline: none; } } /* Styles for selected tags */ .ReactTags__tags.react-tags-wrapper { display: flex; flex-direction: column; gap: 4px; } .ReactTags__selected { display: flex; flex-wrap: wrap; gap: 4px; span.ReactTags__tag { display: flex; align-items: center; border: var(--button-border-width) solid var(--button-secondary-border-color); border-radius: var(--input-radius); background: var(--button-secondary-background-fill); color: `, `; position: relative; font-weight: var(--input-text-weight); font-size: var(--text-sm); line-height: var(--line-sm); padding: var(--input-padding); &:hover { color: `, `; } } a.ReactTags__remove { color: #aaa; margin-left: 5px; cursor: pointer; } } /* Styles for suggestions */ .ReactTags__suggestions { position: absolute; } ul { list-style-type: none; box-shadow: 0.05em 0.01em 0.5em rgba(0, 0, 0, 0.2); background: white; width: 200px; li { border-bottom: 1px solid #ddd; padding: 5px 10px; margin: 0; &.ReactTags__activeSuggestion { background: #b7cfe0; cursor: pointer; } mark { text-decoration: underline; background: none; font-weight: 600; } } } .ReactTags__remove { border: none; cursor: pointer; background: none; color: white; } `, ])), function (e) { var t = e.type return t === 'positive' ? 'var(--green-9)' : 'var(--magenta-9)' }, function (e) { var t = e.type return t === 'positive' ? 'var(--green-10)' : 'var(--magenta-10)' } ), Wb = { comma: 188, enter: 13 }, BT = [Wb.comma, Wb.enter], UT = function (t) { var n = t.tags, a = t.setTags, l = t.type, f = (0, m.useCallback)( function (b) { a( n.filter(function (S, x) { return x !== b }) ) }, [n] ), g = (0, m.useCallback)( function (b) { a([].concat(ly()(n), [b])) }, [n] ), h = (0, m.useCallback)( function (b, S, x) { var k = n.slice() k.splice(S, 1), k.splice(x, 0, b), a(k) }, [n] ), _ = (0, m.useCallback)( function (b, S) { var x = ly()(n) ;(x[b] = S), a(x) }, [n] ) return (0, at.jsx)(HT, { type: l, children: (0, at.jsx)($T, { tags: n, delimiters: BT, handleDelete: f, handleAddition: g, handleDrag: h, onTagUpdate: _, inputFieldPosition: 'bottom', inline: !0, autocomplete: !0, editable: !0, }), }) }, WT = m.memo(UT), VT = function (t) { var n = _e.convertStr(t), a = _e.convertStr2Array(n).map(function (l) { if (l.includes('<')) return l var f = l .replace(/\s+/g, ' ') .replace(/,|\.\|。/g, ',') .replace(/“|‘|”|"|\/'/g, '') .replace(/, /g, ',') .replace(/,,/g, ',') .replace(/,/g, ', ') return _e.convertStr2Array(f).join(', ') }) return a.map(function (l) { return { id: l, text: l } }) }, Vb, Gb, Xb, GT = Ni.div( Vb || (Vb = Sn()([ ` display: flex; flex-direction: column; gap: 8px; `, ])) ), XT = Ni.div( Gb || (Gb = Sn()([ ` display: flex; gap: 8px; `, ])) ), Kb = Ni.button( Xb || (Xb = Sn()([ ` display: flex; align-items: center; justify-content: center; border: var(--button-border-width) solid var(--button-secondary-border-color); border-radius: var(--input-radius); background: var(--button-secondary-background-fill); position: relative; font-weight: var(--input-text-weight); font-size: var(--input-text-size); line-height: var(--line-sm); padding: var(--input-padding); cursor: pointer; flex: 1; `, ])) ), KT = function (t) { var n = t.type, a = (0, m.useState)([]), l = T()(a, 2), f = l[0], g = l[1], h = n === 'positive' ? "[id$='2img_prompt'] textarea" : "[id$='2img_neg_prompt'] textarea", _ = (0, m.useCallback)(function () { try { var S = get_uiCurrentTabContent().querySelector(h) S && g(VT(S.value)) } catch (x) {} }, []), b = (0, m.useCallback)( function () { try { var S = get_uiCurrentTabContent().querySelector(h) S && (S.value = f .map(function (x) { return x.text }) .join(', ')) } catch (x) {} }, [f] ) return (0, at.jsxs)(GT, { children: [ (0, at.jsx)(WT, { type: n, tags: f, setTags: g }), (0, at.jsxs)(XT, { children: [ (0, at.jsx)(Kb, { title: 'Load Prompt', onClick: _, children: '\u{1F504}' }), (0, at.jsx)(Kb, { title: 'Set Prompt', onClick: b, children: '\u27A1\uFE0F' }), ], }), ], }) }, Yb = m.memo(KT), qb, Qb, YT = Ni.div( qb || (qb = Sn()([ ` display: flex; flex-direction: column; gap: 1em; margin-bottom: 1em; `, ])) ), Jb = Ni.div( Qb || (Qb = Sn()([ ` position: relative; z-index: var(--layer-4); border: solid var(--block-title-border-width) var(--block-title-border-color); border-radius: var(--block-title-radius); background: var(--block-title-background-fill); padding: var(--block-title-padding); color: var(--block-title-text-color); font-weight: var(--block-title-text-weight); font-size: var(--block-title-text-size); line-height: var(--line-sm); margin-bottom: -10px; `, ])) ), qT = function () { return (0, at.jsxs)(YT, { children: [ (0, at.jsx)(Jb, { children: 'Positive' }), (0, at.jsx)(Yb, { type: 'positive' }), (0, at.jsx)(Jb, { children: 'Negative' }), (0, at.jsx)(Yb, { type: 'negative' }), ], }) }, QT = m.memo(qT), Zb, JT = Ni.div( Zb || (Zb = Sn()([ ` padding: 16px; overflow-x: hidden; overflow-y: auto; height: 100%; #quicksettings { width: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: stretch; > div > div > div > label { max-width: 80%; } input[type='color'] { width: 100%; } input[type='number'], textarea { height: 20px !important; padding: 4px; } > * { flex: 1; max-width: unset !important; min-width: unset !important; width: 100%; margin: 0; padding: 0; } span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; } .dropdown-arrow { min-width: 16px; min-height: 16px; } } `, ])) ), ZT = function (t) { var n = t.children, a = t.loading, l = Hb(), f = l.mobile, g = (0, m.useState)(!f), h = T()(g, 2), _ = h[0], b = h[1] return (0, at.jsx)(jb, { placement: 'left', defaultSize: { width: 280 }, isExpand: _, onExpandChange: b, children: (0, at.jsxs)(JT, { children: [!a && (0, at.jsx)(QT, {}), n] }), }) }, eD = m.memo(ZT) const Bg = [ 'blue', 'purple', 'cyan', 'green', 'magenta', 'pink', 'red', 'orange', 'yellow', 'volcano', 'geekblue', 'lime', 'gold', ], tD = Bg.map((e) => `${e}-inverse`), nD = null function Ev(e) { return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(kt(tD), kt(Bg)).includes(e) : Bg.includes(e) } function D5(e) { return nD.includes(e) } function kv(e, t) { return Bg.reduce((n, a) => { const l = e[`${a}1`], f = e[`${a}3`], g = e[`${a}6`], h = e[`${a}7`] return Object.assign( Object.assign({}, n), t(a, { lightColor: l, lightBorderColor: f, darkColor: g, textColor: h }) ) }, {}) } const rD = new cn('antStatusProcessing', { '0%': { transform: 'scale(0.8)', opacity: 0.5 }, '100%': { transform: 'scale(2.4)', opacity: 0 }, }), iD = new cn('antZoomBadgeIn', { '0%': { transform: 'scale(0) translate(50%, -50%)', opacity: 0 }, '100%': { transform: 'scale(1) translate(50%, -50%)' }, }), aD = new cn('antZoomBadgeOut', { '0%': { transform: 'scale(1) translate(50%, -50%)' }, '100%': { transform: 'scale(0) translate(50%, -50%)', opacity: 0 }, }), oD = new cn('antNoWrapperZoomBadgeIn', { '0%': { transform: 'scale(0)', opacity: 0 }, '100%': { transform: 'scale(1)' }, }), sD = new cn('antNoWrapperZoomBadgeOut', { '0%': { transform: 'scale(1)' }, '100%': { transform: 'scale(0)', opacity: 0 }, }), lD = new cn('antBadgeLoadingCircle', { '0%': { transformOrigin: '50%' }, '100%': { transform: 'translate(50%, -50%) rotate(360deg)', transformOrigin: '50%' }, }), cD = (e) => { const { componentCls: t, iconCls: n, antCls: a, badgeFontHeight: l, badgeShadowSize: f, badgeHeightSm: g, motionDurationSlow: h, badgeStatusSize: _, marginXS: b, badgeRibbonOffset: S, } = e, x = `${a}-scroll-number`, k = `${a}-ribbon`, D = `${a}-ribbon-wrapper`, M = kv(e, (R, j) => { let { darkColor: L } = j return { [`${t}-color-${R}`]: { background: L } } }), P = kv(e, (R, j) => { let { darkColor: L } = j return { [`&${k}-color-${R}`]: { background: L, color: L } } }) return { [t]: Object.assign( Object.assign( Object.assign(Object.assign({}, yo(e)), { position: 'relative', display: 'inline-block', width: 'fit-content', lineHeight: 1, [`${t}-count`]: { zIndex: e.badgeZIndex, minWidth: e.badgeHeight, height: e.badgeHeight, color: e.badgeTextColor, fontWeight: e.badgeFontWeight, fontSize: e.badgeFontSize, lineHeight: `${e.badgeHeight}px`, whiteSpace: 'nowrap', textAlign: 'center', background: e.badgeColor, borderRadius: e.badgeHeight / 2, boxShadow: `0 0 0 ${f}px ${e.badgeShadowColor}`, transition: `background ${e.motionDurationMid}`, a: { color: e.badgeTextColor }, 'a:hover': { color: e.badgeTextColor }, 'a:hover &': { background: e.badgeColorHover }, }, [`${t}-count-sm`]: { minWidth: g, height: g, fontSize: e.badgeFontSizeSm, lineHeight: `${g}px`, borderRadius: g / 2, }, [`${t}-multiple-words`]: { padding: `0 ${e.paddingXS}px` }, [`${t}-dot`]: { zIndex: e.badgeZIndex, width: e.badgeDotSize, minWidth: e.badgeDotSize, height: e.badgeDotSize, background: e.badgeColor, borderRadius: '100%', boxShadow: `0 0 0 ${f}px ${e.badgeShadowColor}`, }, [`${t}-dot${x}`]: { transition: `background ${h}` }, [`${t}-count, ${t}-dot, ${x}-custom-component`]: { position: 'absolute', top: 0, insetInlineEnd: 0, transform: 'translate(50%, -50%)', transformOrigin: '100% 0%', [`${n}-spin`]: { animationName: lD, animationDuration: e.motionDurationMid, animationIterationCount: 'infinite', animationTimingFunction: 'linear', }, }, [`&${t}-status`]: { lineHeight: 'inherit', verticalAlign: 'baseline', [`${t}-status-dot`]: { position: 'relative', top: -1, display: 'inline-block', width: _, height: _, verticalAlign: 'middle', borderRadius: '50%', }, [`${t}-status-success`]: { backgroundColor: e.colorSuccess }, [`${t}-status-processing`]: { position: 'relative', color: e.colorPrimary, backgroundColor: e.colorPrimary, '&::after': { position: 'absolute', top: 0, insetInlineStart: 0, width: '100%', height: '100%', borderWidth: f, borderStyle: 'solid', borderColor: 'inherit', borderRadius: '50%', animationName: rD, animationDuration: e.badgeProcessingDuration, animationIterationCount: 'infinite', animationTimingFunction: 'ease-in-out', content: '""', }, }, [`${t}-status-default`]: { backgroundColor: e.colorTextPlaceholder }, [`${t}-status-error`]: { backgroundColor: e.colorError }, [`${t}-status-warning`]: { backgroundColor: e.colorWarning }, [`${t}-status-text`]: { marginInlineStart: b, color: e.colorText, fontSize: e.fontSize }, }, }), M ), { [`${t}-zoom-appear, ${t}-zoom-enter`]: { animationName: iD, animationDuration: e.motionDurationSlow, animationTimingFunction: e.motionEaseOutBack, animationFillMode: 'both', }, [`${t}-zoom-leave`]: { animationName: aD, animationDuration: e.motionDurationSlow, animationTimingFunction: e.motionEaseOutBack, animationFillMode: 'both', }, [`&${t}-not-a-wrapper`]: { [`${t}-zoom-appear, ${t}-zoom-enter`]: { animationName: oD, animationDuration: e.motionDurationSlow, animationTimingFunction: e.motionEaseOutBack, }, [`${t}-zoom-leave`]: { animationName: sD, animationDuration: e.motionDurationSlow, animationTimingFunction: e.motionEaseOutBack, }, [`&:not(${t}-status)`]: { verticalAlign: 'middle' }, [`${x}-custom-component, ${t}-count`]: { transform: 'none' }, [`${x}-custom-component, ${x}`]: { position: 'relative', top: 'auto', display: 'block', transformOrigin: '50% 50%', }, }, [`${x}`]: { overflow: 'hidden', [`${x}-only`]: { position: 'relative', display: 'inline-block', height: e.badgeHeight, transition: `all ${e.motionDurationSlow} ${e.motionEaseOutBack}`, WebkitTransformStyle: 'preserve-3d', WebkitBackfaceVisibility: 'hidden', [`> p${x}-only-unit`]: { height: e.badgeHeight, margin: 0, WebkitTransformStyle: 'preserve-3d', WebkitBackfaceVisibility: 'hidden', }, }, [`${x}-symbol`]: { verticalAlign: 'top' }, }, '&-rtl': { direction: 'rtl', [`${t}-count, ${t}-dot, ${x}-custom-component`]: { transform: 'translate(-50%, -50%)' }, }, } ), [`${D}`]: { position: 'relative' }, [`${k}`]: Object.assign( Object.assign( Object.assign(Object.assign({}, yo(e)), { position: 'absolute', top: b, padding: `0 ${e.paddingXS}px`, color: e.colorPrimary, lineHeight: `${l}px`, whiteSpace: 'nowrap', backgroundColor: e.colorPrimary, borderRadius: e.borderRadiusSM, [`${k}-text`]: { color: e.colorTextLightSolid }, [`${k}-corner`]: { position: 'absolute', top: '100%', width: S, height: S, color: 'currentcolor', border: `${S / 2}px solid`, transform: e.badgeRibbonCornerTransform, transformOrigin: 'top', filter: e.badgeRibbonCornerFilter, }, }), P ), { [`&${k}-placement-end`]: { insetInlineEnd: -S, borderEndEndRadius: 0, [`${k}-corner`]: { insetInlineEnd: 0, borderInlineEndColor: 'transparent', borderBlockEndColor: 'transparent', }, }, [`&${k}-placement-start`]: { insetInlineStart: -S, borderEndStartRadius: 0, [`${k}-corner`]: { insetInlineStart: 0, borderBlockEndColor: 'transparent', borderInlineStartColor: 'transparent', }, }, '&-rtl': { direction: 'rtl' }, } ), } } var e1 = Aa('Badge', (e) => { const { fontSize: t, lineHeight: n, fontSizeSM: a, lineWidth: l, marginXS: f, colorBorderBg: g } = e, h = Math.round(t * n), _ = l, b = 'auto', S = h - 2 * _, x = e.colorBgContainer, k = 'normal', D = a, M = e.colorError, P = e.colorErrorHover, R = t, j = a / 2, L = a, H = a / 2, U = Ri(e, { badgeFontHeight: h, badgeShadowSize: _, badgeZIndex: b, badgeHeight: S, badgeTextColor: x, badgeFontWeight: k, badgeFontSize: D, badgeColor: M, badgeColorHover: P, badgeShadowColor: g, badgeHeightSm: R, badgeDotSize: j, badgeFontSizeSm: L, badgeStatusSize: H, badgeProcessingDuration: '1.2s', badgeRibbonOffset: f, badgeRibbonCornerTransform: 'scaleY(0.75)', badgeRibbonCornerFilter: 'brightness(75%)', }) return [cD(U)] }), uD = (e) => { let { className: t, prefixCls: n, style: a, color: l, children: f, text: g, placement: h = 'end' } = e const { getPrefixCls: _, direction: b } = m.useContext(Lt), S = _('ribbon', n), x = Ev(l, !1), k = bt()(S, `${S}-placement-${h}`, { [`${S}-rtl`]: b === 'rtl', [`${S}-color-${l}`]: x }, t), [D, M] = e1(S), P = {}, R = {} return ( l && !x && ((P.background = l), (R.color = l)), D( m.createElement( 'div', { className: bt()(`${S}-wrapper`, M) }, f, m.createElement( 'div', { className: bt()(k, M), style: Object.assign(Object.assign({}, P), a) }, m.createElement('span', { className: `${S}-text` }, g), m.createElement('div', { className: `${S}-corner`, style: R }) ) ) ) ) } function t1(e) { let { prefixCls: t, value: n, current: a, offset: l = 0 } = e, f return ( l && (f = { position: 'absolute', top: `${l}00%`, left: 0 }), m.createElement('span', { style: f, className: bt()(`${t}-only-unit`, { current: a }) }, n) ) } function dD(e, t, n) { let a = e, l = 0 for (; (a + 10) % 10 !== t; ) (a += n), (l += n) return l } function fD(e) { const { prefixCls: t, count: n, value: a } = e, l = Number(a), f = Math.abs(n), [g, h] = m.useState(l), [_, b] = m.useState(f), S = () => { h(l), b(f) } m.useEffect(() => { const D = setTimeout(() => { S() }, 1e3) return () => { clearTimeout(D) } }, [l]) let x, k if (g === l || Number.isNaN(l) || Number.isNaN(g)) (x = [m.createElement(t1, Object.assign({}, e, { key: l, current: !0 }))]), (k = { transition: 'none' }) else { x = [] const D = l + 10, M = [] for (let j = l; j <= D; j += 1) M.push(j) const P = M.findIndex((j) => j % 10 === g) x = M.map((j, L) => { const H = j % 10 return m.createElement(t1, Object.assign({}, e, { key: j, value: H, offset: L - P, current: L === P })) }) const R = _ < f ? 1 : -1 k = { transform: `translateY(${-dD(g, l, R)}00%)` } } return m.createElement('span', { className: `${t}-only`, style: k, onTransitionEnd: S }, x) } var pD = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n }, gD = m.forwardRef((e, t) => { var { prefixCls: n, count: a, className: l, motionClassName: f, style: g, title: h, show: _, component: b = 'sup', children: S, } = e, x = pD(e, [ 'prefixCls', 'count', 'className', 'motionClassName', 'style', 'title', 'show', 'component', 'children', ]) const { getPrefixCls: k } = m.useContext(Lt), D = k('scroll-number', n), M = Object.assign(Object.assign({}, x), { 'data-show': _, style: g, className: bt()(D, l, f), title: h }) let P = a if (a && Number(a) % 1 === 0) { const R = String(a).split('') P = R.map((j, L) => m.createElement(fD, { prefixCls: D, count: Number(a), value: j, key: R.length - L })) } return ( g && g.borderColor && (M.style = Object.assign(Object.assign({}, g), { boxShadow: `0 0 0 1px ${g.borderColor} inset` })), S ? Hs(S, (R) => ({ className: bt()(`${D}-custom-component`, R == null ? void 0 : R.className, f) })) : m.createElement(b, Object.assign({}, M, { ref: t }), P) ) }), mD = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const n1 = (e) => { var { prefixCls: t, scrollNumberPrefixCls: n, children: a, status: l, text: f, color: g, count: h = null, overflowCount: _ = 99, dot: b = !1, size: S = 'default', title: x, offset: k, style: D, className: M, rootClassName: P, showZero: R = !1, } = e, j = mD(e, [ 'prefixCls', 'scrollNumberPrefixCls', 'children', 'status', 'text', 'color', 'count', 'overflowCount', 'dot', 'size', 'title', 'offset', 'style', 'className', 'rootClassName', 'showZero', ]) const { getPrefixCls: L, direction: H } = m.useContext(Lt), U = L('badge', t), [te, ie] = e1(U), ae = h > _ ? `${_}+` : h, de = ae === '0' || ae === 0, ye = h === null || (de && !R), me = (l != null || g != null) && ye, De = b && !de, se = De ? '' : ae, oe = (0, m.useMemo)(() => (se == null || se === '' || (de && !R)) && !De, [se, de, R, De]), fe = (0, m.useRef)(h) oe || (fe.current = h) const Oe = fe.current, Ve = (0, m.useRef)(se) oe || (Ve.current = se) const Qe = Ve.current, ft = (0, m.useRef)(De) oe || (ft.current = De) const Ot = (0, m.useMemo)(() => { if (!k) return Object.assign({}, D) const xt = { marginTop: k[1] } return ( H === 'rtl' ? (xt.left = parseInt(k[0], 10)) : (xt.right = -parseInt(k[0], 10)), Object.assign(Object.assign({}, xt), D) ) }, [H, k, D]), Nt = x != null ? x : typeof Oe == 'string' || typeof Oe == 'number' ? Oe : void 0, Ct = oe || !f ? null : m.createElement('span', { className: `${U}-status-text` }, f), Ge = !Oe || typeof Oe != 'object' ? void 0 : Hs(Oe, (xt) => ({ style: Object.assign(Object.assign({}, Ot), xt.style) })), Xe = Ev(g, !1), ot = bt()({ [`${U}-status-dot`]: me, [`${U}-status-${l}`]: !!l, [`${U}-color-${g}`]: Xe }), Ye = {} g && !Xe && ((Ye.color = g), (Ye.background = g)) const Te = bt()(U, { [`${U}-status`]: me, [`${U}-not-a-wrapper`]: !a, [`${U}-rtl`]: H === 'rtl' }, M, P, ie) if (!a && me) { const xt = Ot.color return te( m.createElement( 'span', Object.assign({}, j, { className: Te, style: Ot }), m.createElement('span', { className: ot, style: Ye }), f && m.createElement('span', { style: { color: xt }, className: `${U}-status-text` }, f) ) ) } return te( m.createElement( 'span', Object.assign({}, j, { className: Te }), a, m.createElement( So, { visible: !oe, motionName: `${U}-zoom`, motionAppear: !1, motionDeadline: 1e3 }, (xt) => { let { className: et, ref: Ft } = xt const $t = L('scroll-number', n), yt = ft.current, Et = bt()({ [`${U}-dot`]: yt, [`${U}-count`]: !yt, [`${U}-count-sm`]: S === 'small', [`${U}-multiple-words`]: !yt && Qe && Qe.toString().length > 1, [`${U}-status-${l}`]: !!l, [`${U}-color-${g}`]: Xe, }) let Ht = Object.assign({}, Ot) return ( g && !Xe && ((Ht = Ht || {}), (Ht.background = g)), m.createElement( gD, { prefixCls: $t, show: !oe, motionClassName: et, className: Et, count: Qe, title: Nt, style: Ht, key: 'scrollNumber', ref: Ft, }, Ge ) ) } ), Ct ) ) } n1.Ribbon = uD var hD = n1, r1 = (function () { if (typeof Map != 'undefined') return Map function e(t, n) { var a = -1 return ( t.some(function (l, f) { return l[0] === n ? ((a = f), !0) : !1 }), a ) } return (function () { function t() { this.__entries__ = [] } return ( Object.defineProperty(t.prototype, 'size', { get: function () { return this.__entries__.length }, enumerable: !0, configurable: !0, }), (t.prototype.get = function (n) { var a = e(this.__entries__, n), l = this.__entries__[a] return l && l[1] }), (t.prototype.set = function (n, a) { var l = e(this.__entries__, n) ~l ? (this.__entries__[l][1] = a) : this.__entries__.push([n, a]) }), (t.prototype.delete = function (n) { var a = this.__entries__, l = e(a, n) ~l && a.splice(l, 1) }), (t.prototype.has = function (n) { return !!~e(this.__entries__, n) }), (t.prototype.clear = function () { this.__entries__.splice(0) }), (t.prototype.forEach = function (n, a) { a === void 0 && (a = null) for (var l = 0, f = this.__entries__; l < f.length; l++) { var g = f[l] n.call(a, g[1], g[0]) } }), t ) })() })(), Ov = typeof window != 'undefined' && typeof document != 'undefined' && window.document === document, Ug = (function () { return typeof dt.g != 'undefined' && dt.g.Math === Math ? dt.g : typeof self != 'undefined' && self.Math === Math ? self : typeof window != 'undefined' && window.Math === Math ? window : Function('return this')() })(), vD = (function () { return typeof requestAnimationFrame == 'function' ? requestAnimationFrame.bind(Ug) : function (e) { return setTimeout(function () { return e(Date.now()) }, 1e3 / 60) } })(), _D = 2 function yD(e, t) { var n = !1, a = !1, l = 0 function f() { n && ((n = !1), e()), a && h() } function g() { vD(f) } function h() { var _ = Date.now() if (n) { if (_ - l < _D) return a = !0 } else (n = !0), (a = !1), setTimeout(g, t) l = _ } return h } var bD = 20, SD = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'], wD = typeof MutationObserver != 'undefined', xD = (function () { function e() { ;(this.connected_ = !1), (this.mutationEventsAdded_ = !1), (this.mutationsObserver_ = null), (this.observers_ = []), (this.onTransitionEnd_ = this.onTransitionEnd_.bind(this)), (this.refresh = yD(this.refresh.bind(this), bD)) } return ( (e.prototype.addObserver = function (t) { ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_() }), (e.prototype.removeObserver = function (t) { var n = this.observers_, a = n.indexOf(t) ~a && n.splice(a, 1), !n.length && this.connected_ && this.disconnect_() }), (e.prototype.refresh = function () { var t = this.updateObservers_() t && this.refresh() }), (e.prototype.updateObservers_ = function () { var t = this.observers_.filter(function (n) { return n.gatherActive(), n.hasActive() }) return ( t.forEach(function (n) { return n.broadcastActive() }), t.length > 0 ) }), (e.prototype.connect_ = function () { !Ov || this.connected_ || (document.addEventListener('transitionend', this.onTransitionEnd_), window.addEventListener('resize', this.refresh), wD ? ((this.mutationsObserver_ = new MutationObserver(this.refresh)), this.mutationsObserver_.observe(document, { attributes: !0, childList: !0, characterData: !0, subtree: !0, })) : (document.addEventListener('DOMSubtreeModified', this.refresh), (this.mutationEventsAdded_ = !0)), (this.connected_ = !0)) }), (e.prototype.disconnect_ = function () { !Ov || !this.connected_ || (document.removeEventListener('transitionend', this.onTransitionEnd_), window.removeEventListener('resize', this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener('DOMSubtreeModified', this.refresh), (this.mutationsObserver_ = null), (this.mutationEventsAdded_ = !1), (this.connected_ = !1)) }), (e.prototype.onTransitionEnd_ = function (t) { var n = t.propertyName, a = n === void 0 ? '' : n, l = SD.some(function (f) { return !!~a.indexOf(f) }) l && this.refresh() }), (e.getInstance = function () { return this.instance_ || (this.instance_ = new e()), this.instance_ }), (e.instance_ = null), e ) })(), i1 = function (e, t) { for (var n = 0, a = Object.keys(t); n < a.length; n++) { var l = a[n] Object.defineProperty(e, l, { value: t[l], enumerable: !1, writable: !1, configurable: !0 }) } return e }, Iu = function (e) { var t = e && e.ownerDocument && e.ownerDocument.defaultView return t || Ug }, a1 = Vg(0, 0, 0, 0) function Wg(e) { return parseFloat(e) || 0 } function o1(e) { for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n] return t.reduce(function (a, l) { var f = e['border-' + l + '-width'] return a + Wg(f) }, 0) } function CD(e) { for (var t = ['top', 'right', 'bottom', 'left'], n = {}, a = 0, l = t; a < l.length; a++) { var f = l[a], g = e['padding-' + f] n[f] = Wg(g) } return n } function ED(e) { var t = e.getBBox() return Vg(0, 0, t.width, t.height) } function kD(e) { var t = e.clientWidth, n = e.clientHeight if (!t && !n) return a1 var a = Iu(e).getComputedStyle(e), l = CD(a), f = l.left + l.right, g = l.top + l.bottom, h = Wg(a.width), _ = Wg(a.height) if ( (a.boxSizing === 'border-box' && (Math.round(h + f) !== t && (h -= o1(a, 'left', 'right') + f), Math.round(_ + g) !== n && (_ -= o1(a, 'top', 'bottom') + g)), !TD(e)) ) { var b = Math.round(h + f) - t, S = Math.round(_ + g) - n Math.abs(b) !== 1 && (h -= b), Math.abs(S) !== 1 && (_ -= S) } return Vg(l.left, l.top, h, _) } var OD = (function () { return typeof SVGGraphicsElement != 'undefined' ? function (e) { return e instanceof Iu(e).SVGGraphicsElement } : function (e) { return e instanceof Iu(e).SVGElement && typeof e.getBBox == 'function' } })() function TD(e) { return e === Iu(e).document.documentElement } function DD(e) { return Ov ? (OD(e) ? ED(e) : kD(e)) : a1 } function PD(e) { var t = e.x, n = e.y, a = e.width, l = e.height, f = typeof DOMRectReadOnly != 'undefined' ? DOMRectReadOnly : Object, g = Object.create(f.prototype) return i1(g, { x: t, y: n, width: a, height: l, top: n, right: t + a, bottom: l + n, left: t }), g } function Vg(e, t, n, a) { return { x: e, y: t, width: n, height: a } } var ID = (function () { function e(t) { ;(this.broadcastWidth = 0), (this.broadcastHeight = 0), (this.contentRect_ = Vg(0, 0, 0, 0)), (this.target = t) } return ( (e.prototype.isActive = function () { var t = DD(this.target) return (this.contentRect_ = t), t.width !== this.broadcastWidth || t.height !== this.broadcastHeight }), (e.prototype.broadcastRect = function () { var t = this.contentRect_ return (this.broadcastWidth = t.width), (this.broadcastHeight = t.height), t }), e ) })(), RD = (function () { function e(t, n) { var a = PD(n) i1(this, { target: t, contentRect: a }) } return e })(), MD = (function () { function e(t, n, a) { if (((this.activeObservations_ = []), (this.observations_ = new r1()), typeof t != 'function')) throw new TypeError('The callback provided as parameter 1 is not a function.') ;(this.callback_ = t), (this.controller_ = n), (this.callbackCtx_ = a) } return ( (e.prototype.observe = function (t) { if (!arguments.length) throw new TypeError('1 argument required, but only 0 present.') if (!(typeof Element == 'undefined' || !(Element instanceof Object))) { if (!(t instanceof Iu(t).Element)) throw new TypeError('parameter 1 is not of type "Element".') var n = this.observations_ n.has(t) || (n.set(t, new ID(t)), this.controller_.addObserver(this), this.controller_.refresh()) } }), (e.prototype.unobserve = function (t) { if (!arguments.length) throw new TypeError('1 argument required, but only 0 present.') if (!(typeof Element == 'undefined' || !(Element instanceof Object))) { if (!(t instanceof Iu(t).Element)) throw new TypeError('parameter 1 is not of type "Element".') var n = this.observations_ n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this)) } }), (e.prototype.disconnect = function () { this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this) }), (e.prototype.gatherActive = function () { var t = this this.clearActive(), this.observations_.forEach(function (n) { n.isActive() && t.activeObservations_.push(n) }) }), (e.prototype.broadcastActive = function () { if (this.hasActive()) { var t = this.callbackCtx_, n = this.activeObservations_.map(function (a) { return new RD(a.target, a.broadcastRect()) }) this.callback_.call(t, n, t), this.clearActive() } }), (e.prototype.clearActive = function () { this.activeObservations_.splice(0) }), (e.prototype.hasActive = function () { return this.activeObservations_.length > 0 }), e ) })(), s1 = typeof WeakMap != 'undefined' ? new WeakMap() : new r1(), l1 = (function () { function e(t) { if (!(this instanceof e)) throw new TypeError('Cannot call a class as a function.') if (!arguments.length) throw new TypeError('1 argument required, but only 0 present.') var n = xD.getInstance(), a = new MD(t, n, this) s1.set(this, a) } return e })() ;['observe', 'unobserve', 'disconnect'].forEach(function (e) { l1.prototype[e] = function () { var t return (t = s1.get(this))[e].apply(t, arguments) } }) var AD = (function () { return typeof Ug.ResizeObserver != 'undefined' ? Ug.ResizeObserver : l1 })(), ND = AD, Xs = new Map() function jD(e) { e.forEach(function (t) { var n, a = t.target ;(n = Xs.get(a)) === null || n === void 0 || n.forEach(function (l) { return l(a) }) }) } var c1 = new ND(jD), R5 = null, M5 = null function zD(e, t) { Xs.has(e) || (Xs.set(e, new Set()), c1.observe(e)), Xs.get(e).add(t) } function LD(e, t) { Xs.has(e) && (Xs.get(e).delete(t), Xs.get(e).size || (c1.unobserve(e), Xs.delete(e))) } var FD = (function (e) { Fl(n, e) var t = $l(n) function n() { return tr(this, n), t.apply(this, arguments) } return ( mn(n, [ { key: 'render', value: function () { return this.props.children }, }, ]), n ) })(m.Component), Tv = m.createContext(null) function $D(e) { var t = e.children, n = e.onBatchResize, a = m.useRef(0), l = m.useRef([]), f = m.useContext(Tv), g = m.useCallback( function (h, _, b) { a.current += 1 var S = a.current l.current.push({ size: h, element: _, data: b }), Promise.resolve().then(function () { S === a.current && (n == null || n(l.current), (l.current = [])) }), f == null || f(h, _, b) }, [n, f] ) return m.createElement(Tv.Provider, { value: g }, t) } function HD(e, t) { var n = e.children, a = e.disabled, l = m.useRef(null), f = m.useRef(null), g = m.useContext(Tv), h = typeof n == 'function', _ = h ? n(l) : n, b = m.useRef({ width: -1, height: -1, offsetWidth: -1, offsetHeight: -1 }), S = !h && m.isValidElement(_) && xf(_), x = S ? _.ref : null, k = m.useMemo( function () { return cg(x, l) }, [x, l] ), D = function () { return lh(l.current) || lh(f.current) } m.useImperativeHandle(t, function () { return D() }) var M = m.useRef(e) M.current = e var P = m.useCallback(function (R) { var j = M.current, L = j.onResize, H = j.data, U = R.getBoundingClientRect(), te = U.width, ie = U.height, ae = R.offsetWidth, de = R.offsetHeight, ye = Math.floor(te), me = Math.floor(ie) if ( b.current.width !== ye || b.current.height !== me || b.current.offsetWidth !== ae || b.current.offsetHeight !== de ) { var De = { width: ye, height: me, offsetWidth: ae, offsetHeight: de } b.current = De var se = ae === Math.round(te) ? te : ae, oe = de === Math.round(ie) ? ie : de, fe = ze(ze({}, De), {}, { offsetWidth: se, offsetHeight: oe }) g == null || g(fe, R, H), L && Promise.resolve().then(function () { L(fe, R) }) } }, []) return ( m.useEffect( function () { var R = D() return ( R && !a && zD(R, P), function () { return LD(R, P) } ) }, [l.current, a] ), m.createElement(FD, { ref: f }, S ? m.cloneElement(_, { ref: k }) : _) ) } var BD = m.forwardRef(HD), UD = BD, WD = 'rc-observer-key' function VD(e, t) { var n = e.children, a = typeof n == 'function' ? [n] : fo(n) return a.map(function (l, f) { var g = (l == null ? void 0 : l.key) || ''.concat(WD, '-').concat(f) return m.createElement(UD, Xt({}, e, { key: g, ref: f === 0 ? t : void 0 }), l) }) } var u1 = m.forwardRef(VD) u1.Collection = $D var d1 = u1 function ko(e) { var t = m.useRef() t.current = e var n = m.useCallback(function () { for (var a, l = arguments.length, f = new Array(l), g = 0; g < l; g++) f[g] = arguments[g] return (a = t.current) === null || a === void 0 ? void 0 : a.call.apply(a, [t].concat(f)) }, []) return n } var GD = function () { if (typeof navigator == 'undefined' || typeof window == 'undefined') return !1 var e = navigator.userAgent || navigator.vendor || window.opera return ( /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test( e ) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test( e == null ? void 0 : e.substr(0, 4) ) ) }, XD = m.createContext(null), f1 = XD function p1(e) { return e ? (Array.isArray(e) ? e : [e]) : [] } function KD(e, t, n, a) { return m.useMemo( function () { var l = p1(n != null ? n : t), f = p1(a != null ? a : t), g = new Set(l), h = new Set(f) return ( e && (g.has('hover') && (g.delete('hover'), g.add('click')), h.has('hover') && (h.delete('hover'), h.add('click'))), [g, h] ) }, [e, t, n, a] ) } function YD() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = arguments.length > 2 ? arguments[2] : void 0 return n ? e[0] === t[0] : e[0] === t[0] && e[1] === t[1] } function qD(e, t, n, a) { for (var l = n.points, f = Object.keys(e), g = 0; g < f.length; g += 1) { var h, _ = f[g] if (YD((h = e[_]) === null || h === void 0 ? void 0 : h.points, l, a)) return ''.concat(t, '-placement-').concat(_) } return '' } function g1(e, t, n, a) { return t || (n ? { motionName: ''.concat(e, '-').concat(n) } : a ? { motionName: a } : null) } function If(e) { return e.ownerDocument.defaultView } function Dv(e) { for (var t = [], n = e == null ? void 0 : e.parentElement, a = ['hidden', 'scroll', 'auto']; n; ) { var l = If(n).getComputedStyle(n), f = l.overflowX, g = l.overflowY ;(a.includes(f) || a.includes(g)) && t.push(n), (n = n.parentElement) } return t } function Gg(e) { return Number.isNaN(e) ? 1 : e } function QD(e, t) { var n = ze({}, e) return ( (t || []).forEach(function (a) { if (!(a instanceof HTMLBodyElement)) { var l = If(a).getComputedStyle(a), f = l.position if (f !== 'static') { var g = a.getBoundingClientRect(), h = a.offsetHeight, _ = a.clientHeight, b = a.offsetWidth, S = a.clientWidth, x = Gg(Math.round((g.width / b) * 1e3) / 1e3), k = Gg(Math.round((g.height / h) * 1e3) / 1e3), D = (b - S) * x, M = (h - _) * k, P = g.x + g.width - D, R = g.y + g.height - M ;(n.left = Math.max(n.left, g.x)), (n.top = Math.max(n.top, g.y)), (n.right = Math.min(n.right, P)), (n.bottom = Math.min(n.bottom, R)) } } }), n ) } function m1() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : '' return [e[0], e[1]] } function Ru(e, t) { var n = t[0], a = t[1], l, f return ( n === 't' ? (f = e.y) : n === 'b' ? (f = e.y + e.height) : (f = e.y + e.height / 2), a === 'l' ? (l = e.x) : a === 'r' ? (l = e.x + e.width) : (l = e.x + e.width / 2), { x: l, y: f } ) } function Ks(e, t) { var n = { t: 'b', b: 't', l: 'r', r: 'l' } return e .map(function (a, l) { return l === t ? n[a] || 'c' : a }) .join('') } function JD(e, t, n, a, l, f, g) { var h = m.useState({ ready: !1, offsetX: 0, offsetY: 0, arrowX: 0, arrowY: 0, scaleX: 1, scaleY: 1, align: l[a] || {}, }), _ = pt(h, 2), b = _[0], S = _[1], x = m.useRef(0), k = m.useMemo( function () { return t ? Dv(t) : [] }, [t] ), D = m.useRef({}), M = function () { D.current = {} } e || M() var P = ko(function () { if (t && n && e) { let Io = function (im, uc) { var am = me.x + im, om = me.y + uc, sm = am + Ge, Gv = om + Ct, Xv = Math.max(am, Ye.left), Kv = Math.max(om, Ye.top), lm = Math.min(sm, Ye.right), Yv = Math.min(Gv, Ye.bottom) return Math.max(0, (lm - Xv) * (Yv - Kv)) }, Ro = function () { ;(oc = me.y + kr), (Do = oc + Ct), (Ys = me.x + Er), (sc = Ys + Ge) } var L = t, H = L.style.left, U = L.style.top, te = L.ownerDocument, ie = If(L), ae = ze(ze({}, l[a]), f) ;(L.style.left = '0'), (L.style.top = '0') var de if (Array.isArray(n)) de = { x: n[0], y: n[1], width: 0, height: 0 } else { var ye = n.getBoundingClientRect() de = { x: ye.x, y: ye.y, width: ye.width, height: ye.height } } var me = L.getBoundingClientRect(), De = ie.getComputedStyle(L), se = De.width, oe = De.height, fe = te.documentElement, Oe = fe.clientWidth, Ve = fe.clientHeight, Qe = fe.scrollWidth, ft = fe.scrollHeight, Ot = fe.scrollTop, Nt = fe.scrollLeft, Ct = me.height, Ge = me.width, Xe = de.height, ot = de.width, Ye = ae.htmlRegion === 'scroll' ? { left: -Nt, top: -Ot, right: Qe - Nt, bottom: ft - Ot } : { left: 0, top: 0, right: Oe, bottom: Ve } ;(Ye = QD(Ye, k)), (L.style.left = H), (L.style.top = U) var Te = Gg(Math.round((Ge / parseFloat(se)) * 1e3) / 1e3), xt = Gg(Math.round((Ct / parseFloat(oe)) * 1e3) / 1e3) if (Te === 0 || xt === 0 || (lg(n) && !n0(n))) return var et = ae.offset, Ft = ae.targetOffset, $t = et || [], yt = pt($t, 2), Et = yt[0], Ht = Et === void 0 ? 0 : Et, dn = yt[1], qt = dn === void 0 ? 0 : dn, _n = Ft || [], Tt = pt(_n, 2), Dt = Tt[0], tn = Dt === void 0 ? 0 : Dt, Vt = Tt[1], ri = Vt === void 0 ? 0 : Vt ;(de.x += tn), (de.y += ri) var Un = ae.points || [], Wn = pt(Un, 2), Ut = Wn[0], an = Wn[1], _i = m1(an), hr = m1(Ut), yi = Ru(de, _i), Mf = Ru(me, hr), vr = ze({}, ae), Er = yi.x - Mf.x + Ht, kr = yi.y - Mf.y + qt, Oo = Io(Er, kr), bi = Ru(de, ['t', 'l']), To = Ru(me, ['t', 'l']), Qg = Ru(de, ['b', 'r']), Jg = Ru(me, ['b', 'r']), Nu = ae.overflow || {}, zv = Nu.adjustX, Zg = Nu.adjustY, em = Nu.shiftX, Af = Nu.shiftY, Si = function (uc) { return typeof uc == 'boolean' ? uc : uc >= 0 }, oc, Do, Ys, sc Ro() var Nf = Si(Zg), La = hr[0] === _i[0] if (Nf && hr[0] === 't' && (Do > Ye.bottom || D.current.bt)) { var ju = kr La ? (ju -= Ct - Xe) : (ju = bi.y - Jg.y - qt), Io(Er, ju) >= Oo ? ((D.current.bt = !0), (kr = ju), (vr.points = [Ks(hr, 0), Ks(_i, 0)])) : (D.current.bt = !1) } if (Nf && hr[0] === 'b' && (oc < Ye.top || D.current.tb)) { var lc = kr La ? (lc += Ct - Xe) : (lc = Qg.y - To.y - qt), Io(Er, lc) >= Oo ? ((D.current.tb = !0), (kr = lc), (vr.points = [Ks(hr, 0), Ks(_i, 0)])) : (D.current.tb = !1) } var jf = Si(zv), zf = hr[1] === _i[1] if (jf && hr[1] === 'l' && (sc > Ye.right || D.current.rl)) { var cc = Er zf ? (cc -= Ge - ot) : (cc = bi.x - Jg.x - Ht), Io(cc, kr) >= Oo ? ((D.current.rl = !0), (Er = cc), (vr.points = [Ks(hr, 1), Ks(_i, 1)])) : (D.current.rl = !1) } if (jf && hr[1] === 'r' && (Ys < Ye.left || D.current.lr)) { var zu = Er zf ? (zu += Ge - ot) : (zu = Qg.x - To.x - Ht), Io(zu, kr) >= Oo ? ((D.current.lr = !0), (Er = zu), (vr.points = [Ks(hr, 1), Ks(_i, 1)])) : (D.current.lr = !1) } Ro() var qs = em === !0 ? 0 : em typeof qs == 'number' && (Ys < Ye.left && ((Er -= Ys - Ye.left), de.x + ot < Ye.left + qs && (Er += de.x - Ye.left + ot - qs)), sc > Ye.right && ((Er -= sc - Ye.right), de.x > Ye.right - qs && (Er += de.x - Ye.right + qs))) var Po = Af === !0 ? 0 : Af typeof Po == 'number' && (oc < Ye.top && ((kr -= oc - Ye.top), de.y + Xe < Ye.top + Po && (kr += de.y - Ye.top + Xe - Po)), Do > Ye.bottom && ((kr -= Do - Ye.bottom), de.y > Ye.bottom - Po && (kr += de.y - Ye.bottom + Po))) var Lu = me.x + Er, Lv = Lu + Ge, Fu = me.y + kr, tm = Fu + Ct, nm = de.x, Lf = nm + ot, rm = de.y, ea = rm + Xe, Fv = Math.max(Lu, nm), $v = Math.min(Lv, Lf), Hv = (Fv + $v) / 2, Bv = Hv - Lu, Uv = Math.max(Fu, rm), Wv = Math.min(tm, ea), Vv = (Uv + Wv) / 2, $u = Vv - Fu g == null || g(t, vr), S({ ready: !0, offsetX: Er / Te, offsetY: kr / xt, arrowX: Bv / Te, arrowY: $u / xt, scaleX: Te, scaleY: xt, align: vr, }) } }), R = function () { x.current += 1 var H = x.current Promise.resolve().then(function () { x.current === H && P() }) }, j = function () { S(function (H) { return ze(ze({}, H), {}, { ready: !1 }) }) } return ( gi(j, [a]), gi( function () { e || j() }, [e] ), [b.ready, b.offsetX, b.offsetY, b.arrowX, b.arrowY, b.scaleX, b.scaleY, b.align, R] ) } function ZD(e, t, n, a) { gi( function () { if (e && t && n) { let S = function () { a() } var l = t, f = n, g = Dv(l), h = Dv(f), _ = If(f), b = new Set([_].concat(kt(g), kt(h))) return ( b.forEach(function (x) { x.addEventListener('scroll', S, { passive: !0 }) }), _.addEventListener('resize', S, { passive: !0 }), a(), function () { b.forEach(function (x) { x.removeEventListener('scroll', S), _.removeEventListener('resize', S) }) } ) } }, [e, t, n] ) } function e2(e) { var t = e.prefixCls, n = e.align, a = e.arrowX, l = a === void 0 ? 0 : a, f = e.arrowY, g = f === void 0 ? 0 : f, h = m.useRef() if (!n || !n.points) return null var _ = { position: 'absolute' } if (n.autoArrow !== !1) { var b = n.points[0], S = n.points[1], x = b[0], k = b[1], D = S[0], M = S[1] x === D || !['t', 'b'].includes(x) ? (_.top = g) : x === 't' ? (_.top = 0) : (_.bottom = 0), k === M || !['l', 'r'].includes(k) ? (_.left = l) : k === 'l' ? (_.left = 0) : (_.right = 0) } return m.createElement('div', { ref: h, className: ''.concat(t, '-arrow'), style: _ }) } function t2(e) { var t = e.prefixCls, n = e.open, a = e.zIndex, l = e.mask, f = e.motion return l ? React.createElement(So, Xt({}, f, { motionAppear: !0, visible: n, removeOnLeave: !0 }), function (g) { var h = g.className return React.createElement('div', { style: { zIndex: a }, className: bt()(''.concat(t, '-mask'), h) }) }) : null } var n2 = m.forwardRef(function (e, t) { var n = e.popup, a = e.className, l = e.prefixCls, f = e.style, g = e.target, h = e.onVisibleChanged, _ = e.open, b = e.keepDom, S = e.onClick, x = e.mask, k = e.arrow, D = e.align, M = e.arrowX, P = e.arrowY, R = e.motion, j = e.maskMotion, L = e.forceRender, H = e.getPopupContainer, U = e.autoDestroy, te = e.portal, ie = e.zIndex, ae = e.onMouseEnter, de = e.onMouseLeave, ye = e.ready, me = e.offsetX, De = e.offsetY, se = e.onAlign, oe = e.onPrepare, fe = e.stretch, Oe = e.targetWidth, Ve = e.targetHeight, Qe = typeof n == 'function' ? n() : n, ft = _ || b, Ot = (H == null ? void 0 : H.length) > 0, Nt = m.useState(!H || !Ot), Ct = pt(Nt, 2), Ge = Ct[0], Xe = Ct[1] if ( (gi( function () { !Ge && Ot && g && Xe(!0) }, [Ge, Ot, g] ), !Ge) ) return null var ot = ye || !_ ? { left: me, top: De } : { left: '-1000vw', top: '-1000vh' }, Ye = {} return ( fe && (fe.includes('height') && Ve ? (Ye.height = Ve) : fe.includes('minHeight') && Ve && (Ye.minHeight = Ve), fe.includes('width') && Oe ? (Ye.width = Oe) : fe.includes('minWidth') && Oe && (Ye.minWidth = Oe)), _ || (Ye.pointerEvents = 'none'), m.createElement( te, { open: L || ft, getContainer: H && function () { return H(g) }, autoDestroy: U, }, m.createElement(t2, { prefixCls: l, open: _, zIndex: ie, mask: x, motion: j }), m.createElement(d1, { onResize: se, disabled: !_ }, function (Te) { return m.createElement( So, Xt( { motionAppear: !0, motionEnter: !0, motionLeave: !0, removeOnLeave: !1, forceRender: L, leavedClassName: ''.concat(l, '-hidden'), }, R, { onAppearPrepare: oe, onEnterPrepare: oe, visible: _, onVisibleChanged: function (et) { var Ft R == null || (Ft = R.onVisibleChanged) === null || Ft === void 0 || Ft.call(R, et), h(et) }, } ), function (xt, et) { var Ft = xt.className, $t = xt.style, yt = bt()(l, Ft, a) return m.createElement( 'div', { ref: cg(Te, t, et), className: yt, style: ze(ze(ze(ze({}, ot), Ye), $t), {}, { boxSizing: 'border-box', zIndex: ie }, f), onMouseEnter: ae, onMouseLeave: de, onClick: S, }, k && m.createElement(e2, { prefixCls: l, align: D, arrowX: M, arrowY: P }), Qe ) } ) }) ) ) }), r2 = n2, i2 = m.forwardRef(function (e, t) { var n = e.children, a = e.getTriggerDOMNode, l = xf(n), f = m.useCallback( function (h) { ch(t, a ? a(h) : h) }, [a] ), g = y_(f, n.ref) return l ? m.cloneElement(n, { ref: g }) : n }), a2 = i2, o2 = [ 'prefixCls', 'children', 'action', 'showAction', 'hideAction', 'popupVisible', 'defaultPopupVisible', 'onPopupVisibleChange', 'afterPopupVisibleChange', 'mouseEnterDelay', 'mouseLeaveDelay', 'focusDelay', 'blurDelay', 'mask', 'maskClosable', 'getPopupContainer', 'forceRender', 'autoDestroy', 'destroyPopupOnHide', 'popup', 'popupClassName', 'popupStyle', 'popupPlacement', 'builtinPlacements', 'popupAlign', 'zIndex', 'stretch', 'getPopupClassNameFromAlign', 'alignPoint', 'onPopupClick', 'onPopupAlign', 'arrow', 'popupMotion', 'maskMotion', 'popupTransitionName', 'popupAnimation', 'maskTransitionName', 'maskAnimation', 'className', 'getTriggerDOMNode', ] function s2() { var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Lh, t = m.forwardRef(function (n, a) { var l = n.prefixCls, f = l === void 0 ? 'rc-trigger-popup' : l, g = n.children, h = n.action, _ = h === void 0 ? 'hover' : h, b = n.showAction, S = n.hideAction, x = n.popupVisible, k = n.defaultPopupVisible, D = n.onPopupVisibleChange, M = n.afterPopupVisibleChange, P = n.mouseEnterDelay, R = n.mouseLeaveDelay, j = R === void 0 ? 0.1 : R, L = n.focusDelay, H = n.blurDelay, U = n.mask, te = n.maskClosable, ie = te === void 0 ? !0 : te, ae = n.getPopupContainer, de = n.forceRender, ye = n.autoDestroy, me = n.destroyPopupOnHide, De = n.popup, se = n.popupClassName, oe = n.popupStyle, fe = n.popupPlacement, Oe = n.builtinPlacements, Ve = Oe === void 0 ? {} : Oe, Qe = n.popupAlign, ft = n.zIndex, Ot = n.stretch, Nt = n.getPopupClassNameFromAlign, Ct = n.alignPoint, Ge = n.onPopupClick, Xe = n.onPopupAlign, ot = n.arrow, Ye = n.popupMotion, Te = n.maskMotion, xt = n.popupTransitionName, et = n.popupAnimation, Ft = n.maskTransitionName, $t = n.maskAnimation, yt = n.className, Et = n.getTriggerDOMNode, Ht = Kn(n, o2), dn = ye || me || !1, qt = m.useState(!1), _n = pt(qt, 2), Tt = _n[0], Dt = _n[1] gi(function () { Dt(GD()) }, []) var tn = m.useRef({}), Vt = m.useContext(f1), ri = m.useMemo( function () { return { registerSubPopup: function (Jt, pn) { ;(tn.current[Jt] = pn), Vt == null || Vt.registerSubPopup(Jt, pn) }, } }, [Vt] ), Un = C0(), Wn = m.useState(null), Ut = pt(Wn, 2), an = Ut[0], _i = Ut[1], hr = ko(function (Pt) { lg(Pt) && an !== Pt && _i(Pt), Vt == null || Vt.registerSubPopup(Un, Pt) }), yi = m.useState(null), Mf = pt(yi, 2), vr = Mf[0], Er = Mf[1], kr = ko(function (Pt) { lg(Pt) && vr !== Pt && Er(Pt) }), Oo = m.Children.only(g), bi = (Oo == null ? void 0 : Oo.props) || {}, To = {}, Qg = ko(function (Pt) { var Jt, pn, wn = vr return ( (wn == null ? void 0 : wn.contains(Pt)) || (wn == null || (Jt = wn.getRootNode()) === null || Jt === void 0 ? void 0 : Jt.host) === Pt || Pt === wn || (an == null ? void 0 : an.contains(Pt)) || (an == null || (pn = an.getRootNode()) === null || pn === void 0 ? void 0 : pn.host) === Pt || Pt === an || Object.values(tn.current).some(function (kn) { return (kn == null ? void 0 : kn.contains(Pt)) || Pt === kn }) ) }), Jg = g1(f, Ye, et, xt), Nu = g1(f, Te, $t, Ft), zv = m.useState(k || !1), Zg = pt(zv, 2), em = Zg[0], Af = Zg[1], Si = x != null ? x : em, oc = ko(function (Pt) { x === void 0 && Af(Pt) }) gi( function () { Af(x || !1) }, [x] ) var Do = m.useRef(Si) Do.current = Si var Ys = ko(function (Pt) { Si !== Pt && (oc(Pt), D == null || D(Pt)) }), sc = m.useRef(), Nf = function () { clearTimeout(sc.current) }, La = function (Jt) { var pn = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0 Nf(), pn === 0 ? Ys(Jt) : (sc.current = setTimeout(function () { Ys(Jt) }, pn * 1e3)) } m.useEffect(function () { return Nf }, []) var ju = m.useState(!1), lc = pt(ju, 2), jf = lc[0], zf = lc[1], cc = m.useRef(!0) gi( function () { ;(!cc.current || Si) && zf(!0), (cc.current = !0) }, [Si] ) var zu = m.useState(null), qs = pt(zu, 2), Po = qs[0], Lu = qs[1], Lv = m.useState([0, 0]), Fu = pt(Lv, 2), tm = Fu[0], nm = Fu[1], Lf = function (Jt) { nm([Jt.clientX, Jt.clientY]) }, rm = JD(Si, an, Ct ? tm : vr, fe, Ve, Qe, Xe), ea = pt(rm, 9), Fv = ea[0], $v = ea[1], Hv = ea[2], Bv = ea[3], Uv = ea[4], Wv = ea[5], Vv = ea[6], $u = ea[7], Io = ea[8], Ro = ko(function () { jf || Io() }) ZD(Si, vr, an, Ro), gi( function () { Ro() }, [tm] ), gi( function () { Si && !(Ve != null && Ve[fe]) && Ro() }, [JSON.stringify(Qe)] ) var im = m.useMemo( function () { var Pt = qD(Ve, f, $u, Ct) return bt()(Pt, Nt == null ? void 0 : Nt($u)) }, [$u, Nt, Ve, f, Ct] ) m.useImperativeHandle(a, function () { return { forceAlign: Ro } }) var uc = function (Jt) { zf(!1), Io(), M == null || M(Jt) }, am = function () { return new Promise(function (Jt) { Lu(function () { return Jt }) }) } gi( function () { Po && (Io(), Po(), Lu(null)) }, [Po] ) var om = m.useState(0), sm = pt(om, 2), Gv = sm[0], Xv = sm[1], Kv = m.useState(0), lm = pt(Kv, 2), Yv = lm[0], CP = lm[1], EP = function (Jt, pn) { if ((Ro(), Ot)) { var wn = pn.getBoundingClientRect() Xv(wn.width), CP(wn.height) } }, kP = KD(Tt, _, b, S), V1 = pt(kP, 2), cm = V1[0], um = V1[1], dm = function (Jt, pn, wn, kn) { To[Jt] = function (Qv) { var Hu kn == null || kn(Qv), La(pn, wn) for (var Ff = arguments.length, q1 = new Array(Ff > 1 ? Ff - 1 : 0), pm = 1; pm < Ff; pm++) q1[pm - 1] = arguments[pm] ;(Hu = bi[Jt]) === null || Hu === void 0 || Hu.call.apply(Hu, [bi, Qv].concat(q1)) } }, G1 = cm.has('click'), fm = um.has('click') || um.has('contextMenu') ;(G1 || fm) && (To.onClick = function (Pt) { var Jt Do.current && fm ? La(!1) : !Do.current && G1 && (Lf(Pt), La(!0)) for (var pn = arguments.length, wn = new Array(pn > 1 ? pn - 1 : 0), kn = 1; kn < pn; kn++) wn[kn - 1] = arguments[kn] ;(Jt = bi.onClick) === null || Jt === void 0 || Jt.call.apply(Jt, [bi, Pt].concat(wn)) }), m.useEffect( function () { if (fm && an && (!U || ie)) { var Pt = function (Hu) { var Ff = Hu.target Do.current && !Qg(Ff) && La(!1) }, Jt = If(an), pn = vr == null ? void 0 : vr.getRootNode() Jt.addEventListener('click', Pt) var wn = pn && pn !== vr.ownerDocument if ((wn && pn.addEventListener('click', Pt), !1)) var kn return function () { Jt.removeEventListener('click', Pt), wn && pn.removeEventListener('click', Pt) } } }, [fm, vr, an, U, ie] ) var OP = cm.has('hover'), TP = um.has('hover'), X1, K1 OP && (dm('onMouseEnter', !0, P, function (Pt) { Lf(Pt) }), (X1 = function () { La(!0, P) }), Ct && (To.onMouseMove = function (Pt) { var Jt ;(Jt = bi.onMouseMove) === null || Jt === void 0 || Jt.call(bi, Pt) })), TP && (dm('onMouseLeave', !1, j), (K1 = function () { La(!1, j) })), cm.has('focus') && dm('onFocus', !0, L), um.has('focus') && dm('onBlur', !1, H), cm.has('contextMenu') && (To.onContextMenu = function (Pt) { var Jt Lf(Pt), La(!0), Pt.preventDefault() for (var pn = arguments.length, wn = new Array(pn > 1 ? pn - 1 : 0), kn = 1; kn < pn; kn++) wn[kn - 1] = arguments[kn] ;(Jt = bi.onContextMenu) === null || Jt === void 0 || Jt.call.apply(Jt, [bi, Pt].concat(wn)) }), yt && (To.className = bt()(bi.className, yt)) var qv = ze(ze({}, bi), To), Y1 = {}, DP = [ 'onContextMenu', 'onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur', ] DP.forEach(function (Pt) { Ht[Pt] && (Y1[Pt] = function () { for (var Jt, pn = arguments.length, wn = new Array(pn), kn = 0; kn < pn; kn++) wn[kn] = arguments[kn] ;(Jt = qv[Pt]) === null || Jt === void 0 || Jt.call.apply(Jt, [qv].concat(wn)), Ht[Pt].apply(Ht, wn) }) }) var PP = m.cloneElement(Oo, ze(ze({}, qv), Y1)) return m.createElement( m.Fragment, null, m.createElement( d1, { disabled: !Si, ref: kr, onResize: EP }, m.createElement(a2, { getTriggerDOMNode: Et }, PP) ), m.createElement( f1.Provider, { value: ri }, m.createElement(r2, { portal: e, ref: hr, prefixCls: f, popup: De, className: bt()(se, im), style: oe, target: vr, onMouseEnter: X1, onMouseLeave: K1, zIndex: ft, open: Si, keepDom: jf, onClick: Ge, mask: U, motion: Jg, maskMotion: Nu, onVisibleChanged: uc, onPrepare: am, forceRender: de, autoDestroy: dn, getPopupContainer: ae, align: $u, arrow: ot, ready: Fv, offsetX: $v, offsetY: Hv, arrowX: Bv, arrowY: Uv, onAlign: Ro, stretch: Ot, targetWidth: Gv / Wv, targetHeight: Yv / Vv, }) ) ) }) return t } var l2 = s2(Lh), Mu = { shiftX: 64, adjustY: 1 }, Au = { adjustX: 1, shiftY: !0 }, ji = [0, 0], c2 = { left: { points: ['cr', 'cl'], overflow: Au, offset: [-4, 0], targetOffset: ji }, right: { points: ['cl', 'cr'], overflow: Au, offset: [4, 0], targetOffset: ji }, top: { points: ['bc', 'tc'], overflow: Mu, offset: [0, -4], targetOffset: ji }, bottom: { points: ['tc', 'bc'], overflow: Mu, offset: [0, 4], targetOffset: ji }, topLeft: { points: ['bl', 'tl'], overflow: Mu, offset: [0, -4], targetOffset: ji }, leftTop: { points: ['tr', 'tl'], overflow: Au, offset: [-4, 0], targetOffset: ji }, topRight: { points: ['br', 'tr'], overflow: Mu, offset: [0, -4], targetOffset: ji }, rightTop: { points: ['tl', 'tr'], overflow: Au, offset: [4, 0], targetOffset: ji }, bottomRight: { points: ['tr', 'br'], overflow: Mu, offset: [0, 4], targetOffset: ji }, rightBottom: { points: ['bl', 'br'], overflow: Au, offset: [4, 0], targetOffset: ji }, bottomLeft: { points: ['tl', 'bl'], overflow: Mu, offset: [0, 4], targetOffset: ji }, leftBottom: { points: ['br', 'bl'], overflow: Au, offset: [-4, 0], targetOffset: ji }, }, A5 = null function h1(e) { var t = e.children, n = e.prefixCls, a = e.id, l = e.overlayInnerStyle, f = e.className, g = e.style return m.createElement( 'div', { className: bt()(''.concat(n, '-content'), f), style: g }, m.createElement( 'div', { className: ''.concat(n, '-inner'), id: a, role: 'tooltip', style: l }, typeof t == 'function' ? t() : t ) ) } var u2 = [ 'overlayClassName', 'trigger', 'mouseEnterDelay', 'mouseLeaveDelay', 'overlayStyle', 'prefixCls', 'children', 'onVisibleChange', 'afterVisibleChange', 'transitionName', 'animation', 'motion', 'placement', 'align', 'destroyTooltipOnHide', 'defaultVisible', 'getTooltipContainer', 'overlayInnerStyle', 'arrowContent', 'overlay', 'id', 'showArrow', ], d2 = function (t, n) { var a = t.overlayClassName, l = t.trigger, f = l === void 0 ? ['hover'] : l, g = t.mouseEnterDelay, h = g === void 0 ? 0 : g, _ = t.mouseLeaveDelay, b = _ === void 0 ? 0.1 : _, S = t.overlayStyle, x = t.prefixCls, k = x === void 0 ? 'rc-tooltip' : x, D = t.children, M = t.onVisibleChange, P = t.afterVisibleChange, R = t.transitionName, j = t.animation, L = t.motion, H = t.placement, U = H === void 0 ? 'right' : H, te = t.align, ie = te === void 0 ? {} : te, ae = t.destroyTooltipOnHide, de = ae === void 0 ? !1 : ae, ye = t.defaultVisible, me = t.getTooltipContainer, De = t.overlayInnerStyle, se = t.arrowContent, oe = t.overlay, fe = t.id, Oe = t.showArrow, Ve = Oe === void 0 ? !0 : Oe, Qe = Kn(t, u2), ft = (0, m.useRef)(null) ;(0, m.useImperativeHandle)(n, function () { return ft.current }) var Ot = ze({}, Qe) 'visible' in t && (Ot.popupVisible = t.visible) var Nt = function () { return m.createElement(h1, { key: 'content', prefixCls: k, id: fe, overlayInnerStyle: De }, oe) } return m.createElement( l2, Xt( { popupClassName: a, prefixCls: k, popup: Nt, action: f, builtinPlacements: c2, popupPlacement: U, ref: ft, popupAlign: ie, getPopupContainer: me, onPopupVisibleChange: M, afterPopupVisibleChange: P, popupTransitionName: R, popupAnimation: j, popupMotion: L, defaultPopupVisible: ye, autoDestroy: de, mouseLeaveDelay: b, popupStyle: S, mouseEnterDelay: h, arrow: Ve, }, Ot ), D ) }, f2 = (0, m.forwardRef)(d2), p2 = f2 function Pv(e) { return e !== void 0 } function v1(e, t) { var n = t || {}, a = n.defaultValue, l = n.value, f = n.onChange, g = n.postState, h = ql(function () { return Pv(l) ? l : Pv(a) ? (typeof a == 'function' ? a() : a) : typeof e == 'function' ? e() : e }), _ = pt(h, 2), b = _[0], S = _[1], x = l !== void 0 ? l : b, k = g ? g(x) : x, D = ko(f), M = ql([x]), P = pt(M, 2), R = P[0], j = P[1] h0( function () { var H = R[0] b !== H && D(b, H) }, [R] ), h0( function () { Pv(l) || S(l) }, [l] ) var L = ko(function (H, U) { S(H, U), j([x], U) }) return [k, L] } const g2 = (e, t, n, a, l) => { const f = e / 2, g = 0, h = f, _ = (n * 1) / Math.sqrt(2), b = f - n * (1 - 1 / Math.sqrt(2)), S = f - t * (1 / Math.sqrt(2)), x = n * (Math.sqrt(2) - 1) + t * (1 / Math.sqrt(2)), k = 2 * f - S, D = x, M = 2 * f - _, P = b, R = 2 * f - g, j = h, L = f * Math.sqrt(2) + n * (Math.sqrt(2) - 2) return { pointerEvents: 'none', width: e, height: e, overflow: 'hidden', '&::before': { position: 'absolute', bottom: 0, insetInlineStart: 0, width: e, height: e / 2, background: a, clipPath: `path('M ${g} ${h} A ${n} ${n} 0 0 0 ${_} ${b} L ${S} ${x} A ${t} ${t} 0 0 1 ${k} ${D} L ${M} ${P} A ${n} ${n} 0 0 0 ${R} ${j} Z')`, content: '""', }, '&::after': { content: '""', position: 'absolute', width: L, height: L, bottom: 0, insetInline: 0, margin: 'auto', borderRadius: { _skip_check_: !0, value: `0 0 ${t}px 0` }, transform: 'translateY(50%) rotate(-135deg)', boxShadow: l, zIndex: 0, background: 'transparent', }, } }, _1 = 8 function y1(e) { const t = _1, { contentRadius: n, limitVerticalRadius: a } = e, l = n > 12 ? n + 2 : 12 return { dropdownArrowOffset: l, dropdownArrowOffsetVertical: a ? t : l } } function Xg(e, t) { return e ? t : {} } function m2(e, t) { const { componentCls: n, sizePopupArrow: a, borderRadiusXS: l, borderRadiusOuter: f, boxShadowPopoverArrow: g, } = e, { colorBg: h, contentRadius: _ = e.borderRadiusLG, limitVerticalRadius: b, arrowDistance: S = 0, arrowPlacement: x = { left: !0, right: !0, top: !0, bottom: !0 }, } = t, { dropdownArrowOffsetVertical: k, dropdownArrowOffset: D } = y1({ contentRadius: _, limitVerticalRadius: b }) return { [n]: Object.assign( Object.assign( Object.assign( Object.assign( { [`${n}-arrow`]: [ Object.assign( Object.assign({ position: 'absolute', zIndex: 1, display: 'block' }, g2(a, l, f, h, g)), { '&:before': { background: h } } ), ], }, Xg(!!x.top, { [[ `&-placement-top ${n}-arrow`, `&-placement-topLeft ${n}-arrow`, `&-placement-topRight ${n}-arrow`, ].join(',')]: { bottom: S, transform: 'translateY(100%) rotate(180deg)' }, [`&-placement-top ${n}-arrow`]: { left: { _skip_check_: !0, value: '50%' }, transform: 'translateX(-50%) translateY(100%) rotate(180deg)', }, [`&-placement-topLeft ${n}-arrow`]: { left: { _skip_check_: !0, value: D } }, [`&-placement-topRight ${n}-arrow`]: { right: { _skip_check_: !0, value: D } }, }) ), Xg(!!x.bottom, { [[ `&-placement-bottom ${n}-arrow`, `&-placement-bottomLeft ${n}-arrow`, `&-placement-bottomRight ${n}-arrow`, ].join(',')]: { top: S, transform: 'translateY(-100%)' }, [`&-placement-bottom ${n}-arrow`]: { left: { _skip_check_: !0, value: '50%' }, transform: 'translateX(-50%) translateY(-100%)', }, [`&-placement-bottomLeft ${n}-arrow`]: { left: { _skip_check_: !0, value: D } }, [`&-placement-bottomRight ${n}-arrow`]: { right: { _skip_check_: !0, value: D } }, }) ), Xg(!!x.left, { [[ `&-placement-left ${n}-arrow`, `&-placement-leftTop ${n}-arrow`, `&-placement-leftBottom ${n}-arrow`, ].join(',')]: { right: { _skip_check_: !0, value: S }, transform: 'translateX(100%) rotate(90deg)' }, [`&-placement-left ${n}-arrow`]: { top: { _skip_check_: !0, value: '50%' }, transform: 'translateY(-50%) translateX(100%) rotate(90deg)', }, [`&-placement-leftTop ${n}-arrow`]: { top: k }, [`&-placement-leftBottom ${n}-arrow`]: { bottom: k }, }) ), Xg(!!x.right, { [[ `&-placement-right ${n}-arrow`, `&-placement-rightTop ${n}-arrow`, `&-placement-rightBottom ${n}-arrow`, ].join(',')]: { left: { _skip_check_: !0, value: S }, transform: 'translateX(-100%) rotate(-90deg)' }, [`&-placement-right ${n}-arrow`]: { top: { _skip_check_: !0, value: '50%' }, transform: 'translateY(-50%) translateX(-100%) rotate(-90deg)', }, [`&-placement-rightTop ${n}-arrow`]: { top: k }, [`&-placement-rightBottom ${n}-arrow`]: { bottom: k }, }) ), } } function h2(e, t, n, a) { if (a === !1) return { adjustX: !1, adjustY: !1 } const l = a && typeof a == 'object' ? a : {}, f = {} switch (e) { case 'top': case 'bottom': f.shiftX = t.dropdownArrowOffset * 2 + n break case 'left': case 'right': f.shiftY = t.dropdownArrowOffsetVertical * 2 + n break } const g = Object.assign(Object.assign({}, f), l) return g.shiftX || (g.adjustX = !0), g.shiftY || (g.adjustY = !0), g } const b1 = { left: { points: ['cr', 'cl'] }, right: { points: ['cl', 'cr'] }, top: { points: ['bc', 'tc'] }, bottom: { points: ['tc', 'bc'] }, topLeft: { points: ['bl', 'tl'] }, leftTop: { points: ['tr', 'tl'] }, topRight: { points: ['br', 'tr'] }, rightTop: { points: ['tl', 'tr'] }, bottomRight: { points: ['tr', 'br'] }, rightBottom: { points: ['bl', 'br'] }, bottomLeft: { points: ['tl', 'bl'] }, leftBottom: { points: ['br', 'bl'] }, }, v2 = { topLeft: { points: ['bl', 'tc'] }, leftTop: { points: ['tr', 'cl'] }, topRight: { points: ['br', 'tc'] }, rightTop: { points: ['tl', 'cr'] }, bottomRight: { points: ['tr', 'bc'] }, rightBottom: { points: ['bl', 'cr'] }, bottomLeft: { points: ['tl', 'bc'] }, leftBottom: { points: ['br', 'cl'] }, }, _2 = new Set([ 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'leftBottom', 'rightTop', 'rightBottom', ]) function y2(e) { const { arrowWidth: t, autoAdjustOverflow: n, arrowPointAtCenter: a, offset: l, borderRadius: f } = e, g = t / 2, h = {} return ( Object.keys(b1).forEach((_) => { const b = (a && v2[_]) || b1[_], S = Object.assign(Object.assign({}, b), { offset: [0, 0] }) switch (((h[_] = S), _2.has(_) && (S.autoArrow = !1), _)) { case 'top': case 'topLeft': case 'topRight': S.offset[1] = -g - l break case 'bottom': case 'bottomLeft': case 'bottomRight': S.offset[1] = g + l break case 'left': case 'leftTop': case 'leftBottom': S.offset[0] = -g - l break case 'right': case 'rightTop': case 'rightBottom': S.offset[0] = g + l break } const x = y1({ contentRadius: f, limitVerticalRadius: !0 }) if (a) switch (_) { case 'topLeft': case 'bottomLeft': S.offset[0] = -x.dropdownArrowOffset - g break case 'topRight': case 'bottomRight': S.offset[0] = x.dropdownArrowOffset + g break case 'leftTop': case 'rightTop': S.offset[1] = -x.dropdownArrowOffset - g break case 'leftBottom': case 'rightBottom': S.offset[1] = x.dropdownArrowOffset + g break } S.overflow = h2(_, x, t, n) }), h ) } const b2 = (e) => { const { componentCls: t, tooltipMaxWidth: n, tooltipColor: a, tooltipBg: l, tooltipBorderRadius: f, zIndexPopup: g, controlHeight: h, boxShadowSecondary: _, paddingSM: b, paddingXS: S, tooltipRadiusOuter: x, } = e return [ { [t]: Object.assign( Object.assign( Object.assign(Object.assign({}, yo(e)), { position: 'absolute', zIndex: g, display: 'block', width: 'max-content', maxWidth: n, visibility: 'visible', '&-hidden': { display: 'none' }, '--antd-arrow-background-color': l, [`${t}-inner`]: { minWidth: h, minHeight: h, padding: `${b / 2}px ${S}px`, color: a, textAlign: 'start', textDecoration: 'none', wordWrap: 'break-word', backgroundColor: l, borderRadius: f, boxShadow: _, }, [[ '&-placement-left', '&-placement-leftTop', '&-placement-leftBottom', '&-placement-right', '&-placement-rightTop', '&-placement-rightBottom', ].join(',')]: { [`${t}-inner`]: { borderRadius: Math.min(f, _1) } }, [`${t}-content`]: { position: 'relative' }, }), kv(e, (k, D) => { let { darkColor: M } = D return { [`&${t}-${k}`]: { [`${t}-inner`]: { backgroundColor: M }, [`${t}-arrow`]: { '--antd-arrow-background-color': M }, }, } }) ), { '&-rtl': { direction: 'rtl' } } ), }, m2(Ri(e, { borderRadiusOuter: x }), { colorBg: 'var(--antd-arrow-background-color)', contentRadius: f, limitVerticalRadius: !0, }), { [`${t}-pure`]: { position: 'relative', maxWidth: 'none', margin: e.sizePopupArrow } }, ] } var S1 = (e, t) => Aa( 'Tooltip', (a) => { if (t === !1) return [] const { borderRadius: l, colorTextLightSolid: f, colorBgDefault: g, borderRadiusOuter: h } = a, _ = Ri(a, { tooltipMaxWidth: 250, tooltipColor: f, tooltipBorderRadius: l, tooltipBg: g, tooltipRadiusOuter: h > 4 ? 4 : h, }) return [b2(_), z0(a, 'zoom-big-fast')] }, (a) => { let { zIndexPopupBase: l, colorBgSpotlight: f } = a return { zIndexPopup: l + 70, colorBgDefault: f } } )(e) function w1(e, t) { const n = Ev(t), a = bt()({ [`${e}-${t}`]: t && n }), l = {}, f = {} return ( t && !n && ((l.background = t), (f['--antd-arrow-background-color'] = t)), { className: a, overlayStyle: l, arrowStyle: f } ) } function S2(e) { const { prefixCls: t, className: n, placement: a = 'top', title: l, color: f, overlayInnerStyle: g } = e, { getPrefixCls: h } = m.useContext(Lt), _ = h('tooltip', t), [b, S] = S1(_, !0), x = w1(_, f), k = Object.assign(Object.assign({}, g), x.overlayStyle), D = x.arrowStyle return b( m.createElement( 'div', { className: bt()(S, _, `${_}-pure`, `${_}-placement-${a}`, n, x.className), style: D }, m.createElement('div', { className: `${_}-arrow` }), m.createElement(h1, Object.assign({}, e, { className: S, prefixCls: _, overlayInnerStyle: k }), l) ) ) } var w2 = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const { useToken: x2 } = Al, C2 = (e, t) => { const n = {}, a = Object.assign({}, e) return ( t.forEach((l) => { e && l in e && ((n[l] = e[l]), delete a[l]) }), { picked: n, omitted: a } ) } function E2(e, t) { const n = e.type if ( ((n.__ANT_BUTTON === !0 || e.type === 'button') && e.props.disabled) || (n.__ANT_SWITCH === !0 && (e.props.disabled || e.props.loading)) || (n.__ANT_RADIO === !0 && e.props.disabled) ) { const { picked: a, omitted: l } = C2(e.props.style, [ 'position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex', ]), f = Object.assign(Object.assign({ display: 'inline-block' }, a), { cursor: 'not-allowed', width: e.props.block ? '100%' : void 0, }), g = Object.assign(Object.assign({}, l), { pointerEvents: 'none' }), h = Hs(e, { style: g, className: null }) return m.createElement( 'span', { style: f, className: bt()(e.props.className, `${t}-disabled-compatible-wrapper`) }, h ) } return e } const x1 = m.forwardRef((e, t) => { var n, a const { prefixCls: l, openClassName: f, getTooltipContainer: g, overlayClassName: h, color: _, overlayInnerStyle: b, children: S, afterOpenChange: x, afterVisibleChange: k, destroyTooltipOnHide: D, arrow: M = !0, title: P, overlay: R, builtinPlacements: j, arrowPointAtCenter: L = !1, autoAdjustOverflow: H = !0, } = e, U = !!M, { token: te } = x2(), { getPopupContainer: ie, getPrefixCls: ae, direction: de } = m.useContext(Lt), ye = m.useRef(null), me = () => { var Dt ;(Dt = ye.current) === null || Dt === void 0 || Dt.forceAlign() } m.useImperativeHandle(t, () => ({ forceAlign: me, forcePopupAlign: () => { me() }, })) const [De, se] = v1(!1, { value: (n = e.open) !== null && n !== void 0 ? n : e.visible, defaultValue: (a = e.defaultOpen) !== null && a !== void 0 ? a : e.defaultVisible, }), oe = !P && !R && P !== 0, fe = (Dt) => { var tn, Vt se(oe ? !1 : Dt), oe || ((tn = e.onOpenChange) === null || tn === void 0 || tn.call(e, Dt), (Vt = e.onVisibleChange) === null || Vt === void 0 || Vt.call(e, Dt)) }, Oe = m.useMemo(() => { var Dt, tn let Vt = L return ( typeof M == 'object' && (Vt = (tn = (Dt = M.pointAtCenter) !== null && Dt !== void 0 ? Dt : M.arrowPointAtCenter) !== null && tn !== void 0 ? tn : L), j || y2({ arrowPointAtCenter: Vt, autoAdjustOverflow: H, arrowWidth: U ? te.sizePopupArrow : 0, borderRadius: te.borderRadius, offset: te.marginXXS, }) ) }, [L, M, j, te]), Ve = (Dt, tn) => { const Vt = Object.keys(Oe).find((ri) => { var Un, Wn return ( Oe[ri].points[0] === ((Un = tn.points) === null || Un === void 0 ? void 0 : Un[0]) && Oe[ri].points[1] === ((Wn = tn.points) === null || Wn === void 0 ? void 0 : Wn[1]) ) }) if (Vt) { const ri = Dt.getBoundingClientRect(), Un = { top: '50%', left: '50%' } ;/top|Bottom/.test(Vt) ? (Un.top = `${ri.height - tn.offset[1]}px`) : /Top|bottom/.test(Vt) && (Un.top = `${-tn.offset[1]}px`), /left|Right/.test(Vt) ? (Un.left = `${ri.width - tn.offset[0]}px`) : /right|Left/.test(Vt) && (Un.left = `${-tn.offset[0]}px`), (Dt.style.transformOrigin = `${Un.left} ${Un.top}`) } }, Qe = m.useMemo(() => (P === 0 ? P : R || P || ''), [R, P]), { getPopupContainer: ft, placement: Ot = 'top', mouseEnterDelay: Nt = 0.1, mouseLeaveDelay: Ct = 0.1, overlayStyle: Ge, rootClassName: Xe, } = e, ot = w2(e, [ 'getPopupContainer', 'placement', 'mouseEnterDelay', 'mouseLeaveDelay', 'overlayStyle', 'rootClassName', ]), Ye = ae('tooltip', l), Te = ae(), xt = e['data-popover-inject'] let et = De !('open' in e) && !('visible' in e) && oe && (et = !1) const Ft = E2(Ef(S) && !r0(S) ? S : m.createElement('span', null, S), Ye), $t = Ft.props, yt = !$t.className || typeof $t.className == 'string' ? bt()($t.className, { [f || `${Ye}-open`]: !0 }) : $t.className, [Et, Ht] = S1(Ye, !xt), dn = w1(Ye, _), qt = Object.assign(Object.assign({}, b), dn.overlayStyle), _n = dn.arrowStyle, Tt = bt()(h, { [`${Ye}-rtl`]: de === 'rtl' }, dn.className, Xe, Ht) return Et( m.createElement( p2, Object.assign({}, ot, { showArrow: U, placement: Ot, mouseEnterDelay: Nt, mouseLeaveDelay: Ct, prefixCls: Ye, overlayClassName: Tt, overlayStyle: Object.assign(Object.assign({}, _n), Ge), getTooltipContainer: ft || g || ie, ref: ye, builtinPlacements: Oe, overlay: Qe, visible: et, onVisibleChange: fe, afterVisibleChange: x != null ? x : k, onPopupAlign: Ve, overlayInnerStyle: qt, arrowContent: m.createElement('span', { className: `${Ye}-arrow-content` }), motion: { motionName: kf(Te, 'zoom-big-fast', e.transitionName), motionDeadline: 1e3 }, destroyTooltipOnHide: !!D, }), et ? Hs(Ft, { className: yt }) : Ft ) ) }) x1._InternalPanelDoNotUseOrYouWillBeFired = S2 var k2 = x1, O2 = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z', }, }, ], }, name: 'file-text', theme: 'outlined', }, T2 = O2, C1 = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: T2 })) } C1.displayName = 'FileTextOutlined' var E1 = m.forwardRef(C1) const D2 = (e) => { const { icon: t, description: n, prefixCls: a, className: l } = e, f = m.createElement('div', { className: `${a}-icon` }, m.createElement(E1, null)) return m.createElement( 'div', { onClick: e.onClick, onFocus: e.onFocus, onMouseEnter: e.onMouseEnter, onMouseLeave: e.onMouseLeave, className: bt()(l, `${a}-content`), }, t || n ? m.createElement( m.Fragment, null, t && m.createElement('div', { className: `${a}-icon` }, t), n && m.createElement('div', { className: `${a}-description` }, n) ) : f ) } var P2 = (0, m.memo)(D2) const k1 = m.createContext(void 0), { Provider: I2 } = k1 var O1 = k1, T1 = (e) => (e === 0 ? 0 : e - Math.sqrt(Math.pow(e, 2) / 2)) const R2 = (e) => { const { componentCls: t, floatButtonSize: n, motionDurationSlow: a, motionEaseInOutCirc: l } = e, f = `${t}-group`, g = new cn('antFloatButtonMoveDownIn', { '0%': { transform: `translate3d(0, ${n}px, 0)`, transformOrigin: '0 0', opacity: 0 }, '100%': { transform: 'translate3d(0, 0, 0)', transformOrigin: '0 0', opacity: 1 }, }), h = new cn('antFloatButtonMoveDownOut', { '0%': { transform: 'translate3d(0, 0, 0)', transformOrigin: '0 0', opacity: 1 }, '100%': { transform: `translate3d(0, ${n}px, 0)`, transformOrigin: '0 0', opacity: 0 }, }) return [ { [`${f}-wrap`]: Object.assign({}, Fh(`${f}-wrap`, g, h, a, !0)) }, { [`${f}-wrap`]: { [` &${f}-wrap-enter, &${f}-wrap-appear `]: { opacity: 0, animationTimingFunction: l }, [`&${f}-wrap-leave`]: { animationTimingFunction: l }, }, }, ] }, M2 = (e) => { const { antCls: t, componentCls: n, floatButtonSize: a, margin: l, borderRadiusLG: f, borderRadiusSM: g, badgeOffset: h, floatButtonBodyPadding: _, } = e, b = `${n}-group` return { [b]: Object.assign(Object.assign({}, yo(e)), { zIndex: 99, display: 'block', border: 'none', position: 'fixed', width: a, height: 'auto', boxShadow: 'none', minHeight: a, insetInlineEnd: e.floatButtonInsetInlineEnd, insetBlockEnd: e.floatButtonInsetBlockEnd, borderRadius: f, [`${b}-wrap`]: { zIndex: -1, display: 'block', position: 'relative', marginBottom: l }, [`&${b}-rtl`]: { direction: 'rtl' }, [n]: { position: 'static' }, }), [`${b}-circle`]: { [`${n}-circle:not(:last-child)`]: { marginBottom: e.margin, [`${n}-body`]: { width: a, height: a, borderRadius: '50%' }, }, }, [`${b}-square`]: { [`${n}-square`]: { borderRadius: 0, padding: 0, '&:first-child': { borderStartStartRadius: f, borderStartEndRadius: f }, '&:last-child': { borderEndStartRadius: f, borderEndEndRadius: f }, '&:not(:last-child)': { borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}` }, [`${t}-badge`]: { [`${t}-badge-count`]: { top: -(_ + h), insetInlineEnd: -(_ + h) } }, }, [`${b}-wrap`]: { display: 'block', borderRadius: f, boxShadow: e.boxShadowSecondary, [`${n}-square`]: { boxShadow: 'none', marginTop: 0, borderRadius: 0, padding: _, '&:first-child': { borderStartStartRadius: f, borderStartEndRadius: f }, '&:last-child': { borderEndStartRadius: f, borderEndEndRadius: f }, '&:not(:last-child)': { borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorSplit}` }, [`${n}-body`]: { width: e.floatButtonBodySize, height: e.floatButtonBodySize }, }, }, }, [`${b}-circle-shadow`]: { boxShadow: 'none' }, [`${b}-square-shadow`]: { boxShadow: e.boxShadowSecondary, [`${n}-square`]: { boxShadow: 'none', padding: _, [`${n}-body`]: { width: e.floatButtonBodySize, height: e.floatButtonBodySize, borderRadius: g }, }, }, } }, A2 = (e) => { const { antCls: t, componentCls: n, floatButtonBodyPadding: a, floatButtonIconSize: l, floatButtonSize: f, borderRadiusLG: g, badgeOffset: h, dotOffsetInSquare: _, dotOffsetInCircle: b, } = e return { [n]: Object.assign(Object.assign({}, yo(e)), { border: 'none', position: 'fixed', cursor: 'pointer', zIndex: 99, display: 'block', justifyContent: 'center', alignItems: 'center', width: f, height: f, insetInlineEnd: e.floatButtonInsetInlineEnd, insetBlockEnd: e.floatButtonInsetBlockEnd, boxShadow: e.boxShadowSecondary, '&-pure': { position: 'relative', inset: 'auto' }, '&:empty': { display: 'none' }, [`${t}-badge`]: { width: '100%', height: '100%', [`${t}-badge-count`]: { transform: 'translate(0, 0)', transformOrigin: 'center', top: -h, insetInlineEnd: -h, }, }, [`${n}-body`]: { width: '100%', height: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center', transition: `all ${e.motionDurationMid}`, [`${n}-content`]: { overflow: 'hidden', textAlign: 'center', minHeight: f, display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center', padding: `${a / 2}px ${a}px`, [`${n}-icon`]: { textAlign: 'center', margin: 'auto', width: l, fontSize: l, lineHeight: 1 }, }, }, }), [`${n}-rtl`]: { direction: 'rtl' }, [`${n}-circle`]: { height: f, borderRadius: '50%', [`${t}-badge`]: { [`${t}-badge-dot`]: { top: b, insetInlineEnd: b } }, [`${n}-body`]: { borderRadius: '50%' }, }, [`${n}-square`]: { height: 'auto', minHeight: f, borderRadius: g, [`${t}-badge`]: { [`${t}-badge-dot`]: { top: _, insetInlineEnd: _ } }, [`${n}-body`]: { height: 'auto', borderRadius: g }, }, [`${n}-default`]: { backgroundColor: e.floatButtonBackgroundColor, transition: `background-color ${e.motionDurationMid}`, [`${n}-body`]: { backgroundColor: e.floatButtonBackgroundColor, transition: `background-color ${e.motionDurationMid}`, '&:hover': { backgroundColor: e.colorFillContent }, [`${n}-content`]: { [`${n}-icon`]: { color: e.colorText }, [`${n}-description`]: { display: 'flex', alignItems: 'center', lineHeight: `${e.fontSizeLG}px`, color: e.colorText, fontSize: e.fontSizeSM, }, }, }, }, [`${n}-primary`]: { backgroundColor: e.colorPrimary, [`${n}-body`]: { backgroundColor: e.colorPrimary, transition: `background-color ${e.motionDurationMid}`, '&:hover': { backgroundColor: e.colorPrimaryHover }, [`${n}-content`]: { [`${n}-icon`]: { color: e.colorTextLightSolid }, [`${n}-description`]: { display: 'flex', alignItems: 'center', lineHeight: `${e.fontSizeLG}px`, color: e.colorTextLightSolid, fontSize: e.fontSizeSM, }, }, }, }, } } var Iv = Aa('FloatButton', (e) => { const { colorTextLightSolid: t, colorBgElevated: n, controlHeightLG: a, marginXXL: l, marginLG: f, fontSize: g, fontSizeIcon: h, controlItemBgHover: _, paddingXXS: b, borderRadiusLG: S, } = e, x = Ri(e, { floatButtonBackgroundColor: n, floatButtonColor: t, floatButtonHoverBackgroundColor: _, floatButtonFontSize: g, floatButtonIconSize: h * 1.5, floatButtonSize: a, floatButtonInsetBlockEnd: l, floatButtonInsetInlineEnd: f, floatButtonBodySize: a - b * 2, floatButtonBodyPadding: b, badgeOffset: b * 1.5, dotOffsetInCircle: T1(a / 2), dotOffsetInSquare: T1(S), }) return [M2(x), A2(x), A0(e), R2(x)] }), N2 = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const Kg = 'float-btn', j2 = (e, t) => { const { prefixCls: n, className: a, rootClassName: l, type: f = 'default', shape: g = 'circle', icon: h, description: _, tooltip: b, badge: S = {}, } = e, x = N2(e, [ 'prefixCls', 'className', 'rootClassName', 'type', 'shape', 'icon', 'description', 'tooltip', 'badge', ]), { getPrefixCls: k, direction: D } = (0, m.useContext)(Lt), M = (0, m.useContext)(O1), P = k(Kg, n), [R, j] = Iv(P), L = M || g, H = bt()(j, P, a, l, `${P}-${f}`, `${P}-${L}`, { [`${P}-rtl`]: D === 'rtl' }), U = (0, m.useMemo)(() => xh(S, ['title', 'children', 'status', 'text']), [S]), te = (0, m.useMemo)(() => ({ prefixCls: P, description: _, icon: h, type: f }), [P, _, h, f]), ie = m.createElement( k2, { title: b, placement: D === 'rtl' ? 'right' : 'left' }, m.createElement( hD, Object.assign({}, U), m.createElement('div', { className: `${P}-body` }, m.createElement(P2, Object.assign({}, te))) ) ) return R( e.href ? m.createElement('a', Object.assign({ ref: t }, x, { className: H }), ie) : m.createElement('button', Object.assign({ ref: t }, x, { className: H, type: 'button' }), ie) ) } var ac = m.forwardRef(j2) const z2 = (e) => { const { prefixCls: t, className: n, style: a, shape: l = 'circle', type: f = 'default', icon: g = m.createElement(E1, null), closeIcon: h = m.createElement(gg, null), description: _, trigger: b, children: S, onOpenChange: x, } = e, { direction: k, getPrefixCls: D } = (0, m.useContext)(Lt), M = D(Kg, t), [P, R] = Iv(M), j = `${M}-group`, L = bt()(j, R, n, { [`${j}-rtl`]: k === 'rtl', [`${j}-${l}`]: l, [`${j}-${l}-shadow`]: !b }), H = bt()(R, `${j}-wrap`), [U, te] = v1(!1, { value: e.open }), ie = (0, m.useRef)(null), ae = (0, m.useRef)(null), de = (0, m.useMemo)( () => b === 'hover' ? { onMouseEnter() { te(!0), x == null || x(!0) }, onMouseLeave() { te(!1), x == null || x(!1) }, } : {}, [b] ), ye = () => { te((De) => (x == null || x(!De), !De)) }, me = (0, m.useCallback)( (De) => { var se, oe if (!((se = ie.current) === null || se === void 0) && se.contains(De.target)) { !((oe = ae.current) === null || oe === void 0) && oe.contains(De.target) && ye() return } te(!1), x == null || x(!1) }, [b] ) return ( (0, m.useEffect)(() => { if (b === 'click') return ( document.addEventListener('click', me), () => { document.removeEventListener('click', me) } ) }, [b]), P( m.createElement( I2, { value: l }, m.createElement( 'div', Object.assign({ ref: ie, className: L, style: a }, de), b && ['click', 'hover'].includes(b) ? m.createElement( m.Fragment, null, m.createElement(So, { visible: U, motionName: `${j}-wrap` }, (De) => { let { className: se } = De return m.createElement('div', { className: bt()(se, H) }, S) }), m.createElement(ac, { ref: ae, type: f, shape: l, icon: U ? h : g, description: _ }) ) : S ) ) ) ) } var D1 = (0, m.memo)(z2), L2 = { icon: { tag: 'svg', attrs: { viewBox: '64 64 896 896', focusable: 'false' }, children: [ { tag: 'path', attrs: { d: 'M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z', }, }, ], }, name: 'vertical-align-top', theme: 'outlined', }, F2 = L2, P1 = function (t, n) { return m.createElement(ti, ze(ze({}, t), {}, { ref: n, icon: F2 })) } P1.displayName = 'VerticalAlignTopOutlined' var $2 = m.forwardRef(P1) function Rv(e) { return e != null && e === e.window } function I1(e, t) { var n, a if (typeof window == 'undefined') return 0 const l = t ? 'scrollTop' : 'scrollLeft' let f = 0 return ( Rv(e) ? (f = e[t ? 'pageYOffset' : 'pageXOffset']) : e instanceof Document ? (f = e.documentElement[l]) : (e instanceof HTMLElement || e) && (f = e[l]), e && !Rv(e) && typeof f != 'number' && (f = (a = ((n = e.ownerDocument) !== null && n !== void 0 ? n : e).documentElement) === null || a === void 0 ? void 0 : a[l]), f ) } function H2(e, t, n, a) { const l = n - t return (e /= a / 2), e < 1 ? (l / 2) * e * e * e + t : (l / 2) * ((e -= 2) * e * e + 2) + t } function B2(e) { let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {} const { getContainer: n = () => window, callback: a, duration: l = 450 } = t, f = n(), g = I1(f, !0), h = Date.now(), _ = () => { const S = Date.now() - h, x = H2(S > l ? l : S, g, e, l) Rv(f) ? f.scrollTo(window.pageXOffset, x) : f instanceof Document || f.constructor.name === 'HTMLDocument' ? (f.documentElement.scrollTop = x) : (f.scrollTop = x), S < l ? $s(_) : typeof a == 'function' && a() } $s(_) } function U2(e) { let t const n = (l) => () => { ;(t = null), e.apply(void 0, kt(l)) }, a = function () { if (t == null) { for (var l = arguments.length, f = new Array(l), g = 0; g < l; g++) f[g] = arguments[g] t = $s(n(f)) } } return ( (a.cancel = () => { $s.cancel(t), (t = null) }), a ) } var W2 = U2, V2 = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const G2 = (e) => { const { prefixCls: t, className: n, type: a = 'default', shape: l = 'circle', visibilityHeight: f = 400, icon: g = m.createElement($2, null), target: h, onClick: _, duration: b = 450, } = e, S = V2(e, [ 'prefixCls', 'className', 'type', 'shape', 'visibilityHeight', 'icon', 'target', 'onClick', 'duration', ]), [x, k] = (0, m.useState)(f === 0), D = (0, m.useRef)(null), M = () => (D.current && D.current.ownerDocument ? D.current.ownerDocument : window), P = W2((de) => { const ye = I1(de.target, !0) k(ye >= f) }) ;(0, m.useEffect)(() => { const ye = (h || M)() return ( P({ target: ye }), ye == null || ye.addEventListener('scroll', P), () => { P.cancel(), ye == null || ye.removeEventListener('scroll', P) } ) }, [h]) const R = (de) => { B2(0, { getContainer: h || M, duration: b }), _ == null || _(de) }, { getPrefixCls: j } = (0, m.useContext)(Lt), L = j(Kg, t), H = j(), [U] = Iv(L), ie = (0, m.useContext)(O1) || l, ae = Object.assign({ prefixCls: L, icon: g, type: a, shape: ie }, S) return U( m.createElement(So, { visible: x, motionName: `${H}-fade` }, (de) => { let { className: ye } = de return m.createElement(ac, Object.assign({ ref: D }, ae, { onClick: R, className: bt()(n, ye) })) }) ) } var R1 = (0, m.memo)(G2), M1 = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const A1 = (e) => { var { backTop: t } = e, n = M1(e, ['backTop']) return t ? m.createElement(R1, Object.assign({}, n, { visibilityHeight: 0 })) : m.createElement(ac, Object.assign({}, n)) } function X2(e) { var { className: t, items: n } = e, a = M1(e, ['className', 'items']) const { prefixCls: l } = a, { getPrefixCls: f } = m.useContext(Lt), h = `${f(Kg, l)}-pure` return n ? m.createElement( D1, Object.assign({ className: bt()(t, h) }, a), n.map((_, b) => m.createElement(A1, Object.assign({ key: b }, _))) ) : m.createElement(A1, Object.assign({ className: bt()(t, h) }, a)) } var K2 = m.memo(X2) ;(ac.BackTop = R1), (ac.Group = D1), (ac._InternalPanelDoNotUseOrYouWillBeFired = K2) var Y2 = ac, N1, q2 = Ni.div( N1 || (N1 = Sn()([ ` overflow-x: hidden; overflow-y: auto; flex: 1; `, ])) ), Q2 = function (t) { var n = t.children, a = (0, m.useRef)(null) return (0, at.jsxs)(q2, { ref: a, children: [ n, (0, at.jsx)(Y2.BackTop, { target: function () { return a.current }, }), ], }) }, J2 = m.memo(Q2) const j1 = (e) => { let t const n = new Set(), a = (_, b) => { const S = typeof _ == 'function' ? _(t) : _ if (!Object.is(S, t)) { const x = t ;(t = (b != null ? b : typeof S != 'object') ? S : Object.assign({}, t, S)), n.forEach((k) => k(t, x)) } }, l = () => t, h = { setState: a, getState: l, subscribe: (_) => (n.add(_), () => n.delete(_)), destroy: () => { console.warn( '[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected.' ), n.clear() }, } return (t = e(a, l, h)), h }, z1 = (e) => (e ? j1(e) : j1) var z5 = (e) => ( console.warn( "[DEPRECATED] Default export is deprecated. Instead use import { createStore } from 'zustand/vanilla'." ), z1(e) ), Z2 = dt(2798) const { useSyncExternalStoreWithSelector: eP } = Z2 function tP(e, t = e.getState, n) { const a = eP(e.subscribe, e.getState, e.getServerState || e.getState, t, n) return (0, m.useDebugValue)(a), a } const L1 = (e) => { typeof e != 'function' && console.warn( "[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`." ) const t = typeof e == 'function' ? z1(e) : e, n = (a, l) => tP(t, a, l) return Object.assign(n, t), n }, F1 = (e) => (e ? L1(e) : L1) var L5 = (e) => ( console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."), F1(e) ) const F5 = (e, t) => (n, a, l) => ( (l.dispatch = (f) => (n((g) => e(g, f), !1, f), f)), (l.dispatchFromDevtools = !0), sr({ dispatch: (...f) => l.dispatch(...f) }, t) ), $5 = null, Mv = new Map(), Yg = (e) => { const t = Mv.get(e) return t ? Object.fromEntries(Object.entries(t.stores).map(([n, a]) => [n, a.getState()])) : {} }, nP = (e, t, n) => { if (e === void 0) return { type: 'untracked', connection: t.connect(n) } const a = Mv.get(n.name) if (a) return sr({ type: 'tracked', store: e }, a) const l = { connection: t.connect(n), stores: {} } return Mv.set(n.name, l), sr({ type: 'tracked', store: e }, l) }, rP = (e, t = {}) => (n, a, l) => { const P = t, { enabled: f, anonymousActionType: g, store: h } = P, _ = Zv(P, ['enabled', 'anonymousActionType', 'store']) let b try { b = (f != null ? f : void 0 !== 'production') && window.__REDUX_DEVTOOLS_EXTENSION__ } catch (j) {} if (!b) return ( f && console.warn('[zustand devtools middleware] Please install/enable Redux devtools extension'), e(n, a, l) ) const R = nP(h, b, _), { connection: S } = R, x = Zv(R, ['connection']) let k = !0 l.setState = (j, L, H) => { const U = n(j, L) if (!k) return U const te = H === void 0 ? { type: g || 'anonymous' } : typeof H == 'string' ? { type: H } : H return h === void 0 ? (S == null || S.send(te, a()), U) : (S == null || S.send(Jv(sr({}, te), { type: `${h}/${te.type}` }), Jv(sr({}, Yg(_.name)), { [h]: l.getState() })), U) } const D = (...j) => { const L = k ;(k = !1), n(...j), (k = L) }, M = e(l.setState, a, l) if ( (x.type === 'untracked' ? S == null || S.init(M) : ((x.stores[x.store] = l), S == null || S.init( Object.fromEntries(Object.entries(x.stores).map(([j, L]) => [j, j === x.store ? M : L.getState()])) )), l.dispatchFromDevtools && typeof l.dispatch == 'function') ) { let j = !1 const L = l.dispatch l.dispatch = (...H) => { H[0].type === '__setState' && !j && (console.warn( '[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.' ), (j = !0)), L(...H) } } return ( S.subscribe((j) => { var L switch (j.type) { case 'ACTION': if (typeof j.payload != 'string') { console.error('[zustand devtools middleware] Unsupported action format') return } return Av(j.payload, (H) => { if (H.type === '__setState') { if (h === void 0) { D(H.state) return } Object.keys(H.state).length !== 1 && console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } `) const U = H.state[h] if (U == null) return JSON.stringify(l.getState()) !== JSON.stringify(U) && D(U) return } l.dispatchFromDevtools && typeof l.dispatch == 'function' && l.dispatch(H) }) case 'DISPATCH': switch (j.payload.type) { case 'RESET': return ( D(M), h === void 0 ? S == null ? void 0 : S.init(l.getState()) : S == null ? void 0 : S.init(Yg(_.name)) ) case 'COMMIT': if (h === void 0) { S == null || S.init(l.getState()) return } return S == null ? void 0 : S.init(Yg(_.name)) case 'ROLLBACK': return Av(j.state, (H) => { if (h === void 0) { D(H), S == null || S.init(l.getState()) return } D(H[h]), S == null || S.init(Yg(_.name)) }) case 'JUMP_TO_STATE': case 'JUMP_TO_ACTION': return Av(j.state, (H) => { if (h === void 0) { D(H) return } JSON.stringify(l.getState()) !== JSON.stringify(H[h]) && D(H[h]) }) case 'IMPORT_STATE': { const { nextLiftedState: H } = j.payload, U = (L = H.computedStates.slice(-1)[0]) == null ? void 0 : L.state if (!U) return D(h === void 0 ? U : U[h]), S == null || S.send(null, H) return } case 'PAUSE_RECORDING': return (k = !k) } return } }), M ) }, Av = (e, t) => { let n try { n = JSON.parse(e) } catch (a) { console.error('[zustand devtools middleware] Could not parse the received json', a) } n !== void 0 && t(n) }, B5 = (e) => (t, n, a) => { const l = a.subscribe return ( (a.subscribe = (g, h, _) => { let b = g if (h) { const S = (_ == null ? void 0 : _.equalityFn) || Object.is let x = g(a.getState()) ;(b = (k) => { const D = g(k) if (!S(x, D)) { const M = x h((x = D), M) } }), _ != null && _.fireImmediately && h(x, x) } return l(b) }), e(t, n, a) ) }, U5 = null, W5 = (e, t) => (...n) => Object.assign({}, e, t(...n)) function iP(e) { let t try { t = e() } catch (a) { return } return { getItem: (a) => { var l const f = (h) => (h === null ? null : JSON.parse(h)), g = (l = t.getItem(a)) != null ? l : null return g instanceof Promise ? g.then(f) : f(g) }, setItem: (a, l) => t.setItem(a, JSON.stringify(l)), removeItem: (a) => t.removeItem(a), } } const Rf = (e) => (t) => { try { const n = e(t) return n instanceof Promise ? n : { then(a) { return Rf(a)(n) }, catch(a) { return this }, } } catch (n) { return { then(a) { return this }, catch(a) { return Rf(a)(n) }, } } }, aP = (e, t) => (n, a, l) => { let f = sr( { getStorage: () => localStorage, serialize: JSON.stringify, deserialize: JSON.parse, partialize: (R) => R, version: 0, merge: (R, j) => sr(sr({}, j), R), }, t ), g = !1 const h = new Set(), _ = new Set() let b try { b = f.getStorage() } catch (R) {} if (!b) return e( (...R) => { console.warn( `[zustand persist middleware] Unable to update item '${f.name}', the given storage is currently unavailable.` ), n(...R) }, a, l ) const S = Rf(f.serialize), x = () => { const R = f.partialize(sr({}, a())) let j const L = S({ state: R, version: f.version }) .then((H) => b.setItem(f.name, H)) .catch((H) => { j = H }) if (j) throw j return L }, k = l.setState l.setState = (R, j) => { k(R, j), x() } const D = e( (...R) => { n(...R), x() }, a, l ) let M const P = () => { var R if (!b) return ;(g = !1), h.forEach((L) => L(a())) const j = ((R = f.onRehydrateStorage) == null ? void 0 : R.call(f, a())) || void 0 return Rf(b.getItem.bind(b))(f.name) .then((L) => { if (L) return f.deserialize(L) }) .then((L) => { if (L) if (typeof L.version == 'number' && L.version !== f.version) { if (f.migrate) return f.migrate(L.state, L.version) console.error("State loaded from storage couldn't be migrated since no migrate function was provided") } else return L.state }) .then((L) => { var H return (M = f.merge(L, (H = a()) != null ? H : D)), n(M, !0), x() }) .then(() => { j == null || j(M, void 0), (g = !0), _.forEach((L) => L(M)) }) .catch((L) => { j == null || j(void 0, L) }) } return ( (l.persist = { setOptions: (R) => { ;(f = sr(sr({}, f), R)), R.getStorage && (b = R.getStorage()) }, clearStorage: () => { b == null || b.removeItem(f.name) }, getOptions: () => f, rehydrate: () => P(), hasHydrated: () => g, onHydrate: (R) => ( h.add(R), () => { h.delete(R) } ), onFinishHydration: (R) => ( _.add(R), () => { _.delete(R) } ), }), P(), M || D ) }, oP = (e, t) => (n, a, l) => { let f = sr( { storage: iP(() => localStorage), partialize: (P) => P, version: 0, merge: (P, R) => sr(sr({}, R), P) }, t ), g = !1 const h = new Set(), _ = new Set() let b = f.storage if (!b) return e( (...P) => { console.warn( `[zustand persist middleware] Unable to update item '${f.name}', the given storage is currently unavailable.` ), n(...P) }, a, l ) const S = () => { const P = f.partialize(sr({}, a())) return b.setItem(f.name, { state: P, version: f.version }) }, x = l.setState l.setState = (P, R) => { x(P, R), S() } const k = e( (...P) => { n(...P), S() }, a, l ) let D const M = () => { var P, R if (!b) return ;(g = !1), h.forEach((L) => { var H return L((H = a()) != null ? H : k) }) const j = ((R = f.onRehydrateStorage) == null ? void 0 : R.call(f, (P = a()) != null ? P : k)) || void 0 return Rf(b.getItem.bind(b))(f.name) .then((L) => { if (L) if (typeof L.version == 'number' && L.version !== f.version) { if (f.migrate) return f.migrate(L.state, L.version) console.error("State loaded from storage couldn't be migrated since no migrate function was provided") } else return L.state }) .then((L) => { var H return (D = f.merge(L, (H = a()) != null ? H : k)), n(D, !0), S() }) .then(() => { j == null || j(D, void 0), (D = a()), (g = !0), _.forEach((L) => L(D)) }) .catch((L) => { j == null || j(void 0, L) }) } return ( (l.persist = { setOptions: (P) => { ;(f = sr(sr({}, f), P)), P.storage && (b = P.storage) }, clearStorage: () => { b == null || b.removeItem(f.name) }, getOptions: () => f, rehydrate: () => M(), hasHydrated: () => g, onHydrate: (P) => ( h.add(P), () => { h.delete(P) } ), onFinishHydration: (P) => ( _.add(P), () => { _.delete(P) } ), }), f.skipHydration || M(), D || k ) }, V5 = (e, t) => 'getStorage' in t || 'serialize' in t || 'deserialize' in t ? (console.warn( '[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead.' ), aP(e, t)) : oP(e, t), G5 = null var sP = F1()( rP(function (e, t) { return { currentTab: 'tab_txt2img', setCurrentTab: function () { var a = get_uiCurrentTabContent().id a !== t().currentTab && e({ currentTab: a }, !1, 'setCurrentTab') }, } }) ) function lP(e, t, n) { var a = n || {}, l = a.noTrailing, f = l === void 0 ? !1 : l, g = a.noLeading, h = g === void 0 ? !1 : g, _ = a.debounceMode, b = _ === void 0 ? void 0 : _, S, x = !1, k = 0 function D() { S && clearTimeout(S) } function M(R) { var j = R || {}, L = j.upcomingOnly, H = L === void 0 ? !1 : L D(), (x = !H) } function P() { for (var R = arguments.length, j = new Array(R), L = 0; L < R; L++) j[L] = arguments[L] var H = this, U = Date.now() - k if (x) return function te() { ;(k = Date.now()), t.apply(H, j) } function ie() { S = void 0 } !h && b && !S && te(), D(), b === void 0 && U > e ? h ? ((k = Date.now()), f || (S = setTimeout(b ? ie : te, e))) : te() : f !== !0 && (S = setTimeout(b ? ie : te, b === void 0 ? e - U : e)) } return (P.cancel = M), P } function cP(e, t, n) { var a = n || {}, l = a.atBegin, f = l === void 0 ? !1 : l return lP(e, t, { debounceMode: f !== !1 }) } const uP = new cn('antSpinMove', { to: { opacity: 1 } }), dP = new cn('antRotate', { to: { transform: 'rotate(405deg)' } }), fP = (e) => ({ [`${e.componentCls}`]: Object.assign(Object.assign({}, yo(e)), { position: 'absolute', display: 'none', color: e.colorPrimary, textAlign: 'center', verticalAlign: 'middle', opacity: 0, transition: `transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`, '&-spinning': { position: 'static', display: 'inline-block', opacity: 1 }, '&-nested-loading': { position: 'relative', [`> div > ${e.componentCls}`]: { position: 'absolute', top: 0, insetInlineStart: 0, zIndex: 4, display: 'block', width: '100%', height: '100%', maxHeight: e.contentHeight, [`${e.componentCls}-dot`]: { position: 'absolute', top: '50%', insetInlineStart: '50%', margin: -e.spinDotSize / 2, }, [`${e.componentCls}-text`]: { position: 'absolute', top: '50%', width: '100%', paddingTop: (e.spinDotSize - e.fontSize) / 2 + 2, textShadow: `0 1px 2px ${e.colorBgContainer}`, }, [`&${e.componentCls}-show-text ${e.componentCls}-dot`]: { marginTop: -(e.spinDotSize / 2) - 10 }, '&-sm': { [`${e.componentCls}-dot`]: { margin: -e.spinDotSizeSM / 2 }, [`${e.componentCls}-text`]: { paddingTop: (e.spinDotSizeSM - e.fontSize) / 2 + 2 }, [`&${e.componentCls}-show-text ${e.componentCls}-dot`]: { marginTop: -(e.spinDotSizeSM / 2) - 10 }, }, '&-lg': { [`${e.componentCls}-dot`]: { margin: -(e.spinDotSizeLG / 2) }, [`${e.componentCls}-text`]: { paddingTop: (e.spinDotSizeLG - e.fontSize) / 2 + 2 }, [`&${e.componentCls}-show-text ${e.componentCls}-dot`]: { marginTop: -(e.spinDotSizeLG / 2) - 10 }, }, }, [`${e.componentCls}-container`]: { position: 'relative', transition: `opacity ${e.motionDurationSlow}`, '&::after': { position: 'absolute', top: 0, insetInlineEnd: 0, bottom: 0, insetInlineStart: 0, zIndex: 10, width: '100%', height: '100%', background: e.colorBgContainer, opacity: 0, transition: `all ${e.motionDurationSlow}`, content: '""', pointerEvents: 'none', }, }, [`${e.componentCls}-blur`]: { clear: 'both', opacity: 0.5, userSelect: 'none', pointerEvents: 'none', ['&::after']: { opacity: 0.4, pointerEvents: 'auto' }, }, }, ['&-tip']: { color: e.spinDotDefault }, [`${e.componentCls}-dot`]: { position: 'relative', display: 'inline-block', fontSize: e.spinDotSize, width: '1em', height: '1em', '&-item': { position: 'absolute', display: 'block', width: (e.spinDotSize - e.marginXXS / 2) / 2, height: (e.spinDotSize - e.marginXXS / 2) / 2, backgroundColor: e.colorPrimary, borderRadius: '100%', transform: 'scale(0.75)', transformOrigin: '50% 50%', opacity: 0.3, animationName: uP, animationDuration: '1s', animationIterationCount: 'infinite', animationTimingFunction: 'linear', animationDirection: 'alternate', '&:nth-child(1)': { top: 0, insetInlineStart: 0 }, '&:nth-child(2)': { top: 0, insetInlineEnd: 0, animationDelay: '0.4s' }, '&:nth-child(3)': { insetInlineEnd: 0, bottom: 0, animationDelay: '0.8s' }, '&:nth-child(4)': { bottom: 0, insetInlineStart: 0, animationDelay: '1.2s' }, }, '&-spin': { transform: 'rotate(45deg)', animationName: dP, animationDuration: '1.2s', animationIterationCount: 'infinite', animationTimingFunction: 'linear', }, }, [`&-sm ${e.componentCls}-dot`]: { fontSize: e.spinDotSizeSM, i: { width: (e.spinDotSizeSM - e.marginXXS / 2) / 2, height: (e.spinDotSizeSM - e.marginXXS / 2) / 2 }, }, [`&-lg ${e.componentCls}-dot`]: { fontSize: e.spinDotSizeLG, i: { width: (e.spinDotSizeLG - e.marginXXS) / 2, height: (e.spinDotSizeLG - e.marginXXS) / 2 }, }, [`&${e.componentCls}-show-text ${e.componentCls}-text`]: { display: 'block' }, }), }) var pP = Aa( 'Spin', (e) => { const t = Ri(e, { spinDotDefault: e.colorTextDescription, spinDotSize: e.controlHeightLG / 2, spinDotSizeSM: e.controlHeightLG * 0.35, spinDotSizeLG: e.controlHeight, }) return [fP(t)] }, { contentHeight: 400 } ), gP = function (e, t) { var n = {} for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]) if (e != null && typeof Object.getOwnPropertySymbols == 'function') for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++) t.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (n[a[l]] = e[a[l]]) return n } const X5 = null let qg = null function mP(e, t) { const { indicator: n } = t, a = `${e}-dot` return n === null ? null : Ef(n) ? Hs(n, { className: bt()(n.props.className, a) }) : Ef(qg) ? Hs(qg, { className: bt()(qg.props.className, a) }) : m.createElement( 'span', { className: bt()(a, `${e}-dot-spin`) }, m.createElement('i', { className: `${e}-dot-item` }), m.createElement('i', { className: `${e}-dot-item` }), m.createElement('i', { className: `${e}-dot-item` }), m.createElement('i', { className: `${e}-dot-item` }) ) } function hP(e, t) { return !!e && !!t && !isNaN(Number(t)) } const vP = (e) => { const { spinPrefixCls: t, spinning: n = !0, delay: a = 0, className: l, rootClassName: f, size: g = 'default', tip: h, wrapperClassName: _, style: b, children: S, hashId: x, } = e, k = gP(e, [ 'spinPrefixCls', 'spinning', 'delay', 'className', 'rootClassName', 'size', 'tip', 'wrapperClassName', 'style', 'children', 'hashId', ]), [D, M] = m.useState(() => n && !hP(n, a)) m.useEffect(() => { if (n) { const te = cP(a, () => { M(!0) }) return ( te(), () => { var ie ;(ie = te == null ? void 0 : te.cancel) === null || ie === void 0 || ie.call(te) } ) } M(!1) }, [a, n]) const P = m.useMemo(() => typeof S != 'undefined', [S]), { direction: R } = m.useContext(Lt), j = bt()( t, { [`${t}-sm`]: g === 'small', [`${t}-lg`]: g === 'large', [`${t}-spinning`]: D, [`${t}-show-text`]: !!h, [`${t}-rtl`]: R === 'rtl', }, l, f, x ), L = bt()(`${t}-container`, { [`${t}-blur`]: D }), H = xh(k, ['indicator', 'prefixCls']), U = m.createElement( 'div', Object.assign({}, H, { style: b, className: j, 'aria-live': 'polite', 'aria-busy': D }), mP(t, e), h ? m.createElement('div', { className: `${t}-text` }, h) : null ) return P ? m.createElement( 'div', Object.assign({}, H, { className: bt()(`${t}-nested-loading`, _, x) }), D && m.createElement('div', { key: 'loading' }, U), m.createElement('div', { className: L, key: 'container' }, S) ) : U }, $1 = (e) => { const { prefixCls: t } = e, { getPrefixCls: n } = m.useContext(Lt), a = n('spin', t), [l, f] = pP(a), g = Object.assign(Object.assign({}, e), { spinPrefixCls: a, hashId: f }) return l(m.createElement(vP, Object.assign({}, g))) } $1.setDefaultIndicator = (e) => { qg = e } var Nv = $1 function H1(e, t) { if (Object.is(e, t)) return !0 if (typeof e != 'object' || e === null || typeof t != 'object' || t === null) return !1 if (e instanceof Map && t instanceof Map) { if (e.size !== t.size) return !1 for (const [a, l] of e) if (!Object.is(l, t.get(a))) return !1 return !0 } if (e instanceof Set && t instanceof Set) { if (e.size !== t.size) return !1 for (const a of e) if (!t.has(a)) return !1 return !0 } const n = Object.keys(e) if (n.length !== Object.keys(t).length) return !1 for (let a = 0; a < n.length; a++) if (!Object.prototype.hasOwnProperty.call(t, n[a]) || !Object.is(e[n[a]], t[n[a]])) return !1 return !0 } var K5 = (e, t) => ( console.warn( "[DEPRECATED] Default export is deprecated. Instead use `import { shallow } from 'zustand/shallow'`." ), H1(e, t) ), B1, U1, W1, _P = Ni.div( B1 || (B1 = Sn()([ ` display: flex; flex-direction: row !important; flex: 1; overflow: hidden; position: relative; `, ])) ), yP = Ni.div( U1 || (U1 = Sn()([ ` flex: 1; width: 100vw; height: 100vh; display: flex; flex-direction: column; overflow: hidden; position: relative; `, ])) ), jv = Ni.div( W1 || (W1 = Sn()([ ` width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; `, ])) ), bP = function (t) { var n = t.themeMode, a = sP(function (D) { return [D.setCurrentTab] }, H1), l = T()(a, 1), f = l[0], g = (0, m.useState)(!0), h = T()(g, 2), _ = h[0], b = h[1], S = (0, m.useRef)(), x = (0, m.useRef)(), k = (0, m.useRef)() return ( (0, m.useEffect)(function () { onUiLoaded(function () { var D, M, P = gradioApp().querySelector('#quicksettings'), R = gradioApp().querySelector('#tabs > .tab-nav:first-child'), j = gradioApp().querySelector('.app') if ((P && ((D = S.current) === null || D === void 0 || D.appendChild(P)), R)) { var L ;(L = k.current) === null || L === void 0 || L.appendChild(R), (k.current.id = 'tabs') } j && ((M = x.current) === null || M === void 0 || M.appendChild(j)), b(!1) }), onUiUpdate(function () { f() }) }, []), (0, at.jsxs)(yP, { children: [ (0, at.jsxs)(LT, { themeMode: n, children: [ _ && (0, at.jsx)(jv, { children: (0, at.jsx)(Nv, { size: 'small' }) }), (0, at.jsx)('div', { ref: k, className: 'header' }), ], }), (0, at.jsxs)(_P, { children: [ (0, at.jsxs)(eD, { children: [ _ && (0, at.jsx)(jv, { children: (0, at.jsx)(Nv, { size: 'small' }) }), (0, at.jsx)('div', { id: 'sidebar', ref: S }), ], }), (0, at.jsxs)(J2, { loading: _, children: [ _ && (0, at.jsx)(jv, { children: (0, at.jsx)(Nv, { tip: 'Loading', size: 'large' }) }), (0, at.jsx)('div', { id: 'content', ref: x }), ], }), ], }), ], }) ) }, SP = m.memo(bP), wP = function () { Ur({ ThemeContext: Vs }) var t = (0, m.useState)('light'), n = T()(t, 2), a = n[0], l = n[1] return ( (0, m.useEffect)(function () { var f = String(Kh.parseUrl(window.location.href).query.__theme) || 'light' l(f), document.body.classList.add(f) }, []), (0, at.jsx)(iE, { appearance: a, children: (0, at.jsx)(SP, { themeMode: a }) }) ) } document.addEventListener('DOMContentLoaded', function () { var e = document.createElement('div') e.setAttribute('id', 'root'), gradioApp().append(e) var t = (0, I.createRoot)(e) t.render((0, at.jsx)(wP, {})) }), onUiLoaded(function () { ke() }), onUiUpdate(function () { Re(), tt() }) var xP = function () { return null } I.createRoot(document.getElementById('root')).render((0, at.jsx)(xP, {})) })() })()